/* banzaidefense.com/banzai-defense — the capability page. Plain CSS, no build step beyond a copy.
 * Governed by SPEC-banzai-defense.md, and by SPEC.md where that is silent.
 *
 * THE DEFAULT STATE OF EVERY ELEMENT IS VISIBLE. Anything hidden for the entrance is scoped under
 * html.motion, which only the parent's motion.js adds, and only without reduced motion.
 *
 * NO FIXED SECTION HEIGHTS. The canvas artboards use them because a static comp must; here a
 * section takes min-height at most, and its content sets the height.
 *
 * This file ships as a file, never inline: the page's CSP is style-src 'self', which blocks inline
 * <style> elements and style attributes alike.
 */

@font-face { font-family: 'Archivo Expanded'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/archivo-exp-regular.woff2) format('woff2'); }
@font-face { font-family: 'Archivo Expanded'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/archivo-exp-medium.woff2) format('woff2'); }

:root {
  /* Group palette, as the parent. #d81618 is for rules, bars and the spine only; red text is #a51012,
     and never on a dark ground. */
  --ink: #0b1017;
  --secondary: #44536a;
  --muted: #556275;
  --red: #d81618;
  --red-text: #a51012;
  --paper: #eceff3;
  --card: #ffffff;
  --night: #080d16;
  --on-dark: #ffffff;
  --on-dark-2: #c3cbd6;
  --on-dark-3: #9aa4b2;

  --group: 'Archivo Expanded', Arial, sans-serif;

  --py: clamp(56px, 7vw, 96px);
  --px: clamp(20px, 5vw, 80px);
  --measure: 1240px;
  --spine-x: 64px;
  --spine-gap: 40px;
  /* The spine's unfilled line: one opaque neutral on every ground (12 Oct). */
  --spine-line: #6b7584;
  --spine-fill: var(--red);
  --gutter: var(--px);
}
@media (min-width: 900px) { :root { --gutter: max(var(--px), calc(var(--spine-x) + var(--spine-gap))); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--ink);
  font-family: var(--group); font-weight: 400; font-size: 1rem; line-height: 1.6;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.nw { white-space: nowrap; }

/* Focus: a white inner ring and an ink outer ring, so one of them always shows on any ground. */
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 2px;
}
/* Headings take focus after an in-page jump (assets/js/banzai-defense.js), so keyboard and screen-
   reader users land where sighted users do. They are not tab stops, so no ring. */
h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 140; padding: 12px 16px; background: #fff;
  color: var(--ink); font-size: 14px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

/* In-page jumps land at the browser's default speed (no smooth scrolling, 12 Oct), with the heading
   clear of the viewport edge. */
.sec[id], h3[id] { scroll-margin-top: 24px; }

/* ---------- section frame + the spine (the parent's, unchanged) ---------- */
.sec {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--py) calc(var(--gutter) + env(safe-area-inset-right)) var(--py) calc(var(--gutter) + env(safe-area-inset-left));
}
.wrap { position: relative; max-width: var(--measure); margin: 0 auto; }
/* (21 Oct) The spine runs unbroken from the opening to the last section: no section dissolves it. */

