:root {
  /* v0mma: a museum of dead trading strategies. Warm ink and parchment from the painting, sky blue and lion ochre
     as the two accents, red kept for verdicts. Layout: wide editorial columns, numbers in mono. */
  --bg: #0c0a08;
  --bg-2: #120f0b;
  --panel: #17130e;
  --line: #2c251b;
  --text: #efe6d6;
  --muted: #a5977f;
  --sky: #9cc2e6;
  --sand: #d8b26e;
  --blood: #e3654f;
  --ok: #93d3a2;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sand); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(12, 10, 8, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: 0.01em; color: var(--text); text-decoration: none; line-height: 1; }
.brand .o { position: relative; display: inline-block; color: var(--sand); }
.brand .o::after { content: ""; position: absolute; left: 18%; right: 18%; top: 52%; height: 2px; background: var(--sand); transform: rotate(-60deg); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--bg); background: var(--sand); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--sand); }
h2 { font-size: clamp(30px, 3.8vw, 48px); }
h3 { font-size: 23px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin: 22px 0 0; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose h3 { margin: 34px 0 12px; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.rule-top { border-top: 1px solid var(--line); }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--panel); transition: transform 0.15s ease, border-color 0.15s ease; }
.btn:hover { border-color: var(--sand); color: var(--text); transform: translateY(-1px); }
.btn.primary { background: var(--sand); color: #1a130a; border-color: var(--sand); }
.btn.primary:hover { color: #1a130a; filter: brightness(1.06); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.hero-art { position: relative; aspect-ratio: 2 / 3; max-height: 78vh; justify-self: center; width: 100%; max-width: 470px; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art figcaption { position: absolute; left: 0; right: 0; bottom: -30px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg-2); padding: 26px 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
a.card { text-decoration: none; color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
a.card:hover { border-color: var(--sand); transform: translateY(-2px); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blood); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verdict { font-family: var(--display); font-size: 21px; line-height: 1.25; color: var(--text); }

/* ---------- chips / filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13.5px var(--sans); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.flag { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 4px; border: 1px solid rgba(216, 178, 110, 0.45); color: var(--sand); margin: 2px 4px 2px 0; white-space: nowrap; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
td.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- canvases ---------- */
.stage { position: relative; background: #0a0806; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- notes / footer ---------- */
.note { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.6; }
.disclaimer { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--bg-2); color: var(--muted); font-size: 13.5px; }
.disclaimer b { color: var(--text); }
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-foot h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); font-weight: 500; }
.site-foot a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: var(--text); }
.site-foot .legal { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- reveal (visible at rest; only enhanced when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .grid-3, .grid-4, .site-foot .wrap { grid-template-columns: 1fr; }
  .nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
