/* ==========================================================================
   Mode palettes — copied from the ROTORCORE design system (Night / Day / NVG).
   Night is :root. Day is the ≥7:1 sunlight palette. NVG is MIL-STD-3009
   Class A: every value R=0, no blur, no shadows.
   ========================================================================== */
:root {
  --bg-primary:    #080B11;
  --bg-secondary:  #0F1420;
  --bg-deep:       #050910;

  --gold-base:     #C9A84C;
  --gold-bright:   #E8C060;
  --gold-dim:      rgba(201, 168, 76, 0.12);
  --gold-mid:      rgba(201, 168, 76, 0.28);
  --gold-soft:     rgba(201, 168, 76, 0.04);

  --white:         #E8E8E8;
  --text-dim:      #364555;
  --text-muted:    #6a7d8e;

  --border:        rgba(201, 168, 76, 0.12);
  --border-mid:    rgba(201, 168, 76, 0.28);
  --border-strong: rgba(201, 168, 76, 0.55);
  --border-dead:   rgba(54, 69, 85, 0.4);

  --ok-base:       #3CCF88;
  --warn-base:     #E6A83A;
  --nvg-green:     #00CC44;

  --shadow-card:   0 16px 36px rgba(6, 12, 23, 0.35);
  --shadow-heavy:  0 26px 50px rgba(3, 8, 18, 0.42);
  --shadow-modal:  0 32px 64px rgba(0, 0, 0, 0.5);

  --nav-blur:      blur(12px);
}

html[data-mode="day"] {
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #E4E8F0;
  --bg-deep:       #D8DCE8;

  --gold-base:     #664500;
  --gold-bright:   #8B5E00;
  --gold-dim:      rgba(102, 69, 0, 0.10);
  --gold-mid:      rgba(102, 69, 0, 0.30);
  --gold-soft:     rgba(102, 69, 0, 0.05);

  --white:         #0A0E1A;
  --text-dim:      #3A4460;
  --text-muted:    #5A6A88;

  --border:        rgba(64, 92, 138, 0.32);
  --border-mid:    rgba(64, 92, 138, 0.48);
  --border-strong: rgba(102, 69, 0, 0.55);
  --border-dead:   rgba(64, 92, 138, 0.25);

  --ok-base:       #128048;
  --warn-base:     #8B5E00;
  --nvg-green:     #128048;

  --shadow-card:   0 12px 28px rgba(60, 80, 120, 0.18);
  --shadow-heavy:  0 20px 42px rgba(50, 70, 110, 0.22);
  --shadow-modal:  0 26px 52px rgba(40, 60, 100, 0.28);
}

html[data-mode="nvg"] {
  --bg-primary:    #000000;
  --bg-secondary:  #000810;
  --bg-deep:       #000000;

  --gold-base:     #00AA00;
  --gold-bright:   #00CC44;
  --gold-dim:      rgba(0, 170, 0, 0.15);
  --gold-mid:      rgba(0, 170, 0, 0.35);
  --gold-soft:     rgba(0, 170, 0, 0.05);

  --white:         #00CC44;
  --text-dim:      #009900;
  --text-muted:    #008833;

  --border:        rgba(0, 170, 0, 0.22);
  --border-mid:    rgba(0, 170, 0, 0.40);
  --border-strong: rgba(0, 170, 0, 0.65);
  --border-dead:   rgba(0, 80, 40, 0.35);

  --ok-base:       #00CC44;
  --warn-base:     #00AA00;
  --nvg-green:     #00FF00;

  /* NVG kills all glass and glow — they bloom in goggles. */
  --shadow-card:   none;
  --shadow-heavy:  none;
  --shadow-modal:  none;
  --nav-blur:      none;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* The bound design system owns the palettes; html[data-mode] swaps them. */
  --bg:        var(--bg-primary);
  --bg-2:      var(--bg-secondary);
  --bg-3:      var(--bg-secondary);
  --ink:       var(--white);
  --ink-2:     var(--text-muted);
  --ink-3:     var(--text-muted);
  --ink-4:     var(--text-dim);
  --gold:      var(--gold-bright);
  --gold-2:    var(--gold-base);
  --gold-hi:   var(--gold-bright);
  --gold-ink:  var(--bg-primary);
  --ok:        var(--ok-base);
  --warn:      var(--warn-base);

  --line:      var(--border);
  --line-mid:  var(--border-mid);
  --line-str:  var(--border-strong);
  --line-dead: var(--border-dead);

  --font-display: 'Bebas Neue', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --font-mono:    'Share Tech Mono', ui-monospace, 'Courier New', monospace;

  --dur-micro: 140ms;
  --dur-ui:    240ms;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1280px;
  --pad-x:     clamp(20px, 4vw, 48px);
  --sec-y:     clamp(76px, 9vw, 124px);

  --clip-btn:  polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  cursor: crosshair;
  overflow-x: hidden;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: crosshair; }
a { color: var(--gold); text-decoration: none; transition: color var(--dur-ui) var(--ease); }
a:hover { color: var(--gold-hi); }
ul { list-style: none; }

