/* ==========================================================================
   8Fifty Digital: Ready, Set, Launch.
   Page styles on top of scrollcraft.css. The engine stylesheet is the floor;
   nothing here restyles .sc-stage, .sc-copy or any [data-sc-*] mechanism.
   ========================================================================== */

@font-face { font-family: "Avant Garde"; src: url("assets/fonts/AvantGarde-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Avant Garde"; src: url("assets/fonts/AvantGarde-Book.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Trade Gothic"; src: url("assets/fonts/tradegothic.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Trade Gothic"; src: url("assets/fonts/tradegothic-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* The brand's own colours: near-black, and the gold from the old site. */
  --sc-canvas:     #0B0A08;
  --sc-surface:    #15130F;
  --sc-ink:        #F3EEE6;
  --sc-ink-soft:   #A69E90;
  --sc-accent:     #C29231;
  --sc-accent-ink: #0B0A08;
  --sc-font-display: "Avant Garde", "Century Gothic", "Futura", system-ui, sans-serif;
  --sc-font-text:    "Trade Gothic", "Helvetica Neue", Arial, system-ui, sans-serif;
  --sc-shadow-color: 36 30% 2%;

  --gold-hi: #E2B864;      /* lamps and lights only, never text */
  --bar-h: 4.25rem;
}

/* Light text on dark: a touch more leading and tracking than the floor. */
body { line-height: 1.66; letter-spacing: 0.004em; }
.sc-display { font-weight: 700; }
.sc-lede { font-family: var(--sc-font-text); letter-spacing: 0; line-height: 1.42; }
.gold { color: var(--sc-accent); }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.25rem;
  border-radius: var(--sc-r-sm);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-text); font-weight: 700; font-size: var(--sc-t-sm);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e1), inset 0 1px 0 rgb(255 240 210 / 0.35);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn--lg { min-height: 3.25rem; padding: 0 1.6rem; font-size: var(--sc-t-base); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #D2A040; } }
.btn:active { transform: translateY(1px); }

/* ------------------------------------------------------- the annunciator -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sc-4);
  padding-inline: var(--sc-gutter);
  transition: background-color var(--sc-d-slow) var(--sc-ease-out), box-shadow var(--sc-d-slow) var(--sc-ease-out);
}
.bar.is-solid {
  /* Opaque, on the drifting canvas: at 90% a 5rem heading ghosts through. */
  background: var(--sc-canvas);
  box-shadow: 0 1px 0 var(--sc-hairline);
}
.bar__mark { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; justify-self: start; min-height: 2.75rem; }
.bar__jet { width: 0.95rem; height: auto; fill: var(--sc-ink); }
.bar__word { font-family: var(--sc-font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase; }
.bar__cta { justify-self: end; }

.lamps { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.lamp {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem;
  font-weight: 700; font-size: var(--sc-t-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sc-ink-soft); text-decoration: none;
  transition: color var(--sc-d-base) var(--sc-ease-out);
}
.lamp i {
  width: 0.62rem; height: 0.62rem; border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--sc-ink) 40%, transparent);
  transition: background-color var(--sc-d-base) var(--sc-ease-out), border-color var(--sc-d-base) var(--sc-ease-out), box-shadow var(--sc-d-base) var(--sc-ease-out);
}
.lamp[data-state="armed"] { color: var(--sc-ink); }
.lamp[data-state="armed"] i { border-color: var(--sc-accent); }
.lamp[data-state="lit"] { color: var(--sc-ink); }
.lamp[data-state="lit"] i {
  border-color: var(--gold-hi); background: var(--sc-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 22%, transparent);
}
@media (hover: hover) and (pointer: fine) { .lamp:hover { color: var(--sc-ink); } }

@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; }
  .lamps { display: none; }
  .bar__word { font-size: 0.82rem; }
  .bar__cta { min-height: 2.5rem; padding: 0 0.9rem; font-size: 0.78rem; }
}

/* Count words: Ready. Set. Launch. The page's chapter signage. */
.countword { font-size: clamp(3.6rem, 1.4rem + 7vw, 8rem); letter-spacing: -0.045em; line-height: 0.9; }

