@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* =============================================================
   1. TOKENS
   Palette follows clinical monitoring semantics:
   normal (teal) = nominal trace / wayfinding
   watch (amber) = attention, lead time, the call to act
   crit  (coral) = the failure being audited
   Every text pair below is checked against WCAG AA (4.5:1 body,
   3:1 large). Contrast ratios noted where they are load-bearing.
   ============================================================= */
:root {
  /* Paper surfaces — the instrument panel */
  --paper: #ECEBE4;
  --paper-raised: #FAFAF6;
  --paper-sunk: #E1E1D9;

  /* Navy surfaces — the monitor housing. Deliberately much deeper
     than --ink so dark panels read as a separate material, not as
     oversized body text. (Previously these were near-identical.) */
  --navy: #0A1620;
  --navy-raised: #132330;
  --navy-deep: #060F17;

  /* Ink on paper */
  --ink: #152430;        /* 13.2:1 on paper */
  --ink-2: #4A5661;      /*  6.3:1 on paper */
  --ink-3: #5C6771;      /*  4.8:1 on paper */

  /* Ink on navy */
  --on-navy: #ECEBE4;    /* 15.3:1 on navy */
  --on-navy-2: rgba(236,235,228,0.74);
  --on-navy-3: rgba(236,235,228,0.55);

  /* Signal accents */
  --signal-normal: #2C6B5E;         /* 5.2:1 on paper */
  --signal-normal-bright: #5FAF9C;  /* 7.1:1 on navy  */
  --signal-normal-deep: #205046;

  --signal-watch: #E4A03A;          /* 8.2:1 on navy — never text on paper */
  --signal-watch-bright: #F2B75C;
  --signal-watch-deep: #8A5B12;     /* the on-paper amber */

  --signal-crit: #C1533E;
  --signal-crit-deep: #A83F2C;      /* 5.2:1 on paper */

  /* Back-compat aliases (used inline in a few pages) */
  --amber: var(--signal-watch);
  --teal: var(--signal-normal);
  --coral: var(--signal-crit);

  /* Rules */
  --line: rgba(21,36,48,0.13);
  --line-strong: rgba(21,36,48,0.26);
  --line-navy: rgba(236,235,228,0.15);
  --line-navy-strong: rgba(236,235,228,0.34);

  /* Elevation — tinted with ink, never pure black */
  --shadow-1: 0 1px 2px rgba(21,36,48,0.05);
  --shadow-2: 0 8px 24px -8px rgba(21,36,48,0.16), 0 2px 6px -2px rgba(21,36,48,0.07);

  /* Focus ring colour, re-declared per surface below */
  --focus: var(--ink);

  /* Motion. Nothing overshoots — no bounce, no spring. */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-mid: 260ms;
  --dur-slow: 620ms;

  --radius: 6px;
  --radius-sm: 4px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --max: 1120px;
}

/* =============================================================
   2. BASE
   ============================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Focus: ring colour flips per surface so it always clears 3:1.
   Amber on paper is only 1.8:1, so paper surfaces use ink. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.hero, .site-footer { --focus: var(--signal-watch); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--radius-sm); font-size: 14px; text-decoration: none; transition: top var(--dur-fast) var(--ease-out); }
.skip-link:focus { top: 16px; }

/* =============================================================
   3. MOTION PRIMITIVES
   Reveal targets are hidden only when JS is present (html.js),
   so the site is fully readable without scripting.
   ============================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================
   4. NAV
   ============================================================= */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(236,235,228,0.88); backdrop-filter: blur(10px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out); }
.site-nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-1); background: rgba(236,235,228,0.94); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.nav-mark { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
/* The mark's dot is the resting heartbeat — the smallest instance
   of the trace motif. Slow enough to read as ambient, not blinking. */
.nav-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-watch); flex: none; position: relative; }
.nav-mark .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--signal-watch); opacity: 0; animation: pulse-ring 3.2s var(--ease-out) infinite; }
@keyframes pulse-ring {
  0%   { transform: scale(0.6); opacity: 0; }
  18%  { opacity: 0.45; }
  60%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { position: relative; font-size: 14px; text-decoration: none; color: var(--ink-2); padding-bottom: 4px; transition: color var(--dur-fast) var(--ease-out); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--signal-watch); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-mid) var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); padding: 6px 8px; border-radius: var(--radius-sm); transition: background-color var(--dur-fast) var(--ease-out); }
