/* the path: a pinned scene, trail climbs from the coast to the summit as you scroll */
.path{position:relative;color:#fff;background:#0A1B45;isolation:isolate}
.path-stage{position:relative;padding:clamp(56px,7vw,96px) var(--gutter)}
.path-bg{position:absolute;inset:0;z-index:-1;overflow:hidden}
.path-bg img{width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.path-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,27,69,.72) 0%,rgba(10,27,69,.18) 34%,rgba(10,27,69,.18) 66%,rgba(10,27,69,.62) 100%),url(/assets/img/grain.png);background-size:auto,256px 256px}
.path-head{max-width:560px;display:flex;flex-direction:column;gap:12px}
.path-head .kicker{color:var(--saffron)}
.path-head .h2 i{color:var(--on-dark-italic)}
.path-head p{font-size:clamp(16px,1.3vw,18px);color:var(--on-dark);max-width:520px}
.stops{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:16px;max-width:560px}
.stop{padding:22px 24px;border-radius:18px;background:rgba(10,27,69,.62);border:1px solid rgba(214,224,245,.28);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;flex-direction:column;gap:8px}
.stop .k{font-family:var(--mono);font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--saffron)}
.stop h3{font-size:clamp(26px,2.4vw,34px);line-height:1.1}
.stop h3 i{color:var(--on-dark-italic)}
.stop p{font-size:16px;line-height:1.6;color:var(--on-dark)}
.stop .where{font-family:var(--mono);font-size:11px;letter-spacing:.1em;color:var(--on-dark-soft);opacity:.85;margin-top:4px}
.stop{overflow:hidden}
.stop-ph{width:calc(100% + 48px);max-width:none;height:170px;margin:-22px -24px 8px;object-fit:cover;border-bottom:1px solid rgba(214,224,245,.22)}
.path-svg{display:none}

/* live mode (script running) */
.path-live{height:520vh}
.path-live .path-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;padding-top:clamp(28px,4vw,56px);padding-bottom:0}
.path-live .path-svg{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.path-live .stops{position:absolute;left:var(--gutter);bottom:clamp(28px,7vh,72px);width:min(440px,calc(100% - var(--gutter)*2));margin:0;display:block}
.path-live .stop{position:absolute;left:0;right:0;bottom:0;opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s cubic-bezier(.2,.7,.2,1);pointer-events:none}
.path-live .stop.on{opacity:1;transform:none;pointer-events:auto}
.path-live .stop.past{opacity:0;transform:translateY(-16px)}
.t-base{fill:none;stroke:rgba(255,255,255,.42);stroke-width:2;stroke-dasharray:2 9;stroke-linecap:round}
.t-glow{fill:none;stroke:rgba(232,163,61,.35);stroke-width:10;stroke-linecap:round;filter:blur(6px)}
.t-go{fill:none;stroke:var(--saffron);stroke-width:3.5;stroke-linecap:round}
.t-dot{fill:var(--saffron);stroke:#fff;stroke-width:2.5}
.t-halo{fill:rgba(232,163,61,.28)}
.t-node{fill:#0A1B45;stroke:rgba(255,255,255,.8);stroke-width:2;transition:fill .4s,stroke .4s}
.t-node.on{fill:var(--saffron);stroke:#fff}
.t-lab{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;fill:#fff;opacity:.0;transition:opacity .4s;paint-order:stroke;stroke:rgba(10,27,69,.75);stroke-width:4px}
.t-lab.on{opacity:.95}
.path-hint{display:none}
.path-live .path-hint{display:flex;align-items:center;gap:8px;position:absolute;right:var(--gutter);bottom:26px;font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--on-dark-soft);transition:opacity .4s}
.path-live .path-hint.off{opacity:0}
@media (max-width:760px){
  .path-live .path-head p{display:none}
  .path-live .path-head .h2{font-size:30px}
  .path-live .stops{bottom:18px}
  .path-live .stop{padding:14px 16px;display:grid;grid-template-columns:84px minmax(0,1fr);column-gap:14px;row-gap:4px;align-items:center}
  .path-live .stop-ph{grid-row:1/span 2;width:84px;height:84px;margin:0;border-radius:12px;border:1px solid rgba(214,224,245,.3)}
  .path-live .stop .k{align-self:end}.path-live .stop h3{align-self:start}
  .path-live .stop p,.path-live .stop .where{grid-column:1/-1}
  .path-live .stop p{margin-top:6px}
  .path-live .stop h3{font-size:23px}
  .path-live .stop p{font-size:14.5px;line-height:1.5}
  .path-live .path-hint{display:none}
  .t-lab{display:none}
  .path-live .path-head .h2{transition:opacity .4s}
  .path-live.climbing .path-head .h2{opacity:0}
}
@media (prefers-reduced-motion:reduce){.path-live .stop{transition:none}}

.path-live .path-head p{transition:opacity .4s}
.path-live.climbing .path-head p{opacity:0}
@media (max-height:760px) and (min-width:761px){.path-live .stop-ph{height:120px}.path-live .path-head .h2{font-size:clamp(30px,3.2vw,44px)}.path-live .stops{bottom:24px}}
@media (min-width:761px) and (max-width:1080px){.path-live .path-head{max-width:42vw}.path-live .path-head p{font-size:15px}.path-live .stops{width:min(440px,40vw)}.path-live .stop-ph{height:130px}}

/* soundtrack control: sits beside the kicker, bars move while the music plays */
.path-sound{display:none}
.path-live .path-head .kicker{display:flex;align-items:center;gap:14px}
.path-live .path-sound{display:inline-flex;align-items:center;gap:8px;padding:6px 0;margin:-6px 0;background:none;border:0;color:var(--on-dark-soft);font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;transition:color .2s}
.path-live .path-sound::before{content:"";width:1px;height:11px;margin-right:6px;background:rgba(255,255,255,.35)}
.path-live .path-sound:hover,.path-live .path-sound.playing{color:#fff}
.path-sound:focus-visible{outline:2px solid var(--saffron);outline-offset:4px;border-radius:4px}
.eq{display:inline-flex;align-items:flex-end;gap:2px;height:11px}
.eq i{display:block;width:2px;height:11px;border-radius:1px;background:currentColor;transform:scaleY(.2);transform-origin:bottom;transition:transform .09s linear,background-color .2s}
.path-sound.playing .eq i{background:var(--saffron)}
.path-sound.playing.eq-css .eq i{animation:eq 1s ease-in-out infinite;transition:none}
.path-sound.playing.eq-css .eq i:nth-child(2){animation-duration:.8s;animation-delay:-.3s}
.path-sound.playing.eq-css .eq i:nth-child(3){animation-duration:1.2s;animation-delay:-.6s}
.path-sound.playing.eq-css .eq i:nth-child(4){animation-duration:.9s;animation-delay:-.2s}
.path-sound.playing.eq-css .eq i:nth-child(5){animation-duration:1.1s;animation-delay:-.5s}
@keyframes eq{0%,100%{transform:scaleY(.25)}35%{transform:scaleY(1)}65%{transform:scaleY(.5)}}
@media (prefers-reduced-motion:reduce){.path-sound.playing .eq i{animation:none!important;transform:scaleY(.7)!important}}
.stop-emoji{white-space:nowrap;margin-left:2px}