/* Global drafting grid, above section fills, below the nav. */
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page { position: relative; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

/* --- Accessibility ------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 20px;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --- Type primitives ---------------------------------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker--dim { color: var(--ink-4); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 74px);
  letter-spacing: 0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--ink);
}
.h2 em { font-style: normal; color: var(--gold); }

.h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 70ch;
}

.body { font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.data-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.data-value {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.data-value--gold  { color: var(--gold); }
.data-value--ok    { color: var(--ok); }
.data-value--warn  { color: var(--warn); }
.data-value--dim   { color: var(--ink-3); }

/* Limitation note — the trust device used throughout the page. */
.limit {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(232, 192, 96, 0.78);
  border-left: 2px solid rgba(232, 192, 96, 0.45);
  padding-left: 12px;
}
.limit--dead {
  color: var(--ink-3);
  border-left-color: var(--line-dead);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line-dead);
  color: var(--ink-3);
}
.badge--ok    { color: var(--ok);   border-color: rgba(0, 204, 68, 0.42);   background: rgba(0, 204, 68, 0.07); }
.badge--gold  { color: var(--gold); border-color: rgba(232, 192, 96, 0.45); background: rgba(232, 192, 96, 0.07); }
.badge--warn  { color: var(--warn); border-color: rgba(230, 168, 58, 0.48); background: rgba(230, 168, 58, 0.07); }
.badge--dev   { color: var(--ink-3); border-style: dashed; border-color: rgba(139, 153, 168, 0.42); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  border: 1px solid rgba(139, 153, 168, 0.3);
  padding: 5px 9px;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease),
              transform var(--dur-micro) var(--ease);
}
.btn--primary {
  color: var(--gold-ink);
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  clip-path: var(--clip-btn);
  font-weight: 600;
}
.btn--primary:hover { background: var(--gold-hi); color: var(--gold-ink); transform: translateY(-2px); }
.btn--ghost {
  color: var(--gold);
  border: 1px solid rgba(232, 192, 96, 0.42);
  background: rgba(5, 8, 14, 0.5);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(232, 192, 96, 0.1); color: var(--gold-hi); }
.btn--sm { min-height: 48px; padding: 0 24px; font-size: 13px; letter-spacing: 0.12em; }

/* Hairline grid: 1px gutters made of the container background. */
.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-mid);
}
.hairline-grid > * { background: var(--bg-2); }

/* --- Nav ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px var(--pad-x);
  background: var(--scrim-a);
  backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark__mark { width: 26px; height: 26px; color: var(--gold); flex: none; }
.wordmark__mark--sm { width: 22px; height: 22px; }
.wordmark__text--sm { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.25em; line-height: 1; color: var(--ink); }
.wordmark__text--sm b { font-weight: 400; color: var(--gold); }
.wordmark span {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.25em;
  line-height: 1;
  color: var(--ink);
}
.wordmark b { font-weight: 400; color: var(--gold); }

.nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.nav__link:hover { color: var(--gold); }

/* --- Hero --------------------------------------------------------------- */
/* Protection gradients follow the palette, or Day leaves dark ink on a dark
   scrim. Overridden per mode below. */
:root {
  --scrim-a: rgba(5, 8, 14, 0.86); --scrim-b: rgba(5, 8, 14, 0.66);
  --scrim-c: rgba(5, 8, 14, 0.30); --scrim-d: rgba(5, 8, 14, 0.10);
  --fade-b: rgba(5, 8, 14, 0.72);  --fade-c: rgba(5, 8, 14, 0.12);
  --panel-a: rgba(12, 18, 32, 0.93); --panel-b: rgba(12, 18, 32, 0.6);
  --scrim-v-a: rgba(5, 8, 14, 0.62); --scrim-v-b: rgba(5, 8, 14, 0.72); --scrim-v-c: rgba(5, 8, 14, 0.9);
}
html[data-mode="day"] {
  --scrim-a: rgba(255,255,255,0.95); --scrim-b: rgba(255,255,255,0.86);
  --scrim-c: rgba(255,255,255,0.5);  --scrim-d: rgba(255,255,255,0.24);
  --fade-b: rgba(255,255,255,0.78);  --fade-c: rgba(255,255,255,0.22);
  --panel-a: rgba(228,232,240,0.94); --panel-b: rgba(228,232,240,0.6);
  --scrim-v-a: rgba(255,255,255,0.72); --scrim-v-b: rgba(255,255,255,0.84); --scrim-v-c: rgba(255,255,255,0.95);
}
html[data-mode="nvg"] {
  --scrim-a: rgba(0,0,0,0.95); --scrim-b: rgba(0,0,0,0.88);
  --scrim-c: rgba(0,0,0,0.6);  --scrim-d: rgba(0,0,0,0.35);
  --fade-b: rgba(0,0,0,0.8);   --fade-c: rgba(0,0,0,0.3);
  --panel-a: rgba(0,8,16,0.94); --panel-b: rgba(0,8,16,0.6);
  --scrim-v-a: rgba(0,0,0,0.7); --scrim-v-b: rgba(0,0,0,0.82); --scrim-v-c: rgba(0,0,0,0.95);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(920px, 100vh);
  overflow: hidden;
  background: var(--bg);
}
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.18) saturate(1.05); }
.hero__scrim, .hero__fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__scrim {
  background: linear-gradient(92deg,
    var(--scrim-a) 0%, var(--scrim-b) 40%,
    var(--scrim-c) 72%, var(--scrim-d) 100%);
}
.hero__fade {
  background: linear-gradient(0deg,
    var(--bg) 0%, var(--fade-b) 26%, var(--fade-c) 58%, transparent 82%);
}
.hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 150px) var(--pad-x) clamp(40px, 5vw, 64px);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  flex: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 8.6vw, 132px);
  line-height: 0.88;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero h1 span { display: block; }
