/* ==========================================================================
   RedFoxDynamics — VULPES//FCS Fire Control
   Hand-built. Zero dependencies. No build step.
   ========================================================================== */

/* ---- 0. Tokens -------------------------------------------------------- */
:root {
  /* surfaces */
  --bg: #08080A;
  --surface-raised: #0E0E11;
  --surface-panel: #131318;
  /* type */
  --text-primary: #F2F2EE;
  --text-secondary: #C9C9C2;
  --text-muted: #9A9AA4;
  --steel: #828A95; /* AA-contrast steel (5.7:1 on #08080A) */
  /* ember (only ever HOT) */
  --ember: #EA580C;
  --ember-rim: #FF8A2B;
  --ember-deep: #C2410C;
  --white-hot: #FFE3B3;
  /* lines */
  --grid-line: rgba(242, 242, 238, 0.05);
  --hairline: rgba(242, 242, 238, 0.10);
  --hairline-strong: rgba(242, 242, 238, 0.18);
  --glow-ember: 0 0 24px rgba(234, 88, 12, 0.45);
  /* fonts */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  /* layout */
  --container-max: 1240px;
  --container-pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(80px, 12vw, 168px);
  /* motion */
  --ease-snap: cubic-bezier(0.2, 0.9, 0.1, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 280ms;
}

/* ---- 1. Reset --------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'tnum' 0;
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--ember); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d1d22; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--steel); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* hide native cursor only when reticle is active (set by JS) */
body.reticle-on,
body.reticle-on a,
body.reticle-on button,
body.reticle-on [data-magnetic],
body.reticle-on input,
body.reticle-on textarea { cursor: none; }

/* ---- 2. Mono / shared atoms ------------------------------------------ */
.legend {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tag {
  display: inline-flex;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  border-radius: 0;
}

/* ---- 3. Buttons ------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--t-base) var(--ease-ui),
              border-color var(--t-base) var(--ease-ui),
              color var(--t-base) var(--ease-ui),
              box-shadow var(--t-base) var(--ease-ui),
              transform 120ms var(--ease-snap);
}
.btn svg { transition: transform var(--t-base) var(--ease-snap); }
.btn:hover svg { transform: translateX(3px); }

/* specular sweep */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  transition: left 600ms var(--ease-ui);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn--primary {
  background: var(--ember);
  color: #0a0a0a;
  border-color: var(--ember);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--ember-rim);
  border-color: var(--ember-rim);
  box-shadow: var(--glow-ember);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--hairline-strong);
}
.btn--outline:hover { border-color: var(--ember); color: var(--ember); }
.btn--sm { padding: 9px 16px; font-size: 0.72rem; }
.btn--full { width: 100%; justify-content: center; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* ---- 4. Boot sequence ------------------------------------------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 500ms var(--ease-ui), visibility 500ms;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  box-shadow: 0 0 18px 2px rgba(234, 88, 12, 0.5);
  animation: boot-scan 0.9s var(--ease-ui) forwards;
}
@keyframes boot-scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.boot__console {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  width: min(420px, 80vw);
}
.boot__line { opacity: 0; transform: translateX(-6px); }
.boot__line.is-shown { opacity: 1; transform: none; transition: all 200ms var(--ease-snap); }
.boot__ok { color: var(--ember); }
.boot__line--ready { color: var(--ember); font-weight: 600; }

/* ---- 5. HUD frame ----------------------------------------------------- */
.hud {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}
.hud__corner {
  position: absolute;
  width: 26px; height: 26px;
  stroke: var(--hairline-strong);
  stroke-width: 1.2;
  fill: none;
}
.hud__corner--tl { top: 14px; left: 14px; }
.hud__corner--tr { top: 14px; right: 14px; }
.hud__corner--bl { bottom: 14px; left: 14px; }
.hud__corner--br { bottom: 14px; right: 14px; }

.hud__ruler {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.hud__ruler-track {
  position: relative;
  width: 1px; height: 180px;
  background: var(--hairline);
  background-image: repeating-linear-gradient(to bottom, var(--hairline) 0 1px, transparent 1px 18px);
}
.hud__ruler-caret {
  position: absolute;
  left: -3px; top: 0;
  width: 7px; height: 7px;
  border: 1px solid var(--steel);
  background: var(--bg);
  transform: translateY(-50%);
}
.hud__sector {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--steel);
}
.hud__sector span { color: var(--text-secondary); }

