/* DISCLOSURE design system (2026-09 overhaul)
   Ground: the void. Artifact: photocopied paper. Signal: CRT green, used sparingly.
   Voices: Public Sans (poster + body), Space Mono (document control). */

@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Space Mono Fallback";
  src: local("Courier New");
  size-adjust: 102%;
  ascent-override: 108%;
  descent-override: 38%;
}

:root {
  color-scheme: dark;

  /* void ramp, cold green cast */
  --void-0: #030504;
  --void-1: #070b09;
  --void-2: #0c1210;
  --void-3: #141c18;
  --void-4: #1d2722;
  --rule: rgba(214, 224, 217, 0.12);
  --rule-strong: rgba(214, 224, 217, 0.24);

  /* text on void */
  --bone: #d8dfda;
  --bone-dim: #a3aea7;
  --bone-faint: #7d8983;

  /* the signal: the app's CRT green */
  --signal: #4af626;
  --signal-soft: #8dff73;
  --signal-ink: #031002;
  --signal-glow: rgba(74, 246, 38, 0.35);

  /* artifact paper, only on paper objects */
  --paper: #c9ccc3;
  --paper-2: #bec2b8;
  --paper-edge: #a9ada3;
  --toner: #121412;
  --toner-dim: #3b403b;
  --stamp: #74140f;

  /* roles */
  --sentinel: #ef4444;
  --diplomat: #22c55e;
  --scholar: #60a5fa;
  --survivor: #f97316;
  --gold: #ffd700;

  --poster: "Public Sans", "Public Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Public Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "Space Mono Fallback", "Courier New", monospace;

  /* fluid scale: minor third to perfect fourth */
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.82rem + 0.12vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.44rem, 1.25rem + 0.95vw, 2rem);
  --step-3: clamp(1.73rem, 1.4rem + 1.65vw, 2.66rem);
  --step-4: clamp(2.07rem, 1.5rem + 2.85vw, 3.55rem);
  --step-5: clamp(2.49rem, 1.6rem + 4.45vw, 4.73rem);
  --step-6: clamp(2.9rem, 1.7rem + 6vw, 6.4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: clamp(4.5rem, 3rem + 6vw, 8rem);
  --space-10: clamp(6rem, 4rem + 9vw, 12rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1240px;
  --measure: 66ch;

  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 2px;
  --nav-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--void-0);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* grain, whisper level */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--signal-soft); }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--poster); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--signal); color: var(--signal-ink);
  font-family: var(--mono); font-weight: 700; font-size: var(--step--1);
  padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding-block: var(--space-9); position: relative; }
.section + .section { border-top: 1px solid var(--rule); }

/* ---------- voices ---------- */
.poster { font-family: var(--poster); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; }
.label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.mono { font-family: var(--mono); }
.dim { color: var(--bone-dim); }
.faint { color: var(--bone-faint); }
.signal { color: var(--signal); }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--bone); max-width: 54ch; font-weight: 400; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.h-hero { font-size: var(--step-6); letter-spacing: -0.04em; line-height: 0.95; }
.h-1 { font-size: var(--step-5); letter-spacing: -0.035em; line-height: 0.98; }
.h-2 { font-size: var(--step-4); letter-spacing: -0.025em; line-height: 1.02; }
.h-3 { font-size: var(--step-2); letter-spacing: -0.015em; line-height: 1.12; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--signal);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.8em 1.35em;
  background: var(--b); color: var(--signal-ink);
  border: 1px solid var(--b); border-radius: var(--radius);
  font-family: var(--mono); font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.btn:hover { color: var(--signal-ink); background: var(--signal-soft); box-shadow: 0 0 0 4px rgba(74, 246, 38, 0.14), 0 0 32px var(--signal-glow); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; box-shadow: none; }
.btn .arr { transition: transform 180ms var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: var(--bone); border-color: var(--rule-strong);
}
.btn-ghost:hover { background: rgba(216, 223, 218, 0.06); color: var(--bone); box-shadow: none; border-color: var(--bone-dim); }
.btn-gold { --b: var(--gold); }
.link {
  font-family: var(--mono); font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; gap: 0.5em; align-items: center; padding-block: 0.6em;
  border-bottom: 1px solid var(--rule-strong);
}
.link:hover { border-color: var(--signal); }
button.link { background: none; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; cursor: pointer; color: var(--bone); min-height: 44px; }

