/* FPSAT site styles — restrained Turrell-inspired hero over neutral, high-contrast data surfaces. */

:root {
  --bg: #f6f5f2;
  --panel: #ffffff;
  --ink: #172126;
  --muted: #5b6269;
  --border: #d9dcdb;
  /* The horizon ramp, paler to darker. Every background, button, link and chart colour comes from here. */
  --paper: #f6f5f2;
  --lavender: #dde9ff;
  --periwinkle: #4d97ff;
  --blue: #0172fd;
  --royal: #0158c7;
  --navy: #0a2d78;
  --void: #000000;
  --signal: #cf2ef1;          /* the logo's magenta: the single conversion action (Account) */
  --warm: #f2dcb0;            /* notice banners only */
  --accent: var(--navy);
  --accent-ink: #ffffff;
  --link: var(--royal);
  --link-hover: var(--navy);
  --focus: var(--royal);
  --danger: #a2321f;
  --ok: #2f6d46;
  --subdued: #c4c8c6;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "KaTeX Main", "Latin Modern Roman", "STIX Two Text", "Times New Roman", serif;   /* display headlines */
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

.num, td, .fact-value, .stat-value {
  font-variant-numeric: tabular-nums;
}

code, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.6em; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 0.55em; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 0.45em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
.site-chart a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  pointer-events: none;
}

.header-shell {
  /* The bar runs wider than the page content: 108rem, with 12px side gutters. */
  max-width: 108rem;
  margin: 0 auto;
  padding: 16px 12px 0;
}

.header-bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid rgba(23, 33, 38, 0.08);   /* the faint outline, as on reflection.ai (fg at 8%) */
  border-radius: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #000;
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.8; color: #000; }
/* The mark is single-colour line art drawn in currentColor: a ring and three arcs that pairwise cross once,
   with a node on each crossing (three clauses, one mutually compatible literal from each). */
.brand .mark { flex: none; display: block; height: 26px; width: 26px; }

/* The site's three families: KaTeX Main (serif, display headlines), Inter (sans, text and UI), JetBrains Mono
   (labels, tables, chart text). Self-hosted; Inter and JetBrains Mono are SIL OFL variable fonts. */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KaTeX Main";
  src: url("fonts/KaTeX_Main-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KaTeX Main";
  src: url("fonts/KaTeX_Main-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

.wordmark {
  font-family: var(--serif);   /* KaTeX Main, the same LaTeX-style face as the display headlines */
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}


.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a,
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a {
  color: #000;
  transition: opacity 0.2s;
}
.site-nav a:hover { opacity: 0.7; color: #000; }
.site-nav a.active { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta-mobile { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--signal);
  color: #fffdf9;
  border-radius: 8px;
  line-height: 0.86;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; color: #fffdf9; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #000;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;   /* sideways only: the pixel edge (hero-pixels.js) hangs below the hero's bottom, so vertical overflow stays visible */
  margin-top: -88px;
  padding: calc(88px + clamp(48px, 6vw, 96px)) 0 0;
}

/* Light belongs to the page, not a framed illustration beside the text. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -3;   /* the hero's layers, back to front: this light ground (-3), the pixel edge (-2), the chip canvas (-1), then the text */
  inset: 0;
  pointer-events: none;
  /* the gradient itself is set in the "Event horizon" block at the end of this file */
}

.hero-inner { position: relative; }

.hero-text { max-width: 680px; }

.hero-text h1 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.09;
  margin: 0 0 24px;
}

.lede { font-size: 1.08rem; color: var(--ink); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--link-hover); color: var(--accent-ink); }

.button-secondary {
  background: var(--panel);
  color: var(--accent);
}

.button-secondary:hover { background: var(--bg); color: var(--link-hover); }

.button[aria-expanded="true"] { background: var(--link-hover); color: var(--accent-ink); }