.hero h1 .gold { color: var(--gold); }
.hero__sub {
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 16px;
}
.hero__body { max-width: 620px; margin-bottom: 34px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .actions { margin-bottom: 44px; }

.status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  max-width: 1100px;
}
.status-strip > div {
  background: rgba(8, 12, 20, 0.88);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- Tagline band ------------------------------------------------------- */
.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band .wrap { padding-top: clamp(34px, 4vw, 56px); padding-bottom: clamp(34px, 4vw, 56px); }
.band p {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 50px);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.02;
}
.band em { font-style: normal; color: var(--gold); }

/* --- Sections ----------------------------------------------------------- */
.section { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.section--alt .hairline-grid > * { background: var(--bg); }
.section--glow  { background: radial-gradient(ellipse at 20% 0%, rgba(201, 168, 76, 0.07), transparent 60%), var(--bg); }
.section--glow-b { background: radial-gradient(ellipse at 80% 100%, rgba(201, 168, 76, 0.09), transparent 55%), var(--bg); border-bottom: 0; }

.section__head { margin-bottom: 20px; }
.section__head .h2 { margin-bottom: 20px; }

/* --- Problem / hub ------------------------------------------------------ */
.problem {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  align-items: stretch;
}
.panel-before {
  border: 1px solid rgba(139, 153, 168, 0.28);
  background: rgba(12, 18, 32, 0.6);
  padding: 28px 24px;
}
.panel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.panel-title--gold { color: var(--gold); }

/* Eight mismatched sources — different widths, borders and formats. */
.sources { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.sources li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  padding: 11px 12px;
}
.sources .fmt { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); flex: none; }
.src-1 { width: 88%;  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid rgba(139,153,168,0.34); transform: rotate(-0.5deg); }
.src-2 { width: 100%; font-size: 15px; border: 1px dashed rgba(139,153,168,0.34); background: rgba(139,153,168,0.05); }
.src-3 { width: 76%;  font-weight: 300; font-size: 16px; border-bottom: 1px solid rgba(139,153,168,0.34); padding: 9px 2px; transform: rotate(0.6deg); }
.src-4 { width: 94%;  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px dotted rgba(139,153,168,0.45); }
.src-5 { width: 70%;  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border-left: 3px solid rgba(139,153,168,0.4); background: rgba(139,153,168,0.05); }
.src-6 { width: 82%;  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid rgba(139,153,168,0.2); transform: rotate(-0.8deg); }
.src-7 { width: 100%; font-size: 15px; border: 1px dashed rgba(139,153,168,0.4); }
.src-8 { width: 64%;  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid rgba(139,153,168,0.34); transform: rotate(0.4deg); }

