/* =================================================================
   ZATOR — Flagship Design System
   "The Specification" — dark editorial · cockpit data discipline
   v1 · 2026-04-30
   ================================================================= */

/* ----- 0. tokens ----- */
:root {
  /* surface — deep, warm-cool ink, never pure black */
  --bg-0: #07090d;
  --bg-1: #0b0f15;
  --bg-2: #11161e;
  --bg-3: #161c25;

  /* foreground — warm bone, not pure white */
  --fg-0: #f5efe2;
  --fg-1: #d8d2c5;
  --fg-2: #9a958b;
  --fg-3: #66635c;
  --fg-4: #3a3833;

  /* hairlines */
  --line: #1f242c;
  --line-1: #2a3038;
  --line-2: #3b424b;

  /* accents — used sparingly, like punctuation */
  --gold: #d4ac6b;          /* authority — CTAs, eyebrows, kernel marks */
  --gold-1: #b4904f;
  --gold-glow: rgba(212, 172, 107, 0.16);
  --cyan: #5eccc7;          /* data — graph paths, evidence, source lines */
  --cyan-1: #3aa6a1;
  --cyan-glow: rgba(94, 204, 199, 0.14);
  --vermilion: #c44b35;     /* kernel · belief · status — rare */
  --moss:    #8aa86b;       /* asserted */
  --amber:   #d8894a;       /* candidate / warning */
  --rose:    #e0716b;       /* conflict / negative */

  /* type */
  --serif: "GT Sectra", "Tiempos Headline", "Charter", "Iowan Old Style", "Source Serif Pro", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", "SF Pro Text", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", "Berkeley Mono", "SF Mono", ui-monospace, monospace;

  /* layout */
  --container: 1320px;
  --gutter: 32px;
  --rule: 1px;

  /* shadow */
  --lift-1: 0 1px 0 rgba(255,255,255,0.02);
  --lift-2: 0 12px 40px rgba(0,0,0,0.45);
  --lift-3: 0 24px 80px rgba(0,0,0,0.55);
  --inset:  inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ----- 1. reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-0); color: var(--fg-0); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11", "kern";
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: var(--rule) solid var(--line); }

::selection { background: var(--gold); color: var(--bg-0); }

/* ----- 2. backdrop ----- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 540px at 86% -8%, rgba(212,172,107,0.07), transparent 70%),
    radial-gradient(740px 480px at -10% 20%, rgba(94,204,199,0.05), transparent 70%),
    var(--bg-0);
  pointer-events: none;
}
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.020) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

/* ----- 3. shell ----- */
.shell { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.shell--wide { max-width: 1480px; }
.shell--narrow { max-width: 920px; }

/* ----- 4. header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: rgba(7,9,13,0.78);
  border-bottom: var(--rule) solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 720;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-0);
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
}
.wordmark__dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: translateY(-1px);
}
.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
}
.site-nav a { transition: color 120ms ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg-0); }
.site-nav a[aria-current="page"] {
  position: relative;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--gold);
}
.mobile-menu-toggle,
.site-mobile-drawer {
  display: none;
}
.mobile-menu-toggle {
  appearance: none;
  border: var(--rule) solid var(--line-2);
  background: rgba(255,255,255,0.02);
  color: var(--fg-0);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 10px 12px;
  text-transform: uppercase;
}
.mobile-menu-toggle__mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
.mobile-menu-toggle.is-open {
  border-color: rgba(94,204,199,0.62);
  color: var(--cyan);
}
.mobile-menu-toggle:focus-visible,
.site-mobile-drawer a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.site-mobile-drawer__nav {
  display: grid;
  gap: 1px;
  padding-bottom: 14px;
}
.site-mobile-drawer__nav a {
  border: var(--rule) solid var(--line-1);
  background: rgba(255,255,255,0.018);
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 13px 14px;
  text-transform: uppercase;
}
.site-mobile-drawer__nav a[aria-current="page"] {
  border-color: rgba(212,172,107,0.56);
  color: var(--gold);
  background: rgba(212,172,107,0.045);
}

/* ----- 5. typography scale ----- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow--muted { color: var(--fg-2); }

.section-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--fg-0);
  max-width: 22ch;
}
.h-display em { font-style: italic; color: var(--gold); font-weight: 400; }

.h-1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--fg-0);
}
.h-1 em { font-style: italic; color: var(--gold); }

.h-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.014em;
  color: var(--fg-0);
}

.h-3 {
  font-family: var(--sans);
  font-weight: 540;
  font-size: 1.08rem;
  letter-spacing: -0.005em;
  color: var(--fg-0);
}

.lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--fg-1);
  max-width: 58ch;
}
.lede--lg { font-size: 1.18rem; line-height: 1.5; max-width: 56ch; }

p   { color: var(--fg-1); }
p.muted { color: var(--fg-2); }
strong { color: var(--fg-0); font-weight: 580; }

.mono { font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.02em; color: var(--fg-2); }
.mono-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: var(--rule) solid var(--line-1);
  padding: 5px 9px 4px;
  background: rgba(255,255,255,0.015);
}
.mono-tag--gold  { color: var(--gold); border-color: rgba(212,172,107,0.45); }
.mono-tag--cyan  { color: var(--cyan); border-color: rgba(94,204,199,0.42); }
.mono-tag--verm  { color: var(--vermilion); border-color: rgba(196,75,53,0.42); }
.mono-tag--moss  { color: var(--moss); border-color: rgba(138,168,107,0.42); }
.mono-tag--amber { color: var(--amber); border-color: rgba(216,137,74,0.42); }

/* ----- 6. sections ----- */
.section {
  padding-block: 96px;
  border-top: var(--rule) solid var(--line);
}
.section--first { border-top: 0; padding-top: 80px; }
.section--tight { padding-block: 64px; }
.section--loose { padding-block: 128px; }
.section--paper { background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); }
.section__head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: end;
}
.section__head .section-num { padding-top: 6px; border-top: 1px solid var(--gold); display: inline-block; }
.section__head h2 { max-width: 22ch; }
.section__head .lede { margin-top: 16px; }

@media (max-width: 880px) {
  .section { padding-block: 72px; }
  .section__head { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .site-header__row {
    height: auto;
    min-height: 64px;
    padding-block: 12px;
    align-items: center;
  }
  .site-nav {
    display: none;
  }
  .site-header .btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }
  .site-mobile-drawer.is-open {
    display: block;
    border-top: var(--rule) solid var(--line);
    background: rgba(7,9,13,0.96);
  }
}

/* ----- 7. buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  font-family: var(--sans);
  font-weight: 580;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  border: var(--rule) solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
  white-space: nowrap;
}
.btn:hover,
.btn:focus-visible {
  will-change: transform;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-0);
}
.btn-primary:hover { background: #ecc079; transform: translateY(-1px); }
.btn-secondary {
  border-color: var(--line-2);
  color: var(--fg-0);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { color: var(--fg-1); padding-inline: 0; height: auto; }
.btn-ghost:hover { color: var(--gold); }
.btn .arrow { display: inline-block; transition: transform 140ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- 8. cards ----- */
.card {
  border: var(--rule) solid var(--line-1);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
  padding: 22px;
  position: relative;
  contain: layout paint;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.card:hover {
  border-color: rgba(212,172,107,0.38);
  background: rgba(255,255,255,0.026);
  transform: translate3d(0, -2px, 0);
}
.card--soft { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.card__num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.card__title {
  font-family: var(--sans);
  font-weight: 560;
  font-size: 1rem;
  color: var(--fg-0);
  margin-bottom: 8px;
}
.card__body {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--fg-2);
}

/* hairline grid technique — cards joined by 1px gutters with solid border perimeter */
.matrix {
  display: grid;
  gap: 1px;
  background: var(--line-1);
  border: var(--rule) solid var(--line-1);
}
.matrix > * {
  background: var(--bg-0);
  padding: 26px 24px;
  min-height: 178px;
}
.matrix-2 { grid-template-columns: repeat(2, 1fr); }
.matrix-3 { grid-template-columns: repeat(3, 1fr); }
.matrix-4 { grid-template-columns: repeat(4, 1fr); }
.matrix-5 { grid-template-columns: repeat(5, 1fr); }
.matrix-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1040px) { .matrix-4, .matrix-5, .matrix-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .matrix-2, .matrix-3, .matrix-4, .matrix-5, .matrix-6 { grid-template-columns: 1fr; } }

/* ----- 9. hero ----- */
.hero { padding-block: 96px 64px; position: relative; overflow: hidden; }
.hero__row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero__copy {
  max-width: min(36rem, 100%);
  min-width: 0;
}
.hero__eyebrow { margin-bottom: 28px; }
.hero__eyebrow-label { margin-left: 18px; }
.hero__eyebrow-label-mobile { display: none; }
.hero__title { margin-bottom: 28px; }
.hero-title-mobile { display: none; }
.hero__lede { margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--fg-3);
}
.hero__meta .rule { flex: 1; height: 1px; background: var(--line); }

