/* Self-hosted latin subsets — no external font origins (no visitor IP to Google). */
@font-face{font-family:"Newsreader";font-style:normal;font-weight:400;font-display:swap;src:url("/static/fonts/newsreader-400.woff2") format("woff2");}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:500;font-display:swap;src:url("/static/fonts/newsreader-500.woff2") format("woff2");}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("/static/fonts/ibm-plex-mono-400.woff2") format("woff2");}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("/static/fonts/ibm-plex-mono-500.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/static/fonts/inter-400.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/static/fonts/inter-500.woff2") format("woff2");}

/* ═══════════════════════════════════════════════════════════════════════════
   WASID — public landing. Dark "operations terminal".
   One accent (gold). Green/red appear ONLY inside verdict semantics.
   Four type sizes: display / h2 1.75rem / body 1.125rem / mono 0.9375rem.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:       #0B1220;   /* pre-dawn indigo — a chosen dark, not near-black */
  --panel:    #131C2B;
  --panel-2:  #1B2740;
  --ink:      #EAF2F3;
  --muted:    #93A7B0;
  --line:     rgba(150, 210, 215, 0.12);
  --accent:       #22C9CE;   /* Sentinel Cyan — the confirmed read (replaces gold) */
  --accent-hover: #55E2E4;
  --on-accent:    #0B1220;   /* dark text on the cyan CTA */
  --signal:   #9A8CF5;   /* Signal Violet — sensed / unconfirmed (the claim dot) */
  --verified: #24B36B;   /* jade — corroborated */
  --threat:   #F26A4B;   /* ember — alert/risk */
  --nil:      #7C93A1;   /* cool slate — no-signal / dismissed */

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* the four sizes */
  --fs-display: clamp(2.5rem, 6vw, 4.25rem);
  --fs-h2:      1.75rem;
  --fs-body:    1.125rem;
  --fs-mono:    0.9375rem;   /* 15px floor */

  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ── links & focus ─────────────────────────────────────────────────────── */
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); transition: color .15s, text-decoration-color .15s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: var(--pad); top: -3rem; z-index: 20;
  background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: var(--fs-mono);
  padding: .5rem 1rem; border: 1px solid var(--accent);
}
.skip-link:focus { top: .75rem; }

/* ── the apparatus (mono) ──────────────────────────────────────────────── */
.eyebrow, .site-nav, .nav-toggle, .wordmark, .cell-caption,
.node-name, .node-sub, .moat-marker, .mono-lead, .verb,
.verdict-label, .verdict-head, .signal-table, .verdict-foot,
.split-head, .lang-list, .sectors, .tier-name, .tier-what,
.access-note, .site-footer {
  font-family: var(--mono);
  font-size: var(--fs-mono);
}
.eyebrow, .verb, .split-head, .tier-name, .node-name, .moat-marker,
.wordmark, .verdict-label, .mono-lead {
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow { color: var(--accent); margin-bottom: 1rem; }
.mono-lead { color: var(--accent); }

/* ── headings (serif) ──────────────────────────────────────────────────── */
h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--fs-display); line-height: 1.05;
  letter-spacing: -0.01em; text-wrap: balance;
}
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--fs-h2); line-height: 1.2; text-wrap: balance;
}

