/* Plumb: paper, ink, one survey map. Tokens first; see DESIGN.md for what each colour is allowed to mean. */
:root {
  --paper: #EFE9DB;
  --sheet: #F7F3E9;
  --sheet-2: #E6DFCD;
  --ink: #1D1A15;
  --ink-2: #4B453B;
  --muted: #6F6757;
  --line: rgba(29, 26, 21, .12);
  --line-2: rgba(29, 26, 21, .22);
  --line-3: rgba(29, 26, 21, .45);
  --contour: #A8653A;
  --contour-ink: #7E4421;     /* sienna dark enough for text: strings in code */
  --x: #C4331A;               /* Claude's X, and the one primary button */
  --x-ink: #B02B13;
  --x-tint: rgba(196, 51, 26, .11);
  --truth: #1F5E8C;           /* the shipped fix, nothing else */
  --truth-tint: rgba(31, 94, 140, .10);
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-text: "Overpass", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html.still { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
b, strong { font-weight: 700; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--x); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
small { font-size: .5em; font-family: var(--f-mono); color: var(--muted); margin-left: .25em; letter-spacing: 0; }

/* ---------- bands */
.down { font: 500 12px/1.4 var(--f-mono); text-align: center; padding: 8px var(--gut); background: var(--sheet-2); color: var(--ink); border-bottom: 1px solid var(--line-2); }

/* ---------- header */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.nav .in { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mk { width: 30px; height: 30px; }
.brand .wm { height: 27px; width: auto; }
.links { display: flex; gap: 22px; font-size: 14px; }
.links a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.links a:hover, .links a.on { color: var(--ink); border-bottom-color: var(--ink); }
.acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px; font: 500 12px var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.pill[data-s=live] { color: var(--ink); border-color: var(--line-3); }
.pill[data-s=live] i { background: var(--x); border-color: var(--x); animation: beat 1.6s var(--ease) infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; background: transparent; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; font: 500 12px var(--f-mono); }
.ca .k { color: var(--muted); }
.ca.soon { cursor: default; }
.ca.soon .v { color: var(--muted); }
.ib { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 2px; }
.ib svg { width: 14px; height: 14px; fill: currentColor; }
.ib[hidden] { display: none; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font: 600 14px/1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .1s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.x { background: var(--x); border-color: var(--x); color: #FBF7EE; }
.btn.x:hover { background: var(--x-ink); border-color: var(--x-ink); }
.btn.big { height: 50px; padding: 0 22px; font-size: 15px; }
.btn[hidden] { display: none; }

/* ---------- hero */
.hero { padding-top: clamp(36px, 6vw, 72px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.kick { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
h1 { font: 400 clamp(54px, 7.6vw, 116px)/.9 var(--f-display); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 .b2 { white-space: nowrap; }
.xg { display: inline-block; width: .7em; height: .7em; vertical-align: -.02em; margin-right: .04em; }
.xg svg { width: 100%; height: 100%; display: block; }
.xg path { fill: none; stroke: var(--x); stroke-width: 6.5; stroke-linecap: square; }
.lede p { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.lede b { color: var(--ink); font-weight: 600; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* the survey sheet: a map with a neatline, a title block and a legend */
.sheet { margin: 0; background: var(--sheet); border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; position: relative; }
.collar { display: flex; align-items: center; gap: 24px; padding: 12px 16px; font: 400 12px/1.4 var(--f-mono); }
.collar.top { border-bottom: 1px solid var(--ink); justify-content: space-between; min-height: 62px; }
.collar.bot { border-top: 1px solid var(--ink); justify-content: space-between; flex-wrap: wrap; }
.tb { display: flex; gap: 0; margin: 0; flex: none; }
.tb > div { padding: 0 16px; border-left: 1px solid var(--line-2); }
.tb > div:first-child { padding-left: 0; border-left: 0; }
.tb dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tb dd { margin: 2px 0 0; color: var(--ink); white-space: nowrap; }
.tb dd span { color: var(--muted); margin-left: 8px; }
.reading { margin: 0; color: var(--ink-2); text-align: right; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reading b { color: var(--ink); font-weight: 500; }
.map { position: relative; height: clamp(260px, 30vw, 400px);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: -1px -1px; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.map-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; font: 400 13px var(--f-mono); color: var(--muted); }
.map-empty b { font: 400 26px var(--f-display); color: var(--ink); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 12px; display: inline-block; flex: none; }
.lg-c { border-top: 1.5px solid var(--contour); border-bottom: 1px solid var(--contour); opacity: .9; height: 7px !important; }
.lg-h { background: repeating-linear-gradient(-45deg, var(--line-3) 0 1px, transparent 1px 4px); border: 1px solid var(--line-2); }
.lg-x { background: linear-gradient(45deg, transparent 43%, var(--x) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--x) 43% 57%, transparent 57%); width: 12px !important; }
.lg-o { border: 2px solid var(--truth); border-radius: 50%; width: 12px !important; }
.scale { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.scale i { display: block; height: 7px; border: 1.5px solid var(--ink); border-top: 0; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%) bottom / 100% 3px no-repeat; transition: width .3s; }

/* ---------- the route: trade to plumb */
.route { margin-top: clamp(40px, 6vw, 72px); }
.route ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.route ol::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; border-top: 1.5px dashed var(--line-3); }
.wp { position: relative; padding-right: 20px; }
.wp .n { position: relative; width: 29px; height: 29px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); font: 500 12px var(--f-mono); transition: background .3s, color .3s; }
.wp.on .n { background: var(--ink); color: var(--paper); }
.wp.here .n { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--ink); }
.wp h3 { margin: 14px 0 4px; font: 700 15px var(--f-text); }
.wp p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; max-width: 22ch; }

/* ---------- figures: a ruled table */
.figs { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(40px, 6vw, 64px); }
.figs > div { padding: 16px 16px 18px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); border-left: 1px solid var(--line-2); min-width: 0; }
.figs > div:first-child { border-left: 0; padding-left: 0; }
.figs .k { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.figs .v { font: 400 clamp(32px, 3.2vw, 46px)/1.1 var(--f-display); margin: 6px 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.figs .s { font: 400 12px/1.4 var(--f-mono); color: var(--muted); }

/* ---------- sections */
.blk { padding-top: clamp(64px, 9vw, 112px); }
.sh { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { display: flex; align-items: center; gap: 8px; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
h2 { font: 400 clamp(36px, 4.4vw, 60px)/1 var(--f-display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.side { font: 400 13px/1.5 var(--f-mono); color: var(--ink-2); margin: 0; max-width: 46ch; text-align: right; }
.side b { color: var(--ink); font-weight: 500; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.live-dot.on { background: var(--x); border-color: var(--x); animation: beat 1.6s var(--ease) infinite; }

/* ---------- the case viewer */
.case { background: var(--sheet); border: 1px solid var(--ink); }
.case-hd { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 18px; border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.case-hd .id { min-width: 0; }
.case-hd .t1 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case-hd .cve { font: 500 13px var(--f-mono); color: var(--muted); }
.case-hd .nm { font: 400 30px/1.1 var(--f-display); }
.case-hd .t2 { font: 400 12px/1.5 var(--f-mono); color: var(--ink-2); margin-top: 4px; overflow-wrap: anywhere; }
.case-hd .t2 b { font-weight: 500; color: var(--ink); }
.meters { display: flex; margin: 0; }
.meters > div { padding: 0 16px; border-left: 1px solid var(--line-2); }
.meters dt { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.meters dd { margin: 2px 0 0; font: 500 15px var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-bd { display: grid; grid-template-columns: minmax(0, 1fr) 140px 340px; height: 580px; }
.code { overflow: auto; font: 400 12.5px/20px var(--f-mono); background: var(--sheet); overscroll-behavior: contain; tab-size: 4; }
.ln { display: grid; grid-template-columns: 56px 28px max-content; height: 20px; white-space: pre; padding-right: 24px; }
.ln .no { text-align: right; padding-right: 10px; color: var(--muted); user-select: none; border-right: 1px solid var(--line); }
.ln .tg { position: relative; user-select: none; }
.ln .tx { color: var(--ink); }
.ln.seen .tg { background: repeating-linear-gradient(-45deg, var(--line-2) 0 1px, transparent 1px 4px); }
.ln.cur { background: rgba(29, 26, 21, .07); }
.ln.cur .no { color: var(--ink); }
.ln.vd { background: var(--x-tint); }
.ln.fx .no { box-shadow: inset -3px 0 0 var(--truth); color: var(--truth); }
.tag { position: absolute; left: 3px; top: 3px; height: 14px; min-width: 20px; padding: 0 3px; font: 500 9.5px/14px var(--f-mono); text-align: center; background: var(--ink); color: var(--paper); border-radius: 1px; }
.tag.x { background: var(--x); }
.tag.o { background: var(--truth); }
.code .c { color: var(--muted); font-style: italic; }
.code .s { color: var(--contour-ink); }
.code .k { font-weight: 500; color: var(--ink); }
.code .n { color: var(--ink-2); }
.code .pp { color: var(--muted); }
.code .pad { height: 240px; }
.nocode { height: 100%; display: grid; place-content: center; gap: 6px; text-align: center; padding: 24px; color: var(--muted); font: 400 13px var(--f-mono); }
.nocode b { font: 400 26px var(--f-display); color: var(--ink); }
.strip { position: relative; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); cursor: pointer; background: var(--sheet); }
.strip canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.strip .vp { position: absolute; left: 0; right: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(29, 26, 21, .05); pointer-events: none; }
.book { display: grid; grid-template-rows: auto 190px auto minmax(0, 1fr); background: var(--sheet-2); min-height: 0; }
.bh { display: flex; justify-content: space-between; padding: 10px 14px; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.bh + .notes, .think + .bh { border-top: 1px solid var(--line-2); }
.think { overflow: auto; padding: 10px 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); overscroll-behavior: contain; }
.think b { color: var(--ink); }
.notes { list-style: none; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; }
.notes .empty { padding: 14px; color: var(--muted); font: 400 13px var(--f-mono); }
.nt { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; line-height: 1.45; transition: background .2s; }
.nt:hover { background: rgba(29, 26, 21, .04); }
.nt .i { font: 500 11px/20px var(--f-mono); color: var(--muted); }
.nt .r { font: 500 11.5px var(--f-mono); color: var(--ink-2); }
.nt .s { color: var(--ink); }
.nt.now { background: rgba(29, 26, 21, .07); }
.nt.say .s { color: var(--ink-2); font-style: italic; }

.vs { display: grid; grid-template-columns: minmax(0, 1fr) 290px minmax(0, 1fr); border-top: 1px solid var(--ink); }
.vs > div { padding: 18px; min-width: 0; }
.vs .mid { border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hk { display: flex; align-items: center; gap: 8px; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kx { width: 10px; height: 10px; background: linear-gradient(45deg, transparent 40%, var(--x) 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, var(--x) 40% 60%, transparent 60%); }
.ko { width: 10px; height: 10px; border: 2px solid var(--truth); border-radius: 50%; }
.vs h4 { margin: 0 0 10px; font: 700 17px/1.3 var(--f-text); }
.vs h4.dim, .dim { color: var(--muted); }
.vs p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.vs p .k { color: var(--ink); font-weight: 600; }
.vs .wait { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 2px; font: 500 11.5px var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.chip.ok { border-color: var(--truth); color: var(--truth); }
.verd { font: 400 44px/1 var(--f-display); }
.verd.found { color: var(--ink); }
.verd.missed { color: var(--muted); }
.mid .d { font: 400 12px var(--f-mono); color: var(--ink-2); }
details { margin-top: 8px; }
summary { cursor: pointer; font: 500 12px var(--f-mono); color: var(--ink-2); padding: 4px 0; }
.diff { font: 400 11.5px/1.55 var(--f-mono); background: var(--paper); border: 1px solid var(--line-2); padding: 8px 0; margin-top: 6px; max-height: 280px; overflow: auto; white-space: pre; }
.diff > div { padding: 0 10px; min-width: max-content; }
.diff .a { background: var(--truth-tint); }
.diff .r { background: var(--x-tint); }
.diff .h { color: var(--muted); }
a.u { color: var(--truth); text-underline-offset: 3px; font: 500 13px var(--f-mono); }

/* the gauge: X at zero, the fix at its distance */
.gauge { display: block; max-width: 100%; height: auto; overflow: visible; }
.gauge .base { stroke: var(--line-3); stroke-width: 1; }
.gauge .zf { fill: var(--ink); }
.gauge .zc { fill: var(--line-3); }
.gauge .zm { fill: var(--line-2); }
.gauge .ticks line { stroke: var(--line-3); }
.gauge text { font: 500 10px var(--f-mono); fill: var(--muted); text-anchor: middle; }
.gauge .x { stroke: var(--x); stroke-width: 3; stroke-linecap: square; fill: none; }
.gauge .ring { fill: none; stroke: var(--truth); stroke-width: 2; }
.gauge .ar { fill: var(--truth); }
.gauge text.sealed { font-size: 11px; fill: var(--muted); }

/* ---------- cases */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fl { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); background: transparent; border-radius: 2px; cursor: pointer; font: 500 12.5px var(--f-mono); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s; }
.fl i { font-style: normal; color: var(--muted); }
.fl:hover { border-color: var(--ink); }
.fl.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fl.on i { color: var(--sheet-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--sheet); border: 1px solid var(--line-2); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); min-width: 0; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .cve { font: 500 12px var(--f-mono); color: var(--muted); }
.card h3 { margin: 4px 0 0; font: 400 26px/1.1 var(--f-display); }
.card .where { font: 400 12px var(--f-mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .gw { margin: 8px 0 2px; padding: 4px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.card .gauge { margin: 0 auto; }
.card .got { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .got .k { color: var(--muted); }
.card .ft { margin-top: auto; padding-top: 10px; display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; font: 500 12px var(--f-mono); color: var(--ink-2); }
.card .ft .go { color: var(--ink); }
.card.queued h3 { color: var(--ink-2); }
.badge { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 2px; font: 500 11px var(--f-mono); letter-spacing: .04em; border: 1px solid var(--ink); }
.badge.found { background: var(--ink); color: var(--paper); }
.badge.close { background: transparent; }
.badge.missed, .badge.none, .badge.declined, .badge.error { border-style: dashed; color: var(--muted); border-color: var(--line-3); }
.badge.queued { border-color: var(--line-2); color: var(--muted); }
.badge.running { border-color: var(--x); color: var(--x-ink); }
.badge.running::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x); animation: beat 1.6s var(--ease) infinite; }
.empty-card { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px dashed var(--line-3); display: grid; gap: 4px; color: var(--muted); font: 400 13px var(--f-mono); }
.empty-card b { font: 400 28px var(--f-display); color: var(--ink); }
.more { text-align: center; margin-top: 20px; }

/* ---------- ledger */
.led { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.led > div { background: var(--sheet); border: 1px solid var(--ink); min-width: 0; }
.lh { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--ink); }
.lh .k { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lh .v { font: 400 32px/1 var(--f-display); }
.rows { max-height: 400px; overflow: auto; overscroll-behavior: contain; }
.row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 104px 70px; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); font: 400 12.5px var(--f-mono); align-items: baseline; }
.row .m { color: var(--muted); }
.row .e { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .e a { text-underline-offset: 3px; }
.row .r { text-align: right; font-variant-numeric: tabular-nums; }
.row .r.x { color: var(--ink-2); }
.rows .empty { padding: 16px; color: var(--muted); font: 400 13px var(--f-mono); }

/* ---------- method */
.how { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.how .it { padding: 18px 20px 0 0; }
.how .it + .it { padding-left: 20px; border-left: 1px solid var(--line-2); }
.how .n { font: 500 12px var(--f-mono); color: var(--muted); }
.how h3 { margin: 8px 0 8px; font: 400 26px/1.1 var(--f-display); }
.how p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.how p b { color: var(--ink); }

/* ---------- footer */
.foot { margin-top: clamp(72px, 10vw, 128px); padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; align-items: start; }
.foot .fm { height: 42px; width: auto; }
.fine { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.fl2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font: 500 12.5px var(--f-mono); }
.fl2 a { color: var(--ink-2); text-underline-offset: 3px; }
.soc { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.mo { background: transparent; border: 1px solid var(--line-2); border-radius: 2px; height: 30px; padding: 0 10px; cursor: pointer; font: 500 12px var(--f-mono); }
.mo:hover { border-color: var(--ink); }
.host { margin-left: auto; color: var(--muted); }

/* ---------- case page */
.ph { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(32px, 5vw, 56px) 0 24px; flex-wrap: wrap; }
.back { font: 500 13px var(--f-mono); color: var(--ink-2); text-decoration: none; display: inline-block; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.ph h1 { font-size: clamp(44px, 6vw, 84px); }
.sub2 { font: 400 13px/1.5 var(--f-mono); color: var(--ink-2); margin-top: 12px; overflow-wrap: anywhere; }
.sub2 b { color: var(--ink); font-weight: 500; }
.rp { display: flex; gap: 8px; }
.sheet.small { margin-bottom: 32px; }
.sheet.small .map { height: clamp(170px, 18vw, 230px); }
.about { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); margin-top: 40px; }
.about > div { padding: 18px 24px 0 0; min-width: 0; }
.about > div + div { padding-left: 24px; border-left: 1px solid var(--line-2); }
.about p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }
.about b { color: var(--ink); }
.lost { padding: 80px 0 40px; display: grid; gap: 18px; justify-items: start; }
.lost p { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* ---------- motion off: every frame complete and still */
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }

/* ---------- narrower screens */
@media (max-width: 1100px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .figs { grid-template-columns: repeat(3, 1fr); }
  .figs > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .case-bd { grid-template-columns: minmax(0, 1fr) 104px; height: auto; }
  .case-bd .code { height: 520px; }
  .book { grid-column: 1 / -1; grid-template-rows: auto 150px auto 260px; border-top: 1px solid var(--ink); }
  .vs { grid-template-columns: 1fr 1fr; }
  .vs .mid { grid-column: 1 / -1; grid-row: 1; border: 0; border-bottom: 1px solid var(--line-2); }
  .how { grid-template-columns: 1fr 1fr; }
  .how .it:nth-child(3) { padding-left: 0; border-left: 0; }
  .pill { display: none; }
}
@media (max-width: 760px) {
  .nav .in { height: auto; min-height: 56px; flex-wrap: wrap; gap: 0 12px; padding-top: 10px; padding-bottom: 0; }
  .brand .mk { width: 26px; height: 26px; }
  .brand .wm { height: 23px; }
  .links { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding: 8px 0 8px; font-size: 13.5px; scrollbar-width: none; }
  .acts { gap: 6px; }
  .acts .btn { display: none; }
  .collar.top { flex-direction: column; align-items: stretch; gap: 10px; }
  .tb > div:nth-child(3) { display: none; }
  .tb dd { white-space: normal; overflow-wrap: anywhere; }
  .reading { text-align: left; }
  .map { height: 230px; background-size: 40px 40px; }
  .legend { gap: 6px 14px; font-size: 11.5px; }
  .route ol { grid-template-columns: 1fr; gap: 18px; }
  .route ol::before { left: 14px; right: auto; top: 14px; bottom: 14px; border-top: 0; border-left: 1.5px dashed var(--line-3); }
  .wp { display: grid; grid-template-columns: 29px 1fr; column-gap: 14px; padding: 0; }
  .wp h3 { margin: 4px 0 2px; }
  .wp p { grid-column: 2; max-width: none; }
  .figs { grid-template-columns: 1fr 1fr; }
  .figs > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figs > div:nth-child(4) { border-left: 1px solid var(--line-2); padding-left: 16px; }
  .side { text-align: left; }
  .case-hd .meters { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .meters > div { padding: 0 10px; }
  .meters > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tb { flex-direction: column; gap: 6px; }
  .tb > div { border-left: 0; padding: 0; }
  .case-bd { grid-template-columns: minmax(0, 1fr) 64px; }
  .case-bd .code { height: 420px; font-size: 12px; }
  .ln { grid-template-columns: 44px 24px max-content; }
  .vs { grid-template-columns: 1fr; }
  .vs > .col + .col { border-top: 1px solid var(--line-2); }
  .led { grid-template-columns: 1fr; }
  .row { grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 8px; padding: 8px 12px; }
  .row .m { white-space: nowrap; }
  .row .r.x { display: none; }
  .how { grid-template-columns: 1fr; }
  .how .it, .how .it + .it { padding: 16px 0 0; border-left: 0; }
  .how .it + .it { border-top: 1px solid var(--line-2); margin-top: 16px; }
  .about { grid-template-columns: 1fr; }
  .about > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .foot { grid-template-columns: 1fr; }
  .host { margin-left: 0; width: 100%; }
  .ca .k { display: none; }
  .cta .btn { flex: 1 1 100%; }
}
