/* Unmapped Labs. Direction and the reason for each choice: DESIGN.md. Every colour is a token in :root so the palette
   can be changed in one place. Fonts are self-hosted (src/fonts, copied by scripts/fonts.mjs). */

@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-var.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-var-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('/fonts/martian-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f4f5f3;
  --surface: #fdfdfc;
  --sunk: #e8eae6;
  --ink: #111311;
  --ink-2: #383d39;
  --ink-3: #5c625d;
  --rule: #d7dad5;
  --rule-2: #b9beb8;
  --core: #111311;
  --on-core: #f4f5f3;
  --on-core-2: #b3b9b4;
  --accent: #1d9a54;
  --accent-ink: #157a42;
  --on-accent: #ffffff;
  --accent-strong: #167f47;
  --flag: #c4342b;
  --contour: #8f9a91;
  --land: #e9ece8;
  --hatch: #383d39;
  --line: rgba(17, 19, 17, .1);
  --code-bg: #111311;
  --code-fg: #e7e9ec;
  --code-k: #7fd6a2;
  --code-s: #d6dca6;
  --code-c: #8b929c;
  --sans: 'Schibsted Grotesk', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --r-sm: 4px;
  --r-md: 8px;
  --top-h: 68px;
  --space: clamp(120px, 20vh, 220px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-strong); color: var(--on-accent); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ── Brand: the block mark (eight mapped tiles and one being filled in) and the wordmark ─────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font: 650 1.16rem/1 var(--sans); letter-spacing: -.03em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand b { font-weight: 400; color: var(--ink-3); }
.wm { display: inline-flex; gap: .26em; }
.mark { width: 27px; height: 27px; flex: none; overflow: visible; }
.mark-tiles { fill: currentColor; }
.mark-tiles rect, .mark-pt, .mark-ping { transform-box: fill-box; transform-origin: center; }
.mark-pt { fill: var(--accent); }
.mark-ping { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: 0; }

/* On every load the header logo surveys itself: the tiles populate in a diagonal wave, the missing tile drops in green
   and pings, and the wordmark sets letter by letter. Hovering replays a quick wave. */
@media (prefers-reduced-motion: no-preference) {
  .top .brand:not(.built) .mark-tiles rect { animation: tile-in .6s var(--ease-out) both; animation-delay: calc(.12s + var(--t) * 80ms); }
  .top .brand:not(.built) .mark-pt { animation: pt-in .75s cubic-bezier(.3, 1.45, .45, 1) .62s both; }
  .top .brand:not(.built) .mark-ping { animation: ping .9s ease-out 1.05s both; }
  .js .top .wm-a .ch { display: inline-block; }
  .js .top .brand:not(.built) .wm-a .ch { animation: ch-in .7s var(--ease-out) both; animation-delay: calc(.3s + var(--c) * 34ms); }
  .top .wm b { display: inline-block; }
  .top .brand:not(.built) .wm b { animation: labs-in .8s var(--ease-out) .82s both; }
  .brand.built.wave .mark-tiles rect { animation: tile-wave .55s var(--ease) both; animation-delay: calc(var(--t) * 45ms); }
  .brand.built.wave .mark-pt { animation: pt-hop .6s var(--ease) .18s both; }
  .brand.built.wave .mark-ping { animation: ping .8s ease-out .3s both; }
}
@keyframes tile-in { 0% { opacity: 0; transform: scale(.2) rotate(-90deg); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes pt-in { 0% { opacity: 0; transform: translateY(-170%) scale(.7); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes ch-in { from { opacity: 0; transform: translateY(.55em); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes labs-in { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-.3em); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes tile-wave { 50% { transform: scale(.62); } }
@keyframes pt-hop { 40% { transform: translateY(-38%); } 70% { transform: translateY(6%); } }

/* ── Header: floats over the hero, gains paper and a rule once the page scrolls ───────────────────────────────── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 28px; height: var(--top-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.top.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom-color: var(--rule); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) { position: relative; padding: 8px 13px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .94rem; text-decoration: none; transition: color .2s ease; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(.5); }
.nav a[aria-current=true] { color: var(--ink); }
.nav a[aria-current=true]::after { transform: scaleX(1); }
.nav-cta { margin-left: 14px; }
.menu { display: none; }

/* ── Buttons ──────────────────────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-sm);
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--core); color: var(--on-core); }
.btn-ink:hover { background: color-mix(in srgb, var(--core) 84%, var(--bg)); color: var(--on-core); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-accent { background: var(--accent-strong); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent-strong) 85%, var(--ink)); color: var(--on-accent); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.link { min-height: 44px; padding: 0; border: 0; background: none; font: 600 .92rem var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link:hover { color: var(--accent-ink); }
/* A text link with an arrow that slides: the hero's quiet second action. */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Layout: wide air between sections, a narrow measure inside them ──────────────────────────────────────── */
main > section:not(.hero) { max-width: var(--max); margin: 0 auto; padding: var(--space) var(--gutter) 0; }
main > section:last-child { padding-bottom: var(--space); }
h2 { margin: 0; font: 540 clamp(2.2rem, 4.2vw, 3.5rem)/1.04 var(--sans); letter-spacing: -.04em; }
h3 { margin: 0; font: 600 1.15rem/1.3 var(--sans); letter-spacing: -.015em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 600; font-size: .9rem; color: var(--accent-ink); }
.kicker::before { content: ''; width: 18px; height: 1.5px; background: currentColor; }
.head { max-width: 46rem; margin-bottom: clamp(48px, 8vh, 88px); }
.head p:not(.kicker) { margin: 20px 0 0; max-width: 38em; font-size: 1.15rem; color: var(--ink-2); }

/* ── Hero: the land itself, softly alive, with the survey drawn over it ───────────────────────────────────── */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--top-h)); padding-top: var(--top-h); min-height: 100svh; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 72% 52%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), radial-gradient(40% 50% at 18% 30%, #fff, transparent 70%); }
.hero-lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-lines line, .hero-lines .marks path { stroke: var(--line); stroke-width: 1; }
.hero-lines .marks path { stroke: color-mix(in srgb, var(--ink) 35%, transparent); }
.hero-lines .orbit { fill: none; stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-lines .orbit-dash { stroke-dasharray: 3 6; stroke: color-mix(in srgb, var(--ink) 30%, transparent); }
.hero-lines .coord { font: 500 11px var(--sans); fill: var(--ink-3); letter-spacing: .06em; }
.hero-in { display: grid; grid-template-columns: minmax(420px, 5fr) minmax(0, 7fr); align-items: center; max-width: 1480px; min-height: calc(100svh - var(--top-h)); margin: 0 auto; padding: 0 var(--gutter); }
.hero-text { position: relative; z-index: 2; padding: 6vh 0 10vh; }
h1 { margin: 0 0 30px; font: 500 clamp(2.8rem, 4.6vw, 4.5rem)/1 var(--sans); letter-spacing: -.045em; }
.lede { margin: 0; max-width: 29em; font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.now { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 0; padding-top: 22px; max-width: 30em; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--ink-3); }
.now b { color: var(--ink); font-weight: 600; }
.now-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.now-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .now-dot::after { animation: breathe 2.4s ease-out infinite; } }
@keyframes breathe { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

/* The map is the centrepiece: as tall as the screen allows, against the right edge, over the relief that breathes. */
.hero-map { position: relative; z-index: 1; justify-self: end; width: min(calc((100svh - var(--top-h) - 64px) * 1.148), 68vw); margin: 0 calc(-1 * var(--gutter)) 0 0; min-width: 0; will-change: transform; }
.map-box { position: relative; aspect-ratio: 1110 / 967; }
.map-box .relief, .map-box .relief-gl, .map-box .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-box .relief { object-fit: fill; opacity: .95; }
.map-box .relief-gl { opacity: 0; transition: opacity 1.2s ease; }
.map-box.gl-on .relief-gl { opacity: 1; }
.map-box.gl-on .relief { opacity: 0; transition: opacity 1.2s ease; }
.map { display: block; overflow: visible; }
.map .land { fill: transparent; }
.map .c { fill: none; stroke: var(--contour); stroke-width: .6; opacity: .85; }
.map .c.major { stroke: color-mix(in srgb, var(--ink) 55%, var(--contour)); stroke-width: 1; }
.map .outline { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.map .ticks line { stroke: var(--ink); stroke-width: .5; opacity: .12; stroke-dasharray: 2 5; }
.map .ticks text { font: 500 11px var(--sans); fill: var(--ink-3); letter-spacing: .02em; }
.map .ticks text[text-anchor=end] { display: none; }
.map .gap-bg { fill: var(--bg); opacity: .78; }
.map .gap-area { fill: url(#hatch); stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
#hatch line { stroke: var(--hatch); stroke-width: 1.1; }
/* Uppercase, spaced place labels are the cartographic convention, so they stay inside the map only. */
.map .gap text { font: 650 11px var(--sans); letter-spacing: .1em; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.map .gap .gap-v { font-weight: 500; fill: var(--ink-2); font-size: 9.5px; }
.map .metro { cursor: pointer; outline: none; }
.map .metro rect { fill: var(--accent); stroke: var(--ink); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease); }
.map .metro:hover rect, .map .metro:focus-visible rect, .map .metro.on rect { transform: scale(1.6); }
.map .metro-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-tip { position: absolute; left: 0; top: 0; z-index: 3; margin: 0; padding: 7px 11px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font-size: .82rem; line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .2s ease; }
.map-tip.show { opacity: 1; }
.map-tip span { color: var(--on-core-2); }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 26px; margin: -3% calc(var(--gutter) + 2%) 0 0; font-size: .84rem; color: var(--ink-2); }
.legend-src { color: var(--ink-3); }
.key { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--ink); }
.key-gap { background: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 4px); }
.key-metro { background: var(--accent); }

/* The survey being drawn: line art and contours, then the outline, the blanks, the metros and their pulses. */
@media (prefers-reduced-motion: no-preference) {
  .hero-lines line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.4s var(--ease-out) .2s forwards; }
  .hero-lines .orbit { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s cubic-bezier(.5, .1, .2, 1) .5s forwards; }
  .hero-lines .orbit-dash { stroke-dasharray: 3 6; stroke-dashoffset: 0; animation: fade 2s ease .9s both, spin 90s linear infinite; transform-box: fill-box; transform-origin: center; }
  .hero-lines .marks, .hero-lines .coord { animation: fade 1s ease 1.4s both; }
  .map .c { animation: fade 1s ease-out both; }
  .map .c:nth-child(1) { animation-delay: .1s; } .map .c:nth-child(2) { animation-delay: .2s; } .map .c:nth-child(3) { animation-delay: .3s; }
  .map .c:nth-child(4) { animation-delay: .4s; } .map .c:nth-child(5) { animation-delay: .5s; } .map .c:nth-child(6) { animation-delay: .6s; }
  .map .c:nth-child(7) { animation-delay: .7s; } .map .c:nth-child(8) { animation-delay: .8s; } .map .c:nth-child(9) { animation-delay: .9s; }
  .map .c:nth-child(10) { animation-delay: 1s; }
  .map .outline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.6, .1, .2, 1) .15s forwards; }
  .map .gap { opacity: 0; animation: fade-in .7s ease-out forwards; animation-delay: calc(1.7s + var(--i) * .25s); }
  .map .metro rect { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(2.4s + var(--i) * .09s); }
  .map .metro-ring { animation: radar 3.2s ease-out infinite; animation-delay: calc(3.2s + var(--i) * .4s); }
  .map-box .relief { animation: fade 1.6s ease both; }
  .hero-text > * { animation: rise .9s var(--ease-out) both; }
  .hero-text > :nth-child(1) { animation-delay: .15s; } .hero-text > :nth-child(2) { animation-delay: .27s; }
  .hero-text > :nth-child(3) { animation-delay: .39s; } .hero-text > :nth-child(4) { animation-delay: .51s; }
  .legend { animation: fade 1s ease 2.8s both; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes radar { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(4.5); } }

/* ── The problem: 173 scattered decisions fall into one grid as the section scrolls into view ─────────────── */
.problem { overflow: clip; }
.problem-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.problem-text h2 { margin-bottom: 28px; }
.problem-text p:not(.kicker) { margin: 0 0 18px; max-width: 34em; color: var(--ink-2); }
.problem-text strong { color: var(--ink); font-weight: 600; }
.srcs { font-size: .88rem; }
.srcs a { color: var(--ink-3); }
.stack { margin: 0; min-width: 0; }
.tiles { --p: 1; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; }
.tiles i {
  --q: clamp(0, calc((1 - var(--p)) * 1.5 - var(--k) * .5), 1);
  display: block; aspect-ratio: 3 / 4; border-radius: 2px; border: 1px solid var(--rule-2);
  background: linear-gradient(var(--rule-2), var(--rule-2)) 22% 26% / 56% 1px no-repeat, linear-gradient(var(--rule-2), var(--rule-2)) 22% 42% / 56% 1px no-repeat, linear-gradient(var(--rule-2), var(--rule-2)) 22% 58% / 36% 1px no-repeat, var(--surface);
  transform: translate(calc(var(--sx) * var(--q) * 1px), calc(var(--sy) * var(--q) * 1px)) rotate(calc(var(--sr) * var(--q) * 1deg));
  opacity: calc(1 - var(--q) * .55);
  transition: background-color .5s ease, border-color .5s ease;
}
.tiles i.won { border-color: var(--accent-strong); background: var(--accent); }
.stack figcaption { display: grid; margin-top: 22px; font-size: .92rem; color: var(--ink-3); }
.stack figcaption > span { grid-area: 1 / 1; transition: opacity .5s ease, transform .5s var(--ease); }
.stack figcaption b { color: var(--ink); font-weight: 700; }
.cap-b { opacity: 0; transform: translateY(6px); }
.stack.done .cap-a { opacity: 0; transform: translateY(-6px); }
.stack.done .cap-b { opacity: 1; transform: none; }
.cap-key { display: inline-block; width: 10px; height: 13px; margin-right: 8px; vertical-align: -1px; border-radius: 2px; background: var(--accent); }

/* A retyped excerpt from a source document, with the error ringed. */
.excerpt { margin: clamp(80px, 14vh, 160px) 0 0; padding: 26px 28px 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); }
.excerpt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-bottom: 8px; font-size: .86rem; color: var(--ink-3); }
.excerpt-head p { margin: 0; }
.excerpt-head p:first-child { color: var(--ink); font-weight: 600; }
.ex-tbl td.n { font-size: .95rem; }
.ring { position: relative; display: inline-block; padding: 0 4px; font-weight: 700; color: var(--flag); }
.ring svg { max-width: none; position: absolute; left: -16px; top: -12px; width: calc(100% + 32px); height: calc(100% + 24px); overflow: visible; pointer-events: none; }
.ring path { fill: none; stroke: var(--flag); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ex-note { margin: 20px 0 0; max-width: 46em; color: var(--ink-2); }
.ex-note b { color: var(--ink); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .js .excerpt .ring path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6, .1, .3, 1) .5s; }
  .js .excerpt.in .ring path { stroke-dashoffset: 0; }
  .js .excerpt .ex-note { opacity: 0; transition: opacity .6s ease 1.3s; }
  .js .excerpt.in .ex-note { opacity: 1; }
}

/* ── Tables (sample record and excerpt) ───────────────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { padding: 10px 14px 9px 0; text-align: left; font: 600 .78rem/1.3 var(--sans); color: var(--ink-3); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td.n { font-family: var(--mono); font-size: .84rem; }
.tbl .cur { font-weight: 700; color: var(--ink); }
.tbl .u { font: 400 .76rem var(--mono); color: var(--ink-3); white-space: nowrap; }
.ex-bad td { background: color-mix(in srgb, var(--flag) 6%, transparent); }

/* ── Sample record: the one raised object on the page (it stands for the product) ────────────────────────── */
.spec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.spec-sheet { min-width: 0; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-md); box-shadow: 0 1px 2px rgba(15, 20, 25, .06), 0 30px 60px -30px rgba(15, 20, 25, .35); overflow: hidden; }
.spec-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--rule); background: var(--sunk); }
.spec-id { margin: 0; font: 400 .74rem/1.4 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.tabs button { min-height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); font: 600 .84rem/1 var(--sans); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.tabs button[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 20, 25, .12); }
.tabs button:hover:not([aria-selected=true]) { color: var(--ink); }
.spec-title { padding: 24px 24px 4px; }
.spec-title h3 { font-size: 1.3rem; }
.spec-title p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-3); }
.panel { padding: 10px 24px 24px; }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .panel:not([hidden]) { animation: fade .35s ease both; } }
.code { margin: 0; padding: 18px; overflow-x: auto; border-radius: var(--r-sm); background: var(--code-bg); color: var(--code-fg); font: 400 .76rem/1.7 var(--mono); tab-size: 2; }
.code .k, .json .k { color: var(--code-k); }
.code .s, .json .s { color: var(--code-s); }
.code .c { color: var(--code-c); }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.endpoint code { padding: 5px 9px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--sunk); font: 400 .74rem/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.tag { font-size: .84rem; color: var(--ink-3); }
.spec-side { display: grid; gap: 32px; min-width: 0; padding-top: 6px; }
.stamp h3, .checks h3 { margin-bottom: 12px; font-size: 1rem; }
.stamp dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: .93rem; }
.stamp dt { color: var(--ink-3); }
.stamp dd { margin: 0; color: var(--ink); }
.stamp a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .93rem; }
.checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: .93rem; color: var(--ink-2); }
.checks li::before { content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 .7rem/1 var(--sans); }
.checks li.flag::before { content: '!'; background: var(--flag); color: #fff; }

/* ── Method: one figure travels from the PDF to an alert, card by card ────────────────────────────────────── */
.flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.flow::before { content: ''; position: absolute; left: 4%; right: 4%; top: 196px; height: 1px; background: linear-gradient(90deg, var(--accent) var(--fp, 100%), var(--rule-2) var(--fp, 100%)); }
.flow::after { content: ''; position: absolute; top: 192px; left: calc(4% + (92% * var(--fd, 1)) - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); opacity: var(--fo, 0); }
.step { position: relative; min-width: 0; }
.step-card { position: relative; z-index: 1; height: 172px; padding: 16px 16px 14px; border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color .5s ease, box-shadow .5s ease, transform .5s var(--ease); }
.step.on .step-card { border-color: var(--ink); box-shadow: 0 24px 40px -28px rgba(15, 20, 25, .45); transform: translateY(-4px); }
.card-k { margin: 0 0 14px; font-weight: 600; font-size: .78rem; color: var(--ink-3); }
.paper .ln { display: block; height: 5px; margin: 0 0 9px; border-radius: 3px; background: var(--sunk); }
.paper .ln.short { width: 72%; } .paper .ln.shorter { width: 48%; }
.doc-row { display: flex; justify-content: space-between; gap: 8px; margin: 0 -6px 9px; padding: 5px 6px; border-radius: 3px; font: 400 .66rem/1.3 var(--mono); color: var(--ink-2); transition: background-color .5s ease; }
.doc-row b { font-weight: 400; color: var(--ink); }
.step.on .doc-row { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.calc { margin: 0; font: 400 1.05rem/1.3 var(--mono); color: var(--ink-2); }
.calc span { color: var(--ink-3); }
.calc-r { margin: 6px 0 12px; font: 500 1.9rem/1 var(--sans); letter-spacing: -.03em; }
.ok { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 600; font-size: .84rem; color: var(--accent-ink); }
.ok::before { content: '✓'; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: .62rem; }
.json pre { margin: 0; font: 400 .74rem/1.75 var(--mono); color: var(--code-fg); white-space: pre-wrap; }
.step-card.json { background: var(--code-bg); border-color: var(--code-bg); }
.step-card.json .card-k { color: var(--code-c); }
.alert-t { margin: 0 0 6px; font-weight: 650; font-size: .95rem; }
.alert-b { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.alert-b b { color: var(--ink); font-weight: 650; }
.step-card.alert { border-left: 3px solid var(--accent); }
.step-n { position: relative; z-index: 1; display: inline-block; margin: 18px 0 14px; padding-right: 10px; background: var(--bg); font: 400 .78rem/1 var(--mono); color: var(--ink-3); }
.step h3 { margin-bottom: 10px; }
.step > p:last-child { margin: 0; font-size: .95rem; color: var(--ink-2); }
.flow-note { margin: clamp(48px, 7vh, 72px) 0 0; font-size: 1.05rem; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .js .step { opacity: .35; transition: opacity .6s ease; }
  .js .step.on { opacity: 1; }
}

/* ── Who it's for: the questions each buyer asks, in large type ───────────────────────────────────────────── */
.asks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 8vh, 96px) clamp(40px, 6vw, 96px); }
.asks li { padding-top: 22px; border-top: 1px solid var(--ink); }
.ask-k { margin: 0 0 16px; font-weight: 600; font-size: .9rem; color: var(--accent-ink); }
.ask-q { margin: 0 0 16px; font: 450 clamp(1.45rem, 2.2vw, 1.9rem)/1.2 var(--sans); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.ask-a { margin: 0; max-width: 32em; color: var(--ink-2); }

/* ── Datasets: the first survey as a feature, the rest as an index ────────────────────────────────────────── */
.code-id { font: 400 .76rem/1 var(--mono); color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); font: 600 .8rem/1.1 var(--sans); color: var(--ink-2); white-space: nowrap; background: var(--surface); }
.status::before { content: ''; width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--ink-2); flex: none; }
.s-early { border-color: var(--accent); color: var(--ink); }
.s-early::before { background: var(--accent); border-color: var(--accent); }
.s-dev::before { background: linear-gradient(to top, var(--ink-2) 50%, transparent 50%); }
.s-research::before { background: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 3px); }
.s-yours { border-style: dashed; }
.s-yours::before { border-style: dashed; }