.changes { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 20px 0; }
.changes__list { display: grid; gap: 14px; }
.changes__list div { display: grid; gap: 5px; }
.changes__from {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.changes__to { font-weight: 400; font-size: 16px; line-height: 1.45; color: var(--ink); }

.panel-hub {
  border: 1px solid var(--line-str);
  background: linear-gradient(180deg, rgba(232, 192, 96, 0.06), rgba(12, 18, 32, 0.7));
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.panel-hub__mark {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.07em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hub-list { display: grid; gap: 8px; margin-bottom: 22px; }
.hub-list li {
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(5, 8, 14, 0.7);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.hub-list li:last-child {
  border-color: rgba(232, 192, 96, 0.45);
  background: rgba(232, 192, 96, 0.07);
}
.hub-list .l {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.hub-list li:last-child .l { color: var(--gold); }
.hub-list .v { font-weight: 400; font-size: 16px; color: var(--ink); line-height: 1.4; }
.hub-list li:last-child .v { color: var(--gold); }
.panel-hub .body { margin-top: auto; }


/* --- Fragmented-sources collage ---------------------------------------- */
/* Eight artefacts in eight formats, overlapping and cropping each other.
   The mess is the argument. */
.before-col { display: flex; flex-direction: column; }
.collage {
  position: relative;
  min-height: clamp(500px, 50vw, 620px);
  border: 1px solid rgba(139, 153, 168, 0.28);
  background: rgba(12, 18, 32, 0.6);
  overflow: hidden;
}
.collage__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 14px;
}
.collage__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  border: 1px solid rgba(139, 153, 168, 0.34);
  padding: 3px 8px;
  white-space: nowrap;
}
.collage__vig {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(12, 18, 32, 0.28) 0%, rgba(12, 18, 32, 0) 16%,
    rgba(12, 18, 32, 0) 74%, rgba(12, 18, 32, 0.5) 100%);
}
.collage__fmts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 153, 168, 0.22);
}
.collage__fmts span {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 12px);
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.frag { position: absolute; overflow: hidden; box-shadow: var(--shadow-heavy); }
.frag__hd {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.frag__hd b { font-weight: 400; color: var(--ink-4); }

/* Paper stock — the only warm surface on the page, and deliberately so. */
.frag--paper { background: #DFDBD0; border: 1px solid #B9B3A5; padding: 14px 16px; }
.frag--paper .frag__hd { color: #2A2D33; border-bottom: 1px solid rgba(26, 29, 34, 0.28); padding-bottom: 7px; margin-bottom: 9px; }
.frag--paper .frag__hd b { color: #6A6558; }
.paper-lines { display: grid; gap: 7px; }
.paper-lines div { display: flex; align-items: center; gap: 8px; }
.paper-lines i { width: 9px; height: 9px; border: 1px solid #4A4D53; flex: none; }
.paper-lines s { height: 6px; background: rgba(26, 29, 34, 0.3); text-decoration: none; }

.frag--chart { background: #E4E0D4; border: 1px solid #B9B3A5; padding: 12px; }
.frag--chart .frag__hd { color: #2A2D33; margin-bottom: 8px; }
.frag--chart svg { width: 100%; height: auto; }

.frag--sheet { background: #101726; border: 1px solid rgba(139, 153, 168, 0.34); }
.frag--sheet .frag__hd { color: var(--ink-2); padding: 8px 11px; background: rgba(139, 153, 168, 0.1); border-bottom: 1px solid rgba(139, 153, 168, 0.28); }
.sheet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(139, 153, 168, 0.2); }
.sheet-grid span {
  background: #0B1220;
  padding: 8px 4px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 12px);
  color: #5C6875;
  text-align: center;
}

.frag--browser { background: #0A101C; border: 1px solid rgba(139, 153, 168, 0.4); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(139, 153, 168, 0.12);
  border-bottom: 1px solid rgba(139, 153, 168, 0.28);
}
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #4A5563; flex: none; }
.browser-bar span { font-family: var(--font-mono); font-size: clamp(11px, 0.85vw, 12px); letter-spacing: 0.1em; color: var(--ink-4); margin-left: 6px; }
.frag--browser p {
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw, 13px);
  color: var(--ink-3);
  line-height: 1.75;
}

.frag--tty { background: #0D1420; border: 1px solid rgba(139, 153, 168, 0.3); padding: 12px 13px; }
.frag--tty .frag__hd { color: var(--ink-2); margin-bottom: 8px; }
.frag--tty p {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.82vw, 12px);
  letter-spacing: 0.06em;
  color: #5C6875;
  line-height: 1.85;
  text-transform: uppercase;
}

.frag--phone { background: #0B1220; border: 1px solid rgba(139, 153, 168, 0.42); border-radius: 10px; padding: 10px 9px; }
.frag--phone .lbl { display: block; font-family: var(--font-mono); font-size: clamp(10px, 0.8vw, 12px); letter-spacing: 0.12em; color: var(--ink-4); text-transform: uppercase; margin-bottom: 8px; text-align: center; }
.frag--phone .rows { display: grid; gap: 5px; }
.frag--phone .rows span { height: 5px; background: rgba(139, 153, 168, 0.24); }
.frag--phone .btn-ghost {
  margin-top: 9px;
  border: 1px solid rgba(139, 153, 168, 0.34);
  padding: 5px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-align: center;
}

.frag--calc { background: #151B26; border: 1px solid rgba(139, 153, 168, 0.34); padding: 11px; }
.frag--calc .frag__hd { color: var(--ink-4); margin-bottom: 8px; }
.frag--calc .display {
  background: #0A0F18;
  border: 1px solid rgba(139, 153, 168, 0.24);
  padding: 7px 9px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 15px);
  color: var(--ink-3);
  text-align: right;
  margin-bottom: 7px;
}
.frag--calc .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.frag--calc .keys span {
  background: rgba(139, 153, 168, 0.12);
  padding: 6px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 12px);
  color: #5C6875;
}

.frag--login { background: #0F1624; border: 1px solid rgba(139, 153, 168, 0.45); padding: 13px 14px; }
.frag--login .frag__hd { color: var(--ink-2); margin-bottom: 9px; }
.frag--login .fields { display: grid; gap: 6px; margin-bottom: 9px; }
.frag--login .fields span { height: 22px; border: 1px solid rgba(139, 153, 168, 0.3); background: rgba(0, 0, 0, 0.25); }
.frag--login .submit {
  border: 1px solid rgba(139, 153, 168, 0.42);
  padding: 6px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 12px);
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-align: center;
  text-transform: uppercase;
}

/* Placement — deliberately uneven, cropped by the frame on three sides. */
.f-checklist { left: -5%;  top: 3%;     width: 52%; transform: rotate(-5deg);   z-index: 3; }
.f-sheet     { right: -4%; top: -2%;    width: 54%; transform: rotate(2.5deg);  z-index: 2; }
.f-chart     { left: 3%;   top: 36%;    width: 44%; transform: rotate(3.5deg);  z-index: 4; }
.f-browser   { right: -6%; top: 30%;    width: 60%; transform: rotate(-2deg);   z-index: 5; }
.f-tty       { left: -3%;  bottom: 9%;  width: 50%; transform: rotate(-1.5deg); z-index: 6; }
.f-phone     { right: 2%;  bottom: 2%;  width: 24%; transform: rotate(4.5deg);  z-index: 10; }
.f-calc      { left: 11%;  bottom: -4%; width: 32%; transform: rotate(-3.5deg); z-index: 8; }
.f-login     { right: 26%; bottom: -6%; width: 31%; transform: rotate(1.5deg);  z-index: 9; }

/* --- What changes ------------------------------------------------------- */
/* The gold rail thickens down the list: consolidation you can feel. */
.chg { display: grid; gap: 7px; padding: 15px 0 15px 18px; border-left: 2px solid rgba(232, 192, 96, 0.22); }
.chg:nth-child(2) { border-left-width: 3px; border-left-color: rgba(232, 192, 96, 0.42); }
.chg:nth-child(3) { border-left-width: 5px; border-left-color: rgba(232, 192, 96, 0.68); }
.chg:nth-child(4) { border-left-width: 7px; border-left-color: var(--gold); }
.chg__was {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #5C6875;
  text-transform: uppercase;
  text-decoration: line-through;
  text-decoration-color: rgba(139, 153, 168, 0.5);
}
.chg__now {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: 0.05em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ink);
}
.chg__now em { font-style: normal; color: var(--gold); }
.chg-sum { border: 1px solid var(--line-str); background: rgba(232, 192, 96, 0.07); padding: 16px 18px; }
.chg-sum__t {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--gold);
}
.chg-sum__b { font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-top: 7px; }

/* --- Audience ----------------------------------------------------------- */
.audience {
  margin-top: 44px;
  /* Capped at 3 tracks: 6 cards always fill whole rows, never leaving
     an empty cell that exposes the gutter colour. */
  grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 2px) / 3)), 1fr));
}
.audience > li { padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.audience__role {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
}
.audience__note { font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* --- Module selector ---------------------------------------------------- */
.rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--bg);
  border: 1px solid var(--line-mid);
  border-bottom: 0;
}
.rail__tab { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail__tab {
  position: relative;
  background: var(--bg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 84px;
  text-align: left;
  transition: background var(--dur-ui) var(--ease);
}
.rail__tab:hover { background: var(--bg-3); }
.rail__tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232, 192, 96, 0.09);
  border-top: 2px solid var(--gold);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease);
  pointer-events: none;
}
.rail__tab[aria-selected="true"]::before { opacity: 1; }
.rail__tab > * { position: relative; }
.rail__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-4); }
.rail__name { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.08em; color: var(--ink); text-transform: uppercase; }
.rail__tab[aria-selected="true"] .rail__name { color: var(--gold); }
.rail__sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }

