/* AltitudeX — marketing site.
   Brand values match the film and the 3D worlds: navy #122E54, deep navy #07142A, sky #8CD1FF. */

:root {
  --bg: #050b17;
  --bg-2: #07142a;
  --navy: #122e54;
  --navy-2: #0c2244;
  --sky: #8cd1ff;
  --sky-dim: rgba(140, 209, 255, 0.16);
  --hot: #ff8a4c;
  --white: #f4f8fc;
  --text: #c9d6e8;
  --muted: #7f93b0;
  --line: rgba(140, 209, 255, 0.13);
  --glass: rgba(9, 22, 44, 0.55);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); line-height: 1.02; font-weight: 600; max-width: 18ch; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
svg.lucide { width: 1.1em; height: 1.1em; stroke-width: 1.8; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sky); opacity: 0.7; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text); max-width: 56ch; margin-top: 1.4rem; }

/* Film grain over everything: keeps large dark gradients from banding. */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 30% { transform: translate(-3%,2%); } 60% { transform: translate(2%,-3%); } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 0.6rem;
  height: var(--h); padding: 0 1.5rem; border-radius: 999px;
  background: var(--sky); color: #04101f;
  font: 600 0.95rem/1 var(--display); letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  box-shadow: 0 0 0 0 rgba(140, 209, 255, 0.0);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(140, 209, 255, 0.55); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--sky-dim); box-shadow: none; }
.btn--small { --h: 40px; padding: 0 1.1rem; font-size: 0.85rem; }
.btn--large { --h: 64px; padding: 0 2.2rem; font-size: 1.1rem; margin-top: 2.4rem; }

