/* Hallmark · shape: Feature Stack (draw e41133; each automation holds its head in a sticky pane while its flow and built screens scroll past) · genre: editorial · theme: Almanac (by request, the Tidetable picture) · job: hire (talk to us) · draw: e41133
 * hero: Index (the ten-city service register is the visual, the head small above it) · nav: slab · footer: statement · imagery: the product built in 5 slots, no photographs (the library has no HVAC frame; VRF's own screens replace them) · signature: the service register for all ten branches, set as a printed reference table
 * axes: mid/grotesk-sans/chromatic-magenta · posture: restrained · contrast: pass · fold: pass · data: sample · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: H, five stacks share one skeleton; each pairs a different flow (a chain with a joining lane, a supply lane, a six-step chain, an escalation drop, a stock check with an alert) with different sheets, and the paper alternates */
/* Hallmark · waive 44c · Index hero: the register sheet sits under the head and is painted to y 865 at 1440 x 900 · the ten-city register is the hero's visual, set below the head as the Index posture asks, so nothing stands beside the text */
/* Hallmark · waive 79 · the register runs from y 330 to y 865 under the head · the check reads only the head block; the register sheet below it is the hero's content and reaches the fold */
/* Hallmark · dismissed 58 · the page count includes the built product screens and the flow-diagram node labels; the densest 900px window holds 89 words, most of them chart labels */
/* Hallmark · dismissed F25 · the stage and stock tables pin their first column and scroll sideways inside a labelled region on a phone; the other tables drop their secondary columns */
/* Hallmark · dismissed render · fonts are self-hosted and the shots show Hanken Grotesk, Newsreader and Plex Mono; the warning comes from preload timing on the local server */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Fonts (self-hosted; the CSP allows nothing else) ---------- */
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-latin.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-latin-ext.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-ext.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Page tokens ---------- */
:root {
  --logo-tile: var(--color-ink);
  --logo-edge: var(--color-paper);
  --logo-word: var(--color-sheet);
  --on-ink: var(--color-paper);
  --on-ink-2: var(--color-sheet);
  --tint-accent: color-mix(in oklab, var(--color-accent) 9%, var(--color-sheet));
  --well: color-mix(in oklab, var(--color-paper) 55%, var(--color-sheet));
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 4.25h31v1.5H0z'/%3E%3Cpath d='M30 0l10 5-10 5z'/%3E%3C/svg%3E");
  --arrow-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 40' preserveAspectRatio='none'%3E%3Cpath d='M4.25 0h1.5v31h-1.5z'/%3E%3Cpath d='M0 30l5 10 5-10z'/%3E%3C/svg%3E");
  --arrow-u: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 40' preserveAspectRatio='none'%3E%3Cpath d='M4.25 9h1.5v31h-1.5z'/%3E%3Cpath d='M0 10L5 0l5 10z'/%3E%3C/svg%3E");
}

body { color: var(--color-ink-2); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.mono, .num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.accent-text { color: var(--color-accent); }
b, strong { font-weight: 500; color: var(--color-ink); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--on-ink); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Type ---------- */
h1, h2, h3 { color: var(--color-ink); }
h1 { max-width: 16ch; line-height: 0.95; letter-spacing: -0.035em; }
h2 { line-height: 1.03; }
.lead { color: var(--color-ink-2); }
a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Controls ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }

/* ---------- Slab nav ---------- */
.slab { background: var(--color-ink); color: var(--on-ink); }
.slab-bar { display: flex; align-items: center; gap: var(--space-lg); min-height: 64px; }
.brand { display: inline-flex; flex: none; border-radius: var(--radius-pill); }
.brand:focus-visible { outline: 2px solid var(--on-ink-2); outline-offset: 4px; }
.logo { height: 28px; width: auto; }
.slab-for { margin-right: auto; line-height: 1; padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-muted); font-size: var(--text-sm); color: var(--on-ink); }
.slab-links { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font: 500 var(--text-sm)/1 var(--font-display); }
.slab-links a { color: var(--on-ink-2); text-decoration-color: transparent; white-space: nowrap; }
.slab-links a:hover { text-decoration-color: var(--on-ink-2); }
.slab-links a:focus-visible { outline: 2px solid var(--on-ink-2); outline-offset: 3px; }
.slab-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-paper); border-radius: var(--radius-pill); transition: background-color var(--dur-short) var(--ease-out); }
.slab-links .slab-cta:hover { background: var(--color-ink-2); text-decoration-color: transparent; }