.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 4vw, 52px); border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface); }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.feature h3 { margin-bottom: 14px; font: 560 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--sans); letter-spacing: -.035em; }
.feature p { margin: 0 0 12px; color: var(--ink-2); }
.feature .feature-for { color: var(--ink-3); font-size: .95rem; }
.feature-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }

.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 26px; display: grid; gap: 24px; align-content: start; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; border-left: 2px dashed var(--rule-2); }
.timeline li { position: relative; display: grid; gap: 2px; font-size: .95rem; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.timeline b { font-weight: 650; }
.timeline span { color: var(--ink-2); }
.timeline .today b { color: var(--accent-ink); }
.timeline .today::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline .today span { color: var(--ink-3); }

.index { list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 180px 150px; gap: 8px 24px; align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--rule); transition: background-color .25s ease; }
.row:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.row-main p { margin: 4px 0 0; font-size: .95rem; color: var(--ink-2); }
.row .status { justify-self: start; }
.row .btn { justify-self: end; }
.row-ask { border-bottom: 1px dashed var(--rule-2); }

/* ── Founding customers: the one dark block, for the one commercial decision ──────────────────────────────── */
.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.offer-card { position: sticky; top: calc(var(--top-h) + 24px); padding: 36px 32px; border-radius: var(--r-md); background: var(--core); color: var(--on-core); }
.price { margin: 0; font-size: 1.05rem; color: var(--on-core-2); }
.price span { display: block; font: 560 clamp(3rem, 5.5vw, 4.4rem)/1 var(--sans); letter-spacing: -.05em; color: var(--on-core); }
.price-alt { margin: 6px 0 4px; color: var(--on-core); }
.lock { margin: 0 0 24px; font-size: .92rem; color: var(--on-core-2); }
.incl { list-style: none; margin: 0 0 24px; padding: 20px 0 0; display: grid; gap: 11px; border-top: 1px solid color-mix(in srgb, var(--on-core) 22%, transparent); }
.incl li { position: relative; padding-left: 26px; }
.incl li::before { content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.incl b { font-weight: 650; }
.fine { margin: 0; font-size: .86rem; color: var(--on-core-2); }

/* ── Forms ────────────────────────────────────────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-md); }
.form h3 { margin: 0 0 2px; font-size: 1.4rem; letter-spacing: -.02em; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.lbl { display: block; }
.opt { font-weight: 400; color: var(--ink-3); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--sans);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form textarea { resize: vertical; }
.form select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%); background-position: right 17px top 50%, right 12px top 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--ink-3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form ::placeholder { color: var(--ink-3); opacity: .8; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .9rem; }
.form .choice label { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); font-weight: 500; font-size: .95rem; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.form .choice label:hover { border-color: var(--ink-3); }
.form .choice label:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.form .check a { color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--core); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.msg { margin: 0; min-height: 1.4em; font-size: .95rem; }
.msg:empty { display: none; }
.msg.ok { color: var(--ink); font-weight: 600; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sunk); }
.msg.err { color: var(--flag); font-weight: 600; }
.form.sent > :not(.msg):not(.x) { opacity: .45; pointer-events: none; }

.request-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.request-grid .head { position: sticky; top: calc(var(--top-h) + 24px); margin: 0; }
.aside { padding-left: 14px; border-left: 2px solid var(--accent); font-size: 1rem !important; }

/* ── FAQ ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.qs { max-width: 54rem; border-top: 1px solid var(--ink); }
.qs details { border-bottom: 1px solid var(--rule); interpolate-size: allow-keywords; }
.qs summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding: 16px 0; font-weight: 550; font-size: 1.1rem; cursor: pointer; list-style: none; transition: color .2s ease; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary:hover { color: var(--accent-ink); }
.qs summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.qs details[open] summary::after { transform: rotate(45deg); }
.qs details p { margin: 0; padding: 0 0 24px; max-width: 44em; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .qs details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .qs details[open]::details-content { block-size: auto; }
}

/* ── Footer ───────────────────────────────────────────────────────────────────────────────────────────────── */
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr); gap: 28px; max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ink); font-size: .93rem; color: var(--ink-2); }
.foot p { margin: 0 0 8px; }
.foot .brand { margin-bottom: 14px; }
.foot-meta { text-align: right; }
.credit { font-size: .82rem; color: var(--ink-3); }

