/* ============================================================
   SPACESAIL — Materials & Components for Space
   Monochrome, dark-committed. Cool-biased grays only.
   ============================================================ */

:root {
  /* color */
  --void:   #040507;
  --hull:   #0b0d11;
  --panel:  #12151b;
  --line:   #232830;
  --line-soft: #171b22;
  --steel:  #8b929e;
  --chrome: #c7ccd6;
  --white:  #f4f6f9;

  /* type */
  --font-display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;

  /* layout */
  --gutter: clamp(20px, 4.5vw, 72px);
  --section-pad: clamp(88px, 12vw, 176px);
  --nav-h: 64px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--chrome);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

::selection { background: var(--chrome); color: var(--void); }

/* anchor targets clear the fixed nav */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.skip-link {
  position: fixed; top: -100px; left: var(--gutter);
  z-index: 200;
  background: var(--white); color: var(--void);
  padding: 10px 18px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* visually hidden, available to assistive tech */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- page-wide starfield ---------- */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* everything above the starfield */
.nav, .mobile-menu, main, .footer, .edge-rail { position: relative; z-index: 1; }

/* ---------- reticle cursor ---------- */
.reticle {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(199, 204, 214, 0.55);
  border-radius: 50%;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease,
              opacity 0.3s ease, border-color 0.25s ease;
}
.reticle::before, .reticle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: rgba(199, 204, 214, 0.8);
}
.reticle::before { width: 7px; height: 1px; transform: translate(-50%, -50%); }
.reticle::after  { width: 1px; height: 7px; transform: translate(-50%, -50%); }
.reticle.is-active {
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-color: var(--white);
}
html.has-reticle a, html.has-reticle button { cursor: none; }
html.has-reticle body { cursor: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav.is-scrolled {
  background: rgba(4, 5, 7, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.logo-mark { width: 21px; height: 21px; flex-shrink: 0; }
.logo-word {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}
/* SPACE carries the weight, SAIL sits back in steel — echoes the hero's
   solid/outline duality */
.logo-word em {
  font-style: normal;
  font-weight: 500;
  color: var(--steel);
  transition: color 0.25s ease;
}
.logo:hover .logo-word em,
.logo:focus-visible .logo-word em { color: var(--white); }
.nav-links {
  display: flex; gap: clamp(14px, 2.2vw, 34px);
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-clock { color: var(--steel); font-variant-numeric: tabular-nums; }
.nav-progress {
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--white);
}

.burger {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.burger span {
  display: block; height: 1px; width: 100%;
  background: var(--white);
  transition: transform 0.3s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: rgba(4, 5, 7, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  /* auto margins center when there is room, top-align + scroll when there
     is not (landscape phones) — justify-content: center would clip the top */
  overflow-y: auto;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 32px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.2rem);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chrome);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.mobile-menu nav a:hover { color: var(--white); padding-left: 10px; }
.mobile-menu nav a .mono { color: var(--steel); }
.menu-foot { margin-top: 40px; margin-bottom: auto; color: var(--steel); }

/* ---------- edge rail ---------- */
.edge-rail {
  position: fixed;
  right: 14px; top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: var(--steel);
  opacity: 0.4;
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--chrome);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-solid { background: var(--white); color: var(--void); border-color: var(--white); }
.btn-solid:hover { background: transparent; color: var(--white); }
.btn-ghost { background: transparent; color: var(--chrome); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* faint engineering grid */
  background-image:
    linear-gradient(rgba(199, 204, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 204, 214, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
}
.galaxy-wrap {
  position: absolute;
  inset: -6%;
  will-change: transform;
}
#galaxy { width: 100%; height: 100%; }

.hud {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.hud-tl { top: calc(var(--nav-h) + 20px); left: var(--gutter); }
.hud-tr { top: calc(var(--nav-h) + 20px); right: var(--gutter); text-align: right; }
.hud-bl { bottom: 28px; left: var(--gutter); }
.hud-br { bottom: 28px; right: var(--gutter); text-align: right; }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  /* bottom padding must clear the ~95px scroll-cue footprint when the
     hero collapses to content height on short viewports */
  padding: calc(var(--nav-h) + 40px) var(--gutter) 120px;
  max-width: 1200px;
}
.eyebrow {
  color: var(--steel);
  margin-bottom: clamp(18px, 3vh, 34px);
}
.hero-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3rem, 11.5vw, 10rem);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: clamp(22px, 3.5vh, 40px);
}
.hero-title .line { display: block; }
.line-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--chrome);
  paint-order: stroke;
}
@supports not (-webkit-text-stroke: 1px black) {
  .line-outline { color: var(--steel); }
}
.hero-sub {
  max-width: 56ch;
  margin: 0 auto clamp(28px, 4vh, 44px);
  color: var(--steel);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  text-decoration: none;
}
.cue-line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--steel), transparent);
  animation: cue-drop 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue-drop {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); }
  100% { transform: scaleY(0); opacity: 0; }
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--hull);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  color: var(--steel);
  white-space: nowrap;
  animation: ticker-run 36s linear infinite;
}
/* margins, not gap: track must be exactly 2× one sequence for a seamless -50% loop */
.tick-set { display: flex; align-items: center; flex-shrink: 0; }
.tick-set > span { margin-right: 38px; }
.tick-sep { color: var(--line); }
@keyframes ticker-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section {
  padding: var(--section-pad) var(--gutter);
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
}
.section::before {
  content: "+";
  position: absolute;
  top: 28px; left: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--line);
  pointer-events: none;
}
.section-full { max-width: none; padding-left: 0; padding-right: 0; }
/* align the corner marker and deck edge with the centered 1360px container */
.section-full::before { left: max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter))); }
.section-full .section-head {
  padding: 0 var(--gutter);
  max-width: 1360px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-code {
  color: var(--steel);
  margin-bottom: 18px;
}
.sec-title {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 750;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
  max-width: 20ch;
}
.sec-sub {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--steel);
}

