:root {
  color-scheme: dark;
  --bg: #050706;
  --bg-2: #0a0e0b;
  --panel: rgba(18, 24, 20, 0.62);
  --panel-solid: #0f1511;
  --line: rgba(var(--fg-rgb), 0.08);
  --line-2: rgba(var(--fg-rgb), 0.14);
  --text: #eef2ec;
  --muted: #98a196;
  --dim: #677064;
  --green: #76b900;
  --green-2: #a3e635;
  --green-glow: rgba(118, 185, 0, 0.35);
  --red: #e0607a;
  --violet: #9b8cff;
  --amber: #f0b54a;
  --fg-rgb: 255, 255, 255;
  --text-2: #dfe6dc;
  --text-3: #c9d1c6;
  --text-strong: #ffffff;
  --nav-bg: rgba(8, 11, 9, 0.72);
  --shadow: rgba(0, 0, 0, 0.8);
  --s0: #7b6a86; --s1: #5d655a; --s2: #76b900; --s3: #4f8a00; --s4: #c4f06a;
  --wrap: min(1200px, calc(100vw - 48px));
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before { /* soft ambient glow */
  content: ""; position: fixed; inset: -20vh -10vw auto auto; width: 70vw; height: 70vh; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(118, 185, 0, 0.07), transparent);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.wrap { width: var(--wrap); margin: 0 auto; }
.label { margin: 0; color: var(--dim); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.glass {
  background: linear-gradient(180deg, rgba(var(--fg-rgb), 0.035), rgba(var(--fg-rgb), 0.01)), var(--panel);
  border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -40px var(--shadow), inset 0 1px 0 rgba(var(--fg-rgb), 0.04);
}

/* light theme: follows the system unless the visitor picks one (data-theme on <html>) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fafbf8;
    --bg-2: #f1f4ee;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-solid: #ffffff;
    --line: rgba(16, 24, 18, 0.1);
    --line-2: rgba(16, 24, 18, 0.17);
    --text: #121812;
    --muted: #525b50;
    --dim: #6c7569;
    --green: #76b900;
    --green-2: #437800;
    --green-glow: rgba(118, 185, 0, 0.3);
    --red: #c8405c;
    --violet: #6a5cf0;
    --amber: #b7791f;
    --fg-rgb: 16, 24, 18;
    --text-2: #1d241d;
    --text-3: #3a4238;
    --text-strong: #070a07;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --shadow: rgba(40, 56, 36, 0.22);
  --s0: #a08cae; --s1: #a3aa9f; --s2: #76b900; --s3: #3f6e00; --s4: #a6d93c;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafbf8;
  --bg-2: #f1f4ee;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --line: rgba(16, 24, 18, 0.1);
  --line-2: rgba(16, 24, 18, 0.17);
  --text: #121812;
  --muted: #525b50;
  --dim: #6c7569;
  --green: #76b900;
  --green-2: #437800;
  --green-glow: rgba(118, 185, 0, 0.3);
  --red: #c8405c;
  --violet: #6a5cf0;
  --amber: #b7791f;
  --fg-rgb: 16, 24, 18;
  --text-2: #1d241d;
  --text-3: #3a4238;
  --text-strong: #070a07;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --shadow: rgba(40, 56, 36, 0.22);
  --s0: #a08cae; --s1: #a3aa9f; --s2: #76b900; --s3: #3f6e00; --s4: #a6d93c;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; z-index: 40; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100vw - 28px)); display: flex; align-items: center; gap: 22px;
  padding: 10px 12px 10px 20px; border-radius: 999px; border: 1px solid transparent; transition: all 0.3s ease;
}
.nav.solid { background: var(--nav-bg); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand b { color: var(--green-2); font-weight: 700; }
.logo-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--green); box-shadow: 0 0 14px var(--green-glow); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 0.88rem; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(var(--fg-rgb), 0.05); }
.theme-btn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(var(--fg-rgb), 0.04); color: var(--muted); transition: color 0.2s, background 0.2s; }
.theme-btn:hover { color: var(--text); background: rgba(var(--fg-rgb), 0.08); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn svg { display: none; }
.theme-btn[data-mode="auto"] .i-auto, .theme-btn[data-mode="light"] .i-light, .theme-btn[data-mode="dark"] .i-dark { display: block; }
.nav-cta { padding: 7px 16px; border-radius: 999px; background: rgba(var(--fg-rgb), 0.07); border: 1px solid var(--line-2); font-size: 0.86rem; font-weight: 600; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero { background:
    radial-gradient(55% 45% at 82% 16%, rgba(118, 185, 0, 0.13), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(107, 92, 255, 0.08), transparent 70%), var(--bg); }
.hero-timeline { position: absolute; z-index: -1; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: min(1520px, calc(100vw - 24px)); height: clamp(150px, 18.5vw, 290px); }
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: 0.06; pointer-events: none;
  background-image: radial-gradient(rgba(var(--fg-rgb), 0.6) 0.5px, transparent 0.5px); background-size: 3px 3px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding: 116px 0 calc(clamp(150px, 18.5vw, 290px) + 56px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), 0.04); color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green-glow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--green-glow); } 70% { box-shadow: 0 0 0 10px rgba(118, 185, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(118, 185, 0, 0); } }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 800; white-space: nowrap; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--green-2), var(--green) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 18px 0 0; font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -0.01em; color: var(--text-2); max-width: 30ch; line-height: 1.3; }
.authors { margin: 16px 0 0; max-width: 64ch; color: var(--text-2); font-size: 1.02rem; line-height: 1.55; }
.authors sup { font-size: 0.7em; margin-left: 1px; color: var(--text-2); }
.authors .eq { font-style: normal; text-transform: none; letter-spacing: 0; margin-left: 16px; }
.authors .nv-logo { height: 20px; width: auto; display: block; fill: var(--text); }
.authors .nv-logo .nv-eye { fill: #76b900; }
.authors span { display: flex; align-items: center; margin-top: 10px; color: var(--dim); font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-lede { margin: 18px 0 0; color: var(--muted); max-width: 46ch; font-size: 1.02rem; }
.hero-stats { display: flex; gap: 0; margin: 34px 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stats div { flex: 1; padding: 16px 0; }
.hero-stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--mono); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--text-strong); }
.hero-stats b small { font-size: 0.55em; color: var(--green-2); margin-left: 2px; }
.hero-stats span { color: var(--muted); font-size: 0.82rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), 0.04);
  font-size: 0.9rem; font-weight: 600; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.btn:hover { border-color: rgba(var(--fg-rgb), 0.3); transform: translateY(-1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #061003; box-shadow: 0 10px 30px -10px var(--green-glow); }
.btn.ghost { color: var(--dim); border-style: dashed; cursor: default; }
.btn.ghost:hover { transform: none; border-color: var(--line-2); }

.race { padding: 22px 24px 18px; }
.race-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.race-head h2 { margin: 6px 0 0; font-size: 1.12rem; letter-spacing: -0.01em; }
.chip { flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(118, 185, 0, 0.14); color: var(--green-2); font-size: 0.72rem; font-weight: 600; border: 1px solid rgba(118, 185, 0, 0.3); }
.race-rows { position: relative; display: grid; gap: 10px; }
.race-row { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; align-items: center; font-size: 0.82rem; }
.race-row .name { color: var(--muted); text-align: right; line-height: 1.2; }
.race-row.ours .name { color: var(--text); font-weight: 600; }
.race-row .track { position: relative; height: 22px; }
.race-row .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 6px; background: rgba(var(--fg-rgb), 0.13);
  transform-origin: left; animation: grow 1.3s cubic-bezier(0.2, 0.7, 0.1, 1) both; animation-delay: var(--d, 0s); }
.race-row.ours .fill { background: linear-gradient(90deg, #3d6600, var(--green)); box-shadow: 0 0 22px -6px var(--green-glow); }
.race-row.ours.best .fill { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.race-row .val { position: absolute; top: 50%; left: calc(var(--w) + 8px); transform: translateY(-50%); font-family: var(--mono); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.race-row .val small { color: var(--dim); font-weight: 500; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rt-line { position: absolute; top: -6px; bottom: -6px; border-left: 1.5px dashed rgba(var(--fg-rgb), 0.4); pointer-events: none; }
.race-foot { display: flex; justify-content: space-between; margin-top: 14px; color: var(--dim); font-size: 0.72rem; }
.rt-key { display: inline-block; width: 14px; margin-right: 6px; vertical-align: middle; border-top: 1.5px dashed rgba(var(--fg-rgb), 0.45); }

/* ------------------------------------------------------------ sections */
.section { padding: 120px 0 40px; scroll-margin-top: 40px; }
.sec-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.sec-label span { font-family: var(--mono); color: var(--green-2); letter-spacing: 0; }
.sec-label::after { content: ""; width: 48px; height: 1px; background: var(--line-2); }
.sec-head { max-width: 820px; margin-bottom: 44px; }
.sec-head h2, .cite h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.sec-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.abstract { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.lead { margin: 0 0 28px; max-width: 78ch; font-size: clamp(1.06rem, 1.45vw, 1.22rem); line-height: 1.6; letter-spacing: -0.005em; color: var(--text-2); font-weight: 400; }
.lead strong { color: var(--text-strong); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.pillars article { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(118, 185, 0, 0.06), rgba(var(--fg-rgb), 0.01)); }
.pillars h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.pillars p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.pnum { font-family: var(--mono); color: var(--green-2); font-size: 0.8rem; font-weight: 700; }
.body { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 78ch; }
.body b { color: var(--text); }

/* ------------------------------------------------------------ showcase */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--fg-rgb), 0.03); }
.tabs button { padding: 8px 18px; border-radius: 999px; color: var(--muted); font-size: 0.88rem; font-weight: 600; transition: all 0.2s; }
.tabs button[aria-selected="true"] { background: rgba(var(--fg-rgb), 0.1); color: var(--text); }