.hero.boot {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-block: clamp(52px, 6vh, 72px) 44px;
}
.hero.boot .shell { width: 100%; }
.hero.boot .hero__row {
  min-height: 0;
  align-items: center;
}
.hero.boot .hero__copy { max-width: 34rem; }
.hero.boot .hero__eyebrow { margin-bottom: 20px; }
.hero.boot .hero__title { margin-bottom: 22px; }
.hero.boot .h-display {
  font-size: clamp(4.15rem, 6.4vw, 5.05rem);
  line-height: 0.98;
  max-width: 15ch;
}
.hero.boot .hero__lede {
  max-width: 51ch;
  margin-bottom: 26px;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.48;
}
.hero.boot .hero__pull {
  margin-top: 32px !important;
  padding-top: 20px;
}
.hero.boot .hero__pull .pull {
  max-width: 62ch;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

@media (max-width: 1180px) {
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero.boot {
    min-height: auto;
    align-items: flex-start;
    padding-block: 64px 48px;
  }
  .hero.boot .hero__row {
    min-height: 0;
    gap: 34px;
  }
  .hero.boot .h-display {
    font-size: clamp(3.1rem, 7vw, 4.35rem);
    max-width: 14ch;
  }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .shell,
  .section,
  .section .shell > *,
  .matrix,
  .proof,
  .console,
  .claim-card,
  .stale-alert {
    min-width: 0;
    max-width: 100%;
  }
  .mono,
  .mono-tag,
  .term-bar__title,
  .term-bar__handle,
  .claim-card__row .v,
  .stale-alert__body .v,
  .console__bar strong,
  .console__footer {
    overflow-wrap: anywhere;
  }
  .hero__row,
  .hero__copy {
    min-width: 0;
    width: 100%;
  }
  .hero__lede,
  .route-note {
    max-width: 100%;
  }
  .hero__ctas .btn {
    flex: 1 1 100%;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hero.boot {
    padding-block: 48px 36px;
  }
  .hero.boot .h-display {
    font-size: clamp(2.45rem, 11vw, 3.05rem);
    max-width: 100%;
    line-height: 0.95;
  }
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: block; max-width: 100%; }
  .hero__eyebrow-label-full { display: none; }
  .hero__eyebrow-label-mobile { display: inline; }
  .hero__eyebrow {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
  }
  .hero__eyebrow-label {
    margin-left: 0;
    max-width: 13ch;
    line-height: 1.55;
  }
  .hero.boot .hero__eyebrow { margin-bottom: 16px; }
  .hero.boot .hero__title { margin-bottom: 18px; }
  .hero.boot .hero__lede {
    font-size: 1rem;
    line-height: 1.45;
  }
  .hero.boot .hero__pull {
    margin-top: 28px !important;
    padding-top: 18px;
  }
  .hero.boot .hero__pull .pull {
    font-size: 1.32rem;
  }
  .hero.boot .hero__pull {
    display: none;
  }
  .section .mt-8 {
    flex-wrap: wrap;
  }
  .section .mt-8 > .mono {
    min-width: 0;
    flex: 1 1 100%;
  }
  .section [style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ----- 10. compiler trajectory artifact (hero) ----- */
.trajectory {
  position: relative;
  border: var(--rule) solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--lift-3), var(--inset);
  padding: 24px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.trajectory::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 70% 50%, rgba(94,204,199,0.10), transparent 70%),
    radial-gradient(360px 260px at 22% 16%, rgba(212,172,107,0.08), transparent 70%);
  pointer-events: none;
}
.trajectory__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: var(--rule) solid var(--line);
  padding-bottom: 14px;
  position: relative; z-index: 1;
}
.trajectory__bar .live {
  display: inline-flex; align-items: center; gap: 8px;
}
.trajectory__bar .live::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.45 } }

.traj-stages {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--line-1);
  border: var(--rule) solid var(--line-1);
  position: relative; z-index: 1;
}
.traj-stage {
  background: var(--bg-1);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.traj-stage .num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.traj-stage .name {
  font-family: var(--sans);
  font-weight: 560;
  font-size: 12.5px;
  color: var(--fg-0);
}
.traj-stage .ex {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.traj-stage--kernel { background: linear-gradient(180deg, rgba(212,172,107,0.07), rgba(212,172,107,0.02)); }
.traj-stage--kernel .num { color: var(--gold); }
.traj-kernel-cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  border-top: 1px dashed rgba(212,172,107,0.55);
  padding-top: 10px;
}

.traj-receipts {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-3);
  border-top: var(--rule) solid var(--line);
  padding-top: 14px;
  position: relative; z-index: 1;
}
.traj-receipts code { color: var(--cyan); }

.traj-belief {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line-1);
  border: var(--rule) solid var(--line-1);
  position: relative; z-index: 1;
}
.traj-belief > div {
  background: var(--bg-2);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-2);
  display: flex; flex-direction: column; gap: 4px;
}
.traj-belief .label { color: var(--fg-3); letter-spacing: 0.14em; text-transform: uppercase; font-size: 9.5px; }
.traj-belief .val { color: var(--fg-0); font-size: 12px; }
.traj-belief .val--moss  { color: var(--moss); }
.traj-belief .val--amber { color: var(--amber); }
.traj-belief .val--cyan  { color: var(--cyan); }

@media (max-width: 720px) {
  .trajectory,
  .trajectory * {
    min-width: 0;
  }
  .trajectory {
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .trajectory__bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .traj-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
  .traj-stage {
    padding: 12px 10px;
  }
  .traj-stage .num,
  .traj-stage .name,
  .traj-stage .ex,
  .traj-receipts code {
    overflow-wrap: anywhere;
  }
  .traj-receipts {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* ----- 11. proof strip ----- */
.proof {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
}
.proof > div {
  background: var(--bg-0);
  padding: 28px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  contain: layout paint;
  transition: background-color 140ms ease, transform 140ms ease;
}
.proof > div:hover {
  background: rgba(212,172,107,0.035);
  transform: translate3d(0, -2px, 0);
}
.proof .v {
  font-family: var(--serif);
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  color: var(--gold);
  line-height: 1;
}
.proof .l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  line-height: 1.45;
}
/* Capability-primitives variant: smaller value text, less data-vendor-y */
.proof--primitives > div { padding: 24px 20px 22px; min-height: 152px; }
.capability-strip > div {
  cursor: pointer;
  outline: none;
}
.capability-strip > div:focus-visible,
.capability-strip > div.active {
  border-color: rgba(94, 204, 199, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(94, 204, 199, 0.24),
    0 0 0 2px rgba(94, 204, 199, 0.12);
  background: rgba(94, 204, 199, 0.045);
}
.capability-strip > div.active .capability-secret {
  color: var(--cyan);
}
.proof--primitives .v {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 580;
  letter-spacing: -0.005em;
  color: var(--fg-0);
  line-height: 1.2;
}
.proof--primitives .l { font-size: 10px; letter-spacing: 0.08em; text-transform: none; color: var(--fg-2); }
@media (max-width: 1040px) { .proof { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .proof { grid-template-columns: repeat(2, 1fr); } }

/* ----- 11b. hero-state — stacked claim card + stale alert (hero artifact) ----- */
.hero-state {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  filter: drop-shadow(0 24px 80px rgba(0,0,0,0.55));
}
.hero-state--workspace {
  min-height: 460px;
  filter: none;
  isolation: isolate;
}
.hero-state--workspace::before {
  content: "";
  position: absolute;
  inset: -20px -18px;
  z-index: 0;
  border: 1px solid rgba(255,255,255,0.04);
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.hero-state .claim-card { box-shadow: var(--lift-2), var(--inset); }
.hero-state .stale-alert { transform: translateY(-1px); box-shadow: var(--lift-2), var(--inset); }
.mobile-state-strip { display: none; }
@media (max-width: 1040px) {
  .hero-state { max-width: 620px; }
  .hero-state--workspace { min-height: 430px; }
}

@media (max-width: 720px) {
  .hero-state {
    filter: none;
  }
  .hero-state--workspace {
    margin-top: 16px;
  }
  .hero-window--alert,
  .hero-state .term-restore[data-restore-window="alert"] {
    display: none !important;
  }
  .hero-window--claim .claim-card__row:nth-child(4),
  .hero-window--claim .claim-card__row:nth-child(6),
  .hero-window--claim .claim-card__row:nth-child(7) {
    display: none;
  }
  .hero-window--claim .term-bar {
    padding-inline: 12px;
  }
  .hero-window--claim .term-bar__title {
    text-align: left;
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .hero-window--claim .term-bar__handle {
    display: none;
  }
  .hero-window--claim .claim-card__head,
  .hero-window--claim .claim-card__body {
    padding-inline: 16px;
  }
  .hero-window--claim .claim-card__head {
    gap: 12px;
    align-items: flex-start;
  }
  .hero-window--claim .claim-card__head .id {
    font-size: 9px;
  }
  .hero-window--claim .claim-card__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero-window--claim .claim-card__row .v {
    text-align: left;
    overflow-wrap: anywhere;
  }
  .mobile-state-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
    border: 1px solid var(--line-2);
    background: rgba(255,255,255,0.025);
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-3);
  }
  .mobile-state-strip span,
  .mobile-state-strip strong {
    position: relative;
    display: block;
    padding-left: 18px;
  }
  .mobile-state-strip span::before,
  .mobile-state-strip strong::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
  }
  .mobile-state-strip strong {
    color: var(--cyan);
    font-weight: 600;
  }
  .proof--primitives {
    grid-template-columns: 1fr;
  }
  .proof--primitives > div:nth-child(n+5) {
    display: none;
  }
}

/* ----- 11c. hero pull — the killer-line wrapper inside hero ----- */
.hero__pull {
  border-top: var(--rule) solid var(--gold);
  padding-top: 28px;
}
.hero__pull .pull {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  max-width: 56ch;
}

/* ----- 12. quote pull ----- */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--fg-0);
  max-width: 42ch;
  position: relative;
  padding-left: 26px;
}
.pull::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em; bottom: 0.3em;
  width: 2px;
  background: var(--gold);
}
.pull em { font-style: italic; color: var(--gold); }