/* ---------- nav ---------- */
.dx-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background-color: rgba(3, 5, 4, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: transform 360ms var(--ease-out), background 360ms var(--ease-out), border-color 360ms var(--ease-out);
}
.dx-nav[data-mode="over"] { background-color: rgba(3, 5, 4, 0.55); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.dx-nav .wrap { display: flex; align-items: center; gap: var(--space-5); max-width: none; }
.dx-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); flex: none; }
.dx-brand:hover { color: var(--bone); }
.dx-word { font-family: var(--poster); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.22em; line-height: 1; }
.dx-links { display: flex; gap: var(--space-5); margin-left: auto; align-items: center; }
.dx-links a {
  font-family: var(--mono); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--bone-dim); padding-block: 12px;
}
.dx-links a:hover, .dx-links a[aria-current="page"] { color: var(--bone); }
.dx-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--signal); }
.dx-tools { display: flex; align-items: center; gap: var(--space-3); }
.dx-sound, .dx-motion {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer;
  font-family: var(--mono); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim);
}
.dx-sound:hover, .dx-motion:hover { color: var(--bone); border-color: var(--rule-strong); }
.dx-motion svg { width: 11px; height: 11px; fill: currentColor; }
.dx-motion[aria-pressed="true"] { color: var(--signal); border-color: rgba(74, 246, 38, 0.4); }
@media (prefers-reduced-motion: reduce) { .dx-motion { display: none; } }
.dx-sound .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.dx-sound .bars i { width: 2px; height: 4px; background: currentColor; display: block; }
.dx-sound[aria-pressed="true"] { color: var(--signal); border-color: rgba(74, 246, 38, 0.4); }
.dx-sound[aria-pressed="true"] .bars i { animation: dx-bar 1.1s var(--ease-io) infinite alternate; }
.dx-sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -0.4s; }
.dx-sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -0.8s; }
@keyframes dx-bar { from { height: 3px; } to { height: 12px; } }
.dx-nav .btn { min-height: 40px; padding: 0.55em 1em; }
.dx-menu-btn { display: none; }
@media (max-width: 900px) {
  .dx-links { display: none; }
  .dx-nav .btn { display: none; }
  .dx-tools { margin-left: auto; }
  .dx-menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; min-width: 44px; padding: 0 12px;
    background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); cursor: pointer;
    font-family: var(--mono); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  }
  .dx-sound, .dx-motion { min-width: 44px; min-height: 44px; justify-content: center; }
  .dx-motion .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dx-sound .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.dx-sheet {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--void-0);
  padding: var(--space-6) var(--gutter);
  display: none; flex-direction: column; gap: var(--space-2);
  overflow-y: auto;
}
.dx-sheet[data-open="true"] { display: flex; }
.dx-sheet a {
  font-family: var(--poster); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.02em;
  text-decoration: none; padding-block: 10px; border-bottom: 1px solid var(--rule);
}
.dx-sheet .btn { margin-top: var(--space-5); align-self: flex-start; font-size: var(--step--1); }