.panels { border: 1px solid var(--line-mid); border-top: 0; background: var(--bg); }
.panel[hidden] { display: none; }
.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px);
}
.panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel__icon { width: 32px; height: 32px; color: var(--gold); flex: none; }
.panel .h3 { margin-bottom: 8px; }
.panel__tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.panel__body { margin-bottom: 24px; }
.panel .tags { margin-bottom: 24px; }

.readout {
  border: 1px solid var(--line-mid);
  background: var(--bg-2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-content: start;
}
.readout__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.readout__rows { display: grid; gap: 8px; }
.readout__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(5, 8, 14, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.12);
}
.readout__row--warn { border-color: rgba(230, 168, 58, 0.3); }
.readout__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  text-transform: uppercase;
  line-height: 1.6;
}
.envelope { border: 1px solid var(--line); padding: 14px; background: rgba(5, 8, 14, 0.5); }
.envelope svg { width: 100%; height: auto; }
.envelope .readout__note { margin-top: 10px; }

/* Station table — station / arm / weight / moment, the engineering idiom. */
.stations { display: grid; gap: 7px; }
.stn {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(44px, auto));
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(5, 8, 14, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.12);
}
.stn__l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-4); text-transform: uppercase; }
.stn__c { font-family: var(--font-mono); font-size: 13px; color: var(--ink); text-align: right; }
.stn__c--dim { color: var(--ink-3); }
.stn--head {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
  padding: 0 12px 8px;
}
.stn--head .stn__l, .stn--head .stn__c {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.stn--on { background: rgba(232, 192, 96, 0.07); border-color: rgba(232, 192, 96, 0.6); }
.stn--on .stn__c { color: var(--gold); }
.stn--on .stn__c--dim { color: var(--ink-3); }

.checkitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(5, 8, 14, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.12);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.checkitem .box { width: 14px; height: 14px; border: 1px solid rgba(139, 153, 168, 0.45); flex: none; }
.checkitem--done .box { border-color: var(--ok); background: rgba(0, 204, 68, 0.35); }
.checkitem--now { background: rgba(232, 192, 96, 0.06); border-color: rgba(232, 192, 96, 0.42); color: var(--ink); }
.checkitem--now .box { border-color: var(--gold); }
.checkitem--todo { color: var(--ink-4); }


/* Checklist readout — mirrors the deployed module's structure:
   phase tabs, numbered challenge/response rows, progress footer. */
.cl-phases { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cl-phase {
  flex: 1;
  background: rgba(5, 8, 14, 0.7);
  padding: 9px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.cl-phase--on { background: rgba(232, 192, 96, 0.12); color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); }

.cl-rows { display: grid; gap: 6px; }
.cl-row {
  display: grid;
  grid-template-columns: 26px 1fr auto 18px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(5, 8, 14, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.12);
}
.cl-n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }
.cl-ch {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.cl-rs {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: right;
}
.cl-box { width: 18px; height: 18px; border: 1px solid rgba(139, 153, 168, 0.45); }

.cl-row--done { opacity: 0.62; }
.cl-row--done .cl-ch { text-decoration: line-through; text-decoration-color: rgba(139, 153, 168, 0.55); }
.cl-row--done .cl-rs { color: var(--ok); }
.cl-row--done .cl-box { border-color: var(--ok); background: rgba(0, 204, 68, 0.35); }

.cl-row--now { background: rgba(232, 192, 96, 0.07); border-color: rgba(232, 192, 96, 0.5); }
.cl-row--now .cl-n { color: var(--gold); }
.cl-row--now .cl-box { border-color: var(--gold); }

.cl-row--todo .cl-ch { color: var(--ink-3); }
.cl-row--todo .cl-rs { color: var(--ink-4); }

.cl-caution {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(230, 168, 58, 0.06);
  border: 1px solid rgba(230, 168, 58, 0.4);
}
.cl-caution__l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--warn); text-transform: uppercase; }
.cl-caution__t { font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--ink); }