/* ----- 13. data tables / receipts ----- */
.receipt {
  border: var(--rule) solid var(--line-1);
  background: var(--bg-1);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--fg-1);
  padding: 22px 24px;
  position: relative;
}
.receipt__head {
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: var(--rule) solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.receipt .k { color: var(--fg-2); }
.receipt .s { color: var(--cyan); }
.receipt .n { color: var(--gold); }
.receipt .b { color: var(--fg-0); }
.receipt .c { color: var(--fg-3); }

/* ----- 14. token strip (vocabulary marquee) ----- */
.tokenstrip {
  border-top: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  overflow: hidden;
  background: var(--bg-1);
}
.tokenstrip__row {
  display: flex;
  gap: 36px;
  padding-block: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  width: max-content;
}
.tokenstrip__row span { color: var(--fg-1); }
.tokenstrip__row span::before { content: "§ "; color: var(--gold); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- 15. ring diagram (interactive) ----- */
.rings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.rings__svg {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  margin: 0 auto;
  cursor: default;
}
.rings__list { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.rings__item {
  background: var(--bg-0);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: baseline;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, border-left-color 120ms ease;
  border-left: 2px solid transparent;
}
.rings__item:hover { background: var(--bg-2); }
.rings__item .ring-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.rings__item.kernel .ring-num { color: var(--gold); }
.rings__item .ring-name { font-weight: 560; color: var(--fg-0); font-size: 0.96rem; }
.rings__item .ring-desc { color: var(--fg-2); font-size: 0.86rem; margin-top: 4px; }

/* SVG ring strokes (pre-styled by category) */
.ring-stroke, .ring-kernel-mark { /* base hooks; modifiers below */ }
.ring-stroke--gold   { stroke: rgba(212,172,107,0.45); transition: stroke 160ms ease, stroke-width 160ms ease, stroke-opacity 160ms ease; }
.ring-stroke--kernel { stroke: rgba(212,172,107,0.55); transition: stroke 160ms ease, stroke-width 160ms ease, stroke-opacity 160ms ease; }
.ring-stroke--cyan   { stroke: rgba(94,204,199,0.30); transition: stroke 160ms ease, stroke-width 160ms ease, stroke-opacity 160ms ease; }

/* SVG ring number badges */
.ring-badge {
  fill: #0a0d12;
  stroke: rgba(212,172,107,0.40);
  stroke-width: 1;
  cursor: pointer;
  transition: all 160ms ease;
}
.ring-badge--kernel { stroke: rgba(212,172,107,0.65); }
.ring-badge-text {
  fill: var(--fg-2);
  pointer-events: none;
  transition: fill 160ms ease;
}
.ring-badges g[data-ring] { cursor: pointer; }
.ring-badges g[data-ring]:hover .ring-badge { fill: var(--gold); }
.ring-badges g[data-ring]:hover .ring-badge-text { fill: var(--bg-0); }

/* Cross-hover state: when a ring or list item is :hover or .active, highlight the pair */
.rings--interactive .rings__item.active,
.rings--interactive .rings__item:hover {
  background: rgba(212,172,107,0.08);
  border-left-color: var(--gold);
  transform: translateX(3px);
}
.rings--interactive .rings__item.active .ring-name,
.rings--interactive .rings__item:hover .ring-name { color: var(--gold); }

.rings--interactive .ring-g { transition: opacity 160ms ease; }
.rings--interactive.dimmed .ring-g:not(.active) { opacity: 0.3; }
.rings--interactive.dimmed .ring-badges g[data-ring]:not(.active) { opacity: 0.3; }
.rings--interactive .ring-g.active circle { stroke: var(--gold); stroke-width: 2.4; stroke-opacity: 1; }
.rings--interactive .ring-badges g[data-ring].active .ring-badge { fill: var(--gold); stroke: var(--gold); }
.rings--interactive .ring-badges g[data-ring].active .ring-badge-text { fill: var(--bg-0); font-weight: 700; }
.rings--interactive.dimmed .rings__item:not(.active) { opacity: 0.4; }

@media (max-width: 980px) { .rings { grid-template-columns: 1fr; } }

/* ----- 16. pipeline rail ----- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: var(--line-1);
  border: var(--rule) solid var(--line-1);
}
.pipeline__step {
  background: var(--bg-0);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px;
}
.pipeline__step .n {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-3);
}
.pipeline__step.kernel .n { color: var(--gold); }
.pipeline__step .t { font-weight: 560; color: var(--fg-0); font-size: 0.95rem; }
.pipeline__step .ex { font-family: var(--mono); font-size: 10.5px; color: var(--fg-2); line-height: 1.55; }
.pipeline__step.kernel { background: linear-gradient(180deg, rgba(212,172,107,0.06), rgba(212,172,107,0.02)); }
@media (max-width: 1100px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .pipeline {
    grid-template-columns: 1fr !important;
    max-width: 100%;
    overflow: hidden;
  }
  .pipeline__step {
    min-height: 0;
    min-width: 0;
  }
  .pipeline__step .n,
  .pipeline__step .t,
  .pipeline__step .ex {
    overflow-wrap: anywhere;
  }
}

/* ----- 17. boundary (deterministic / probabilistic) ----- */
.boundary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}
.boundary__col { border: var(--rule) solid var(--line-1); padding: 28px; }
.boundary__col--gold { border-color: rgba(212,172,107,0.42); background: linear-gradient(180deg, rgba(212,172,107,0.04), transparent); }
.boundary__col--cyan { border-color: rgba(94,204,199,0.36); background: linear-gradient(180deg, rgba(94,204,199,0.03), transparent); }
.boundary__col h3 { margin-bottom: 6px; }
.boundary__col .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.boundary__col--gold .meta { color: var(--gold); }
.boundary__col--cyan .meta { color: var(--cyan); }
.boundary__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.boundary__col li { padding-left: 20px; position: relative; color: var(--fg-1); font-size: 0.92rem; }
.boundary__col li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 1px;
}
.boundary__col--gold li::before { background: var(--gold); }
.boundary__col--cyan li::before { background: var(--cyan); }
.boundary__divider {
  width: 1px; background: linear-gradient(180deg, transparent, var(--line-2), transparent);
  position: relative;
}
.boundary__divider::after {
  content: "→ promotion ↑";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
  background: var(--bg-0); padding: 4px 10px;
}
@media (max-width: 980px) {
  .boundary { grid-template-columns: 1fr; }
  .boundary__divider { display: none; }
}

/* ----- 18. belief cards ----- */
.beliefs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .beliefs { grid-template-columns: 1fr; } }
.belief {
  border: var(--rule) solid var(--line-1);
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.belief__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  border-bottom: var(--rule) solid var(--line);
  padding-bottom: 12px;
}
.belief__id {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.belief__statement {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.36;
  color: var(--fg-0);
  margin-bottom: 18px;
}
.belief__statement em { color: var(--gold); font-style: italic; }
.belief__row {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px;
  border-top: var(--rule) solid var(--line);
  padding-top: 8px; margin-top: 8px;
}
.belief__row .k { color: var(--fg-3); }
.belief__row .v { color: var(--fg-0); }
.belief__evidence {
  font-family: var(--mono); font-size: 11px; color: var(--fg-2); line-height: 1.65;
}
.belief__evidence li { padding-left: 14px; position: relative; }
.belief__evidence li::before { content: "·"; position: absolute; left: 0; color: var(--gold); }

/* ----- 19. compiler examples ----- */
.compiler-ex {
  border: var(--rule) solid var(--line-1);
  background: var(--bg-1);
  padding: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
}
.compiler-ex + .compiler-ex { border-top: 0; }
.compiler-ex__label {
  background: var(--bg-2);
  padding: 28px 24px;
  border-right: var(--rule) solid var(--line-1);
  display: flex; flex-direction: column; gap: 8px;
}
.compiler-ex__tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.compiler-ex__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.012em;
  color: var(--fg-0);
}
.compiler-ex__caption { color: var(--fg-2); font-size: 0.86rem; }
.compiler-ex__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
}
.compiler-ex__cell {
  background: var(--bg-1);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 152px;
}
.compiler-ex__cell .step {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}
.compiler-ex__cell.kernel .step { color: var(--gold); }
.compiler-ex__cell .items {
  font-family: var(--mono); font-size: 10.5px; line-height: 1.55; color: var(--fg-1);
}
.compiler-ex__cell .items li { padding: 1px 0; }
@media (max-width: 1100px) {
  .compiler-ex { grid-template-columns: 1fr; }
  .compiler-ex__label { border-right: 0; border-bottom: var(--rule) solid var(--line-1); }
  .compiler-ex__row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) { .compiler-ex__row { grid-template-columns: repeat(2, 1fr); } }