/* the watcher: the small eye mark */
.watcher { width: 34px; height: 20px; flex: none; overflow: visible; }
.watcher .lid { fill: none; stroke: var(--bone); stroke-width: 1.4; }
.watcher .iris { fill: var(--signal); transition: transform 90ms linear; }
.watcher .pupil { fill: var(--void-0); }
.watcher .shut { stroke: var(--bone); stroke-width: 1.4; opacity: 0; }
.watcher.blink .eyeball { transform: scaleY(0.08); }
.watcher.asleep .eyeball { transform: scaleY(0.08); transition-duration: 600ms; }
.watcher-lg {
  position: absolute; z-index: 0; right: var(--gutter); top: 54%; transform: translateY(-50%);
  width: min(24vw, 360px); height: auto; pointer-events: none; opacity: 0.75;
}
.watcher-lg .lid { stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.watcher-lg .iris { fill: #08110c; }
.watcher-lg .ring { fill: none; stroke: rgba(74, 246, 38, 0.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.watcher-lg .pupil { fill: #000; }
.watcher-lg .eyeball { transition-duration: 160ms; }
.page-head > .wrap, .plate > .wrap { position: relative; z-index: 1; }
.watcher .eyeball { transform-origin: 17px 10px; transition: transform 110ms var(--ease-io); }

/* ---------- footer ---------- */
.dx-foot { border-top: 1px solid var(--rule); padding-block: var(--space-9) var(--space-6); background: var(--void-0); position: relative; }
.dx-foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-8); align-items: end; }
.dx-foot-line { font-size: var(--step-4); max-width: 16ch; }
.dx-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.dx-foot-cols h2 { font-family: var(--mono); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: var(--space-3); }
.dx-foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dx-foot-cols a { text-decoration: none; color: var(--bone-dim); display: inline-block; padding-block: 6px; font-size: var(--step--1); }
.dx-foot-cols a:hover { color: var(--bone); }
.dx-foot-cta { margin-top: var(--space-6); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.dx-social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.dx-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--bone-dim); }
.dx-social a:hover { color: var(--bone); border-color: var(--rule-strong); }
.dx-social svg { width: 18px; height: 18px; fill: currentColor; }
.control-line {
  margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between;
  font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-faint);
}
@media (max-width: 860px) {
  .dx-foot-top { grid-template-columns: 1fr; gap: var(--space-7); }
  .dx-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- redaction ---------- */
.rx {
  --rx: var(--toner);
  background-image: linear-gradient(var(--rx), var(--rx));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 100% 88%;
  color: transparent;
  border-radius: 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 0.08em;
  transition: background-size 900ms var(--ease-io), color 300ms linear 500ms;
}
.void .rx, .rx-void { --rx: #000; box-shadow: 0 0 0 1px rgba(214, 224, 217, 0.08); }
.rx.lifted { background-size: 0% 88%; color: inherit; }
.rx-fixed { color: transparent !important; background-size: 100% 88% !important; user-select: none; }
.no-js .rx:not(.rx-fixed) { background-size: 0% 88%; color: inherit; }
@media (prefers-reduced-motion: reduce) { .rx { transition: none; } }

/* ---------- paper objects ---------- */
.paper {
  --tilt: -0.5deg;
  position: relative;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E"),
    linear-gradient(100deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, 0.1)),
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%);
  color: var(--toner);
  padding: clamp(1.25rem, 0.8rem + 2.5vw, 3rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 8px 18px -8px rgba(0, 0, 0, 0.7);
  transform: rotate(var(--tilt));
}
.paper a { color: var(--toner); }
.paper a:hover { color: #000; background: rgba(0, 0, 0, 0.08); }
.paper ::selection { background: var(--toner); color: var(--paper); }
.paper :focus-visible { outline-color: var(--toner); }
.paper-head {
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.08em; text-transform: uppercase;
  padding-bottom: var(--space-3); margin-bottom: var(--space-5); border-bottom: 2px solid var(--toner);
}
.paper .dim { color: var(--toner-dim); }
.stamp {
  display: inline-block;
  font-family: var(--mono); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); padding: 0.3em 0.7em; border-radius: 3px;
  transform: rotate(-6deg);
}
.exempt { font-family: var(--mono); font-size: var(--step--2); color: var(--toner-dim); letter-spacing: 0.04em; }

/* ---------- ledger ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.ledger > li { border-bottom: 1px solid var(--rule); }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- page header (interior pages) ---------- */
.page-head { padding-top: calc(var(--nav-h) + var(--space-9)); padding-bottom: var(--space-8); position: relative; }
.page-head .kicker { margin-bottom: var(--space-5); color: var(--bone-faint); }
.page-head h1 { font-size: var(--step-5); max-width: 18ch; letter-spacing: -0.035em; line-height: 0.98; }
.page-head .lede { margin-top: var(--space-5); color: var(--bone-dim); }
.page-head .actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.crumbs { font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: var(--space-5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6em; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.6em; color: var(--rule-strong); }
.crumbs a { text-decoration: none; color: var(--bone-dim); }
.crumbs a:hover { color: var(--bone); }

/* ---------- plate: image header ---------- */
.plate { position: relative; background: var(--void-1); overflow: hidden; isolation: isolate; }
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.45) contrast(1.06) brightness(0.72); z-index: 0; }
.plate::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--void-0) 4%, rgba(3, 5, 4, 0.7) 45%, rgba(3, 5, 4, 0.35) 100%), radial-gradient(80% 70% at 70% 40%, rgba(3, 5, 4, 0) 0%, rgba(3, 5, 4, 0.5) 100%); }
.plate > .wrap { position: relative; z-index: 2; }