/* ================================================================ HANGAR == */
.hangar__stage {
  background: transparent;
  --jw: min(74vw, 112svh);            /* scene width */
  --jb: -3svh;                        /* scene bottom */
}

/* The scene box carries the photograph's own proportions, so the door light,
   the floor line and the jet all stay registered to the same picture. */
.hangar__scene {
  position: absolute; left: 50%; bottom: var(--jb);
  width: var(--jw); aspect-ratio: 991 / 640;
  translate: -50% 0;
  pointer-events: none;
}
.hangar__scene--jet { z-index: 4; }
.hangar__jet {
  width: 100%; height: 100%; max-width: none;
  /* Pivot on the nose wheel's contact patch so the jet grows toward the
     camera without leaving the floor. */
  transform-origin: 49.3% 86.1%;
  transform: translate3d(0, calc(var(--sc-p, 0) * 2.4svh), 0) scale(calc(1 + var(--sc-p, 0) * 0.2));
  animation: jet-in 1600ms var(--sc-ease-out) both;
}
@keyframes jet-in { from { opacity: 0; filter: brightness(0.35); } }

/* Far plane: hangar doors opening behind the jet. Floor line is at 72% of the
   photograph, so the light stands on it. */
.hangar__door, .hangar__horizon, .hangar__floor { position: absolute; left: -15%; width: 130%; transform-origin: 50% 100%; }
.hangar__door {
  bottom: 28%; height: 62%;
  background:
    radial-gradient(34% 90% at 50% 100%, rgb(240 196 112 / 0.55), rgb(194 146 49 / 0.22) 45%, transparent 76%),
    radial-gradient(56% 60% at 50% 100%, rgb(194 146 49 / 0.20), transparent 72%);
  transform: scaleX(calc(0.62 + var(--sc-p, 0) * 0.6)) scaleY(calc(0.85 + var(--sc-p, 0) * 0.3));
  opacity: calc(0.7 + var(--sc-p, 0) * 0.3);
  animation: fade-in 2200ms var(--sc-ease-out) 200ms both;
}
.hangar__horizon {
  bottom: 28%; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(226 184 100 / 0.55) 30%, rgb(255 226 170 / 0.85) 50%, rgb(226 184 100 / 0.55) 70%, transparent);
  transform: scaleX(calc(0.62 + var(--sc-p, 0) * 0.38));
  animation: fade-in 2200ms var(--sc-ease-out) 200ms both;
}
/* Mid plane: the same light on the polished floor. */
.hangar__floor {
  top: 72%; height: 40%; transform-origin: 50% 0;
  background: radial-gradient(34% 70% at 50% 0%, rgb(194 146 49 / 0.22), transparent 72%);
  transform: scaleX(calc(0.6 + var(--sc-p, 0) * 0.6)) scaleY(calc(1 + var(--sc-p, 0) * 0.15));
  animation: fade-in 2200ms var(--sc-ease-out) 200ms both;
}
@keyframes fade-in { from { opacity: 0; } }

.hangar__title {
  position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--bar-h) + 6svh);
  margin: 0; text-align: center;
  font-family: var(--sc-font-display); font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 4rem); line-height: 0.92; letter-spacing: -0.045em;
  /* Recedes behind the jet: slower, smaller, dimmer. */
  transform-origin: 50% 100%;
  transform: translate3d(0, calc(var(--sc-p, 0) * -2svh), 0) scale(calc(1 - var(--sc-p, 0) * 0.08));
  opacity: clamp(0, calc(1.7 - var(--sc-p, 0) * 2), 1);
}
.hangar__title .ln { display: block; overflow: hidden; padding: 0.04em 0 0.1em; margin: -0.04em 0 -0.1em; }
.hangar__title .ln > span { display: inline-block; animation: line-up 1100ms var(--sc-ease-out) both; }
.hangar__title .ln + .ln > span { animation-delay: 90ms; }
@keyframes line-up { from { transform: translate3d(0, 108%, 0); } }