/* ---------- Hero: the register ---------- */
.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.hero-top h1 { grid-column: 1 / 9; }
.hero-side { grid-column: 9 / 13; display: grid; gap: var(--space-lg); padding-bottom: var(--space-2xs); }
.sheet.register { margin-top: var(--space-xl); }

/* ---------- The sheet: the printed page on the slate ---------- */
.sheet { margin: 0; padding: var(--space-md) var(--space-lg) var(--space-lg); background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); color: var(--color-ink-2); }
.sheet[data-slot] { background: var(--color-sheet); overflow: visible; }
.pair[data-slot] { background: none; overflow: visible; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); padding-bottom: var(--space-sm); }
.sheet-title { font: 600 var(--text-xl)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
.sheet-title .mono { font-weight: 500; letter-spacing: 0; }
.sheet-when { font-size: var(--text-md); color: var(--color-muted); }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); font-style: italic; color: var(--color-muted); }

/* tables */
table { width: 100%; border-collapse: collapse; }
thead th { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: var(--rule-bar) solid var(--color-rule-2); font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); text-align: left; vertical-align: bottom; white-space: nowrap; }
tbody th, tbody td, tfoot th, tfoot td { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
tbody tr:first-child > * { border-top: 0; }
tbody th { font-weight: 500; color: var(--color-ink); }
th:last-child, td:last-child { padding-right: 0; }
.r, td.num { text-align: right; }
td.num { font-size: 0.9375rem; color: var(--color-ink); white-space: nowrap; }
tr.is-pointed > * { color: var(--color-accent); background: var(--tint-accent); }
tfoot th, tfoot td { border-top: var(--rule-bar) solid var(--color-rule-2); font-weight: 500; color: var(--color-ink); }
.reg tbody th, .reg td { padding-block: var(--space-xs); }
.reg tbody th { font-size: 1.0625rem; }
.reg th.r, .reg td.num { width: 12%; }
.scroll { overflow-x: auto; }
.scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- The five, over a client's life ---------- */
.life-sec { padding-block: var(--section-gap-s) var(--section-gap-l); border-top: var(--rule-hair) solid var(--color-rule-2); }
.head-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head-split h2 { grid-column: 1 / 8; }
.head-split .lead { grid-column: 8 / 13; }
.life { margin: 0; }
.life-grid { position: relative; display: grid; grid-template-columns: minmax(14.5rem, 2.2fr) repeat(6, minmax(0, 1fr)); grid-template-rows: auto repeat(5, 72px); }
.life-grid::before { content: ""; grid-column: 2 / 8; grid-row: 2 / 7; background-image: repeating-linear-gradient(to right, var(--color-rule-2) 0 1px, transparent 1px calc(100% / 6)); opacity: 0.35; pointer-events: none; }
.life-grid::after { content: ""; grid-column: 1 / 8; grid-row: 2 / 7; background-image: repeating-linear-gradient(to bottom, transparent 0 71px, var(--color-rule) 71px 72px); pointer-events: none; }
.life-stage { grid-row: 1; padding: 0 var(--space-xs) var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-rule-2); font: 500 var(--text-sm)/1.25 var(--font-body); color: var(--color-muted); }
.life-stage .sm { display: none; }
.life-stage.s0 { grid-column: 1; } .life-stage.s1 { grid-column: 2; } .life-stage.s2 { grid-column: 3; } .life-stage.s3 { grid-column: 4; } .life-stage.s4 { grid-column: 5; } .life-stage.s5 { grid-column: 6; } .life-stage.s6 { grid-column: 7; }
.life-name { grid-column: 1; align-self: center; padding-right: var(--space-md); white-space: nowrap; font: 600 var(--text-lg)/1.2 var(--font-display); letter-spacing: -0.01em; }
.life-bar { position: relative; z-index: var(--z-base); align-self: center; display: flex; align-items: center; min-height: 36px; padding: var(--space-2xs) var(--space-sm); margin-inline: 1px; background: var(--color-ink); color: var(--on-ink-2); font: 500 var(--text-sm)/1.2 var(--font-display); }
.life-bar.is-key { background: var(--color-accent); color: var(--color-accent-ink); }
.r1 { grid-row: 2; } .r2 { grid-row: 3; } .r3 { grid-row: 4; } .r4 { grid-row: 5; } .r5 { grid-row: 6; }
.c1-3 { grid-column: 2 / 4; } .c3-5 { grid-column: 4 / 6; } .c3-7 { grid-column: 4 / 8; } .c4-7 { grid-column: 5 / 8; }
.life figcaption { margin-top: var(--space-lg); max-width: 60ch; font-size: var(--text-md); color: var(--color-muted); }

