

.stage {
  --st-paper: var(--paper, #e7ecea);
  --st-ink: var(--ink, #0c1012);
  --st-blue: #4da3ff;
  --st-red: #c3352b;
  --st-silver: #c8d0d2;
  --st-nav: 74px;
  --st-pad: 4vw;
  --st-rail: 152px;
  --st-h: clamp(620px, 100vh, 1100px);
  --st-ease: cubic-bezier(.66, 0, .18, 1);
  --st-dur: 720ms;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: var(--st-h);
  margin: 0;
  background: var(--st-ink);
  color: var(--st-paper);
  font-family: var(--body, system-ui, sans-serif);
}
@supports (height: 100svh) {
  .stage { --st-h: clamp(620px, 100svh, 1100px); }
}
.stage *, .stage *::before, .stage *::after { box-sizing: border-box; }


.stage .stage-frame {
  position: absolute;
  z-index: 0;
  top: 0; left: 0; width: 100%; height: 100%;
  transition: top var(--st-dur) var(--st-ease), left var(--st-dur) var(--st-ease),
    width var(--st-dur) var(--st-ease), height var(--st-dur) var(--st-ease);
}
.stage[data-layout="window"] .stage-frame {
  --st-win-w: min(52vw, calc((var(--st-h) - var(--st-nav) - var(--st-rail) - 56px) * 16 / 9));
  --st-win-h: calc(var(--st-win-w) * 9 / 16);
  width: var(--st-win-w);
  height: var(--st-win-h);
  left: calc(100% - 3vw - var(--st-win-w));
  top: calc(var(--st-nav) + (var(--st-h) - var(--st-nav) - var(--st-rail) - var(--st-win-h)) / 2);
}
.stage .stage-shots {
  position: absolute; inset: 0; overflow: hidden;
  background: #050708;
  touch-action: pan-y;
}
.stage .stage-shot {
  position: absolute; inset: 0; margin: 0;
  display: none;
}
.stage .stage-shot.is-active { display: block; z-index: 1; }
.stage .stage-shot.is-incoming { display: block; z-index: 2; }
.stage .stage-shot-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--stage-pos, 50% 50%);
  transform: translate3d(var(--st-px, 0), var(--st-py, 0), 0) scale(var(--st-zoom, 1));
}
.stage[data-layout="bleed"] .stage-shot-img { --st-zoom: 1.03; }
.stage[data-layout="window"] .stage-shot-img { object-position: 50% 50%; }