/* Front plane: dust caught in the door light, moving fastest. */
.hangar__haze { position: absolute; inset: -10% 0; z-index: 5; pointer-events: none; }
.hangar__haze i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgb(255 236 200 / 0.9), rgb(226 184 100 / 0.3) 50%, transparent 72%);
  opacity: calc(0.18 + var(--sc-p, 0) * 0.5);
}

.hangar__copy, .hangar__beat {
  position: absolute; z-index: 6; left: var(--sc-gutter); right: var(--sc-gutter); bottom: max(5svh, 1.5rem);
}
.hangar__copy { right: auto; width: min(24rem, calc(100vw - 2 * var(--sc-gutter))); }
/* The second beat answers from the other corner, so the two can overlap. */
.hangar__beat { left: auto; text-align: right; }
.hangar__sub { margin: 0 0 var(--sc-5); max-width: 21rem; font-size: var(--sc-t-lg); line-height: 1.42; color: var(--sc-ink); text-wrap: pretty; }
.hangar__beat { margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-t-xl); letter-spacing: -0.02em; line-height: 1.1; max-width: 16ch; }

@media (min-width: 700px) {
  /* Registered to the jet, not the screen: the nose apex sits 9.5% down the
     photograph (640/991 * 0.905 = 0.5845 of the scene width above its
     bottom), so the headline's baseline just meets it at any aspect ratio. */
  .hangar__title {
    top: auto; bottom: calc(var(--jb) + var(--jw) * 0.5845 - 0.16em);
    font-size: min(clamp(4rem, 0.4rem + 7.6vw, 9rem), 15svh);
  }
}
@media (max-width: 699px) {
  .hangar__stage { --jw: 128vw; --jb: 25svh; }
  .hangar__title { top: calc(var(--bar-h) + 9svh); }
  .hangar__sub { max-width: none; font-size: 1.12rem; }
}

/* ================================================================= READY == */
.ready__stage { display: grid; align-items: center; }
.ready__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sc-6); align-items: center; }
.ready__head { grid-column: 1 / span 5; }
.ready__head .sc-lede { margin-top: var(--sc-5); max-width: 18rem; color: var(--sc-ink-soft); }
.ready__status {
  margin: var(--sc-7) 0 0; display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: var(--sc-t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc-accent);
}
.ready__status i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 22%, transparent); }

.checks { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; }
.check {
  --c: clamp(0, calc((var(--sc-p, 1) - var(--t)) / 0.1), 1);
  position: relative; padding: var(--sc-5) 0 var(--sc-5) 2.6rem;
  border-top: 1px solid var(--sc-hairline);
}
.check:last-child { border-bottom: 1px solid var(--sc-hairline); }
.check__lamp {
  position: absolute; left: 0.2rem; top: calc(var(--sc-5) + 0.42em);
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--sc-ink) 35%, transparent);
}
.check__lamp::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--sc-accent);
  opacity: var(--c); transform: scale(calc(0.6 + var(--c) * 0.4));
}
.check__problem { margin: 0; font-size: var(--sc-t-lg); line-height: 1.38; }
/* The strike draws itself through every line of the problem, left to right. */
.check__problem span {
  background: linear-gradient(var(--sc-accent), var(--sc-accent)) 0 58% / calc(var(--c) * 100%) 2px no-repeat;
  color: color-mix(in oklab, var(--sc-ink) calc(100% - var(--c) * 42%), var(--sc-canvas));
}
.check__fix { margin: 0.35rem 0 0; color: var(--sc-accent); font-weight: 700; font-size: var(--sc-t-base); }
/* Without the engine (no JS) every line is simply cleared and answered. */
html:not(.sc-ready) .check { --c: 1; }
html:not(.sc-ready) .check__fix, html:not(.sc-ready) .ready__status { opacity: 1; }