/* Keep the benchmark and all analytics on neutral information surfaces. */
.benchmark-composition {
  max-width: 760px;
  margin: 24px 0;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.benchmark-composition .data-table { min-width: 0; margin: 0; }

.benchmark-composition .data-table thead th { white-space: normal; }

/* ---------- Sections & panels ---------- */

.section { padding: 28px 0; }

main > .wrap > .section:first-of-type { padding-top: 20px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.note { color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step h3 { margin-top: 0; }

.fact-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fact {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.fact-label { color: var(--muted); font-size: 0.9rem; }

.downloads li { margin-bottom: 0.5em; }

.formula {
  font-family: var(--mono);
  font-size: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  overflow-x: auto;
}

.totals-list .num { font-weight: 600; }

.toc { margin: 20px 0 8px; }
.toc-title { font-size: 1rem; margin: 0 0 8px; }
.toc ol { margin-bottom: 0; }

.changelog-entry {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  --edge-footer: clamp(56px, 5.5vw, 88px);   /* the same depth as the About band's pixel edges */
  position: relative;
  margin-top: calc(var(--edge-footer) + 24px);   /* room for the pixel edge, which replaces the old separating line, plus a little air above it */
  background: var(--panel);
}
/* The footer's top edge: pixels in the footer's own colour thicken from the page into the panel (hero-pixels.js). */
.footer-pixels { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: calc(var(--edge-footer) + 1px); pointer-events: none; }
/* on the home page the Participation section's bottom padding (never shallower than this edge) already leaves the room */
body[data-page="home"] .site-footer,
body[data-page="participate"] .site-footer { margin-top: 0; }

.footer-inner {
  padding-top: 24px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
}
.footer-text { min-width: 0; }
.footer-logo { flex: none; display: block; height: 84px; width: auto; }
/* The logo's navy is dark: on the home page's dark footer it sits on a tile in the site's paper colour, so its own
   colours stay intact (a logo is never recoloured). On the light pages it sits straight on the white footer. */
body[data-page="home"] .footer-logo,
body[data-page="participate"] .footer-logo { box-sizing: content-box; padding: 9px; background: #f6f5f2; border-radius: 10px; }
@media (max-width: 720px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

.footer-inner .org { margin-bottom: 8px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 8px;
}

.rules-version { color: var(--muted); font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Round switch ---------- */

.round-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.round-switch a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.round-switch a:hover { background: var(--bg); }

.round-switch a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Leaderboard ---------- */

.loading { color: var(--muted); font-style: italic; }

.summary-line { color: var(--muted); }

.analytics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-bottom: 1px solid var(--border);
  margin: 24px 0;
}

.analytics-tabs a {
  padding: 10px 0;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.analytics-tabs a.active { border-color: var(--accent); color: var(--ink); }

.reference-notice {
  background: #f8f3e8;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.reference-notice p { margin: 8px 0 0; }

.analytics-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  min-width: 0;
}

.analytics-panel h2 { margin-top: 0; }

.runtime-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.runtime-legend button,
.runtime-dismiss {
  font: inherit;
  border: 2px solid var(--accent);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 6px 10px;
}
.runtime-legend button[aria-pressed="true"] { background: var(--bg); font-weight: 700; }
.runtime-chart-wrap > label { margin-top: 12px; font-size: 0.9rem; }
.runtime-chart-wrap input[type="range"] { accent-color: var(--accent); min-height: 36px; }
.runtime-dismiss { margin-top: 8px; }

.chart-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 20px;
  margin-bottom: 24px;
}

.chart-wrap { position: relative; max-width: 760px; }

.site-chart { width: 100%; height: auto; display: block; }

.chart-note { color: var(--muted); font-size: 0.88rem; margin: 8px 0 0; max-width: 760px; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.legend-item { display: inline-flex; align-items: center; gap: 6px; }

.legend-swatch {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  flex: none;
}

.legend-note { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }

/* SVG chart internals */
.site-chart text { font-family: var(--sans); fill: var(--ink); }
.site-chart .axis-label { font-size: 13px; font-weight: 600; }
.site-chart .tick-label { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.site-chart .grid-line { stroke: var(--border); stroke-width: 1; }
.site-chart .axis-line { stroke: var(--muted); stroke-width: 1; }
.site-chart .front-line { fill: none; stroke-width: 2; }
.site-chart .front-line.context { stroke: var(--subdued); stroke-width: 1.5; opacity: 0.7; }
.site-chart .pt circle { stroke: #ffffff; stroke-width: 1.5; }
.site-chart .pt { cursor: pointer; }
.site-chart .pt.filtered-out { visibility: hidden; pointer-events: none; }
.site-chart .pt.hot circle { stroke: var(--ink); stroke-width: 3; }

.chart-tooltip {
  position: absolute;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  max-width: 280px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.chart-tooltip a { color: var(--warm); display: block; text-decoration: underline; }
.chart-tooltip a + a { margin-top: 4px; }
.chart-tooltip .tt-hint { color: #cfd3d2; font-size: 0.78rem; margin: 6px 0 0; }

/* Toolbar */
.lb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
  margin: 0 0 12px;
}

.lb-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.lb-toolbar input,
.lb-toolbar select {
  font: inherit;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  min-width: 200px;
}

.count-indicator { color: var(--muted); font-size: 0.9rem; margin-left: auto; }

/* Tables */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 24px;
  max-width: 100%;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.95rem;
}

.data-table caption {
  text-align: left;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.data-table thead th {
  border-top: none;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}

.data-table tbody tr:hover { background: #f0efeb; }

.data-table tbody tr.row-hot { background: #eae7f6; }

th .sort-btn {
  font: inherit;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sort-arrow { font-size: 0.75em; color: var(--muted); }

th[aria-sort="ascending"] .sort-arrow,
th[aria-sort="descending"] .sort-arrow { color: var(--accent); }

.entry-cell .team { display: block; color: var(--muted); font-size: 0.85rem; }

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  white-space: nowrap;
}

.badge-flagged { background: #fbeeea; border-color: #e3b8ac; color: var(--danger); }
.badge-baseline { background: #eef1f6; border-color: #c3ccdd; color: var(--royal); }
.badge-unranked { background: #f4f4f1; color: var(--muted); }

.group-section { margin: 28px 0; }

.group-explainer { color: var(--muted); max-width: 70ch; }

.reasons-list { color: var(--danger); }
.reasons-list li { margin-bottom: 0.25em; }

tr.penalty td { color: var(--danger); }
tr.penalty td:first-child { border-left: 3px solid var(--danger); }
td.penalty-cell { color: var(--danger); font-weight: 600; }

/* Example panel */
.example-panel-wrap { margin: 36px 0 8px; }

.example-panel {
  margin-top: 12px;
  background: #fdf9f1;
  border: 1px dashed #c9a95e;
  border-radius: var(--radius);
  padding: 0 20px 20px;
}

.banner-hypothetical {
  background: var(--warm);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  margin: 0 -20px 16px;
  padding: 10px 16px;
  border-bottom: 1px dashed #c9a95e;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ---------- Entry page ---------- */

.back-link { display: inline-block; margin-bottom: 14px; }

.entry-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 24px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.stat-label { display: block; color: var(--muted); font-size: 0.85rem; }
.stat-value { display: block; font-size: 1.35rem; font-weight: 700; }

.resource-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.resource-name { font-weight: 600; }

.resource-bar {
  height: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.resource-fill {
  height: 100%;
  background: var(--accent);
  min-width: 0;
}

.resource-nums { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; text-align: right; }

.detail-list {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0 0 24px;
}

.detail-list dt { font-weight: 600; color: var(--muted); margin: 0; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
  margin: 0 0 12px;
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.filter-row select {
  font: inherit;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  min-width: 180px;
}

.error-panel {
  background: #fbeeea;
  border: 1px solid #e3b8ac;
  border-radius: var(--radius);
  padding: 20px 24px;
}

.error-panel h1 { margin-top: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero-text { max-width: 620px; }
  .steps { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .header-shell { padding-top: 8px; }
  .header-bar { height: 40px; padding-left: 12px; padding-right: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px;
    background: #fff;
    border-radius: 12px;
  }
  .site-nav a { padding: 12px 0; font-size: 10px; }
  .site-nav.open { display: flex; }

  h1 { font-size: 1.55rem; }

  .hero { padding: 48px 0 0; }

  .count-indicator { margin-left: 0; width: 100%; }

  .resource-row { grid-template-columns: 90px minmax(0, 1fr); }
  .resource-nums { grid-column: 1 / -1; text-align: left; }

  .detail-list { grid-template-columns: 1fr; gap: 2px; }
  .detail-list dd { margin-bottom: 8px; }
}

@media (max-width: 400px) {
  .fact-grid { grid-template-columns: 1fr; }
  .lb-toolbar input, .lb-toolbar select { min-width: 0; width: 100%; }
  .filter-row select { min-width: 0; width: 100%; }
  .lb-toolbar label, .filter-row label { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Account page ---------- */

.account-who { color: var(--muted); }
.account-form { max-width: 420px; }
.account-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.account-form input[type="text"] {
  display: block; width: 100%; font: inherit; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--ink);
}
.form-msg { color: var(--danger); min-height: 1.2em; margin: 6px 0 0; }
.form-ok { color: var(--ok); margin: 6px 0 0; }
.link-button {
  font: inherit; padding: 0; border: 0; background: none; color: var(--link);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.link-button:hover { color: var(--link-hover); }
.dev-panel { margin-top: 16px; border-style: dashed; }
.account-app .panel + .panel, #account-app .panel + .panel { margin-top: 16px; }
.code-block { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; overflow-x: auto; }
.status-done { border-color: var(--ok); color: var(--ok); }
.status-rejected, .status-error { border-color: var(--danger); color: var(--danger); }

/* Hero: the full CNF-style name, set like LaTeX. */
.hero-text .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.hero-text h1.cnf-title {
  max-width: none;
  font-size: clamp(1.9rem, 3.7vw, 3.3rem);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}
.hero-text h1.cnf-title .op { font-size: 1.05em; margin: 0 0.08em; }
@media (min-width: 721px) {
  .hero-text { max-width: none; }
    .hero-text .lede { max-width: 680px; }
}

.hero-graph {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The stage reserves room below the text; the WebGL canvas itself fills the whole hero
   (positioned against .hero) and frames the dome into this lower region. */
.hero-stage { display: none; }
.hero { padding-bottom: clamp(72px, 9vw, 128px); }

/* One screen tall, with the headline anchored to the bottom-left (after arenaphysica.com). */
.hero {
  /* the hero starts 16px above the viewport (under the bar), so add that back to end exactly at the fold */
  min-height: calc(100vh + 16px);
  min-height: calc(100svh + 16px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(32px, 5vw, 56px);
}
.hero-inner { width: 100%; }
@media (max-width: 720px) {
  .hero-stage { display: block; height: 300px; }
  .hero { padding-bottom: 0; }
}

/* Headline typeset like a CNF formula: operators hang in their own column. */
.hero-text h1.cnf-title {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.12;
  margin: 0 0 28px;
}
.cnf-intro {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--muted);
}
.cnf-line { display: block; }

/* Hero headline: sized like the one on arenaphysica.com (72/56/36/28px, 1.08 leading, tight tracking),
   in our own serif, and centred on the chip's height rather than anchored to the bottom. */
.hero-text h1.cnf-title {
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 400;
}
@media (min-width: 640px) { .hero-text h1.cnf-title { font-size: 36px; letter-spacing: -1.5px; } }
/* 56px and 72px at full size; on narrower windows they shrink with the viewport so the text never reaches the chip */
@media (min-width: 768px) { .hero-text h1.cnf-title { font-size: min(56px, 5vw); letter-spacing: -2px; } }
@media (min-width: 1024px) { .hero-text h1.cnf-title { font-size: min(72px, 5vw); } }
@media (min-width: 721px) {
  /* the hero text sits 48px from the edge, as on arenaphysica.com, not on the 1200px content column */
  .hero .hero-inner { max-width: none; padding-left: 48px; padding-right: 48px; }
  /* equal top and bottom padding puts the text block's centre at the hero's centre, where the chip sits */
  .hero { justify-content: center; padding-top: 96px; padding-bottom: 96px; }
}

/* Optical left alignment: big serif letters carry side bearing, so pull each line back until its ink
   meets the same edge as the buttons (A, S and C bear differently, hence the two values). */
.hero-text .cnf-line { margin-left: -0.055em; }
.hero-text .cnf-intro + .cnf-line { margin-left: -0.03em; }
.hero-text .cnf-intro { margin-left: -1px; }
.hero-text .lede { margin-left: -2px; }
@media (max-width: 720px) {
  .hero-text .cnf-line, .hero-text .cnf-intro, .hero-text .lede { margin-left: 0; }
}

/* ---------- Event horizon ----------
   The hero's light sun is replaced by a black disc rising from the bottom, its rim glowing where the
   light bends round it. Everything under the hero is black, and on the home page the rest of the
   page continues in black. The hero keeps its own light palette so its text and chip stay readable. */
.hero {
  --bg: #f6f5f2; --panel: #ffffff; --ink: #172126; --muted: #5b6269; --border: #d9dcdb;
  --accent: #0a2d78; --accent-ink: #ffffff; --link: #0158c7; --link-hover: #0a2d78; --focus: #0158c7; --subdued: #c4c8c6;
  color: var(--ink);
}
.hero::before {
  /* flat light; the hero's bottom edge is dithered into the page's black by hero-pixels.js */
  background: #f6f5f2;
}
@media (max-width: 720px) {
  .hero-stage { margin-bottom: 8vw; }
}

body[data-page="home"],
body[data-page="participate"] {
  --bg: #000000; --panel: #0d0e11; --ink: #ecebe7; --muted: #9aa0a6; --border: #24272b;
  --accent: #4d97ff; --accent-ink: #0a2d78; --link: #4d97ff; --link-hover: #b4d3ff; --focus: #4d97ff; --subdued: #3a3e43;
  background: #000;
  color: var(--ink);
}

/* Hero buttons take the shape and type of the navbar's Account button (mono, 11px, uppercase, 8px radius,
   12/16px padding), keeping their own colours. The 1px border is taken out of the padding so the size matches. */
.hero-cta .button,
.part-actions .button {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 11px 15px;
  border-radius: 8px;
}

/* Primary buttons share the navbar Account button's magenta, so every call to action reads as one family.
   Secondary buttons stay an outline in the page's accent (navy on light, periwinkle on dark). */
.button {
  background: var(--signal);
  border-color: var(--signal);
  color: #fffdf9;
}
.button:hover { background: #b81fda; border-color: #b81fda; color: #fffdf9; }
.button-secondary {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent);
}
.button-secondary:hover { background: var(--bg); border-color: var(--accent); color: var(--link-hover); }
.button[aria-expanded="true"] { background: #b81fda; border-color: #b81fda; color: #fffdf9; }

/* Logo: while the pointer is over it (or the link has keyboard focus) the mark turns a third of a revolution,
   landing back on itself (it has threefold symmetry), and its three nodes take the signal colour. */
.brand .mark { transform-origin: 50% 50%; transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.3, 1); }
.brand .mark .node { transition: fill 0.2s; }
.brand:hover .mark, .brand:focus-visible .mark { transform: rotate(120deg); }
.brand:hover .mark .node, .brand:focus-visible .mark .node { fill: var(--signal); }
@media (prefers-reduced-motion: reduce) { .brand .mark { transition: none; } .brand:hover .mark, .brand:focus-visible .mark { transform: none; } }

/* ---------- Home leaderboard ----------
   Dark, mono-labelled and uncluttered, after arcprize.org/leaderboard; the table's tick bars and the
   pixel edge above it come from hw-bench.com. It sits right under the hero, on the home page's black. */
.home-board { padding: clamp(72px, 9vw, 128px) 0 88px; position: relative; }   /* the same top spacing as the About and Participation sections */
.hb-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.hb-head { text-align: center; margin-bottom: 28px; }
.hb-title {
  margin: 0 0 12px; font-family: var(--mono); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
}
.hb-sub { margin: 0 0 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hb-tabs { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(0, 0, 0, 0.35); }
.hb-tab {
  font: inherit; font-size: 13px; color: #b7bcc2; background: transparent; border: 0; border-radius: 999px;
  padding: 8px 18px; cursor: pointer; transition: color 0.2s, background 0.2s;
}
.hb-tab:hover:not(:disabled) { color: #fff; }
.hb-tab.is-on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.hb-tab:disabled { opacity: 0.4; cursor: not-allowed; }

.hb-stage { position: relative; }
.home-board { overflow-x: clip; }

.hb-legend { display: flex; justify-content: space-between; align-items: center; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); }
.hb-keys { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
.hb-hint { color: #c9ccd1; }
.hb-key { display: inline-flex; align-items: center; gap: 8px; }
.hb-key-line { display: inline-block; width: 18px; height: 2px; background: var(--signal); }
.hb-key-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--periwinkle); }

.hb-plot { position: relative; }
.hb-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hb-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.hb-axisline { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.hb-tick { fill: #7d838b; font: 10.5px var(--mono); }
.hb-axis-title { fill: #9aa0a6; font: 10.5px var(--mono); letter-spacing: 0.14em; }
.hb-stair { fill: none; stroke-width: 1.6; opacity: 0.7; stroke-linejoin: round; }
.hb-stair.is-best { stroke-width: 2.2; opacity: 1; }
.hb-pt { cursor: pointer; outline: none; }
.hb-hit { fill: transparent; }
.hb-halo { opacity: 0; transition: opacity 0.2s; }
.hb-dot { stroke: #000; stroke-width: 1.5; }
.hb-label { fill: #8b9199; font: 10.5px var(--mono); letter-spacing: 0.06em; paint-order: stroke; stroke: rgba(0, 0, 0, 0.75); stroke-width: 3px; stroke-linejoin: round; transition: fill 0.2s; }
.hb-label.is-best { fill: #fff; }
.hb-pt.is-hot .hb-halo, .hb-pt:focus-visible .hb-halo { opacity: 0.3; }
.hb-pt.is-hot .hb-label, .hb-pt:focus-visible .hb-label { fill: #fff; }
.hb-badge {
  position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.5); padding: 6px 10px; pointer-events: none;
}
.hb-badge.is-official { color: #fff; }
.hb-download {
  position: absolute; right: 0; bottom: 4px; width: 34px; height: 34px; display: grid; place-items: center; color: #c9ccd1;
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.hb-download:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hb-tip {
  position: absolute; z-index: 4; width: 176px; padding: 10px 12px; pointer-events: none; display: flex; flex-direction: column; gap: 3px;
  background: #0b0c10; border: 1px solid rgba(255, 255, 255, 0.22); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: #b7bcc2; white-space: pre;
}
.hb-tip[hidden] { display: none; }
.hb-tip strong { color: #fff; font-weight: 600; }
.hb-empty { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 12px; padding: 60px 0; }

.hb-tablehost { margin-top: 40px; }
.hb-table-wrap { overflow-x: auto; }
.hb-table { width: 100%; border-collapse: collapse; margin: 0; min-width: 560px; }
.hb-table th, .hb-table td { text-align: left; font-weight: 400; padding: 0; border: 0; }
.hb-table thead th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); white-space: nowrap; }
.hb-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.2s; }
.hb-table tbody tr.is-hot { background: rgba(255, 255, 255, 0.045); }
.hb-table tbody td, .hb-table tbody th { padding: 14px 12px 14px 0; vertical-align: middle; }
.hb-table .c-rank { width: 52px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hb-table .c-name a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.hb-table .c-name a:hover { color: var(--periwinkle); }
.hb-table .c-name small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.hb-table .c-front { width: 84px; }
.hb-chipf { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 3px 9px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: #b7bcc2; }
.hb-chipf.is-best { color: var(--signal); border-color: var(--signal); }
.hb-table .c-bar { width: 24%; padding-right: 28px; }
.hb-num { display: block; font-family: var(--mono); font-size: 13px; color: #e7e8ea; }
.hb-track { display: block; position: relative; height: 5px; margin-top: 9px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
.hb-tick-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--signal); border-radius: 1px; }
.hb-foot { margin: 22px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; line-height: 1.7; color: var(--muted); }
.hb-foot a { color: var(--periwinkle); }
@media (max-width: 640px) {
  .home-board { padding: clamp(72px, 9vw, 128px) 0 64px; }
  .hb-table { min-width: 0; }
  .hb-table .c-front { display: none; }
  .hb-table .c-rank { width: 34px; }
  .hb-table .c-bar { width: 29%; padding-right: 12px; }
  .hb-table .c-name a { font-size: 14px; }
}

/* In-page links glide to their target (not for people who ask for reduced motion), and the leaderboard
   lands with its heading clear of the sticky bar. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.home-board { scroll-margin-top: 40px; }

/* ---------- About: the black-to-white split ----------
   Sections on the front page are separated by a hard, flat cut between full-bleed colour bands, the way
   harmonic.fun does it: no gradient between them, generous padding, a mono label, and a row of columns
   divided by thin rules. This band carries the light palette back in, so it scopes its own variables. */
.about {
  --bg: #f6f5f2; --panel: #ffffff; --ink: #172126; --muted: #5b6269; --border: #d9dcdb;
  --accent: #0a2d78; --link: #0158c7; --link-hover: #0a2d78;
  position: relative; isolation: isolate; background: #f6f5f2; color: var(--ink);
  padding: clamp(72px, 9vw, 128px) 0;
}
/* a fine film grain, as on harmonic.fun's bands, kept faint on the pale ground */
.about::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.about-inner { padding: 0 clamp(20px, 3.4vw, 48px); }   /* the hero's 48px left edge, so the two line up */
/* ---------- About ----------
   One structure, three type styles (after hw-bench, Harmonic and Nous): a mono label, a heading, body text.
   One accent: magenta is only for the buttons; blue lives only in the chip illustration and the years.
   Everything sits on the timeline's five columns, and every band is separated by the same gap. */
.about { --band: clamp(72px, 9vw, 128px); --rule: rgba(23, 33, 38, 0.16); overflow-x: clip; }
.label { margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.about-label { margin-bottom: 22px; text-align: center; }
.about-title {
  margin: 0 auto clamp(32px, 4vw, 56px); max-width: 12em; text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -0.02em; color: #000;
}

/* the text: left-aligned lines in a column centred under the heading */
.about-body { max-width: 44rem; margin: 0 auto clamp(56px, 6.5vw, 88px); }
.about-text p { margin: 0 0 1.25em; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.7; color: #3a4349; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { font-weight: 600; color: #000; }   /* the one emphasised word: "you" */

/* ---------- About: the FPGA-SAT timeline ----------
   The hero chip in two dimensions: the same blue line work, a soft translucent fill, a slab's edge, pins, and a
   worker slice or two in each module. The signal is a trace that goes high into a module at each landmark paper.
   It draws left to right once, and each landmark appears as the signal reaches it. */
.tl { padding: 0; }
.tl-label { margin-bottom: 28px; }
.tl-wave { display: block; width: 100%; height: 96px; overflow: visible; --tl-blue: #0158c7; --tl-soft: rgba(221, 233, 255, 0.55);
  background-image: linear-gradient(rgba(1, 88, 199, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(1, 88, 199, 0.07) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; }   /* the faint grid the chip's board sits on */
.tl-board { fill: var(--tl-soft); stroke: var(--tl-blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tl-board-edge { fill: rgba(1, 88, 199, 0.14); stroke: var(--tl-blue); stroke-opacity: 0.5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tl-pins rect { fill: #fff; stroke: var(--tl-blue); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tl-mod-edge { fill: rgba(1, 88, 199, 0.22); stroke: var(--tl-blue); stroke-opacity: 0.55; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tl-mod-top { fill: #eef3ff; stroke: var(--tl-blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tl-slice rect { fill: rgba(1, 88, 199, 0.16); stroke: var(--tl-blue); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tl-via { stroke: var(--tl-blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tl-pad { fill: #fff; stroke: var(--tl-blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tl-sig { fill: none; stroke: var(--tl-blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: miter; stroke-linecap: butt; }
.tl-items { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.tl-item { margin: 0; padding: 0 clamp(12px, 2vw, 28px) 0 0; }
.tl-year { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: #0158c7; }
.tl-title { margin: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; color: #000; }
.tl-author { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* before the draw (only once the script has taken over): the signal is undrawn, the entries hidden */
/* the trace uses non-scaling strokes, so its dashes are in screen pixels: about-timeline.js sets --sig-len to its real length */
.tl.js-ready .tl-sig { stroke-dasharray: var(--sig-len) calc(var(--sig-len) * 2); stroke-dashoffset: var(--sig-len); }
.tl.js-ready .tl-item, .tl.js-ready .tl-mod { opacity: 0; }
.tl.js-ready .tl-item { transform: translateY(8px); }
.tl.is-playing .tl-sig { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s linear; }
.tl.is-playing .tl-mod { opacity: 1; transition: opacity 0.5s ease; transition-delay: calc(var(--i) * 0.2 * 2.4s); }
.tl.is-playing .tl-item { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(var(--i) * 0.2 * 2.4s); }

@media (max-width: 899px) {
  .tl-wave { display: none; }
  .tl-items { grid-template-columns: 1fr; gap: 22px; margin-top: 0; }
  .tl-item { padding-right: 0; }
  .tl.is-playing .tl-item { transition-delay: calc(var(--i) * 0.12s); }
}

/* ---------- Hero pixel edge ----------
   Instead of a gradient, the hero's bottom edge breaks into black squares that thicken until the page is
   solid black, as in the hw-bench footer. Drawn once by hero-pixels.js. The text and chip stay centred in the whole hero. */
.hero { --edge: clamp(170px, 18vw, 270px); }
.hero-pixels { position: absolute; left: 0; bottom: -1px; width: 100%; height: calc(var(--edge) + 1px); z-index: -2; pointer-events: none; }   /* behind the chip canvas (-1) and the text, above the light ground (-3) */
.hero-inner { z-index: 1; }   /* text stays above the pixel edge if a short window makes them overlap */
/* content centred, then lifted 5% of the hero's height: 10svh more bottom padding moves the centre up by half that */
@media (min-width: 721px) { .hero { padding-bottom: calc(96px + 10vh); padding-bottom: calc(96px + 10svh); } }

/* The black leaderboard band breaks up into the light About band: the hero's pixel edge, mirrored and much shallower. */
.about { --edge-about: clamp(56px, 5.5vw, 88px); }
.about-pixels { position: absolute; left: 0; top: -1px; width: 100%; height: calc(var(--edge-about) + 1px); z-index: -1; pointer-events: none; }   /* behind the band's content, above its ground */
/* ...and back to black below the timeline, into the stats band: the hero's edge again, at the shallow depth. */
.about-pixels-end { position: absolute; left: 0; bottom: -1px; width: 100%; height: calc(var(--edge-about) + 1px); z-index: -1; pointer-events: none; }
.about { padding-bottom: calc(var(--band) + var(--edge-about) * 0.5); }

/* ---------- How to Participate ----------
   On the page's black, with the About band's structure: a mono label, a heading, body text. One centred
   column; the figure alone runs wider. Code is set in mono panels, the facts in a hairline list. */
.participate { padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.part-inner { max-width: 64rem; margin: 0 auto; padding: 0 clamp(20px, 3.4vw, 48px); }
.part-label { margin-bottom: 22px; text-align: center; }
.part-title {
  margin: 0 auto clamp(48px, 6vw, 88px); max-width: 12em; text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -0.02em; color: #fff;
}
.participate .label { color: #8b9199; }
.part-step, .part-org { max-width: 44rem; margin-left: auto; margin-right: auto; }
.part-step { margin-bottom: clamp(56px, 7vw, 96px); }
.part-step > .label { margin-bottom: 14px; }
.part-step h3 { margin: 0 0 clamp(18px, 2.2vw, 26px); font-size: clamp(1.7rem, 2.8vw, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.part-step p, .part-org p { margin: 0 0 1.25em; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.7; color: #b7bcc2; }
.part-list { margin: 0 0 1.25em; padding-left: 1.4em; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.7; color: #b7bcc2; }
.part-list li { padding-left: 0.3em; }
.part-list li::marker { font-family: var(--mono); font-size: 0.85em; color: #8b9199; }
.part-step p:last-child, .part-org p:last-child { margin-bottom: 0; }
.part-step em { color: #fff; }
.part-step a, .part-org a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.part-step a:hover, .part-org a:hover { color: var(--link-hover); }
.part-step a.button, .part-step a.button:hover { text-decoration: none; color: #fffdf9; }
.part-step a.button-secondary { color: var(--accent); }
.part-step a.button-secondary:hover { color: #fff; }
.participate :not(pre) > code { font-family: var(--mono); font-size: 0.86em; color: #ecebe7; background: rgba(255, 255, 255, 0.09); padding: 2px 6px; border-radius: 4px; }
.participate pre.code { margin: 26px 0; padding: 18px 20px; overflow-x: auto; background: #0d0e11; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #ecebe7; }
.participate pre.code code { font: inherit; }
.code-prompt { margin-right: 10px; color: #6f7782; user-select: none; }
.part-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 !important; }
.part-step > .part-actions:last-child { margin-bottom: 0 !important; }
/* pre-launch notice: the same column, set off by a hairline frame */
.part-notice { padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; }
/* Participate page: the page's light runs solid up under the navbar (as the home hero does), then breaks into the black
   with the About band's top edge (.about-pixels), copied exactly but drawn in the light colour over the black:
   solid at the top, thinning into the black (hero-pixels.js draws .part-pixels). */
.part-top {
  --edge-about: clamp(56px, 5.5vw, 88px); --solid: 70px;
  position: relative; isolation: isolate; overflow-x: clip;
  margin-top: -88px;   /* under the sticky bar, as .hero is */
  height: calc(var(--solid) + var(--edge-about));
  background: linear-gradient(#f6f5f2, #f6f5f2) top / 100% var(--solid) no-repeat;
}
.part-top::before {   /* the About band's faint film grain, on the solid light only */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--solid); z-index: -1; pointer-events: none; opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.part-pixels { position: absolute; left: 0; top: calc(var(--solid) - 1px); width: 100%; height: calc(var(--edge-about) + 1px); pointer-events: none; }
.part-top + .participate { padding-top: clamp(48px, 6vw, 88px); }

/* the black box: the chip's isometric line work in the site blue, with the fixed ports labelled */
.bb { max-width: 56rem; margin: 0 auto clamp(56px, 7vw, 96px); }
.bb > .label { margin-bottom: 14px; }
.bb-scroll { overflow-x: auto; }
.bb-svg { display: block; width: 100%; min-width: 640px; height: auto;
  background-image: linear-gradient(rgba(77, 151, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 151, 255, 0.09) 1px, transparent 1px); background-size: 24px 24px; }
.bb-face { stroke: #4d97ff; stroke-width: 1.5; stroke-linejoin: miter; }
.bb-top { fill: rgba(77, 151, 255, 0.16); }
.bb-left { fill: rgba(77, 151, 255, 0.06); }
.bb-right { fill: rgba(77, 151, 255, 0.1); }
.bb-pad { fill: #000; stroke: #4d97ff; stroke-width: 1.5; }
.bb-lead { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.bb-txt { font: 500 12px var(--mono); letter-spacing: 0.02em; fill: #c3c7cc; }
.bb-title { font: 600 15px var(--mono); letter-spacing: 0.14em; fill: #fff; }
.bb-sub { font: 500 11px var(--mono); letter-spacing: 0.1em; fill: #9aa0a6; }
.bb-regs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.bb-regs .label { margin-right: 6px; }
.participate .bb-regs code { padding: 3px 9px; font-size: 11px; letter-spacing: 0.06em; color: #b7bcc2; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; }

/* the competition at a glance: a hairline list */
.glance { margin: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.glance > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.glance dt { font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.12em; text-transform: uppercase; color: #8b9199; }
.glance dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: #ecebe7; }
@media (max-width: 560px) { .glance > div { grid-template-columns: 1fr; gap: 2px; } }

.part-org { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.part-org .label { margin-bottom: 14px; }
.part-org p { font-size: 1rem; }