/* ---------- doctrine ---------- */
.doctrine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 104px);
}
.doctrine-copy { display: flex; flex-direction: column; gap: 22px; max-width: 62ch; }
.doctrine-copy .lead {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--white);
}
.doctrine-copy p:not(.lead) { color: var(--steel); }
.doctrine-note {
  border: 1px solid var(--line);
  padding: 26px 26px 22px;
  color: var(--steel);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(11, 13, 17, 0.6);
  font-variant-numeric: tabular-nums;
}
.doctrine-note p:first-child {
  color: var(--chrome);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 44px) clamp(18px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(11, 13, 17, 0.5);
}
.stat-num {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num em {
  font-style: normal;
  font-size: 0.4em;
  color: var(--steel);
  margin-left: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--steel);
}

/* ---------- materials ---------- */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mat-card {
  position: relative;
  background: var(--hull);
  padding: clamp(24px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s ease;
}
.mat-card:hover { background: var(--panel); }
/* viewfinder brackets on hover — same visual language as the hero HUD */
.mat-card::before, .mat-card::after,
.deck-card::before, .deck-card::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.mat-card::before, .deck-card::before {
  top: 9px; left: 9px;
  border-top: 1px solid var(--steel);
  border-left: 1px solid var(--steel);
}
.mat-card::after, .deck-card::after {
  bottom: 9px; right: 9px;
  border-bottom: 1px solid var(--steel);
  border-right: 1px solid var(--steel);
}
.mat-card:hover::before, .mat-card:hover::after,
.deck-card:hover::before, .deck-card:hover::after { opacity: 1; }
.mat-head {
  display: flex;
  justify-content: space-between;
  color: var(--steel);
}
.mat-card h3 {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0;
  color: var(--white);
}
.mat-card > p {
  color: var(--steel);
  font-size: 0.95rem;
  flex-grow: 1;
}
.specs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.specs dt { color: var(--steel); }
.specs dd { color: var(--chrome); }

/* ---------- components deck ---------- */
.deck-nav { display: flex; gap: 10px; margin-top: 28px; }
html:not(.js) .deck-nav { display: none; } /* arrows are JS-driven; native scroll remains */
.deck-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  color: var(--chrome);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.deck-btn:hover { border-color: var(--white); color: var(--white); }
.deck-btn[aria-disabled="true"] { opacity: 0.3; }
.deck-btn[aria-disabled="true"]:hover { border-color: var(--line); color: var(--chrome); }

.deck {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter))) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.deck::-webkit-scrollbar { height: 4px; }
.deck::-webkit-scrollbar-thumb { background: var(--line); }
.deck::-webkit-scrollbar-track { background: transparent; }
.deck-card {
  position: relative;
  flex: 0 0 auto;
  width: min(400px, 80vw);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--hull);
  padding: clamp(24px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.deck-card:hover { background: var(--panel); border-color: var(--steel); }
.deck-idx {
  font-size: 2.4rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  line-height: 1;
}
@supports not (-webkit-text-stroke: 1px black) {
  .deck-idx { color: var(--line); }
}
.deck-card h3 {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
}
.deck-card > p { color: var(--steel); font-size: 0.95rem; flex-grow: 1; }
.deck-spec {
  color: var(--chrome);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

/* ---------- qualification pipeline ---------- */
.pipeline {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  counter-reset: none;
}
.pipe-step {
  display: grid;
  grid-template-columns: minmax(72px, 140px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.pipe-step:first-child { border-top: 1px solid var(--line-soft); }
.pipe-num {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--steel);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
@supports not (-webkit-text-stroke: 1px black) {
  .pipe-num { color: var(--steel); }
}
.pipe-body { max-width: 62ch; }
.pipe-body h3 {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--white);
  margin-bottom: 10px;
}
.pipe-body p { color: var(--steel); }

/* ---------- heritage ledger ---------- */
.ledger-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--hull);
}
.ledger {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--chrome);
  font-variant-numeric: tabular-nums;
}
.ledger th, .ledger td {
  text-align: left;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.ledger th {
  color: var(--steel);
  font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.ledger td:nth-child(4), .ledger th:nth-child(4),
.ledger td:nth-child(5), .ledger th:nth-child(5) { text-align: right; }
.ledger tbody tr { transition: background 0.2s ease; }
.ledger tbody tr:hover { background: var(--panel); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger-note { margin-top: 16px; color: var(--steel); opacity: 0.7; }

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.cta-section::before { content: none; }
.cta-inner { max-width: 1100px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-display);
  font-stretch: 122%;
  font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
  margin: 26px 0 30px;
}
.cta-title .line { display: block; }
.cta-sub {
  max-width: 58ch;
  margin: 0 auto clamp(30px, 4vh, 44px);
  color: var(--steel);
}
.cta-note {
  max-width: 64ch;
  margin: clamp(30px, 4vh, 44px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--steel);
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0.02em;
}
.cta-note strong { color: var(--chrome); font-weight: 500; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--hull);
  padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  position: relative;
  z-index: 1;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-tag { color: var(--steel); max-width: 34ch; font-size: 0.95rem; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  color: var(--steel);
  font-weight: 400;
  font-size: inherit;
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--chrome);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  width: fit-content;
}
.footer-col a:hover { color: var(--white); }
.footer-status {
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.footer-notice {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--steel);
  font-size: 0.66rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
.footer-notice strong { color: var(--chrome); font-weight: 500; }

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--steel);
  position: relative;
  z-index: 1;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--white); }
