:root {
  --bg: #08090a;
  --ink: #ececec;
  --dim: #8b8d90;
  --faint: #4a4c4f;     /* outlines, arrows, corner marks: too dark for text */
  --mute: #777a7d;      /* the dimmest grey that still reads as text */
  --field: #5f6266;     /* borders of things you type in or tick */
  --rule: #1f2123;
  --accent: #3ee6a8;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* motion: things that enter use the strong ease-out, things that move across the screen the ease-in-out */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --rail: 1200px;
  --pad: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-within {
  outline: 1px solid var(--accent); outline-offset: 2px;
}

.rail { max-width: var(--rail); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav .rail { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font: 500 16px/1 var(--mono); letter-spacing: -0.01em; }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav nav { display: flex; gap: 28px; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.nav nav a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  font: 500 12px/1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 13px 18px;
  border: 1px solid var(--faint);
  color: var(--ink); background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .16s var(--ease-out);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.nav .btn { padding: 9px 4px; border-color: transparent; color: var(--ink); }
.nav .btn::before { content: "[ "; color: var(--accent); }
.nav .btn::after { content: " ]"; color: var(--accent); }
.nav .btn:hover { border-color: transparent; color: var(--accent); }
.btn .arr { display: inline-block; transition: transform .2s var(--ease-out); }

/* ---------- ascii ---------- */
/* the three tone layers share one grid cell, so they stay aligned wherever the art is centred */
.ascii { display: grid; }
.ascii pre { grid-area: 1 / 1; white-space: pre; user-select: none; font-family: var(--mono); font-weight: 400; line-height: 1; }
.ascii .l0 { color: #5f6266; }
.ascii .l1 { color: #a3a6aa; }
.ascii .l2 { color: var(--accent); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 5fr 6fr; align-items: center; min-height: 680px; padding: 24px 0; }
h1 {
  font: 400 clamp(32px, 4vw, 54px)/1.08 var(--mono);
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin-bottom: 28px;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 44ch; color: var(--dim); font-size: 16px; margin-bottom: 36px; text-wrap: pretty; }
.lede strong, p strong { color: var(--ink); font-weight: 400; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-art { position: relative; margin-right: calc(var(--pad) * -1); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
#hero-art pre { font-size: clamp(4px, 0.68vw, 8.2px); }
/* ---------- stats ---------- */
/* our team: the venue names stay on one line, so columns take the width of their content */
.stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 48px; }
.stats > div { border-top: 1px solid var(--rule); padding-top: 24px; }
#team .head { margin-bottom: 32px; }
/* 200 cells fill from the left when the block comes into view */
.envgrid { display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; margin-top: 20px; max-width: 360px; }
.envgrid i { aspect-ratio: 1; background: #16181a; transition: background .3s; transition-delay: calc(var(--k) * 5ms); }
.rv.in .envgrid i { background: color-mix(in srgb, var(--accent) 55%, #16181a); }
.stats b { display: block; font: 400 clamp(24px, 3vw, 38px)/1.1 var(--mono); letter-spacing: -0.04em; margin-bottom: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { color: var(--dim); font-size: 14px; display: block; max-width: 36ch; }

/* ---------- sections ---------- */
.sec { padding: 112px 0; border-top: 1px solid var(--rule); }
h2 { font: 400 clamp(24px, 2.6vw, 34px)/1.18 var(--mono); letter-spacing: -0.035em; text-wrap: balance; }
.intro { max-width: 58ch; color: var(--dim); text-wrap: pretty; }
/* above every section: its name, a rule across the rail, a tag */
.railhd { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); white-space: nowrap; }
.railhd i { flex: 1; height: 1px; background: var(--rule); }
.railhd b { font-weight: 400; color: var(--accent); }
/* heading on the left, its one paragraph on the right */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; margin-bottom: 48px; }
.head h2 { margin-bottom: 0; }
.head p { color: var(--dim); max-width: 56ch; font-size: 16px; text-wrap: pretty; }

.rv { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
/* a group enters item by item: the container stays put, its children follow each other 60 ms apart */
.rv.stagger { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--n, 0) * 60ms); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger > :nth-child(2) { --n: 1; }
.stagger > :nth-child(3) { --n: 2; }
.stagger > :nth-child(4) { --n: 3; }
.stagger > :nth-child(5) { --n: 4; }
/* movement on hover only where there is a real pointer: a tap fires a false hover */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arr, .fine a:hover .arr { transform: translateX(3px); }
  .card:hover .shot img { transform: scale(1.04); }
}

/* ---------- domains ---------- */
.domains { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.domains li { background: var(--bg); padding: 12px 13px 16px; transition: background .2s; overflow: hidden; }
.domains li:hover { background: #0c0d0f; }
/* the art is 66 columns wide, 39.6 em: the font is sized so it fills the tile */
.glyph { place-content: center; margin-bottom: 10px; }
.glyph pre { font-size: min(4px, calc(((100vw - 2 * var(--pad)) / 6 - 27px) / 39.6)); }
.glyph .l2 { color: #d0d2d5; transition: color .25s; }
.domains li:hover .l2 { color: var(--accent); }
.domains h3 { font: 500 13px/1.3 var(--mono); }
/* under the grid: any other domain, on request */
/* its first cell is one more tile, the text takes the rest of the row */
.custom { display: grid; grid-template-columns: calc((100% - 5px) / 6) 1fr; align-items: center; border: 1px solid var(--rule); border-top: 0; transition: background .2s; }
.custom > div { padding: 12px 13px 16px; border-right: 1px solid var(--rule); overflow: hidden; }
.custom:hover { background: #0c0d0f; }
.custom:hover .l2 { color: var(--accent); }
.custom h3 { font: 500 13px/1.3 var(--mono); }
.custom p { padding: 0 24px; color: var(--dim); font-size: 16px; max-width: 60ch; }

/* ---------- compare: expert, diff, model ---------- */
.tri { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tri .shot { margin: 0; min-width: 0; }
.tri canvas { display: block; width: 100%; aspect-ratio: 1; background: #050607; }
.tri .bar em { flex: none; margin-left: auto; padding-left: 8px; font-style: normal; font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.runs { margin-top: 32px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.runs li { position: relative; }
.runs li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); }
.runs li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.runs button { display: block; width: 100%; padding: 16px 0 0; background: none; border: 0; font: inherit; text-align: left; color: var(--dim); cursor: pointer; }
.runs b { display: block; font: 400 clamp(20px, 2vw, 26px)/1.1 var(--mono); letter-spacing: -0.03em; margin-bottom: 4px; font-variant-numeric: tabular-nums; transition: color .2s; }
.runs span { font-size: 13px; transition: color .2s; }
.runs button:hover span, .runs li.on span { color: var(--ink); }
.runs li.on b { color: var(--accent); }
.fine a { color: var(--accent); white-space: nowrap; }
.fine .arr { display: inline-block; transition: transform .2s var(--ease-out); }

/* ---------- verifier ---------- */
.gate { border: 1px solid var(--rule); }
.gate canvas { display: block; width: 100%; height: 320px; }
.gate .counts { display: flex; justify-content: space-between; padding: 10px 24px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.gate .counts b { font-weight: 400; color: var(--ink); }
.gate .counts .ok b { color: var(--accent); }

/* ---------- formats: under the domain grid ---------- */
.format { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border: 1px solid var(--rule); padding: 28px 24px; }
.format h3 { font: 500 16px/1.3 var(--mono); margin-bottom: 8px; }
.format p { color: var(--dim); max-width: 48ch; }
.format li { position: relative; padding: 6px 0 6px 26px; }
/* licensing: a full-width row inside the same box */
.lic { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 0 -24px -28px; padding: 24px; border-top: 1px solid var(--rule); }
.lic p { max-width: none; }
.format li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

/* ---------- how a task is made: four steps, each with a small live window ---------- */
.make { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 36px; counter-reset: m; }
/* title, text and window sit on shared rows, so the windows line up whatever the text length */
.make li { position: relative; counter-increment: m; display: grid; grid-row: span 3; grid-template-rows: subgrid; }
/* the arrow to the next step, level with the middle of the window */
.make li::after { content: "→"; position: absolute; bottom: 66px; right: -26px; color: var(--faint); }
.make li:last-child::after { display: none; }
.mini { position: relative; display: block; border: 1px solid var(--rule); background: #0c0d0f; }
.mini-body { display: flex; flex-direction: column; justify-content: center; height: 148px; padding: 0 12px; font-size: 11px; line-height: 1.75; color: #a3a6aa; white-space: pre; overflow: hidden; }
.mini-body .ascii { place-content: center; }
.mini-body .ascii pre { font-size: 6px; }
.ln { display: block; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.ln.hid { opacity: 0; transform: translateY(3px); transition: none; }
.ln em { font-style: normal; color: var(--mute); }
.ln b { font-weight: 400; color: var(--accent); }
.ln u { text-decoration: none; color: var(--ink); }
.make h3 { font: 500 16px/1.3 var(--mono); margin-bottom: 8px; }
.make h3::before { content: counter(m, decimal-leading-zero); display: block; font-size: 11px; font-weight: 400; color: var(--mute); margin-bottom: 6px; }
.make p { font-size: 14px; color: var(--dim); max-width: 32ch; margin-bottom: 22px; }

/* ---------- three layers of QA ---------- */
.layers { margin-top: 64px; }
.layers h3 { font: 400 22px/1.25 var(--mono); letter-spacing: -0.02em; margin-bottom: 20px; text-wrap: balance; }
.layers ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.layers li { border: 1px solid var(--rule); padding: 22px 24px 26px; }
.layers b { display: block; font: 900 24px/1 "Doto", var(--mono); letter-spacing: 0.04em; color: var(--accent); margin-bottom: 14px; }
.layers h4 { font: 500 16px/1.3 var(--mono); margin-bottom: 8px; }
.layers p { font-size: 14px; color: var(--dim); max-width: 38ch; }
.ticks { display: flex; align-items: baseline; gap: 7px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--accent); font-size: 13px; }
.ticks i { font-style: normal; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.ticks i.hid { opacity: 0; transform: translateY(3px); transition: none; }
.ticks span { margin-left: auto; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }

/* ---------- solve rate: three example bars ---------- */
.sr { border: 1px solid var(--rule); }
.sr-top { display: flex; align-items: center; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--rule); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.sr-top .tags { margin-left: auto; display: flex; border: 1px solid var(--rule); }
.sr-top .tags > * { padding: 5px 10px; font-style: normal; font-weight: 400; white-space: nowrap; }
.sr-top .tags > * + * { border-left: 1px solid var(--rule); }
.sr-top b { color: var(--accent); }
.sr-title { padding: 24px 24px 0; font-size: 18px; letter-spacing: -0.02em; }
.sr-body { display: grid; grid-template-columns: 190px minmax(0, 1fr) 110px; column-gap: 28px; row-gap: 16px; align-items: center; padding: 22px 24px 26px; }
.sr-axis { grid-column: 2; position: relative; height: 16px; font-size: 11px; color: var(--mute); }
.sr-axis span { position: absolute; top: 0; }
.sr-axis span:nth-child(2) { left: 10%; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.sr-axis span:last-child { right: 0; }
/* the axis sits over the bars: name, bar and value keep to their own columns */
.sr-name { grid-column: 1; }
.sr-bar { grid-column: 2; }
.sr-val { grid-column: 3; }
.sr-name b { display: block; font-weight: 400; }
.sr-name span { font-size: 11px; color: var(--dim); }
.sr-bar { display: grid; grid-template-columns: repeat(50, 1fr); gap: 2px; height: 32px; }
.sr-bar i { background: #16181a; transition: background .25s; transition-delay: calc(var(--k) * 16ms); }
.sr-bar.still i { transition: none; }
.sr-bar i.b { background: color-mix(in srgb, var(--accent) 16%, #16181a); }
.sr-bar i.on { background: #5d6064; }
.sr-bar.hit i.on { background: var(--accent); }
.sr-val b { display: block; font: 900 32px/1.05 "Doto", var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sr-val span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.sr-val.hit b, .sr-val.hit span { color: var(--accent); }

/* ---------- pilot: five points on one line, lit one after another ---------- */
.line { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 30px; }
.line::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--rule); }
.line::after { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease-in-out); }
.line li { position: relative; padding-right: 16px; color: var(--dim); }
.line li::before { content: ""; position: absolute; top: -30px; left: 0; width: 11px; height: 11px; background: var(--bg); border: 1px solid var(--faint); transition: background .3s, border-color .3s; }
.line li.done::before { background: var(--faint); }
.line li.on::before { background: var(--accent); border-color: var(--accent); }
.line h3 { font: 500 16px/1.3 var(--mono); color: var(--ink); margin-bottom: 4px; transition: color .3s; }
.line li.on h3 { color: var(--accent); }
.line p { font-size: 14px; text-wrap: balance; }
.loop { margin-top: 32px; font-size: 12px; color: var(--dim); }

/* ---------- form ---------- */
.ask { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; }
.ask .railhd { grid-column: 1 / -1; margin-bottom: -28px; }
.ask .head { display: block; margin-bottom: 0; }
.ask .head h2 { margin-bottom: 14px; }
/* the heading is typed as a command, with a block cursor */
.cmd { font-size: clamp(24px, 2.9vw, 38px); white-space: nowrap; }
.cmd span { color: var(--accent); }
.blk { display: inline-block; width: 0.55em; height: 0.95em; margin-left: 0.12em; background: var(--accent); vertical-align: -0.1em; animation: blink 1.1s steps(1) infinite; }
form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.hp { position: absolute; left: -9999px; }
form .full { grid-column: 1 / -1; }
label.field { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
input[type="email"], input[type="text"], textarea {
  display: block; width: 100%; margin-top: 6px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--field); border-radius: 0;
  padding: 12px; font: 400 14px/1.4 var(--mono);
  transition: border-color .15s;
}
input:hover, textarea:hover { border-color: var(--dim); }
input:focus, textarea:focus { border-color: var(--accent); outline: 0; }
textarea { resize: vertical; min-height: 84px; }
fieldset { border: 0; }
legend { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 7px 10px; border: 1px solid var(--field); font-size: 12px; color: var(--dim); transition: color .15s, border-color .15s, transform .16s var(--ease-out); }
.chips label:active span { transform: scale(0.97); }
.chips label:hover span { border-color: var(--dim); }
.chips input:checked + span { color: var(--accent); border-color: var(--accent); }
.sent { color: var(--accent); font-size: 13px; }

footer { border-top: 1px solid var(--rule); }
footer .rail { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; font-size: 12px; color: var(--dim); }
footer a:hover { color: var(--ink); }
/* the wordmark, as wide as the page, cut off by its bottom edge */
.mark { overflow: hidden; height: 0.62em; font: 500 clamp(110px, 34vw, 520px)/0.8 var(--mono); letter-spacing: -0.07em; text-align: center; color: #15171a; user-select: none; }
.mark span { color: color-mix(in srgb, var(--accent) 30%, var(--bg)); animation: blink 1.1s steps(1) infinite; }

/* ---------- samples page ---------- */
.page-head { padding: 72px 0 0; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 16px; }
.page-head > p:not(.crumb) { color: var(--dim); max-width: 60ch; }
.crumb { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 24px; }
.crumb a:hover { color: var(--ink); }
.crumb i { font-style: normal; color: var(--faint); margin: 0 8px; }

.facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 40px 0 0; }
.facts div { background: var(--bg); padding: 16px 20px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 4px; }
.facts dd { font-size: 15px; }

.block { padding: 64px 0 0; }
.block h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; max-width: none; }
.block h2 sup { font-size: 12px; color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.block > p { color: var(--dim); max-width: 62ch; margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 16px 11px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
th { font-weight: 400; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; border-top: 0; white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.id { color: var(--accent); white-space: nowrap; width: 48px; }
td.nm { white-space: nowrap; }
td.ds { color: var(--dim); }
td.mt { width: 40%; vertical-align: middle; }
.meter { display: block; height: 8px; background: var(--rule); min-width: 120px; }
.meter i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform .9s var(--ease-out); }
.tablewrap { overflow-x: auto; }
.fine { margin-top: 14px; font-size: 12px; color: var(--dim); max-width: 70ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin-top: 24px; }
.card { display: block; }
.shot { display: block; background: #08090a; border: 1px solid var(--rule); overflow: hidden; margin-bottom: 14px; transition: border-color .2s; }
.shot .bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--rule); background: #0d0e10; }
.shot .bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.shot .bar i { flex: none; }
.shot .bar b { font-weight: 400; font-size: 11px; color: var(--dim); margin-left: 8px; letter-spacing: 0.02em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .shot { border-color: var(--accent); }
.card .ttl { display: block; font-size: 15px; transition: color .2s; }
.card:hover .ttl { color: var(--accent); }
.card .meta { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.hero-shot { margin: 40px 0 0; }
.hero-shot .bar { height: 34px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.files li { padding: 9px 0; border-top: 1px solid var(--rule); color: var(--dim); }
.files li::before { content: "└ "; color: var(--faint); }
.formula { display: inline-block; border: 1px solid var(--rule); padding: 8px 12px; color: var(--ink); margin-bottom: 20px; }
.cta { margin: 72px 0 96px; padding: 40px; border: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta p { font-size: 18px; letter-spacing: -0.02em; max-width: 34ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  h1 { font-size: clamp(26px, 7.6vw, 36px); }
  .hero { position: relative; padding-bottom: 56px; }
  .hero > div:first-child { position: relative; z-index: 1; }
  /* behind the text: the left two thirds of the figure show, the rest runs off the right edge */
  .hero-art { position: absolute; z-index: 0; top: 50%; right: calc(var(--pad) * -1); width: 74vw; margin: 0; transform: translateY(-50%); align-items: flex-start; opacity: 0.45; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 65%); mask-image: linear-gradient(90deg, transparent 0, #000 65%); }
  #hero-art pre { font-size: 1.5vw; }
  .sec { padding: 72px 0; }
  .ask, .two { grid-template-columns: 1fr; gap: 28px; }
  .head { display: block; margin-bottom: 32px; }
  .head h2 { margin-bottom: 14px; }
  .railhd { margin-bottom: 24px; }
  .ask .railhd { margin-bottom: 0; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stats b { font-size: min(26px, 6.2vw); }
  .domains { grid-template-columns: repeat(3, 1fr); }
  .glyph pre { font-size: min(6px, calc(((100vw - 2 * var(--pad)) / 3 - 27px) / 39.6)); }
  .domains h3, .custom h3 { font-size: 12px; }
  .format { grid-template-columns: 1fr; gap: 20px; }
  .lic { grid-template-columns: 1fr; gap: 8px; margin-top: 4px; }
  .custom { grid-template-columns: calc((100% - 2px) / 3) 1fr; }
  .custom p { padding: 0 16px; font-size: 14px; }
  .make { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .make li { margin-bottom: 32px; }
  .make li:last-child { margin-bottom: 0; }
  .layers h3 { font-size: 20px; }
  /* 16px keeps iOS from zooming the page when a field takes focus */
  input[type="email"], input[type="text"], textarea { font-size: 16px; }
  .chips span { padding: 11px 12px; }
  .make li::after { display: none; }
  .layers ol { grid-template-columns: 1fr; }
  .sr-body { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; }
  .sr-axis { grid-column: 1; }
  .sr-name { grid-column: 1 / -1; margin-top: 12px; }
  .sr-bar { grid-column: 1; }
  .sr-val { grid-column: 2; }
  .sr-val b { font-size: 20px; }
  .sr-val span { display: none; }
  /* the line turns to run down the left side */
  .line { grid-template-columns: 1fr; padding-top: 0; }
  .line::before { top: 6px; bottom: 6px; left: 5px; right: auto; width: 1px; height: auto; }
  .line::after { display: none; }
  .line li { padding: 0 0 20px 30px; }
  .line li:last-child { padding-bottom: 0; }
  .line li::before { top: 5px; left: 0; }
  .facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* results: scroll sideways instead of crushing the columns */
  .results { min-width: 540px; }
  .results td:first-child { white-space: nowrap; }
  .results th:nth-child(4), .results td:nth-child(4) { display: none; }
  /* rubric: the description goes under the name */
  .rubric-t tr { display: grid; grid-template-columns: 36px 1fr; border-top: 1px solid var(--rule); padding: 11px 0; }
  .rubric-t td { border: 0; padding: 0; }
  .rubric-t td.id { width: auto; }
  .rubric-t td.nm { white-space: normal; }
  .rubric-t td.ds { grid-column: 2; padding-top: 4px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .nav nav a:not(.btn) { display: none; }
  form { grid-template-columns: 1fr; }
  .cta { padding: 24px; }
}
@media (max-width: 640px) {
  .tri { gap: 6px; }
  .tri .bar { height: 24px; padding: 0 6px; }
  .tri .bar i { display: none; }
  .tri .bar b { margin-left: 0; font-size: 10px; }
  .tri .bar em { font-size: 10px; padding-left: 4px; }
  /* the middle panel is too narrow for a label and a score: the score stays */
  .tri .shot:nth-child(2) .bar b { display: none; }
  .tri .shot:nth-child(2) .bar em { margin-left: 0; padding-left: 0; }
  .runs { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .runs button { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 12px 0; }
  .runs b { font-size: 16px; margin: 0; }
}
@media (max-width: 520px) {
  .make { grid-template-columns: 1fr; }
  /* three across on a phone: tighter tiles, so the labels still fit */
  .domains li, .custom > div { padding: 10px 8px 12px; }
  .glyph pre { font-size: calc(((100vw - 2 * var(--pad)) / 3 - 18px) / 39.6); }
  .domains h3, .custom h3 { font-size: 11px; }
  .make p { max-width: none; }
  .hero .actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .blk, .mark span { animation: none; }
  .envgrid i, .ticks i { transition: none; }
  .rv, .stagger > * { transform: none; transition: opacity .3s ease; }
  .btn:active, .chips label:active span { transform: none; }
  .ln, .line::after, .meter i { transition: none; }
}
