:root {
  --bg: #07090d;
  --panel: #0d1218;
  --panel-2: #121922;
  --line: #1b2430;
  --text: #e6edf6;
  --muted: #8a96a8;
  --accent: #7cf0c8;
  --accent-2: #6cb8ff;
  --confirmed: #5cf29b;
  --live: #6cb8ff;
  --mixed: #c4a8ff;
  --inconclusive: #ffb84d;
  --rejected: #ff5d6c;
  --tool: #8a96a8;
  --radius: 14px;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 240, 200, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(108, 184, 255, .06), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, canvas, svg { max-width: 100%; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---- hero ---- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; padding: 96px 0 72px; }
#equity { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero-in { position: relative; }
.kicker { color: var(--accent); margin: 0 0 18px; text-transform: uppercase; }
h1 {
  font-size: clamp(38px, 7vw, 84px); line-height: 1.02; letter-spacing: -.035em;
  margin: 0 0 22px; font-weight: 800;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, #b9a4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 680px; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.02);
  font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #04110c; border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }

/* ---- stats ---- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: -10px;
  position: relative; z-index: 1;
}
.stat {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px;
}
.num { font: 800 34px/1 var(--sans); letter-spacing: -.02em; }
.lbl { color: var(--muted); font-size: 13px; margin-top: 6px; }
.c-confirmed { color: var(--confirmed); }
.c-rejected { color: var(--rejected); }
.c-inconclusive { color: var(--inconclusive); }

/* ---- live ---- */
.live { margin-top: 28px; }
.live-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(108,184,255,.12), rgba(124,240,200,.06) 60%, var(--panel));
  border: 1px solid rgba(108,184,255,.35); border-radius: 18px; padding: 28px;
}
.live-head { display: flex; align-items: center; gap: 10px; color: var(--live); margin-bottom: 8px; }
.pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(108,184,255,.7); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(108,184,255,.6); } 70% { box-shadow: 0 0 0 12px rgba(108,184,255,0); } 100% { box-shadow: 0 0 0 0 rgba(108,184,255,0); } }
.live-card h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; }
.live-card p { color: var(--muted); max-width: 760px; margin: 0 0 14px; }
.more { color: var(--accent); }