/* ----- 20. footer ----- */
.site-footer {
  border-top: var(--rule) solid var(--line);
  margin-top: 80px;
  padding-block: 56px 32px;
  background: var(--bg-1);
}
.site-footer__row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 56px;
}
.site-footer__group h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.site-footer__group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer__group a { color: var(--fg-2); font-size: 0.92rem; transition: color 120ms ease; }
.site-footer__group a:hover { color: var(--fg-0); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
  border-top: var(--rule) solid var(--line);
  padding-top: 22px;
}
@media (max-width: 880px) {
  .site-footer__row { grid-template-columns: 1fr 1fr; }
}

/* ----- 21. vocabulary table ----- */
.vocab {
  border: var(--rule) solid var(--line-1);
}
.vocab__row {
  display: grid;
  grid-template-columns: 24ch 1fr 1fr;
  gap: 0;
  border-bottom: var(--rule) solid var(--line);
  align-items: center;
}
.vocab__row:last-child { border-bottom: 0; }
.vocab__row > div { padding: 14px 18px; border-right: var(--rule) solid var(--line); }
.vocab__row > div:last-child { border-right: 0; }
.vocab__row.head {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  background: var(--bg-1);
}
.vocab__name { font-family: var(--mono); color: var(--gold); font-size: 12.5px; }
.vocab__source { color: var(--fg-1); font-size: 0.92rem; }
.vocab__type { font-family: var(--mono); color: var(--cyan); font-size: 11px; letter-spacing: 0.04em; }
@media (max-width: 720px) {
  .vocab__row { grid-template-columns: 1fr; }
  .vocab__row > div { border-right: 0; border-bottom: var(--rule) solid var(--line); }
}

/* ----- 22. workflow console ----- */
.console {
  border: var(--rule) solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--lift-3), var(--inset);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 580px;
  position: relative;
}
.console__bar {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: var(--rule) solid var(--line);
  padding: 14px 22px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2);
}
.console__bar strong { color: var(--fg-0); font-weight: 580; letter-spacing: 0.08em; }
.console__bar .live::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; background: var(--cyan); border-radius: 50%;
  margin-right: 8px; box-shadow: 0 0 8px var(--cyan); animation: pulse 1.6s ease-in-out infinite;
}

.console__body {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 1px;
  background: var(--line);
}
.console__col {
  background: var(--bg-1);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.console__col h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 4px;
}
.source-list { display: flex; flex-direction: column; gap: 8px; }
.source-list li {
  list-style: none;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-1);
  border-left: 2px solid var(--cyan);
  padding: 6px 10px;
  background: rgba(94,204,199,0.04);
}
.console__canvas {
  background:
    radial-gradient(360px 220px at 50% 50%, rgba(94,204,199,0.10), transparent 70%),
    var(--bg-1);
  position: relative;
  min-height: 400px;
}
.console__canvas::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.workflow-step {
  position: absolute;
  border: 1px solid rgba(94,204,199,0.42);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 10px 12px;
  min-width: 132px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-1);
  box-shadow: var(--lift-2);
}
.workflow-step .step-num {
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--gold);
  margin-bottom: 4px;
}
.workflow-step .step-title { color: var(--fg-0); font-weight: 560; }
.workflow-step .step-meta { color: var(--fg-3); margin-top: 4px; font-size: 10px; }
.workflow-paths { position: absolute; inset: 0; pointer-events: none; }
.inspector-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: var(--rule) solid var(--line);
  padding: 9px 0;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-1);
}
.inspector-row:last-child { border-bottom: 0; }
.inspector-row .k { color: var(--fg-3); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.inspector-row .v.ok { color: var(--moss); }
.inspector-row .v.warn { color: var(--amber); }
.inspector-row .v.live { color: var(--cyan); }

.console__footer {
  display: flex; gap: 18px; flex-wrap: wrap;
  border-top: var(--rule) solid var(--line);
  padding: 14px 22px;
}

@media (max-width: 1100px) { .console__body { grid-template-columns: 220px 1fr; } .console__col:last-child { grid-column: 1 / -1; } }
@media (max-width: 720px) {
  .console__body { grid-template-columns: 1fr; }
  .console { min-height: 0; }
  .console__canvas {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
    padding: 14px;
  }
  .console__canvas::before {
    background-size: 28px 28px;
  }
  .workflow-step {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }
  .workflow-paths {
    display: none;
  }
}

/* ----- 23. field-set lists (used inside platform / use-case / etc.) ----- */
.fieldset { display: flex; flex-direction: column; gap: 6px; }
.fieldset li {
  list-style: none;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.45;
  color: var(--fg-1);
  padding: 6px 0;
  border-bottom: var(--rule) dashed var(--line);
}
.fieldset li:last-child { border-bottom: 0; }
.fieldset .label {
  display: inline-block; min-width: 90px;
  color: var(--fg-3);
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px;
}

/* ----- 24. hairline divider ----- */
.divider {
  border: 0;
  border-top: var(--rule) solid var(--line);
  margin: 0;
}
.divider--gold { border-top-color: var(--gold); border-top-width: 1px; }

/* ----- 25. CTA band ----- */
.cta-band {
  border-top: var(--rule) solid var(--gold);
  border-bottom: var(--rule) solid var(--line);
  padding-block: 80px;
  background:
    radial-gradient(620px 320px at 70% 50%, rgba(212,172,107,0.10), transparent 70%),
    var(--bg-1);
}
.cta-band__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
}
.cta-band h2 { max-width: 22ch; }
.cta-band__buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 880px) { .cta-band__row { grid-template-columns: 1fr; } .cta-band__buttons { justify-content: flex-start; } }

/* ----- 26. utility ----- */
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.gap-2     { gap: 8px; }
.gap-3     { gap: 12px; }
.gap-4     { gap: 16px; }
.gap-6     { gap: 24px; }
.gap-8     { gap: 32px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; }

/* ----- 28. Claim Card — the brand primitive ----- */
.claim-card {
  border: var(--rule) solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.62;
  color: var(--fg-1);
  position: relative;
  box-shadow: var(--lift-2), var(--inset);
  min-height: 0;
}
.claim-card__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-bottom: var(--rule) solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.claim-card__head .id { color: var(--fg-3); letter-spacing: 0.14em; }
.claim-card__body { padding: 16px 18px; }
.claim-card__row {
  display: grid;
  grid-template-columns: 14ch 1fr;
  gap: 14px;
  padding: 4px 0;
  border-bottom: var(--rule) dashed var(--line);
}
.claim-card__row:last-child { border-bottom: 0; }
.claim-card__row .k { color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; }
.claim-card__row .v {
  color: var(--fg-0);
  min-width: 0;
  overflow-wrap: anywhere;
}
.claim-card__row .v.s { color: var(--cyan); }
.claim-card__row .v.n { color: var(--gold); }
.claim-card__row .v.b { color: var(--fg-0); font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: -0.005em; }
.claim-card__row .v.tag { font-size: 10.5px; letter-spacing: 0.06em; }
.claim-card__status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: var(--rule) solid;
}
.claim-card__status.reconciled { color: var(--moss); border-color: rgba(138,168,107,0.55); }
.claim-card__status.candidate  { color: var(--amber); border-color: rgba(216,137,74,0.55); }
.claim-card__status.stale      { color: var(--rose); border-color: rgba(224,113,107,0.55); }
.claim-card__status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ----- 29. Stale Answer Alert ----- */
.stale-alert {
  border: var(--rule) solid rgba(224,113,107,0.50);
  background:
    linear-gradient(90deg, rgba(224,113,107,0.06), rgba(224,113,107,0)),
    var(--bg-1);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
  position: relative;
}
.stale-alert__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px;
  border-bottom: var(--rule) solid rgba(224,113,107,0.30);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
