/* ============================================================
TOKENS
============================================================ */
:root{
  --sky:        #F1F8FD;   /* page field                       */
  --ink:        #0E2A47;   /* headline + active label          */
  --ink-soft:   #0A2240;   /* secondary prose                  */
  --accent:     #55AEDD;   /* live rail, dots, focus           */
  --accent-deep:#73BDD7;
  --rail:       #D2E9F5;   /* rail not yet travelled           */
  --future:     #7F9DC3;   /* labels ahead of the play head    */
  --card:       #FFFFFF;
  --edge:       #E4EFF7;

  --dwell: 5000ms;         /* mirrored in JS                   */
  --shadow: 0 1px 2px rgba(14,42,71,.05), 0 14px 30px -14px rgba(14,42,71,.28);
}


/* ============================================================
FRAME
============================================================ */
.stage{ width:100%; max-width:1440px; margin : 0 auto; padding: 50px 0;}

.masthead{ text-align:center; }
.masthead h2{
  font-weight:700;
  margin:0 0 10px;
  color: #0A2240;
}
.masthead p{
  margin:0;
  font-size:clamp(15px,1.6vw,17px);
  color:var(--ink-soft);
}
.rule{
  height:1px;
  background:#73BDD7;
  opacity:.5;
  margin:clamp(22px,3vw,34px) 0 0;
}

/* ============================================================
PANELS
============================================================ */
.deck{
  position:relative;
  min-height:340px;
  margin:clamp(24px,4vw,40px) 0 clamp(28px,4vw,44px);
}
.panel{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(28px,5vw,72px);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .5s ease, transform .5s ease, visibility .5s;
  pointer-events:none;
  max-width: 1000px;
  margin: 0 auto;
}
.panel[data-live]{
  opacity:1;
  visibility:visible;
  transform:none;
  pointer-events:auto;
}
.panel__copy{
  flex:0 1 350px;
  font-size:clamp(20px,2.4vw,26px);
  line-height:1.35;
  letter-spacing:-.01em;
  margin:0;
  font-weight: 500;
}
.panel__art{ flex:0 0 auto; width:min(440px,100%); }
.panel[data-live] .shot{ animation:rise .55s cubic-bezier(.2,.7,.3,1) .1s backwards; }
@keyframes rise{ from{ opacity:0; transform:translateY(10px) } }

/* ============================================================
IMAGE HOLDER
Drop an <img> straight inside .shot and the placeholder
dressing (hatch, dashed edge, caption) steps aside.
============================================================ */
.shot{
  /*   position:relative;
  margin:0;
  aspect-ratio:22 / 15;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1.5px dashed var(--rail);
  border-radius:14px;
  overflow:hidden;
  background:
  repeating-linear-gradient(45deg,
  rgba(42,163,212,.05) 0 10px,
  rgba(42,163,212,0) 10px 20px),
  var(--card); */
}
.shot__mark{ width:34px; height:34px; color:var(--future); }
.shot__mark svg{ display:block; width:100%; height:100%; }
.shot__name{ font-size:15px; font-weight:600; color:var(--accent-deep); }
.shot__size{ font-family:var(--mono); font-size:11.5px; color:var(--future); letter-spacing:.04em; }

/* .shot img{ display:block; width:100%; height:100%; object-fit:cover; } */
.shot:has(img){
  /*   border:1px solid var(--edge);
  background:var(--card);
  box-shadow:var(--shadow); */
}
.shot:has(img) > :not(img){ display:none; }

/* ============================================================
RAIL
============================================================ */
/* overflow-x:auto forces the vertical axis to clip too, so the rail needs
padding for the halo to sit in — clipping stops at the padding edge. */
.rail{ overflow-x:auto; scrollbar-width:none; padding:12px 0 4px; margin-top:-12px; }
.rail::-webkit-scrollbar{ display:none; }
.rail__inner{ position:relative; min-width:720px; }

.rail__track{
  position:absolute; top:11px; height:2px; margin-top:-1px;
  left:calc(100% / 16); right:calc(100% / 16);
  background:var(--rail); border-radius:2px;
}
.rail__fill{
  position:absolute; top:0; left:0; height:100%; width:0;
  border-radius:2px;
  background:var(--accent-deep);   /* the travelling line is always the dark tone */
}

.rail__steps{
  position:relative; z-index:1;          /* paint dots over the rail line */
  display:grid; grid-template-columns:repeat(8,1fr);
  margin:0; padding:0; list-style:none;
}
.step{
  appearance:none; border:0; background:none;
  display:flex; flex-direction:column; align-items:center; gap:17px;
  padding:6px 4px 2px;
  font:inherit; font-size:15px; line-height:1.28;
  color:var(--future);
  text-align:center; text-wrap:balance;
  cursor:pointer;
  transition:color .4s ease;
}
/* every dot carries the halo; it just starts faint and fills in */
.step__dot{
  position:relative;
  width:11px; height:11px; border-radius:50%;
  background:var(--accent);
  opacity:.34;                                  /* fades the halo along with it */
  transition:opacity .45s ease, background .45s ease, transform .45s cubic-bezier(.3,1.4,.5,1);
}
.step__dot::before{
  content:"";
  position:absolute; inset:-8px;
  border-radius:50%;
  background:var(--accent);
  opacity:.34;
  transition:opacity .45s ease;
}
.step:hover .step__dot{ opacity:.66; }