/* ── Loader ──────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 1.2rem;
  background: var(--bg);
}
.loader__star { width: 140px; }
.loader__star path {
  fill: none; stroke: var(--sky); stroke-width: 4; stroke-linejoin: miter;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: draw 1.3s var(--ease) forwards;
}
.loader__word { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.5em; color: var(--muted); opacity: 0; animation: fadeIn 0.6s 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.is-loaded .loader { opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease) 0.2s, visibility 0s 1s; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 18px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 11, 23, 0.72); backdrop-filter: blur(16px) saturate(140%); padding-block: 12px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 0.7rem; font: 600 1.15rem/1 var(--display); color: var(--white); letter-spacing: -0.01em; }
.brand img { border-radius: 3px; }
.nav__links { display: flex; gap: 2rem; font: 500 0.85rem/1 var(--display); color: var(--text); }
.nav__links a { position: relative; padding: 6px 0; transition: color 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.08); filter: saturate(0.75) contrast(1.05); }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 75% 45%, rgba(5, 11, 23, 0.1) 0%, rgba(5, 11, 23, 0.65) 55%, rgba(5, 11, 23, 0.96) 100%),
    linear-gradient(180deg, rgba(5, 11, 23, 0.55) 0%, rgba(5, 11, 23, 0.2) 35%, rgba(5, 11, 23, 0.95) 100%),
    linear-gradient(90deg, rgba(7, 20, 42, 0.92) 0%, rgba(7, 20, 42, 0.35) 55%, rgba(7, 20, 42, 0.2) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(70% 60% at 70% 50%, #000 0%, transparent 75%);
}
.hero__inner {
  flex: 1; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 140px var(--gutter) 60px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: center;
}
.hero__title { font-size: clamp(3rem, 8.2vw, 7.4rem); line-height: 0.94; font-weight: 600; letter-spacing: -0.045em; max-width: 9ch; }
.hero__lede { margin-top: 1.8rem; font-size: clamp(1.02rem, 1.35vw, 1.2rem); max-width: 48ch; color: var(--text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }
.hero__model { position: relative; height: min(68vh, 640px); }
.hero__model model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.hero__model::before {
  content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(140, 209, 255, 0.22), rgba(18, 46, 84, 0.12) 60%, transparent);
  filter: blur(20px);
}
.hero__readout {
  position: absolute; right: 4%; bottom: 8%;
  display: grid; gap: 0.35rem; padding: 0.9rem 1.1rem;
  font: 400 0.72rem/1.3 var(--mono); color: var(--muted); letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 12px; background: var(--glass); backdrop-filter: blur(10px);
}
.hero__readout b { color: var(--sky); font-weight: 500; }
.hero__foot { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter) 28px; max-width: var(--max); margin: 0 auto; width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 0.55rem; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); animation: pulse 2s infinite; }
.dot--hot { background: var(--hot); box-shadow: 0 0 10px var(--hot); }
@keyframes pulse { 50% { opacity: 0.35; } }
.scroll-cue { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.8rem; }
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--sky), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee__track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 500 clamp(1.6rem, 3.4vw, 2.8rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(140, 209, 255, 0.55); letter-spacing: -0.02em; white-space: nowrap; }
.marquee i { width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid var(--sky); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Section scaffolding ─────────────────────────────────── */
section { position: relative; }
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section-head--center { text-align: center; display: grid; justify-items: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--center h2 { max-width: 20ch; }

/* ── Detection story ─────────────────────────────────────── */
.story { padding: clamp(100px, 14vw, 180px) 0 40px; }
.story__body {
  max-width: var(--max); margin: clamp(48px, 7vw, 90px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px);
}
.story__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-left: 1.6rem; border-left: 1px solid var(--line); opacity: 0.28; transition: opacity 0.6s var(--ease), border-color 0.6s; }
.step.is-active { opacity: 1; border-color: var(--sky); }
.step__n { font: 500 0.8rem/1 var(--mono); color: var(--sky); letter-spacing: 0.14em; margin-bottom: 1rem; }
.step h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.step p { max-width: 40ch; color: var(--text); }
.story__stage { position: relative; }
.stage {
  position: sticky; top: 14vh; height: 72vh; border-radius: var(--radius); overflow: hidden;
  background: #02060d; border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(140, 209, 255, 0.04) inset;
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.9s var(--ease), transform 1.6s var(--ease); }
.stage video.is-on { opacity: 1; transform: scale(1); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2,6,13,0.45) 0%, transparent 22%, transparent 70%, rgba(2,6,13,0.7) 100%); }
.stage__hud { position: absolute; top: 18px; left: 22px; right: 22px; z-index: 2; display: flex; justify-content: space-between; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; color: var(--white); }
.stage__rec { display: inline-flex; align-items: center; gap: 0.5rem; }
.stage__progress { position: absolute; left: 22px; right: 22px; bottom: 20px; height: 2px; background: rgba(255,255,255,0.12); z-index: 2; border-radius: 2px; overflow: hidden; }
.stage__progress span { display: block; height: 100%; width: 20%; background: var(--sky); transition: width 0.8s var(--ease); }
.stage__corner { position: absolute; width: 18px; height: 18px; border: 1px solid var(--sky); z-index: 2; opacity: 0.8; }
.stage__corner--tl { top: 52px; left: 22px; border-right: 0; border-bottom: 0; }
.stage__corner--tr { top: 52px; right: 22px; border-left: 0; border-bottom: 0; }
.stage__corner--bl { bottom: 40px; left: 22px; border-right: 0; border-top: 0; }
.stage__corner--br { bottom: 40px; right: 22px; border-left: 0; border-top: 0; }