.cl-foot { display: grid; gap: 10px; }
.cl-bar { height: 4px; background: rgba(139, 153, 168, 0.22); }
.cl-bar span { display: block; height: 100%; width: 43%; background: var(--gold); }
.cl-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 520px) {
  .cl-row { grid-template-columns: 22px 1fr 18px; }
  .cl-rs { grid-column: 2 / 3; text-align: left; }
}

/* --- RAIM --------------------------------------------------------------- */
.raim__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.raim__flags .kicker { margin-bottom: 0; white-space: nowrap; }
.raim h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.4vw, 102px);
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
}
.raim h2 em { font-style: normal; color: var(--gold); }
.raim__cols {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 3vw, 44px);
  align-items: start;
}
.raim__explain { align-content: start; }
.raim__explain > div { padding: 26px 24px; }
.raim__explain h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.raim__explain p { font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.raim__paper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding: 26px 24px;
  border-top: 1px solid rgba(232, 192, 96, 0.28);
}
.raim__paper-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.raim__paper p { font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.raim__paper .btn { align-self: flex-start; }

.selector {
  border: 1px solid var(--line-str);
  background: linear-gradient(180deg, rgba(232, 192, 96, 0.05), var(--bg-2));
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.selector__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.selector__head .panel-title { margin-bottom: 0; }
.selector__inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.selector__inputs div {
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(5, 8, 14, 0.6);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.selector__inputs .big { font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.1em; color: var(--ink); }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.flow__step--ok   { border-color: rgba(0, 204, 68, 0.42);   background: rgba(0, 204, 68, 0.06); }
.flow__step--live { border-color: rgba(232, 192, 96, 0.6);  background: rgba(232, 192, 96, 0.1); }
.flow__n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }
.flow__step--ok .flow__n { color: var(--ok); }
.flow__step--live .flow__n { color: var(--gold); }
.flow__t {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.flow__step--live .flow__t { color: var(--ink); }
.flow__arrow { font-family: var(--font-mono); color: var(--ink-4); }

.loc-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.loc {
  position: relative;
  border: 1px solid var(--line-mid);
  background: rgba(5, 8, 14, 0.6);
  padding: 14px;
  text-align: left;
  min-height: 72px;
  transition: border-color var(--dur-ui) var(--ease), background var(--dur-ui) var(--ease);
}
.loc:hover { border-color: rgba(232, 192, 96, 0.6); }
.loc[aria-pressed="true"] { border-color: var(--gold); background: rgba(232, 192, 96, 0.12); }
.loc__code { display: block; font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 5px; }
.loc__cov  { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; line-height: 1.4; }

.provider {
  border: 1px solid var(--line-str);
  background: rgba(232, 192, 96, 0.06);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.provider__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
}
.provider__note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }

/* The one caution on the page that must not be skimmed. */
.advisory {
  border: 1px solid rgba(230, 168, 58, 0.55);
  background: rgba(230, 168, 58, 0.08);
  padding: 16px 18px;
  display: grid;
  gap: 9px;
}
.advisory__hd { display: flex; align-items: center; gap: 10px; }
.advisory__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--warn);
  flex: none;
  animation: rc-pulse 2s ease-in-out infinite;
}
@keyframes rc-pulse {
  0%, 100% { opacity: 1;    box-shadow: 0 0 10px rgba(230, 168, 58, 0.95); }
  50%      { opacity: 0.32; box-shadow: 0 0 3px  rgba(230, 168, 58, 0.4); }
}
.advisory__l { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--warn); text-transform: uppercase; }
.advisory p { font-weight: 400; font-size: 15px; line-height: 1.65; color: var(--ink); }