.nav-toggle:hover { background: var(--paper-sunk); }

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 24px 32px; gap: 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid) var(--ease-out); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* =============================================================
   5. HERO
   ============================================================= */
.hero { background: var(--navy); color: var(--on-navy); padding: 96px 0 72px; position: relative; overflow: hidden; }
/* A faint vertical lift keeps the large navy field from going flat. */
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-raised) 0%, var(--navy) 58%, var(--navy-deep) 100%); }
.hero .wrap { position: relative; z-index: 2; }

.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-watch); margin-bottom: 20px; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.01em; max-width: 780px; margin-bottom: 22px; }
.hero p.lede { font-size: 18px; color: var(--on-navy-2); max-width: 600px; margin-bottom: 36px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================================
   6. BUTTONS
   ============================================================= */
.btn { font-family: var(--font-body); font-weight: 500; font-size: 14px; padding: 13px 24px; border-radius: var(--radius-sm); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.btn-primary { background: var(--signal-watch); color: var(--navy); }
.btn-primary:hover { background: var(--signal-watch-bright); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(228,160,58,0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border-color: var(--line-navy); color: var(--on-navy); background: transparent; }
.btn-ghost:hover { border-color: var(--line-navy-strong); background: rgba(236,235,228,0.06); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost.on-paper { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost.on-paper:hover { border-color: var(--ink); background: var(--paper-sunk); }

/* =============================================================
   7. SIGNAL TRACE — the signature motif
   Used at three scales: the hero waveform, the section divider,
   and the running flatline on pending/awaiting states.
   ============================================================= */
/* --- Hero signal monitor (index only) --- */
/* The instrument band. Sits behind hero copy, which keeps z-index 2. */
.signal-monitor { position: absolute; bottom: 0; left: 0; right: 0; height: clamp(150px, 21vh, 210px); z-index: 1; }
.hero.has-monitor { padding-bottom: clamp(174px, 24vh, 236px); }

.monitor-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
/* Canvas only takes over once the script confirms it can run, so a failed
   or blocked script leaves the static SVG in place rather than a void. */
.signal-monitor.is-live .monitor-canvas { display: block; }
.signal-monitor.is-live .signal-trace { display: none; }

.monitor-readout {
  position: absolute; right: 32px; bottom: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--on-navy-2);
  display: none; pointer-events: none;
  transition: color var(--dur-mid) var(--ease-out);
}
.signal-monitor.is-live .monitor-readout { display: block; }
/* Readout colour is the state, so the strip and the words never disagree. */
.signal-monitor.is-watch .monitor-readout { color: var(--signal-watch); }
.signal-monitor.is-crit .monitor-readout { color: var(--signal-crit); }

/* Transparent hit area. Carries the slider semantics and the focus ring so
   the argument is reachable by keyboard, not pointer-only. */
.monitor-control { position: absolute; inset: 0; z-index: 3; cursor: ew-resize; }
.monitor-control:focus-visible { outline: 2px solid var(--signal-watch); outline-offset: -3px; }

@media (max-width: 720px) {
  .monitor-readout { right: 24px; left: 24px; bottom: 14px; font-size: 11px; }
}

.signal-trace { position: absolute; bottom: 0; left: 0; right: 0; height: 130px; z-index: 1; }
.trace-baseline { stroke: var(--signal-normal-bright); stroke-width: 1; fill: none; opacity: 0.16; }
.trace-line { stroke: var(--signal-normal-bright); stroke-width: 1.5; fill: none; opacity: 0.62; stroke-linejoin: round; stroke-linecap: round; }
.trace-dot { fill: var(--signal-watch); }
.trace-dot-halo { fill: none; stroke: var(--signal-watch); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* Draw the waveform once on load, then leave it at rest.
   The drawn state is the element's own resting style and the dash is
   held only inside the keyframes with `backwards` fill. So if the
   animation is never allowed to run — backgrounded tab, print, an
   extension that strips animation — the trace is simply there, rather
   than stuck invisible waiting for a frame that never comes. */
@media (prefers-reduced-motion: no-preference) {
  .js .trace-line { animation: trace-draw 2.2s var(--ease-out) 0.25s backwards; }
  .js .trace-dot { animation: trace-dot-in 0.5s var(--ease-out) 1.9s backwards; }
  .js .trace-dot-halo { animation: trace-halo 3.4s var(--ease-out) 2.4s infinite; }
}
@keyframes trace-draw {
  from { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
  to   { stroke-dasharray: 1600; stroke-dashoffset: 0; }
}
@keyframes trace-dot-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes trace-halo {
  0%   { transform: scale(0.5); opacity: 0; }
  15%  { opacity: 0.5; }
  55%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* --- Section divider: a single QRS complex on a flatline --- */
.trace-divider { display: block; width: 100%; line-height: 0; color: var(--signal-normal); opacity: 0.4; }
.trace-divider svg { width: 100%; height: auto; }
.trace-divider .divider-path { stroke: currentColor; stroke-width: 1.25; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.trace-divider.on-navy { color: var(--signal-normal-bright); opacity: 0.34; }
@media (prefers-reduced-motion: no-preference) {
  .js .trace-divider.is-in .divider-path { animation: divider-draw 1.5s var(--ease-out) backwards; }
}
@keyframes divider-draw {
  from { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
  to   { stroke-dasharray: 1400; stroke-dashoffset: 0; }
}

/* --- Running flatline: the "awaiting signal" state --- */
.trace-rule {
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0 9 H70 l3.5 -6 l3.5 12 l3.5 -6 H120' fill='none' stroke='%232C6B5E' stroke-width='1.25' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 center;
  opacity: 0.45;
}
/* Same waveform in the bright teal, for navy surfaces. */
.trace-rule.on-navy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0 9 H70 l3.5 -6 l3.5 12 l3.5 -6 H120' fill='none' stroke='%235FAF9C' stroke-width='1.25' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .trace-rule { animation: trace-scroll 9s linear infinite; }
}
@keyframes trace-scroll { to { background-position: -120px center; } }

/* =============================================================
   8. STAT STRIP
   ============================================================= */
.stat-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.stat-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 0 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: var(--font-mono); font-size: 26px; color: var(--signal-normal); letter-spacing: -0.01em; }
.stat .label { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 720px) { .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 20px 0; } .stat:nth-child(3) { border-left: none; padding-left: 0; } }

/* =============================================================
   9. SECTIONS
   ============================================================= */
.section { padding: 84px 0; }
.section.tight { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--signal-normal); }
.section-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 32px; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 16px; }

/* =============================================================
   10. FRAMEWORK STEPS
   ============================================================= */
.framework-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.f-step { background: var(--paper-raised); padding: 30px 22px; position: relative; transition: background-color var(--dur-mid) var(--ease-out); }
/* Each step carries a short trace stub that extends on hover —
   the audit picking up signal. */
.f-step::after { content: ''; position: absolute; left: 22px; bottom: 0; height: 2px; width: 28px; background: var(--signal-crit); opacity: 0; transform: scaleX(0.4); transform-origin: left; transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out); }
.f-step:hover { background: #fff; }
.f-step:hover::after { opacity: 0.75; transform: scaleX(1); }
.f-step .step-num { font-family: var(--font-mono); font-size: 13px; color: var(--signal-crit-deep); margin-bottom: 16px; letter-spacing: 0.04em; }
.f-step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.f-step p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .framework-steps { grid-template-columns: 1fr; } }

/* =============================================================
   11. CARDS
   ============================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; } }

.card { position: relative; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); overflow: hidden; transition: border-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out); }
/* Signal bar wipes in from the left on hover. */
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--signal-normal); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-mid) var(--ease-out); }
a.card:hover, a.card:focus-visible { border-color: var(--signal-normal); box-shadow: var(--shadow-2); transform: translateY(-3px); }
a.card:hover::before, a.card:focus-visible::before { transform: scaleX(1); }
/* .card-meta is the domain-neutral form of .batch-tag — same eyebrow
   treatment, used for article dates, which aren't tied to a batch. */