.spine { display: none; }
@media (min-width: 900px) {
  .spine {
    display: block; position: absolute; z-index: 2; pointer-events: none;
    left: calc(var(--spine-x) + env(safe-area-inset-left)); width: 1px; top: 0; bottom: 0;
    background: var(--spine-line);
  }
  .spine .tint { position: absolute; inset: 0; }
  .spine .fill { position: absolute; inset: 0; background: var(--spine-fill);
    transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
  .spine .tint::after {
    content: ''; position: absolute; left: -3px; top: -3px; width: 7px; height: 100%; opacity: 0;
    background: radial-gradient(circle at 3.5px 3.5px, var(--spine-fill) 3px, transparent 3.6px) no-repeat;
    background-size: 7px 7px; transform: translateY(calc(var(--p, 1) * 100%));
  }
  html.motion [data-chapter] .spine .tint::after { opacity: 1; }
}

/* ---------- grounds ---------- */
.paper { background: var(--paper); }
.white { background: var(--card); }
.night { background: var(--night); color: var(--on-dark); }

/* ---------- chapter tag: number, a short solid bar, the name in tracked caps ---------- */
.tag {
  display: flex; align-items: center; gap: 12px; margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--secondary);
}
.tag .num { color: var(--ink); }
/* Ink on light grounds, white on dark (12 Oct). Never red. */
.tag .bar { width: 28px; height: 2px; background: var(--ink); flex: none; }
.tag .dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.night .tag, .opening .tag, .contact .tag { color: var(--on-dark-2); }
.night .tag .num, .contact .tag .num { color: #fff; }
.night .tag .bar, .opening .tag .bar, .contact .tag .bar { background: #fff; }

h2 { max-width: 20ch; font-size: clamp(34px, 4vw, 56px); line-height: 1.06; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.22; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.night h2, .night h3, .contact h2 { color: #fff; }

.intro { margin-top: 20px; max-width: 60ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--secondary); }
.night .intro { color: var(--on-dark-2); }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--red-text); }
.night .eyebrow { color: var(--on-dark-2); }

.body { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--secondary); }
.body > * + * { margin-top: 12px; }
.night .body { color: var(--on-dark-2); }
/* Bullets: a short ink rule, not a red dot — red is the spine's. */
.ticks li { position: relative; padding-left: 22px; }
.ticks li + li { margin-top: 6px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: currentColor; }

