/* Interactive public timeline */
.timeline-section{
  position:relative;
  padding:150px 0 175px;
  overflow:clip;
  color:#fff;
  background:
    radial-gradient(circle at 76% 18%,rgba(76,86,110,.18),transparent 32%),
    #0b0c0f;
}
.timeline-section .timeline-head{margin-bottom:72px}
.timeline-section .timeline-head h2{max-width:850px;color:#fff}
.timeline-section .timeline-head>p{color:#8a8e98}
.timeline-experience{
  display:grid;
  grid-template-columns:minmax(230px,300px) minmax(0,1fr);
  gap:clamp(38px,6vw,92px);
  align-items:start;
}
.timeline-index{
  position:sticky;
  top:105px;
  min-width:0;
}
.timeline-index-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 0 20px;
  border-bottom:1px solid #2a2d33;
  color:#767a84;
  font-size:9px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.timeline-index-label small{font-size:8px}
.timeline-index-list{
  position:relative;
  max-height:610px;
  overflow:auto;
  scrollbar-width:none;
}
.timeline-index-list::-webkit-scrollbar{display:none}
.timeline-index-list:before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:15px;
  width:1px;
  background:#2a2d33;
}
.timeline-index-item{
  position:relative;
  width:100%;
  min-height:98px;
  display:grid;
  grid-template-columns:31px 1fr;
  gap:18px;
  align-items:center;
  padding:18px 8px 18px 0;
  color:#737780;
  background:none;
  border:0;
  border-bottom:1px solid #22252b;
  text-align:left;
  cursor:pointer;
  transition:color .3s,transform .3s;
}
.timeline-index-item:before{
  content:"";
  position:absolute;
  left:11px;
  width:9px;
  height:9px;
  border:1px solid #5f636d;
  border-radius:50%;
  background:#0b0c0f;
  transition:background .3s,border .3s,box-shadow .3s,transform .3s;
}
.timeline-index-item:hover{color:#c8cad0;transform:translateX(3px)}
.timeline-index-item.active{color:#fff}
.timeline-index-item.active:before{
  background:#fff;
  border-color:#fff;
  box-shadow:0 0 0 6px rgba(255,255,255,.08);
  transform:scale(.78);
}
.timeline-index-number{
  position:relative;
  z-index:1;
  color:#555963;
  font-size:8px;
  text-align:center;
}
.timeline-index-text{display:grid;gap:8px}
.timeline-index-text b{
  color:inherit;
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.timeline-index-text small{
  overflow:hidden;
  font-size:13px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.timeline-stage{
  position:sticky;
  top:104px;
  min-height:680px;
  overflow:hidden;
  isolation:isolate;
  background:#15171c;
  border:1px solid rgba(255,255,255,.11);
  border-radius:32px;
  box-shadow:0 45px 100px rgba(0,0,0,.38);
}
.timeline-stage-media,.timeline-stage-shade{
  position:absolute;
  inset:0;
}
.timeline-stage-media>*{
  width:100%;
  height:100%;
  object-fit:cover;
}
.timeline-stage-media img,.timeline-stage-media video{
  transform:scale(1.01);
  transition:transform 1.1s cubic-bezier(.22,1,.36,1),opacity .45s;
}
.timeline-stage-enter .timeline-stage-media img,
.timeline-stage-enter .timeline-stage-media video{animation:timelineMediaIn .85s both cubic-bezier(.22,1,.36,1)}
.timeline-placeholder{
  position:relative;
  height:100%;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:#444852;
  background:
    radial-gradient(circle at 72% 34%,#303540,transparent 34%),
    linear-gradient(135deg,#181b21,#0f1014 68%);
}
.timeline-placeholder:after{
  content:"";
  position:absolute;
  inset:12%;
  border:1px solid rgba(255,255,255,.07);
  border-radius:50%;
}
.timeline-placeholder span{
  position:absolute;
  top:38px;
  left:42px;
  color:#717681;
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.timeline-placeholder b{
  font-size:clamp(150px,22vw,330px);
  line-height:.8;
  letter-spacing:-.1em;
  opacity:.35;
}
.timeline-stage-shade{
  z-index:1;
  background:
    linear-gradient(0deg,rgba(5,6,8,.96) 0%,rgba(5,6,8,.75) 28%,rgba(5,6,8,.12) 67%),
    linear-gradient(90deg,rgba(5,6,8,.3),transparent 58%);
  pointer-events:none;
}
.timeline-stage-topline{
  position:absolute;
  z-index:2;
  top:28px;
  left:32px;
  right:32px;
  display:flex;
  justify-content:space-between;
  gap:25px;
  color:rgba(255,255,255,.58);
  font-size:8px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.timeline-stage-topline span:last-child{
  max-width:55%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:right;
}
.timeline-stage-copy{
  position:absolute;
  z-index:2;
  left:clamp(28px,5vw,68px);
  right:clamp(28px,5vw,68px);
  bottom:clamp(30px,5vw,62px);
}
.timeline-stage-copy>p{
  margin:0 0 16px;
  color:#aeb1b9;
  font-size:10px;
  font-weight:650;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.timeline-stage-copy h3{
  max-width:880px;
  margin:0;
  font-family:Manrope,Inter,sans-serif;
  font-size:clamp(42px,6.2vw,88px);
  font-weight:500;
  line-height:.94;
  letter-spacing:-.06em;
}
.timeline-stage-bottom{
  display:grid;
  grid-template-columns:minmax(0,650px) auto;
  gap:35px;
  align-items:end;
  justify-content:space-between;
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.17);
}
.timeline-stage-bottom>p{
  margin:0;
  color:#b0b3ba;
  font-size:13px;
  line-height:1.75;
  white-space:pre-line;
}
.timeline-stage-controls{display:flex;gap:10px}
.timeline-stage-controls button{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  cursor:pointer;
  transition:background .25s,transform .25s,opacity .25s;
}
.timeline-stage-controls button:hover:not(:disabled){
  background:rgba(255,255,255,.17);
  transform:translateY(-2px);
}
.timeline-stage-controls button:disabled{
  opacity:.25;
  cursor:default;
}
.timeline-empty{
  padding:80px 30px;
  color:#797d86;
  border:1px dashed #30333a;
  text-align:center;
  font-size:13px;
}

/* Timeline settings */
.timeline-section-settings{margin-bottom:28px}
.timeline-admin-toolbar{
  margin:0 0 24px;
  padding:30px 34px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  color:#fff;
  background:linear-gradient(135deg,#20232a,#121419);
  border-radius:16px;
  box-shadow:0 18px 48px rgba(28,31,38,.13);
}
.timeline-admin-toolbar h2{
  margin:10px 0 8px;
  font:500 34px/1 Manrope,Inter,sans-serif;
  letter-spacing:-.045em;
}
.timeline-admin-toolbar>div>p:not(.eyebrow){
  max-width:620px;
  margin:0;
  color:#91959e;
  font-size:11px;
  line-height:1.65;
}
.timeline-admin-toolbar>div:last-child{
  display:flex;
  flex:0 0 auto;
  gap:9px;
}
.timeline-event-editor{
  margin-bottom:18px;
  padding:0!important;
  overflow:hidden;
}
.timeline-editor-head{
  min-height:82px;
  padding:18px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:#f9f9fa;
  border-bottom:1px solid #e7e8eb;
}
.timeline-editor-head>div:first-child{
  min-width:0;
  display:flex;
  align-items:center;
  gap:16px;
}
.timeline-editor-number{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  color:#fff;
  background:#202227;
  border-radius:50%;
  font-size:8px;
  letter-spacing:.08em;
}
.timeline-editor-head h3{
  max-width:520px;
  margin:0;
  overflow:hidden;
  color:#282a30;
  font-size:13px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.timeline-editor-head p{
  margin:5px 0 0;
  color:#989ba2;
  font-size:9px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.timeline-order-actions{display:flex;gap:7px}
.timeline-order-actions .secondary{
  width:38px;
  min-height:36px;
  padding:0;
}
.timeline-order-actions button:disabled{opacity:.35;cursor:default}
.timeline-delete{
  min-height:36px;
  padding:0 12px;
  color:#a23d3d;
  background:#fff;
  border:1px solid #ead5d5;
  border-radius:8px;
  font-size:9px;
  cursor:pointer;
}
.timeline-editor-grid{
  padding:24px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.timeline-editor-grid label{
  display:block;
  color:#676a71;
  font-size:10px;
  font-weight:600;
  letter-spacing:.02em;
}
.timeline-editor-grid input,
.timeline-editor-grid textarea,
.timeline-editor-grid select{
  width:100%;
  margin-top:8px;
  padding:12px 13px;
  color:#25272c;
  background:#fff;
  border:1px solid #dbdce0;
  border-radius:9px;
  outline:none;
  resize:vertical;
  transition:border .2s,box-shadow .2s;
}
.timeline-editor-grid input:focus,
.timeline-editor-grid textarea:focus,
.timeline-editor-grid select:focus{
  border-color:#8f939b;
  box-shadow:0 0 0 3px rgba(80,85,95,.08);
}
.timeline-description-field{grid-column:1/-1}
.timeline-media-control{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:22px;
  align-items:start;
  padding-top:20px;
  border-top:1px solid #ececef;
}
.timeline-media-control label small{
  display:block;
  margin-top:9px;
  color:#a0a2a8;
  font-size:9px;
  font-weight:400;
  line-height:1.5;
}
.timeline-media-preview{
  aspect-ratio:1.45;
  overflow:hidden;
  background:#e7e8eb;
  border-radius:12px;
}
.timeline-media-preview img,
.timeline-media-preview video,
.timeline-preview-placeholder{
  width:100%;
  height:100%;
  object-fit:cover;
}
.timeline-preview-placeholder{
  position:relative;
  display:grid;
  place-items:center;
  color:#8b8f98;
  background:linear-gradient(135deg,#eceef1,#dfe1e5);
}
.timeline-preview-placeholder span{
  position:absolute;
  top:13px;
  left:14px;
  font-size:8px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.timeline-preview-placeholder b{
  font-size:52px;
  letter-spacing:-.08em;
  opacity:.45;
}
.timeline-admin-empty{
  padding:80px 30px;
  color:#8a8d94;
  background:#fff;
  border:1px dashed #d6d8dc;
  border-radius:14px;
  text-align:center;
}
.timeline-admin-empty span{
  display:block;
  color:#c6c8cd;
  font-size:34px;
}
.timeline-admin-empty h3{
  margin:14px 0 8px;
  color:#34363b;
  font-size:18px;
}
.timeline-admin-empty p{
  margin:0;
  font-size:11px;
}

/* Responsive */
@media(max-width:900px){
  .timeline-experience{grid-template-columns:1fr;gap:28px}
  .timeline-index{position:relative;top:auto}
  .timeline-index-label{display:none}
  .timeline-index-list{
    display:flex;
    max-height:none;
    gap:8px;
    overflow-x:auto;
    scroll-snap-type:x proximity;
  }
  .timeline-index-list:before{display:none}
  .timeline-index-item{
    min-width:210px;
    min-height:82px;
    grid-template-columns:26px 1fr;
    padding:13px 16px 13px 0;
    border:1px solid #292c32;
    border-radius:13px;
    scroll-snap-align:start;
  }
  .timeline-index-item:before{left:8px}
  .timeline-stage{position:relative;top:auto;min-height:650px}
  .timeline-admin-toolbar{align-items:flex-start;flex-direction:column}
}
@media(max-width:650px){
  .timeline-section{padding:105px 0 120px}
  .timeline-section .timeline-head{margin-bottom:44px}
  .timeline-stage{
    min-height:590px;
    border-radius:22px;
  }
  .timeline-stage-topline{top:22px;left:22px;right:22px}
  .timeline-stage-copy{left:23px;right:23px;bottom:24px}
  .timeline-stage-copy h3{font-size:clamp(38px,13vw,62px)}
  .timeline-stage-bottom{grid-template-columns:1fr;gap:22px}
  .timeline-stage-controls{justify-content:flex-end}
  .timeline-stage-controls button{width:43px;height:43px}
  .timeline-admin-toolbar{padding:25px}
  .timeline-admin-toolbar>div:last-child{width:100%;flex-direction:column}
  .timeline-admin-toolbar .primary,
  .timeline-admin-toolbar .secondary{width:100%}
  .timeline-editor-head{align-items:flex-start;flex-direction:column}
  .timeline-order-actions{width:100%}
  .timeline-order-actions .timeline-delete{margin-left:auto}
  .timeline-editor-grid{grid-template-columns:1fr;padding:20px}
  .timeline-description-field,.timeline-media-control{grid-column:auto}
  .timeline-media-control{grid-template-columns:1fr}
  .timeline-media-preview{aspect-ratio:16/9}
}
@keyframes timelineMediaIn{
  from{opacity:.45;transform:scale(1.045)}
  to{opacity:1;transform:scale(1.01)}
}