/* --- Two questions ------------------------------------------------------ */
.questions {
  margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.questions > article { padding: clamp(28px, 3vw, 40px); }
.questions .badge { margin-bottom: 20px; }
.questions h3 {
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 24px;
}
.qrows { display: grid; gap: 10px; }
.qrows > div {
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr;
  gap: 6px 16px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.qrows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.qrows .data-value { text-align: right; min-width: 0; overflow-wrap: anywhere; }

.notice {
  margin-top: 24px;
  border: 1px solid rgba(230, 168, 58, 0.5);
  background: rgba(230, 168, 58, 0.06);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.notice__flags { display: grid; gap: 4px; }
.notice__flags span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--warn);
  text-transform: uppercase;
}
.notice p { font-weight: 400; font-size: 15px; line-height: 1.6; color: var(--ink); }

.notice--gold { border-color: var(--line-str); background: rgba(232, 192, 96, 0.06); }
.notice--gold .notice__flags span { color: var(--gold); }

/* --- Operations list ---------------------------------------------------- */
.ops { margin-top: 44px; }
.ops > div {
  padding: 26px clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px 44px;
  align-items: baseline;
}
.ops__t { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }

/* Palette preview — the page filters itself so a visitor can see the three
   cockpit lighting modes. Day is a hue-preserving lightness flip; NVG is a
   true R=0 colour matrix. Photographs get the inverse of the day filter. */
html[data-mode="nvg"] { --nav-blur: none; }
html[data-mode="nvg"] .frag--paper,
html[data-mode="nvg"] .frag--chart,
html[data-mode="nvg"] .hero__photo img,
html[data-mode="nvg"] .founder__photo img { filter: url(#rc-nvg); }

.modes { display: grid; gap: 10px; }
.modes__row { display: flex; flex-wrap: wrap; gap: 8px; }
.mode {
  flex: 1;
  min-width: 96px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(5, 8, 14, 0.7);
  border: 1px solid var(--line-mid);
  transition: color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.mode:hover { border-color: rgba(232, 192, 96, 0.6); color: var(--gold); }
.mode[aria-pressed="true"] { background: rgba(232, 192, 96, 0.14); border-color: var(--gold); color: var(--gold); }

/* --- Dispatch ----------------------------------------------------------- */
.dispatch {
  border: 1px dashed var(--line-dead);
  background: rgba(139, 153, 168, 0.04);
  padding: clamp(28px, 4vw, 56px);
}
.dispatch__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 20px; }
.dispatch__flags .kicker { margin-bottom: 0; white-space: nowrap; }
.dispatch h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 58px);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.dispatch p { font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--ink-4); max-width: 76ch; }
.dispatch__steps {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.dispatch__steps li {
  border: 1px dashed var(--line-dead);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dispatch__steps .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-4); }
.dispatch__steps .t { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.dispatch .limit { margin-top: 28px; }


/* Dispatch Mode — three-stage flow + value strip. Dead-metal only: this
   capability is not deployed, so it never uses gold. */
.dsp-flow, .dsp-value {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(240px, calc((100% - 2px) / 3)), 1fr));
  gap: 1px;
  background: rgba(139, 153, 168, 0.22);
  border: 1px dashed var(--line-dead);
}
.dsp-value { margin-top: 32px; }
.dsp-flow > div { background: var(--bg); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.dsp-flow__n { display: flex; align-items: center; gap: 10px; }
.dsp-flow__n span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: #5C6875; }
.dsp-flow__n i { flex: 1; height: 1px; background: rgba(139, 153, 168, 0.22); }
.dsp-flow__t { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); line-height: 1.05; }
.dsp-flow__s { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-4); text-transform: uppercase; margin-top: 6px; }
.dsp-flow ul { display: grid; gap: 8px; }
.dsp-flow li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
}
.dsp-flow li::before { content: '·'; font-family: var(--font-mono); font-size: 12px; color: #5C6875; flex: none; }
.dsp-value > div { background: var(--bg); padding: 22px 24px; display: grid; gap: 7px; align-content: start; }
.dsp-value__t { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); line-height: 1.1; }
.dsp-value__b { font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--ink-4); }
.dispatch__lede { font-weight: 400; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--ink-3); max-width: 70ch; margin-bottom: 16px; }

/* --- Founder ------------------------------------------------------------ */
.founder { position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.founder__photo { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) contrast(1.05); }
.founder__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--panel-a) 45%, var(--panel-b) 100%);
}
.founder__in {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sec-y) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.founder__copy { display: grid; gap: 20px; max-width: 62ch; }
.founder__copy p { font-weight: 300; font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.founder__side { display: flex; flex-direction: column; gap: 16px; }
.pillars {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.pillars > div { background: rgba(5, 8, 14, 0.84) !important; padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.pillars__t { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); line-height: 1.1; }
.pillars__b { font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats > div { background: rgba(5, 8, 14, 0.84) !important; padding: 32px 26px; display: flex; flex-direction: column; gap: 8px; }
.stats__n { font-family: var(--font-display); font-size: clamp(46px, 6vw, 68px); line-height: 1; color: var(--gold); letter-spacing: 0.03em; }
.stats__l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; line-height: 1.7; }

/* --- Access ------------------------------------------------------------- */
.access h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 88px);
  letter-spacing: 0.02em;
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
}
.access h2 em { font-style: normal; color: var(--gold); }
.access .lede { margin-bottom: 36px; }
.access .btn { min-height: 56px; padding: 0 44px; }
.access .limit { margin-top: 34px; max-width: 76ch; }