.footer-watermark {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  /* 9 glyphs at wght 900 / wdth 125 measure ~7.4em: ≤11vw fits every width */
  font-size: clamp(2.5rem, 11vw, 19rem);
  white-space: nowrap;
  line-height: 0.8;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-soft);
  user-select: none;
  pointer-events: none;
  transform: translateY(18%);
}
@supports not (-webkit-text-stroke: 1px black) {
  .footer-watermark { color: var(--line-soft); }
}

/* ---------- reveal animation ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.rv.in { opacity: 1; transform: none; }
/* no-JS fallback: everything visible */
html:not(.js) .rv { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edge-rail { display: none; }
}

/* the full nav (logo + links + clock + CTA) needs ~980px */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  html.js .burger { display: flex; }
  /* without JS the burger is dead weight — keep the links instead */
  html:not(.js) .nav-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
}

@media (max-width: 860px) {
  .doctrine-grid { grid-template-columns: minmax(0, 1fr); }
  .doctrine-note { max-width: 420px; }
  .hud-tr, .hud-br { display: none; }
}

@media (max-width: 640px) {
  .mat-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .pipe-step { grid-template-columns: 56px minmax(0, 1fr); }
  .hero-title { font-size: clamp(2.6rem, 14vw, 4.5rem); }
  .scroll-cue { display: none; }
  .hud-tl { display: none; } /* collides with the eyebrow on short phones */
}

/* short viewports: the hero fills with content — the cue has no room */
@media (max-height: 800px) {
  .scroll-cue { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker-track { animation: none; width: auto; }
  .tick-set {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    padding: 0 var(--gutter);
    white-space: normal;
  }
  .tick-set:last-child { display: none; } /* loop duplicate is noise when static */
  .cue-line { animation: none; transform: scaleY(1); }
  .status-dot { animation: none; }
  .reticle { display: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
