#trail { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; overflow: visible; }
/* The walked line is drawn once and revealed by moving this clipping window: re-dashing a
   page-tall SVG every frame repaints it, and the repaint lags the scroll. */
#walkWin { position: absolute; left: 0; top: 0; z-index: -1; overflow: hidden; pointer-events: none; will-change: transform; }
#walkSvg { display: block; overflow: visible; will-change: transform; }
.tr-route { fill: none; stroke: rgba(185,168,255,.36); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .1 10; }
.tr-glow { fill: none; stroke: rgba(245,220,58,.14); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.tr-walk { fill: none; stroke: var(--flare); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tr-walk.def { stroke: var(--define); }
.tr-glow.def { stroke: rgba(91,169,204,.18); }
.tr-walk.dis { stroke: var(--discuss); }
.tr-glow.dis { stroke: rgba(176,156,245,.2); }
.tr-route.def { stroke: rgba(91,169,204,.5); }
.tr-route.dis { stroke: rgba(176,156,245,.5); }
.wpt {
  position: absolute; z-index: 1; left: 0; top: 0;
  width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  display: grid; place-items: center;
  font: var(--display-wght-2) 14px/1 var(--display); font-synthesis: none; color: var(--violet-glow);
  background: var(--void);
  box-shadow: 0 0 0 1.5px rgba(185,168,255,.55), 0 0 0 7px var(--void);
  transition: background .35s, color .35s, box-shadow .35s;
  pointer-events: none;
}
.wpt.reached { background: var(--flare); color: var(--flare-ink); box-shadow: 0 0 0 1.5px var(--flare), 0 0 0 7px var(--void), 0 0 26px 5px rgba(245,220,58,.42); }
.trail-start {
  position: absolute; z-index: 1; left: 0; top: 0; pointer-events: none;
  width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2.5px solid var(--flare); background: var(--void);
  box-shadow: 0 0 12px 2px rgba(245,220,58,.35);
  opacity: 0; transition: opacity .3s;
}
.trail-start.left { opacity: 1; }
#here {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  opacity: 0; transition: opacity .3s;
  will-change: transform;
}
#here.on { opacity: 1; }
#here.on.under { opacity: 0; transition-duration: .15s; }
#here .dot { position: absolute; inset: 0; border-radius: 50%; background: #fffbe0; box-shadow: 0 0 0 3px var(--flare), 0 0 20px 6px rgba(245,220,58,.55); }
#here .dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid rgba(245,220,58,.8); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

.word-line { position: relative; display: block; height: calc(var(--display-lh) * 1em); }
#wordCanvas { position: absolute; left: -.2em; top: -.4em; width: calc(100% + .2em + var(--gutter)); height: 2em; pointer-events: none; }

.lum .pop { background: none; }
.pop { position: relative; display: inline-block; white-space: nowrap; }
.pop > .pop-word, .pop > .pop-glow, .pop > .pop-lit { position: relative; display: inline-block; padding-bottom: .14em; margin-bottom: -.14em; }
.lum .pop-word { background: linear-gradient(176deg, #ffffff 20%, #d9cfff 55%, #9c8bd8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pop > .pop-glow, .pop > .pop-lit { position: absolute; left: 0; top: 0; pointer-events: none; }
.pop-glow { color: #f5dc3a; filter: blur(.09em); opacity: .5; }
.pop-lit { -webkit-background-clip: text; background-clip: text; color: transparent; }
.pop[data-pop="journey"] .pop-lit { background-image: linear-gradient(176deg, #fffbe6 12%, #fbe98a 50%, #f5dc3a 78%, #e9b93a 100%); }
.pop[data-pop="show"] .pop-glow { color: #c98bf0; }
.pop[data-pop="show"] .pop-lit { background-image: linear-gradient(100deg, #fff3fb 0%, #e6a8f0 18%, #b9a8ff 34%, #ffd9a0 52%, #f5dc3a 62%, #e6a8f0 80%, #fff3fb 100%); background-size: 300% 100%; }
.pop[data-pop="tangent"] .pop-glow { color: #8fb4ee; }
.pop[data-pop="tangent"] .pop-lit { background-image: linear-gradient(100deg, #eaf7ff 0%, #7cc3e6 28%, #9fb0f2 56%, #c9b8ff 82%, #f4efff 100%); }
.pop-trail { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.pop-trail .route { fill: none; stroke: rgba(185,168,255,.5); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .1 10; }
.pop-trail .halo { fill: none; stroke: rgba(245,220,58,.16); stroke-width: 12; stroke-linecap: round; }
.pop-trail .walk { fill: none; stroke: var(--flare); stroke-width: 2.6; stroke-linecap: round; }
.pop-trail .start { fill: var(--void); stroke: var(--flare); stroke-width: 2.5; }
.pop-trail .end { fill: var(--void); stroke: rgba(185,168,255,.6); stroke-width: 2; }
.pop-trail .end.lit { fill: var(--flare); stroke: var(--flare); filter: drop-shadow(0 0 7px rgba(245,220,58,.8)); }
.pop-trail .route.def { stroke: rgba(91,169,204,.6); }
.pop-trail .route.dis { stroke: rgba(176,156,245,.6); }
.pop-trail .halo.def { stroke: rgba(91,169,204,.2); }
.pop-trail .halo.dis { stroke: rgba(176,156,245,.22); }
.pop-trail .walk.def, .pop-trail .start.def { stroke: var(--define); }
.pop-trail .walk.dis, .pop-trail .start.dis { stroke: var(--discuss); }
.pop-mark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fffbe0; box-shadow: 0 0 0 3px var(--flare), 0 0 20px 6px rgba(245,220,58,.55); opacity: 0; pointer-events: none; }
.pop-mark.def { background: #d8f0ff; box-shadow: 0 0 0 3px var(--define), 0 0 20px 6px rgba(91,169,204,.6); }
.pop-mark.dis { background: #f1ebff; box-shadow: 0 0 0 3px var(--discuss), 0 0 20px 6px rgba(176,156,245,.6); }
.pop-ring { position: absolute; left: 50%; top: 45%; width: 1.3em; height: 1.3em; margin: -.65em 0 0 -.65em; border-radius: 50%; border: 2px solid rgba(230,168,240,.8); box-shadow: 0 0 30px 4px rgba(201,139,240,.35), inset 0 0 20px rgba(245,220,58,.25); opacity: 0; pointer-events: none; }

.zoom { position: relative; --col: max(0px, (100vw - 1440px) / 2); --capw: clamp(250px, 24vw, 360px); }
.zoom-sticky { position: relative; }
.zoom-rig { position: relative; width: min(1000px, 100%); margin-inline: auto; will-change: transform; }
.zoom-rig .screen { aspect-ratio: 1440 / 1100; }
.zoom-rig .screen .dim { position: absolute; inset: 0; background: #07060c; opacity: 0; pointer-events: none; }
.zoom-w { display: none; }
.zoom-w, .cap-w { container-type: inline-size; aspect-ratio: 1 / var(--a); }
.zoom-w video, .cap-w video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2.414cqi; }
.zoom-caps { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; max-width: 1240px; }
.zoom-caps h3 { font-size: clamp(24px, 2.1vw, 32px); margin-bottom: 10px; line-height: 1.02; }
.zoom-caps p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.cap-w { margin: 24px 0 0; max-width: 460px; }
.cap-w video { box-shadow: 0 30px 80px -30px rgba(106,87,166,.8), 0 0 0 1px rgba(255,255,255,.06); }
.zoom.is-cinematic { height: 1120vh; }
.zoom.is-cinematic .zoom-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; max-width: none; padding-inline: calc(var(--col) + var(--gutter-l)) calc(var(--col) + var(--gutter)); }
.zoom.is-cinematic .zoom-rig { width: min(900px, 60vw, calc((100vh - 170px) * 1.28), calc(min(100vw, 1440px) - var(--gutter-l) - var(--gutter) - var(--capw) - 48px)); margin: 28px 0 0; }
.zoom.is-cinematic .zoom-w { display: block; position: absolute; left: 38.472%; width: 40.278%; top: calc(50% - var(--a) * 26.364%); opacity: 0; }
.zoom.is-cinematic .zoom-caps { z-index: 2; position: absolute; left: calc(var(--col) + var(--gutter-l)); top: 50%; transform: translateY(-50%); display: block; margin: 0; width: var(--capw); }
.zoom.is-cinematic .zoom-caps li { position: absolute; top: 0; transform: translateY(-50%); opacity: 0; }
.zoom.is-cinematic .zoom-caps li:first-child { opacity: 1; }
.zoom.is-cinematic .cap-w { display: none; }
.zoom-shade { display: none; }
.zoom-status { display: none; }
.zoom.is-cinematic .zoom-status { display: flex; position: absolute; z-index: 2; left: calc(var(--col) + var(--gutter-l)); width: var(--capw); align-items: center; gap: 16px; opacity: 0; }
.zoom-status button { all: unset; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px; font: 600 14px/1 var(--text); color: var(--violet-glow); box-shadow: inset 0 0 0 1px rgba(185,168,255,.4); transition: color .3s, box-shadow .3s, background .3s; }
.zoom-status button:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }
.zs-glyph { width: 10px; height: 10px; flex: none; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.zoom-status.live button { color: var(--flare); background: rgba(245,220,58,.08); box-shadow: inset 0 0 0 1px rgba(245,220,58,.55); }
.zoom-status.live .zs-glyph { clip-path: none; border-radius: 50%; box-shadow: 0 0 10px 2px rgba(245,220,58,.6); animation: zs-pulse 1.6s ease-in-out infinite; }
@keyframes zs-pulse { 50% { opacity: .45; } }
.zs-steps { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.zs-steps li { height: 5px; border-radius: 3px; overflow: hidden; background: rgba(185,168,255,.16); transition: background .3s; }
.zs-steps li.on { background: rgba(185,168,255,.42); }
.zs-steps i { display: block; height: 100%; background: var(--violet-glow); transform: scaleX(0); transform-origin: left; }
.zoom-status.live .zs-steps i { background: var(--flare); box-shadow: 0 0 8px rgba(245,220,58,.7); }
.zoom.is-cinematic .zoom-shade { display: block; position: absolute; z-index: 1; inset: 0 auto 0 0; width: calc(var(--col) + var(--gutter-l) + var(--capw) + 120px); background: linear-gradient(90deg, var(--void) calc(100% - 150px), transparent); opacity: 0; pointer-events: none; }

.reel { position: relative; margin-top: clamp(80px, 12vw, 160px); }
.reel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.reel-head h3 { font-size: clamp(32px, 4vw, 64px); max-width: 16ch; }
.reel-head p { margin: 0; max-width: 40ch; color: var(--ink-soft); }
.reel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.reel-track { display: flex; gap: clamp(16px, 2vw, 32px); padding-left: var(--gutter-l); padding-right: var(--gutter); width: max-content; }
.plate { margin: 0; scroll-snap-align: center; flex: none; }
.plate img { height: min(62vh, 560px); width: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -30px rgba(106,87,166,.8), 0 16px 40px rgba(0,0,0,.5); }
.plate figcaption { margin-top: 16px; max-width: 34ch; }
.plate b { display: block; font-family: var(--display); font-weight: var(--display-wght-2); font-synthesis: none; font-size: 19px; }
.plate span { color: var(--ink-soft); font-size: 15px; }
.reel.is-cinematic .reel-viewport { overflow: visible; position: relative; z-index: 1; }
.reel.is-cinematic .plate figcaption { text-shadow: 0 0 5px var(--void), 0 0 10px var(--void), 0 0 16px var(--void); }
.reel.is-cinematic .reel-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.reel.is-cinematic .plate img { height: min(54vh, 500px); }
.reel-svg { position: absolute; z-index: 0; left: 0; top: 0; overflow: visible; pointer-events: none; }

.side-scene { position: relative; }
.side-sticky { position: relative; display: flex; flex-direction: column; gap: 22px; }
.side-caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.side-caps li { transition: opacity .35s; }
.side-caps h3 { font-size: clamp(20px, 1.7vw, 27px); margin-bottom: 6px; line-height: 1.02; }
.side-caps p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.pane {
  position: relative;
  background: var(--app-paper);
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 38px) clamp(20px, 3vw, 44px) 0;
  box-shadow: inset 0 0 0 1px var(--app-line), 0 60px 140px -50px rgba(106,87,166,.85), 0 24px 60px rgba(0,0,0,.5);
  font-family: var(--text);
  color: var(--app-ink);
  display: flex; flex-direction: column;
}
.pane-text { position: relative; z-index: 3; max-width: 72ch; padding: 0 clamp(18px, 1.8vw, 26px); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.62; }
.pane-text::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #242a28; border-inline: 1px solid var(--app-line);
  -webkit-mask-image: linear-gradient(transparent, #000 .7em, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(transparent, #000 .7em, #000 calc(100% - 1.3em), transparent);
}
.pane-text p { margin: 0 0 .7em; }
.pane-text b { font-weight: 600; }
.pane-text .brk { display: none; }
.pane-text .ghost { display: flex; height: 3.2em; height: 2lh; overflow: hidden; color: rgba(226,234,230,.42); }
.pane-text .ghost.up { height: 1.6em; height: 1lh; align-items: flex-end; }
.pane-text .ghost.down { margin-bottom: 0; -webkit-mask-image: linear-gradient(#000, transparent 92%); mask-image: linear-gradient(#000, transparent 92%); }
.sel {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 1px 0;
  border-bottom: 1.5px solid transparent;
}
.sel.def { background-image: linear-gradient(rgba(91,169,204,.34), rgba(91,169,204,.34)); border-bottom-color: rgba(91,169,204,.9); }
.sel.dis { background-image: linear-gradient(rgba(156,139,216,.34), rgba(156,139,216,.34)); border-bottom-color: rgba(156,139,216,.8); }
.toolbar {
  position: absolute; z-index: 5; left: 0; top: 0;
  display: flex; gap: 2px; padding: 5px;
  background: #2a302e; border-radius: 12px;
  box-shadow: inset 0 0 0 1px #3e4643, 0 12px 30px rgba(0,0,0,.5);
  opacity: 0;
}
.toolbar button {
  all: unset; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 8px; font: 500 14px/1 var(--text); color: #cfd9d4; cursor: default;
  transition: background .25s, color .25s;
}
.toolbar button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.toolbar button.press-def { background: rgba(91,169,204,.32); color: #fff; }
.toolbar button.press-dis { background: rgba(156,139,216,.34); color: #fff; }
.fork-cards { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); margin-top: 84px; }
.fcard { position: relative; z-index: 5; }
.fcard-in { height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.fcard-in img { width: 100%; }
.fork-svg { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; pointer-events: none; }
.fork-svg.top { z-index: 4; }
.fork-node { position: absolute; z-index: 6; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--void); box-shadow: 0 0 0 1.5px rgba(185,168,255,.6), 0 0 0 5px var(--app-paper); transition: background .3s, box-shadow .3s; pointer-events: none; }
.fork-node.reached { background: var(--flare); box-shadow: 0 0 0 1.5px var(--flare), 0 0 0 5px var(--app-paper), 0 0 18px 4px rgba(245,220,58,.45); }
.fork-head { position: absolute; z-index: 6; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; opacity: 0; pointer-events: none; }
.fork-head.def { background: #d8f0ff; box-shadow: 0 0 0 2.5px var(--define), 0 0 18px 6px rgba(91,169,204,.7); }
.fork-head.dis { background: #f1ebff; box-shadow: 0 0 0 2.5px var(--discuss), 0 0 18px 6px rgba(176,156,245,.7); }
.fork-tag { position: absolute; z-index: 6; left: 0; top: 0; padding: 4px 10px 5px; border-radius: 999px; font: 600 13px/1 var(--text); color: #0b1016; opacity: 0; pointer-events: none; white-space: nowrap; }
.fork-tag.def { background: var(--define); }
.fork-tag.dis { background: var(--discuss); }
.side-scene.is-cinematic { height: 520vh; }
.side-scene.is-cinematic .side-sticky { position: sticky; top: 56px; height: calc(100vh - 56px); padding-block: 22px 0; }
.side-scene.is-cinematic .pane { flex: 1; min-height: 0; }
.side-scene.is-cinematic .fcard { min-height: 0; }
@media (min-width: 901px) {
  .pane { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(24px, 3vw, 44px); padding-top: 0; padding-bottom: clamp(136px, 18vh, 190px); }
  .pane-text { grid-column: 2; grid-row: 1; width: 25.25em; max-width: none; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; }
  .pane-text .brk { display: inline; }
  .fork-cards { display: contents; }
  .fcard.def { grid-column: 1; grid-row: 1 / 3; }
  .fcard.dis { grid-column: 3; grid-row: 1 / 3; }
  .fcard { height: min(70vh, 620px); width: min(100%, 410px); justify-self: center; }
  .side-scene.is-cinematic .fcard { height: auto; }
  .fcard-in img { will-change: transform; }
}

@media (max-width: 1100px) {
  .side-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
  .side-caps p { display: none; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .side-caps p { display: none; }
  .side-scene.is-cinematic .side-sticky { gap: 16px; padding-top: 16px; }
}
@media (max-width: 900px) {
  .zoom-caps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .plate img { height: 360px; }
  .side-sticky { gap: 0; padding-block: 64px 72px; }
  .side-caps, .pane, .fork-cards { display: contents; }
  .side-caps p { display: block; }
  .side-caps li { position: relative; z-index: 5; margin-top: 44px; }
  .side-caps h3, .side-caps p { text-shadow: 0 0 5px var(--void), 0 0 10px var(--void), 0 0 16px var(--void); }
  .side-caps li:nth-child(1) { order: 1; margin-top: 0; }
  .pane-text { order: 2; margin: 22px 10px 0 18px; }
  .side-caps li:nth-child(2) { order: 3; }
  .fcard.def { order: 4; }
  .side-caps li:nth-child(3) { order: 5; }
  .fcard.dis { order: 6; }
  .side-caps li:nth-child(4) { order: 7; margin-top: 150px; }
  .fcard { margin: 56px 10px 0 18px; }
  .fcard-in { max-height: 380px; }
  .fork-svg.over { z-index: 5; }
  .fork-head { z-index: 7; }
  .fork-svg.over, #walkTop { mix-blend-mode: lighten; opacity: .45; }
  #walkTop { position: absolute; left: 0; top: 0; z-index: 5; overflow: hidden; pointer-events: none; will-change: transform; }
  #walkTop svg { display: block; overflow: visible; will-change: transform; }
}
@media (max-width: 520px) {
  .toolbar button span { display: none; }
  .wpt { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; box-shadow: 0 0 0 1.5px rgba(185,168,255,.55), 0 0 0 5px var(--void); }
}
@media (prefers-reduced-motion: reduce) {
  #here .dot::after { display: none; }
}
