/* PREDICT website — mobile first. Palette from the PREDICT poster (midnight / petrol / teal / gold). */

@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --midnight: #101D30;
  --petrol: #174B63;
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #F9F8F4;
  --text: #101D30;
  --muted: #586775;
  --faint: #8A96A1;
  --line: rgba(16, 29, 48, 0.10);
  --line-2: rgba(16, 29, 48, 0.18);
  --accent: #0E9A90;
  --accent-2: #0B7F77;
  --accent-soft: rgba(14, 154, 144, 0.10);
  --warn: #C4482B;
  --warn-soft: rgba(196, 72, 43, 0.09);
  --roach: #B07C12;
  --c-seer: #0E9A90;
  --c-ext: #174B63;
  --shadow: 0 1px 2px rgba(16, 29, 48, 0.04), 0 10px 30px -12px rgba(16, 29, 48, 0.16);
  --radius: 20px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Consolas", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1524;
    --surface: #122236;
    --surface-2: #0F1D2F;
    --text: #EEF0EC;
    --muted: #A3B2C0;
    --faint: #73879A;
    --line: rgba(242, 241, 236, 0.09);
    --line-2: rgba(242, 241, 236, 0.18);
    --accent: #34C3B6;
    --accent-2: #5BD3C7;
    --accent-soft: rgba(52, 195, 182, 0.12);
    --warn: #F07A5C;
    --warn-soft: rgba(240, 122, 92, 0.12);
    --roach: #D6A23A;
    --c-seer: #34C3B6;
    --c-ext: #A9E7E0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11" 1, "ss01" 1; overflow-x: hidden; }
h1, h2, h3, p, ul, dl, dd, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tnum, .r-number, .kpi b, .obs-grid b, .roach b, .ex-stats dd { font-variant-numeric: tabular-nums; }