.card .batch-tag, .card .card-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--signal-normal); }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.3; }
.card p { font-size: 14px; color: var(--ink-2); }
/* Class selectors outrank the UA [hidden] rule, so restate it. */
.card[hidden] { display: none; }

/* Pending = a monitor that is on but has no reading yet.
   No opacity dimming — that would drop text below AA. */
.card.pending { background: var(--paper-sunk); border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.card.pending .batch-tag, .card.pending .card-meta { color: var(--ink-3); }
.card.pending h3 { color: var(--ink-2); }
.card.pending::after { content: ''; display: block; margin-top: auto; height: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0 9 H70 l3.5 -6 l3.5 12 l3.5 -6 H120' fill='none' stroke='%232C6B5E' stroke-width='1.25' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: 0 center; opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .card.pending::after { animation: trace-scroll 9s linear infinite; }
}

/* Re-entry fade when the filter shows a card again. */
@media (prefers-reduced-motion: no-preference) {
  .card.is-filtering-in { animation: card-in var(--dur-mid) var(--ease-out) both; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =============================================================
   12. FILTER BAR
   ============================================================= */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chip { font-family: var(--font-mono); font-size: 13px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--paper-raised); cursor: pointer; color: var(--ink-2); transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.filter-chip:hover { color: var(--ink); border-color: var(--ink-3); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); margin-bottom: 24px; }

/* =============================================================
   13. FOOTER
   ============================================================= */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding: 52px 0; margin-top: 40px; position: relative; }
.site-footer .trace-rule { position: absolute; top: 0; left: 0; right: 0; opacity: 0.3; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer a { text-decoration: none; color: inherit; font-size: 14px; position: relative; padding-bottom: 2px; transition: color var(--dur-fast) var(--ease-out); }
.site-footer a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--signal-watch); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-mid) var(--ease-out); }
.site-footer a:hover { color: var(--on-navy); }
.site-footer a:hover::after { transform: scaleX(1); }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-blurb { font-size: 13px; max-width: 320px; margin-top: 12px; color: var(--on-navy-3); }
/* Full-width row below both footer columns. The .wrap is a wrapping
   flex row, so a 100% basis pushes this onto its own line. */
