:root {
  --bg: #ffffff;
  --bg-2: #f5f6f7;
  --ink: #0b0d10;
  --ink-2: #3d434b;
  --ink-3: #7a818b;
  --line: #e3e5e8;
  --line-2: #cfd3d8;
  --accent: #2740ff;
  --brand: #f9583a;
  --accent-soft: #eef0ff;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 6px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
code { font: 500 0.88em var(--mono); background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--ink-3); }
.eyebrow {
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 18px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: #262a31; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn-invert:hover { background: #e9ebee; }
.btn[disabled] { opacity: .5; cursor: default; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark svg { display: block; flex: none; }
.mark .ink { fill: var(--ink); }
.mark .acc { fill: var(--brand); }
.wordmark { display: flex; align-items: center; gap: 9px; line-height: 1; }
.wm-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.wm-i { position: relative; }
.wm-dot { position: absolute; left: 50%; top: .06em; width: .2em; height: .2em; background: currentColor; transform: translateX(-50%) rotate(28deg); }
.wm-sub { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .18em; color: var(--ink-2); padding-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 96px;
}
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.035em; }
.lede { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.specs {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 36px;
  margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.specs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.specs dt { font: 400 12px/1.3 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 0; font: 500 26px/1 var(--display); letter-spacing: -0.02em; }

.hero-viz { margin: 0; }
.viz-frame {
  position: relative; aspect-ratio: 1 / 1.02;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  background-blend-mode: normal;
}
.viz-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(255,255,255,.9) 80%); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.viz-hud, .viz-legend {
  position: absolute; left: 16px; right: 16px; z-index: 2;
  display: flex; justify-content: space-between; gap: 12px;
  font: 400 12px/1 var(--mono); color: var(--ink-3);
}
.viz-hud { top: 10px; left: 8px; right: 8px; }
.viz-hud span { background: rgba(255,255,255,.92); padding: 6px 8px; border-radius: 4px; white-space: nowrap; }
.viz-hud span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.viz-legend { bottom: 16px; right: auto; justify-content: flex-start; align-items: center; gap: 8px;
  background: rgba(255,255,255,.92); padding: 6px 8px; border-radius: 4px; margin-left: -8px; }
.dot-com { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.line-g { width: 16px; height: 2px; background: var(--accent); display: inline-block; margin-left: 12px; }

/* sections */
.section { padding-top: 112px; padding-bottom: 112px; }
.band { background: var(--bg-2); padding: 112px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 24px; flex-wrap: wrap; }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.06; }
.section-sub { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 40em; }
.fine { margin-top: 24px; font-size: 14px; color: var(--ink-3); }

/* baselines scatter: best-of-k (x) vs mean (y) */
.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: start;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 36px 36px 32px 28px;
}
.sc-fig { margin: 0; display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 34px; }
.sc-y { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; font: 400 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.sc-plot { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin: 14px 14px 0 0; }
.sc-x { grid-column: 2; max-width: 560px; text-align: center; margin-top: 34px; font: 400 11px/1 var(--mono); color: var(--ink-3); }
.sc-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc-bg line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-bg .sc-diag { stroke: var(--ink-3); stroke-dasharray: 4 4; }
.sc-void { fill: var(--bg-2); }
.sc-tx, .sc-ty { position: absolute; font: 400 11px/1 var(--mono); color: var(--ink-3); }
.sc-tx { top: 100%; transform: translate(-50%, 10px); }
.sc-ty { right: 100%; transform: translate(-10px, 50%); }
.sc-zone { position: absolute; font: 400 11px/1.4 var(--mono); color: var(--ink-3); pointer-events: none; }
.sc-zone small { font-size: 11px; color: var(--ink-3); }
.z-rl { right: 12px; bottom: 12px; text-align: right; color: var(--accent); }
.z-none { left: 30px; bottom: 8px; }
.z-diag { left: 30%; bottom: 36%; transform: rotate(-45deg); transform-origin: left bottom; white-space: nowrap; }
.sc-pt { position: absolute; width: 0; height: 0; z-index: 2; }
.sc-logos { position: absolute; top: -13px; display: flex; }
.sc-pt.r .sc-logos { left: -13px; }
.sc-pt.l .sc-logos { right: -13px; flex-direction: row-reverse; }
.sc-mark {
  width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 1px 3px rgba(11,13,16,.1);
  transition: opacity .15s, transform .15s;
}
.sc-mark + .sc-mark { margin-left: -9px; }
.sc-pt.l .sc-mark + .sc-mark { margin-left: 0; margin-right: -9px; }
.sc-mark.open { border: 2px solid var(--accent); }
.sc-mark img { width: 15px; height: 15px; display: block; }
.sc-mark:hover, .sc-mark:focus-visible, .sc-mark.hi { transform: scale(1.15); z-index: 3; outline: none; }
.sc-lab {
  position: absolute; top: 0; translate: 0 -50%; white-space: nowrap;
  font: 500 12px/1.35 var(--sans); color: var(--ink); background: rgba(255,255,255,.88); padding: 1px 4px; border-radius: 3px;
  transition: opacity .15s;
}
.sc-pt.r .sc-lab { left: calc(18px + (var(--n, 1) - 1) * 17px + var(--more, 0px)); }
.sc-pt.l .sc-lab { right: calc(18px + (var(--n, 1) - 1) * 17px + var(--more, 0px)); text-align: right; }
.sc-plot.has-hi .sc-mark:not(.hi) { opacity: .25; }
.sc-plot.has-hi .sc-pt:not(:has(.hi)) .sc-lab { opacity: .25; }
.sc-mark.more { position: relative; z-index: 2; width: auto; min-width: 26px; padding: 0 6px; border-radius: 13px;
  font: 500 10px/1 var(--mono); color: var(--ink-2); border-color: var(--line-2); }
.sc-pt.l .sc-mark.more { margin-right: 4px; }
.sc-pt.r .sc-mark.more { margin-left: 4px; }
.sc-lab .more { color: var(--ink-3); font-weight: 400; }
.sc-tab { width: 100%; border-collapse: collapse; }
.sc-tab th { font: 400 11px/1 var(--mono); color: var(--ink-3); text-align: right; padding: 0 0 12px 12px; border-bottom: 1px solid var(--ink); font-weight: 400; }
.sc-tab td { padding: 11px 0 11px 12px; border-bottom: 1px solid var(--line); text-align: right; font: 400 13px/1.2 var(--mono); font-variant-numeric: tabular-nums; vertical-align: middle; }
.sc-tab th:first-child, .sc-tab td:first-child { text-align: left; padding-left: 0; }
.sc-tab td small { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-3); }
.sc-tab tr { transition: background .15s; }
.sc-tab tr.hi td { background: var(--bg-2); }
.sc-who { display: flex; align-items: center; gap: 10px; font: 500 14px/1.25 var(--sans); }
.sc-who img { width: 18px; height: 18px; flex: none; }
.sc-who small { display: block; font: 400 11px/1.3 var(--mono); color: var(--accent); margin-top: 2px; }
.sc-gap { display: inline-block; min-width: 44px; padding: 3px 4px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-soft) var(--g), transparent 0); }
.sc-gap.big { color: var(--accent); font-weight: 500; }
.sc-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.sc-note a { color: var(--ink); white-space: nowrap; }
.gap-key { display: flex; gap: 24px; margin-top: 16px; font: 400 12px/1 var(--mono); color: var(--ink-3); }
.gap-key span { display: flex; align-items: center; gap: 8px; }
.gap-key i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid var(--ink); background: var(--ink); }
.gap-key i.k-open { background: transparent; border-color: var(--accent); }

