/* Alpha Helix — public site
   One palette, one typeface, hairline rules. Colour is reserved for evidence:
   the tier colours mean something, so the interface itself stays monochrome
   with a single brand accent taken from the logo. */

/* Inter + JetBrains Mono are loaded from Google Fonts (see index.html <head>). */

:root {
  --bg: #0B0F14;
  --bg-2: #0D1218;
  --surface: #141B23;
  --surface-2: #182028;
  --ink: #F2F5F7;
  --ink-2: #C9D2DA;
  --dim: #93A1AE;
  --dim-2: #5F6C78;
  --rule: #243040;
  --rule-2: #1B2531;
  --green: #5EE6A8;
  --blue: #7AA8FF;
  --amber: #F5B855;
  --red: #FF6B6B;
  --brand: #F26BD3;
  --brand-soft: rgba(242, 107, 211, 0.14);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --sb-h: 28px;
  --nav-h: 64px;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: var(--sb-h);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, dt, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0; font-feature-settings: "calt" 0; }
.dim { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

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

/* ── type ─────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.display {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  font-weight: 640;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-top: 10px;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--brand); }
h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 12px;
  text-wrap: balance;
}
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.lede {
  margin-top: 16px;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.section-sub { color: var(--dim); max-width: 36em; text-wrap: pretty; }
.link { color: var(--brand); border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover { border-color: currentColor; }

/* ── buttons & badges ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 560;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c, var(--dim));
  padding: 4px 8px 3px;
  border: 1px solid color-mix(in srgb, var(--c, var(--dim)) 45%, transparent);
  background: color-mix(in srgb, var(--c, var(--dim)) 10%, transparent);
  white-space: nowrap;
  line-height: 1.3;
}
.badge.solid { background: var(--c); color: var(--bg); border-color: var(--c); font-weight: 600; }
.tier-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--dim)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--dim)) 18%, transparent); }

/* ── nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--rule-2);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .mark { color: var(--brand); transition: transform .8s var(--ease); }
.brand:hover .mark { transform: rotate(180deg); }
.brand-name { font-weight: 620; letter-spacing: -0.02em; font-size: 1.02rem; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: inline-block; padding: 8px 12px;
  font-size: 0.9rem; color: var(--dim);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-n { font-family: var(--mono); font-size: 0.68rem; color: var(--dim-2); margin-right: 6px; }
.nav-links a.active .nav-n { color: var(--brand); }
.live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: border-color .2s;
}
.live:hover { border-color: var(--brand); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 2.2s infinite; }
.live.has-new .live-dot { background: var(--green); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--sb-h));
  display: flex; flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* instrument grid, faint, behind everything */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(147, 161, 174, 0.13) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(60% 70% at 70% 50%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000 0%, transparent 100%);
}
.hero::after {
  /* a vignette so the helix sinks into the page rather than sitting on it */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(56% 55% at 73% 48%, transparent 0%, transparent 55%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 82%, var(--bg) 100%);
}
.helix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero-inner { position: relative; z-index: 2; flex: 1; display: grid; align-items: center; padding-top: 32px; padding-bottom: 32px; pointer-events: none; }
.hero-copy { max-width: 640px; pointer-events: auto; }
.hero-cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.stats {
  display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 18px;
  padding-top: 10px; border-top: 1px solid var(--rule-2);
}
.stats div { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.stats dt { order: 2; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.stats dd { order: 1; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }

.hero-foot { position: relative; z-index: 2; border-top: 1px solid var(--rule-2); background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg)); }
.hero-foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 92px; padding-top: 14px; padding-bottom: 14px; }
.helix-key { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); display: inline-block; }
.helix-note { font-size: 0.72rem; color: var(--dim-2); letter-spacing: 0.02em; }