/* ---- 6. Header -------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--t-base) var(--ease-ui), padding var(--t-base) var(--ease-ui), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
  padding: 11px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header__logo { display: flex; align-items: center; gap: 11px; z-index: 10; }
.header__glyph { width: 22px; height: 25px; color: var(--ember); flex-shrink: 0; }
.header__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.header__wordmark-dim { color: var(--text-muted); font-weight: 600; }

.header__status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-left: auto;
}
.header__status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: pulse 2.4s var(--ease-ui) infinite;
}
.header__status-label { color: var(--text-muted); }
.header__sys { color: var(--steel); }
.header__clock { color: var(--text-secondary); font-variant-numeric: tabular-nums; min-width: 92px; }

.header__nav { display: flex; align-items: center; gap: 28px; margin-left: 28px; }
.header__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.header__link:hover { color: var(--ember); }
.header__nav .header__mobile-cta { display: none; }
.header__cta { margin-left: 4px; }

.header__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.header__toggle span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  transition: all var(--t-base) var(--ease-snap);
  transform-origin: center;
}
.header__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-active span:nth-child(2) { opacity: 0; }
.header__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- 7. Hero — Fire Control ------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh; /* fallback for engines without svh */
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 64px, calc(100% / 12) 100%;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 35%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 3;
  padding: 150px 0 80px;
  max-width: 880px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 26px;
  opacity: 0;
  animation: rise 0.7s var(--ease-snap) 0.15s forwards;
}
.hero__eyebrow-bracket { color: var(--steel); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char {
  display: inline-block;
  font-variation-settings: 'wght' 800;
}
/* will-change kept transient — only while the hero (and its weight ticker) is live */
.hero.is-aiming .hero__title .char { will-change: font-variation-settings; }
.hero__subtitle {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 38px;
  opacity: 0;
  animation: rise 0.7s var(--ease-snap) 0.55s forwards;
}
.hero__subtitle-em { color: var(--text-primary); font-weight: 500; }
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  opacity: 0;
  animation: rise 0.7s var(--ease-snap) 0.7s forwards;
}
.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--steel);
  transition: opacity 500ms var(--ease-ui);
}
.hero__hint.is-hidden { opacity: 0; }
.hero__hint-pulse {
  width: 7px; height: 7px;
  border: 1px solid var(--ember);
  animation: pulse 1.6s var(--ease-ui) infinite;
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--steel);
}
.hero__scroll svg { color: var(--ember); animation: bob 2s var(--ease-ui) infinite; }

/* Telemetry */
.telemetry {
  position: absolute;
  right: var(--container-pad);
  bottom: 30px;
  z-index: 3;
  width: min(330px, 42vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: rise 0.7s var(--ease-snap) 0.9s forwards;
}
.telemetry__readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.readout {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.readout__k {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.readout__v {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.readout--state { grid-column: 1 / -1; }
.readout__v[data-state="lock"] { color: var(--ember); text-shadow: 0 0 10px rgba(234, 88, 12, 0.6); }
.readout__v[data-state="range"] { color: var(--steel); }
.telemetry__feed {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--hairline);
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 11px;
}
.feed__row--head { color: var(--ember); margin-bottom: 4px; }
.feed__rows { display: flex; flex-direction: column; gap: 2px; min-height: 30px; }
.feed__line { color: var(--text-muted); white-space: nowrap; animation: feed-in 240ms var(--ease-snap); }
.feed__line b { color: var(--ember); font-weight: 600; }
@keyframes feed-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* ---- 8. Sections (shared) -------------------------------------------- */
.section { padding: var(--section-pad) 0; position: relative; }
.section__header { max-width: 660px; margin-bottom: clamp(48px, 6vw, 84px); }
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 16px 0;
}
.section__desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 60ch;
}
.legend { display: inline-block; }

/* ---- 9. Doctrine ------------------------------------------------------ */
.doctrine { text-align: center; }
.doctrine .legend { margin-bottom: 40px; }
.doctrine__statement {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: min(92vw, 40ch);
  margin: 0 auto;
}
.doctrine__line {
  display: block;
  clip-path: inset(0 0 102% 0);
  transform: translateY(10px);
  transition: clip-path 700ms var(--ease-snap), transform 700ms var(--ease-snap), color 700ms var(--ease-ui);
}
.doctrine__line.is-shown { clip-path: inset(0 0 -10% 0); transform: none; }
.doctrine__line:nth-child(2), .doctrine__line:nth-child(4) { padding-top: 0.65em; }
.doctrine__line:nth-child(2).is-shown { transition-delay: 0.08s; }
.doctrine__line:nth-child(3).is-shown { transition-delay: 0.16s; }
.doctrine__line:nth-child(4).is-shown { transition-delay: 0.24s; }
.doctrine__hot {
  font-style: italic;
  color: var(--text-primary);
  position: relative;
}
.doctrine__machine {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background: var(--surface-panel);
  border: 1px solid var(--hairline);
  padding: 0.05em 0.3em;
  white-space: nowrap;
}
/* blueprint leader callouts */
.doctrine__hot[data-callout]::after,
.doctrine__machine[data-callout]::after {
  content: attr(data-callout);
  position: absolute;
  top: -1.5em; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.34em;
  letter-spacing: 0.2em;
  color: var(--ember);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 500ms var(--ease-ui) 0.4s;
}
.doctrine__machine[data-callout] { position: relative; }
.doctrine__line.is-shown .doctrine__hot[data-callout]::after,
.doctrine__line.is-shown .doctrine__machine[data-callout]::after { opacity: 0.85; }

.doctrine__stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  margin-top: clamp(56px, 7vw, 90px);
}
.dstat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dstat__v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.dstat__k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dstat__sep { font-size: 2rem; color: var(--steel); padding-top: 0.3em; }