/* ---------- prose (intel articles, briefings, legal) ---------- */
.prose { max-width: var(--measure); font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem); line-height: 1.7; color: #cdd5d0; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1.1; color: var(--bone);
  margin-top: 2.2em; padding-top: 0.9em; border-top: 1px solid var(--rule);
}
.prose h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; color: var(--bone); margin-top: 1.8em; font-weight: 700; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { color: var(--bone); font-weight: 700; }
.prose a { color: var(--bone); text-decoration-color: var(--signal); text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--signal-soft); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--bone-faint); font-family: var(--mono); font-size: 0.85em; }
.prose blockquote {
  margin: 1.6em 0; padding: 1.1em 1.3em; border-left: 3px solid var(--signal);
  background: var(--void-2); color: var(--bone); font-family: var(--mono); font-size: 0.92em; line-height: 1.65;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.65em 0.8em; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-faint); font-weight: 700; }
.prose img { border: 1px solid var(--rule); margin-block: 1.6em; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-family: var(--mono); font-size: var(--step--2); color: var(--bone-faint); margin-top: 0.6em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--void-2); padding: 0.1em 0.35em; }

/* callout: the field note */
.field-note {
  border: 1px solid var(--rule-strong); background: var(--void-1); padding: var(--space-5);
  position: relative;
}
.field-note .label { color: var(--signal); display: block; margin-bottom: var(--space-2); }
.field-note p:last-child { margin-bottom: 0; }

/* the ask band: one ask, used at the end of interior pages */
.ask {
  padding-block: var(--space-9);
  border-top: 1px solid var(--rule);
  background-color: var(--void-1);
}
.ask-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-7); align-items: end; }
.ask h2 { font-size: var(--step-4); max-width: 16ch; }
.ask p { color: var(--bone-dim); max-width: 44ch; }
.ask .actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 760px) { .ask-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

/* index list: rows of files */
.file-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.file-index li { border-bottom: 1px solid var(--rule); }
.file-index a {
  display: grid; grid-template-columns: 7ch minmax(0, 1fr) auto; gap: var(--space-5); align-items: baseline;
  padding: var(--space-4) 0; text-decoration: none; color: var(--bone);
  transition: background 200ms var(--ease-out), padding 200ms var(--ease-out);
}
.file-index a:hover { background: var(--void-1); padding-inline: var(--space-3); color: var(--bone); }
.file-index .no { font-family: var(--mono); font-size: var(--step--2); color: var(--bone-faint); letter-spacing: 0.06em; }
.file-index .t { font-weight: 650; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; }
.file-index .d { display: block; font-weight: 420; font-size: var(--step--1); color: var(--bone-dim); margin-top: 4px; letter-spacing: 0; }
.file-index .cat { font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-faint); white-space: nowrap; }
@media (max-width: 640px) {
  .file-index a { grid-template-columns: 1fr; gap: 4px; }
  .file-index .cat { order: -1; }
  .file-index .no { display: none; }
}

/* role chips (colour carries meaning only here) */
.role-dot { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--c, var(--bone)); vertical-align: 0.08em; }
.r-sentinel { --c: var(--sentinel); }
.r-diplomat { --c: var(--diplomat); }
.r-scholar { --c: var(--scholar); }
.r-survivor { --c: var(--survivor); }
.r-first-contact { --c: var(--gold); }

/* FAQ as interrogation transcript */
.transcript { border-top: 1px solid var(--rule-strong); }
.transcript details { border-bottom: 1px solid var(--rule); }
.transcript summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 3ch minmax(0, 1fr) 24px; gap: var(--space-4);
  padding: var(--space-5) 0; font-weight: 650; font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "Q."; font-family: var(--mono); font-size: var(--step--1); color: var(--bone-faint); padding-top: 0.2em; }