/* ── The "I need this" dialog ─────────────────────────────────────────────────────────────────────────────── */
.pledge { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); }
.pledge::backdrop { background: rgba(14, 18, 22, .45); backdrop-filter: blur(3px); }
.pledge .form { position: relative; box-shadow: 0 30px 80px -20px rgba(15, 20, 25, .5); }
.pledge h3 { padding-right: 40px; font-size: 1.6rem; }
.pl-kicker { margin: 0; font-weight: 600; font-size: .88rem; color: var(--ink-3); }
.x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: none; font: 400 1.6rem/1 var(--sans); cursor: pointer; color: var(--ink-2); }
.x:hover { color: var(--ink); background: var(--sunk); }
@media (prefers-reduced-motion: no-preference) {
  .pledge[open] { animation: rise .35s var(--ease); }
  .pledge[open]::backdrop { animation: fade .3s ease; }
}

/* ── Plain pages (privacy, 404) ───────────────────────────────────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vh, 80px) var(--gutter); }
.doc h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.doc h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.sheet { margin: 0 0 18px; font-weight: 600; font-size: .9rem; color: var(--ink-3); }
.foot-name { font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.foot-name b { font-weight: 400; color: var(--ink-3); }

/* Section text eases in once as it arrives. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform 1s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ── Narrow screens ───────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 8px 9px; }
  .hero-in { grid-template-columns: minmax(360px, 4.6fr) minmax(0, 7.4fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .flow::before, .flow::after { display: none; }
}
@media (max-width: 980px) {
  :root { --space: clamp(96px, 14vh, 140px); }
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 4vh; }
  .hero-text { padding: 2vh 0 0; }
  .hero-map { justify-self: stretch; width: auto; margin: 0 calc(-1 * var(--gutter)); }
  .legend { justify-content: flex-start; margin: 0 var(--gutter) 40px; }
  .problem-grid, .spec, .feature, .offer, .request-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-card, .request-grid .head { position: static; }
  .row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .row .btn { grid-column: 2 / -1; justify-self: start; }
  .row .status { grid-column: 3; grid-row: 1; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-meta { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 860px) {
  /* The nav folds into a menu sheet under the header. */
  .top { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
  .menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-left: auto; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 .92rem var(--sans); cursor: pointer; }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 16px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), background-color .2s ease; }
  .menu-bars { position: relative; }
  .menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
  .menu-bars::before { top: -5px; } .menu-bars::after { top: 5px; }
  .menu[aria-expanded=true] .menu-bars { background: transparent; }
  .menu[aria-expanded=true] .menu-bars::before { transform: translateY(5px) rotate(45deg); }
  .menu[aria-expanded=true] .menu-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: 0 20px 30px -24px rgba(15, 20, 25, .4); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s; }
  .top.open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .3s var(--ease), visibility 0s; }
  .top.open { border-bottom-color: var(--rule); }
  .nav a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current=true] { font-weight: 650; }
  .nav-cta { margin: 16px 0 0; }
}
@media (max-width: 640px) {
  :root { --top-h: 60px; --space: 96px; }
  .brand { font-size: 1.04rem; }
  h1 { font-size: clamp(2.7rem, 12vw, 3.4rem); }
  .now { margin-top: 36px; }
  .row2, .row3 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
  .flow, .asks { grid-template-columns: minmax(0, 1fr); }
  .excerpt { padding: 18px; }
  .spec-title, .panel { padding-left: 14px; padding-right: 14px; }
  .spec-bar { padding: 10px 10px 10px 14px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 0; }
  .row .code-id { grid-column: 1; }
  .row .status { grid-column: 2; grid-row: 1; justify-self: end; }
  .row-main { grid-column: 1 / -1; }
  .row .btn { grid-column: 1 / -1; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  /* The record's table becomes one block per charge, each value labelled. */
  .tbl-rec thead { display: none; }
  .tbl-rec tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .tbl-rec tr:last-child { border-bottom: 0; }
  .tbl-rec td { padding: 0; border: 0; text-align: left; }
  .tbl-rec td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .tbl-rec td[data-l=Unit] { grid-column: 1 / -1; order: 1; }
  .tbl-rec td[data-l=Unit]::before { content: 'Unit '; font-family: var(--sans); }
  .tbl-rec td.n { order: 2; text-align: left; }
  .tbl-rec td.n::before { content: attr(data-l); display: block; font: 600 .74rem/1.4 var(--sans); color: var(--ink-3); }
  /* The hero map is about a third of its drawn size on a phone: larger labels, no edge figures or second lines. */
  .map .gap text { font-size: 30px; stroke-width: 9px; }
  .map .gap .gap-v, .map .ticks text { display: none; }
  .hero-lines .coord { display: none; }
}
@media (max-width: 340px) {
  .brand b { display: none; }
}
