/* =========================================================================
   RASK-bias — editorial audit theme
   ========================================================================= */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-var-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --card: #fffdf7;
  --ink: #15160f;
  --ink-2: #3c3d35;
  --muted: #62635a;
  --faint: #8f8d81;
  --line: #ded7c6;
  --line-2: #cdc4af;
  --bias: #c2452a;
  --bias-ink: #8f2f1c;
  --bias-soft: #f2dcd4;
  --fair: #0e6b58;
  --fair-soft: #d6e8e0;
  --gold: #a97b2f;
  --ink-band: #14150f;
  --cream: #f2eee2;
  --cream-muted: #a9a79a;

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', 'Segoe UI', Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --wrap: 1200px;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(21, 22, 15, .04), 0 18px 40px -32px rgba(21, 22, 15, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--bias); }
code { font-family: var(--mono); font-size: .86em; background: rgba(21, 22, 15, .06); padding: .12em .38em; border-radius: 4px; }
em { font-style: italic; }
strong { font-weight: 600; }
::selection { background: #f5c9ba; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -100px; left: 16px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
  font-size: 14px; transition: top .2s;
}
.skip:focus { top: 12px; }

.mono-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
  font-weight: 500;
}

/* --------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(18, 19, 15, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(242, 238, 226, .1);
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled { background: rgba(18, 19, 15, .94); border-color: rgba(242, 238, 226, .16); }
.nav-inner {
  width: min(100% - 48px, var(--wrap)); margin-inline: auto;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bias); box-shadow: 0 0 0 4px rgba(194, 69, 42, .18);
}
.brand-word {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--cream);
  margin: 0; font-weight: 600;
}
.brand-dot { color: var(--bias); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--cream-muted); text-decoration: none; font-size: 14px;
  padding: 7px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--cream); background: rgba(242, 238, 226, .08); }
.nav-links .nav-cta { color: var(--ink); background: var(--cream); font-weight: 500; }
.nav-links .nav-cta:hover { background: #fff; color: var(--ink); }
.nav-links .nav-gh { font-family: var(--mono); font-size: 12px; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-band); color: var(--cream);
  padding: 140px 0 96px;
}
.hero-glow {
  position: absolute; width: 900px; height: 900px; right: -260px; top: -340px;
  background: radial-gradient(circle, rgba(194, 69, 42, .22), rgba(194, 69, 42, 0) 62%);
  filter: blur(6px); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(242, 238, 226, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 226, .045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 70% 10%, #000 10%, transparent 68%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream-muted); margin: 0 0 26px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--bias);
  box-shadow: 0 0 0 0 rgba(194, 69, 42, .7); animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 69, 42, .55); }
  70% { box-shadow: 0 0 0 9px rgba(194, 69, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 69, 42, 0); }
}
h1 {
  font-family: var(--serif); font-weight: 400; margin: 0 0 28px;
  font-size: clamp(42px, 5.6vw, 78px); line-height: .98; letter-spacing: -.015em;
}
h1 em { color: #e8b9a8; font-style: italic; }
.lede {
  font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.62; color: #d7d3c6;
  max-width: 62ch; margin: 0 0 34px;
}
.lede strong { color: var(--cream); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 54px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1;
  padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bias); color: #fff8f4; }
.btn-primary:hover { background: #d1502f; }
.btn-ghost { border-color: rgba(242, 238, 226, .24); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: rgba(242, 238, 226, .5); background: rgba(242, 238, 226, .06); }
.btn-small { font-size: 13px; padding: 9px 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 8px; }
.btn-small:hover { border-color: var(--ink-2); }
.btn-block { width: 100%; border-radius: 10px; padding: 15px 18px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 0; border-top: 1px solid rgba(242, 238, 226, .16); padding-top: 22px;
}
.hero-stats > div { padding-right: 18px; }
.hero-stats > div + div { border-left: 1px solid rgba(242, 238, 226, .12); padding-left: 18px; }
.hero-stats dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-muted); margin-bottom: 6px;
}
.hero-stats dd { margin: 0; font-family: var(--mono); font-size: 21px; color: var(--cream); letter-spacing: -.02em; }
.strike { color: var(--cream-muted); text-decoration: line-through; text-decoration-thickness: 1px; font-size: 18px; }
.arrow { color: var(--cream-muted); font-size: 14px; }
.now { color: #7fd0bb; }

/* exhibit card */
.exhibit {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius); padding: 24px 24px 20px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(21, 22, 15, .06);
  transform: rotate(-.35deg);
}
.exhibit-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; row-gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.exhibit-head .mono-label { margin: 0; }
.exhibit-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin: 16px 0 16px; letter-spacing: -.01em; }
.exhibit-legend { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-bottom: 18px; }
.exhibit-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.sw-bias { background: var(--bias); }
.sw-fair { background: var(--fair); }
.exhibit-thr { margin-left: auto; color: var(--faint); }
.exhibit-foot { font-size: 12px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin: 16px 0 0; }