.transcript summary::after { content: "+"; font-family: var(--mono); color: var(--bone-faint); text-align: right; transition: transform 200ms var(--ease-out); }
.transcript details[open] summary::after { transform: rotate(45deg); color: var(--signal); }
.transcript .a { display: grid; grid-template-columns: 3ch minmax(0, 1fr); gap: var(--space-4); padding-bottom: var(--space-5); color: var(--bone-dim); max-width: 80ch; }
.transcript .a::before { content: "A."; font-family: var(--mono); font-size: var(--step--1); color: var(--signal); padding-top: 0.25em; }
.transcript .a > div > p:last-child { margin-bottom: 0; }

@media print {
  .dx-nav, .dx-sheet, .dx-sound, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}


/* ---------- accessibility and scaling layer (WCAG 2.2 AA pass, 2026-09-28) ---------- */

/* one switch stills every loop */
html.motion-off .cx-iris, html.motion-off .dx-sound .bars i { animation: none !important; }
html.motion-off .watcher .eyeball, html.motion-off .watcher .iris { transition: none; }

/* scale up on big screens, respecting the visitor's own base size */
@media (min-width: 1800px) { html { font-size: 112.5%; } :root { --max: 1440px; } }
@media (min-width: 2400px) { html { font-size: 125%; } :root { --max: 1640px; } }

/* small tap targets get room (2.5.8) */
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; }
.dx-foot-cols a { min-height: 32px; display: inline-flex; align-items: center; }
.control-line a { display: inline-flex; min-height: 24px; align-items: center; }

/* focus is never hidden under the fixed nav (2.4.11) */
:focus { scroll-margin-top: calc(var(--nav-h) + 24px); scroll-margin-bottom: 24px; }

/* two-colour focus ring so it holds on paper and on the void (1.4.11) */
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; box-shadow: 0 0 0 5px #000; }
.paper :focus-visible { outline-color: #000; box-shadow: 0 0 0 5px var(--paper); }

/* forced colours (Windows high contrast): keep every word readable */
@media (forced-colors: active) {
  .rx { color: CanvasText !important; background: none !important; border-bottom: 2px solid CanvasText; }
  .rx.rx-fixed { background: CanvasText !important; forced-color-adjust: none; color: transparent !important; }
  .paper, .field-note, .cx-claim, .ask { border: 1px solid CanvasText; }
  .btn { border: 2px solid ButtonText; }
  .watcher .iris { fill: CanvasText; }
  .stamp { border-color: CanvasText; color: CanvasText; }
  body::after { display: none; }
}

/* text spacing and zoom: nothing clips (1.4.12, 1.4.10) */
.page-head h1, .h-hero, .h-1 { overflow-wrap: anywhere; hyphens: manual; }
@media (max-width: 360px) {
  .dx-word { font-size: 0.92rem; letter-spacing: 0.16em; }
  .dx-nav .wrap { gap: var(--space-3); }
  .dx-tools { gap: 6px; }
}

/* margin codes sit outside the paper only when the page has room for them */
@media (max-width: 1320px) { .record-paper .exempt, .protocol-sheet .exempt { display: none; } }


/* ---------- the brand: emblem + stencil wordmark ---------- */
.dx-brand { gap: 10px; }
.dx-emblem { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 10px rgba(74, 246, 38, 0.35)); }
.dx-wordmark { height: 26px; width: auto; flex: none; }
.dx-brand:hover .dx-emblem { filter: drop-shadow(0 0 16px rgba(74, 246, 38, 0.6)); }
@media (max-width: 480px) { .dx-emblem { width: 32px; height: 32px; } .dx-wordmark { height: 20px; } }
@media (max-width: 340px) { .dx-wordmark { height: 17px; } }
@media (min-width: 1800px) { .dx-emblem { width: 44px; height: 44px; } .dx-wordmark { height: 30px; } }
.dx-foot-mark { display: block; width: min(100%, 520px); height: auto; margin-bottom: var(--space-6); }
@media (forced-colors: active) { .dx-emblem, .dx-wordmark, .dx-foot-mark { forced-color-adjust: none; } }
