/* Deltaflow Jetwing — landing page */

:root {
  --bg: #050505;
  --ink: #E8E8E4;
  --ink-2: #B4B4AF;
  --ink-3: #9A9A95;
  --rule: #3A3A38;
  --accent: #C4A57E;
  --edge: max(24px, calc((100vw - 1200px) / 2));
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: none; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: var(--ink); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.skip:focus { top: 16px; }

.container { padding-inline: var(--edge); }

/* ---------- Shared type ---------- */

.eyebrow, .tag, .head, .stats__head, .spec__head, .nav__links a, .nav__meta, .scroll-cue, .footer__meta {
  font-family: var(--mono);
  text-transform: uppercase;
}

.eyebrow { font-size: 14px; letter-spacing: 0.2em; color: var(--accent); }

.tag {
  font-size: 13px; letter-spacing: 0.16em; color: var(--accent);
  margin-bottom: 10px;
}

.display {
  margin: 14px 0 0;
  font-size: clamp(44px, min(6.6vw, 10.5vh), 112px);
  line-height: 0.94;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.accent { color: var(--accent); transition: color .6s ease; }

.lede {
  margin-top: 28px;
  max-width: 400px;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.38;
  font-weight: 500;
}

.item p:not(.tag), .callouts p:not(.tag), .timeline p:not(.tag), .builtfor li p:not(.tag), .spec__row p {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.5;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--edge) 18px;
  background: linear-gradient(to bottom, rgba(5,5,5,.92), rgba(5,5,5,.6) 60%, rgba(5,5,5,0));
}
.nav__brand {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px;
}
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__meta { font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); }

/* ---------- Flight stage (sticky, scroll-driven) ---------- */

.flight { position: relative; }
.hold { height: var(--hold, 60vh); }

.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.stage__text {
  position: absolute; left: var(--edge); top: max(120px, 14vh);
  z-index: 3; max-width: min(1200px, calc(100vw - 2 * var(--edge)));
}

[data-in] { will-change: opacity, transform; }
.js [data-in], .js .craft { opacity: 0; }

