:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --border: #e5e8ec;
  --border-strong: #c8ced7;
  --text: #0a0c10;
  --muted: #515c69;
  --muted-2: #8b929d;
  --ink: #0a0c10;
  --max: 760px;
  --wide: 1180px;
  --void: #07080b;
  --star: #e8e2d4;
  --obs: #1d4f3a;
  --inf: #6b4a1b;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: Sora, Inter, sans-serif; letter-spacing: -0.025em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.site-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-top .inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 58px; width: min(100% - 40px, var(--wide)); margin: 0 auto;
}
.site-top .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
}
.site-top .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; align-items: center; }
.site-top nav a { font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-top nav a:hover, .site-top nav a[aria-current="page"] { color: var(--ink); }
.site-top nav a[aria-current="page"] { font-weight: 700; }

.wrap { width: min(100% - 40px, var(--wide)); margin: 0 auto; }
.narrow { width: min(100% - 40px, var(--max)); margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted-2); margin: 22px 0 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs span { margin: 0 6px; opacity: 0.5; }

.hero { padding: 18px 0 36px; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08; letter-spacing: -0.035em; max-width: 16ch; margin-bottom: 16px;
}
.lede { font-size: 1.16rem; color: var(--muted); max-width: 46ch; margin-bottom: 22px; }
.beat { font-size: 1.05rem; color: var(--text); max-width: 40ch; margin: 0 0 10px; }
.beat em { font-style: normal; font-weight: 650; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 16px; border-radius: 10px; font-weight: 650; font-size: 14px;
  text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--ink); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: var(--bg-alt);
}
.stat b {
  display: block;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.stat span { font-size: 12.5px; color: var(--muted); }
.note {
  font-size: 13.5px; color: var(--muted-2); margin: 14px 0 0; max-width: 72ch;
}

section.block { padding: 56px 0; border-top: 1px solid var(--border); }
section.block#galaxy { padding-top: 12px; border-top: 0; }
section.block h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; max-width: 22ch; }
section.block .prose, section.block p.intro { color: var(--muted); max-width: 62ch; margin-bottom: 16px; }
section.block p.intro + p.intro { margin-top: -6px; }