/* ---------- Feature stacks ---------- */
.stack { padding-block: var(--section-gap-s); }
.stack--alt { background: var(--color-paper-2); padding-block: var(--section-gap); }
.stack + .stack:not(.stack--alt) { border-top: 0; }
.stack-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.pane { grid-column: 1 / 5; position: sticky; top: var(--space-2xl); display: grid; gap: var(--space-lg); padding-top: var(--space-sm); border-top: var(--rule-bar) solid var(--color-ink); }
.pane .lead { font-size: var(--text-lead); }
.facts { margin: var(--space-xs) 0 0; }
.facts > div { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); }
.facts dt { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
.facts dd { margin: var(--space-3xs) 0 0; color: var(--color-ink); }
.caps { grid-column: 5 / 13; display: flex; flex-direction: column; gap: var(--space-2xl); min-width: 0; container-type: inline-size; }
.cap { margin: 0; }
.cap > figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }

/* ---------- Flow diagrams ---------- */
.flow-wrap { padding-block: var(--space-xs); }
.flow { --fg: var(--space-lg); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--fg); margin: 0; padding: 0; list-style: none; }
.n4 { --n: 4; } .n5 { --n: 5; }
.node { position: relative; display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-sm) var(--space-xs) var(--space-md) var(--space-sm); background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); }
.node .ico { color: var(--color-muted); margin-bottom: var(--space-2xs); }
.node b { font: 600 var(--text-md)/1.2 var(--font-display); color: var(--color-ink); }
.node span { font-size: var(--text-sm); line-height: 1.35; color: var(--color-muted); }
.node.is-out { border-top-color: var(--color-accent); }
.node:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 100%; width: var(--fg); height: 10px; background: var(--color-ink); -webkit-mask: var(--arrow) center / 100% 100% no-repeat; mask: var(--arrow) center / 100% 100% no-repeat; }
.lane { margin-top: var(--space-xl); }
.lane .node { background: transparent; border: var(--rule-hair) dashed var(--color-rule-2); }
.lane-skip { visibility: hidden; }
.scroll-hint { display: none; }
.lane .lane-skip::after, .lane .node:has(+ .lane-skip)::after { display: none; }
.lane .is-up::before, .lane .is-down::before { content: ""; position: absolute; bottom: 100%; left: calc(50% - 5px); width: 10px; height: calc(var(--space-xl) - 2px); background: var(--color-ink); -webkit-mask: var(--arrow-u) center / 100% 100% no-repeat; mask: var(--arrow-u) center / 100% 100% no-repeat; }
.lane .is-down::before { -webkit-mask-image: var(--arrow-d); mask-image: var(--arrow-d); }

@container (max-width: 720px) {
  .flow { grid-template-columns: minmax(0, 1fr); --fg: var(--space-lg); }
  .node { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-3xs); }
  .node .ico { grid-row: 1 / 3; margin: 0; }
  .node:not(:last-child)::after { top: 100%; left: calc(var(--space-sm) + 5px); width: 10px; height: var(--fg); -webkit-mask-image: var(--arrow-d); mask-image: var(--arrow-d); }
  .lane { margin-top: var(--space-lg); margin-left: var(--space-xl); }
  .lane .lane-skip { display: none; }
  .lane .is-up::before, .lane .is-down::before { display: none; }
  .lane[data-from]::before { content: attr(data-from); font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
}