/* ── Numbers ─────────────────────────────────────────────── */
.numbers {
  max-width: var(--max); margin: clamp(60px, 9vw, 120px) auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.numbers__item { padding: 2.2rem 1.4rem 0 0; display: grid; gap: 0.8rem; align-content: start; }
.numbers__item + .numbers__item { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.numbers__value { font: 500 clamp(3.2rem, 7vw, 6rem)/0.9 var(--display); color: var(--white); letter-spacing: -0.05em; }
.numbers__value small { font-size: 0.4em; color: var(--sky); margin-left: 0.15em; letter-spacing: 0; }
.numbers__label { color: var(--muted); font-size: 0.95rem; max-width: 22ch; }

/* ── Missions ────────────────────────────────────────────── */
.missions { padding: clamp(80px, 12vw, 160px) 0; }
.missions__grid {
  max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.mission {
  position: relative; aspect-ratio: 3 / 4.2; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: transform 0.7s var(--ease), border-color 0.4s;
}
.mission video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.4s var(--ease), filter 0.6s; filter: saturate(0.7) brightness(0.8); }
.mission::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,11,23,0.1) 0%, rgba(5,11,23,0.35) 40%, rgba(5,11,23,0.96) 100%); }
.mission:hover { transform: translateY(-6px); border-color: rgba(140, 209, 255, 0.45); }
.mission:hover video { transform: scale(1); filter: saturate(1) brightness(1); }
.mission__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem; }
.mission__n { font: 500 0.75rem/1 var(--mono); color: var(--sky); letter-spacing: 0.16em; }
.mission h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0.6rem 0 0.8rem; }
.mission p { font-size: 0.95rem; color: var(--text); }
.mission__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.mission__chips li { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--sky); background: rgba(5, 11, 23, 0.5); }