/* ---- 10. Manifesto — Four Laws --------------------------------------- */
.laws {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.laws__spine {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 120px;
  height: calc(100% + 20px);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
#spine-path {
  stroke-dasharray: var(--spine-len, 2000);
  stroke-dashoffset: var(--spine-len, 2000);
}
.law {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 3vw, 38px);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  transition: border-color var(--t-base) var(--ease-ui), transform 400ms var(--ease-snap), box-shadow var(--t-base);
}
.law::before, .law::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--hairline-strong);
  transition: border-color var(--t-base);
}
.law::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.law::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.law:hover {
  border-color: rgba(234, 88, 12, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(234, 88, 12, 0.08), 0 16px 40px rgba(0, 0, 0, 0.4);
}
.law:hover::before, .law:hover::after { border-color: var(--ember); }
.law__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.law__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--steel);
  transition: color var(--t-base), text-shadow var(--t-base);
}
.law.is-lit .law__num { color: var(--ember); text-shadow: 0 0 12px rgba(234, 88, 12, 0.5); }
.law__gauge { width: 120px; height: 44px; opacity: 0.85; }
.law__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  font-variation-settings: 'wght' 400;
}
.law.is-shown .law__title[data-weight] {
  font-variation-settings: 'wght' 800;
  transition: font-variation-settings 600ms var(--ease-snap);
}
.law__desc { font-size: 0.95rem; line-height: 1.72; color: var(--text-secondary); margin-bottom: 22px; }
.law__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- 11. System architecture ----------------------------------------- */
.system__schematic {
  margin: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 76px);
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 40px);
  border: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(234, 88, 12, 0.04), transparent 70%),
    var(--surface-raised);
}
.schematic { width: 100%; height: auto; overflow: visible; }
.schematic__link { stroke: var(--hairline-strong); stroke-width: 1; }
.schematic__pulse {
  stroke: var(--ember);
  stroke-width: 1.6;
  stroke-dasharray: 22 380;
  stroke-dashoffset: 402;
  filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.7));
  opacity: 0;
}
.system.is-active .schematic__pulse {
  opacity: 1;
  animation: pulse-travel 3.2s linear infinite;
}
@keyframes pulse-travel { to { stroke-dashoffset: 0; } }
.schematic__node circle, .schematic__node rect {
  stroke: var(--hairline-strong);
  stroke-width: 1;
  fill: rgba(19, 19, 24, 0.6);
}
.schematic__node--core rect { stroke: var(--hairline-strong); }
.schematic__node-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--text-secondary);
  text-anchor: middle;
}
.schematic__node--core .schematic__node-title { fill: var(--text-primary); }
.schematic__node-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--steel);
  text-anchor: middle;
}

.dossier { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.dossier__row {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--t-base);
}
.dossier__row:hover { background: rgba(255, 255, 255, 0.012); }
.dossier__idx {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 4px;
}
.dossier__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-bottom: 8px;
}
.dossier__desc { font-size: 0.98rem; line-height: 1.7; color: var(--text-secondary); max-width: 62ch; }

.system__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 48px);
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.systick b { color: var(--text-primary); font-weight: 600; }