/* model outputs */
#environments { border-top: 1px solid var(--line); }
.section-sub a { color: var(--ink); }
.ex-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ex-pane { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.ex-img { aspect-ratio: 16 / 10; background: #2b2b2b; display: grid; place-items: center; overflow: hidden; }
.ex-img.plan { background: #fff; border-bottom: 1px solid var(--line); }
.ex-img > a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.ex-img.plan { cursor: zoom-in; }
.ex-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ex-pane figcaption { padding: 14px 16px 16px; font-size: 14px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.ex-k { display: block; font: 400 11px/1 var(--mono); color: var(--ink-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ex-head .ex-k { margin: 0; }
.ex-none { font: 400 12px/1.5 var(--mono); color: #b8bcc2; text-align: center; padding: 12px; }
.ex-none.big { font-size: 13px; max-width: 28em; }
.ex-img.is-3d { position: relative; background: #eef0f2; }
.ex-img model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.ex-img.is-3d .ex-none { color: var(--ink-3); }
.ex-hint { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,.85);
  font: 400 11px/1.2 var(--mono); color: var(--ink-2); pointer-events: none; white-space: nowrap; }
.ex-modes { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.ex-modes button { font: 500 12px/1 var(--mono); padding: 6px 10px; border: 0; background: var(--bg); color: var(--ink-2); cursor: pointer; }
.ex-modes button + button { border-left: 1px solid var(--line); }
.ex-modes button.is-on { background: var(--ink); color: var(--bg); }
.ex-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ex-card {
  display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--bg); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.ex-card:hover { border-color: var(--ink-3); }
.ex-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ex-thumb { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #2b2b2b; overflow: hidden; }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 10px; }
.ex-meta .sc-who { font-size: 12px; gap: 6px; min-width: 0; }
.ex-meta .sc-who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-meta .sc-who img { width: 14px; height: 14px; }
.ex-meta b { font: 500 12px/1 var(--mono); }

/* collections */
.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.coll {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; min-height: 280px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg);
  text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.coll:hover, .coll:focus-visible { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); outline: none; }
.coll-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.coll-n { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.coll h3 { font-size: 26px; line-height: 1.15; }
.coll p { color: var(--ink-2); font-size: 15px; }
.coll-go { margin-top: auto; font: 500 14px/1 var(--sans); color: var(--accent); }
.coll-next { border-style: dashed; background: var(--bg-2); }
.coll-next .coll-go { color: var(--ink); }

/* filters */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink-2); font: 500 13px/1 var(--sans); cursor: pointer;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* catalog */
.catalog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.item {
  display: grid; grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 1fr) 160px 44px;
  gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .12s;
}
.item:hover { background: linear-gradient(90deg, transparent, var(--bg-2) 8%, var(--bg-2) 92%, transparent); }
.item .idx { font: 400 13px/1 var(--mono); color: var(--ink-3); padding-left: 4px; }
.item h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.item .sum { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 400 12px/1 var(--mono); color: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; white-space: nowrap; background: var(--bg); }
.tag.dev { color: var(--ink-3); border-style: dashed; }
.tag.ready { color: var(--accent); border-color: #c9cfff; background: var(--accent-soft); }
.spread { font: 400 12px/1.3 var(--mono); color: var(--ink-3); }
.spread b { display: block; font: 500 15px/1.2 var(--mono); color: var(--ink); margin-bottom: 2px; }
.sel {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); font-size: 20px; line-height: 1;
  transition: all .15s;
}
.sel:hover { border-color: var(--ink); color: var(--ink); }
.sel.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.item.is-dev h3 { color: var(--ink-2); }

/* method */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.method article { padding: 28px 28px 0 0; }
.method article + article { padding-left: 28px; border-left: 1px solid var(--line-2); }
.num { font: 400 13px/1 var(--mono); color: var(--accent); }
.method h3 { font-size: 20px; margin: 40px 0 12px; letter-spacing: -0.015em; }
.method p { color: var(--ink-2); font-size: 15px; }

/* request */
.request { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.request-copy p { color: var(--ink-2); margin-top: 18px; max-width: 30em; }
.request-copy h2 + p { margin-top: 24px; }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { display: grid; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
label:has(.opt) { display: block; }
label:has(.opt) textarea { margin-top: 8px; }
input, textarea {
  width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 88px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,13,16,.07); }
input.bad { border-color: #d0342c; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: 8px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button {
  height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink-2); font: 400 13px/1 var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.pick button::before { content: "+"; font: 400 14px/1 var(--mono); color: var(--ink-3); }
.pick button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick button.on::before { content: "✓"; color: #fff; }
.pick button.dev { border-style: dashed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-msg { font-size: 14px; color: var(--ink-3); }
.form-msg.err { color: #d0342c; }

.done { border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.done h3 { font-size: 24px; }
.done p { color: var(--ink-2); margin-top: 10px; }
.dl { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.dl li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.dl a { font: 500 13px/1 var(--mono); color: var(--accent); text-decoration: none; white-space: nowrap; }
.dl a:hover { text-decoration: underline; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font: 400 12px/1 var(--mono); color: var(--ink-2); }
.foot-inner { display: flex; justify-content: space-between; }

/* tray */
.tray {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 22px;
  background: var(--ink); color: #fff; border-radius: 999px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(11,13,16,.22);
  animation: rise .25s ease-out;
}
.tray .btn { white-space: nowrap; flex-shrink: 0; }
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(11,13,16,.28); z-index: 40; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(620px, 100vw);
  background: var(--bg); overflow-y: auto; transform: translateX(100%);
  visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 60px rgba(11,13,16,.12); }
.drawer-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center;
  height: 64px; padding: 0 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
}
.drawer-x {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2);
}
.drawer-x:hover { border-color: var(--ink); color: var(--ink); }
.d { padding: 0 44px 120px; }
.d h2 { font-size: 34px; margin: 18px 0 16px; }
.d .lead { color: var(--ink-2); font-size: 16.5px; }
.d section { margin-top: 40px; }
.d h4 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 14px; }
.d ul.tests { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.d ul.tests li { padding: 11px 0 11px 24px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.d ul.tests li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 12px 20px; font-size: 15px; }
.kv dt { color: var(--ink-3); font: 400 13px/1.6 var(--mono); }
.kv dd { margin: 0; color: var(--ink-2); }
.rubric { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rubric td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.rubric td:first-child { font: 500 13px/1.6 var(--mono); color: var(--ink); width: 42%; padding-right: 16px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 1fr 1.1fr 40px; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-2); }
.bar .track { display: block; height: 8px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.bar.open .fill { background: var(--accent); }
.bar .v { font: 500 13px/1 var(--mono); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar .who small { font: 400 11px/1 var(--mono); color: var(--ink-3); margin-left: 6px; }
.note { margin-top: 12px; font: 400 12px/1.5 var(--mono); color: var(--ink-3); }
.d-cta { display: flex; gap: 10px; margin-top: 44px; flex-wrap: wrap; }
.dev-box { margin-top: 32px; padding: 20px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--ink-2); font-size: 15px; }

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .hero-viz { order: -1; }
  .viz-frame { aspect-ratio: 4 / 3; }
  .specs { grid-template-columns: repeat(2, auto); gap: 20px 36px; }
  .method { grid-template-columns: 1fr 1fr; }
  .method article:nth-child(3) { border-left: 0; padding-left: 0; }
  .method article { padding-bottom: 32px; }
  .request { grid-template-columns: 1fr; gap: 48px; }
  .item { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .item .tags, .item .spread { grid-column: 2 / -1; }
  .item .sel { grid-column: 3; grid-row: 1; }
  .sc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ex-top { grid-template-columns: minmax(0, 1fr); }
  .ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .collections { grid-template-columns: 1fr; }
  .coll { min-height: 0; padding: 22px; }
  .nav-links a:not(.btn) { display: none; }
  .wm-sub { display: none; }
  .section, .band { padding-top: 72px; padding-bottom: 72px; }
  .field-row, .method { grid-template-columns: 1fr; }
  .method article + article { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); }
  .method article { padding: 24px 0 28px; }
  .method h3 { margin-top: 14px; }
  .sc { padding: 24px 14px 20px 6px; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sc-fig { column-gap: 30px; }
  .sc-lab { font-size: 11px; }
  .z-diag, .sc-zone small { display: none; }
  .sc-side { padding-left: 8px; }
  .sc-tab th, .sc-tab td { padding-left: 8px; }
  .sc-who { gap: 8px; font-size: 13px; }
  .viz-hud, .viz-legend { font-size: 11px; }
  .viz-hud span { padding: 5px 6px; }
  .d { padding: 0 20px 100px; }
  .kv { grid-template-columns: 1fr; gap: 4px; }
  .kv dd { margin-bottom: 10px; }
  .bar { grid-template-columns: 1fr 1fr 36px; }
  .tray { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  @keyframes rise { from { transform: translateY(16px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