/* ── layout shell ──────────────────────────────────────────────────────── */
main > section {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.section-lede { max-width: var(--measure); color: var(--muted); margin-top: 1rem; }

/* ── header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .875rem var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: .625rem;
  text-decoration: none;
}
.wordmark { color: var(--ink); font-weight: 500; }
.cell { color: var(--accent); display: block; }
.cell-sm { width: 1.5rem; height: 1.5rem; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--line); color: var(--ink);
  padding: .375rem .875rem; cursor: pointer;
  text-transform: uppercase; letter-spacing: .08em;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  display: flex; align-items: center; gap: clamp(2rem, 6vw, 5rem);
  min-height: 72vh;
}
.hero-copy { flex: 1 1 32rem; }
.hero-sub { max-width: var(--measure); margin-top: 1.5rem; color: var(--muted); }
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-cta { margin-top: 2.25rem; }

.cta {
  display: inline-block;
  font-family: var(--mono); font-size: var(--fs-mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--bg); background: var(--accent);
  padding: .875rem 1.75rem;
  text-decoration: none;
  transition: background .15s;
}
.cta:hover { background: var(--accent-hover); color: var(--on-accent); }
button.cta { border: 0; cursor: pointer; font: inherit; letter-spacing: .04em; }

/* ── access-request form (native POST, no JS) ── */
.request { max-width: 640px; }
.access-form { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.access-form label {
  display: grid; gap: .4rem; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.access-form input, .access-form select, .access-form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  padding: .7rem .8rem; width: 100%;
}
.access-form textarea { resize: vertical; min-height: 3.2rem; }
.access-form input:focus, .access-form select:focus, .access-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.access-form .cta { justify-self: start; margin-top: .25rem; }
/* Honeypot: off-screen, never shown to real users; a filled value flags a bot. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── server-rendered thank-you page ── */
.thanks { max-width: 640px; margin: 0 auto; padding: 6rem 1.25rem; min-height: 60vh; }
.thanks-h { font-family: var(--serif); font-size: 2.5rem; line-height: 1.1; margin: .5rem 0 1rem; color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════════
   CINEMATIC SCROLL — "The Blue Hour" (Phase 1)
   One dawn across the whole page: deep pre-dawn indigo at the top, a cyan
   "first light" bloom crossing at the moat, a faint warm dawn toward the CTA.
   All motion is opt-in: gated on html.anim (added by JS only when motion is
   allowed). No-JS and prefers-reduced-motion users get the finished static page.
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  /* Two fixed, GPU-composited light layers behind all content; JS drives their
     opacity from scroll position via --cyan-op / --warm-op. */
  html.anim body::before,
  html.anim body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    will-change: opacity;
  }
  html.anim body::before {          /* cyan first-light bloom (peaks at the moat) */
    background: radial-gradient(130% 85% at 50% 30%, rgba(34, 201, 206, 0.20), transparent 62%);
    opacity: var(--cyan-op, 0);
  }
  html.anim body::after {           /* warm dawn lift, low and subtle, near the CTA */
    background: radial-gradient(150% 75% at 50% 106%, rgba(242, 178, 120, 0.16), transparent 60%);
    opacity: var(--warm-op, 0);
  }
  /* Scroll-reveal: elements fade + rise as they enter the viewport. JS adds the
     .reveal class (so the hidden state never applies without JS) and .in on entry. */
  html.anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  html.anim .reveal.in { opacity: 1; transform: none; }
  /* Staggered children (verbs, tiers, chips) ride a --i index set by JS. */
  html.anim .reveal.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 55ms); }
  html.anim .reveal.stagger.in > * { opacity: 1; transform: none; }
}
/* The claim dot at the Sentinel Cell's centre is violet = sensed/unconfirmed,
   resolving to cyan once corroborated — the palette tells the product's story. */
.cell-dot { fill: var(--signal); }

.hero-cell {
  flex: 0 0 auto; text-align: center;
  /* Ambient cyan glow behind the mark — gives the hero's right column visual
     weight at rest and mid-assembly, so it never reads as an empty wall. */
  background: radial-gradient(circle at 50% 34%, rgba(34, 201, 206, 0.12), rgba(34, 201, 206, 0) 58%);
}
.cell-hero { width: clamp(9rem, 18vw, 14rem); height: auto; }
.cell-caption { color: var(--muted); margin-top: 1.25rem; line-height: 1.6; }

/* ── the one motion moment: the Sentinel Cell assembles ────────────────
   Resting state (no JS, reduced motion) IS the finished sealed cell.     */