/* the finding currently nearest the viewer on the helix */
.focus { min-width: 0; }
.focus-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  cursor: pointer;
  animation: fade-in .45s var(--ease);
}
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.focus-fig { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.focus-fig .fig { font-size: 2.1rem; }
.focus-fig .fig-label { max-width: 16em; }
.focus-meta { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.focus-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.focus-title { font-weight: 560; letter-spacing: -0.015em; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.focus-species { color: var(--dim); font-size: 0.875rem; }
.focus-open { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--brand); white-space: nowrap; transition: transform .25s var(--ease); }
.focus-card:hover .focus-open { transform: translateX(3px); }
.focus-empty { color: var(--dim); font-size: 0.9rem; }

/* figures — the atom of the whole site */
.fig {
  display: block;
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv11" 1;
  color: var(--ink);
  transition: color .3s;
}
.fig-label { display: block; font-size: 0.875rem; color: var(--dim); line-height: 1.3; text-wrap: pretty; }
.fig.long { letter-spacing: -0.035em; }

/* ── sections ─────────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--rule-2); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px 48px; align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head .section-sub { padding-bottom: 6px; }

/* ── the wire ─────────────────────────────────────────────────────────────── */
.stream { background: var(--bg-2); }
.wire { border-top: 1px solid var(--rule); }
.wire-row {
  display: grid;
  grid-template-columns: 92px 104px 12px 150px minmax(0, 1fr) auto 118px;
  gap: 18px; align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--rule-2);
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.wire-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.wire-row.is-new { animation: land 2.6s var(--ease); }
@keyframes land { 0% { background: var(--brand-soft); } 100% { background: transparent; } }
.wire-row time { color: var(--dim); }
.wire-kind { color: var(--dim-2); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.68rem; }
.wire-compound { font-weight: 560; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wire-title { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wire-fig { font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wire-id { color: var(--dim-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wire-row .badge { justify-self: start; }

/* ── filters & cards ──────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.82rem; color: var(--dim);
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ink); border-color: var(--dim); }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--dim)); }
.filter-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.active-filters { display: flex; gap: 6px; }
.active-filters .chip { border-color: var(--brand); color: var(--ink); }
.search input {
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); font: inherit; font-size: 0.9rem; padding: 8px 0; width: 240px;
  transition: border-color .2s;
}
.search input:focus { outline: none; border-color: var(--ink); }
.search input::placeholder { color: var(--dim-2); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.card {
  background: var(--bg);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  cursor: pointer;
  position: relative;
  transition: background .25s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--c); opacity: 0; transition: opacity .25s;
}
.card:hover, .card:focus-visible { background: var(--surface); }
.card:hover::before, .card:focus-visible::before { opacity: 1; }
.card:hover .fig { color: var(--c); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-fig { margin-top: 6px; }
.card-fig .fig { font-size: clamp(2.6rem, 3.6vw, 3.4rem); }
.card-fig .fig.long { font-size: clamp(1.9rem, 2.6vw, 2.4rem); }
.card-fig .fig-label { margin-top: 6px; }
.card-title { font-size: 0.98rem; font-weight: 540; line-height: 1.35; letter-spacing: -0.012em; color: var(--ink-2); margin-top: auto; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-species { color: var(--dim); font-size: 0.85rem; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.card-compound { font-weight: 600; letter-spacing: -0.01em; font-size: 0.9rem; }
.card-foot .mono { color: var(--dim-2); }
.empty { margin-top: 24px; color: var(--dim); }

/* ── principles ───────────────────────────────────────────────────────────── */
.principles { padding: clamp(56px, 7vw, 96px) 0; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.principle { background: var(--bg); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.principle-n { color: var(--brand); font-size: 0.75rem; letter-spacing: 0.08em; }
.principle h3 { font-size: 1.25rem; }
.principle p { color: var(--dim); font-size: 0.95rem; text-wrap: pretty; }

/* ── evidence map ─────────────────────────────────────────────────────────── */
.map { background: var(--bg-2); }
.map-grid { display: flex; flex-direction: column; gap: 28px; }
.map-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.map-group-head { position: sticky; top: calc(var(--nav-h) + 12px); display: flex; flex-direction: column; gap: 6px; }
.map-group-head .badge { align-self: flex-start; }
.map-group-head p { color: var(--dim); font-size: 0.82rem; text-wrap: pretty; }
.tiles { display: flex; flex-wrap: wrap; gap: 1px; padding: 1px; }
.tile {
  flex: 0 0 168px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule);
  padding: 16px 14px 14px;
  text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 110px;
  position: relative;
  transition: background .2s;
}
.tile::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); opacity: .55; transition: opacity .2s; }
.tile:hover, .tile[aria-pressed="true"] { background: var(--surface); }
.tile:hover::after, .tile[aria-pressed="true"]::after { opacity: 1; }
.tile-name { font-weight: 600; letter-spacing: -0.015em; font-size: 1.02rem; }
.tile-class { color: var(--dim-2); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
.tile-count { margin-top: auto; color: var(--dim); font-size: 0.72rem; }
.tile.quiet .tile-name { color: var(--ink-2); }
.tile.quiet .tile-count { color: var(--dim-2); }

.brief {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px 56px; align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--rule);
  background:
    radial-gradient(70% 120% at 100% 0%, var(--brand-soft), transparent 60%),
    var(--bg);
}
.brief h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; margin-top: 10px; }
.brief-copy p:last-child { color: var(--dim); margin-top: 12px; text-wrap: pretty; }
.brief-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.brief-form input {
  background: transparent; border: 1px solid var(--rule); color: var(--ink);
  font: inherit; padding: 12px 14px; min-width: 0;
  transition: border-color .2s;
}
.brief-form input:focus { outline: none; border-color: var(--ink); }
.brief-form .btn { background: var(--brand); border-color: var(--brand); color: #14060F; }
.form-note { grid-column: 1 / -1; color: var(--dim); min-height: 1.2em; font-size: 0.75rem; }
.form-note a { color: var(--brand); }

/* ── regulatory radar ─────────────────────────────────────────────────────── */
.votes { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.vote {
  background: var(--bg);
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 120px 96px;
  gap: 20px; align-items: center;
  padding: 16px 20px;
}
.vote-name { font-weight: 600; letter-spacing: -0.015em; }
.vote-bar { display: flex; height: 8px; gap: 2px; }
.vote-bar i { display: block; height: 100%; }
.vote-bar .y { background: var(--green); }
.vote-bar .n { background: var(--red); }
.vote-bar .a { background: var(--dim-2); }
.vote-tally { color: var(--dim); font-variant-numeric: tabular-nums; }
.vote-tally b { color: var(--ink); font-weight: 600; }
.vote-verdict { justify-self: end; }
.vote-key { display: flex; gap: 16px; padding: 12px 20px; background: var(--bg); color: var(--dim); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.vote-key span { display: inline-flex; align-items: center; gap: 6px; }
.vote-key i { width: 10px; height: 6px; display: inline-block; }
.radar-note { margin-top: 24px; color: var(--ink-2); max-width: 60em; text-wrap: pretty; }
.radar-note a { color: var(--brand); }
.radar-note .mono { display: block; margin-top: 8px; color: var(--dim); }

/* ── footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--rule); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-never ul { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 0.8rem; }
.footer-never li::before { content: "✗"; color: var(--red); margin-right: 10px; }
.footer-build { margin-top: 10px; font-size: 0.72rem; color: var(--dim-2); }
.disclaimer { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--rule-2); color: var(--dim); }

/* ── detail panel ─────────────────────────────────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(600px, 100vw);
  background: var(--bg);
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column;
  transform: translateX(0);
  animation: slide .4s var(--ease);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.panel-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--rule-2); }
.panel-nav { display: flex; align-items: center; gap: 6px; }
.icon-btn { padding: 6px 10px; border: 1px solid var(--rule); font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.panel-body { overflow-y: auto; padding: 28px 28px 48px; display: flex; flex-direction: column; gap: 22px; }
.panel-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-compound { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); }
.panel-fig .fig { font-size: clamp(3rem, 8vw, 4.6rem); }
.panel-fig .fig.long { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.panel-fig .fig-label { margin-top: 8px; font-size: 1rem; }
.panel h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.025em; margin: 0; }
.panel-species { font-size: 1rem; color: var(--ink-2); padding: 12px 14px; border-left: 2px solid var(--c, var(--dim)); background: color-mix(in srgb, var(--c, var(--dim)) 7%, transparent); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.facts div { background: var(--bg); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.facts dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim-2); }
.facts dd { font-weight: 560; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.panel-abstract { color: var(--ink-2); text-wrap: pretty; }
.panel-tier { color: var(--dim); font-size: 0.85rem; }
.panel-tier b { color: var(--c, var(--ink)); font-weight: 600; }
.panel-cite { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel-cite .btn { padding: 10px 14px; font-size: 0.88rem; }
.panel-cite .btn.ghost { color: var(--ink-2); }
.panel-posts { display: flex; flex-direction: column; gap: 14px; }
.post { border: 1px solid var(--rule); }
.post img { width: 100%; }
.post-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.post-head { font-weight: 600; letter-spacing: -0.015em; }
.post-cap { color: var(--dim); font-size: 0.85rem; white-space: pre-wrap; }
.panel-disc { color: var(--dim-2); font-family: var(--mono); font-size: 0.72rem; padding-top: 16px; border-top: 1px solid var(--rule-2); }

/* ── reveal ───────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal { transition-delay: calc(var(--i, 0) * 35ms); }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .wire-row { grid-template-columns: 92px 12px 130px minmax(0, 1fr) auto; }
  .wire-kind, .wire-id { display: none; }
  .vote { grid-template-columns: 150px minmax(0, 1fr) 110px 90px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-inner { padding-top: 12px; }
  .hero::after { background: radial-gradient(70% 60% at 50% 40%, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 60%, var(--bg) 100%), linear-gradient(to bottom, transparent 75%, var(--bg) 100%); }
  .helix { opacity: .55; }
  .hero-foot-inner { grid-template-columns: 1fr; }
  .helix-key { align-items: flex-start; }
  .legend { justify-content: flex-start; }
  .section-head { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
  .map-group { grid-template-columns: 1fr; }
  .tile { flex: 1 1 140px; }
  .map-group-head { position: static; }
  .brief { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .filter-right { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .vote { grid-template-columns: 1fr auto; grid-template-areas: "name verdict" "bar bar" "tally tally"; gap: 10px 16px; }
  .vote-name { grid-area: name; }
  .vote-bar { grid-area: bar; }
  .vote-tally { grid-area: tally; }
  .vote-verdict { grid-area: verdict; }
}
@media (max-width: 640px) {
  .wire-row { grid-template-columns: 78px 10px minmax(0, 1fr) auto; }
  .wire-compound { display: none; }
  .wire-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .grid { grid-template-columns: 1fr; }
  .focus-card { grid-template-columns: 1fr; gap: 10px; }
  .focus-open { display: none; }
  .stats { gap: 0 20px; }
  .stats dd { font-size: 1.25rem; }
  .panel-body { padding: 20px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
  .panel, .backdrop, .focus-card { animation: none; }
  .brand .mark, .btn, .focus-open { transition: none; }
}

/* ── terminal layer ───────────────────────────────────────────────────────── */
.ps1 { color: var(--brand); font-family: var(--mono); }
.caret {
  display: inline-block; width: 0.55em; height: 1.05em; margin-left: 4px; vertical-align: -0.15em;
  background: var(--ink-2); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.prompt {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prompt .ps1 { margin-right: 8px; }
.section-aside { display: flex; flex-direction: column; gap: 10px; }
.spark-line { color: var(--dim); font-size: 0.78rem; letter-spacing: 0; }
.spark-line b { color: var(--ink); font-weight: 500; letter-spacing: -0.02em; font-size: 0.95rem; vertical-align: -1px; }
.spark-line .lab { color: var(--dim-2); margin-right: 8px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; }

/* corpus by tier */
.tierbar-wrap { margin-top: 14px; }
.tierbar { display: flex; height: 6px; gap: 2px; }
.tierbar i { display: block; height: 100%; background: var(--c); opacity: .9; transition: opacity .2s, transform .2s; transform-origin: bottom; }
.tierbar i:hover { opacity: 1; transform: scaleY(1.6); }
.tierbar-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--dim); font-size: 0.7rem; }
.tierbar-key span { display: inline-flex; align-items: center; gap: 6px; }
.tierbar-key i { width: 6px; height: 6px; background: var(--c); display: inline-block; }
.tierbar-key b { color: var(--ink-2); font-weight: 500; }

/* evidence rank marks: ▮▮▮▮▮▯ */
.rank { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--dim-2); white-space: nowrap; }
.rank b { font-weight: 400; color: var(--c, var(--dim)); }

/* wire index */
.wire-row { grid-template-columns: 34px 92px 104px 12px 150px minmax(0, 1fr) auto 118px; }
.wire-i { color: var(--dim-2); font-size: 0.7rem; }

/* status bar */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: var(--sb-h);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 0 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule-2);
  font-size: 0.7rem; color: var(--dim); letter-spacing: 0.02em;
  white-space: nowrap;
}
.sb-brand { color: var(--brand); font-weight: 600; }
.sb-left, .sb-right { display: inline-flex; align-items: center; gap: 10px; }
.sb-hint { color: var(--dim-2); }
.sb-right #sb-clock { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cursor { display: inline-block; width: 7px; height: 12px; background: var(--brand); animation: blink 1.1s steps(1) infinite; }
.sb-ticker { display: block; overflow: hidden; min-width: 0; color: var(--dim); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.sb-track { display: inline-block; padding-left: 100%; animation: ticker var(--ticker-s, 90s) linear infinite; }
.sb-ticker:hover .sb-track { animation-play-state: paused; }
.sb-track span { margin-right: 28px; }
.sb-track b { color: var(--ink-2); font-weight: 500; }
.sb-track i { font-style: normal; color: var(--c, var(--dim)); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* search with a slash hint */
.search { position: relative; display: inline-flex; align-items: center; }
.search-slash { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 0.68rem; color: var(--dim-2); border: 1px solid var(--rule); padding: 1px 5px; pointer-events: none; }
.search input:focus + .search-slash, .search input:not(:placeholder-shown) + .search-slash { display: none; }
.search input { padding-right: 28px; }

/* sign-up as a shell */
.brief-what { margin-top: 14px; font-size: 0.72rem; color: var(--dim-2); line-height: 1.7; }
.brief-what a { color: var(--brand); }
.term-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); padding: 0 12px; background: color-mix(in srgb, var(--bg) 60%, transparent); transition: border-color .2s; }
.term-input:focus-within { border-color: var(--ink); }
.term-input .ps1 { font-size: 0.78rem; }
.term-input .ps1::after { content: " >"; color: var(--dim-2); }
.term-input input { border: 0; padding: 12px 0; flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.9rem; background: transparent; }
.term-input input:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.term-out { grid-column: 1 / -1; margin: 0; min-height: 3.6em; font-size: 0.75rem; line-height: 1.6; color: var(--dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out .ok { color: var(--green); }
.term-out .err { color: var(--red); }
.term-out .cmd { color: var(--ink-2); }
.term-out a { color: var(--brand); }

/* hero mini sign-up */
.hero-signup { margin-top: 14px; max-width: 420px; }
.hero-signup .term-input.compact { padding: 0 6px 0 12px; gap: 8px; }
.hero-signup .term-input .btn { padding: 9px 14px; font-size: 0.85rem; flex-shrink: 0; }
.hero-signup-note { margin-top: 9px; min-height: 1.3em; font-size: 0.72rem; color: var(--dim-2); line-height: 1.5; }
.hero-signup-note .ok { color: var(--green); }
.hero-signup-note .err { color: var(--red); }
.hero-signup-note a { color: var(--brand); }

/* panel record block */
.record { font-family: var(--mono); font-size: 0.72rem; color: var(--dim-2); line-height: 1.7; padding: 12px 14px; border: 1px dashed var(--rule); overflow-wrap: anywhere; }
.record b { color: var(--dim); font-weight: 400; }

@media (max-width: 1100px) {
  .wire-row { grid-template-columns: 34px 92px 12px 130px minmax(0, 1fr) auto; }
}
@media (max-width: 860px) {
  .statusbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .sb-left { display: none; }
  .sb-hint { display: none; }
  .section-aside { gap: 6px; }
}
@media (max-width: 640px) {
  .wire-row { grid-template-columns: 78px 10px minmax(0, 1fr) auto; }
  .wire-i { display: none; }
  .prompt { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .caret, .cursor { animation: none; }
  .sb-track { animation: none; padding-left: 0; }
}