.probe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.thread {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: #fff;
}
.thread .sub { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.thread h3 { font-size: 1rem; margin: 6px 0 10px; line-height: 1.35; }
.thread a { font-size: 13px; font-weight: 650; color: var(--ink); }

.thesis {
  margin-top: 22px;
  border-left: 3px solid var(--ink);
  padding: 6px 0 6px 18px;
  font-size: 1.12rem;
  max-width: 48ch;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.pair article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  background: var(--bg-alt);
}
.pair h3 { font-size: 0.95rem; margin-bottom: 8px; }
.pair p { color: var(--muted); font-size: 0.96rem; }

.obs, .inf {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; margin-right: 6px;
}
.obs { background: #e8f3ec; color: var(--obs); }
.inf { background: #f6eedc; color: var(--inf); }

.galaxy-shell {
  background: var(--void);
  color: #ece7dc;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1a1d24;
  position: relative;
}
.galaxy-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #1d212a;
}
.galaxy-toolbar label { font-size: 12px; color: #9aa0a8; }
.galaxy-toolbar select, .galaxy-toolbar input[type="search"] {
  background: #11141a; color: #ece7dc; border: 1px solid #2a303a;
  border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px;
}
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid #2a303a; background: transparent; color: #c9c3b6;
  border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: #ece7dc; color: #111; border-color: #ece7dc; }
.galaxy-count { margin-left: auto; font-size: 12px; color: #9aa0a8; }
.galaxy-stage { position: relative; height: min(72vh, 720px); }
.galaxy-stage canvas { width: 100%; height: 100%; display: block; touch-action: manipulation; cursor: default; }
.galaxy-axes {
  position: absolute; inset: 0; pointer-events: none;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232,226,212,0.42);
}
.galaxy-axes .x-left { position: absolute; left: 16px; bottom: 14px; }
.galaxy-axes .x-right { position: absolute; right: 16px; bottom: 14px; text-align: right; }
.galaxy-axes .y-top { position: absolute; left: 16px; top: 14px; }
.galaxy-axes .y-top-right { position: absolute; right: 16px; top: 14px; text-align: right; }
.galaxy-axes .y-bot { position: absolute; left: 16px; bottom: 36px; }
.tooltip {
  position: absolute; z-index: 5; max-width: 280px;
  background: #11141a; color: #ece7dc; border: 1px solid #2a303a;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; pointer-events: none;
  box-shadow: 0 16px 40px -20px #000;
}
.tooltip b { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa0a8; margin-bottom: 4px; }
.fallback-list { display: none; padding: 16px; color: #c9c3b6; }
.fallback-list[data-on="true"] { display: block; }
.fallback-list li { margin: 8px 0; }

.inspector {
  position: fixed; inset: 0 0 0 auto; width: min(440px, 100%);
  background: #fff; color: var(--text); z-index: 50;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow: auto;
  padding: 22px 22px 40px;
}
.inspector.open { transform: none; }
.inspector header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.inspector h2 { font-size: 1.05rem; }
.inspector .body { white-space: pre-wrap; font-size: 0.98rem; line-height: 1.6; margin: 12px 0; }
.inspector dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 13.5px; }
.inspector dt { color: var(--muted-2); }
.inspector .dims { display: grid; gap: 8px; margin: 12px 0; }
.bar { height: 6px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); }
.scrim {
  position: fixed; inset: 0; background: rgba(10,12,16,0.28); z-index: 45;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.arg-outline { display: grid; gap: 12px; }
.arg-claim {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 14px;
  background: #fff;
}
.arg-claim header {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  margin-bottom: 6px;
}
.arg-claim h3 { font-size: 1.02rem; line-height: 1.35; max-width: 46ch; }
.arg-claim header span { font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.arg-claim p { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }
.arg-claim ul { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--border); }
.arg-claim li { padding: 8px 0 0; font-size: 0.92rem; color: var(--text); }
.arg-rel {
  display: inline-block; min-width: 7.2rem;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2);
}
.arg-open { margin-top: 10px; font-size: 0.88rem; }
.arg-also { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

.compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.constellation {
  border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  background: #fff;
}
.constellation h3 { font-size: 0.95rem; margin-bottom: 8px; }
.rowbar { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: center; font-size: 12px; margin: 5px 0; }
.rowbar .track { height: 6px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.rowbar .track > i { display: block; height: 100%; background: var(--ink); }

.signals { display: flex; flex-wrap: wrap; gap: 8px; }
.signal {
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px;
  font-size: 13px; background: var(--bg-alt);
}
.signal b { font-weight: 750; }

.steel { display: grid; gap: 12px; }
.steel article { border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.steel h3 { font-size: 1.02rem; margin-bottom: 8px; }
.steel p { color: var(--muted); }
.sources { margin-top: 10px; font-size: 13px; }
.sources button, .sources a {
  display: block; text-align: left; width: 100%;
  background: none; border: 0; border-top: 1px solid var(--border);
  padding: 8px 0; cursor: pointer; color: var(--muted); font: inherit;
}

.explorer-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.explorer-tools input, .explorer-tools select {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px;
}
.ev-list { display: grid; gap: 10px; }
.ev-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff;
  cursor: pointer; text-align: left; font: inherit; width: 100%;
}
.ev-item:hover, .ev-item:focus { border-color: var(--ink); }
.ev-item .meta { font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }

.method { color: var(--muted); font-size: 0.98rem; }
.method ul { margin: 8px 0 16px 1.15rem; }
.method li { margin: 6px 0; }
.next-list { columns: 2; margin: 10px 0 0 1.15rem; color: var(--muted); }
@media (max-width: 700px) { .next-list { columns: 1; } }

footer.site-foot {
  border-top: 1px solid var(--border); background: var(--bg-alt);
  padding: 32px 0 28px; margin-top: 12px; font-size: 13.5px; color: var(--muted);
}
footer.site-foot .inner { width: min(100% - 40px, var(--wide)); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 28px; }
footer.site-foot a { color: var(--muted); }
footer.site-foot strong { color: var(--ink); display: block; margin-bottom: 6px; }

@media (max-width: 800px) {
  .stat-row, .probe-grid, .pair { grid-template-columns: 1fr 1fr; }
  .site-top nav a:not(.keep):not([aria-current]) { display: none; }
}
@media (max-width: 560px) {
  .stat-row, .probe-grid, .pair { grid-template-columns: 1fr; }
  .galaxy-stage { height: 70vh; }
  .inspector { width: 100%; }
}