/* ------------------------------------------------------------ method */
.deep { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.deep:first-of-type { border-top: 0; }
.deep-text h3 { margin: 10px 0 12px; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.deep-text p { margin: 0; color: var(--muted); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.facts li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.facts b { color: var(--text); font-family: var(--mono); margin-right: 4px; }
.diagram { padding: 22px; }
.diagram svg { width: 100%; height: auto; }
.diagram text { font-family: Inter, sans-serif; }
.meter { margin-top: 24px; display: grid; gap: 10px; }
.meter-row { display: grid; grid-template-columns: 11em 1fr 3em; gap: 12px; align-items: center; font-size: 0.86rem; color: var(--muted); }
.meter-row b { font-family: var(--mono); color: var(--text); text-align: right; }
.meter-row.ours span { color: var(--text); font-weight: 600; }
.meter-track { height: 10px; border-radius: 999px; background: rgba(var(--fg-rgb), 0.06); overflow: hidden; }
.meter-track i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 999px; background: rgba(var(--fg-rgb), 0.28); transform-origin: left; animation: grow 1.4s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.meter-row.ours .meter-track i { background: linear-gradient(90deg, var(--green), var(--green-2)); box-shadow: 0 0 16px var(--green-glow); }
.meter .label { margin-top: 2px; }

/* ------------------------------------------------------------ efficiency */
.eff { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 16px; }
.chart-card, .ladder { padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.card-head h3 { margin: 0; font-size: 1.08rem; }
.chart-card { display: flex; flex-direction: column; }
/* the chart grows to the height of the Sol-Engine card beside it; 300px is the floor (and the height when stacked) */
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; height: 300px; min-height: 300px; flex: 1 1 auto; }
.bgroup { display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.bcols { display: flex; align-items: flex-end; gap: 6px; border-bottom: 1px solid var(--line-2); min-height: 0; }
.bcol { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.1, 1) both; animation-delay: var(--d, 0s); }
.bcol.nm { background: repeating-linear-gradient(135deg, rgba(var(--fg-rgb), 0.06) 0 4px, transparent 4px 8px) !important; }
.bcol.cut::after { content: "≈"; position: absolute; left: 0; right: 0; top: 6px; text-align: center; color: rgba(0, 0, 0, 0.55); font-weight: 700; }
.bcol .v { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.7rem; white-space: nowrap; color: var(--text); }
.bcol.nm .v { color: var(--dim); }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bx { padding-top: 10px; text-align: center; color: var(--muted); font-size: 0.82rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--muted); font-size: 0.78rem; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.ladder li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: rgba(var(--fg-rgb), 0.03); border: 1px solid var(--line); }
.ladder li b { font-family: var(--mono); font-size: 1.2rem; }
.ladder li b::after { content: " s"; color: var(--dim); font-size: 0.7em; }
.ladder li span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.ladder li.hl { border-color: rgba(118, 185, 0, 0.35); background: rgba(118, 185, 0, 0.06); }
.ladder li.hl b { color: var(--green-2); }
.sol { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: -6px; font-variant-numeric: tabular-nums; }
.sol th { color: var(--dim); font-size: 0.72rem; font-weight: 500; text-align: right; padding: 0 8px; text-transform: none; letter-spacing: 0; border-bottom: 0; }
.sol th:first-child { text-align: left; padding-left: 12px; }
.sol td { padding: 10px 8px; text-align: right; font-family: var(--mono); font-size: 1rem; white-space: nowrap;
  background: rgba(var(--fg-rgb), 0.03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sol td:first-child { text-align: left; white-space: normal; font-family: inherit; font-size: 0.76rem; line-height: 1.35; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; }
.sol td:first-child b { display: block; color: var(--text); font-size: 0.86rem; font-weight: 600; margin-bottom: 2px; }
.sol td:last-child { padding-right: 12px; border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; }
.sol tr.hl td { background: rgba(118, 185, 0, 0.06); border-color: rgba(118, 185, 0, 0.35); }
.sol tr.hl td:not(:first-child) { color: var(--green-2); }
@media (max-width: 420px) { .sol td { padding: 9px 5px; font-size: 0.92rem; } .sol th { padding: 0 5px; } }
.fine { margin: 16px 0 0; color: var(--dim); font-size: 0.8rem; }

/* ------------------------------------------------------------ table */
.table-card { overflow-x: auto; padding: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 12px 16px; text-align: center; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--dim); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); }
tbody td { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.86rem; color: var(--text-3); }
tbody td:first-child { font-family: Inter, sans-serif; font-size: 0.92rem; color: var(--text); }
tr.grp td { padding: 18px 16px 8px; border-bottom: 0; color: var(--dim); font-family: Inter, sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
tr.mine td { background: rgba(118, 185, 0, 0.08); color: var(--text-strong); }
tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--green); font-weight: 600; }
td.best { color: var(--green-2) !important; font-weight: 700; }
td.y { color: var(--green-2); } td.n, td.na { color: var(--dim); }
td.y, td.n { font-size: 0.85em; text-align: center; }
th, td { padding-left: 13px; padding-right: 13px; }  /* the main table has 10 columns (Quality, Semantic) */
a.ext { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(118, 185, 0, 0.55); transition: color 0.2s; }
a.ext:hover, a.ext:focus-visible { color: var(--green-2); }
.tbl-cap { margin: 40px 0 14px; max-width: 78ch; }
.tbl-cap h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tbl-cap p { margin: 0; color: var(--muted); }
.tbl-cap .fine { margin-top: 8px; }

/* ------------------------------------------------------------ cite & footer */
.cite { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; padding-bottom: 80px; }
.bib { overflow: hidden; }
.bib-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.bib-bar button { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.78rem; }
.bib pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; color: var(--text-3); }
.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.82rem; }
.foot .wrap { display: flex; justify-content: space-between; }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .hero-grid, .abstract, .deep, .eff, .cite { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --wrap: calc(100vw - 32px); }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero h1 { white-space: normal; }
  .hero-stats { flex-direction: column; }
  .hero-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .bars { gap: 12px; height: 280px; min-height: 280px; }
  .race-row { grid-template-columns: 7.5em 1fr; }
  .section { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ player controls */
.controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 34px 14px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent); opacity: 0.88; transition: opacity 0.25s; }
.ctl-play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); }
.ctl-play:hover { background: rgba(255, 255, 255, 0.24); }
.ctl-play svg { width: 16px; height: 16px; fill: #fff; }
.ctl-play .i-play { display: none; }
.ctl-play.paused .i-play { display: block; }
.ctl-play.paused .i-pause { display: none; }
.ctl-bar { position: relative; flex: 1; height: 20px; }
.ctl-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.ctl-buf, .ctl-fill { position: absolute; left: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 2px; width: 0; pointer-events: none; }
.ctl-buf { background: rgba(255, 255, 255, 0.28); }
.ctl-fill { background: var(--green); box-shadow: 0 0 10px var(--green-glow); }
.ctl-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%) scale(0.8); border-radius: 50%; background: #fff; transition: transform 0.15s; }
.ctl-bar:hover .ctl-fill::after { transform: translateY(-50%) scale(1); }
.ctl-bar input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ctl-time { flex: none; font-family: var(--mono); font-size: 0.74rem; color: rgba(255, 255, 255, 0.85); }