.craft {
  position: absolute; margin: 0; z-index: 1;
  left: var(--x); top: var(--y); width: var(--w);
  mix-blend-mode: lighten;
  will-change: transform, opacity, filter;
  transform-origin: 40% 60%;
}
.craft img {
  width: 100%; height: auto;
  -webkit-mask-image: var(--mask-a), linear-gradient(to left, transparent 0, #000 7%);
          mask-image: var(--mask-a), linear-gradient(to left, transparent 0, #000 7%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* Positions: image height = width × 0.359. Right edges sit past the screen edge so render crops stay hidden. */
.craft--hero {
  --w: min(82vw, 150vh);
  --x: calc(100vw - var(--w) * 0.86);
  --y: calc(100% - var(--w) * 0.359 - 5vh);
  --mask-a: linear-gradient(to bottom, transparent 0, #000 24%);
}
.craft--night {
  /* close to camera: helmet a little left of centre, low in frame, wings filling the right */
  --w: min(140vw, 230vh);
  --x: calc(36vw - var(--w) * 0.47);
  --y: calc(80% - var(--w) * 0.359 * 0.79);
  --mask-a: linear-gradient(to bottom, transparent 0, transparent 6%, #000 36%);
}
.craft--systems {
  --w: min(118vw, 205vh);
  --x: calc(100vw - var(--w) * 0.8);
  --y: calc(100% - var(--w) * 0.359);
  --mask-a: linear-gradient(to bottom, #000 88%, transparent 100%);
}
.craft--missions {
  --w: min(96vw, 160vh);
  --x: calc(100vw - var(--w) * 0.97);
  --y: calc(100% - var(--w) * 0.357 - 6vh);
  --mask-a: linear-gradient(#000, #000);
}

.terrain {
  position: absolute; inset: 0 0 auto 0; width: 100%; height: 38vh; object-fit: cover;
  opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 25%, transparent 100%);
}

.scroll-cue {
  position: absolute; left: var(--edge); bottom: max(28px, 4vh); z-index: 3;
  font-size: 12px; letter-spacing: 0.3em; color: var(--ink-3);
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 40px; margin-top: 12px; background: var(--accent);
  animation: cue 2.2s ease-in-out infinite; transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Systems: callouts with leader lines */
.callouts { margin-top: 40px; display: flex; flex-direction: column; gap: 26px; max-width: 300px; }
.callout p:not(.tag) { font-size: 15px !important; line-height: 1.45 !important; color: var(--ink) !important; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.leaders line { stroke: var(--accent); stroke-width: 1; }
.leaders circle { fill: var(--accent); }
.callouts--list { display: none; }

/* Missions: route loop */
.route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.route__path { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 7; }
.route__dots circle { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
.route__dots text { fill: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }

.scenario {
  position: absolute; z-index: 3;
  right: var(--edge); top: max(130px, 15vh);
  width: min(380px, 30vw);
  font-size: 18px; line-height: 1.5;
}

/* ---------- Details (normal flow) ---------- */

.details { position: relative; z-index: 4; padding-block: 0 12vh; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; max-width: 980px; }

.stats { margin-top: 12vh; }
.stats__head, .spec__head {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; letter-spacing: 0.16em; color: #8C8C88;
  border-top: 1px solid var(--rule); padding-top: 16px;
}
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.stats__grid div { display: flex; flex-direction: column-reverse; gap: 10px; }
.stats__grid dd { font-size: clamp(48px, 6vw, 84px); line-height: 1; font-weight: 800; font-stretch: 125%; }
.stats__grid dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }

.spec { max-width: 980px; margin-left: auto; }
.spec__row {
  display: grid; grid-template-columns: 220px 220px 1fr; align-items: baseline; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid #2C2C30;
}
.spec__head + .spec__row { margin-top: 8px; }
.spec__word { font-size: 44px; line-height: 1; font-weight: 800; font-stretch: 125%; text-transform: uppercase; }
.spec__row .tag { margin: 0; }

.statement {
  margin-top: 12vh; max-width: 760px;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; font-weight: 800; font-stretch: 125%; text-transform: uppercase;
}

.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; row-gap: 48px; border-top: 1px solid var(--rule); padding-top: 36px; }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--rule); }
.timeline li { position: relative; padding-top: 30px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--bg);
}

.builtfor { margin-top: 14vh; }
.builtfor .head { font-size: 12px; letter-spacing: 0.16em; color: #8C8C88; border-top: 1px solid var(--rule); padding-top: 16px; }
.builtfor ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }

/* ---------- Footer ---------- */

.footer { padding-block: 10vh calc(64px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); margin-inline: var(--edge); padding-inline: 0; }
.footer__logo { width: min(720px, 100%); height: auto; }
.footer__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: 13px; letter-spacing: 0.14em; color: var(--ink-3); }
.footer__meta a { color: var(--ink-3); text-decoration: none; }
.footer__meta a:hover { color: var(--ink); }

/* ---------- Narrow and portrait screens ---------- */

@media (max-width: 1100px) {
  .nav__meta { display: none; }
  .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline, .builtfor ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .spec__row { grid-template-columns: 180px 1fr; }
  .spec__row p { grid-column: 2; }
}

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .nav__links { display: none; }
  .hold { height: calc(var(--hold, 60vh) * 0.55); }
  .stage__text { top: max(96px, 11vh); right: var(--edge); }
  .display { font-size: clamp(40px, min(13vw, 7.6vh), 96px); }
  .lede { max-width: 520px; }

  .craft--hero     { --w: 150vw; --x: calc(4vw - var(--w) * 0.17);  --y: calc(100% - var(--w) * 0.359 - 4vh); }
  .craft--night    { --w: 230vw; --x: calc(2vw - var(--w) * 0.46);  --y: calc(100% - var(--w) * 0.359 * 0.95); }
  .craft--systems  { --w: 200vw; --x: calc(2vw - var(--w) * 0.30);  --y: calc(100% - var(--w) * 0.359); }
  .craft--missions { --w: 170vw; --x: calc(4vw - var(--w) * 0.345); --y: calc(100% - var(--w) * 0.357 - 5vh); }

  .callouts:not(.callouts--list), .leaders, .route, .scroll-cue { display: none; }
  .callouts--list { display: grid; gap: 32px; margin: 0 0 9vh; max-width: none; }

  .scenario { position: absolute; left: var(--edge); right: var(--edge); top: auto; bottom: calc(170vw * 0.357 + 7vh); width: auto; font-size: 17px; }
  .terrain { height: 26vh; }

  .modes, .systems, .timeline, .builtfor ul { grid-template-columns: 1fr; gap: 36px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .spec__row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .spec__row p { grid-column: auto; }
  .spec__word { font-size: 36px; }

  .timeline { border-top: 0; border-left: 1px solid var(--rule); padding-left: 28px; gap: 32px; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -34px; top: 4px; }
}

@media (max-width: 820px) and (max-height: 700px) {
  .lede { margin-top: 18px; font-size: 17px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in], .js .craft { opacity: 1; }
  .hold { height: 0; }
  .stage { position: relative; height: 100vh; height: 100svh; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* =========================================================
   Cinematic layer
   ========================================================= */

/* Line-mask headline reveals */
.display .ln { display: block; overflow: hidden; padding: 0.04em 0 0.06em; margin: -0.04em 0 -0.06em; }
.display .ln > span { display: block; will-change: transform; }
.display em { font-style: normal; }
.js .display .ln { opacity: 1; }
.js .display .ln > span { transform: translateY(110%); }

/* Chapter counter inside eyebrows */
.eyebrow { display: flex; align-items: baseline; gap: 14px; }
.eyebrow__n { color: var(--ink-3); letter-spacing: 0.14em; }

/* Opening curtain */
.curtain {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg); pointer-events: none;
}
.curtain img { width: 110px; height: auto; opacity: 0; animation: curtain-mark 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.curtain { animation: curtain-out .7s cubic-bezier(.7,0,.3,1) .85s forwards; }
@keyframes curtain-mark { 0% { opacity: 0; transform: scale(.86); filter: blur(6px); } 45% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: scale(1.06); } }
@keyframes curtain-out { to { opacity: 0; visibility: hidden; } }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .055;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

/* Stage vignette */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 60% 55%, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* Speed streaks that trail the aircraft (driven by real velocity) */
.streak {
  position: absolute; height: 1px; transform-origin: 0 50%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,0));
  mix-blend-mode: screen;
}

/* Nav progress per chapter */
.nav__links a { position: relative; border-bottom: 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(var(--prog, 0)); transform-origin: 0 50%;
}
.nav__links a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: rgba(255,255,255,.12);
}

/* Night: rain + lightning */
.rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(80% 70% at 70% 35%, rgba(200,206,255,.55), rgba(158,166,232,.12) 60%, transparent 100%); mix-blend-mode: screen; }