/* ---- sections ---- */
section { margin-top: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 30px; margin: 0; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---- chips ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font: 600 13px var(--sans); color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { color: #04110c; background: var(--accent); border-color: var(--accent); }

/* ---- cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  color: var(--text); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { text-decoration: none; transform: translateY(-2px); border-color: #2b3a4e; box-shadow: 0 12px 30px -18px rgba(124,240,200,.35); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.card .more { font-size: 12px; }
.ref { color: var(--muted); }

.badge {
  font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 9px; border-radius: 6px; border: 1px solid currentColor; white-space: nowrap;
}
.v-confirmed { color: var(--confirmed); background: rgba(92,242,155,.08); }
.v-live { color: var(--live); background: rgba(108,184,255,.1); }
.v-mixed { color: var(--mixed); background: rgba(196,168,255,.1); }
.v-inconclusive { color: var(--inconclusive); background: rgba(255,184,77,.08); }
.v-rejected { color: var(--rejected); background: rgba(255,93,108,.08); }
.v-tool { color: var(--tool); background: rgba(138,150,168,.08); }

/* ---- table ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
td { color: var(--text); }
td:first-child { color: var(--accent); font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* ---- principles ---- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.principle {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  background: var(--panel);
}
.principle h3 { margin: 0 0 8px; font-size: 16px; }
.principle p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- footer ---- */
.foot { margin-top: 90px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 4px 0; }

/* ---- study page ---- */
.study-head { padding-top: 56px; }
.back { color: var(--muted); display: inline-block; margin-bottom: 22px; }
.study-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.study-head h1 { font-size: clamp(30px, 5vw, 52px); }
.study-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 40px; }
.toc { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow: auto; }
.toc-label { color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.toc-nav ul { list-style: none; padding: 0; margin: 0; }
.toc-nav ul ul { padding-left: 12px; }
.toc-nav a { display: block; color: var(--muted); font-size: 13.5px; padding: 4px 0; }
.toc-nav a:hover { color: var(--accent); text-decoration: none; }

.prose { min-width: 0; font-size: 15.5px; }
.prose h1, .prose h2, .prose h3 { letter-spacing: -.015em; line-height: 1.25; }
.prose h2 { font-size: 24px; margin: 46px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 18px; margin: 30px 0 10px; color: #cfe0f5; }
.prose p, .prose li { color: #c9d3e0; }
.prose strong { color: var(--text); }
.prose code {
  font: 13px var(--mono); background: var(--panel-2); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 6px; color: #bfe9ff;
}
.prose pre {
  background: #05070a; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.5;
}
.prose pre code { background: none; border: 0; padding: 0; color: #cfe0f5; }
.prose table {
  display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 13.5px; border: 1px solid var(--line); border-radius: 10px;
}
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--panel-2); color: var(--text); font-weight: 600; }
.prose blockquote {
  margin: 20px 0; padding: 12px 18px; border-left: 3px solid var(--accent);
  background: rgba(124,240,200,.05); border-radius: 0 10px 10px 0; color: #d6e3f0;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* ---- phones ---- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:last-child { grid-column: span 2; }
  .study-grid { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--panel); }
  .toc-nav a { font-size: 14px; }
}
@media (max-width: 560px) {
  .hero { min-height: auto; padding: 64px 0 48px; }
  .grid { grid-template-columns: 1fr; }
  section { margin-top: 48px; }
  .live-card { padding: 22px; }
  .live-card h2 { font-size: 22px; }
}
/* ---- feed availability ---- */
.fa-wrap h3 { font-size: 18px; margin: 34px 0 6px; letter-spacing: -.01em; }
.fa-wrap > .mono { color: var(--muted); margin: 0 0 12px; font-size: 12px; line-height: 1.5; }
.fa-lede p { color: #c9d3e0; max-width: 780px; margin: 0 0 12px; }
.fa-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 18px 0 4px; }
.fa-legend > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.fa-legend .fa-tag { margin: 0 0 8px; }
.fa-tag {
  display: inline-block; font: 700 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--c); border: 1px solid currentColor; border-radius: 5px; padding: 4px 6px; margin-right: 8px;
  white-space: nowrap; vertical-align: 1px;
}
.st-verified { --c: var(--confirmed); }
.st-observed { --c: var(--live); }
.st-documented { --c: var(--mixed); }
.st-unknown { --c: var(--muted); }
.fa-day, .fa-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.fa-day { padding: 4px 16px 10px; }
.fa-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.fa-row.fa-axis { border-top: 0; padding-bottom: 4px; }
.fa-meta strong { display: block; font-size: 14.5px; line-height: 1.35; margin-top: 5px; }
.fa-meta strong a { color: var(--text); }
.fa-note { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.fa-axis .fa-meta { color: var(--muted); font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.fa-track {
  position: relative; height: 30px; border-radius: 8px; background-color: #0a0e14;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 12.5% 100%;
}
.fa-track.fa-scale { height: 34px; background: none; }
.fa-tl {
  position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap;
  font: 500 10.5px/1.3 var(--mono); color: var(--muted);
}
.fa-tl b { color: var(--text); font-weight: 600; }
.fa-tl.first { transform: none; }
.fa-tl.last { transform: translateX(-100%); }
.fa-pt {
  position: absolute; top: 5px; bottom: 5px; width: 2px; margin-left: -1px; border-radius: 1px;
  background: var(--c);
}
.fa-pt.hollow { width: 3px; margin-left: -1.5px; background: transparent; box-shadow: inset 0 0 0 1px var(--c); }
.fa-win {
  position: absolute; top: 4px; bottom: 4px; border-radius: 4px; opacity: .9;
  background-image: repeating-linear-gradient(135deg, var(--c) 0 2px, transparent 2px 7px);
  box-shadow: inset 0 0 0 1px var(--c);
}
.fa-none { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); }

.fa-week-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
table.fa-week { table-layout: fixed; font-size: 12.5px; }
table.fa-week th, table.fa-week td { padding: 9px 8px; font-size: 12.5px; line-height: 1.45; text-align: left; vertical-align: top; }
table.fa-week thead th { font: 600 10.5px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
table.fa-week tbody th { width: 200px; font: 600 13px/1.35 var(--sans); color: var(--text); text-transform: none; letter-spacing: 0; white-space: normal; }
table.fa-week tbody th .fa-tag { display: block; width: max-content; margin: 0 0 5px; }
table.fa-week td { color: #c9d3e0; }
table.fa-week .cl { display: block; margin-bottom: 4px; }
table.fa-week .cl:last-child { margin-bottom: 0; }

table.fa-detail { font-size: 13.5px; }
table.fa-detail th, table.fa-detail td { padding: 11px 12px; vertical-align: top; }
table.fa-detail tbody th { font: 600 14px/1.35 var(--sans); color: var(--text); text-transform: none; letter-spacing: 0; width: 25%; }
table.fa-detail tbody td { color: #c9d3e0; line-height: 1.5; }
table.fa-detail .fa-tag { margin: 0; }

@media (max-width: 720px) {
  table.fa-stack { table-layout: auto; }
  table.fa-stack thead { display: none; }
  table.fa-stack, table.fa-stack tbody, table.fa-stack tr, table.fa-stack th, table.fa-stack td { display: block; width: 100%; }
  table.fa-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.fa-stack tr:last-child { border-bottom: 0; }
  table.fa-stack tbody th { padding: 0 0 6px; width: 100%; }
  table.fa-stack td { padding: 3px 0; border: 0; }
  table.fa-stack td.empty { display: none; }
  table.fa-stack td[data-label]:not([data-label=""])::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 600 10.5px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  }
  table.fa-week tbody th .fa-tag { margin-bottom: 6px; }
  table.fa-week .cl { margin-bottom: 2px; }
  table.fa-detail tbody th { width: 100%; }
  .fa-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .fa-track { height: 26px; }
  .fa-day { padding: 4px 12px 10px; }
  .fa-tl.sm-hide { display: none; }
  .fa-none { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

#studies { margin-top: 48px; }
div.card { cursor: default; }
@media (max-width: 640px) { 