/* ---------- Built screens ---------- */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
@container (max-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* chat */
.chat { display: grid; gap: var(--space-sm); padding: 0 var(--space-md) var(--space-lg); background: var(--color-paper-3); border-top: var(--rule-bar) solid var(--color-ink); }
.chat-head { display: flex; align-items: center; gap: var(--space-xs); margin-inline: calc(-1 * var(--space-md)); padding: var(--space-sm) var(--space-md); background: var(--color-ink-2); color: var(--on-ink-2); font: 600 var(--text-md)/1.2 var(--font-display); }
.msg { display: grid; gap: var(--space-2xs); max-width: 88%; padding: var(--space-xs) var(--space-sm); font-size: 0.9375rem; line-height: 1.45; }
.msg time { justify-self: end; font: 400 var(--text-xs)/1 var(--font-outlier); }
.msg.in { justify-self: start; background: var(--color-sheet); color: var(--color-ink); }
.msg.in time { color: var(--color-muted); }
.msg.out { justify-self: end; background: var(--color-ink-2); color: var(--on-ink-2); }
.msg.out time { color: var(--on-ink); }
.attach { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid currentColor; font: 500 var(--text-sm)/1.2 var(--font-display); }

/* key-value sheets */
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.kv > div:first-child { border-top: 0; }
.kv dt { font: 500 var(--text-sm)/1.5 var(--font-body); color: var(--color-muted); }
.kv dd { margin: 0; color: var(--color-ink); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.report-sign { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); color: var(--color-muted); }
.update-site { margin-bottom: var(--space-xs); font: 600 var(--text-md)/1.3 var(--font-display); color: var(--color-ink); }
.meter { display: inline-block; width: 7rem; height: 8px; background: var(--color-paper-2); }
.meter i { display: block; width: 66.6%; height: 100%; background: var(--color-ink); }

/* project stage tracks */
.stages { min-width: 640px; }
.st-h { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2xs); min-width: 19rem; }
.st-h span { font-size: var(--text-xs); }
.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2xs); min-width: 19rem; }
.track i { height: 10px; background: var(--color-paper-2); }
.at-2 i:nth-child(-n+1), .at-3 i:nth-child(-n+2), .at-4 i:nth-child(-n+3), .at-5 i:nth-child(-n+4) { background: var(--color-ink); }
.at-1 i:nth-child(1), .at-2 i:nth-child(2), .at-3 i:nth-child(3), .at-4 i:nth-child(4), .at-5 i:nth-child(5) { background: var(--color-accent); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); color: var(--color-muted); }
.key { display: inline-block; width: 14px; height: 10px; margin-left: var(--space-sm); background: var(--color-paper-2); }
.key:first-child { margin-left: 0; }
.key--done { background: var(--color-ink); }
.key--now { background: var(--color-accent); }

/* snag list */
.snags { margin: 0; padding: 0; list-style: none; }
.snags li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); }
.snags li:first-child { border-top: 0; }
.tag { flex: none; padding: var(--space-3xs) var(--space-xs); border: var(--rule-hair) solid var(--color-muted); font: 500 var(--text-xs)/1.3 var(--font-display); color: var(--color-muted); }
.tag.is-open { border-color: var(--color-accent); color: var(--color-accent); }

/* quote */
.quote-meta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-sm) var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.quote-meta b { font: 600 var(--text-md)/1.4 var(--font-display); }
.quote table, .dues table { min-width: 460px; }
.tbl { min-width: 520px; }
.stock { min-width: 760px; }
.stock thead th, .stock td { padding-right: var(--space-xs); }
.scroll tbody th, .scroll tfoot th, .scroll thead th:first-child { position: sticky; left: 0; z-index: var(--z-base); background: var(--color-sheet); }
.scroll tr.is-pointed > th { background: var(--tint-accent); }
td.low { color: var(--color-accent); font-weight: 500; text-decoration: underline 2px; text-underline-offset: 0.2em; }

/* dues bars */
.bars { display: grid; gap: var(--space-xs); padding-block: var(--space-sm) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.bar-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 6.5rem; align-items: center; gap: var(--space-md); font-size: var(--text-sm); color: var(--color-ink); }
.bar-row .mono { text-align: right; font-size: 0.9375rem; }
.bar-track { height: 18px; background: var(--color-paper-2); }
.bar { display: block; height: 100%; background: var(--color-ink); }
.is-pointed .bar { background: var(--color-accent); }
.is-pointed .mono, .is-pointed .bar-k { color: var(--color-accent); }
.w-100 { width: 100%; } .w-68 { width: 68%; } .w-38 { width: 38%; } .w-27 { width: 27%; }

/* email */
.mailhead { margin: 0 0 var(--space-md); }
.mailhead > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.mailhead dt { font-size: var(--text-sm); color: var(--color-muted); }
.mailhead dd { margin: 0; color: var(--color-ink); font-weight: 500; }
.mailbody { display: grid; gap: var(--space-sm); max-width: 62ch; color: var(--color-ink); }
.mailbody .attach { justify-self: start; color: var(--color-ink-2); }

/* transfer hops */
.hops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.hops li { display: grid; gap: var(--space-3xs); padding-top: var(--space-xs); border-top: 4px solid var(--color-paper-2); font-size: var(--text-sm); color: var(--color-muted); }
.hops b { font: 600 var(--text-md)/1.2 var(--font-display); }
.hops .is-done { border-top-color: var(--color-ink); }
.hops .is-now { border-top-color: var(--color-accent); }
.hops .is-now b { color: var(--color-accent); }

/* ---------- Where we start ---------- */
.start { padding-block: var(--section-gap-l) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule-2); }
.start-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.start-text { grid-column: 1 / 6; display: grid; gap: var(--space-lg); }
.start-list { grid-column: 7 / 13; }
.start-k { max-width: none; padding-bottom: var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-rule-2); }
.needs { margin: 0; }
.needs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap-columns); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.needs dt { font: 600 var(--text-lg)/1.3 var(--font-display); color: var(--color-ink); }
.needs dd { margin: 0; color: var(--color-ink-2); }