@media (max-width: 860px) {
  .ready__grid { grid-template-columns: 1fr; gap: var(--sc-5); }
  .ready__head, .checks { grid-column: 1; }
  .ready__head .countword { font-size: clamp(3rem, 14vw, 4.5rem); }
  .ready__head .sc-lede { margin-top: var(--sc-3); max-width: none; font-size: 1.05rem; }
  .ready__status { margin-top: var(--sc-3); }
  .check { padding: 0.8rem 0 0.8rem 2.1rem; }
  .check__lamp { top: calc(0.8rem + 0.3em); width: 0.95rem; height: 0.95rem; }
  .check__problem { font-size: 1rem; line-height: 1.34; }
  .check__fix { font-size: 0.95rem; margin-top: 0.2rem; line-height: 1.35; }
}

/* =================================================================== SET == */
/* Directly after a pinned act: reduced top padding, see devices.md §8. */
.set { padding: clamp(3rem, 6vw, 6rem) 0 var(--sc-section); }
.set__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sc-3) var(--sc-7); margin-bottom: var(--sc-8); }
.set__head .sc-lede { color: var(--sc-ink-soft); max-width: 22rem; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger__row {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sc-4) var(--sc-6);
  padding: var(--sc-7) 0; border-top: 1px solid var(--sc-hairline);
}
.ledger__row:last-child { border-bottom: 1px solid var(--sc-hairline); }
.ledger__name { grid-column: 1 / span 5; margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-t-2xl); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.ledger__body { grid-column: 7 / span 6; }
.ledger__body p { margin: 0; max-width: 34rem; color: var(--sc-ink-soft); text-wrap: pretty; }
.ledger__body .ledger__eg { margin-top: var(--sc-4); color: var(--sc-ink); font-weight: 700; font-size: var(--sc-t-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.ledger__eg i { font-style: normal; color: var(--sc-accent); padding: 0 0.35em; }
.set__foot { margin: var(--sc-7) 0 0; color: var(--sc-ink-soft); }
@media (max-width: 860px) {
  .ledger__row { grid-template-columns: 1fr; padding: var(--sc-6) 0; }
  .ledger__name, .ledger__body { grid-column: 1; }
  .ledger__name { font-size: 2rem; }
  .set__head { margin-bottom: var(--sc-6); }
}

/* ================================================================ RUNWAY == */
.rw {
  --ph: 42svh;                         /* jet length on screen */
  --pw: calc(var(--ph) * 0.5312);      /* the mark's own aspect */
  --rw: calc(var(--pw) * 2.6);         /* runway width */
  --rx: 63vw;                          /* runway centre line */
  --cy: 55svh;                         /* jet centre */
  --P: 120px;                          /* paint period, set by site.js */
  background: #0A0908;
}
.rw > * { position: absolute; }
.rw-ground { inset: 0; transform-origin: var(--rx) var(--cy); will-change: transform; }
.rw-ground > * { position: absolute; }
.rw-terrain {
  inset: -80%;
  background:
    radial-gradient(40% 30% at 50% 50%, rgb(194 146 49 / 0.05), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.03' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 0.075  0 0 0 0 0.068  0 0 0 0 0.055  0 0 0 0.55 -0.18'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"),
    #0A0908;
}
.rw-strip {
  top: -80%; bottom: -80%; left: calc(var(--rx) - var(--rw) / 2); width: var(--rw);
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.22), transparent 18%, transparent 82%, rgb(0 0 0 / 0.22)),
    #2E2B26;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 0 80px 10px rgb(0 0 0 / 0.35);
}
/* Edge lines: continuous, so they never need to move. */
.rw-strip::before, .rw-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 0.45%; min-width: 2px;
  background: rgb(232 226 216 / 0.55);
}
.rw-strip::before { left: 3%; } .rw-strip::after { right: 3%; }