.step[data-done]{ color:var(--ink); }
.step[data-done] .step__dot{ opacity:1; background:var(--accent-deep); }
.step[data-done] .step__dot::before{ opacity:.34; }

.step[data-now]{ color:var(--ink); }
.step[data-now] .step__dot{ opacity:1; background:var(--accent); transform:scale(1.05); }
.step[data-now] .step__dot::before{ opacity:.42; }
.step:hover{ color:var(--accent-deep); }
.step:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; border-radius:8px; }


.ptp-timeline-stage.mob {
  display: none;
}

/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width:900px){
  .deck.pc, .rule.pc, .rail.pc {
    display: none;
  }
  .ptp-timeline-stage.mob {
    display: block;
  }
  .ptp-timeline-stage,
  .ptp-timeline-stage *,
  .ptp-timeline-stage *::before,
  .ptp-timeline-stage *::after{
    box-sizing:border-box;
  }

  .ptp-timeline-stage{
/*     background:#f0f9fd; */
    padding:36px 20px 44px;
    color:#3f4f5d;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
  }

  .ptp-timeline-shell{
    max-width:460px;
    margin-left:auto;
    margin-right:auto;
  }

  .ptp-timeline-list{
    list-style:none;
    margin:0;
    padding:0;
  }

  /* --- one row: [ Step N ] [ dot ] [ copy ] ------------------- */
  .ptp-timeline-item{
    position:relative;
    display:grid;
    grid-template-columns:62px 22px 1fr;
    column-gap:14px;
    padding-bottom:34px;
  }

  .ptp-timeline-item:last-child{
    padding-bottom:0;
  }

  /* --- the rail -----------------------------------------------
  Drawn as one segment per row. 87px = 62 gutter + 14 gap + 11
  (half the dot). 16px = 5 dot offset + 11, i.e. the dot centre,
  so the line begins on dot one and stops on the last dot.
  ------------------------------------------------------------ */
  .ptp-timeline-item::before{
    content:"";
    position:absolute;
    left:87px;
    top:0;
    bottom:0;
    width:2px;
    transform:translateX(-50%);
    background:#55AEDD;
  }

  .ptp-timeline-item:first-child::before{
    top:16px;
  }

  .ptp-timeline-item:last-child::before{
    bottom:auto;
    height:16px;
  }

  .ptp-timeline-step{
    grid-column:1;
    font-size:13px;
    color:#0A2240;
    padding-top:6px;
    white-space:nowrap;
  }

  .ptp-timeline-node{
    grid-column:2;
    position:relative;
    z-index:1;
    align-self:start;
    width:22px;
    height:22px;
    margin-top:5px;
    border-radius:50%;
    background:#55AEDD50;
    display:grid;
    place-items:center;
  }

  .ptp-timeline-node::after{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:#55AEDD;
  }

  .ptp-timeline-content{
    grid-column:3;
  }

  .ptp-timeline-heading{
    margin:0 0 4px;
    font-size:19px;
    font-weight:700;
    line-height:1.25;
    letter-spacing:-.005em;
    color:#0A2240;
  }

  .ptp-timeline-copy{
    margin:0;
    font-size:15px;
    line-height:1.5;
    color:#0A2240;
  }

  /* ============================================================
  BELOW 900px
  Same three-column structure, tightened so the copy column
  keeps a readable line length. Rail moves to 74px
  (52 gutter + 12 gap + 10 half-dot); dot centre sits at 15px.
  ============================================================ */

  .ptp-timeline-stage{
    padding:32px 18px 40px;
  }

  .ptp-timeline-item{
    grid-template-columns:52px 20px 1fr;
    column-gap:12px;
    padding-bottom:30px;
  }

  .ptp-timeline-item::before{
    left:74px;
  }

  .ptp-timeline-item:first-child::before{
    top:15px;
  }

  .ptp-timeline-item:last-child::before{
    height:15px;
  }

  .ptp-timeline-step{
    font-size:12.5px;
  }

  .ptp-timeline-node{
    width:20px;
    height:20px;
    margin-top:5px;
  }

  .ptp-timeline-heading{
    font-size:18px;
  }

  .ptp-timeline-copy{
    font-size:14.5px;
  }
}

/* ============================================================
NARROW PHONES
Rail at 66px (46 gutter + 11 gap + 9 half-dot);
dot centre at 13px.
============================================================ */
@media (max-width:400px){
  .ptp-timeline-stage{
    padding:28px 14px 34px;
  }
  .ptp-timeline-item{
    grid-template-columns:46px 18px 1fr;
    column-gap:11px;
    padding-bottom:26px;
  }
  .ptp-timeline-item::before{
    left:66px;
  }
  .ptp-timeline-item:first-child::before{
    top:13px;
  }
  .ptp-timeline-item:last-child::before{
    height:13px;
  }
  .ptp-timeline-step{
    font-size:12px;
    padding-top:5px;
  }
  .ptp-timeline-node{
    width:18px;
    height:18px;
    margin-top:4px;
  }
  .ptp-timeline-heading{
    font-size:17px;
  }
  .ptp-timeline-copy{
    font-size:14px;
  }
}
}
@media (prefers-reduced-motion:reduce){
  .stage { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}