/* ==========================================================================
   Fairness Auditor design system: "Blueprint 95"
   Eggshell graph paper, cool ink, Klein blue + acid-lime highlighter.
   90s computing (window chrome, pixel labels, LCD readouts, stickers) with modern spacing.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License 1.1): Unbounded, Space Grotesk, Space Mono, Silkscreen. Latin subset. */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/unbounded-600.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/unbounded-700.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/unbounded-800.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-mono-700.woff2") format("woff2"); }
@font-face { font-family: "Silkscreen"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/silkscreen-400.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  --paper-bg: #f3f1ea;        /* page: eggshell */
  --paper: #fbfaf6;           /* cards, inputs */
  --paper-2: #e9e6dc;         /* sunk panels */
  --ink: #101014;             /* text + chunky borders */
  --ink-2: #44454d;           /* secondary text (9.2:1) */
  --ink-3: #5d5e67;           /* tertiary text (6.1:1) */
  --hair: #d3cfc2;
  --grid: rgba(29, 51, 255, .07);
  --blue: #1d33ff;            /* Klein blue: primary (7.4:1 with white) */
  --blue-soft: #e1e5ff;
  --lime: #c8f031;            /* highlighter: backgrounds only, never text on light */
  --red: #d92a1c;             /* fail (4.9:1 on paper) */
  --red-soft: #fde1dc;
  --green: #127a45;           /* pass (5.4:1) */
  --green-soft: #d7f1e1;
  --amber: #8a5300;           /* dry run (5.9:1) */
  --amber-soft: #fbe8c4;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-pixel: "Silkscreen", ui-monospace, monospace;
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.1rem, 1.45rem + 3vw, 4.2rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --bw: 2px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 120ms; --t: 220ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper-bg);
  font: 400 var(--step-0)/1.6 var(--font-body);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 var(--s-4); font-weight: 800; overflow-wrap: break-word; }