/* ------------------------------------------------------------ video grid (two per row, never above native 768p) */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, var(--cw, 590px))); justify-content: center; gap: 26px 18px; }
.vframe { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); aspect-ratio: 1344 / 768; cursor: pointer;
  box-shadow: 0 30px 70px -45px rgba(118, 185, 0, 0.35); }
.vframe video { width: 100%; height: 100%; object-fit: cover; }
.vtag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 0.72rem; font-weight: 600; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.vframe:hover .vtag { opacity: 1; }
.vprompt { position: absolute; inset: 0; z-index: 1; padding: 16px 18px 64px; background: rgba(5, 7, 6, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow: auto; }
.vprompt .label { color: #8d968a; }
.vprompt-text { margin-top: 8px; color: #cfd6cc; font-size: 0.84rem; line-height: 1.6; white-space: pre-line; }
.vframe .controls { z-index: 2; padding: 30px 12px 10px; gap: 10px; }
.vcap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 4px 0; }
.vcap b { font-size: 0.98rem; }
.vcap span { color: var(--muted); font-family: var(--mono); font-size: 0.76rem; white-space: nowrap; }
.ctl-snd { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); }
.ctl-snd svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl-snd .i-on { display: none; }
.ctl-snd[aria-pressed="true"] { background: rgba(118, 185, 0, 0.3); border-color: var(--green); }
.ctl-snd[aria-pressed="true"] .i-on { display: block; }
.ctl-snd[aria-pressed="true"] .i-off { display: none; }
@media (max-width: 760px) { .vgrid { grid-template-columns: minmax(0, var(--cw, 590px)); } }
