:root {
  color-scheme: dark;
  --ink: #eff0e7; --muted: #a1aaa0; --quiet: #747f75; --paper: #101712; --panel: #151f19;
  --line: #2d3b31; --acid: #d1fb67; --brass: #e2b04a;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
a { color: var(--acid); }
.topbar, main, footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 11px var(--mono); letter-spacing: .08em; }
.topbar a { text-decoration: none; color: var(--muted); }
.topbar a:hover { color: var(--acid); }
.topbar .host { color: var(--quiet); }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 40px; padding: 40px 0 48px; align-items: start; }
.eyebrow { margin: 0 0 12px; color: var(--acid); font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -.02em; }
h1 em { color: var(--brass); font-style: normal; }
h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.01em; }
p { margin: 0 0 14px; color: var(--muted); }
#stage { position: relative; aspect-ratio: 4 / 5; min-height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(120% 90% at 50% 25%, #23331f 0%, #142018 55%, #0d130f 100%); touch-action: none; }
#stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#stage canvas:active { cursor: grabbing; }
#status { position: absolute; inset: auto 14px 14px 14px; z-index: 2; color: var(--muted); font: 12px var(--mono); pointer-events: none; }
#stage:not(.ready):not(.failed) #status::before { content: "Loading model…"; }
#stage.failed { background: url("media/three-quarter.jpg") center / contain no-repeat, #142018; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.controls button { padding: 7px 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font: 12px var(--mono); letter-spacing: .05em; cursor: pointer; }
.controls button:hover, .controls button:focus-visible { border-color: var(--acid); color: var(--acid); outline: none; }
.controls label { margin-left: 8px; color: var(--muted); font: 12px var(--mono); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hint { margin: 10px 0 0; color: var(--quiet); font: 11px var(--mono); }
dl.spec { margin: 22px 0 0; border-top: 1px solid var(--line); }
dl.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
dl.spec dt { color: var(--quiet); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
dl.spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
section.block { padding: 36px 0; border-top: 1px solid var(--line); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare img { display: block; width: 100%; height: auto; }
.compare figcaption { padding: 10px 14px; color: var(--muted); font: 11px var(--mono); letter-spacing: .05em; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.downloads a { display: block; padding: 14px 16px; color: var(--ink); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.downloads a:hover, .downloads a:focus-visible { border-color: var(--acid); outline: none; }
.downloads strong { display: block; color: var(--acid); font: 13px var(--mono); }
.downloads span { color: var(--muted); font-size: 13px; }
.notes { margin: 0; padding-left: 20px; color: var(--muted); }
.notes li { margin: 0 0 8px; }
.notes code, code { color: var(--ink); font: 13px var(--mono); }
footer { padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--quiet); font: 11px var(--mono); letter-spacing: .06em; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
  .compare { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .controls button { transition: none; } }