/* Everything periodic lives in one layer that moves by (distance mod P). */
.rw-roll {
  position: absolute; left: 0; right: 0; top: calc(-1 * var(--P)); bottom: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='a'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.96  0 0 0 0 0.9  0 0 0 0.11 0'/></filter><rect width='240' height='240' filter='url(%23a)'/></svg>") 0 0 / var(--P) var(--P);
  will-change: transform;
}
.rw-cl {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1.4%; min-width: 4px; translate: -50% 0;
  background: linear-gradient(to bottom, rgb(232 226 216 / 0.7) 0 50%, transparent 50% 100%) 0 0 / 100% var(--P);
}
.rw-cl--blur {
  width: 1.2%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(232 226 216 / 0.42), transparent);
}
.rw-lights, .rw-streak { position: absolute; top: 0; bottom: 0; width: 22px; }
.rw-lights--l, .rw-streak--l { left: -15px; } .rw-lights--r, .rw-streak--r { right: -15px; }
.rw-lights {
  background: radial-gradient(circle at 50% 50%, #FFE6B0 0 2px, rgb(226 184 100 / 0.75) 3px, rgb(194 146 49 / 0.18) 7px, transparent 10px) 0 0 / 22px calc(var(--P) / 2);
}
.rw-streak {
  opacity: 0;
  background: linear-gradient(90deg, transparent 30%, rgb(226 184 100 / 0.85) 50%, transparent 70%);
}

/* Markings that appear once: threshold, designator, touchdown zone. */
.rw-marks { top: 0; height: 100%; left: calc(var(--rx) - var(--rw) / 2); width: var(--rw); will-change: transform; }
.rw-marks > * { position: absolute; left: 8%; right: 8%; }
.rw-threshold { top: calc(var(--cy) + var(--ph) * 0.5 + 3svh); height: 11svh; display: flex; justify-content: space-between; }
.rw-threshold i { width: 7.5%; background: rgb(232 226 216 / 0.62); }
.rw-number {
  top: calc(var(--cy) - var(--ph) * 0.5 - 30svh); height: 22svh;
  display: grid; place-items: center;
  font-family: var(--sc-font-text); font-weight: 700; font-size: 14svh; line-height: 1;
  letter-spacing: 0.08em; color: rgb(232 226 216 / 0.6);
  transform: scaleY(1.45);
}
/* Touchdown zone: bar groups either side of the centreline. */
.rw-tdz {
  top: calc(var(--cy) - var(--ph) * 0.5 - 30svh - var(--at) * 100svh); height: 8svh;
  display: flex; justify-content: space-between; padding-inline: 4%;
}
.rw-tdz b { display: flex; gap: 0.5rem; width: 30%; }
.rw-tdz i { flex: 1; background: rgb(232 226 216 / 0.5); }
.rw-tdz--aim { height: 16svh; padding-inline: 10%; }
.rw-tdz--aim b { width: 22%; }

/* The shadow sits ON the ground, so it lives in the ground group. */
.rw-shadow {
  left: calc(var(--rx) - var(--pw) / 2); top: calc(var(--cy) - var(--ph) / 2);
  width: var(--pw); height: var(--ph);
  will-change: transform;
}
.rw-shadow svg { position: absolute; fill: #050404; }
.rw-shadow__sharp { inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.rw-shadow__soft { left: -23.89%; top: -12.69%; width: 147.78%; height: 125.38%; max-width: none; opacity: 0; }

.rw-night { inset: 0; background: #07070A; opacity: 0; pointer-events: none; }
.rw-deck, .rw-wisp { left: 50%; top: 0; max-width: none; height: auto; pointer-events: none; opacity: 0; will-change: transform, opacity; }

.rw-jet {
  left: calc(var(--rx) - var(--pw) / 2); top: calc(var(--cy) - var(--ph) / 2);
  width: var(--pw); height: var(--ph);
  will-change: transform;
}
.rw-jet svg {
  position: relative; width: 100%; height: 100%; display: block;
  fill: url(#jet-sheen); stroke: var(--sc-accent); stroke-width: 0.7; stroke-opacity: 0.8;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.5));
}
/* Afterburners: the bases of the two nacelle shapes. Physical light, so it
   gets a soft falloff, not a halo. */
.rw-burner {
  position: absolute; top: 79%; width: 22%; height: 34%; translate: -50% 0;
  background: radial-gradient(50% 60% at 50% 4%, rgb(255 236 196 / 0.95) 0 14%, rgb(232 178 80 / 0.7) 32%, rgb(194 146 49 / 0) 72%);
  transform-origin: 50% 0; transform: scaleY(0.4); opacity: 0;
}
.rw-burner--l { left: 14.1%; } .rw-burner--r { left: 85.9%; }

/* A column of density under the copy: only where the copy sits. */
.rw-scrim {
  inset: 0 auto 0 0; width: 50vw; pointer-events: none;
  background: linear-gradient(90deg, rgb(10 9 8 / 0.92) 0%, rgb(10 9 8 / 0.75) 45%, transparent 100%);
}
.rw-copy { z-index: var(--sc-z-copy); left: var(--sc-gutter); top: 50%; translate: 0 -50%; width: min(28rem, 36vw); }
.rw-copy .sc-lede { margin-top: var(--sc-5); color: var(--sc-ink); }
.rw-up { font-size: var(--sc-t-3xl); }
.rw-callout {
  z-index: var(--sc-z-copy); left: var(--sc-gutter); bottom: max(6svh, 1.5rem); margin: 0;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: var(--sc-t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc-ink-soft);
}
.rw-callout i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--sc-accent); }
.rw-callout span { min-width: 9em; }

@media (max-width: 860px) {
  .rw { --ph: 30svh; --rx: 50vw; --cy: 40svh; --rw: calc(var(--pw) * 2.45); }
  .rw-scrim {
    inset: auto 0 0 0; width: auto; height: 62svh;
    background: linear-gradient(to top, rgb(10 9 8 / 0.94) 0%, rgb(10 9 8 / 0.82) 40%, transparent 100%);
  }
  .rw-copy { top: auto; bottom: max(5svh, 1.25rem); translate: none; width: auto; right: var(--sc-gutter); }
  .rw-copy .countword { font-size: clamp(3rem, 14vw, 4.5rem); }
  .rw-copy .sc-lede { font-size: 1.05rem; margin-top: var(--sc-3); }
  .rw-up { font-size: clamp(2.2rem, 10vw, 3rem); }
  /* The runway fills a phone's width; the callout would sit on its markings. */
  .rw-callout { display: none; }
  .rw-number { top: calc(var(--cy) - var(--ph) * 0.5 - 21svh); height: 16svh; font-size: 10svh; }
}

/* ================================================================ ORIGIN == */
.origin { position: relative; padding: clamp(5rem, 12vw, 10rem) 0 var(--sc-section); overflow: clip; }
/* The cloud tops the jet just climbed through, thinning out. */
.origin__wisp {
  position: absolute; left: -10%; right: -10%; top: -20vh; height: 70vh; pointer-events: none;
  background: url("assets/cloud-wisp.webp") center top / cover no-repeat;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
}
.origin__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sc-6); align-items: end; }
.origin__fig { grid-column: 1 / span 7; margin: 0; }
.origin__fig img { width: 100%; height: auto; border-radius: var(--sc-r-sm); box-shadow: var(--sc-e3); }
.origin__fig figcaption { margin-top: var(--sc-3); font-size: var(--sc-t-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--sc-ink-soft); }
.origin__text { grid-column: 8 / span 5; padding-bottom: var(--sc-7); }
.origin__title { font-size: var(--sc-t-2xl); letter-spacing: -0.03em; line-height: 1.02; }
.origin__text > * + * { margin-top: var(--sc-5); }
.origin__text .sc-body { margin-top: var(--sc-5); }
.quote { margin: var(--sc-8) 0 0; padding-top: var(--sc-5); border-top: 1px solid var(--sc-hairline); }
.quote p { margin: 0; font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-lg); line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.quote footer { margin-top: var(--sc-4); font-weight: 700; font-size: var(--sc-t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-accent); }
@media (max-width: 860px) {
  .origin__grid { grid-template-columns: 1fr; }
  .origin__fig, .origin__text { grid-column: 1; }
  .origin__text { padding-bottom: 0; }
}

/* ================================================================= CLOSE == */
.close { min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--sc-section); }
.close__wrap { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sc-6) var(--sc-6); align-content: center; }
.close__lead { grid-column: 1 / span 6; }
.close__title { font-size: clamp(3.4rem, 1.2rem + 7.4vw, 8.5rem); letter-spacing: -0.045em; line-height: 0.9; }
.close__lead .sc-lede { margin-top: var(--sc-5); max-width: 24rem; color: var(--sc-ink-soft); }