/* ---------------- top bar ---------------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #F2F1EC; transition: background .3s ease, box-shadow .3s ease, color .3s ease; }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 750; letter-spacing: 0.08em; font-size: 15px; }
.brand-mark { width: 26px; height: 26px; color: #29B6AC; }
.topbar.scrolled .brand-mark { color: var(--accent); }
.nav { display: none; margin-left: auto; gap: 26px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.lang { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 28%, transparent); }
.lang button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .06em; cursor: pointer; opacity: .7; min-height: 30px; }
.lang button[aria-pressed="true"] { opacity: 1; color: var(--midnight); background: #F2F1EC; }
.topbar.scrolled .lang button[aria-pressed="true"] { color: var(--bg); background: var(--text); }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #1B3A55 0%, #101D30 52%, #0A1424 100%);
  color: #F2F1EC; padding: 84px 0 104px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { position: absolute; inset: -40px; opacity: .08;
  background-image: linear-gradient(#29B6AC 1px, transparent 1px), linear-gradient(90deg, #29B6AC 1px, transparent 1px);
  background-size: 34px 34px; animation: drift 30s linear infinite;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%); }
.hero-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 182, 172, .28), rgba(41, 182, 172, 0) 65%); animation: breathe 7s ease-in-out infinite; }
.iso { position: absolute; width: 560px; height: 560px; right: -230px; top: -60px; color: #29B6AC; opacity: .55; }
.iso-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sweep { position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(41, 182, 172, 0) 0deg, rgba(41, 182, 172, 0) 290deg, rgba(41, 182, 172, .22) 352deg, rgba(41, 182, 172, 0) 360deg);
  animation: spin 9s linear infinite; }
.iso-spin { transform-origin: 0 0; animation: spin 60s linear infinite; }
.iso-spin-rev { transform-origin: 0 0; animation: spin 40s linear infinite reverse; }
.iso-breathe { transform-origin: 0 0; animation: isoBreathe 6s ease-in-out infinite; }
.particles i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #29B6AC; opacity: 0;
  animation: rise 11s linear infinite; }
.particles i:nth-child(1) { left: 8%; animation-delay: 0s; }
.particles i:nth-child(2) { left: 18%; animation-delay: 3.2s; width: 2px; height: 2px; }
.particles i:nth-child(3) { left: 29%; animation-delay: 6.1s; }
.particles i:nth-child(4) { left: 41%; animation-delay: 1.4s; width: 2px; height: 2px; }
.particles i:nth-child(5) { left: 52%; animation-delay: 8.3s; }
.particles i:nth-child(6) { left: 61%; animation-delay: 4.6s; width: 4px; height: 4px; }
.particles i:nth-child(7) { left: 70%; animation-delay: 2.2s; }
.particles i:nth-child(8) { left: 78%; animation-delay: 7.1s; width: 2px; height: 2px; }
.particles i:nth-child(9) { left: 86%; animation-delay: 5.3s; }
.particles i:nth-child(10) { left: 93%; animation-delay: 9.4s; width: 2px; height: 2px; }
.particles i:nth-child(11) { left: 35%; animation-delay: 10.2s; width: 2px; height: 2px; }
.particles i:nth-child(12) { left: 66%; animation-delay: 0.8s; }

.hero-inner { position: relative; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9DD9D2; }
.hero-title { margin: 6px 0 8px; font-size: clamp(50px, 15vw, 100px); line-height: .92; font-weight: 800; letter-spacing: -0.035em; display: flex; }
.hero-title span { display: inline-block; background: linear-gradient(180deg, #FFFFFF 30%, #A9E7E0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(16px, 4.3vw, 21px); line-height: 1.35; font-weight: 550; color: #C9D4DE; max-width: 46ch; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: #7FE0D6; text-decoration: none; }
.hero-link svg { width: 16px; height: 16px; animation: nudge 2.2s ease-in-out infinite; }
.hero-link:hover { color: #A9E7E0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-soft { background: var(--accent-soft); color: var(--accent-2); }
.btn-soft:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.btn-text { background: none; color: var(--muted); padding: 0 12px; }
.btn-text:hover { color: var(--text); }


/* entrance animation */
.js .anim-in { opacity: 0; transform: translateY(14px); animation: fadeUp .9s var(--ease) forwards; }
.js .hero-lead { animation-delay: .45s !important; }
.js .hero-link { animation-delay: .6s !important; }
.js .hero-title span { opacity: 0; transform: translateY(40%) rotate(4deg); animation: letterIn .9s var(--ease) forwards; }
.hero-title span:nth-child(1) { animation-delay: .10s; } .hero-title span:nth-child(2) { animation-delay: .16s; }
.hero-title span:nth-child(3) { animation-delay: .22s; } .hero-title span:nth-child(4) { animation-delay: .28s; }
.hero-title span:nth-child(5) { animation-delay: .34s; } .hero-title span:nth-child(6) { animation-delay: .40s; }
.hero-title span:nth-child(7) { animation-delay: .46s; }