/* ---------- Footer: statement ---------- */
.foot { padding-block: var(--space-3xl) var(--space-xl); background: var(--color-ink); color: var(--on-ink); }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); }
.btn--light { border-color: var(--on-ink-2); color: var(--on-ink-2); }
.foot .btn--light { text-decoration: none; }
.foot .btn--light:hover { background: var(--color-ink-2); }
.foot-line { max-width: 22ch; font: 600 var(--text-display-s)/1.02 var(--font-display); letter-spacing: -0.03em; color: var(--on-ink-2); text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--on-ink-2); text-decoration-color: var(--color-muted); }
.foot a:hover { text-decoration-color: var(--on-ink-2); }
.foot a:focus-visible { outline: 2px solid var(--on-ink-2); outline-offset: 3px; }
.foot-small { display: grid; gap: var(--space-2xs); margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--on-ink); }
.foot-small p { max-width: 75ch; }

/* ---------- Narrower screens ---------- */
@media (max-width: 75rem) {
  .hero-top h1 { grid-column: 1 / 8; }
  .hero-side { grid-column: 8 / 13; }
  .pane { grid-column: 1 / 6; }
  .life-name { font-size: var(--text-md); }
  .caps { grid-column: 6 / 13; }
}
@media (max-width: 60rem) {
  .hero-top, .head-split, .stack-grid, .start-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-top h1, .hero-side, .head-split h2, .head-split .lead, .pane, .caps, .start-text, .start-list { grid-column: 1; }
  .hero-top { row-gap: var(--space-lg); }
  .head-split { row-gap: var(--space-md); margin-bottom: var(--space-xl); }
  .pane { position: static; }
  .stack-grid { row-gap: var(--space-xl); }
  .caps { gap: var(--space-2xl); }
  .start-grid { row-gap: var(--space-2xl); }
  .slab-for { display: none; }
  .slab-bar { justify-content: space-between; }
}
@media (max-width: 40rem) {
  .hide-s, .opt { display: none; }
  .logo { height: 24px; }
  .sheet { padding-inline: var(--space-md); }
  .reg tbody th { font-size: var(--text-md); }
  .reg thead th { white-space: normal; }
  .reg th.r, .reg td.num { width: auto; }
  .life-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; row-gap: var(--space-xs); }
  .life-grid::before { grid-column: 1 / 7; grid-row: 2 / 12; }
  .life-grid::after { display: none; }
  .life-stage { padding-inline: var(--space-3xs); font-size: var(--text-xs); hyphens: manual; }
  .life-stage .lg { display: none; }
  .life-stage .sm { display: inline; }
  .life-stage.s0 { display: none; }
  .life-stage.s1 { grid-column: 1; } .life-stage.s2 { grid-column: 2; } .life-stage.s3 { grid-column: 3; } .life-stage.s4 { grid-column: 4; } .life-stage.s5 { grid-column: 5; } .life-stage.s6 { grid-column: 6; }
  .life-name { grid-column: 1 / 7; padding-top: var(--space-md); font-size: var(--text-md); white-space: normal; }
  .life-bar { min-height: 32px; font-size: var(--text-xs); }
  .life-name.r1 { grid-row: 2; } .life-bar.r1 { grid-row: 3; } .life-name.r2 { grid-row: 4; } .life-bar.r2 { grid-row: 5; } .life-name.r3 { grid-row: 6; } .life-bar.r3 { grid-row: 7; } .life-name.r4 { grid-row: 8; } .life-bar.r4 { grid-row: 9; } .life-name.r5 { grid-row: 10; } .life-bar.r5 { grid-row: 11; }
  .c1-3 { grid-column: 1 / 3; } .c3-5 { grid-column: 3 / 5; } .c3-7 { grid-column: 3 / 7; } .c4-7 { grid-column: 4 / 7; }
  .kv > div { grid-template-columns: 7rem minmax(0, 1fr); }
  .needs > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .bar-row { grid-template-columns: 6.5rem minmax(0, 1fr) 5.5rem; gap: var(--space-sm); }
  .hops { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-md); }
  .quote-meta { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .scroll-hint { display: block; margin-top: var(--space-xs); font-size: var(--text-sm); font-style: italic; color: var(--color-muted); }
  figcaption .scroll-hint { display: inline; margin: 0; }
  .tbl, .quote table, .dues table { min-width: 0; }
  .stages { min-width: 520px; }
  .stock { min-width: 760px; }
  .stages tbody th { min-width: 9rem; }
}