.plan { grid-column: 7 / span 6; align-self: end; }
.plan__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-5) var(--sc-6); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--sc-t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.55rem 0.8rem;
  background-color: color-mix(in oklab, var(--sc-ink) 5%, transparent);
  border: 0; border-bottom: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm) var(--sc-r-sm) 0 0;
  color: var(--sc-ink); font-size: var(--sc-t-lg);
  transition: border-color var(--sc-d-fast) var(--sc-ease-out);
}
.field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.45; }
.field select { appearance: none; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--sc-accent) 50%) right 1.15rem center / 7px 7px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--sc-accent) 50%) right 0.75rem center / 7px 7px no-repeat,
              color-mix(in oklab, var(--sc-ink) 5%, transparent); }
.field select option { background: var(--sc-surface); color: var(--sc-ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--sc-accent); box-shadow: 0 1px 0 var(--sc-accent); }
.field [aria-invalid="true"] { border-bottom-color: #E07A5F; }
.field__hint { margin: 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.plan__error { margin: var(--sc-5) 0 0; color: #F0A58F; font-weight: 700; }

/* The last word of the sequence, at the heading's own scale. */
.launchbtn {
  margin-top: var(--sc-6); display: block; width: 100%;
  padding: 0.12em 0.32em 0.16em; border: 0; border-radius: var(--sc-r-md);
  background: var(--sc-accent); color: var(--sc-accent-ink); cursor: pointer;
  font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(3rem, 1rem + 5.4vw, 6.25rem);
  line-height: 1; letter-spacing: -0.045em; text-align: left;
  box-shadow: var(--sc-e2), inset 0 1px 0 rgb(255 240 210 / 0.35);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out);
}
.launchbtn > span { display: inline-block; transition: transform 120ms var(--sc-ease-out); }
.launchbtn .dot { display: inline; }
@media (hover: hover) and (pointer: fine) { .launchbtn:hover { background: #D2A040; } }
.launchbtn:active > span { transform: scale(0.97); }
.launchbtn:disabled { opacity: 0.6; cursor: progress; }
.launchbtn:focus-visible { outline-offset: 4px; }

.plan__done { grid-column: 7 / span 6; align-self: end; }
.plan__done .sc-lede { margin-top: var(--sc-5); }
.plan__done:focus { outline: none; }

.foot { margin-top: var(--sc-9); padding-block: var(--sc-6); border-top: 1px solid var(--sc-hairline); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sc-3) var(--sc-6); }
.foot__row p { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.foot__mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--sc-font-display); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.02em; min-height: 2.75rem; }
.foot__mark svg { width: 0.85rem; fill: var(--sc-accent); }
.foot__coords span { margin-left: 0.75em; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .close__wrap { grid-template-columns: 1fr; }
  .close__lead, .plan, .plan__done { grid-column: 1; }
  .plan__fields { grid-template-columns: 1fr; }
  .launchbtn { text-align: center; }
}

/* ================================================================ NO JS == */
/* Without the engine nothing pins and no cue opens, so hand back a plain,
   complete page: every stage a screen tall, every line visible. */
html:not(.js) [data-sc-stage] { position: relative; min-height: 100svh; overflow: clip; }
html:not(.js) [data-sc-cue], html:not(.js) [data-sc-in], html:not(.js) [data-sc-stagger] > * { opacity: 1; transform: none; }
html:not(.js) .rw-copy--b, html:not(.js) .hangar__beat { display: none; }

/* ======================================================== REDUCED MOTION == */
@media (prefers-reduced-motion: reduce) {
  .hangar__jet, .hangar__title, .hangar__door, .hangar__horizon, .hangar__floor { transform: none; }
  .hangar__jet, .hangar__door, .hangar__horizon, .hangar__floor, .hangar__title .ln > span { animation: none; }
  .hangar__door { transform: scaleX(0.7); }
  .hangar__horizon, .hangar__floor { transform: scaleX(0.8); }
  .launchbtn > span { transition: none; }
}