/* ---------------- sections ---------------- */
.section { padding: 64px 0; }
.sec-head { max-width: 760px; margin-bottom: 28px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.sec-head h2 { margin-top: 8px; font-size: clamp(26px, 6.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 760; }
.sec-lead { margin-top: 12px; color: var(--muted); font-size: clamp(15px, 3.9vw, 17px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- calculator ---------------- */
.calc { padding: 0 0 64px; }
.calc-grid { display: grid; gap: 18px; align-items: start; position: relative; z-index: 2; margin-top: -76px; }
.form-card { padding: 20px 18px 18px; display: grid; gap: 22px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; font-weight: 650; font-size: 14.5px; margin-bottom: 8px; }
.opt { font-weight: 500; font-size: 12px; color: var(--faint); margin-left: 4px; font-family: var(--mono); letter-spacing: .04em; }
.input { position: relative; display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s, background .2s; }
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.input.invalid { border-color: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.input input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; padding: 12px 4px 12px 14px; font-size: 18px; font-weight: 600; outline: none;
  -moz-appearance: textfield; appearance: textfield; }
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input input::placeholder { color: var(--faint); opacity: .38; font-weight: 400; }
.unit { padding-right: 12px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.err { min-height: 0; font-size: 12.5px; color: var(--warn); margin-top: 6px; }
.err:empty { display: none; }
.hint { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hint:empty { display: none; }
.hint.strong { font-size: 13.5px; color: var(--text); font-weight: 600; }
.hint.strong .gg { color: var(--accent-2); }

.gleason { display: flex; align-items: flex-end; gap: 10px; }
.seg-wrap { flex: 1; min-width: 0; }
.seg-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.plus { font-size: 22px; font-weight: 300; color: var(--faint); padding-bottom: 9px; }
.seg, .chips, .ex-seg { display: grid; gap: 6px; }
.seg { grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line-2); }
.chips { grid-template-columns: repeat(4, 1fr); }
.seg label, .chips label, .ex-seg label { position: relative; cursor: pointer; }
.seg input, .chips input, .ex-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 10px; font-size: 18px; font-weight: 700; color: var(--muted);
  transition: background .25s var(--ease), color .25s, transform .2s; }
.seg input:checked + span { background: var(--accent); color: #fff; box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.seg input:focus-visible + span, .chips input:focus-visible + span, .ex-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg label:active span, .chips label:active span { transform: scale(.94); }
.chips span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface-2);
  font-weight: 650; font-size: 15px; color: var(--muted); transition: background .25s, color .25s, border-color .25s, transform .2s; }
.chips input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.privacy svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent); }

/* result */
.result-card { padding: 22px 18px; position: relative; overflow: hidden; min-height: 280px; }
.result-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); transition: background .5s; }
.result-card.above::before { background: linear-gradient(90deg, var(--warn), color-mix(in srgb, var(--warn) 30%, transparent)); }
.result-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 8px; color: var(--muted); }
.empty-ring { width: 112px; height: 112px; color: var(--accent); margin-bottom: 14px; }
.empty-ring circle:first-child { transform-origin: 60px 60px; animation: spin 18s linear infinite; }
.empty-dot { transform-origin: 60px 60px; animation: pulse 2.4s ease-in-out infinite; }
.empty-title { font-weight: 700; color: var(--text); font-size: 17px; }
.empty-text { margin-top: 6px; font-size: 14px; max-width: 30ch; }
.result-body[hidden] { display: none; }
.result-body { animation: fadeUp .6s var(--ease); }
.r-label { font-weight: 650; font-size: 15px; display: flex; flex-direction: column; }
.r-label small { font-weight: 500; font-size: 13px; color: var(--muted); }
.r-number { margin-top: 2px; font-size: clamp(64px, 18vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; color: var(--accent); transition: color .5s; }
.result-card.above .r-number { color: var(--warn); }
.r-pct { font-size: .5em; letter-spacing: 0; margin-left: 2px; font-weight: 700; }

.meter { position: relative; margin: 26px 2px 8px; height: 46px; }
.meter-track { position: absolute; left: 0; right: 0; top: 16px; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #A6E3DC 0%, #3DBDB2 22.36%, #179C92 38.73%, #E9A23B 38.73%, #DE7442 44.72%, #C4482B 100%); }
.meter-threshold { position: absolute; left: 38.73%; top: 6px; height: 30px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; }
.meter-threshold span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; font-weight: 650;
  font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
.meter-marker { position: absolute; top: 9px; left: 0; width: 0; transition: left 1s var(--ease); }
.meter-marker i { position: absolute; left: -12px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent);
  box-shadow: 0 4px 12px -2px rgba(16, 29, 48, .35); transition: border-color .5s; }
.meter-marker i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); transition: background .5s; animation: pulse 2.4s ease-in-out infinite; }
.result-card.above .meter-marker i { border-color: var(--warn); }
.result-card.above .meter-marker i::after { background: var(--warn); }
.meter-ticks { position: absolute; left: 0; right: 0; top: 32px; height: 14px; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.meter-ticks span { position: absolute; transform: translateX(-50%); }
.meter-ticks .t0 { left: 0; transform: none; } .meter-ticks .t5 { left: 22.36%; } .meter-ticks .t10 { left: 31.62%; }
.meter-ticks .t15 { left: 38.73%; color: var(--text); font-weight: 500; } .meter-ticks .t20 { left: 44.72%; } .meter-ticks .t50 { left: 70.71%; }
.meter-ticks .t100 { right: 0; left: auto; transform: none; }

.verdict { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); transition: background .5s, color .5s; }
.verdict strong { display: block; font-size: 15px; color: var(--text); }
.verdict span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.v-icon { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.v-above { display: none; }
.result-card.above .verdict { background: var(--warn-soft); color: var(--warn); }
.result-card.above .v-above { display: block; }
.result-card.above .v-below { display: none; }

.observed { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.obs-title { font-size: 13.5px; font-weight: 650; }
.obs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.obs-grid div { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.obs-grid b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.obs-grid span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.obs-foot { margin-top: 8px; font-size: 12px; color: var(--faint); }

.roach { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.roach-name { font-weight: 650; font-size: 14px; color: var(--roach); }
.roach small { display: block; font-size: 12px; color: var(--muted); }
.roach b { font-size: 22px; font-weight: 750; color: var(--roach); }
.notes { margin-top: 12px; display: grid; gap: 6px; }
.notes li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }

.float-result { position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; text-decoration: none;
  background: var(--midnight); color: #F2F1EC; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55); font-size: 13px; letter-spacing: .08em; font-weight: 650;
  transition: transform .45s var(--ease); }
.float-result.show { transform: translate(-50%, 0); }
.float-result b { font-size: 18px; letter-spacing: -0.01em; color: #5BD3C7; font-variant-numeric: tabular-nums; }
.float-result.above b { color: #FF9F86; }
.float-result[hidden] { display: none; }

/* ---------------- the study ---------------- */
.work { background: linear-gradient(180deg, var(--bg), var(--surface-2) 30%, var(--bg)); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.kpi { padding: 18px 16px; }
.kpi b { display: block; font-size: clamp(28px, 8vw, 40px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.05; color: var(--accent); }
.kpi > span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }

.figure { padding: 20px 16px 16px; margin-bottom: 18px; }
.figure header h3 { font-size: clamp(19px, 4.8vw, 23px); line-height: 1.22; letter-spacing: -0.015em; font-weight: 720; }
.figure header p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-seer { background: var(--c-seer); }
.sw-ext { background: var(--c-ext); }
.sw-roach { background: var(--roach); border-radius: 50%; }
.chart { margin-top: 10px; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.fig-note { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.fig-callout { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 14.5px; }
.fig-callout b { color: var(--accent-2); }

/* svg chart parts */
.ax text, .lbl { fill: var(--muted); font-family: var(--sans); font-size: 12px; }
.ax line { stroke: var(--line); }
.ax .base { stroke: var(--line-2); }
.bar-seer { fill: var(--c-seer); }
.bar-ext { fill: var(--c-ext); }
.bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s var(--ease); }
.drawn .bar { transform: scaleY(1); }
.ci { stroke: var(--text); stroke-width: 1.3; opacity: 0; transition: opacity .6s ease .7s; }
.drawn .ci { opacity: .55; }
.val { fill: var(--text); font-family: var(--sans); font-size: 12.5px; font-weight: 700; opacity: 0; transition: opacity .6s ease .8s; }
.drawn .val { opacity: 1; }
.band-lbl { fill: var(--text); font-size: 12.5px; font-weight: 650; }
.row-lbl { fill: var(--text); font-size: 13px; font-weight: 600; }
.row-sub { fill: var(--faint); font-size: 11px; }
.f-ci { stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.drawn .f-ci { stroke-dashoffset: 0; }
.d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; } .d3 { transition-delay: .21s; } .d4 { transition-delay: .28s; }
.d5 { transition-delay: .35s; } .d6 { transition-delay: .42s; } .d7 { transition-delay: .49s; } .d8 { transition-delay: .56s; }
.d9 { transition-delay: .63s; } .d10 { transition-delay: .70s; } .d11 { transition-delay: .77s; }
.f-predict { stroke: var(--c-seer); }
.f-roach { stroke: var(--roach); }
.f-dot-predict { fill: var(--c-seer); }
.f-dot-roach { fill: var(--roach); }
.f-pt { opacity: 0; transition: opacity .4s ease; }
.drawn .f-pt { opacity: 1; }
.f-val { fill: var(--muted); font-size: 11.5px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.f-val.p { fill: var(--c-seer); font-weight: 700; }
.f-sum-bg { fill: var(--surface-2); }
.ref { stroke: var(--line-2); stroke-dasharray: 3 4; }

/* explorer */
.explorer { display: grid; gap: 14px; margin-top: 16px; }
.ex-panel { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.ex-head { display: flex; flex-direction: column; gap: 10px; }
.ex-name { font-weight: 750; font-size: 15px; letter-spacing: .02em; }
.ex-predict .ex-name { color: var(--accent); }
.ex-roach .ex-name { color: var(--roach); }
.ex-seg { grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.ex-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 36px; padding: 2px 6px; border-radius: 9px;
  font-size: 13px; font-weight: 650; color: var(--muted); line-height: 1.15; transition: background .25s, color .25s; }
.ex-predict .ex-seg input:checked + span { background: var(--accent); color: #fff; }
.ex-roach .ex-seg input:checked + span { background: var(--roach); color: #fff; }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 16px auto 4px; max-width: 250px; }
.waffle i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background .35s ease, border-color .35s ease, transform .35s var(--ease); }
.ex-predict .waffle i.on { background: var(--accent); border-color: var(--accent); }
.ex-roach .waffle i.on { background: var(--roach); border-color: var(--roach); }
.waffle i.on { transform: scale(1.06); }
.ex-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ex-stats div { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; text-align: center; }
.ex-stats dt { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.ex-stats dd { font-size: 22px; font-weight: 760; letter-spacing: -0.02em; }
.ex-predict dd { color: var(--accent); }
.ex-roach dd { color: var(--roach); }

/* methods */
.methods { display: grid; gap: 12px; margin-top: 30px; }
.m-card { padding: 18px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.m-num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.m-card h3 { margin-top: 6px; font-size: 17px; font-weight: 720; }
.m-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.conclusion { margin-top: 30px; padding: 24px 20px; border-radius: var(--radius); background: var(--midnight); color: #F2F1EC; position: relative; overflow: hidden; }
.conclusion::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%;
  border: 1px dashed rgba(41, 182, 172, .45); animation: spin 40s linear infinite; }
.conclusion p { position: relative; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.45; font-weight: 550; letter-spacing: -0.01em; }

/* authors + footer */
.authors { padding-top: 8px; }
.authors-card { padding: 22px 18px; display: grid; gap: 22px; }
.authors-list { margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.6; }
.affil { margin-top: 6px; font-size: 14px; color: var(--muted); font-style: italic; }
.logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logos img { height: 52px; width: auto; }
.logos img:first-child { height: 64px; }
@media (prefers-color-scheme: dark) {
  .logos { background: #F6F5F1; padding: 12px 16px; border-radius: 16px; justify-self: start; }
}
.footer { padding: 34px 0 calc(90px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.disclaimer { font-size: 13px; color: var(--muted); max-width: 900px; }
.foot-meta { margin-top: 12px; font-size: 12px; color: var(--faint); }

/* ---------------- larger screens ---------------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpis .kpi:nth-child(n) { grid-column: auto; }
  .figure { padding: 26px 26px 20px; }
  .form-card { padding: 26px 24px 22px; }
  .result-card { padding: 26px 24px; }
  .chips { grid-template-columns: repeat(8, 1fr); }
  .methods { grid-template-columns: 1fr 1fr; }
  .explorer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) and (min-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .lang { margin-left: 8px; }
  .hero { padding: 104px 0 118px; }
  .hero-inner { display: grid; grid-template-columns: auto 1fr; column-gap: 48px; align-items: end; }
  .hero-inner .eyebrow { grid-column: 1 / -1; }
  .hero-title { margin-bottom: 0; }
  .hero-lead { padding-bottom: 14px; }
  .hero-link { grid-column: 2; margin-top: 0; justify-self: start; }
  .calc { padding-bottom: 88px; }
  .calc-grid { margin-top: -84px; }
  .iso { width: 760px; height: 760px; right: -120px; top: -110px; opacity: .5; }
  .section { padding: 88px 0; }
  .calc-grid { grid-template-columns: 1.08fr .92fr; gap: 24px; }
  .result-card { position: sticky; top: 84px; }
  .methods { grid-template-columns: repeat(4, 1fr); }
  .authors-card { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 28px 30px; }
  .logos { justify-content: flex-end; }
  .float-result { display: none; }
}

/* ---------------- keyframes ---------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(34px, 34px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes isoBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .7; } 80% { opacity: .5; } 100% { transform: translateY(-560px); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes letterIn { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.72); opacity: .75; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .anim-in, .js .hero-title span { opacity: 1; transform: none; }
}