/* hero mini-chart */
.hero-chart-head {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: var(--faint);
  text-transform: uppercase; margin-bottom: 6px;
}
.hero-chart-head b { color: var(--ink-2); font-weight: 500; text-transform: none; letter-spacing: 0; }
.hero-rows { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr); gap: 12px 12px; align-items: start; margin-top: 8px; }
.hero-col-head { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.hero-row { display: contents; }
.hero-region { font-size: 12px; font-weight: 600; color: var(--ink); padding-top: 1px; }
.hero-region span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.hero-cell { display: flex; flex-direction: column; gap: 5px; }
.hero-track { position: relative; height: 15px; background: #eee8db; border-radius: 3px; }
.hero-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.bar-b { background: linear-gradient(90deg, #b13d24, var(--bias)); opacity: .92; }
.bar-f { background: linear-gradient(90deg, #0c5c4c, var(--fair)); opacity: .92; }
.hero-thr { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1px dashed rgba(21, 22, 15, .55); }
.hero-val { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.hero-val em { font-style: normal; font-size: 8.5px; letter-spacing: .08em; padding: 1px 4px; border-radius: 3px; }
.v-pass em { color: var(--fair); background: var(--fair-soft); }
.v-fail em { color: var(--bias-ink); background: var(--bias-soft); }
.hero-gap {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap;
  margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}
.hero-gap b { color: var(--ink); font-weight: 500; }
.hero-gap span { font-size: 9px; color: var(--faint); letter-spacing: .04em; }

.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- sections */
.band { padding: 104px 0; border-bottom: 1px solid var(--line); }
.band-alt { background: var(--paper-2); }
.band-ink { background: var(--ink-band); color: var(--cream); border-bottom: none; }
.band-ink .section-lede { color: #c9c5b6; }
.band-ink .mono-label { color: #8f8d7f; }

.section-head { max-width: 860px; margin-bottom: 56px; }
.section-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}
.section-kicker span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 10px; color: var(--ink);
}
.band-ink .section-kicker { color: var(--cream-muted); }
.band-ink .section-kicker span { border-color: rgba(242, 238, 226, .25); color: var(--cream); }
h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em;
  font-size: clamp(32px, 4.2vw, 54px); line-height: 1.02; margin: 0 0 20px;
}
h2 em { color: var(--bias-ink); }
.band-ink h2 em { color: #e8b9a8; }
.section-lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 72ch; }
.section-lede a { color: var(--bias-ink); }
.section-note { max-width: 72ch; margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); border-left: 2px solid var(--bias); padding-left: 14px; }
.section-note strong { color: var(--ink-2); font-weight: 600; }

/* ------------------------------------------------------------- method cards */
.method-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.method { padding: 26px 28px 24px 0; }
.method + .method { border-left: 1px solid var(--line); padding-left: 28px; }
.method h3 { font-size: 19px; margin: 0 0 10px; font-weight: 600; letter-spacing: -.01em; }
.method p { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.method .method-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bias-ink); margin: 0; }

/* ------------------------------------------------------------------ panels */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h3 { font-size: 21px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.toggle { display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: 999px; border: 1px solid var(--line); }
.toggle-btn {
  font: 500 12.5px/1 var(--sans); letter-spacing: .01em; color: var(--muted); background: none;
  border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.toggle-btn.is-on { background: var(--ink); color: var(--cream); }

.chart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.chart-cell { border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 8px; background: linear-gradient(180deg, #fffefa, #fbf8f0); }
.chart-cell h4 { font-size: 13px; margin: 0 0 10px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.chart-cell h4 span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 400; }

.chart-foot { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.legend-bias, .legend-fair { display: inline-block; margin-left: 10px; white-space: nowrap; }
.legend-bias { color: var(--bias-ink); }
.legend-fair { color: var(--fair); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }

svg text { font-family: var(--mono); }
.bar-bias { fill: var(--bias); }
.bar-fair { fill: var(--fair); }
.bar-neutral { fill: var(--line-2); }
#pass-chart rect[data-series], #pass-chart text[data-series] { transition: opacity .3s; }
#pass-chart[data-method="biased"] [data-series="1"] { opacity: .18; }
#pass-chart[data-method="leace"] [data-series="0"] { opacity: .18; }
.axis-line { stroke: var(--line); stroke-width: 1; }
.grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.axis-label { fill: var(--faint); font-size: 9.5px; letter-spacing: .04em; }
.value-label { fill: var(--ink); font-size: 10.5px; font-weight: 500; }
.ref-label { fill: var(--fair); font-size: 9px; }

/* -------------------------------------------------------------- pull quote */
.pullquote { margin: 56px 0; border-left: 3px solid var(--bias); padding: 6px 0 6px 30px; }
.pullquote blockquote {
  font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.16;
  margin: 0 0 12px; letter-spacing: -.01em; color: var(--ink); max-width: 30ch;
}
.pullquote blockquote strong { font-weight: 400; color: var(--bias-ink); }
.pullquote figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* ------------------------------------------------------------------- table */
.table-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table thead th { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: #faf7ef; }
.data-table tbody th { font-weight: 600; font-size: 15px; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.cell-pair { display: flex; gap: 6px; flex-wrap: wrap; }
.cell-pair span { font-family: var(--mono); font-size: 11.5px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; color: var(--ink-2); }
.num { font-family: var(--mono); font-size: 13px; }
.num.bad { color: var(--bias-ink); font-weight: 600; }
.pill { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid; }
.pill-bad { color: var(--bias-ink); border-color: #e3b7aa; background: var(--bias-soft); }
.pill-ok { color: var(--fair); border-color: #b3d3c7; background: var(--fair-soft); }
.table-note { margin: 0; padding: 14px 20px 18px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: #faf7ef; }

/* ----------------------------------------------------------------- insights */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.insight { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.insight h3 { font-size: 16px; margin: 0 0 10px; font-weight: 600; }
.insight p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* ----------------------------------------------------------------- pipeline */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 0 44px; padding: 0; counter-reset: step; border-top: 1px solid var(--line-2); }
.step { position: relative; padding: 26px 20px 0 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.step:last-child { border-right: 0; padding-right: 0; }
.step::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.step-num { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--faint); }
.step h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; margin: 6px 0 2px; letter-spacing: -.01em; }
.step-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--bias-ink); margin: 0 0 12px; }
.step p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; padding-right: 12px; }
.step .step-stat { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.step h3 + .step-sub + p { margin-bottom: 14px; }
.step .step-stat strong { font-family: var(--mono); color: var(--ink); font-weight: 500; }

.spec-row { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.spec { padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.spec + .spec { border-left: 1px solid var(--line); }
.spec .mono-label { margin: 0; }
.spec strong { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.spec span:last-child { font-size: 12px; color: var(--muted); }

/* -------------------------------------------------------------------- leace */
.leace-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.formula-card { background: rgba(242, 238, 226, .04); border: 1px solid rgba(242, 238, 226, .14); border-radius: var(--radius); padding: 30px; }
.formula { display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: clamp(14px, 1.5vw, 17px); color: #ded9c9; margin-bottom: 22px; }
.f-line { display: block; }
.f-final { color: var(--cream); border-top: 1px solid rgba(242, 238, 226, .16); padding-top: 14px; font-size: clamp(15px, 1.7vw, 20px); }
.f-final sub { color: #e8b9a8; }
.formula-note { font-size: 13.5px; line-height: 1.6; color: #b8b4a5; margin: 0; }
.formula-note .mono { color: #e8e4d6; }

.leace-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(242, 238, 226, .14); border: 1px solid rgba(242, 238, 226, .14); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--ink-band); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.fact-k { font-family: var(--mono); font-size: clamp(20px, 2vw, 25px); color: #7fd0bb; letter-spacing: -.02em; }
.fact:nth-child(4) .fact-k { font-size: clamp(16px, 1.6vw, 21px); }
.fact-v { font-size: 12.5px; line-height: 1.5; color: #a9a79a; }

.honest { margin-top: 52px; border-top: 1px solid rgba(242, 238, 226, .16); padding-top: 28px; max-width: 900px; }
.honest p:last-child { font-size: 16px; line-height: 1.65; color: #cdc9ba; margin: 0; }
.honest em { color: var(--cream); }

/* ---------------------------------------------------------------------- lab */
.lab { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.lab-controls { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.lab-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.lab-tab { font: 500 13px/1 var(--sans); padding: 9px 8px; border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; }
.lab-tab.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 22, 15, .08); }
.lab-pane { display: flex; flex-direction: column; gap: 12px; }
.lab-pane.is-hidden { display: none; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.select, .textarea {
  width: 100%; font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: #fffefa; border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 12px;
}
.select:focus, .textarea:focus { outline: 2px solid rgba(194, 69, 42, .35); outline-offset: 1px; border-color: var(--bias); }
.textarea { font-family: var(--mono); font-size: 12px; line-height: 1.6; resize: vertical; min-height: 150px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hint { font-size: 11.5px; color: var(--faint); line-height: 1.5; margin: 0; }
.detect { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 10.5px; min-height: 22px; }
.detect span { border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 3px 8px; color: var(--ink-2); }
.detect span.warn { border-color: #e3b7aa; background: var(--bias-soft); color: var(--bias-ink); }

.model-status { display: flex; flex-direction: column; gap: 8px; }
.model-status.is-hidden { display: none; }
.progress { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--bias); transition: width .25s; }

.lab-results { min-height: 520px; }
.result-empty {
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px 32px;
  background: #fbf8f0; color: var(--muted); font-size: 14.5px; line-height: 1.6;
}
.result-empty p:last-child { margin: 0; max-width: 54ch; }

.verdict { display: flex; align-items: flex-start; gap: 14px; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; border: 1px solid; }
.verdict-bad { background: var(--bias-soft); border-color: #e3b7aa; }
.verdict-ok { background: var(--fair-soft); border-color: #b3d3c7; }
.verdict h3 { margin: 0 0 3px; font-size: 16px; font-weight: 600; }
.verdict p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.verdict .badge { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.verdict-bad .badge { background: var(--bias); color: #fff; }
.verdict-ok .badge { background: var(--fair); color: #fff; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.model-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.model-card header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.model-card header h4 { margin: 0; font-size: 14px; font-weight: 600; }
.model-card header .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.model-card .big { padding: 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.score-val { font-family: var(--mono); font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.score-val small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.decision { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 5px 9px; border-radius: 5px; border: 1px solid; }
.decision.pass { color: var(--fair); border-color: #b3d3c7; background: var(--fair-soft); }
.decision.fail { color: var(--bias-ink); border-color: #e3b7aa; background: var(--bias-soft); }

.twin-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
.twin-table th, .twin-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.twin-table thead th { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.twin-table tbody th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 10.5px; }
.twin-table td { position: relative; }
.twin-table td .fill { position: absolute; left: 0; top: 0; bottom: 0; opacity: .16; }
.twin-table td.pass .fill { background: var(--fair); }
.twin-table td.fail .fill { background: var(--bias); }
.twin-table td .v { position: relative; }
.twin-table td .d { position: relative; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.twin-table td.pass .d { background: var(--fair); }
.twin-table td.fail .d { background: var(--bias); }
.twin-table tr:last-child th, .twin-table tr:last-child td { border-bottom: 0; }
.model-card footer { padding: 10px 16px; font-family: var(--mono); font-size: 10px; color: var(--faint); border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.model-card footer .flip { color: var(--bias-ink); }
.model-card footer .ok { color: var(--fair); }

.lab-explain { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fbf8f0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }.lab-explain strong { color: var(--ink); }
.lab-explain .mono { font-size: 12px; }
.lab-explain h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; font-weight: 500; }
.lab-explain p { margin: 0 0 8px; }
.lab-explain p:last-child { margin: 0; }
.lab-foot { margin: 28px 0 0; font-size: 13px; color: var(--muted); max-width: 92ch; line-height: 1.6; }

/* field-wide view inside the lab */
.lab-field { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 16px 18px; }
.lab-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.lab-field-head h4 { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.lab-field-head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.lab-field-head strong { color: var(--fair); }
.field-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.field-cell { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; background: #fffefa; }
.field-cell.is-current { border-color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-2); }
.field-title { font-size: 11.5px; font-weight: 500; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.field-loc { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.field-tags { display: flex; gap: 4px; margin-top: 6px; }
.ft { font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 5px; border-radius: 3px; font-style: normal; border: 1px solid; }
.ft-flip { color: var(--bias-ink); border-color: #e3b7aa; background: var(--bias-soft); }
.ft-ok { color: var(--fair); border-color: #b3d3c7; background: var(--fair-soft); }
.field-legend { display: flex; gap: 14px; margin: 10px 0 0; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------- data */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel-wide { grid-column: 1 / -1; }
.cue-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 56px; }
.cue-list li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.cue-list li > span:first-child { flex: 0 0 auto; }
.cue-list .bar-wrap { flex: 1; height: 5px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-left: auto; max-width: 150px; }
.cue-list .bar-wrap i { display: block; height: 100%; background: var(--ink-2); }
.cue-list .mono { font-size: 11.5px; color: var(--ink); }

/* stat lists (education, countries) */
.stat-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.stat-row { display: grid; grid-template-columns: minmax(84px, .9fr) 1.4fr 42px; align-items: center; gap: 10px; }
.stat-name { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-bar { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.stat-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink-2); }
.stat-val { text-align: right; font-size: 11px; color: var(--ink); }
.stat-row:first-child .stat-bar i { background: var(--ink); }
@media (max-width: 520px) {
  .stat-row { grid-template-columns: 78px 1fr 38px; }
  .stat-name { font-size: 12px; }
}

/* category bars */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 28px; margin-top: 12px; }
.cat-row { display: grid; grid-template-columns: 150px minmax(40px, 1fr) 30px; align-items: center; gap: 8px; font-size: 11.5px; }
.cat-name { color: var(--ink-2); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-bar { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.cat-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 99px; }
.cat-n { text-align: right; font-size: 10.5px; color: var(--faint); }
@media (max-width: 820px) { .cat-grid { grid-template-columns: 1fr 1fr; } .cue-list { grid-template-columns: 1fr; } .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- limits */
.limits-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.limits-list { margin: 0; padding: 0; list-style: none; counter-reset: l; display: flex; flex-direction: column; }
.limits-list li { position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); counter-increment: l; }
.limits-list li::before {
  content: counter(l, decimal-leading-zero); position: absolute; left: 0; top: 18px;
  font-family: var(--mono); font-size: 10px; color: var(--faint);
}
.limits-list strong { color: var(--ink); font-weight: 600; }
.card-ink { background: var(--ink-band); color: var(--cream); border-radius: var(--radius); padding: 26px; }
.card-ink .mono-label { color: #8f8d7f; }
.card-ink pre { margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 11.5px; line-height: 1.85; color: #ddd8c8; }
.card-ink pre .c { color: #7f8a7a; }
.repro-foot { font-size: 11px; color: #8f8d7f; margin: 18px 0 0; border-top: 1px solid rgba(242, 238, 226, .14); padding-top: 12px; }
.repro-foot .mono { color: #b9b5a6; }

.refs { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; }
.refs ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.refs li { margin-bottom: 4px; }

/* ------------------------------------------------------------------- footer */
.footer { background: var(--ink-band); color: var(--cream); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(242, 238, 226, .12); }
.footer .brand-word { font-size: 15px; margin: 0 0 14px; }
.footer-note { font-size: 13.5px; color: #a9a79a; max-width: 48ch; line-height: 1.6; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer-links a { color: #d7d3c6; text-decoration: none; border-bottom: 1px solid rgba(242, 238, 226, .2); padding-bottom: 2px; }
.footer-links a:hover { color: #fff; border-color: var(--bias); }
.footer-fine { padding-top: 20px; }
.footer-fine p { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: #77766b; }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .exhibit { transform: none; max-width: 560px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 16px 22px 0; }
  .step:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 20px; }
  .spec-row { grid-template-columns: repeat(3, 1fr); }
  .spec:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .spec:nth-child(5) { border-top: 1px solid var(--line); }
  .leace-grid { grid-template-columns: 1fr; gap: 28px; }
  .lab { grid-template-columns: 1fr; }
  .lab-controls { position: static; }
}
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta):not(.nav-gh) { display: none; }
  .band { padding: 72px 0; }
  .hero { padding: 118px 0 72px; }
  .chart-grid { grid-template-columns: 1fr; }
  .split, .insight-grid, .data-grid, .limits-grid, .method-row { grid-template-columns: 1fr; }
  .method { padding-right: 0; }
  .method + .method { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .compare { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .hero-stats > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(242,238,226,.12); padding-top: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .pipeline { grid-template-columns: 1fr; }
  .step:nth-child(2n) { border-left: 0; padding-left: 0; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .spec + .spec { border-left: 0; border-top: 1px solid var(--line); }
  .exhibit { padding: 20px; }
  .pullquote blockquote { max-width: none; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .nav-inner { width: calc(100% - 32px); }
  .hero-stats dd { font-size: 18px; }
  .twin-table th, .twin-table td { padding: 6px 6px; }
  .model-card .big { padding: 12px; }
  .score-val { font-size: 26px; }
}