/* ---------- buttons + links (the parent's) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px;
  font-family: var(--group); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #fff;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: transparent; color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.sm { min-height: 44px; padding: 10px 18px; font-size: 12px; }
@media (max-width: 899.98px) { .btn { padding: 14px 14px; } }
.more {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500;
  text-decoration: underline; text-decoration-color: rgba(11,16,23,.45); text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.more::after { content: '\2192'; margin-left: 10px; }
.night .more { text-decoration-color: rgba(255,255,255,.5); }
.after { margin-top: 10px; }

/* ---------- framed images ---------- */
.frame { position: relative; overflow: hidden; background: #c9d1dc; }
.frame picture, .frame img { width: 100%; height: 100%; }
.frame img { object-fit: cover; }
.night .frame { background: #16212f; }

/* ---------- opening ---------- */
.opening { --top-h: 0px; display: flex; flex-direction: column; color: #fff; background: var(--night);
  padding-top: calc(var(--top-h) + env(safe-area-inset-top)); padding-bottom: 0; }
/* The shared header (17 Oct) replaces the top bar that sat in the hero's flow. The landing hero runs
   under the transparent header, so it keeps the header's height free at its top. */
.opening[data-head-over] { --top-h: var(--sh-h); }
.plate { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.plate picture, .plate img { width: 100%; height: 100%; }
.plate img { object-fit: cover; }
.opening .plate img { object-position: 62% 45%; }
/* Left-weighted scrim for the type, a second at the foot for the chapter index. */
.opening .plate::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to bottom, rgba(8,13,22,.9) 0, rgba(8,13,22,.82) 80px, rgba(8,13,22,0) 170px),
  linear-gradient(to top, rgba(8,13,22,.96) 0, rgba(8,13,22,.8) 150px, rgba(8,13,22,0) 300px),
  linear-gradient(90deg, rgba(8,13,22,.9) 0%, rgba(8,13,22,.8) 38%, rgba(8,13,22,.35) 64%, rgba(8,13,22,0) 82%); }
.hero-body { width: 100%; margin-top: auto; padding: clamp(96px, 14vh, 180px) 0 56px; }
/* Room for the caption between the buttons and the index (it sits 132px above the hero's foot). */
@media (min-width: 900px) { .hero-body { padding-bottom: 88px; } }
.crumb ol { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13px; color: var(--on-dark-2); }
.crumb li + li::before { content: '/'; margin-right: 10px; color: var(--on-dark-3); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.crumb li[aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.opening .tag { margin-top: 10px; }
.opening h1 { max-width: 15ch; font-size: clamp(38px, 5.2vw, 76px); line-height: 1.03; font-weight: 500; letter-spacing: -.025em; }
.opening .lead { margin-top: 24px; max-width: 40ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--on-dark-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* (21 Oct) Two spaced-capitals styles only: labels (12px / 500 / .18em) and buttons (12px / 500 / .14em). */
/* Captions are plain sentence case, not tracked capitals. */
.cap { margin: 0; font-size: 12px; font-weight: 500; }
.hero-cap { position: absolute; right: calc(var(--gutter) + env(safe-area-inset-right)); bottom: 132px; color: var(--on-dark-2); }
.toc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22);
  padding-bottom: env(safe-area-inset-bottom); }
.toc a { display: block; min-height: 44px; padding: 18px 16px 28px 0; font-size: 14px; line-height: 1.35; color: #fff; text-decoration: none; }
.toc a > span:first-child { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--on-dark-2); }
@media (min-width: 900px) {
  .opening { min-height: 100vh; min-height: 100svh; }
  .hero-body, .toc { padding-left: 0; }
}
/* Solutions-page heroes (13 Oct, pass 3). Shorter than the landing's, no drift, and the photograph
   is never drawn wider than its file: the plate stops at the file's width, centred, and fades into
   the ground beyond it. */
.fixed-wing .opening .plate { --plate-max: 2048px; }
.rotary-wing .opening .plate { --plate-max: 1920px; }
.sub .plate { left: 50%; right: auto; width: min(100%, var(--plate-max)); transform: translateX(-50%); }
.fixed-wing .opening .plate img { object-position: 62% 58%; }
.sub .hero-body { padding-top: clamp(120px, 18vh, 220px); padding-bottom: 56px; }
@media (min-width: 900px) {
  .opening.sub { min-height: min(86vh, 820px); min-height: min(86svh, 820px); }
  /* The F-16's sky is bright: a heavier left scrim than the landing's, and a darker strip along the
     rail so the spine's red fill holds 3:1. */
  .fixed-wing .opening .plate::after { background:
    linear-gradient(to bottom, rgba(8,13,22,.9) 0, rgba(8,13,22,.82) 80px, rgba(8,13,22,0) 170px),
    linear-gradient(to top, rgba(8,13,22,.96) 0, rgba(8,13,22,.8) 150px, rgba(8,13,22,0) 300px),
    linear-gradient(90deg, rgba(8,13,22,.97) 0, rgba(8,13,22,.97) calc(var(--spine-x) + 20px), rgba(8,13,22,0) calc(var(--spine-x) + 130px)),
    linear-gradient(90deg, rgba(8,13,22,.92) 0%, rgba(8,13,22,.88) 46%, rgba(8,13,22,.55) 66%, rgba(8,13,22,.1) 86%); }
  /* The Apache sits left of centre in its frame, so this hero's type takes the right half and its
     scrim weights right; a strip along the rail keeps the spine legible on the left. */
  .rotary-wing .hero-body > * { margin-left: 50%; }
  .rotary-wing .opening .plate::after { background:
    linear-gradient(to bottom, rgba(8,13,22,.9) 0, rgba(8,13,22,.82) 80px, rgba(8,13,22,0) 170px),
    linear-gradient(to top, rgba(8,13,22,.96) 0, rgba(8,13,22,.8) 150px, rgba(8,13,22,0) 300px),
    linear-gradient(270deg, rgba(8,13,22,.9) 0%, rgba(8,13,22,.8) 40%, rgba(8,13,22,.3) 58%, rgba(8,13,22,0) 70%),
    linear-gradient(90deg, rgba(8,13,22,.97) 0, rgba(8,13,22,.97) calc(var(--spine-x) + 20px), rgba(8,13,22,0) calc(var(--spine-x) + 130px)); }
}
/* From 1200px the F-16's cockpit sits clear of the type, so the scrim can clear the aircraft. Its
   stops are measured from where the text column starts (centred above 1448px), in the plate's own
   coordinates (the plate is capped and centred above 2048px). */
@media (min-width: 1200px) {
  .fixed-wing .opening .plate::after {
    --tl: calc(var(--gutter) + max(0px, (100vw - 2 * var(--gutter) - var(--measure)) / 2) - max(0px, (100vw - var(--plate-max)) / 2));
    background:
    linear-gradient(to bottom, rgba(8,13,22,.9) 0, rgba(8,13,22,.82) 80px, rgba(8,13,22,0) 170px),
    linear-gradient(to top, rgba(8,13,22,.96) 0, rgba(8,13,22,.8) 150px, rgba(8,13,22,0) 300px),
    linear-gradient(90deg, rgba(8,13,22,.97) 0, rgba(8,13,22,.97) calc(var(--spine-x) + 20px), rgba(8,13,22,0) calc(var(--spine-x) + 130px)),
    linear-gradient(90deg, rgba(8,13,22,.92) 0, rgba(8,13,22,.88) calc(var(--tl) + 500px), rgba(8,13,22,.25) calc(var(--tl) + 720px), rgba(8,13,22,0) calc(var(--tl) + 920px)); }
}
/* The solutions pages' h1 is a size down from the landing's, so its lines stay inside the scrim. */
.sub h1 { max-width: 13ch; font-size: clamp(36px, 4.3vw, 62px); }
@media (min-width: 1921px) {
  .rotary-wing .opening .plate { -webkit-mask: linear-gradient(90deg, transparent, #000 200px, #000 calc(100% - 200px), transparent);
                                         mask: linear-gradient(90deg, transparent, #000 200px, #000 calc(100% - 200px), transparent); }
}
@media (min-width: 2049px) {
  .fixed-wing .opening .plate { -webkit-mask: linear-gradient(90deg, transparent, #000 200px, #000 calc(100% - 200px), transparent);
                                        mask: linear-gradient(90deg, transparent, #000 200px, #000 calc(100% - 200px), transparent); }
}

/* ---------- 01 requirement ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.frame.tall { aspect-ratio: 3 / 4; }
#requirement h2 { max-width: 18ch; }
/* (22 Oct, Animal) Chapters 02-06 carry long searchable headlines. Below 620px they drop one step, to
   the platform pages' heading step (30px on phones), so none runs past 5 lines at 320-390. Chapter 01
   and the contact band keep theirs. */
@media (max-width: 619.98px) { #training h2, #platform h2, #human h2, #hardware h2, #work h2 { font-size: clamp(30px, 3.2vw, 44px); } }
/* (23 Oct, Animal) On the narrowest phones (under 355px) chapter 03's headline still ran 6 lines at 30px,
   because "simulation" takes a line of its own in the column; 02-06 take the 26px step there. */
@media (max-width: 354.98px) { #training h2, #platform h2, #human h2, #hardware h2, #work h2 { font-size: clamp(26px, 2.6vw, 34px); } }

/* ---------- 02 synthetic training ---------- */
.opener { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; margin-top: 20px; }
.opener .intro { margin-top: 0; }
.stat { min-width: 180px; padding: 6px 0 0 24px; border-left: 1px solid rgba(11,16,23,.18); }
.fig { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.fig-cap { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); align-items: center; margin-top: 64px; }
.feat .frame { aspect-ratio: 3 / 2; }
.feat h3 { font-size: clamp(26px, 2.6vw, 34px); }
/* A summary that links out (13 Oct, pass 3): two groups, every card linking to its section on a
   solutions page through its heading. */
.group { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(11,16,23,.14); }
.group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.group-title { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.group .feat { margin-top: 32px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; margin-top: 56px; }
.group-head + .pair { margin-top: 32px; }
.card .frame { aspect-ratio: 16 / 9; margin-bottom: 24px; }
h3 a.to { text-decoration: underline; text-decoration-color: rgba(11,16,23,.3); text-decoration-thickness: 1px; text-underline-offset: 6px; }
h3 a.to::after { content: '\2192'; margin-left: 10px; }
/* #5 is portrait: framed on the operator's screens, losing the chair and floor. */
.frame.refuel img { object-position: 50% 26%; }
.card h3 { font-size: 22px; }
.card .body { font-size: 15.5px; }

/* ---------- 03 the platform ---------- */
.render { position: relative; margin-top: 64px; }
.render-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #16212f; }
.render-frame picture, .render-frame img { width: 100%; height: 100%; }
.render-frame img { object-fit: cover; object-position: 40% 50%; }
/* The caption sits on the render's daylight sky, which is bright: ink type, no box, no shade.
   Measured on the source: the sky along the render's top edge holds ink at 6.85:1 or more. */
.render-cap { position: absolute; top: 18px; right: 18px; color: var(--ink); }
/* The frosted panel — used once, here (12 Oct). Solid first; the blur only where supported. */
.glass { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px;
  width: min(880px, 88%); margin: -120px 0 0 auto; padding: 40px 44px; background: #121b29; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(10,16,26,.8); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
.glass h3 { font-size: 24px; }
.pairs { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.pairs li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; line-height: 1.5; }
.pairs b { display: block; margin-bottom: 2px; font-weight: 500; color: #fff; }
.dve { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); align-items: center; margin-top: 96px; }
.dve .frame { aspect-ratio: 16 / 9; }
.dve h3 { font-size: clamp(24px, 2.2vw, 30px); }
.tagline { margin: -4px 0 12px; font-size: 14px; color: var(--on-dark-3); }

/* ---------- 04 human performance / 06 routes ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.col { padding-top: 24px; border-top: 1px solid rgba(11,16,23,.18); }
.col .n { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--red-text); }
.col h3 { font-size: 24px; }
.chip { display: inline-block; margin-top: 16px; padding: 4px 10px; border: 1px solid rgba(11,16,23,.25);
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--secondary); }

/* ---------- 05 aircrew innovation ---------- */
.ngfwh { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); align-items: start; margin-top: 56px; }
.ngfwh .frame.main { aspect-ratio: 2048 / 1390; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.duo .frame { aspect-ratio: 4 / 3; }
.duo figcaption { margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.ngfwh h3, .sheet-block h3 { font-size: clamp(24px, 2.4vw, 32px); }
.ngfwh-copy { padding-top: 8px; }
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start;
  margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(11,16,23,.14); }
.sheet { margin-top: 20px; border-top: 1px solid var(--ink); }
.sheet > div { display: grid; grid-template-columns: minmax(0, 156px) minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(11,16,23,.14); }
.patent-line { margin-top: 36px; font-size: 15px; color: var(--secondary); }
.strip { display: flex; align-items: center; min-height: 64px; margin-top: 56px; padding: 20px 28px; background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 500; line-height: 1.45; text-decoration: none; }
.strip::after { content: '\2192'; margin-left: auto; padding-left: 24px; }
.sheet dt { padding-top: 4px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sheet dd { font-size: 17px; line-height: 1.5; color: var(--ink); min-width: 0; }
.sheet dd.big { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
/* The NSN is a long identifier: it scrolls inside its own box rather than widening the page. */
.scroll-x { display: block; overflow-x: auto; white-space: nowrap; }

/* ---------- solutions pages: one section per platform (13 Oct, pass 3) ---------- */
.plat-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.plat-row.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.plat-row.flip > .frame { order: 2; }
.plat-row .frame { aspect-ratio: 3 / 2; }
.plat h2 { font-size: clamp(30px, 3.2vw, 44px); }
.plat .intro { margin-top: 16px; }
.plat ul.body { margin-top: 18px; }
.type-block { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); align-items: end; }
.chip.on-dark { border-color: rgba(255,255,255,.4); color: var(--on-dark-2); }
.also .also-line { max-width: 72ch; font-size: 16px; line-height: 1.7; color: var(--secondary); }

/* ---------- pass 4 (14 Oct): links out, indexes, platform pages (TripTrace removed 22 Oct) ---------- */
/* (22 Oct) the turboprop + refueling card is a photo card like the F-16's, on paper */
h3 a.to2 { text-decoration: underline; text-decoration-color: rgba(11,16,23,.3); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.teaser { display: flex; align-items: center; min-height: 64px; margin-top: 40px; padding: 18px 0;
  border-top: 1px solid rgba(11,16,23,.18); border-bottom: 1px solid rgba(11,16,23,.18);
  font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
.teaser::after { content: '\2192'; margin-left: auto; padding-left: 24px; }
.index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 32px; }
.index .card .frame { aspect-ratio: 3 / 2; }
.index .card h2 { font-size: clamp(24px, 2.4vw, 32px); }
.index .card h2 a { text-decoration: none; }
.index .strip { margin-top: 32px; }
.measure { max-width: 72ch; }
.platform main h2 { font-size: clamp(28px, 3vw, 40px); }
.platform main .intro { margin-top: 16px; }
/* Platform heroes: dark, type beside a framed photograph. Never full-bleed, so no photograph is
   drawn wider than its file. */
.opening.plat-hero { min-height: 0; padding-bottom: clamp(48px, 6vw, 88px); }
.plat-hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center;
  width: 100%; margin-top: clamp(48px, 7vw, 96px); }
.plat-hero h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; max-width: 16ch; }
.plat-hero .lead { margin-top: 20px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--on-dark-2); }
.plat-hero .ctas { margin-top: 28px; }
.hero-frame { aspect-ratio: 3 / 2; background: #16212f; }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); }
.lists ul.body { margin-top: 16px; }
.lists-fig { max-width: 760px; margin-top: 48px; aspect-ratio: 3 / 2; }
.frame.small { max-width: 480px; aspect-ratio: 4 / 3; justify-self: center; }
.plat-row .frame.small { aspect-ratio: 4 / 3; }
.hotas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 36px; }
.hotas-now, .hotas-next { padding: clamp(28px, 3vw, 44px); border: 1px solid rgba(255,255,255,.18); }
.hotas-next { background: var(--ink); }
.hotas-now h3 { font-size: clamp(24px, 2.4vw, 32px); }
.next-line { font-size: clamp(20px, 2vw, 28px); line-height: 1.35; font-weight: 500; color: #fff; }
.why { background: var(--ink); color: #fff; }
.why h2 { color: #fff; }
.why .eyebrow { color: var(--on-dark-2); }
.why .intro { color: var(--on-dark-2); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin-top: 32px; }
.related .card .frame { aspect-ratio: 3 / 2; margin-bottom: 18px; }
.related .card h3 { font-size: 20px; }

/* ---------- 07 contact ---------- */
.contact { color: #fff; background: var(--night); padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 12vw, 160px); }
.contact .plate::after { content: ''; position: absolute; inset: 0; background: rgba(5,9,16,.8); }
/* A strip along the rail, so the spine holds 3:1 over the plate. */
@media (min-width: 900px) {
  .contact .plate::after { background:
    linear-gradient(90deg, rgba(5,9,16,.97) 0, rgba(5,9,16,.97) calc(var(--spine-x) + 20px), rgba(5,9,16,0) calc(var(--spine-x) + 130px)),
    rgba(5,9,16,.8); }
}
.contact h2 { font-size: clamp(40px, 5vw, 72px); }
.contact .intro { color: var(--on-dark-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.onreq { margin-top: 28px; font-size: 15px; color: var(--on-dark-2); }

/* ---------- trademark line + footer (the footer is the parent's, character for character) ---------- */
.trademark { margin: 0; padding: 18px calc(var(--gutter) + env(safe-area-inset-right)) 0 calc(var(--gutter) + env(safe-area-inset-left));
  background: var(--ink); font-size: 12.5px; line-height: 1.6; color: var(--on-dark-3); }
@media (min-width: 900px) { .trademark { padding-left: max(calc(var(--gutter) + env(safe-area-inset-left)), calc((100vw - var(--measure)) / 2)); } }
.foot { background: var(--ink); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,.08);
  padding-bottom: calc(var(--py) * .7 + env(safe-area-inset-bottom)); padding-top: calc(var(--py) * .7); }
.foot .mark { width: 220px; height: auto; margin-left: -41px; }   /* the file draws from x 294 of 1560: line the mark up with the text */
.foot p { font-size: 14px; line-height: 1.65; color: var(--on-dark-3); max-width: 90ch; }
.foot p + p { margin-top: 6px; }
/* The parent footer's email line (17 Oct), the same rule as the parent's own: the site's one visible address. */
.foot-email a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }

/* ---------- below 900px ---------- */
@media (max-width: 899.98px) {
  .opening .plate img { object-position: 64% 50%; }
  /* Phones (13 Oct, pass 3): the photograph is a band at the top, lightly shaded so the aircraft
     read; the type sits below it on the hero's own ground, where every line holds 4.5:1. The
     landing page hides its visible breadcrumb here (its BreadcrumbList JSON-LD stays). */
  .opening .plate { bottom: auto; height: calc(var(--top-h) + 20px + 80vw); }
  .opening .plate::after, .rotary-wing .opening .plate::after, .fixed-wing .opening .plate::after { background:
    linear-gradient(to bottom, rgba(8,13,22,.88) 0, rgba(8,13,22,.8) 76px, rgba(8,13,22,.15) 150px,
    rgba(8,13,22,.1) 55%, rgba(8,13,22,.9) 90%, var(--night) 100%); }
  .landing .crumb { display: none; }
  .hero-body, .sub .hero-body { padding-top: calc(80vw - 12px); }
  .hero-cap { position: static; margin: -28px 0 16px; text-align: right; }
  .toc { display: flex; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
  .toc a { flex: 0 0 42%; padding-right: 20px; }
  .split, .feat, .dve, .ngfwh, .sheets, .pair, .plat-row, .plat-row.flip, .type-block { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .plat-row.flip > .frame { order: 0; }
  .index-grid, .plat-hero-body, .lists, .hotas-grid, .rel-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-hero-body { margin-top: 40px; }
  .group { margin-top: 56px; }
  .frame.tall { aspect-ratio: 4 / 5; }
  .opener { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stat { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(11,16,23,.18); }
  .feat { margin-top: 40px; }
  .render-frame { aspect-ratio: 4 / 3; }
  .render-frame img { object-position: 30% 40%; }
  .glass { grid-template-columns: minmax(0, 1fr); gap: 32px; width: 100%; margin: 0; padding: 28px 22px; }
  .dve { margin-top: 64px; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .sheet > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

/* ---------- motion (opt-in only; the parent's three effects, nothing new) ---------- */
/* (21 Oct) Never blank: a reveal starts at 60% and travels 8px (motion.js fires it early). */
html.motion .reveal { transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
html.motion .reveal:not(.in) { opacity: .6; transform: translate3d(0, 8px, 0); }
html.motion [data-drift] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html.motion .reveal:not(.in) { opacity: 1; transform: none; }
  .btn { transition: none; }
}

/* 404 page (14 Oct, pre-launch): /404.html at the site root. Pages serves it, with a 404 status,
   for every path that matches no file, and for every path starting with "/." (see _redirects). */
.nf { margin: 0; min-height: 100vh; display: grid; place-items: center; background: var(--night); color: var(--on-dark); }
.nf-main { width: min(100% - 32px, 640px); padding: 48px 0; }
.nf h1 { margin: 40px 0 16px; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; color: var(--on-dark); }
.nf-links { display: flex; flex-wrap: wrap; gap: 0 32px; }
.nf-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }

/* (22 Oct, Animal) The DAS loop over its poster. The video stays invisible until it is
   actually playing, so the poster is what shows first, with no blank frame; the button is the pause
   control (WCAG 2.2.2), shown only when motion is allowed and the script has run. */
.clip { position: relative; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.clip.playing video { opacity: 1; }
.clip-toggle { position: absolute; right: 12px; bottom: 12px; min-height: 44px; min-width: 44px; padding: 0 16px;
  font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: #fff; cursor: pointer;
  background: rgba(11,16,23,.72); border: 1px solid rgba(255,255,255,.4); }
.clip-toggle:hover { background: rgba(11,16,23,.9); }
.clip-toggle:focus-visible { outline: 2px solid #0b1017; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
@media (prefers-reduced-motion: reduce) { .clip video, .clip-toggle { display: none; } }

/* (22 Oct, Animal) Chapter 02's platforms as a compact row: two tiles, each a labelled list of
   platform links (the group pages hold the photographs and detail). Side by side from 900px. */
.prow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.ptile { padding-top: 24px; border-top: 1px solid rgba(11,16,23,.14); }
.ptile .group-head { margin-bottom: 8px; }
.ptile ul { margin: 0; padding: 0; list-style: none; }
.ptile li { border-bottom: 1px solid rgba(11,16,23,.08); }
.ptile h3 { padding: 14px 0; font-size: 20px; line-height: 1.35; }
@media (max-width: 899.98px) { .prow { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 48px; } .ptile h3 { font-size: 18px; } }