.stage .stage-corner {
  position: absolute; z-index: 3; width: 18px; height: 18px;
  border: 0 solid var(--st-silver); opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.stage[data-layout="window"] .stage-corner { opacity: .85; transition-delay: calc(var(--st-dur) - 200ms); }
.stage .stage-corner--tl { top: -9px; left: -9px; border-top-width: 2px; border-left-width: 2px; }
.stage .stage-corner--tr { top: -9px; right: -9px; border-top-width: 2px; border-right-width: 2px; }
.stage .stage-corner--bl { bottom: -9px; left: -9px; border-bottom-width: 2px; border-left-width: 2px; }
.stage .stage-corner--br { bottom: -9px; right: -9px; border-bottom-width: 2px; border-right-width: 2px; }


.stage .stage-wipe { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.stage .stage-wipe-edge {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(to bottom, transparent, var(--st-silver) 12%, #fff 50%, var(--st-blue) 88%, transparent);
  box-shadow: 0 0 14px rgba(77, 163, 255, .55);
  will-change: left, opacity;
}


.stage .stage-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage .stage-scrim::before, .stage .stage-scrim::after { content: ""; position: absolute; inset: 0; }
.stage .stage-scrim::before {
  background: linear-gradient(90deg, rgba(5, 7, 8, .9) 0%, rgba(5, 7, 8, .7) 20%,
    rgba(5, 7, 8, .34) 38%, rgba(5, 7, 8, .06) 52%, rgba(5, 7, 8, 0) 60%);
  transition: opacity var(--st-dur) var(--st-ease);
}
.stage[data-layout="window"] .stage-scrim::before { opacity: 0; }
.stage .stage-scrim::after {
  background:
    linear-gradient(to bottom, rgba(5, 7, 8, .6), rgba(5, 7, 8, 0) 150px),
    linear-gradient(to top, rgba(5, 7, 8, .92), rgba(5, 7, 8, .55) calc(var(--st-rail) * .8), rgba(5, 7, 8, 0) calc(var(--st-rail) + 90px));
}


.stage .stage-lead {
  position: absolute; z-index: 3;
  left: var(--st-pad); top: 0;
  width: min(40vw, 640px);
  height: calc(var(--st-h) - var(--st-rail));
  padding: calc(var(--st-nav) + clamp(18px, 6vh, 76px)) 0 26px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.stage .stage-lead > * { pointer-events: auto; }
.stage .stage-title {
  margin: 0;
  font-family: var(--display, "Arial Black", Impact, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .8;
  letter-spacing: -.012em;
  color: var(--st-paper);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.stage .stage-title-line {
  display: block; white-space: nowrap; width: max-content;
  font-size: var(--st-fs, clamp(52px, 7.6vw, 150px));
  
  -webkit-mask-image: linear-gradient(to bottom, #000 0 55%, transparent 55% 60%, #000 60%);
  mask-image: linear-gradient(to bottom, #000 0 55%, transparent 55% 60%, #000 60%);
}
.stage .stage-title-line + .stage-title-line { margin-top: .07em; }
.stage .stage-title-line--b { font-size: var(--st-fs-b, var(--st-fs, clamp(52px, 7.6vw, 150px))); }
.stage .stage-lower { max-width: 34em; }
.stage .stage-premise {
  margin: 0 0 20px;
  max-width: 24em;
  text-wrap: balance;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.4;
  color: var(--st-paper);
}
.stage .stage-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stage .stage-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; min-width: 44px; padding: 0 22px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--st-paper);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.stage .stage-btn--solid { background: var(--st-paper); color: var(--st-ink); }
.stage .stage-btn--solid:hover { background: #fff; border-color: #fff; }
.stage .stage-btn--line { background: rgba(5, 7, 8, .35); color: var(--st-paper); border-color: rgba(231, 236, 234, .7); }
.stage .stage-btn--line:hover { border-color: var(--st-paper); background: rgba(5, 7, 8, .6); }
.stage a:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 3px; }


.stage .stage-route {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: var(--st-rail);
  padding: 0 3vw 20px var(--st-pad);
  display: grid;
  grid-template-columns: minmax(0, 33fr) 44px minmax(0, 62fr) 44px;
  grid-template-areas: "cap prev line next";
  column-gap: 10px;
  align-items: end;
}
.stage .stage-track { display: contents; }
.stage .stage-captions { grid-area: cap; position: relative; align-self: end; padding-right: 2vw; min-height: 96px; }
.stage .stage-caption {
  display: none; margin: 0; max-width: 30em;
  font-size: 14px; line-height: 1.45; color: rgba(231, 236, 234, .86);
}
.stage .stage-caption.is-active { display: block; }
.stage .stage-cap-kicker {
  display: block; margin-bottom: 4px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--st-silver); opacity: .8;
}
.stage .stage-cap-title {
  display: block; margin-bottom: 2px;
  font-family: var(--display, sans-serif); font-weight: 700;
  font-size: 17px; letter-spacing: .02em; text-transform: uppercase; color: var(--st-paper);
}
.stage .stage-cap-text { display: block; }

.stage .stage-step {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; align-self: end; margin-bottom: 26px;
  color: var(--st-paper); text-decoration: none; font-size: 15px;
  border: 1px solid rgba(231, 236, 234, .45); background: rgba(5, 7, 8, .45);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.stage .stage-step:hover { border-color: var(--st-paper); background: rgba(5, 7, 8, .75); }
.stage .stage-step--prev { grid-area: prev; }
.stage .stage-step--next { grid-area: next; }
.stage .stage-line { grid-area: line; position: relative; --st-thumb-h: 63px; }
.stage .stage-stops {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
  position: relative;
}
.stage .stage-line::before { 
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--st-thumb-h) + 6px);
  height: 1px; background: rgba(200, 208, 210, .45);
  transform-origin: left center;
}
.stage .stage-stop {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 44px; color: rgba(231, 236, 234, .62); text-decoration: none;
  transition: color 200ms ease;
}
.stage .stage-stop-thumb {
  display: block; height: var(--st-thumb-h); overflow: hidden; position: relative;
  background: #111618; outline: 1px solid rgba(200, 208, 210, .25); outline-offset: -1px;
}
.stage .stage-stop-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.55) brightness(.62);
  transition: filter 240ms ease, transform 400ms var(--st-ease);
}
.stage .stage-stop-label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: clip;
}
.stage .stage-stop-num { color: var(--st-silver); opacity: .6; }
.stage .stage-stop:hover { color: var(--st-paper); }
.stage .stage-stop:hover img { filter: grayscale(.1) brightness(.9); }
.stage .stage-stop[aria-current="true"] { color: var(--st-paper); }
.stage .stage-stop[aria-current="true"] .stage-stop-thumb { outline: 2px solid var(--st-paper); outline-offset: -2px; }
.stage .stage-stop[aria-current="true"] img { filter: none; transform: scale(1.06); }
.stage .stage-stop[aria-current="true"] .stage-stop-num { color: var(--st-blue); opacity: 1; }
.stage .stage-marker { 
  position: absolute; left: 0; top: calc(var(--st-thumb-h) + 4px);
  width: 34px; height: 5px; margin-left: -17px;
  background: linear-gradient(90deg, var(--st-silver), #fff 60%, var(--st-blue));
  box-shadow: 0 0 12px rgba(77, 163, 255, .7);
  transform: translateX(var(--st-mx, 0px));
  transition: transform 640ms var(--st-ease);
  display: none;
  pointer-events: none;
}
.stage.stage--js .stage-marker { display: block; }
.stage .stage-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}


.stage:not(.stage--js) .stage-step { visibility: hidden; }
.stage:not(.stage--js):has(.stage-shot:target) .stage-shot { display: none; }
.stage:not(.stage--js):has(.stage-shot:target) .stage-shot:target { display: block; }
.stage .stage-shot { background: #050708 no-repeat var(--stage-pos, 50% 50%) / cover; }
.stage.stage--js .stage-shot { background-image: none !important; }
.stage:not(.stage--js) .stage-shot-img:not([src]) { opacity: 0; }
.stage:not(.stage--js):has(.stage-shot[data-layout="window"]:target) .stage-frame {
  --st-win-w: min(52vw, calc((var(--st-h) - var(--st-nav) - var(--st-rail) - 56px) * 16 / 9));
  --st-win-h: calc(var(--st-win-w) * 9 / 16);
  width: var(--st-win-w); height: var(--st-win-h);
  left: calc(100% - 3vw - var(--st-win-w));
  top: calc(var(--st-nav) + (var(--st-h) - var(--st-nav) - var(--st-rail) - var(--st-win-h)) / 2);
}
.stage:not(.stage--js):has(.stage-shot[data-layout="window"]:target) .stage-scrim::before { opacity: 0; }
.stage:not(.stage--js):has(.stage-shot[data-layout="window"]:target) .stage-corner { opacity: .85; }
.stage:not(.stage--js):has(.stage-shot[data-layout="window"]:target) .stage-shot-img { object-position: 50% 50%; --st-zoom: 1; }
.stage:not(.stage--js):has(.stage-shot:target) .stage-caption { display: none; }
.stage:not(.stage--js):has(.stage-shot:target) .stage-stop[aria-current="true"] { color: rgba(231, 236, 234, .62); }
.stage:not(.stage--js):has(.stage-shot:target) .stage-stop[aria-current="true"] .stage-stop-thumb { outline: 1px solid rgba(200, 208, 210, .25); outline-offset: -1px; }
.stage:not(.stage--js):has(.stage-shot:target) .stage-stop[aria-current="true"] img { filter: grayscale(.55) brightness(.62); transform: none; }
.stage:not(.stage--js):has(#scene-station:target) .stage-caption[data-key="station"],
.stage:not(.stage--js):has(#scene-platform:target) .stage-caption[data-key="platform"],
.stage:not(.stage--js):has(#scene-corridor:target) .stage-caption[data-key="corridor"],
.stage:not(.stage--js):has(#scene-roof:target) .stage-caption[data-key="roof"],
.stage:not(.stage--js):has(#scene-trucks:target) .stage-caption[data-key="trucks"],
.stage:not(.stage--js):has(#scene-dawn:target) .stage-caption[data-key="dawn"] { display: block; }
.stage:not(.stage--js):has(#scene-station:target) .stage-stop[data-key="station"],
.stage:not(.stage--js):has(#scene-platform:target) .stage-stop[data-key="platform"],
.stage:not(.stage--js):has(#scene-corridor:target) .stage-stop[data-key="corridor"],
.stage:not(.stage--js):has(#scene-roof:target) .stage-stop[data-key="roof"],
.stage:not(.stage--js):has(#scene-trucks:target) .stage-stop[data-key="trucks"],
.stage:not(.stage--js):has(#scene-dawn:target) .stage-stop[data-key="dawn"] { color: var(--st-paper); text-decoration: underline; text-underline-offset: 6px; }


@media (prefers-reduced-motion: no-preference) {
  .stage .stage-title-line { animation: stage-rise 900ms var(--st-ease) both; }
  .stage .stage-title-line--b { animation-delay: 120ms; }
  .stage .stage-lower { animation: stage-fade 700ms ease 380ms both; }
  .stage .stage-line::before { animation: stage-draw 1100ms var(--st-ease) 200ms both; }
  .stage:not(.stage--moved) .stage-shot.is-active .stage-shot-img { animation: stage-settle 1800ms var(--st-ease) both; }
}
@keyframes stage-rise { from { clip-path: inset(0 0 100% 0); transform: translateY(.18em); } to { clip-path: inset(0 0 -10% 0); transform: none; } }
@keyframes stage-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes stage-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stage-settle { from { opacity: .45; scale: 1.06; } to { opacity: 1; scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  .stage { --st-dur: 0ms; }
  .stage .stage-marker, .stage .stage-stop-thumb img, .stage .stage-scrim::before { transition: none; }
}


@media (max-width: 1099px) {
  .stage { --st-rail: 214px; }
  .stage .stage-route {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "cap cap cap" "prev line next";
    row-gap: 14px;
  }
  .stage .stage-captions { min-height: 0; padding-right: 0; }
  .stage .stage-caption { max-width: 46em; }
  .stage .stage-line { --st-thumb-h: 48px; }
  .stage .stage-stop-label { font-size: 10.5px; letter-spacing: .06em; }
}


@media (max-width: 759px) {
  .stage {
    --st-nav: 58px;
    --st-pad: 16px;
    --st-m: clamp(330px, 52vh, 520px);
    height: auto; min-height: 100vh;
    padding-bottom: 18px;
  }
  @supports (height: 100svh) {
    .stage { --st-m: clamp(330px, 52svh, 520px); min-height: 100svh; }
  }
  .stage .stage-frame { height: var(--st-m); }
  .stage[data-layout="window"] .stage-frame,
  .stage:not(.stage--js):has(.stage-shot[data-layout="window"]:target) .stage-frame {
    top: calc(var(--st-nav) + 6px); left: 12px;
    width: calc(100% - 24px); height: calc(var(--st-m) - var(--st-nav) - 6px);
  }
  .stage .stage-shot-img,
  .stage[data-layout="window"] .stage-shot-img,
  .stage:not(.stage--js):has(.stage-shot[data-layout="window"]:target) .stage-shot-img {
    object-position: var(--stage-pos-phone, 50% 50%);
  }
  .stage .stage-shot { background-position: var(--stage-pos-phone, 50% 50%); }
  .stage .stage-corner { width: 14px; height: 14px; }
  .stage .stage-corner--tl, .stage .stage-corner--tr { top: -5px; }
  .stage .stage-corner--bl, .stage .stage-corner--br { bottom: -5px; }
  .stage .stage-corner--tl, .stage .stage-corner--bl { left: -5px; }
  .stage .stage-corner--tr, .stage .stage-corner--br { right: -5px; }
  .stage .stage-scrim { bottom: auto; height: var(--st-m); }
  .stage .stage-scrim::before { display: none; }
  .stage .stage-scrim::after {
    background:
      linear-gradient(to bottom, rgba(5, 7, 8, .55), rgba(5, 7, 8, 0) 110px),
      linear-gradient(to top, var(--st-ink), rgba(12, 16, 18, .7) 70px, rgba(12, 16, 18, 0) 170px);
  }
  .stage .stage-lead {
    position: relative; left: auto; width: auto; height: auto;
    margin: 0 var(--st-pad);
    padding: calc(var(--st-m) - 44px) 0 0;
    gap: 18px;
  }
  .stage .stage-title-line { font-size: var(--st-fs, 16.5vw); }
  .stage .stage-premise { font-size: 16px; margin-bottom: 16px; }
  .stage .stage-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stage .stage-btn { padding: 0 10px; font-size: 12px; letter-spacing: .06em; }
  .stage .stage-route {
    position: relative; height: auto;
    margin-top: 26px; padding: 0 var(--st-pad);
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "line line line" "prev cap next";
    column-gap: 12px; row-gap: 16px;
    align-items: start;
  }
  .stage .stage-step { margin-bottom: 0; align-self: start; }
  .stage .stage-captions { min-height: 0; }
  .stage .stage-caption { font-size: 13.5px; }
  .stage .stage-cap-title { font-size: 15px; }
  .stage .stage-cap-kicker { font-size: 9.5px; letter-spacing: .03em; }
  .stage .stage-line { --st-thumb-h: 30px; }
  .stage .stage-stops { gap: 4px; }
  .stage .stage-stop { gap: 12px; min-height: 56px; }
  .stage .stage-stop-num { display: none; }
  .stage .stage-stop-label { font-size: 10px; letter-spacing: .02em; text-align: center; }
  .stage .stage-marker { width: 24px; margin-left: -12px; height: 4px; }
}

@media(min-width:760px){
  .stage[data-layout="panorama"] .stage-frame{top:var(--st-nav);height:calc(var(--st-h) - var(--st-nav) - var(--st-rail) - 132px);width:100%;left:0}
  .stage[data-layout="panorama"] .stage-scrim{visibility:hidden}
  .stage[data-layout="panorama"] .stage-lead{top:auto;bottom:var(--st-rail);left:var(--st-pad);right:var(--st-pad);height:132px;width:auto;padding:12px 0;display:grid;grid-template-columns:1fr minmax(340px,1fr);align-items:center;gap:5vw}
  .stage[data-layout="panorama"] .stage-title-line{font-size:clamp(34px,3.3vw,60px)}
  .stage[data-layout="panorama"] .stage-premise{margin-bottom:8px;font-size:16px;max-width:none}
  .stage[data-layout="panorama"] .stage-shot-img{object-position:50% 40%}
  
  .stage[data-layout="pursuit"] .stage-frame{width:74%;height:calc(var(--st-h) - var(--st-rail));left:0}
  .stage[data-layout="pursuit"] .stage-scrim::before{background:linear-gradient(to right,transparent 46%,rgba(12,16,18,.3) 57%,#0c1012 76%)}
  .stage[data-layout="pursuit"] .stage-lead{left:auto;right:var(--st-pad);width:32vw}
  .stage[data-layout="pursuit"] .stage-title-line{font-size:clamp(48px,5.7vw,110px)}
  .stage[data-layout="pursuit"] .stage-premise{max-width:22em}
  
  .stage[data-layout="firstlight"] .stage-lead{justify-content:flex-end;padding-bottom:clamp(32px,6vh,80px);gap:22px}
  .stage[data-layout="firstlight"] .stage-scrim::before{background:linear-gradient(12deg,rgba(6,12,17,.94) 3%,rgba(6,12,17,.79) 24%,transparent 64%)}
  .stage[data-layout="firstlight"] .stage-scrim::after{background:linear-gradient(to top,#080c10 0%,rgba(8,12,16,.80) 11%,transparent 28%)}
}
@media(max-width:759px){
  .stage[data-layout="panorama"]{--st-m:calc(var(--st-nav) + 56.25vw + 20px)}
  .stage[data-layout="panorama"] .stage-frame{top:var(--st-nav);height:56.25vw}
  .stage[data-layout="panorama"] .stage-shot-img{object-fit:contain}
  .stage[data-layout="panorama"] .stage-lead{padding-top:var(--st-m)}
  .stage[data-layout="panorama"] .stage-scrim{visibility:hidden}
  .stage[data-layout="pursuit"]{--st-m:calc(var(--st-nav) + 68vw + 32px)}
  .stage[data-layout="pursuit"] .stage-frame{top:var(--st-nav);height:68vw}
  .stage[data-layout="pursuit"] .stage-lead{padding-top:calc(var(--st-m) - 6px)}
  .stage[data-layout="pursuit"] .stage-scrim::after{background:linear-gradient(to top,var(--st-ink) 0%,transparent 24%)}
}