@media (prefers-reduced-motion: no-preference) {
  html.assemble .cell-animate .cell-edge {
    stroke-dasharray: 40;
    animation: edge-draw .45s ease-out backwards;
  }
  html.assemble .cell-animate .e1 { animation-delay: 0s; }
  html.assemble .cell-animate .e2 { animation-delay: .12s; }
  html.assemble .cell-animate .e3 { animation-delay: .24s; }
  html.assemble .cell-animate .e4 { animation-delay: .36s; }
  html.assemble .cell-animate .e5 { animation-delay: .48s; }
  html.assemble .cell-animate .e6 { animation-delay: .60s; }
  html.assemble .cell-animate .cell-dot {
    transform-box: fill-box; transform-origin: center;
    animation: dot-settle .4s ease-out .8s backwards;
  }
}
@keyframes edge-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes dot-settle { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
/* Static captures (print, PDF, screenshot/crawlers) freeze animations at their
   first frame — force the finished sealed cell so the mark is never captured blank. */
@media print {
  .cell-animate .cell-edge { stroke-dasharray: none !important; animation: none !important; }
  .cell-animate .cell-dot  { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── hero trust strip (static — always visible) ─────────────────────────── */
.trust-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: .55rem 1.5rem;
  margin-top: 2.25rem;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .03em;
  color: var(--muted);
}
.trust-strip li { position: relative; padding-left: 1rem; }
.trust-strip li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ── the violet / cyan legend under the hero cell (static) ──────────────── */
.cell-legend {
  list-style: none; display: inline-flex; flex-direction: column; gap: .4rem;
  margin-top: 1rem; text-align: left;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .02em;
  color: var(--muted);
}
.legend-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: .55rem; vertical-align: middle;
}
.legend-sensed { background: var(--signal); }
.legend-confirmed { background: var(--accent); }

/* ═══ PHASE 4 — ambient "signal field" (Canvas; JS-painted, motion-gated) ═══
   Sits behind the two Phase-1 light layers (z:-1) and the body ground.
   Hidden by default so no-JS / reduced-motion never see an empty canvas box. */
.signal-field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html.anim .signal-field { opacity: 1; transition: opacity 1.4s ease; }

  /* ═══ PHASE 2 — the moat "dawn-break" ═══
     A cyan sweep crosses the rail L→R (width driven by --rail-progress), and the
     "WASID operates here" marker ignites from slate to cyan when the light lands.
     Static / no-JS keep the finished lit rail + cyan marker from the base rules. */
  html.anim .rail-fill {
    display: block; position: absolute; top: 3.25rem; left: 0; height: 2px;
    width: calc(var(--rail-progress, 0) * 100%);
    background: linear-gradient(90deg, rgba(34,201,206,0) 0%, var(--accent) 14%, var(--accent) 100%);
    box-shadow: 0 0 10px rgba(34,201,206,.5);
    z-index: 1; pointer-events: none;
  }
  html.anim #moat .moat-marker {
    color: var(--nil); border-color: var(--nil);
    transition: color .5s ease, border-color .5s ease, text-shadow .5s ease;
  }
  html.anim #moat .marker-caret { border-color: var(--nil); transition: border-color .5s ease; }
  html.anim #moat .has-marker .node-dot {
    background: var(--nil); transition: background .5s ease, box-shadow .5s ease;
  }
  html.anim #moat.lit .moat-marker {
    color: var(--accent); border-color: var(--accent);
    text-shadow: 0 0 14px rgba(34,201,206,.55);
  }
  html.anim #moat.lit .marker-caret { border-color: var(--accent); }
  html.anim #moat.lit .has-marker .node-dot {
    background: var(--accent); box-shadow: 0 0 12px rgba(34,201,206,.7);
  }

  /* ═══ PHASE 3 — the verdict card resolves ═══
     The six signal stances start violet (sensed), then settle to their true
     colours one row at a time when the card enters. Static keeps final colours. */
  html.anim .verdict-card .stance { color: var(--signal); transition: color .55s ease; }
  html.anim .verdict-card.resolved .stance { color: var(--nil); }
  html.anim .verdict-card.resolved .stance-true { color: var(--verified); }
  html.anim .verdict-card .signal-table tbody tr:nth-child(1) .stance { transition-delay: .10s; }
  html.anim .verdict-card .signal-table tbody tr:nth-child(2) .stance { transition-delay: .22s; }
  html.anim .verdict-card .signal-table tbody tr:nth-child(3) .stance { transition-delay: .34s; }
  html.anim .verdict-card .signal-table tbody tr:nth-child(4) .stance { transition-delay: .46s; }
  html.anim .verdict-card .signal-table tbody tr:nth-child(5) .stance { transition-delay: .58s; }
  html.anim .verdict-card .signal-table tbody tr:nth-child(6) .stance { transition-delay: .70s; }
}

/* ── the moat ──────────────────────────────────────────────────────────── */
.moat-rail {
  list-style: none;
  display: flex;
  margin-top: 5rem;
  padding-top: 3.25rem;            /* room for the marker */
  position: relative;
}
.moat-node {
  flex: 1;
  position: relative;
  padding: 1.5rem .5rem 0 .5rem;
  text-align: center;
}
/* the rail line */
.moat-node::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.moat-node:first-child::before { left: 50%; }
.moat-node:last-child::before { right: 50%; }
.node-dot {
  position: absolute; top: -4px; left: 50%;
  width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%;
  background: var(--nil);
}
.has-marker .node-dot { background: var(--accent); }
.node-name { display: block; color: var(--ink); }
.node-sub { display: block; color: var(--muted); margin-top: .375rem; }

