/* Layout: white ground, one red. The map fills the first screen edge to edge with the headline set low on its left;
   below it, quiet sections on a 1120px measure separated by hairlines. Single theme by choice. */
:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #fafafa; --raise: #ffffff; --ink: #0b0b0c; --soft: #3d3f45; --muted: #6d7078; --faint: #a2a5ac;
  --line: rgba(11, 11, 12, 0.08); --line-2: rgba(11, 11, 12, 0.14);
  --red: #f0142a; --red-deep: #c40d20; --red-soft: rgba(240, 20, 42, 0.08);
  --gold: #0b0b0c; --gold-soft: rgba(11, 11, 12, 0.06); --blue: #f0142a; --blue-soft: rgba(240, 20, 42, 0.08); --amber-soft: rgba(11, 11, 12, 0.04);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gut-l: max(24px, env(safe-area-inset-left, 0px)); --gut-r: max(24px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h3 { letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: 0.86em; }
::selection { background: rgba(240, 20, 42, 0.18); }
.wrap { max-width: 1168px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand svg { color: var(--red); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 14px; }
.nav a:not(.btn) { color: var(--muted); transition: color .15s; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--red); color: #fff; font: 500 14.5px var(--sans); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .15s, border-color .15s; }
.btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-sm { height: 34px; padding: 0 13px; border-radius: 8px; font-family: var(--mono); font-size: 12.5px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
@media (max-width: 720px) { .nav a:nth-child(2), .nav a:nth-child(4) { display: none; } }
@media (max-width: 520px) { .nav a:not(.btn) { display: none; } .nav .btn { white-space: nowrap; } }

/* hero */
.hero { position: relative; height: clamp(640px, calc(100vh - 61px), 1040px); overflow: hidden; background: radial-gradient(70% 70% at 70% 48%, rgba(240, 20, 42, 0.07) 0%, rgba(240, 20, 42, 0.02) 45%, var(--bg) 75%); border-bottom: 1px solid var(--line); }
#graph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.2s ease; }
.hero.is-ready #graph { opacity: 1; }
#graph.is-drag { cursor: grabbing; } #graph.is-hit { cursor: pointer; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.7) 28%, rgba(255, 255, 255, 0) 54%), linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255, 0) 20%); }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lab { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; will-change: transform, opacity; font-family: var(--sans); background: none; border: 0; padding: 4px 8px; color: var(--ink); cursor: pointer; text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 2px #fff; }
.lab-core { font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); cursor: default; }
.lab-area { font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; transition: background .2s, color .2s; }
.lab-area::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.lab-area:hover, .lab-area.is-on { background: rgba(11, 11, 12, 0.06); }
.lab-area.is-on { font-size: 17px; }
.lab-sub { font-size: 12px; color: var(--soft); border-radius: 999px; }
.lab-sub:hover { background: rgba(11, 11, 12, 0.06); color: var(--ink); }
.ring { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); pointer-events: none; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(84px, 13vh, 132px); pointer-events: none; }
.hero-copy, .hero-shade { transition: opacity .6s var(--ease); }
.hero.is-focus .hero-copy { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; } .hero.is-focus .hero-shade { opacity: .35; }
.focus-bar { position: absolute; left: var(--gut-l); top: 22px; display: flex; align-items: center; gap: 14px; opacity: 0; visibility: hidden; transition: opacity .4s; font-size: 15px; color: var(--soft); z-index: 3; }
.hero.is-focus .focus-bar { opacity: 1; visibility: visible; }
.btn-back { height: 36px; padding: 0 14px; font-size: 13.5px; }
.hero-copy > * { pointer-events: auto; max-width: min(560px, 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 12.5px var(--mono); color: var(--soft); letter-spacing: 0.01em; margin-bottom: 22px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(240, 20, 42, 0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(240, 20, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 20, 42, 0); } }
.hero h1 { max-width: min(760px, 100%); font-size: clamp(40px, 5.4vw, 76px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--red); }
.lede { color: var(--soft); font-size: 18px; line-height: 1.55; margin: 24px 0 30px; max-width: 54ch; }
.hero .lede { max-width: min(470px, 100%); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; max-width: min(720px, 100%) !important; }
.copy { display: flex; align-items: center; min-width: 0; max-width: 100%; height: 44px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; backdrop-filter: blur(8px); }
.copy-prompt { padding-left: 14px; color: var(--red); font-family: var(--mono); }
.copy code { flex: 1; min-width: 0; padding: 0 12px 0 10px; overflow-x: auto; white-space: nowrap; font-size: 13px; color: var(--ink); scrollbar-width: none; }
.copy-btn { align-self: stretch; border: 0; border-left: 1px solid var(--line-2); background: transparent; color: var(--soft); font: 500 13px var(--sans); padding: 0 15px; cursor: pointer; transition: background .15s, color .15s; }
.copy-btn:hover { background: var(--red-soft); color: var(--red); }
.hero-tools { position: absolute; left: var(--gut-l); right: var(--gut-r); bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.hero-tools > * { pointer-events: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-hint { color: var(--faint); transition: opacity .5s; } .legend-hint.is-off { opacity: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-open { background: var(--red); } .dot-ok { background: var(--ink); }
.zoom { display: flex; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; backdrop-filter: blur(8px); }
.zoom button { border: 0; background: transparent; color: var(--soft); font: 500 13px var(--sans); min-width: 38px; height: 36px; padding: 0 12px; cursor: pointer; }
.zoom button + button { border-left: 1px solid var(--line); } .zoom button:hover { background: var(--surface); color: var(--ink); }
.tip { position: absolute; z-index: 5; max-width: 320px; pointer-events: none; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.35; backdrop-filter: blur(10px); box-shadow: 0 12px 40px rgba(11, 11, 12, 0.14); }
.tip b { display: block; font-weight: 500; } .tip span { color: var(--muted); font-size: 12px; }
.hero.no-gl::after { content: "Your browser cannot draw the map. The full list is under Problems."; position: absolute; right: var(--gut-r); top: 40%; color: var(--muted); max-width: 30ch; }
@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(90% 50% at 50% 28%, rgba(240, 20, 42, 0.07) 0%, var(--bg) 75%); }
  #graph, .labels, .hero-shade { height: min(112vw, 560px); bottom: auto; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255, 0) 30%); }
  .hero-copy { position: relative; bottom: auto; width: 100%; min-width: 0; margin-top: min(100vw, 500px); padding-bottom: 20px; }
  .hero-copy > * { max-width: 100%; } .cta .copy { width: 100%; }
  .focus-bar { top: 12px; flex-wrap: wrap; }
  .hero-tools { position: relative; left: auto; right: auto; bottom: auto; padding: 0 var(--gut-r) 22px var(--gut-l); }
  .legend-hint { display: none !important; }
  .lab-area { font-size: 12px; } .lab-core { font-size: 11px; }
}

/* numbers */
.strip { border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip-in > div { padding: 30px 24px 30px 0; }
.strip-in > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.strip b { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.strip span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .strip-in { grid-template-columns: repeat(2, 1fr); } .strip-in > div { padding: 20px 16px 20px 0; border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); } .strip-in > div:nth-child(-n+2) { border-top: 0; } }

/* sections */
.sec { padding-block: clamp(72px, 10vw, 128px) 0; }
.sec:last-of-type { padding-bottom: clamp(72px, 10vw, 128px); }
.kicker { font: 400 12.5px var(--mono); color: var(--red); letter-spacing: 0.02em; margin-bottom: 18px; }
.sec h2 { font-size: clamp(30px, 4.2vw, 52px); max-width: 20ch; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.steps li { padding: 28px 26px 32px; min-width: 0; }
.steps li + li { border-left: 1px solid var(--line); }
.step-n { font: 500 12px var(--mono); color: var(--red); }
.steps h3 { font-size: 19px; margin: 44px 0 10px; }
.steps p, .sources p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.steps code { color: var(--ink); background: rgba(11, 11, 12, 0.06); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li:nth-child(3) { border-left: 0; } .steps li:nth-child(n+3) { border-top: 1px solid var(--line); } .steps h3 { margin-top: 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li + li { border-left: 0; border-top: 1px solid var(--line); } }
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 56px; }
.sources article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .2s, transform .2s var(--ease); }
.sources article:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sources h3 { font-size: 20px; }
.sources a { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--ink); }
.sources a, .sec-head a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 5px; } .sources a:hover, .sec-head a:hover { color: var(--red); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.two > div { min-width: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; }
.sec-head h3 { font-size: 20px; } .sec-head a { font-size: 14px; color: var(--soft); white-space: nowrap; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.rows a:first-child { min-width: 0; flex: 1; }
.r-title { display: block; font-weight: 450; line-height: 1.35; color: var(--ink); transition: color .15s; }
.rows a:hover .r-title { color: var(--red); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.r-meta { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.rows time { color: var(--faint); font: 400 12.5px var(--mono); white-space: nowrap; }
.band { border: 1px solid var(--line); border-radius: 20px; padding: clamp(36px, 6vw, 72px); background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.band p { color: rgba(255, 255, 255, 0.6); } .band h2, .band h3 { color: #fff; } .band .copy { margin-top: 14px; width: min(520px, 100%); }
.band-sm { margin-top: 48px; padding: 32px; } .band-sm h3 { font-size: 20px; }

.badge { display: inline-flex; align-items: center; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--soft); }
.badge-open { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.badge-ok { background: var(--ink); color: #fff; border-color: transparent; }
.badge-warn { background: var(--amber-soft); color: var(--soft); border-color: var(--line-2); }
.badge-quiet { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* inner pages */
.page { padding-block: clamp(48px, 7vw, 88px) 120px; }
.page h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 22ch; }
.page > h2 { margin-top: 56px; font-size: 22px; letter-spacing: -0.02em; }
.page .lede { margin-bottom: 0; }
.crumbs, .meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; } .crumbs span { margin: 0 8px; color: var(--faint); }
.crumbs a:hover, .meta a:hover, .origin a:hover { color: var(--ink); } .meta a, .origin a, .prose a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.byline { font-size: 17px; color: var(--soft); margin: 18px 0 8px; }
.paper h1 { font-size: clamp(28px, 3.6vw, 44px); max-width: 26ch; line-height: 1.08; }
.origin { color: var(--faint); font-size: 13px; margin-top: 22px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; } details summary:hover { color: var(--ink); }
.abstract p { max-width: 72ch; color: var(--muted); font-size: 15px; margin-top: 10px; }
.problem { scroll-margin-top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-top: 18px; min-width: 0; }
.problem.is-focus { border-color: var(--red); }
.problem-head { display: flex; flex-direction: column; gap: 12px; }
.problem h3 { font-size: 19px; font-weight: 500; }
.pid { display: block; font: 400 12.5px var(--mono); color: var(--faint); letter-spacing: 0; margin-bottom: 6px; }
.statement { margin-top: 18px; max-width: 74ch; overflow-wrap: anywhere; color: var(--soft); font-size: 16px; line-height: 1.7; }
.statement p { margin: 0 0 12px; } .statement strong { color: var(--ink); font-weight: 500; }
.statement .katex { color: var(--ink); } .statement .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.outcome { margin-top: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--soft); }
.outcome strong { color: var(--ink); font-size: 15.5px; font-weight: 500; } .outcome .links { display: flex; gap: 16px; margin-top: 4px; } .outcome a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.lean { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f6f6f7; }
.lean-head { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--muted); } .lean-head a:hover { color: var(--ink); }
.lean pre, .source pre { margin: 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.8px; line-height: 1.6; color: var(--soft); max-height: 340px; overflow: auto; }
.source { margin-top: 14px; } .source pre { margin-top: 10px; background: #f6f6f7; border: 1px solid var(--line); border-radius: 12px; }
.take { margin-top: 20px; } .take-label { display: block; font: 400 12px var(--mono); color: var(--faint); margin-bottom: 8px; } .take .copy { width: min(560px, 100%); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 10px; align-items: center; }
.filters input[type=search], .filters select { font: 14.5px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; height: 42px; padding: 0 12px; min-width: 0; max-width: 100%; }
.filters input[type=search] { flex: 1 1 280px; } .filters input::placeholder { color: var(--faint); }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--red); }
.check { font-size: 14px; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; }
.count { color: var(--faint); font: 400 12.5px var(--mono); margin: 14px 0 6px; }
.rows-cat li { align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 44%; }
.chip { font: 400 12px var(--mono); border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 7px; color: var(--muted); white-space: nowrap; transition: color .15s, border-color .15s; }
.chip:hover { color: var(--ink); border-color: var(--faint); }
.chip.is-ok { background: var(--ink); color: #fff; border-color: transparent; }
.more { margin-top: 24px; }
.table-scroll { overflow-x: auto; margin-top: 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.board { border-collapse: collapse; width: 100%; min-width: 620px; }
.board th { text-align: left; font: 400 12px var(--mono); color: var(--faint); }
.board th, .board td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.board tr:last-child td { border-bottom: 0; }
.board .num { font-variant-numeric: tabular-nums; text-align: right; width: 1%; white-space: nowrap; }
.board strong { font-weight: 500; } .board .sub { display: block; color: var(--muted); font-size: 13px; }
.board .chip { display: inline-block; margin: 0 2px 6px 0; }
.prose { max-width: 800px; } .prose h2 { margin-top: 56px; margin-bottom: 14px; font-size: 24px; letter-spacing: -0.025em; }
.prose p, .prose li { color: var(--soft); } .prose p + p { margin-top: 14px; } .prose strong { color: var(--ink); font-weight: 500; }
.prose li { margin: 10px 0; } .prose .copy { margin: 16px 0; width: min(520px, 100%); }
.prose code { background: rgba(11, 11, 12, 0.06); padding: 1px 5px; border-radius: 4px; }
.defs { list-style: none; padding: 0; } .defs li { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; } .defs .badge { margin-right: 10px; }

/* side panel */
.panel { position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(11, 11, 12, 0.12); overflow-y: auto; padding: calc(26px + env(safe-area-inset-top, 0px)) max(26px, env(safe-area-inset-right, 0px)) 48px 26px; animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.panel-close { position: sticky; top: 0; float: right; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font-size: 19px; line-height: 1; cursor: pointer; }
.panel h2 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; margin-top: 4px; padding-right: 48px; }
.panel .problem { padding: 20px; background: var(--surface); }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in { padding-block: 48px 64px; display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 32px; }
.foot p { margin-top: 14px; max-width: 46ch; font-size: 13.5px; line-height: 1.55; } .foot p a { color: var(--soft); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; } .foot nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.band .copy { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); } .band .copy code { color: #fff; } .band .copy-btn { color: rgba(255,255,255,.75); border-left-color: rgba(255,255,255,.2); } .band .copy-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.statement .katex { color: var(--ink); }
.rows .chips .chip { flex: none; display: inline-block; min-width: auto; width: auto; }
.lab-sub { background: rgba(255, 255, 255, 0.82); color: var(--soft); }

/* Finish pass: type, surfaces, states */
html, body { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p, li { text-wrap: pretty; }
.sec h2, .page h1, .band h2 { line-height: 1.08; letter-spacing: -0.035em; }
.eyebrow { font: 400 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.lab-core { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; }
.strip b, .rows time, .pid, .chip, .board td { font-variant-numeric: tabular-nums; }
.sources article, .problem, .steps, .table-scroll { background: var(--raise); border: 1px solid transparent; box-shadow: 0 0 0 1px rgba(11, 11, 12, 0.07), 0 1px 2px rgba(11, 11, 12, 0.04), 0 10px 28px -14px rgba(11, 11, 12, 0.14); }
.sources article:hover { border-color: transparent; }
.panel .problem { background: var(--raise); }
.copy { border: 1px solid transparent; box-shadow: 0 0 0 1px rgba(11, 11, 12, 0.12), 0 1px 2px rgba(11, 11, 12, 0.05), 0 8px 22px -12px rgba(11, 11, 12, 0.18); }
.band .copy { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.btn { box-shadow: 0 1px 2px rgba(196, 13, 32, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-ghost { box-shadow: 0 1px 2px rgba(11, 11, 12, 0.05); }
.btn:active { transform: translateY(0) scale(0.98); }
.panel, .panel-body { overscroll-behavior: contain; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; transition: none; }
.lede { max-width: 46ch; }
.steps p, .sources p, .prose p { max-width: 68ch; }
@media (hover: none) { .btn:hover, .sources article:hover { transform: none; } }

/* Scroll tour */
:root { --hh: clamp(600px, calc(100vh - 61px), 1100px); }
@supports (height: 100svh) { :root { --hh: clamp(600px, calc(100svh - 61px), 1100px); } }
.hero { height: var(--hh); }
.tour.is-on { height: calc(var(--hh) * 5.2); }
.tour.is-on .hero { position: sticky; top: calc(61px + env(safe-area-inset-top, 0px)); }
.hero-copy, .beat { will-change: opacity, transform; }
.tour.is-on .hero-copy, .tour.is-on .beat { transition: none; }
.tour.is-on .hero-copy:not(.is-live) > *, .beat:not(.is-live) > * { pointer-events: none; }
.beats { position: absolute; inset: 0; pointer-events: none; display: none; }
.tour.is-on .beats { display: block; }
.beat { position: absolute; left: var(--gut-l); bottom: clamp(96px, 16vh, 160px); width: min(470px, calc(100% - var(--gut-l) - var(--gut-r))); opacity: 0; }
.beat > * { pointer-events: auto; }
.beat h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.045em; }
.beat p { margin: 18px 0 0; color: var(--soft); font-size: 18px; line-height: 1.5; max-width: 40ch; }
.beat-end { left: 0; right: 0; width: auto; bottom: auto; top: clamp(48px, 9vh, 110px); text-align: center; display: flex; flex-direction: column; align-items: center; padding: 0 var(--gut-r) 0 var(--gut-l); }
.beat-end h2 { font-size: clamp(48px, 7.2vw, 104px); letter-spacing: -0.055em; line-height: 0.95; }
.beat-end .cta { margin-top: 26px; justify-content: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); transition: opacity .4s; pointer-events: none; }
.tour.is-on .scroll-cue { display: flex; } .scroll-cue.is-off { opacity: 0; }
.scroll-cue i { width: 1.5px; height: 26px; background: linear-gradient(var(--red), rgba(240, 20, 42, 0)); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.tour-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; display: none; } .tour.is-on .tour-bar { display: block; }
.tour-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.tour.is-on .legend-hint { display: none; }
.hero.is-focus .beat { visibility: hidden; }
@media (min-width: 861px) { .tour.is-on .hero-shade { background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 26%, rgba(255, 255, 255, 0) 50%), linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255, 0) 16%), linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 30%); } }
@media (max-width: 860px) {
  .tour.is-on .hero { display: block; height: var(--hh); }
  .tour.is-on #graph, .tour.is-on .labels, .tour.is-on .hero-shade { height: 100%; }
  .tour.is-on .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 34%, rgba(255, 255, 255, 0) 58%), linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 22%); }
  .tour.is-on .hero-copy { position: absolute; left: 0; right: 0; bottom: 62px; margin-top: 0; padding-bottom: 0; }
  .tour.is-on .hero-copy .lede { font-size: 16px; margin: 14px 0 18px; } .tour.is-on .hero-copy .eyebrow { margin-bottom: 12px; font-size: 13px; }
  .tour.is-on .hero-copy .btn-ghost { display: none; }
  .tour.is-on .hero-tools { position: absolute; left: var(--gut-l); right: var(--gut-r); bottom: 14px; padding: 0; } .tour.is-on .zoom { display: none; }
  .beat { bottom: 84px; } .beat p { font-size: 16px; margin-top: 12px; }
  .beat-end { top: 28px; } .scroll-cue { display: none !important; }
}
/* What a result is */
.proof { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 56px; align-items: start; }
.code { border-radius: 16px; background: #0b0b0c; color: #e9e9ec; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11, 11, 12, 0.45), 0 0 0 1px rgba(11, 11, 12, 0.9); min-width: 0; }
.code-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font: 400 12.5px var(--mono); color: rgba(255, 255, 255, 0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.code-head span:first-child { color: #fff; } .code-head-2 { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; } .code code { font-size: inherit; color: inherit; background: none; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li { padding: 20px 0 20px 26px; border-top: 1px solid var(--line); position: relative; } .checks li:first-child { border-top: 0; padding-top: 4px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 29px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); } .checks li:first-child::before { top: 13px; }
.checks h3 { font-size: 18px; } .checks p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.checks code { color: var(--ink); background: rgba(11, 11, 12, 0.06); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 860px) { .proof { grid-template-columns: minmax(0, 1fr); } }
/* Reveal */
.will-in { opacity: 0; transform: translateY(26px); } .will-in.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.sec { padding-block: clamp(96px, 13vw, 176px) 0; } .sec:last-of-type { padding-bottom: clamp(96px, 13vw, 176px); }
.sec h2 { font-size: clamp(32px, 4.6vw, 60px); max-width: 19ch; }
.strip b { font-size: clamp(28px, 3.4vw, 46px); } .strip-in > div { padding-block: 40px; }

.beat:not(.beat-end)::before { content: ""; position: absolute; inset: -56px -90px -40px -120px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 55%, rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.sec h2 { max-width: 22ch; }
.code pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* shared shell with the home page */
:root { --tight: "Inter Tight", "Inter", system-ui, sans-serif; }
h1, h2 { font-family: var(--tight); font-weight: 700; letter-spacing: -.04em; } h3 { font-weight: 600; }
.brand { font: 700 18px var(--tight); } .brand i { width: 18px; height: 18px; border-radius: 5px; background: var(--red); }
.nav { font-weight: 500; font-size: 14.5px; } .btn { font-weight: 600; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(197, 13, 33, .4); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(10, 10, 11, .05); border-color: transparent; }
.btn-top { height: 40px; }
.band .btn { background: #fff; color: var(--ink); box-shadow: none; margin-top: 16px; } .band .btn:hover { background: #ececee; }
pre.guide { margin: 14px 0 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.65; color: var(--soft); white-space: pre; }
.guide-end { margin-top: 28px; font-weight: 500; }

/* small screens: leaderboard and catalog rows stack instead of scrolling sideways */
@media (max-width: 720px) {
  .board { min-width: 0; display: block; } .board thead { display: none; } .board tbody { display: block; }
  .board tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); } .board tr:last-child { border-bottom: 0; }
  .board td { padding: 0; border: 0; width: auto; } .board td:nth-child(2) { flex: 1; min-width: 0; } .board td:nth-child(3) { flex: none; width: auto; }
  .board td:nth-child(3)::after { content: " settled"; color: var(--muted); font-size: 13px; } .board td:nth-child(4) { display: none; }
  .board td:last-child { flex-basis: 100%; margin-top: 10px; }
  .rows-cat li { flex-wrap: wrap; gap: 8px 16px; } .rows-cat li > a:first-child { flex-basis: 100%; } .rows .chips { justify-content: flex-start; max-width: none; }
}

/* live attack page */
.lv-top { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.lv-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font: 500 12.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.lv.is-on .lv-pill { color: #fff; background: var(--red); box-shadow: none; } .lv.is-over .lv-pill { color: var(--ink); }
.lv-clock { font: 500 15px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.lv h1 { max-width: none; }
.lv-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-block: 1px solid var(--line); }
.lv-nums div { padding: 26px 24px 24px 0; } .lv-nums div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.lv-nums b { display: block; font: 600 clamp(24px, 3.4vw, 40px)/1.1 var(--tight, var(--sans)); letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .lv-nums span { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 44px; align-items: start; }
.lv-feed { list-style: none; margin: 0; padding: 0; }
.lv-feed li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); } .lv-feed li:first-child { border-top: 0; padding-top: 0; }
.lv-feed time { grid-row: span 2; font: 400 12.5px var(--mono); color: var(--faint); padding-top: 3px; }
.lv-ph { font: 500 11.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .lv-feed li.now .lv-ph { color: var(--red); }
.lv-feed p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: var(--soft); overflow-wrap: anywhere; } .lv-feed li.now p { color: var(--ink); font-weight: 500; }
.lv-problem { position: sticky; top: 84px; padding: 26px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.lv-problem h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 14px; } .lv-id { font: 400 12.5px var(--mono); color: var(--muted); margin: 0; }
.lv-problem .statement { font-size: 15px; line-height: 1.6; color: var(--soft); max-height: 340px; overflow: auto; } .lv-links { margin: 18px 0 0; }
@media (max-width: 860px) { .lv-grid { grid-template-columns: minmax(0, 1fr); } .lv-problem { position: static; } .lv-nums b { font-size: 19px; overflow-wrap: anywhere; } .lv-nums div { padding: 18px 12px 16px 0; } .lv-nums div + div { padding-left: 12px; } }
@media (max-width: 520px) { .nav a.live-mark { display: inline-flex; } }
#lv-body > .lv-run:first-child .lv-src { margin-top: 32px; }
.lv-run + .lv-run { margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--line-2); }
.lv-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.lv-run .lv-src + .lv-nums { margin-top: 24px; }
.lv-name { font: 600 15px var(--sans); color: var(--ink); } .lv-ph-now { font: 500 12.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lv-run.is-on .lv-pill { color: #fff; background: var(--red); box-shadow: none; } .lv-run:not(.is-on) .lv-pill { color: var(--ink); }
.lv #lv-empty .lede { margin-bottom: 26px; }
.lv-problem .katex-display { overflow-x: auto; overflow-y: hidden; padding-block: 2px; }
@media (max-width: 520px) { .nav { gap: 10px; } .nav .btn-top { padding: 0 12px; font-size: 13.5px; } }

.lv-how { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lv-how li { padding: 22px 22px 24px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lv-how b { font: 500 12.5px var(--mono); color: var(--red); } .lv-how h3 { margin: 28px 0 6px; font-size: 19px; letter-spacing: -.02em; } .lv-how p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lv-h2 { margin: 64px 0 8px; font-size: 22px; letter-spacing: -.02em; } .lv-done { margin-bottom: 36px; } .lv-done li { align-items: center; }
@media (max-width: 860px) { .lv-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv-how h3 { margin-top: 18px; } }
/* leaderboard windows */
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; margin: 0 0 18px; }
.seg button { font: 500 13px var(--sans, inherit); padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.seg button.is-on { background: var(--ink); color: #fff; }

/* sponsors page */
.sp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 32px 0; }
.sp-nums div { background: var(--surface); border-radius: 16px; padding: 20px; }
.sp-nums b { display: block; font-size: 32px; line-height: 1.1; letter-spacing: -.03em; }
.sp-nums span { color: var(--muted); font-size: 14px; }
.sp-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 28px; }
.sp-tiers article { border: 1px solid var(--line, #e6e6e8); border-radius: 16px; padding: 22px; }
.sp-tiers article.is-main { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.sp-tiers b { font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--red); }
.sp-tiers h3 { margin: 14px 0 6px; font-size: 18px; }
.sp-tiers p { margin: 0; color: var(--muted); font-size: 15px; }
.backers-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.backers-row a, .backers-row span { color: inherit; text-decoration: none; font-weight: 600; font-size: 20px; }
.backers-row img { height: 32px; width: auto; max-width: 160px; display: block; } .backers-row .is-big img { height: 48px; max-width: 220px; } .backers-row .is-big { font-size: 26px; }
@media (max-width: 720px) { .sp-nums, .sp-tiers { grid-template-columns: minmax(0, 1fr); } }