/* ── Aircraft ────────────────────────────────────────────── */
.aircraft {
  max-width: var(--max); margin: 0 auto; padding: clamp(60px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center;
}
.aircraft__viewer {
  position: relative; height: min(76vh, 720px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 55%, #16365f 0%, #0b1c37 45%, #050b17 100%);
  border: 1px solid var(--line);
}
.aircraft__viewer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(transparent 55%, #000 100%); opacity: 0.6; }
.aircraft__viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.aircraft__hint { position: absolute; left: 22px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 0.5rem; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hotspot {
  width: 14px; height: 14px; border-radius: 50%; padding: 0;
  background: var(--sky); box-shadow: 0 0 0 5px rgba(140, 209, 255, 0.22), 0 0 18px var(--sky);
  position: relative;
}
.hotspot::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(140, 209, 255, 0.5); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hotspot span {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
  padding: 0.5rem 0.7rem; border-radius: 8px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px);
  opacity: 0.85; transition: opacity 0.3s;
}
.hotspot[data-visible] span { opacity: 1; }
.hotspot:not([data-visible]) { opacity: 0.25; }
.specs { margin: 2.4rem 0 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 0.75rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; color: var(--white); font-family: var(--display); font-weight: 500; }

/* ── Ground station ──────────────────────────────────────── */
.station { padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; }
.station::before { content: ""; position: absolute; inset: 20% -10% auto; height: 70%; background: radial-gradient(closest-side, rgba(18, 46, 84, 0.65), transparent); z-index: -1; }
.screen {
  max-width: 1180px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0;
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(140, 209, 255, 0.22);
  background: #050d1c; box-shadow: 0 60px 160px -50px rgba(0, 0, 0, 0.95), 0 0 120px -40px rgba(140, 209, 255, 0.25);
  transform-origin: 50% 100%; width: calc(100% - 2 * var(--gutter));
}
.screen__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #08152b; }
.screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(140, 209, 255, 0.25); }
.screen img, .screen video { width: 100%; display: block; }
.screen__caption { padding: 12px 16px; border-top: 1px solid var(--line); background: #08152b; color: var(--muted); font-size: 0.9rem; }
.station__points { max-width: var(--max); margin: clamp(48px, 6vw, 70px) auto 0; padding: 0 var(--gutter); list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.station__points li { display: grid; gap: 0.5rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(18, 46, 84, 0.25), rgba(7, 20, 42, 0.2)); }
.station__points svg { color: var(--sky); width: 22px; height: 22px; margin-bottom: 0.4rem; }
.station__points b { color: var(--white); font-family: var(--display); font-weight: 600; }
.station__points span { color: var(--muted); font-size: 0.92rem; }

/* ── Capabilities ────────────────────────────────────────── */
.caps { padding: clamp(60px, 10vw, 140px) 0; }
.caps__grid { max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap { padding: clamp(1.6rem, 3vw, 2.6rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: background 0.5s; }
.cap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 209, 255, 0.1), transparent 40%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.cap:hover::before { opacity: 1; }
.cap svg { width: 28px; height: 28px; color: var(--sky); margin-bottom: 2.4rem; }
.cap h3 { margin-bottom: 0.7rem; }
.cap p { color: var(--muted); font-size: 0.97rem; }

/* ── Film ────────────────────────────────────────────────── */
.film { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.film__card { position: relative; display: block; width: 100%; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); text-align: left; }
.film__card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); filter: brightness(0.7); }
.film__card:hover video { transform: scale(1.04); }
.film__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(72px, 9vw, 112px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(244, 248, 252, 0.12); border: 1px solid rgba(244, 248, 252, 0.4); backdrop-filter: blur(10px);
  color: var(--white); transition: transform 0.5s var(--ease), background 0.4s;
}
.film__play svg { width: 34%; height: 34%; fill: currentColor; }
.film__card:hover .film__play { transform: scale(1.08); background: var(--sky); color: #04101f; }
.film__meta { position: absolute; left: 28px; bottom: 24px; display: grid; gap: 0.3rem; }
.film__meta b { font: 600 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--display); color: var(--white); }
.film__meta span { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }

/* ── Origin ──────────────────────────────────────────────── */
.origin { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.origin__mark { width: 100%; max-width: 440px; border-radius: 10px; box-shadow: 0 40px 120px -30px rgba(140, 209, 255, 0.35), 0 0 0 1px var(--line); }

/* ── Contact ─────────────────────────────────────────────── */
.contact { min-height: 86vh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.45; filter: saturate(0.6); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(7, 20, 42, 0.55), rgba(5, 11, 23, 0.97)); }
.contact__inner { padding: 120px var(--gutter); display: grid; justify-items: center; }
.contact__inner .eyebrow::before { display: none; }
.contact h2 { font-size: clamp(2.8rem, 8vw, 7rem); max-width: 14ch; letter-spacing: -0.04em; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 40px; display: grid; grid-template-columns: auto 1fr; gap: 1rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; font: 600 1.1rem/1 var(--display); color: var(--white); grid-row: span 3; align-self: start; }
.footer__brand img { border-radius: 3px; }
.footer a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer a:hover { color: var(--sky); }

/* ── Film modal ──────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 13, 0.88); backdrop-filter: blur(14px); }
.modal__frame { position: relative; width: min(92vw, calc(86vh * 0.8)); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.modal__frame video { width: 100%; height: 100%; object-fit: contain; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 11, 23, 0.7); border: 1px solid var(--line); }

/* ── Reveal helpers (driven by main.js) ──────────────────── */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word > span { display: inline-block; will-change: transform; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__model { height: 46vh; order: -1; margin-top: -20px; }
  .hero__readout { display: none; }
  .story__body { grid-template-columns: 1fr; }
  .story__stage { order: -1; position: sticky; top: 64px; z-index: 2; }
  .stage { position: relative; top: 0; height: 40vh; }
  .step { min-height: 58vh; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .missions__grid { grid-template-columns: 1fr; }
  .mission { aspect-ratio: 4 / 3.6; }
  .aircraft, .origin { grid-template-columns: 1fr; }
  .aircraft__viewer { height: 58vh; }
  .station__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film__card { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .btn--small { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .numbers { grid-template-columns: 1fr; }
  .numbers__item + .numbers__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 1.4rem; }
  .station__points, .caps__grid { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer { grid-template-columns: 1fr; }
  .footer__brand { grid-row: auto; }
  .film__meta { left: 18px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none; }
}