.moat-marker {
  position: absolute;
  top: -3.25rem; left: 50%;
  transform: translateX(-100%);    /* planted LEFT of the journalist node */
  white-space: nowrap;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 0 .25rem .375rem .25rem;
}
.marker-caret {
  position: absolute; right: -1px; bottom: -7px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
}

.moat-notes { margin-top: 4.5rem; display: grid; gap: 1.5rem; }
.moat-notes p { max-width: var(--measure); color: var(--muted); }

/* ── how it works ──────────────────────────────────────────────────────── */
.verbs {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.verbs li { background: var(--bg); padding: 1.5rem; }
.verb { color: var(--accent); font-weight: 500; margin-bottom: .75rem; }
.verbs p { color: var(--muted); }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}
.split-col { background: var(--panel); padding: 1.75rem; }
.split-head { color: var(--ink); font-weight: 500; margin-bottom: .75rem; }
.split-col p { color: var(--muted); }

/* verdict card — the only place green appears */
.verdict-card {
  margin-top: 2.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 1.75rem;
  max-width: 44rem;
}
.verdict-label { color: var(--accent); margin-bottom: 1.25rem; }
.verdict-head {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: baseline;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.verdict-word { font-weight: 500; letter-spacing: .08em; }
.verdict-verified { color: var(--verified); }
.verdict-score { color: var(--muted); }

.signal-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.signal-table th, .signal-table td {
  text-align: left; font-weight: 400;
  padding: .5rem .75rem .5rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.signal-table tr:last-child th, .signal-table tr:last-child td { border-bottom: 0; }
.signal-table th { color: var(--ink); white-space: nowrap; }
.stance { color: var(--nil); white-space: nowrap; }
.stance-true { color: var(--verified); }
.detail { color: var(--muted); }

.verdict-foot {
  margin-top: .75rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ── coverage ──────────────────────────────────────────────────────────── */
.lang-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2.5rem;
  max-width: 56rem;
}
.lang-list li {
  border: 1px solid var(--line);
  padding: .25rem .75rem;
  color: var(--muted);
}
.sectors { margin-top: 2.5rem; max-width: var(--measure); color: var(--muted); }

/* ── access ────────────────────────────────────────────────────────────── */
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.tier { background: var(--bg); padding: 1.75rem; }
.tier-name { color: var(--accent); font-weight: 500; }
.tier-what { color: var(--ink); margin: .5rem 0 1rem 0; }
.tier > p:last-child { color: var(--muted); font-family: var(--sans); font-size: var(--fs-body); }
.access-note { margin-top: 2rem; color: var(--muted); }
.access-note a { color: var(--accent); }

/* ── ethic ─────────────────────────────────────────────────────────────── */
.ethic h2 { font-size: var(--fs-h2); }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer {
  max-width: 1040px; margin: 0 auto;
  padding: 3.5rem var(--pad) 4rem var(--pad);
  color: var(--muted);
  display: grid; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: .625rem; }
.footer-name { color: var(--ink); }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .verbs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
              background: var(--bg); border-bottom: 1px solid var(--line);
              padding: 1rem var(--pad) 1.5rem var(--pad); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; }

  .hero { flex-direction: column-reverse; align-items: flex-start; min-height: 0; }
  .hero-cell { align-self: center; }

  /* the moat rail becomes a vertical timeline — the L→R sweep bar has no meaning here
     (the marker still ignites via .lit; only the horizontal fill is dropped). */
  .rail-fill { display: none !important; }
  .moat-rail { flex-direction: column; padding-top: 0; margin-top: 3rem; }
  .moat-node {
    text-align: left;
    padding: 0 0 2.25rem 1.75rem;
  }
  .moat-node::before {
    top: 5px; bottom: 0; left: 4px; right: auto;
    width: 1px; height: auto;
  }
  .moat-node:first-child::before { left: 4px; top: 5px; }
  .moat-node:last-child::before { display: none; }
  .node-dot { top: 5px; left: 0; margin-left: 0; }
  .has-marker { padding-top: 3rem; }
  .moat-marker {
    top: 0; left: 1.75rem; transform: none;
    border-bottom: none; border-left: 1px solid var(--accent);
    padding: 0 0 0 .625rem;
  }
  .marker-caret { display: none; }

  .split, .tiers { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .verbs { grid-template-columns: 1fr; }
  .signal-table .detail { display: none; } /* keep the card readable at 320–390px */
}