h1 { font-size: var(--step-4); letter-spacing: -.035em; }
h2 { font-size: var(--step-3); letter-spacing: -.03em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 var(--s-4); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.mono, .score, code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--lime); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* highlighter: lime marker stroke behind a word */
.hl { background-image: linear-gradient(transparent 14%, var(--lime) 14% 90%, transparent 90%); background-repeat: no-repeat; background-size: 100% 100%;
  padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.motion .hl-anim { background-size: 0 100%; animation: hl 900ms 350ms var(--ease) forwards; }
@keyframes hl { to { background-size: 100% 100%; } }

/* kicker: pixel micro-label */
.kicker { font: 400 .7rem/1 var(--font-pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s-3); }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--lime); border: 1.5px solid var(--ink); flex: none; }
.on-dark .kicker, .kicker.on-dark { color: #c9cad1; }

/* ---------- 3. Chrome ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper-bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: var(--bw) solid var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 64px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 .98rem/1.1 var(--font-display); letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; border: var(--bw) solid var(--ink); background: var(--lime); display: grid; place-items: center; font: 400 .72rem/1 var(--font-pixel); box-shadow: 3px 3px 0 var(--ink); flex: none; }
.brand small { display: block; font: 400 .56rem/1.5 var(--font-pixel); color: var(--ink-3); letter-spacing: .06em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid transparent; }
.nav-links a:hover { border-color: var(--ink); background: var(--paper); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--lime); }
.nav .nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 100%; left: -16px; right: -16px; flex-direction: column; padding: 12px 16px 18px; background: var(--paper-bg); border-bottom: var(--bw) solid var(--ink); }
  .nav-links.open { display: flex; }
}

/* ticker: LCD band */
.ticker { background: var(--ink); color: var(--lime); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 48px; padding: 11px 0; animation: tick 40s linear infinite; font: 400 .74rem/1 var(--font-pixel); letter-spacing: .08em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; gap: 12px; align-items: center; }
.ticker-track b { color: #fff; font-weight: 400; }
.ticker-track i { font-style: normal; color: #8b8d99; }
@keyframes tick { to { transform: translateX(-50%); } }

.footer { margin-top: var(--s-9); background: var(--ink); color: #e9e8e2; }
.footer a { color: #fff; }
.footer .wrap { padding-block: var(--s-8) var(--s-6); }
.footer-big { font: 800 clamp(1.9rem, 1rem + 4.4vw, 5rem)/1.05 var(--font-display); letter-spacing: -.045em; margin: 0 0 var(--s-7); color: #fff; }
.footer-big em { font-style: normal; color: var(--ink); background: var(--lime); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--s-6); }
.footer-grid h4 { font: 400 .66rem/1 var(--font-pixel); letter-spacing: .08em; color: var(--lime); margin: 0 0 var(--s-3); text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-note { border-top: 1px solid #2b2c33; margin-top: var(--s-7); padding-top: var(--s-4); color: #a7a8b1; font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 4. Components ---------- */
.btn { --bg: var(--paper); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; min-height: 50px;
  border: var(--bw) solid var(--ink); background: var(--bg); color: var(--fg);
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; box-shadow: var(--shadow);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t) var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); color: var(--fg); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { --bg: var(--blue); --fg: #fff; }
.btn-lime { --bg: var(--lime); --fg: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn .arrow { transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* retro OS window: title bar with classic stripes */
.window { background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); position: relative; }
.window-bar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: var(--bw) solid var(--ink); background: var(--paper-2); font: 400 .64rem/1 var(--font-pixel); letter-spacing: .05em; }
.window-bar .stripes { flex: 1; height: 10px; background: repeating-linear-gradient(var(--ink) 0 1.5px, transparent 1.5px 3.5px); opacity: .5; }
.window-bar .box { width: 13px; height: 13px; border: 1.5px solid var(--ink); background: var(--paper); flex: none; }
.window-body { padding: var(--s-5); }
.window.blue .window-bar { background: var(--blue); color: #fff; }
.window.blue .window-bar .stripes { background: repeating-linear-gradient(#fff 0 1.5px, transparent 1.5px 3.5px); opacity: .6; }
.window.lime .window-bar { background: var(--lime); }
.window.dark { background: var(--ink); color: #e9e8e2; }
.window.dark .window-bar { background: #26272e; color: var(--lime); border-color: var(--ink); }
.window.dark .window-bar .stripes { background: repeating-linear-gradient(var(--lime) 0 1.5px, transparent 1.5px 3.5px); opacity: .35; }

.card { background: var(--paper); border: var(--bw) solid var(--ink); padding: var(--s-5); box-shadow: var(--shadow); position: relative; }
a.card, a.window { display: block; color: inherit; text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
a.card:hover, a.window:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
a.card:active, a.window:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.panel { background: var(--paper); border: 1.5px solid var(--ink); padding: var(--s-5); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1.5px solid var(--ink); background: var(--paper); font: 600 .78rem/1.2 var(--font-body); white-space: nowrap; }
.chip-dot::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.chip-verified { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.chip-dry { background: var(--amber-soft); color: var(--amber); border-color: var(--amber); }
.chip-plain { border-color: var(--hair); color: var(--ink-2); }

/* sticker: tilted 90s label */
.sticker { position: absolute; z-index: 3; padding: 7px 12px; border: var(--bw) solid var(--ink); font: 400 .64rem/1.1 var(--font-pixel); letter-spacing: .05em;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(var(--rot, -6deg)); transition: transform var(--t) var(--spring); background: var(--lime); color: var(--ink); white-space: nowrap; }
.sticker:hover { transform: rotate(calc(var(--rot, -6deg) * -1)) scale(1.06); }
.sticker.blue { background: var(--blue); color: #fff; } .sticker.white { background: var(--paper); }

.stamp { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 2.5px solid currentColor;
  font: 400 .74rem/1.1 var(--font-pixel); letter-spacing: .05em; text-transform: uppercase; transform: rotate(-3deg); background: var(--paper); white-space: nowrap; }
.stamp.PASS { color: var(--green); background: var(--green-soft); }
.stamp.FAIL { color: var(--red); background: var(--red-soft); }
.stamp.INCONCLUSIVE { color: var(--amber); background: var(--amber-soft); }

.stat .num { font: 800 var(--step-3)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--ink-2); font-size: var(--step--1); margin-top: 8px; }

/* tables */
.table-wrap { overflow-x: auto; border: var(--bw) solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.t th, .t td { padding: 11px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.t thead th { position: sticky; top: 0; background: var(--ink); color: var(--lime); font: 400 .6rem/1.4 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; }
.t tbody tr:last-child td, .t tbody tr:last-child th { border-bottom: 0; }
.t tbody tr:hover td { background: #f1f4e2; }
.t .sticky { position: sticky; left: 0; z-index: 1; }
.t tbody .sticky { background: var(--paper); }
.t tr.flag td { background: #fdeee9; }
.sel { color: var(--green); font-weight: 700; }
.rej { color: var(--red); font-weight: 700; }

.meter { height: 14px; border: 1.5px solid var(--ink); background: var(--paper-2); overflow: hidden; position: relative; }
.meter > i { display: block; height: 100%; background-color: var(--blue); transform-origin: left;
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,.25) 6px 8px); }
.meter.low > i { background-color: var(--red); }
.meter::after { content: ""; position: absolute; top: -1px; bottom: -1px; left: 80%; width: 2px; background: var(--ink); }

.empty { text-align: center; padding: var(--s-8) var(--s-5); border: var(--bw) dashed var(--ink-3); background: var(--paper); }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border: 1.5px solid var(--ink); background: var(--lime); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.notice a { color: var(--ink); }

/* ---------- 5. Sections ---------- */
.section { padding-block: var(--s-8); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.section-head p { max-width: 54ch; margin: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .hero-grid > *, .section-head > * { min-width: 0; }

/* hero */
.hero { padding-block: var(--s-8) var(--s-8); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); } }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }
.reassure { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); padding: 0; list-style: none; color: var(--ink-2); font: 400 .78rem/1.4 var(--font-mono); }
.reassure li::before { content: "■ "; color: var(--blue); }
.hero-visual { position: relative; padding: 22px 12px 22px 0; }
.hero-visual .s1 { top: 0; right: 22px; --rot: 5deg; }
.hero-visual .s2 { bottom: 0; left: -12px; --rot: -7deg; }
.hero-visual .s3 { top: 44%; right: -14px; --rot: 9deg; }
@media (max-width: 640px) { .hero-visual .s3 { display: none; } .hero-visual .s2 { left: 8px; } }

/* hero replay window */
.twin-name { font: 800 var(--step-2)/1.15 var(--font-display); letter-spacing: -.03em; min-height: 1.25em; }
.caret { display: inline-block; width: .5ch; background: var(--blue); animation: blink 1s steps(1) infinite; margin-left: 3px; }
@keyframes blink { 50% { opacity: 0; } }
.cv-lines { display: grid; gap: 7px; margin: var(--s-4) 0; }
.cv-lines i { height: 7px; background: var(--paper-2); display: block; }
.cv-lines i:nth-child(2) { width: 84%; } .cv-lines i:nth-child(3) { width: 61%; } .cv-lines i:nth-child(4) { width: 72%; }
.twin-row { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-3); align-items: center; padding: 10px 0; border-top: 1.5px dashed var(--hair); }
.badge { font: 400 .58rem/1 var(--font-pixel); padding: 6px 8px; border: 1.5px solid currentColor; min-width: 92px; text-align: center; letter-spacing: .04em; }
.badge.ok { color: var(--green); background: var(--green-soft); } .badge.no { color: var(--red); background: var(--red-soft); }
.flash { animation: flash 460ms var(--ease); }
@keyframes flash { 0% { background: var(--lime); } 100% { background: transparent; } }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: var(--bw) solid var(--ink); box-shadow: var(--shadow); background: var(--paper); }
.compare > div { padding: var(--s-5) var(--s-5) var(--s-6); }
.compare > div + div { border-left: var(--bw) solid var(--ink); background: var(--blue); color: #fff; }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.compare li { display: flex; gap: 10px; }
.compare > div:first-child li::before { content: "✕"; color: var(--red); font-weight: 700; }
.compare > div + div li::before { content: "✓"; color: var(--lime); font-weight: 700; }
.compare h3 { font-size: var(--step-1); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: var(--bw) solid var(--ink); } }

/* pipeline: steps joined by marching connectors, lit one after another */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.pipe { counter-increment: s; position: relative; }
.pipe .num { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: var(--s-4); font: 400 .9rem/1 var(--font-pixel);
  border: var(--bw) solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); transition: background var(--t), transform var(--t) var(--spring); }
.pipe .num::before { content: "0" counter(s); }
.pipe:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: calc(-1 * var(--s-6) + 6px);
  height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); animation: march 700ms linear infinite; }
@keyframes march { to { background-position: 14px 0; } }
.pipe.lit .num { background: var(--lime); transform: translateY(-4px) rotate(-4deg); }
.pipe h3 { margin-bottom: 8px; }
@media (max-width: 960px) { .pipeline { grid-template-columns: 1fr 1fr; } .pipe:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } .pipe::after { display: none; } }

/* stats strip */
.statstrip { border-bottom: var(--bw) solid var(--ink); background: var(--paper); }
.statstrip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.statstrip .stat { padding: var(--s-6) var(--s-5); border-left: var(--bw) solid var(--ink); }
.statstrip .stat:last-child { border-right: var(--bw) solid var(--ink); }
.statstrip .stat:nth-child(4) .num { background: var(--lime); display: inline-block; padding: 0 .1em; }
@media (max-width: 860px) {
  .statstrip-grid { grid-template-columns: 1fr 1fr; }
  .statstrip .stat { border-bottom: var(--bw) solid var(--ink); padding: var(--s-5) var(--s-4); }
  .statstrip .stat:nth-child(2n) { border-right: var(--bw) solid var(--ink); }
  .statstrip .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Kane terminal + evidence */
.kane-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: var(--s-6); align-items: start; }
@media (max-width: 960px) { .kane-grid { grid-template-columns: 1fr; } }
.kane-grid > * { min-width: 0; } /* the command chip scrolls instead of widening the page on phones */
.kane-grid > * { min-width: 0; }
.term-window { box-shadow: 8px 8px 0 var(--blue); }
.term { margin: 0; padding: var(--s-5); font: 400 .8rem/1.75 var(--font-mono); color: #d9dae0; overflow-x: auto; min-height: 420px; }
.term .tl { display: block; white-space: pre; }
.term .cmd::before { content: "$ "; color: var(--lime); }
.term .cmd { color: #fff; }
.term .dim { color: #8b8d99; }
.term .ok { color: #7ee2a8; } .term .ok::before { content: "✓ "; }
.term .no { color: #ff8f84; } .term .no::before { content: "✗ "; }
.term .verdict { color: var(--ink); background: var(--lime); display: inline-block; padding: 0 6px; margin-top: 6px; }
.term .out { color: #fff; }
.motion .term.typing .tl { visibility: hidden; }
.motion .term.typing .tl.shown { visibility: visible; animation: termin 160ms steps(3) both; }
@keyframes termin { from { opacity: 0; } }
.term-cap { padding: 0 var(--s-5) var(--s-4); font: 400 .6rem/1.4 var(--font-pixel); color: #8b8d99; letter-spacing: .04em; }
.evidence { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.ev-list { list-style: none; margin: 0; padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-4); }
.ev-list li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.ev-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; background: var(--lime); border: 1.5px solid var(--ink); }
.ev-list span { color: var(--ink-2); font-size: var(--step--1); }
.copy-chip { display: flex; align-items: center; gap: var(--s-3); border: var(--bw) solid var(--ink); background: var(--ink); color: #fff; padding: 8px 8px 8px 14px; box-shadow: var(--shadow); }
.copy-chip code { flex: 1; min-width: 0; font-size: .78rem; overflow-x: auto; white-space: nowrap; }
.copy-chip .btn { flex: none; box-shadow: none; border-color: var(--lime); }
.works { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }


/* live audit runner */
.live-progress { height: 10px; border: 1.5px solid var(--ink); background: var(--paper-2); margin-top: 18px; overflow: hidden; }
.live-progress > i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 300ms var(--ease); }
.live-term { background: var(--ink); color: #d9dae0; margin-top: 12px; min-height: 0; max-height: 420px; overflow: auto; border: var(--bw) solid var(--ink); }
.kane-live { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--hair); }
.kane-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kane-form .input { width: auto; padding: 9px 12px; }
.kane-status { margin-top: 14px; padding: 10px 14px; border: 1.5px solid var(--ink); background: var(--paper, transparent); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kane-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hair); flex: none; }
.kane-status .dot.run { background: var(--blue); animation: kpulse 1s ease-in-out infinite; }
.kane-status .dot.ok { background: var(--green); }
.kane-status .dot.bad { background: var(--red, #d33); }
@keyframes kpulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .kane-status .dot.run { animation: none; } }
#live-btn[aria-busy="true"] { cursor: progress; opacity: .85; }


/* "Try it yourself" product tiles with mini previews in each tool's own style */
.toolcard { padding: 0; overflow: hidden; display: flex !important; flex-direction: column; }
.toolcard-body { padding: var(--s-5); }
.toolcard h3 { display: flex; align-items: center; gap: 8px; }
.toolcard .go-arrow { transition: transform var(--t) var(--spring); }
.toolcard:hover .go-arrow { transform: translate(3px, -3px) rotate(8deg); }
.toolcard .open { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .9rem; border-bottom: 2px solid var(--lime); }
.mock { height: 170px; border-bottom: var(--bw) solid var(--ink); position: relative; overflow: hidden; transition: transform .5s var(--ease); }
.toolcard:hover .mock > * { transform: translateY(-3px); }
.mock > * { transition: transform .4s var(--spring); }
/* TalentScreen: dark AI */
.mock-talentscreen { background: radial-gradient(200px 120px at 20% 0%, #6d4aff66, transparent), radial-gradient(200px 120px at 90% 10%, #2be4b44d, transparent), #0b0b12; color: #f1f1f7; }
.mock-talentscreen .m-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font: 700 10px system-ui; }
.mock-talentscreen .m-logo { width: 14px; height: 14px; border-radius: 4px; background: conic-gradient(#6d4aff, #2be4b4, #ff5fa2, #6d4aff); }
.mock-talentscreen .m-top span { flex: 1; height: 6px; border-radius: 4px; background: #ffffff14; }
.mock-talentscreen .m-top b { color: #2be4b4; font-weight: 700; }
.mock-talentscreen .m-body { display: flex; gap: 16px; align-items: center; padding: 4px 16px; }
.mock-talentscreen .m-ring { width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(#6d4aff 0 63%, #ffffff14 63% 100%); display: grid; place-items: center; flex: none; }
.mock-talentscreen .m-ring span { width: 64px; height: 64px; border-radius: 50%; background: #0b0b12; display: grid; place-items: center; font: 800 22px system-ui; }
.mock-talentscreen .m-rows { flex: 1; display: grid; gap: 7px; }
.mock-talentscreen .m-rows i { display: block; height: 8px; border-radius: 5px; background: #ffffff18; } .mock-talentscreen .m-rows i:nth-child(2) { width: 70%; } .mock-talentscreen .m-rows i:nth-child(3) { width: 85%; }
.mock-talentscreen .m-rows em { font: 800 9px system-ui; letter-spacing: .08em; color: #37e6b4; border: 1px solid #37e6b466; border-radius: 99px; padding: 3px 8px; justify-self: start; font-style: normal; }
/* HireLens: enterprise ATS */
.mock-hirelens { background: #f3f5f9; display: flex; }
.mock-hirelens .m-side { width: 52px; background: linear-gradient(180deg, #0f2a4a, #0b2140); padding: 14px 10px; display: grid; align-content: start; gap: 8px; }
.mock-hirelens .m-side i { display: block; height: 7px; border-radius: 4px; background: #ffffff33; } .mock-hirelens .m-side i:first-child { background: #fff; width: 70%; }
.mock-hirelens .m-main { flex: 1; padding: 14px; }
.mock-hirelens .m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; }
.mock-hirelens .m-cols > div { background: #e5eaf1; border-radius: 8px; padding: 8px; display: grid; align-content: start; gap: 6px; }
.mock-hirelens .m-cols b { font: 700 8px system-ui; letter-spacing: .06em; color: #5a6778; }
.mock-hirelens .m-cols i { display: block; height: 34px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px #14202f22; position: relative; }
.mock-hirelens .m-cols i::after { content: ""; position: absolute; left: 8px; right: 30%; bottom: 8px; height: 4px; border-radius: 3px; background: #0b7a53; }
.mock-hirelens .m-cols > div:last-child i::after { background: #d9772f; right: 55%; }
/* QuickMatch: playful consumer */
.mock-quickmatch { background: radial-gradient(160px 120px at 0% 0%, #ffc38f, transparent), radial-gradient(160px 120px at 100% 100%, #ffd6e0, transparent), #fff7ec; padding: 14px 18px; }
.mock-quickmatch .m-steps { height: 7px; border-radius: 99px; background: #f6e6cf; overflow: hidden; } .mock-quickmatch .m-steps i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff8a1f, #ff6f91); }
.mock-quickmatch .m-card { margin: 12px auto 0; width: 70%; background: #fffdf9; border: 2px solid #f0dfc8; border-radius: 16px; text-align: center; padding: 10px; }
.mock-quickmatch .m-gauge { width: 70px; height: 35px; margin: 0 auto; border-radius: 70px 70px 0 0; background: conic-gradient(from 270deg at 50% 100%, #ff6f91, #ff8a1f 25%, #1f7a40 50%, transparent 50%); -webkit-mask: radial-gradient(circle at 50% 100%, transparent 22px, #000 23px); mask: radial-gradient(circle at 50% 100%, transparent 22px, #000 23px); }
.mock-quickmatch strong { display: block; font: 900 18px "Trebuchet MS", sans-serif; color: #2a1d12; }
.mock-quickmatch em { display: inline-block; font: 800 9px "Trebuchet MS", sans-serif; color: #1f7a40; background: #dff5e6; padding: 3px 9px; border-radius: 99px; font-style: normal; }

/* ---------- 6. Twin Lab ---------- */
.lab { display: grid; grid-template-columns: .85fr 1.15fr; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg); background: var(--paper); }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } }
.lab-left { border-right: var(--bw) solid var(--ink); display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 900px) { .lab-left { border-right: 0; border-bottom: var(--bw) solid var(--ink); } }
.lab-cv { margin: 0; padding: var(--s-5); font: 400 .76rem/1.6 var(--font-mono); white-space: pre-wrap; color: var(--ink-2); max-height: 380px; overflow: auto; flex: 1; }
.lab-cv mark { color: var(--ink); background: var(--lime); font-weight: 700; padding: 0 3px; }
.lab-right { padding: var(--s-5); min-width: 0; }
.lab-cand { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.lab-cand output { font: 400 .74rem/1 var(--font-pixel); padding: 10px 12px; border: 1.5px solid var(--ink); background: var(--paper-2); min-width: 110px; text-align: center; }
.names-label { font: 400 .6rem/1.3 var(--font-pixel); color: var(--ink-3); margin: var(--s-5) 0 8px; letter-spacing: .05em; }
.names { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 560px) { .names { grid-template-columns: repeat(2, 1fr); } }
.name-chip { padding: 9px 9px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 .86rem/1.2 var(--font-body); text-align: left; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t), box-shadow var(--t-fast); box-shadow: 2px 2px 0 var(--ink); }
.name-chip small { display: block; font: 400 .54rem/1.3 var(--font-pixel); color: var(--ink-3); margin-top: 4px; letter-spacing: .03em; }
.name-chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.name-chip[aria-pressed="true"] { background: var(--ink); color: var(--lime); box-shadow: none; transform: translate(2px, 2px); }
.name-chip[aria-pressed="true"] small { color: #b4b6c0; }
.name-chip.ph { border-style: dashed; }
.lab-tools { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.tool-row { display: grid; grid-template-columns: 128px 1fr 62px 100px; gap: 6px var(--s-3); align-items: center; }
@media (max-width: 560px) { .tool-row { grid-template-columns: 1fr auto auto; } .tool-row .bar { grid-column: 1 / -1; order: 4; } .tool-row .swing { order: 5; grid-column: 1 / -1; } }
.tool-row .tname { font-weight: 700; line-height: 1.15; } .tool-row .tname small { display: block; font: 400 .54rem/1.5 var(--font-pixel); color: var(--ink-3); }
.tool-row .val { font-family: var(--font-mono); text-align: right; }
.bar { height: 24px; border: 1.5px solid var(--ink); background: var(--paper-2); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: 0; background-color: var(--ink-3); transition: width 650ms var(--spring), background-color var(--t);
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.28) 7px 9px); }
.bar.no > i { background-color: var(--red); } .bar.ok > i { background-color: var(--green); }
.bar .cut { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--ink); z-index: 1; box-shadow: 0 0 0 1px var(--paper); }
.swing { font: 400 .72rem/1.4 var(--font-mono); color: var(--ink-3); grid-column: 2 / -1; }
.swing b { color: var(--ink); }
.swing.big b { background: var(--lime); padding: 0 4px; }
.lab-foot { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1.5px dashed var(--hair); }

/* twin strips (results page): one pixel cell per CV */
.strips { display: grid; gap: 6px; }
.strip { display: grid; grid-template-columns: 64px repeat(var(--n, 8), minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.strip .lbl { font: 400 .6rem/1 var(--font-pixel); align-self: center; color: var(--ink-2); }
.cell { height: 32px; border: 1.5px solid var(--ink); position: relative; background: var(--paper-2); overflow: hidden; }
.cell > i { position: absolute; left: 0; right: 0; bottom: 0; min-height: 5px; background: var(--red); transform-origin: bottom; }
.cell.ok > i { background: var(--green); }
.cell.ph { border-style: dashed; }
.strip-head { font: 400 .52rem/1.25 var(--font-pixel); color: var(--ink-3); text-align: center; align-self: end; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--step--1); color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--ink); margin-right: 6px; vertical-align: -2px; }
.legend .l-ok::before { background: var(--green); } .legend .l-no::before { background: var(--red); } .legend .l-ph::before { border-style: dashed; }

/* figures */
.figure { border-left: 4px solid var(--lime); padding-left: var(--s-4); }
.figure .num { font: 800 var(--step-3)/1 var(--font-display); letter-spacing: -.04em; }

/* prose */
.prose h2 { font-size: var(--step-2); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-5); }
.prose p, .prose li { color: #24252b; max-width: 70ch; }
.prose li { margin-bottom: 6px; }
.toc { position: sticky; top: 88px; display: grid; gap: 2px; align-self: start; }
.toc a { display: block; padding: 6px 10px; color: var(--ink-2); text-decoration: none; border: 1.5px solid transparent; }
.toc a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.with-toc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--s-7); }
@media (max-width: 860px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- 7. Motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

.motion .reveal { opacity: 0; transform: translateY(18px); }
.motion .reveal.in { opacity: 1; transform: none; animation: reveal 520ms steps(6, end) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.stamp.in { animation: stamp 480ms var(--spring) both; }
@keyframes stamp { from { transform: scale(1.7) rotate(-14deg); opacity: 0; } to { transform: rotate(-3deg); opacity: 1; } }
.meter.in > i { animation: grow 900ms var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.strips.in .cell > i { animation: rise 600ms var(--ease) both; animation-delay: calc(var(--d, 0) * 16ms); }
@keyframes rise { from { transform: scaleY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .motion .reveal { opacity: 1; transform: none; }
  .motion .hl-anim { background-size: 100% 100%; }
  .ticker-track { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print { .nav, .footer, .ticker { display: none; } body { background: #fff; } .card, .window, .table-wrap { box-shadow: none; } }

/* test CV downloads */
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cv-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--fg); text-decoration: none; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.cv-file:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.cv-file.twin { background: var(--lime); color: #111; }
.cv-file .ext { font-family: var(--font-pixel); font-size: .72rem; padding: 6px 7px; border: 1.5px solid currentColor; flex: none; }
.cv-file b { display: block; font-size: .95rem; }
.cv-file small { display: block; opacity: .75; font-size: .8rem; }
.cv-file .dl { margin-left: auto; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .cv-file { transition: none; } .cv-file:hover { transform: none; } }

/* ---------- 8. Twin your CV ---------- */
.yc-hero { padding-bottom: var(--s-6); }
.yc-hero h1 { max-width: 18ch; }
.yc-input { box-shadow: var(--shadow-lg); }
.yc-text { width: 100%; margin-top: 10px; padding: 14px; border: var(--bw) solid var(--ink); background: #fff; color: var(--ink);
  font: 400 .85rem/1.6 var(--font-mono); resize: vertical; min-height: 220px; }
.yc-text:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.yc-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.yc-file { position: relative; cursor: pointer; }
.yc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.yc-file:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.yc-privacy { margin: 16px 0 0; padding: 10px 14px; border-left: 4px solid var(--lime); background: var(--paper-2); color: var(--ink-2); }
.yc-error { margin: 12px 0 0; padding: 10px 14px; border: 1.5px solid var(--red); background: var(--red-soft); color: var(--red); font-weight: 600; }
.yc-stage { margin-top: var(--s-7); scroll-margin-top: 90px; }
.yc-now { min-height: 96px; }
.yc-now .twin-name { margin-top: 6px; }
.yc-tag { min-height: 1.4em; font-family: var(--font-mono); }
.yc-count { margin-top: 6px; min-height: 1.4em; font-family: var(--font-mono); }
.yc-cv { max-height: 460px; }
.yc-board { display: grid; gap: 4px; margin-top: var(--s-5); overflow-x: auto; }
.yc-board-row { display: grid; grid-template-columns: 96px repeat(var(--n, 9), minmax(38px, 1fr)); gap: 4px; align-items: center; min-width: 470px; }
.yc-board-head span { font: 400 .5rem/1.2 var(--font-pixel); color: var(--ink-3); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-board-tool { font: 700 .76rem/1.1 var(--font-body); }
.yc-cell { height: 30px; border: 1.5px dashed var(--hair); display: grid; place-items: center; font: 700 .66rem/1 var(--font-mono); color: transparent; }
.yc-cell.in { border-style: solid; border-color: var(--ink); animation: cellpop 380ms var(--spring) both; }
.yc-cell.ok { background: var(--green-soft); color: var(--green); }
.yc-cell.no { background: var(--red-soft); color: var(--red); }
.yc-cell.na { background: var(--paper-2); color: var(--ink-3); }
@keyframes cellpop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.yc-results { margin-top: var(--s-7); scroll-margin-top: 90px; }
.yc-headline { font-size: var(--step-3); max-width: 24ch; }
.yc-sample-note { padding: 10px 14px; border: 1.5px solid var(--green); background: var(--green-soft); color: var(--ink); max-width: 72ch; }
.yc-verdict .stamp { opacity: 0; }
.yc-verdict .stamp.in { opacity: 1; }
.yc-explore { margin-top: var(--s-6); }
.yc-explore .names { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.yc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-6); }
.yc-notes { margin-top: var(--s-6); border: 1.5px solid var(--ink); background: var(--paper); padding: 12px 16px; }
.yc-notes summary { cursor: pointer; font-weight: 700; }
.yc-notes li { margin: 8px 0; color: var(--ink-2); }
[hidden] { display: none !important; }

/* small phones: long chips and stamps wrap instead of widening the page */
/* long chips and stamps wrap inside their card instead of widening the page (seen at 1024px and on phones) */
.chip, .stamp { max-width: 100%; white-space: normal; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 420px) { .stamp { padding: 5px 8px; letter-spacing: 0; gap: 5px; } }