.footer-legal { flex: 0 0 100%; padding-top: 22px; border-top: 1px solid var(--line-navy); font-size: 13px; color: var(--on-navy-3); }

/* =============================================================
   14. FORMS
   ============================================================= */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-family: var(--font-mono); margin-bottom: 8px; color: var(--ink-2); }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px; background: var(--paper-raised); color: var(--ink); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.form-field input:hover, .form-field textarea:hover, .form-field select:hover { border-color: var(--ink-3); }
.form-field input:focus-visible, .form-field textarea:focus-visible, .form-field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form-note { font-size: 13px; color: var(--ink-2); margin-top: 16px; }

/* =============================================================
   15. PROSE
   ============================================================= */
.prose { max-width: 700px; }
.prose .byline { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); margin-bottom: 40px; }
.prose h2 { font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: -0.01em; margin: 40px 0 16px; }
.prose p { margin-bottom: 18px; color: var(--ink); }
.prose p.lede { font-size: 19px; color: var(--ink-2); }
.prose ul { margin: 0 0 18px 20px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; text-decoration-color: var(--signal-watch-deep); text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.prose a:hover { text-decoration-color: var(--ink); }

.source-list { list-style: none; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.source-list li { font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* =============================================================
   16. AUDIT PAGES
   Four-stage structure on a case study detail page. Declared after
   the prose block so these rules win on equal specificity.
   ============================================================= */
.audit-stages { list-style: none; counter-reset: stage; margin: 0; padding: 0; }
.audit-stage { counter-increment: stage; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.audit-stage:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.audit-stage h2 { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin: 0 0 10px; }
/* The stage number is the framework's own sequence, so it carries
   information rather than decorating the heading. */
.audit-stage h2::before { content: counter(stage, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--signal-crit-deep); margin-bottom: 9px; }
.audit-stage p { margin: 0; color: var(--ink); }
.audit-back { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