/* --- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 38px 0; background: var(--bg); }
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.footer__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  text-transform: uppercase;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.footer__links a:hover { color: var(--gold); }
.footer__meta { text-align: right; }
.footer__meta div { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-4); }
.footer__meta .tagline { color: rgba(232, 192, 96, 0.6); font-style: italic; margin-top: 5px; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Protection gradients follow the palette, or Day leaves dark ink on a dark
   scrim. Overridden per mode below. */
:root {
  --scrim-a: rgba(5, 8, 14, 0.86); --scrim-b: rgba(5, 8, 14, 0.66);
  --scrim-c: rgba(5, 8, 14, 0.30); --scrim-d: rgba(5, 8, 14, 0.10);
  --fade-b: rgba(5, 8, 14, 0.72);  --fade-c: rgba(5, 8, 14, 0.12);
  --panel-a: rgba(12, 18, 32, 0.93); --panel-b: rgba(12, 18, 32, 0.6);
  --scrim-v-a: rgba(5, 8, 14, 0.62); --scrim-v-b: rgba(5, 8, 14, 0.72); --scrim-v-c: rgba(5, 8, 14, 0.9);
}
html[data-mode="day"] {
  --scrim-a: rgba(255,255,255,0.95); --scrim-b: rgba(255,255,255,0.86);
  --scrim-c: rgba(255,255,255,0.5);  --scrim-d: rgba(255,255,255,0.24);
  --fade-b: rgba(255,255,255,0.78);  --fade-c: rgba(255,255,255,0.22);
  --panel-a: rgba(228,232,240,0.94); --panel-b: rgba(228,232,240,0.6);
  --scrim-v-a: rgba(255,255,255,0.72); --scrim-v-b: rgba(255,255,255,0.84); --scrim-v-c: rgba(255,255,255,0.95);
}
html[data-mode="nvg"] {
  --scrim-a: rgba(0,0,0,0.95); --scrim-b: rgba(0,0,0,0.88);
  --scrim-c: rgba(0,0,0,0.6);  --scrim-d: rgba(0,0,0,0.35);
  --fade-b: rgba(0,0,0,0.8);   --fade-c: rgba(0,0,0,0.3);
  --panel-a: rgba(0,8,16,0.94); --panel-b: rgba(0,8,16,0.6);
  --scrim-v-a: rgba(0,0,0,0.7); --scrim-v-b: rgba(0,0,0,0.82); --scrim-v-c: rgba(0,0,0,0.95);
}

.hero { min-height: auto; }
  /* Narrow viewports: protect the copy from below rather than from the left,
     so the photograph is still legible behind the headline. */
  .hero__scrim {
    background: linear-gradient(180deg,
      var(--scrim-v-a) 0%, var(--scrim-v-b) 45%, var(--scrim-v-c) 100%);
  }
  .footer__meta { text-align: left; }
}

@media (max-width: 768px) {
  .nav { gap: 10px; }
  .nav__links { gap: 10px 18px; }
  .hero h1 { max-width: none; }
  .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .rail { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .sources li { width: 100% !important; transform: none !important; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
/* Access request dialog — integrated with the existing ROTORCORE design system */
.contact-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(201, 168, 76, .42);
  background: #080b11;
  color: #e8e8e8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72);
}
.contact-dialog::backdrop { background: rgba(2, 5, 10, .84); backdrop-filter: blur(6px); }
.contact-form { position: relative; padding: clamp(28px, 5vw, 52px); }
.contact-form h2 { margin: 10px 44px 12px 0; font-size: clamp(32px, 5vw, 54px); line-height: .95; }
.contact-form__intro { margin: 0 0 28px; color: rgba(232, 232, 232, .7); }
.contact-form__close { position: absolute; top: 20px; right: 22px; border: 0; background: transparent; color: #e8e8e8; font: 300 34px/1 sans-serif; cursor: pointer; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: grid; gap: 7px; color: #c9a84c; font: 500 12px/1.2 'Share Tech Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(232, 232, 232, .2); border-radius: 0; background: rgba(255, 255, 255, .035); color: #e8e8e8; padding: 12px 13px; font: 400 16px/1.4 'Barlow Condensed', sans-serif; text-transform: none; letter-spacing: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid #c9a84c; border-color: #c9a84c; }
.contact-form__wide { grid-column: 1 / -1; }
.contact-form__actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.contact-form__actions a, .contact-form__status a { color: #c9a84c; }
.contact-form__status { min-height: 22px; margin: 18px 0 0; color: rgba(232, 232, 232, .78); }
@media (max-width: 620px) {
  .contact-form__grid { grid-template-columns: 1fr; }
  .contact-form__wide { grid-column: auto; }
  .contact-form__actions { align-items: flex-start; flex-direction: column; }
}