.stale-alert__head .pulse {
  width: 7px; height: 7px;
  background: var(--rose); border-radius: 50%;
  box-shadow: 0 0 8px var(--rose);
  animation: pulse 1.6s ease-in-out infinite;
  margin-right: 8px;
  display: inline-block; vertical-align: middle;
}
.stale-alert__body { padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.stale-alert__body .k { color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; min-width: 13ch; display: inline-block; }
.stale-alert__body .v { color: var(--fg-0); }
.stale-alert__body .v em { color: var(--rose); font-style: normal; }
@media (max-width: 720px) {
  .stale-alert__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .stale-alert__head span,
  .stale-alert__body div {
    min-width: 0;
    max-width: 100%;
  }
  .stale-alert__body .k {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }
}

/* ----- 30. Sources → State → Artifacts diagram ----- */
.ssa {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: stretch;
  gap: 0;
  border: var(--rule) solid var(--line-1);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.ssa__col {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 320px;
  position: relative;
}
.ssa__col + .ssa__col, .ssa__arrow + .ssa__col { border-left: var(--rule) solid var(--line-1); }
.ssa__col .head { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.ssa__col .name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.012em; color: var(--fg-0); }
.ssa__col .name em { color: var(--gold); font-style: italic; }
.ssa__col .body { color: var(--fg-2); font-size: 0.86rem; line-height: 1.5; }
.ssa__col ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.ssa__col li {
  font-family: var(--mono); font-size: 11px; color: var(--fg-1);
  padding: 5px 8px;
  border-left: 2px solid var(--line-2);
  background: rgba(255,255,255,0.015);
}
.ssa__col.sources li   { border-left-color: var(--cyan); }
.ssa__col.state {
  background: linear-gradient(180deg, rgba(212,172,107,0.08), rgba(212,172,107,0.02));
}
.ssa__col.state .head  { color: var(--gold); }
.ssa__col.state li     { border-left-color: var(--gold); background: rgba(212,172,107,0.04); }
.ssa__col.state .label-strip {
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 3px; background: var(--gold);
}
.ssa__col.artifacts li { border-left-color: var(--fg-3); }
.ssa__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 56px;
  color: var(--fg-3);
  border-top: var(--rule) solid var(--line-1);
  border-bottom: var(--rule) solid var(--line-1);
  background: var(--bg-1);
}
.ssa__arrow svg { width: 28px; height: 14px; }
.ssa__arrow.gold { color: var(--gold); }
@media (max-width: 980px) {
  .ssa { grid-template-columns: 1fr; }
  .ssa__col { border-left: 0 !important; border-top: var(--rule) solid var(--line-1); min-height: 0; }
  .ssa__col:first-child { border-top: 0; }
  .ssa__arrow { display: none; }
}

/* ----- 31. Failure Modes ----- */
.failure-modes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-1);
  border: var(--rule) solid var(--line-1);
}
.failure-modes > article {
  background: var(--bg-1);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 240px;
  position: relative;
  transition: background 140ms ease;
}
.failure-modes > article:hover { background: var(--bg-2); }
.failure-modes .num {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rose);
}
.failure-modes .title {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--fg-0);
}
.failure-modes .title em { color: var(--gold); font-style: italic; }
.failure-modes .body { color: var(--fg-2); font-size: 0.84rem; line-height: 1.55; margin-top: auto; }
@media (max-width: 1100px) { .failure-modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .failure-modes { grid-template-columns: 1fr; } }

/* ----- 31b. ActionSpaceModel live proof ----- */
.actionspace-proof {
  padding-top: 64px;
}
.actionspace-console {
  border: var(--rule) solid rgba(212, 172, 107, 0.32);
  background:
    linear-gradient(180deg, rgba(12, 17, 22, 0.98), rgba(5, 8, 11, 0.98)),
    linear-gradient(112deg, rgba(94, 204, 199, 0.09), transparent 48%, rgba(212, 172, 107, 0.08));
  box-shadow: var(--lift-2), var(--inset);
  overflow: hidden;
}
.actionspace-console__top,
.actionspace-selected {
  display: grid;
  grid-template-columns: 0.82fr 1.22fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: var(--rule) solid rgba(255, 255, 255, 0.08);
}
.actionspace-console__top span,
.actionspace-console__top em,
.actionspace-selected span,
.actionspace-selected em,
.actionspace-metrics span,
.actionspace-metrics em,
.actionspace-routes span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-style: normal;
}
.actionspace-console__top strong,
.actionspace-selected strong {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  color: var(--fg-0);
  line-height: 1.05;
}
.actionspace-console__top em,
.actionspace-selected em { justify-self: end; }
.actionspace-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: var(--rule) solid rgba(255, 255, 255, 0.08);
}
.actionspace-metrics > div {
  min-height: 132px;
  padding: 18px 16px;
  border-right: var(--rule) solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}