/* ---- 12. Channel ------------------------------------------------------ */
.channel__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.channel .section__title { margin-top: 14px; }
.channel__desc { font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); margin: 22px 0 30px; max-width: 44ch; }
.channel__direct {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.channel__direct svg { color: var(--ember); flex-shrink: 0; }
.channel__direct:hover { color: var(--ember); }
.channel__direct-k { display: block; font-size: 0.6rem; letter-spacing: 0.16em; color: var(--steel); margin-bottom: 3px; }

.channel__form {
  padding: clamp(26px, 3vw, 40px);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
}
.field { margin-bottom: 20px; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.field__input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 16px; /* >=16px prevents iOS focus-zoom */
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 0;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field__input::placeholder { color: var(--steel); }
.field__input:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 1px var(--ember), 0 0 18px rgba(234, 88, 12, 0.2);
}
.field__textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.channel__form .btn--full { margin-top: 6px; }

/* ---- 14. Footer ------------------------------------------------------- */
.footer { padding: clamp(56px, 7vw, 88px) 0 32px; border-top: 1px solid var(--hairline); }
.footer__readout {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  letter-spacing: 0.16em;
  color: var(--steel);
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
  white-space: nowrap;
  overflow: hidden;
}
.footer__top { display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; margin-bottom: 48px; }
.footer__brand { max-width: 300px; }
.footer__brand .header__glyph { width: 24px; height: 27px; }
.footer__tagline { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; line-height: 1.6; }
.footer__links { display: flex; gap: clamp(36px, 6vw, 72px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer__link { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--t-fast); }
.footer__link:hover { color: var(--ember); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.footer__copyright { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--steel); }
.footer__eot { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.24em; color: var(--steel); }

/* ---- 15. Reticle cursor ---------------------------------------------- */
.reticle {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  z-index: 9500;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  opacity: 0;
  transition: opacity 200ms var(--ease-ui);
  mix-blend-mode: difference;
}
.reticle.is-active { opacity: 1; }
.reticle.is-target { mix-blend-mode: normal; }
.reticle__b {
  position: absolute;
  width: 7px; height: 7px;
  border: 1.4px solid var(--text-primary);
  transition: all 180ms var(--ease-snap);
}
.reticle.is-target .reticle__b { border-color: var(--ember); width: 9px; height: 9px; }
.reticle__b--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.reticle__b--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.reticle__b--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.reticle__b--br { bottom: 0; right: 0; border-left: none; border-top: none; }
.reticle__dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 2px; height: 2px;
  background: var(--text-primary);
  transform: translate(-50%, -50%);
}
.reticle.is-target .reticle__dot { background: var(--ember); }
.reticle.is-target { width: 44px; height: 44px; }
.reticle.is-press { transform: translate3d(var(--rx, 0), var(--ry, 0), 0) scale(0.8); }
.reticle__coord {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--ember);
  white-space: nowrap;
  opacity: 0;
}
.reticle.is-target .reticle__coord { opacity: 0.9; }

/* ---- 16. Reveal / animation utilities -------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  clip-path: inset(0 0 0 0);
}
[data-animate].is-shown {
  opacity: 1;
  transform: none;
  transition: opacity 650ms var(--ease-ui), transform 650ms var(--ease-snap);
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- 17. Responsive --------------------------------------------------- */
@media (max-width: 1080px) {
  .header__status { display: none; }
  .telemetry { display: none !important; }
  .hud__ruler { display: none; }
}
@media (max-width: 860px) {
  .laws { grid-template-columns: 1fr; }
  .laws__spine { display: none; }
  .channel__inner { grid-template-columns: 1fr; }
  .hud__sector { display: none; }
}
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
  }
  .header__nav.is-open { opacity: 1; visibility: visible; }
  .header__nav .header__link { font-size: 1.4rem; }
  .header__nav .header__mobile-cta { display: inline-flex; }
  .header__cta { display: none; }
  .header__toggle { display: flex; }
  .hero__inner { padding: 130px 0 60px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .doctrine__stats { gap: 16px; }
  .footer__readout { white-space: normal; text-align: center; line-height: 1.9; }
  .footer__top { flex-direction: column; gap: 40px; }
  .footer__link { padding: 7px 0; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.1rem, 11vw, 3rem); }
  .doctrine__stats { flex-wrap: wrap; }
  .dstat__sep { display: none; }
}

/* keep the schematic legible on phones — let it scroll rather than shrink to mush */
@media (max-width: 600px) {
  .system__schematic { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .schematic { min-width: 560px; }
}

/* hide the decorative scroll cue where the hero content already fills a short viewport */
@media (max-height: 700px) {
  .hero__scroll { display: none; }
}

/* screen-reader-only utility (form status live region) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- 18. Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  [data-animate], .hero__eyebrow, .hero__subtitle, .hero__actions, .telemetry { opacity: 1 !important; transform: none !important; }
  .doctrine__line { clip-path: none !important; transform: none !important; }
  #spine-path { stroke-dashoffset: 0 !important; }
  .reticle { display: none !important; }
  .boot { display: none !important; }
}