/* Systems: target pings */
.leaders .ping { fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ping 2.4s cubic-bezier(.2,.7,.2,1) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* Missions: marker + clock */
.route__marker { fill: #fff; filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 14px var(--accent)); }
.clock {
  position: absolute; z-index: 3; left: var(--edge); bottom: max(32px, 5vh);
  display: grid; gap: 6px; font-family: var(--mono); text-transform: uppercase;
}
.clock__label { font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); }
.clock__time { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.clock__step { font-size: 13px; letter-spacing: 0.16em; color: var(--accent); }

/* Closing */
.closing { padding-block: 16vh 14vh; }
.closing__line {
  font-size: clamp(44px, 11vw, 150px); line-height: .92; font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.closing .accent { color: #C4A57E; }
.closing__sub { margin-top: 36px; max-width: 520px; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; font-weight: 500; color: var(--ink-2); }

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .clock { display: none; }
  .stage::after { background: radial-gradient(140% 80% at 50% 70%, transparent 55%, rgba(0,0,0,.5) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .curtain, .grain, .rain, .flash, .streak { display: none; }
  .js .display .ln > span { transform: none; }
  .leaders .ping { animation: none; }
}

/* =========================================================
   v3: buttons, hero CTA, callouts, summary, contact, footer
   ========================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--bg); background: var(--accent); border: 1px solid var(--accent);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.btn:hover { color: var(--bg); background: #fff; border-color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(232,232,228,.32); }
.btn--ghost:hover { background: transparent; color: #fff; border-color: #fff; }
.nav__cta { min-height: 40px; padding: 0 16px; font-size: 12px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Systems callouts: placed by script so every leader line runs level and never crosses */
.stage > .callouts {
  position: absolute; left: var(--edge); top: 0; z-index: 3; width: 300px; max-width: 300px; margin: 0;
  display: block;
}
.stage > .callouts .callout { position: absolute; left: 0; width: 300px; }
.stage > .callouts .tag { margin-bottom: 8px; }

/* Summary sheet */
.summary { padding-block: 16vh 10vh; border-top: 1px solid var(--rule); }
.summary__head { max-width: 760px; }
.summary__title {
  margin: 18px 0 0; font-size: clamp(40px, 5vw, 72px); line-height: 1; font-weight: 900; font-stretch: 125%;
  letter-spacing: -0.01em;
}
.summary__intro { margin-top: 24px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 640px; }

.sheet { margin-top: 10vh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; row-gap: 64px; }
.sheet__group { margin: 0; }
.sheet__label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.sheet__row {
  display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid #1E1E21;
}
.sheet__row dt { font-size: 15px; color: var(--ink-3); }
.sheet__row dd { font-size: 17px; line-height: 1.45; color: var(--ink); margin: 0; }
.sheet__note { margin-top: 48px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Contact band */
.contact { padding-block: 10vh 14vh; }
.contact__inner {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: end;
  border-top: 1px solid var(--rule); padding-top: 8vh;
}
.contact__title { margin: 0; font-size: clamp(44px, 5.6vw, 92px); line-height: .94; font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; }
.contact .accent { color: #C4A57E; }
.contact__side p { color: var(--ink-2); font-size: 19px; line-height: 1.5; margin-bottom: 22px; max-width: 360px; }
.contact__side .btn { text-transform: none; letter-spacing: 0.02em; font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--rule); margin: 0; padding: 0; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; padding-block: 72px 56px; }
.footer__brand .footer__logo { width: min(420px, 100%); height: auto; }
.footer__brand p { margin-top: 20px; color: var(--ink-3); font-size: 16px; max-width: 360px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer__h { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer__cols li + li { margin-top: 10px; }
.footer__cols a { color: var(--ink); text-decoration: none; font-size: 16px; }
.footer__cols a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #1E1E21;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.footer__bottom a { color: var(--ink-3); text-decoration: none; }
.footer__bottom a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .sheet { grid-template-columns: 1fr; }
}
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .nav__cta { display: none; }
  .stage > .callouts { display: none; }
  .contact__inner, .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .sheet__row { grid-template-columns: 1fr; gap: 4px; }
  .cta { flex-wrap: nowrap; gap: 10px; margin-top: 24px; }
  .cta .btn { flex: 0 0 auto; min-height: 44px; padding: 0 16px; font-size: 12px; }
}

.stage > .callouts.is-tight .callout p:not(.tag) { display: none; }
.stage > .callouts.is-tight .tag { margin-bottom: 0; }

/* =========================================================
   v4: continuous scenes — detail panels rise over the pinned stage
   ========================================================= */
.panel {
  position: relative; z-index: 5;
  padding-top: 22vh;
  background: linear-gradient(to bottom, rgba(5,5,5,0) 0, rgba(5,5,5,.82) 26vh, rgba(5,5,5,.93) 40vh, rgba(5,5,5,.95) 100%);
}
.panel::after { /* soft hand-off into the next scene */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,5,5,0), rgba(5,5,5,.95));
}

.block-head { max-width: 720px; margin-bottom: 56px; }
.block-head h3 {
  margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; font-weight: 800; font-stretch: 112%;
  letter-spacing: -0.01em; text-wrap: balance;
}
.block-head p { margin-top: 16px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 600px; }

.details h4 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; font-weight: 700; font-stretch: 110%; color: var(--ink); }
.details .num, .details .time {
  display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--accent);
}
.details .item { border-top: 1px solid var(--rule); padding-top: 20px; }
.modes { gap: 48px; max-width: none; }
.stats { margin-top: 14vh; }

.spec { max-width: none; margin: 0; }
.spec__row { grid-template-columns: minmax(180px, 30%) 1fr; align-items: baseline; gap: 32px; padding: 30px 0; border-bottom: 1px solid #26262A; }
.spec__row:first-child { border-top: 1px solid var(--rule); }
.spec__row h4 { color: var(--accent); }
.spec__word { font-size: clamp(40px, 4.4vw, 60px); }
.statement { margin-top: 14vh; }

.systems { border-top: 0; padding-top: 0; row-gap: 56px; }

.timeline { border-top: 1px solid var(--rule); }
.timeline .time { font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 800; font-stretch: 125%; color: var(--ink); letter-spacing: 0; margin: 8px 0 12px; }
.timeline h4 { color: var(--accent); }
.builtfor { margin-top: 18vh; }
.builtfor ul { margin-top: 0; }
.builtfor li { border-top: 1px solid var(--rule); padding-top: 18px; }
.callouts--list h4 { font-size: 19px; }

/* Lightning sky */
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.stage.is-struck { animation: thunder .45s cubic-bezier(.3,.6,.3,1); }
@keyframes thunder {
  0% { transform: translate3d(0,0,0); } 20% { transform: translate3d(-3px,2px,0); } 40% { transform: translate3d(3px,-2px,0); }
  60% { transform: translate3d(-2px,1px,0); } 80% { transform: translate3d(1px,-1px,0); } 100% { transform: none; }
}

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .panel { padding-top: 16vh; }
  .block-head { margin-bottom: 36px; }
  .spec__row { grid-template-columns: 1fr; gap: 10px; }
  .timeline { border-top: 0; }
  .timeline .time { margin-top: 0; }
  .builtfor li { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky { display: none; }
  .stage.is-struck { animation: none; }
}

/* Touch: native momentum scrolling, but a fast swipe stops at each scene's start */
@media (hover: none) and (pointer: coarse) {
  html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
  .flight { scroll-snap-align: start; scroll-snap-stop: always; }
  .details > .block-head:first-of-type { scroll-snap-align: start; scroll-margin-top: 16vh; }
  #summary, #contact { scroll-snap-align: start; }
}
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}

/* Missions: relative airflow while the aircraft is flying */
.air { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .air { display: none; } }

/* =========================================================
   v6: missions as a live mission display
   ========================================================= */
.display--m { font-size: clamp(36px, min(4.3vw, 8vh), 72px); }
@media (min-width: 821px) and (min-aspect-ratio: 1/1) { #missions .display .ln > span { white-space: nowrap; } }
#missions .stage__text { max-width: min(640px, 44vw); }
#missions .scenario { position: static; width: auto; margin-top: 20px; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 460px; }

.map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.craft--missions {
  /* the aircraft is the subject: big, low in frame, helmet just right of the text column */
  --w: min(112vw, 215vh);
  --x: calc(47vw - var(--w) * 0.35);
  --y: calc(46% - var(--w) * 0.357 * 0.14);
  z-index: 1;
}

.telemetry { margin-top: clamp(20px, 4vh, 40px); padding-top: 18px; border-top: 1px solid var(--rule); max-width: 460px; }
.telemetry__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.telemetry__clock { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.telemetry__time { font-size: clamp(40px, min(4.6vw, 7.4vh), 72px); line-height: 1; font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.telemetry__phase { margin-top: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); min-height: 1.4em; }
.telemetry__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; }
.telemetry__grid dd { margin: 6px 0 0; font-size: 20px; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.telemetry__grid small { font-size: 12px; font-weight: 500; color: var(--ink-3); }

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  #missions .stage__text { max-width: none; }
  #missions .scenario { display: none; }
  .telemetry { margin-top: 18px; padding-top: 14px; }
  .telemetry__grid { display: none; }
  .craft--missions { --w: 170vw; --x: calc(4vw - var(--w) * 0.345); --y: calc(100% - var(--w) * 0.357 - 5vh); }
}
@media (max-height: 720px) and (min-width: 821px) {
  #missions .scenario { display: none; }
}
@media (prefers-reduced-motion: reduce) { .map { display: none; } }

/* Phones: keep text, map and aircraft from stacking into each other */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .craft--missions { --w: 128vw; --x: calc(3vw - var(--w) * 0.3); --y: calc(100% - var(--w) * 0.357 * 0.84); }
  .telemetry__time { font-size: clamp(30px, 9vw, 44px); }
  .display--m { font-size: clamp(30px, min(8.6vw, 6vh), 72px); }
  .telemetry__phase { margin-top: 6px; font-size: 12px; }
}
@media (max-width: 820px) and (max-height: 740px) {
  .display { font-size: clamp(38px, min(12vw, 7.4vh), 96px); }
  .display--m { font-size: clamp(30px, min(8.6vw, 6vh), 72px); }
  .lede { margin-top: 16px; font-size: 16px; }
  .eyebrow { font-size: 12px; }
  .stage__text { top: max(84px, 11vh); }
  .craft--hero { --w: 128vw; --x: calc(4vw - var(--w) * 0.17); --y: calc(100% - var(--w) * 0.359 - 2vh); }
}