.actionspace-metrics > div:last-child { border-right: 0; }
.actionspace-metrics strong {
  display: block;
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.actionspace-routes {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.actionspace-routes > div {
  min-height: 104px;
  padding: 14px 12px;
  background: rgba(5, 8, 11, 0.96);
}
.actionspace-routes strong {
  display: block;
  margin-top: 12px;
  color: var(--fg-0);
  font-size: 0.82rem;
  line-height: 1.25;
}
@media (max-width: 1120px) {
  .actionspace-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actionspace-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .actionspace-console__top,
  .actionspace-selected,
  .actionspace-metrics,
  .actionspace-routes { grid-template-columns: 1fr; }
  .actionspace-console__top em,
  .actionspace-selected em { justify-self: start; }
  .actionspace-metrics > div { border-right: 0; border-bottom: var(--rule) solid rgba(255,255,255,0.08); }
}

/* ----- 31b. Machine proof workbench ----- */
.machine-proof-workbench {
  border-top: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  background:
    radial-gradient(620px 360px at 72% 18%, rgba(94, 204, 199, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.012);
}
.machine-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 16px;
  margin-top: 42px;
}
.machine-proof-panel {
  border: var(--rule) solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.006)),
    rgba(11, 15, 21, 0.78);
  box-shadow: var(--lift-2);
  overflow: hidden;
}
.machine-proof-panel--sources,
.machine-proof-panel--atlas,
.machine-proof-panel--route-deck { grid-column: span 2; }
.machine-proof-panel__bar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(7, 9, 13, 0.78);
}
.machine-proof-panel__bar span,
.source-badge span,
.source-badge em,
.receipt-timeline span,
.connector-row em,
.command-console span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-style: normal;
}
.machine-proof-panel__bar strong {
  color: var(--fg-0);
  font-weight: 560;
}
.source-badge-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.source-badge {
  display: grid;
  min-height: 142px;
  align-content: start;
  gap: 10px;
  padding: 15px;
  background: rgba(7, 9, 13, 0.94);
}
.source-badge[data-status="canonical"],
.connector-row[data-status="ready"],
.receipt-timeline li[data-state="ready"] { box-shadow: inset 0 0 0 1px rgba(94, 204, 199, 0.2); }
.source-badge[data-status="fixture"],
.connector-row[data-status="fixture"] { box-shadow: inset 0 0 0 1px rgba(212, 172, 107, 0.22); }
.source-badge[data-status="review"],
.connector-row[data-status="review"],
.receipt-timeline li[data-state="review"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.receipt-timeline li[data-state="blocked"] { box-shadow: inset 0 0 0 1px rgba(224, 113, 107, 0.36); }
.source-badge strong,
.connector-row span,
.receipt-timeline em {
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}
.source-badge em { color: var(--gold); }
.receipt-timeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  list-style: none;
}
.receipt-timeline li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.receipt-timeline li.is-selected {
  border-color: rgba(212, 172, 107, 0.38);
  background: rgba(212, 172, 107, 0.052);
}
.receipt-timeline strong,
.connector-row strong {
  display: block;
  color: var(--fg-0);
  font-weight: 560;
  line-height: 1.25;
  text-transform: capitalize;
}
.receipt-timeline em,
.connector-row em { display: block; margin-top: 5px; }
.evidence-drawer {
  margin: 14px;
  border: var(--rule) solid rgba(212, 172, 107, 0.22);
  background: rgba(7, 9, 13, 0.74);
}
.evidence-drawer[data-static-proof-selected] {
  box-shadow: inset 0 0 0 1px rgba(212, 172, 107, 0.16);
}
.evidence-drawer summary {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.evidence-drawer summary::-webkit-details-marker { display: none; }
.evidence-drawer summary::after {
  content: "+";
  position: absolute;
  right: 28px;
  color: var(--gold);
  font-family: var(--mono);
}
.evidence-drawer[open] summary::after { content: "-"; }
.evidence-drawer summary span,
.evidence-drawer__source span,
.evidence-drawer__grid span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.evidence-drawer summary strong {
  padding-right: 26px;
  color: var(--fg-0);
  font-weight: 560;
  overflow-wrap: anywhere;
}
.evidence-drawer__body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}
.evidence-drawer__source {
  display: grid;
  gap: 8px;
  border-top: var(--rule) solid rgba(255,255,255,0.08);
  padding-top: 12px;
}
.evidence-drawer__source p {
  margin: 0;
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.evidence-drawer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.evidence-drawer__grid div {
  min-height: 74px;
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  padding: 10px;
}
.evidence-drawer__grid strong {
  display: block;
  margin-top: 7px;
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}
.evidence-drawer__receipt {
  display: grid;
  gap: 6px;
  border: var(--rule) solid rgba(94, 204, 199, 0.2);
  background: rgba(94, 204, 199, 0.035);
  padding: 10px;
}
.evidence-drawer__receipt code {
  color: var(--cyan);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.route-deck__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.75fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.route-deck__card {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 9px;
  padding: 14px;
  background: rgba(7, 9, 13, 0.94);
}
.route-deck__card--wide,
.route-deck__card--preview,
.route-deck__card--transition {
  grid-row: span 2;
}
.route-deck__card span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.route-deck__card strong {
  color: var(--fg-0);
  font-weight: 620;
  line-height: 1.2;
}
.route-deck__card p,
.route-deck__card code {
  margin: 0;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.route-deck__card code {
  color: var(--gold);
}
.route-deck__card--preview,
.route-deck__card--transition {
  min-height: 168px;
  box-shadow: inset 0 0 0 1px rgba(94, 204, 199, 0.14);
}
.route-deck__card--transition {
  box-shadow: inset 0 0 0 1px rgba(212, 172, 107, 0.18);
}
.cockpit-deck-frame {
  margin: 1px 0 0;
  border-top: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(7, 9, 13, 0.94);
}
.cockpit-deck-frame__chrome,
.cockpit-deck-frame__receipt {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.2);
}
.cockpit-deck-frame__chrome {
  border-bottom: var(--rule) solid rgba(255,255,255,0.08);
}
.cockpit-deck-frame__receipt {
  border-top: var(--rule) solid rgba(255,255,255,0.08);
}
.cockpit-deck-frame__chrome div:first-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.cockpit-deck-frame__chrome span,
.cockpit-deck-frame__receipt span,
.cockpit-deck-zone span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.cockpit-deck-frame__chrome strong {
  color: var(--fg-0);
  font-weight: 620;
}
.cockpit-deck-frame__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cockpit-deck-frame__actions button {
  min-height: 28px;
  border: var(--rule) solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
}
.cockpit-deck-frame__zones {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.cockpit-deck-zone {
  display: grid;
  grid-column: span 3;
  min-width: 0;
  min-height: 150px;
  align-content: start;
  gap: 9px;
  padding: 13px;
  background: rgba(10, 14, 20, 0.96);
  overflow: hidden;
}
.cockpit-deck-zone[data-overflow="scroll_y"] {
  max-height: 180px;
  overflow-y: auto;
}
.cockpit-deck-zone.is-selected {
  box-shadow: inset 0 0 0 1px rgba(212, 172, 107, 0.34);
  background: rgba(212, 172, 107, 0.045);
}
.cockpit-deck-zone strong {
  color: var(--fg-0);
  font-weight: 620;
  line-height: 1.2;
}
.cockpit-deck-zone p,
.cockpit-deck-zone code,
.cockpit-deck-frame__receipt code {
  margin: 0;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.cockpit-deck-zone code,
.cockpit-deck-frame__receipt code {
  color: var(--gold);
}
.connector-matrix {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.connector-row {
  display: grid;
  grid-template-columns: 0.72fr 1.2fr 0.72fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.atlas-command-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.84fr);
  gap: 14px;
  padding: 14px;
}
.atlas-fixture-graph {
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  min-height: 270px;
  border: var(--rule) solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 58% 36%, rgba(212, 172, 107, 0.14), transparent 34%),
    rgba(255,255,255,0.025);
}
.atlas-fixture-graph svg { width: 100%; height: 100%; min-height: 220px; }
.atlas-fixture-graph path {
  fill: none;
  stroke: rgba(212, 172, 107, 0.22);
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  stroke-width: 2;
  transition: stroke 180ms ease, stroke-width 180ms ease;
}
.atlas-fixture-graph path.is-selected {
  stroke: rgba(212, 172, 107, 0.78);
  stroke-width: 2.8;
}
.atlas-fixture-graph circle {
  cursor: pointer;
  fill: rgba(94, 204, 199, 0.45);
  stroke: rgba(245, 239, 226, 0.34);
  stroke-width: 2;
  transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease;
}
.atlas-fixture-graph circle.is-selected {
  fill: var(--cyan);
  stroke: rgba(245, 239, 226, 0.62);
  filter: drop-shadow(0 0 10px rgba(94, 204, 199, 0.32));
}
.atlas-fixture-graph circle:focus-visible {
  outline: 0;
  stroke: rgba(245, 239, 226, 0.9);
}
.atlas-fixture-graph circle:nth-of-type(2n).is-selected { fill: var(--gold); }
.atlas-fixture-inspector {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border-top: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
}
.atlas-fixture-inspector span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.atlas-fixture-inspector strong {
  color: var(--fg-0);
  font-weight: 620;
}
.atlas-fixture-inspector p,
.atlas-fixture-inspector code {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.atlas-fixture-inspector p { color: var(--fg-2); }
.atlas-fixture-inspector code { color: var(--gold); }
.command-console {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(7, 9, 13, 0.9);
}
.command-console p {
  margin: 0;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.command-console span {
  display: inline-block;
  min-width: 54px;
  color: var(--gold);
}
@media (max-width: 1120px) {
  .source-badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atlas-command-surface,
  .machine-proof-grid,
  .route-deck__grid,
  .cockpit-deck-frame__zones { grid-template-columns: 1fr; }
  .machine-proof-panel--sources,
  .machine-proof-panel--atlas,
  .machine-proof-panel--route-deck { grid-column: auto; }
  .cockpit-deck-zone { grid-column: auto; }
  .route-deck__card--wide,
  .route-deck__card--preview,
  .route-deck__card--transition { grid-row: auto; }
}
@media (max-width: 720px) {
  .source-badge-grid,
  .connector-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .machine-proof-workbench,
  .machine-proof-workbench * {
    min-width: 0;
  }
  .source-badge strong,
  .connector-row span,
  .evidence-drawer summary strong,
  .evidence-drawer__receipt code,
  .receipt-timeline em,
  .command-console p {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .evidence-drawer summary,
  .evidence-drawer__grid {
    grid-template-columns: 1fr;
  }
}

/* ----- 31c. Operator topology projection ----- */
.operator-topology {
  border-bottom: var(--rule) solid var(--line);
  background:
    radial-gradient(680px 360px at 70% 26%, rgba(94, 204, 199, 0.08), transparent 70%),
    radial-gradient(520px 300px at 20% 76%, rgba(212, 172, 107, 0.08), transparent 66%),
    rgba(255, 255, 255, 0.01);
}
.operator-topology__surface {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  margin-top: 42px;
  border: var(--rule) solid rgba(94, 204, 199, 0.18);
  background:
    linear-gradient(135deg, rgba(94, 204, 199, 0.055), transparent 36%),
    rgba(7, 9, 13, 0.82);
  box-shadow: var(--lift-2);
  overflow: hidden;
}
.operator-topology__graph {
  position: relative;
  min-height: 560px;
  border-right: var(--rule) solid rgba(255,255,255,0.1);
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 38px 38px;
}
.operator-topology__graph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.operator-topology__graph path {
  fill: none;
  stroke: rgba(94, 204, 199, 0.2);
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  stroke-width: 2.6;
  transition: opacity 220ms ease, stroke 220ms ease, stroke-width 220ms ease;
}
.operator-topology__graph path.is-selected {
  opacity: 1;
  stroke: rgba(94, 204, 199, 0.7);
  stroke-width: 3.4;
}
.operator-topology__node {
  appearance: none;
  position: absolute;
  display: grid;
  color: inherit;
  font: inherit;
  text-align: left;
  gap: 6px;
  width: 186px;
  min-height: 92px;
  cursor: pointer;
  border: var(--rule) solid rgba(255,255,255,0.12);
  background: rgba(9, 13, 18, 0.92);
  padding: 12px;
  transform: translate(-50%, -50%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}
.operator-topology__node.is-selected {
  border-color: rgba(212, 172, 107, 0.46);
  background: rgba(15, 18, 24, 0.97);
  box-shadow: 0 0 36px rgba(212, 172, 107, 0.12);
}
.operator-topology__node:focus-visible {
  outline: 2px solid rgba(94, 204, 199, 0.72);
  outline-offset: 4px;
}
@media (hover: hover) {
  .operator-topology__node:hover {
    border-color: rgba(94, 204, 199, 0.42);
    transform: translate(-50%, -50%) translateY(-2px);
  }
}
.operator-topology__node--source { left: 9%; top: 39%; }
.operator-topology__node--forge { left: 35%; top: 34%; }
.operator-topology__node--proof { left: 59%; top: 53%; }
.operator-topology__node--atlas { left: 80%; top: 28%; }
.operator-topology__node--ops { left: 83%; top: 74%; }
.operator-topology__node span,
.operator-topology__node em,
.operator-topology__receipt span,
.operator-topology__pain span,
.operator-topology__pain em,
.operator-topology__terminal span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  font-style: normal;
}
.operator-topology__node span {
  color: var(--cyan);
}
.operator-topology__node strong {
  color: var(--fg-0);
  font-size: 0.94rem;
  font-weight: 560;
  line-height: 1.2;
}
.operator-topology__node em,
.operator-topology__pain em,
.operator-topology__terminal p {
  color: var(--fg-2);
}
.operator-topology__inspector {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}
.operator-topology__receipt,
.operator-topology__selected,
.operator-topology__route,
.operator-topology__pain article,
.operator-topology__terminal {
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  padding: 12px;
}
.operator-topology__selected,
.operator-topology__route {
  display: grid;
  gap: 10px;
}
.operator-topology__selected span,
.operator-topology__route span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.operator-topology__selected strong {
  color: var(--fg-0);
  font-size: 1.05rem;
  font-weight: 620;
  line-height: 1.2;
}
.operator-topology__selected p,
.operator-topology__route p {
  margin: 0;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}
.operator-topology__selected dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.operator-topology__selected dl div {
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  padding: 8px;
}
.operator-topology__selected dt,
.operator-topology__selected dd {
  margin: 0;
}
.operator-topology__selected dt {
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}
.operator-topology__selected dd {
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
}
.operator-topology__receipt {
  display: grid;
  gap: 8px;
}
.operator-topology__receipt span,
.operator-topology__pain span,
.operator-topology__terminal span {
  color: var(--gold);
}
.operator-topology__receipt code {
  color: var(--cyan);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.operator-topology__pain {
  display: grid;
  gap: 10px;
}
.operator-topology__pain article {
  display: grid;
  gap: 5px;
}
.operator-topology__pain strong {
  color: var(--fg-0);
  font-weight: 560;
  text-transform: capitalize;
}
.operator-topology__terminal {
  display: grid;
  gap: 10px;
}
.operator-topology__terminal p {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.operator-topology__terminal span {
  display: inline-block;
  min-width: 54px;
}
@media (max-width: 1120px) {
  .operator-topology__surface {
    grid-template-columns: 1fr;
  }
  .operator-topology__graph {
    border-right: 0;
    border-bottom: var(--rule) solid rgba(255,255,255,0.1);
  }
}
@media (max-width: 760px) {
  .operator-topology,
  .operator-topology * {
    min-width: 0;
  }
  .operator-topology__graph {
    display: grid;
    gap: 12px;
    min-height: auto;
    padding: 14px;
  }
  .operator-topology__graph svg {
    display: none;
  }
  .operator-topology__node {
    position: static;
    width: auto;
    min-height: 0;
    transform: none;
  }
  .operator-topology__node:hover {
    transform: none;
  }
  .operator-topology__selected dl {
    grid-template-columns: 1fr;
  }
}

/* ----- 31d. Static replay pane stack ----- */
.replay-stack {
  border-bottom: var(--rule) solid var(--line);
  background:
    radial-gradient(620px 360px at 68% 24%, rgba(212, 172, 107, 0.08), transparent 68%),
    rgba(255, 255, 255, 0.012);
}
.replay-stack__surface {
  margin-top: 42px;
  border: var(--rule) solid rgba(212, 172, 107, 0.2);
  background:
    linear-gradient(135deg, rgba(212, 172, 107, 0.055), transparent 34%),
    rgba(7, 9, 13, 0.86);
  box-shadow: var(--lift-2);
  overflow: hidden;
}
.replay-stack__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  border-bottom: var(--rule) solid rgba(255,255,255,0.1);
  background: rgba(7, 9, 13, 0.82);
}
.replay-stack__top span,
.replay-pane header span,
.replay-pane__readout span,
.replay-pane__readout em,
.replay-stack__legend > span,
.replay-stack__legend em,
.replay-stack__truth span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  font-style: normal;
}
.replay-stack__top span,
.replay-pane header span,
.replay-stack__legend > span,
.replay-stack__truth span {
  color: var(--gold);
}
.replay-stack__top code {
  color: var(--cyan);
  font-size: 11px;
  overflow-wrap: anywhere;
  text-align: right;
}
.replay-stack__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
}
.replay-stack__panes {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-right: var(--rule) solid rgba(255,255,255,0.1);
}
.replay-pane,
.replay-stack__legend,
.replay-stack__timeline,
.replay-stack__drilldown {
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.replay-pane {
  opacity: 0.56;
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.replay-pane.is-selected {
  border-color: rgba(212, 172, 107, 0.42);
  opacity: 1;
}
.replay-pane header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}
.replay-pane header strong {
  color: var(--fg-0);
  font-weight: 560;
}
.replay-pane svg {
  display: block;
  width: 100%;
  min-height: 150px;
  border-top: var(--rule) solid rgba(255,255,255,0.08);
  border-bottom: var(--rule) solid rgba(255,255,255,0.08);
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    rgba(5, 7, 10, 0.48);
  background-size: 42px 42px;
}
.replay-grid-line,
.replay-zero {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 1;
}
.replay-line {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: 3;
}
.replay-line--state { stroke: #36b7b4; }
.replay-line--mid { stroke: #d9b77e; }
.replay-line--residual { stroke: #e0716b; }
.replay-pane--volume rect {
  fill: rgba(138, 168, 107, 0.72);
}
.replay-pane__readout {
  display: grid;
  grid-template-columns: 0.5fr 1fr 0.7fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
}
.replay-pane__readout strong {
  color: var(--fg-0);
  font-weight: 560;
}
.replay-pane__readout em,
.replay-stack__legend em,
.replay-stack__truth p {
  color: var(--fg-2);
}
.replay-stack__legend {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}
.replay-stack__legend button {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  color: var(--fg-0);
  padding: 11px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}
.replay-stack__legend button.is-selected {
  border-color: rgba(212, 172, 107, 0.42);
  background: rgba(212, 172, 107, 0.055);
}
.replay-stack__legend button:focus-visible,
.replay-stack__ticks button:focus-visible {
  outline: 2px solid rgba(94, 204, 199, 0.72);
  outline-offset: 3px;
}
.replay-stack__legend i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}
.replay-stack__legend strong,
.replay-stack__legend em {
  display: block;
}
.replay-stack__timeline,
.replay-stack__drilldown {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.replay-stack__timeline > span,
.replay-stack__drilldown > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.replay-stack__ticks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.replay-stack__ticks button {
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  color: var(--fg-2);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px;
}
.replay-stack__ticks button.is-selected {
  border-color: rgba(94, 204, 199, 0.42);
  color: var(--cyan);
}
.replay-stack__timeline p,
.replay-stack__drilldown p,
.replay-stack__drilldown code {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.replay-stack__timeline p,
.replay-stack__drilldown p {
  color: var(--fg-2);
}
.replay-stack__drilldown code {
  color: var(--cyan);
}
.replay-stack__truth {
  border: var(--rule) solid rgba(94, 204, 199, 0.18);
  background: rgba(94, 204, 199, 0.035);
  padding: 12px;
}
.replay-stack__truth p {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 1120px) {
  .replay-stack__grid {
    grid-template-columns: 1fr;
  }
  .replay-stack__panes {
    border-right: 0;
    border-bottom: var(--rule) solid rgba(255,255,255,0.1);
  }
}
@media (max-width: 760px) {
  .replay-stack,
  .replay-stack * {
    min-width: 0;
  }
  .replay-stack__top,
  .replay-pane header,
  .replay-pane__readout {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .replay-stack__top code {
    text-align: left;
  }
}

/* ----- 31e. Static source coverage ----- */
.static-source-coverage {
  border-bottom: var(--rule) solid var(--line);
  background:
    radial-gradient(620px 360px at 72% 22%, rgba(138, 168, 107, 0.08), transparent 68%),
    rgba(255, 255, 255, 0.012);
}
.static-source-coverage__surface {
  margin-top: 42px;
  border: var(--rule) solid rgba(138, 168, 107, 0.22);
  background:
    linear-gradient(135deg, rgba(138, 168, 107, 0.055), transparent 34%),
    rgba(7, 9, 13, 0.88);
  box-shadow: var(--lift-2);
  overflow: hidden;
}
.static-source-coverage__top,
.static-source-coverage__stats {
  border-bottom: var(--rule) solid rgba(255,255,255,0.1);
  background: rgba(7, 9, 13, 0.82);
}
.static-source-coverage__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
}
.static-source-coverage__top div {
  display: grid;
  gap: 4px;
}
.static-source-coverage__top span,
.static-source-coverage__top strong,
.static-source-coverage__stats span,
.static-source-coverage__panel header span,
.static-source-coverage__lane h3,
.static-source-coverage__lane em,
.static-source-coverage__terminal span {
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.static-source-coverage__top span,
.static-source-coverage__panel header span,
.static-source-coverage__terminal span {
  color: var(--moss);
}
.static-source-coverage__top strong,
.static-source-coverage__top code {
  overflow-wrap: anywhere;
}
.static-source-coverage__top strong {
  color: var(--fg-0);
  font-weight: 560;
}
.static-source-coverage__top code {
  color: var(--cyan);
  font-size: 11px;
  text-align: right;
}
.static-source-coverage__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.static-source-coverage__stats div {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-right: var(--rule) solid rgba(255,255,255,0.08);
}
.static-source-coverage__stats div:last-child {
  border-right: 0;
}
.static-source-coverage__stats span {
  color: var(--fg-3);
}
.static-source-coverage__stats strong {
  color: var(--fg-0);
  font-size: 1.1rem;
  font-weight: 650;
}
.static-source-coverage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 12px;
  padding: 14px;
}
.static-source-coverage__panel {
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.static-source-coverage__panel--lanes {
  grid-row: span 3;
}
.static-source-coverage__panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: var(--rule) solid rgba(255,255,255,0.08);
}
.static-source-coverage__panel header strong {
  color: var(--fg-0);
  font-weight: 560;
}
.static-source-coverage__lanes,
.static-source-coverage__bars,
.static-source-coverage__types,
.static-source-coverage__terminal {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.static-source-coverage__lane {
  border: var(--rule) solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.16);
  padding: 11px;
}
.static-source-coverage__lane.is-selected {
  border-color: rgba(94, 204, 199, 0.34);
  background: rgba(94, 204, 199, 0.045);
}
.static-source-coverage__lane h3 {
  margin: 0 0 10px;
  color: var(--gold);
}
.static-source-coverage__lane p {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
  padding: 9px 0;
  border-top: var(--rule) solid rgba(255,255,255,0.06);
}
.static-source-coverage__lane p:first-of-type {
  border-top: 0;
}
.static-source-coverage__lane span {
  align-self: start;
  color: var(--fg-0);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}
.static-source-coverage__lane span[data-status="ported"] { color: var(--moss); }
.static-source-coverage__lane span[data-status="prototype"] { color: var(--gold); }
.static-source-coverage__lane span[data-status="touched"] { color: var(--cyan); }
.static-source-coverage__lane strong {
  color: var(--fg-0);
  font-weight: 560;
}
.static-source-coverage__lane em {
  grid-column: 2;
  color: var(--fg-2);
}
.static-source-coverage__bars div {
  display: grid;
  gap: 7px;
}
.static-source-coverage__bars div > span,
.static-source-coverage__types span {
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.static-source-coverage__bars strong,
.static-source-coverage__types strong {
  color: var(--fg-0);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 560;
}
.static-source-coverage__bars i {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--moss), rgba(94, 204, 199, 0.7));
  box-shadow: 0 0 16px rgba(138, 168, 107, 0.16);
}
.static-source-coverage__types div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: var(--rule) solid rgba(255,255,255,0.06);
  padding-bottom: 8px;
}
.static-source-coverage__types div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.static-source-coverage__terminal p {
  margin: 0;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.static-source-coverage__terminal span {
  display: inline-block;
  min-width: 30px;
}
@media (max-width: 1120px) {
  .static-source-coverage__grid,
  .static-source-coverage__stats {
    grid-template-columns: 1fr;
  }
  .static-source-coverage__stats div {
    border-right: 0;
    border-bottom: var(--rule) solid rgba(255,255,255,0.08);
  }
  .static-source-coverage__stats div:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 760px) {
  .static-source-coverage,
  .static-source-coverage * {
    min-width: 0;
  }
  .static-source-coverage__top,
  .static-source-coverage__panel header {
    align-items: start;
    flex-direction: column;
  }
  .static-source-coverage__top code {
    text-align: left;
  }
  .static-source-coverage__lane p {
    grid-template-columns: 1fr;
  }
  .static-source-coverage__lane em {
    grid-column: auto;
  }
  .static-source-coverage__types div {
    display: grid;
  }
}

/* ----- 31f. Static command palette ----- */
.static-command-palette {
  border-bottom: var(--rule) solid var(--line);
  background:
    radial-gradient(620px 360px at 18% 24%, rgba(94, 204, 199, 0.07), transparent 68%),
    rgba(255, 255, 255, 0.01);
}
.static-command-palette__surface {
  margin-top: 42px;
  border: var(--rule) solid rgba(94, 204, 199, 0.2);
  background:
    linear-gradient(135deg, rgba(94, 204, 199, 0.055), transparent 35%),
    rgba(7, 9, 13, 0.88);
  box-shadow: var(--lift-2);
  overflow: hidden;
}
.static-command-palette__bar,
.static-command-palette__search {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 14px;
  border-bottom: var(--rule) solid rgba(255,255,255,0.1);
}
.static-command-palette__bar {
  justify-content: space-between;
  background: rgba(7, 9, 13, 0.82);
}
.static-command-palette__bar span,
.static-command-palette__bar strong,
.static-command-palette__search span,
.static-command-palette__list span,
.static-command-palette__list em,
.static-command-palette__inspector span,
.static-command-palette__inspector dt {
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.static-command-palette__bar span,
.static-command-palette__search span,
.static-command-palette__list span,
.static-command-palette__inspector span {
  color: var(--cyan);
}
.static-command-palette__bar strong {
  color: var(--fg-2);
  font-weight: 520;
  text-align: right;
}
.static-command-palette__search {
  background: rgba(255,255,255,0.022);
}
.static-command-palette__search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--fg-0);
  font-family: var(--mono);
  font-size: 18px;
  outline: 0;
}
.static-command-palette__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}
.static-command-palette__list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-right: var(--rule) solid rgba(255,255,255,0.1);
}
.static-command-palette__list button,
.static-command-palette__inspector {
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.static-command-palette__list button {
  display: grid;
  gap: 6px;
  color: inherit;
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.static-command-palette__list button[hidden] {
  display: none;
}
.static-command-palette__list button.is-active {
  border-color: rgba(212, 172, 107, 0.48);
  background: rgba(212, 172, 107, 0.055);
}
.static-command-palette__list button:focus-visible {
  outline: 2px solid rgba(94, 204, 199, 0.72);
  outline-offset: 3px;
}
@media (hover: hover) {
  .static-command-palette__list button:hover {
    border-color: rgba(94, 204, 199, 0.42);
    transform: translateY(-1px);
  }
}
.static-command-palette__list strong {
  color: var(--fg-0);
  font-weight: 560;
  line-height: 1.25;
}
.static-command-palette__list em,
.static-command-palette__empty,
.static-command-palette__inspector p,
.static-command-palette__inspector dd {
  color: var(--fg-2);
}
.static-command-palette__empty {
  margin: 0;
  border: var(--rule) solid rgba(255,255,255,0.08);
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}
.static-command-palette__inspector {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 14px;
  padding: 14px;
}
.static-command-palette__inspector strong {
  color: var(--fg-0);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.2;
}
.static-command-palette__inspector code,
.static-command-palette__inspector p {
  overflow-wrap: anywhere;
}
.static-command-palette__inspector code {
  color: var(--gold);
  font-size: 12px;
  line-height: 1.55;
}
.static-command-palette__inspector p {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}
.static-command-palette__inspector dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.static-command-palette__inspector dl div {
  border: var(--rule) solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  padding: 10px;
}
.static-command-palette__inspector dt,
.static-command-palette__inspector dd {
  margin: 0;
}
.static-command-palette__inspector dt {
  color: var(--fg-3);
}
.static-command-palette__inspector dd {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 1120px) {
  .static-command-palette__grid {
    grid-template-columns: 1fr;
  }
  .static-command-palette__list {
    border-right: 0;
    border-bottom: var(--rule) solid rgba(255,255,255,0.1);
  }
}
@media (max-width: 760px) {
  .static-command-palette,
  .static-command-palette * {
    min-width: 0;
  }
  .static-command-palette__bar {
    align-items: start;
    flex-direction: column;
  }
  .static-command-palette__bar strong {
    text-align: left;
  }
  .static-command-palette__search input {
    font-size: 15px;
  }
}

/* ----- 32. Field-notes mast (research page) ----- */
.fieldnote-mast {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: var(--rule) solid var(--gold);
  border-bottom: var(--rule) solid var(--line);
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.fieldnote-mast span:not(:first-child) { color: var(--fg-3); }

/* ----- 27. switcher banner (cross-style hop) ----- */
.style-switch {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 80;
  background: rgba(7,9,13,0.92);
  border: var(--rule) solid var(--line-2);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-2);
  display: flex; gap: 14px;
  backdrop-filter: blur(10px);
  box-shadow: var(--lift-2);
}
.style-switch .label { color: var(--fg-3); }
.style-switch a { color: var(--fg-1); }
.style-switch a:hover { color: var(--gold); }
.style-switch a.current { color: var(--gold); }
@media (max-width: 760px) {
  .style-switch {
    display: none;
  }
}

/* ----- 33. Public product proof surface ----- */
.product-proof-surface {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(94,204,199,0.025), transparent 38%, rgba(212,172,107,0.03));
}
.product-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: var(--rule) solid var(--line-1);
  background: var(--line-1);
}
.product-proof-card {
  min-height: 280px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0)),
    var(--bg-0);
}
.product-proof-card--wide {
  grid-column: span 2;
}
.product-proof-card--receipt {
  grid-column: span 2;
  background: var(--bg-1);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}
.product-proof-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 24px;
}
.product-proof-card__head span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.product-proof-card__head code {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
  text-align: right;
}
.product-proof-card h3 {
  max-width: 16ch;
  margin: 0;
  color: var(--fg-0);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.product-proof-card p {
  margin: 18px 0 0;
  color: var(--fg-2);
  font-size: 0.96rem;
  line-height: 1.62;
}
.product-proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.product-proof-tags span {
  border: var(--rule) solid rgba(94,204,199,0.26);
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 6px 8px;
}
@media (max-width: 1040px) {
  .product-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-proof-card--wide,
  .product-proof-card--receipt {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .product-proof-grid {
    grid-template-columns: 1fr;
  }
  .product-proof-card,
  .product-proof-card--wide,
  .product-proof-card--receipt {
    grid-column: auto;
    min-height: auto;
  }
  .product-proof-card__head {
    align-items: start;
    flex-direction: column;
  }
  .product-proof-card__head code {
    text-align: left;
  }
}
