/* /household: one household, proved. Night ground from top to bottom, in the
   homepage's Ledger language: a copy column with its own clear space, a case
   file drawn in square cells (accounts are strips cut into lots), mono kickers,
   corner registration marks, a typeset plan record, and evidence figures in the
   paper's grammar (caption, comparator, data, source). Everything reads in full
   without JavaScript; the figures then show their final state. */

/* ------------------------------------------------------------- page ground */
html:has(body.hh-page) { background: #0a0d14; }
html body.editorial-site.hh-page { background: #0a0d14 !important; color: #f2f3f6 !important; }

.hx {
  --bg: #0a0d14;
  --s1: #0f131c;
  --s2: #141925;
  --ink: #f2f3f6;
  --soft: #aab1be;
  --faint: #7e8696;
  --rule: rgba(242, 243, 246, .14);
  --rule2: rgba(242, 243, 246, .07);
  --sig: #97a4ff;
  --cop: #d08a5c;
  --n0: #5d6577;
  --n1: #8a92a3;
  --n2: #c6ccd8;
  --cell0: #232a39;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav: var(--site-nav-height, 88px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 80px);
  display: block;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx :focus-visible { outline: 2px solid var(--sig) !important; outline-offset: 4px !important; }
.hx .vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The site's legacy table and code colours stop at this page. */
.hx th { color: var(--faint) !important; background: transparent !important; }
.hx code { color: var(--ink) !important; background: transparent !important; border: 0 !important; padding: 0 !important; }

/* ------------------------------------------------------------- type */
.hx-kicker { margin: 0 0 22px; font: 500 11px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.hx h1 { margin: 0; font: 400 clamp(40px, 4.15vw, 64px)/1.0 var(--sans); letter-spacing: -.05em; color: var(--ink); text-wrap: balance; }
.hx h2 { margin: 0 0 24px; font: 400 clamp(32px, 3vw, 50px)/1.04 var(--sans); letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.hx-accent { color: var(--sig); }
.hx-lede { margin: 0 0 14px; max-width: 46ch; font: 400 clamp(16px, 1.22vw, 18px)/1.62 var(--sans); color: var(--soft); text-wrap: pretty; }
.hx-fine { margin: 18px 0 0; max-width: 64ch; font: 400 13px/1.65 var(--sans); color: var(--faint); }

.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 34px 0 0; }
.hx .hx-btn {
  display: inline-flex; align-items: center; gap: 18px; min-height: 50px; padding: 13px 18px;
  border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--bg) !important;
  font: 500 15px/1.3 var(--sans); text-decoration: none; transition: background-color .2s ease, border-color .2s ease;
}
.hx .hx-btn:hover { background: var(--sig); border-color: var(--sig); }
.hx .hx-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 500 15px/1.3 var(--sans); color: var(--ink) !important; text-decoration: none; border-bottom: 1px solid var(--rule);
  transition: border-color .2s ease;
}
.hx .hx-link:hover { border-color: var(--ink); }
.hx-btn svg, .hx-link svg, .ev-src svg { width: 16px; height: 16px; flex: 0 0 auto; }
.hx-status { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 30px 0 0; font: 500 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hx-status span + span { color: var(--sig); }
.hx-status span + span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--sig); vertical-align: 1px; }

/* Corner registration marks, as on the homepage's figures. */
.hx-marks { position: absolute; inset: 0; pointer-events: none; }
.hx-marks i { position: absolute; width: 12px; height: 12px; border: 0 solid rgba(242, 243, 246, .28); }
.hx-marks i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hx-marks i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hx-marks i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hx-marks i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* Small cell glyphs beside lists and controls. */
.hx-gl { display: block; width: 48px; height: 32px; margin: 0 0 16px; overflow: visible; }
.gl-n { fill: var(--n2); } .gl-n1 { fill: var(--n1); } .gl-d { fill: var(--n0); } .gl-s { fill: var(--sig); }
.gl-l { fill: none; stroke: var(--n1); stroke-width: 1; }
.gl-o { fill: none; stroke: var(--n2); stroke-width: 1; }
.gl-dash { fill: none; stroke: var(--sig); stroke-width: 1; stroke-dasharray: 2 2; }
.gl-hatch { fill: none; stroke: var(--n1); stroke-width: 1; }

/* Ranges in big numbers: a clear gap each side of the dash, lifted to the
   middle of the figures (Inter's dash sits at lowercase height). */
.hx .nd, .hx .nx {
  display: inline-block !important; padding: 0 !important; font: inherit !important; color: inherit !important;
  letter-spacing: inherit !important; text-transform: none !important; vertical-align: baseline !important;
}
.hx .nd { margin: 0 .1em !important; transform: translateY(-.07em) !important; }
.hx .nx { margin: 0 0 0 .06em !important; transform: translateY(-.03em) !important; }

/* ------------------------------------------------------------- sections */
.hx-sec { position: relative; padding: clamp(88px, 10vw, 148px) 0; border-top: 1px solid var(--rule); scroll-margin-top: var(--nav); }
.hx-in { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.hx-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(40px, 6vw, 96px); align-items: end; margin: 0 0 clamp(44px, 5vw, 76px); }
.hx-head .hx-kicker { grid-column: 1 / -1; }
.hx-head h2 { grid-column: 1; margin: 0; font-size: clamp(34px, 3.5vw, 56px); }
.hx-head.is-stack { display: block; margin: 0 0 clamp(36px, 4vw, 60px); }
.hx-filmhead .hx-head.is-stack { margin: 0; }
.hx-more { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 22px 0 0; }
.hx-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 500 14px/1.4 var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.hx-more a::after { content: "→"; }
.hx-more a:hover { border-color: var(--ink); }

/* ============================================================= 1. Case file */
.hx-case { position: relative; display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
.hx-copycol { grid-column: 1; grid-row: 1; min-width: 0; padding: 0 clamp(28px, 3.6vw, 60px) 0 var(--pad); }
.hx-stage {
  grid-column: 2; grid-row: 1; position: sticky; top: var(--nav); align-self: start; min-width: 0;
  height: calc(100vh - var(--nav)); height: calc(100svh - var(--nav));
  border-left: 1px solid var(--rule2); overflow: hidden; container: cf / size;
}
.hx-step { position: relative; min-height: var(--len, 96vh); padding-top: 18vh; }
.hx-step.is-long { --len: 138vh; }
.hx-step:last-child { --len: 104vh; }
.hx-hero { --len: calc(100svh - var(--nav)); display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vh, 80px) 0 clamp(72px, 12vh, 132px); }
.hx-copy { position: sticky; top: calc(var(--nav) + 8vh); max-width: 540px; padding-bottom: 48px; }
.hx-hero .hx-copy { position: relative; top: auto; }
.hx-hero h1 { margin-bottom: 28px; }
.hx-cue { position: absolute; left: 0; bottom: 30px; display: flex; align-items: center; gap: 14px; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.hx-cue::after { content: ""; width: 64px; height: 1px; background: linear-gradient(90deg, var(--faint) 0 40%, transparent 40%); background-size: 200% 100%; animation: hx-cue 2.4s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes hx-cue { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.hx-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.hx-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); font: 400 15px/1.55 var(--sans); color: var(--soft); }
.hx-list li b { font-weight: 500; color: var(--ink); }
.hx-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; background: var(--n0); }
.hx-list li.is-cop::before { background: var(--cop); }
.hx-list li.is-sig::before { background: var(--sig); }
.hx-list li.is-hatch::before { background: repeating-linear-gradient(135deg, var(--n2) 0 1.5px, transparent 1.5px 3.5px); box-shadow: inset 0 0 0 1px var(--n2); }
.hx-list li.is-ha::before { background: transparent; box-shadow: inset 0 0 0 1px var(--n1); }
.hx-list li.is-pair::before { width: 6px; background: transparent; box-shadow: inset 0 0 0 1px var(--cop); }
.hx-list li.is-pair::after { content: ""; position: absolute; left: 7px; top: 18px; width: 6px; height: 10px; background: var(--sig); }
.hx-checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.hx-checks li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--rule); font: 400 14.5px/1.5 var(--sans); color: var(--ink); }
.hx-checks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; background: var(--sig); }

/* ---- the figure: one household, eight accounts, five states */
.cf { position: absolute; inset: 0; margin: 0; --pl: 44px; --pr: 58px; --pt: 70px; --pb: 62px; --g: 0; --b: .6667; --k: 0; color: var(--ink); }
.cf[data-state="apart"] { --g: .9733; }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) { --g: .52; }
.cf[data-state="check"] { --k: var(--kc, 1); }
.cf[data-state="orders"] { --k: 1; }
.cf-hud { position: absolute; left: calc(var(--pl) - 18px); right: calc(var(--pr) - 18px); top: 26px; display: flex; justify-content: space-between; gap: 18px; font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); pointer-events: none; }
.cf-fig { display: grid; color: var(--ink); }
.cf-fig > span, .cf-title > span, .cf-sum > span, .cf-legend > p { grid-area: 1 / 1; }
.cf-frame i { position: absolute; width: 12px; height: 12px; border: 0 solid rgba(242, 243, 246, .28); }
.cf-frame i:nth-child(1) { left: calc(var(--pl) - 18px); top: calc(var(--pt) - 14px); border-left-width: 1px; border-top-width: 1px; }
.cf-frame i:nth-child(2) { right: calc(var(--pr) - 18px); top: calc(var(--pt) - 14px); border-right-width: 1px; border-top-width: 1px; }
.cf-frame i:nth-child(3) { left: calc(var(--pl) - 18px); bottom: calc(var(--pb) - 14px); border-left-width: 1px; border-bottom-width: 1px; }
.cf-frame i:nth-child(4) { right: calc(var(--pr) - 18px); bottom: calc(var(--pb) - 14px); border-right-width: 1px; border-bottom-width: 1px; }
.cf-plot { position: absolute; inset: var(--pt) var(--pr) var(--pb) var(--pl); display: flex; flex-direction: column; justify-content: center; }
.cf-legend { position: absolute; left: calc(var(--pl) - 18px); right: calc(var(--pr) - 18px); bottom: 22px; display: grid; pointer-events: none; }
.cf-legend p { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.cf-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cf-legend i { width: 9px; height: 9px; flex: 0 0 auto; background: var(--n0); }
.cf-legend .k-g { background: var(--n2); }
.cf-legend .k-l, .cf-legend .k-over { background: var(--cop); }
.cf-legend .k-f { background: var(--n0); }
.cf-legend .k-ha { background: transparent; box-shadow: inset 0 0 0 1px var(--n1); }
.cf-legend .k-bond { background: repeating-linear-gradient(135deg, var(--n2) 0 1.5px, transparent 1.5px 3.5px); box-shadow: inset 0 0 0 1px var(--n2); }
.cf-legend .k-pair { width: 12px; background: linear-gradient(90deg, transparent 0 5px, var(--sig) 5px); box-shadow: inset 0 0 0 1px var(--cop); }
.cf-legend .k-s, .cf-legend .k-cell { background: var(--sig); }
.cf-legend .k-line { height: 1px; width: 14px; background: var(--sig); }
.cf-legend .k-sell { width: 3px; height: 11px; background: var(--n2); }
.cf-legend .k-buy { width: 3px; height: 11px; background: var(--sig); }
.cf-legend .k-hold { width: 3px; height: 11px; background: var(--cop); }
.cf-rail { position: absolute; right: 18px; top: 50%; display: grid; gap: 9px; justify-items: end; transform: translateY(-50%); pointer-events: none; }
.cf-rail i { display: block; width: 10px; height: 1px; background: rgba(242, 243, 246, .3); transition: width .35s ease, background-color .35s ease; }
.cf-rail i.is-on { width: 22px; background: var(--sig); }

/* State text: one layer per state, crossfading in place. */
.cf [data-s] { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.cf[data-state="intro"] [data-s~="intro"], .cf[data-state="apart"] [data-s~="apart"], .cf[data-state="plan"] [data-s~="plan"],
.cf[data-state="check"] [data-s~="check"], .cf[data-state="orders"] [data-s~="orders"] { opacity: 1; visibility: visible; transition: opacity .45s ease .14s, visibility 0s; }

/* Rows: label | strip | status, one grid so every column lines up. */
.cf-rows {
  /* rp: row pitch; sh: strip height; so: the strip's offset inside its row. */
  --rp: clamp(30px, 6.1cqh, 54px); --sh: calc(var(--rp) * .54); --so: calc((var(--rp) - var(--sh)) / 2); --lab: 104px; --stat: 204px;
  position: relative; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--stat);
  grid-template-rows: auto repeat(8, var(--rp)) var(--rp) auto; column-gap: 22px;
}
.cf-title { grid-column: 2 / -1; grid-row: 1; display: grid; margin: 0 0 16px; font: 400 13.5px/1.4 var(--sans); color: var(--soft); }
.cf-field { grid-column: 2; grid-row: 2 / 10; position: relative; }
.cf-scan { grid-column: 2 / -1; grid-row: 2 / 10; position: relative; pointer-events: none; z-index: 3; }
.cf-lab { grid-column: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; min-width: 0; }
.cf-lab b { font: 500 11px/1.25 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.cf-lab small { font: 400 12px/1.3 var(--sans); color: var(--soft); white-space: nowrap; }
.cf-lab.is-ha b { color: var(--soft); }
.cf-stat { --on: clamp(0, (var(--k) * 8 - var(--r) - .5) * 4, 1); grid-column: 3; position: relative; display: grid; align-items: center; min-width: 0; font: 400 12.5px/1.3 var(--sans); color: var(--soft); }
.cf-stat > * { grid-area: 1 / 1; }
.cf-stat .v { font: 400 12px/1 var(--mono); letter-spacing: .04em; color: var(--soft); }
.cf-stat .is-cop { color: var(--cop); }
.cf-stat .is-sig { color: var(--sig); }
.cf-stat .is-faint { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cf-mval { --on: clamp(0, (var(--k) - .985) * 70, 1); }

/* Lots: absolutely placed in the field, row by row. */
.cf-field > b, .cf-field > i { position: absolute; top: calc(var(--r) * var(--rp) + var(--so)); height: var(--sh); }
.cf-field > b {
  --c: var(--n0); --a: .92; background: var(--c); opacity: var(--a); transform-origin: 0 50%;
  transition: background-color .7s var(--ease), opacity .7s var(--ease), box-shadow .5s ease, transform .8s var(--ease);
  transition-delay: calc(var(--d) * .5s);
}
.cf-field > b.g { --c: var(--n2); }
.cf-field > b.l { --c: var(--cop); }
.cf-field > b.ha { --c: transparent; --a: .9; box-shadow: inset 0 0 0 1px var(--n1); }
.cf.is-boot .cf-field > b { transform: scaleX(0); transition: none; }
/* After the intro, the household recedes so its story reads. */
.cf:not([data-state="intro"]) .cf-field > b:not(.ha) { --c: var(--n0); --a: .42; }
.cf:not([data-state="intro"]) .cf-field > b.g { --a: .72; }
.cf:not([data-state="intro"]) .cf-field > b.ha { --a: .55; }
.cf[data-state="apart"] .cf-field > b.ha { --a: .3; }

/* The harvested lot: copper while planned apart; then sold (outline) and
   paired with a replacement (signal). */
.cf-field > b.wl::after { content: ""; position: absolute; inset: 0 0 0 54%; background: var(--sig); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease) .35s; }
.cf[data-state="apart"] .cf-field > b.wl { --c: var(--cop); --a: 1; }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) .cf-field > b.wl { --c: transparent; --a: 1; box-shadow: inset 0 0 0 1.5px var(--cop); }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) .cf-field > b.wl::after { transform: none; }
/* The IRA's purchase of the same fund, only when planned apart. */
.cf-field > .wb { --r: 4; left: 20%; width: 6.5%; background: var(--cop); opacity: 0; transform: scaleY(.2); transition: opacity .45s ease, transform .6s var(--ease); }
.cf[data-state="apart"] .cf-field > .wb { opacity: 1; transform: none; transition-delay: .35s; }
/* The IRA buys a different fund instead. */
.cf-field > .nb { --r: 4; left: 92%; width: 8%; background: var(--sig); opacity: 0; transition: opacity .5s ease .4s; }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) .cf-field > .nb { opacity: 1; }
/* The link between the two halves of the wash sale. */
.cf-field > .wlink { --r: 0; left: calc(23.25% - .5px); width: 1px; top: calc(var(--so) + var(--sh)); height: calc(4 * var(--rp) - var(--sh)); background: repeating-linear-gradient(180deg, var(--cop) 0 3px, transparent 3px 6px); opacity: 0; transform: scaleY(0); transform-origin: 50% 0; transition: opacity .3s ease, transform .7s var(--ease); }
.cf[data-state="apart"] .cf-field > .wlink { opacity: 1; transform: none; transition-delay: .5s; }
/* ...and between the two holdings that trade places. */
.cf-field > .mvlink { --r: 1; left: calc(70% - .5px); width: 1px; top: calc(var(--rp) + var(--so) + var(--sh)); height: calc(4 * var(--rp) - var(--sh)); background: repeating-linear-gradient(180deg, var(--sig) 0 3px, transparent 3px 6px); opacity: 0; transform: scaleY(0); transform-origin: 50% 0; transition: opacity .3s ease, transform .7s var(--ease); }
.cf[data-state="plan"] .cf-field > .mvlink { opacity: 1; transform: none; transition-delay: 1.15s; }
/* The restricted holding in the trust; held, with its reason, in the orders. */
.cf-field > .rs { --r: 3; left: 80%; width: 12%; background: repeating-linear-gradient(135deg, var(--n1) 0 1.5px, transparent 1.5px 4.5px); box-shadow: inset 0 0 0 1px var(--n1); transition: box-shadow .5s ease, opacity .5s ease; }
.cf:not([data-state="intro"]) .cf-field > .rs { opacity: .6; }
.cf[data-state="orders"] .cf-field > .rs { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--cop); background: repeating-linear-gradient(135deg, rgba(208, 138, 92, .7) 0 1.5px, transparent 1.5px 4.5px); }
/* Asset location: the bond fund and an equity fund change places. */
.cf-field > .mv { left: 60%; width: 20%; transition: box-shadow .5s ease .5s, opacity .5s ease; }
.cf-field > .mv.bond { --r: 1; background: repeating-linear-gradient(135deg, var(--n2) 0 2px, rgba(198, 204, 216, .16) 2px 5px); box-shadow: inset 0 0 0 1px var(--n2); }
.cf-field > .mv.eq { --r: 5; background: var(--n1); }
.cf[data-state="apart"] .cf-field > .mv.eq { opacity: .45; }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) .cf-field > .mv.bond { --r: 5; box-shadow: inset 0 0 0 1.5px var(--sig); }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) .cf-field > .mv.eq { --r: 1; box-shadow: inset 0 0 0 1.5px var(--sig); }
/* Ruled off: a line under each account as the check passes it. */
.cf-field > .cf-ok {
  --r: 0; top: 0; left: 0; width: 100%; height: calc(var(--k) * 100%); opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent calc(var(--so) + var(--sh) + 4px), var(--sig) 0, var(--sig) calc(var(--so) + var(--sh) + 5px), transparent 0) 0 0 / 100% var(--rp) repeat-y;
}
.cf:is([data-state="check"], [data-state="orders"]) .cf-field > .cf-ok { opacity: .55; }
/* One household plan: a bracket joins every account. */
.cf-field::before, .cf-field::after { content: ""; position: absolute; left: -13px; top: var(--so); bottom: calc(var(--rp) - var(--so) - var(--sh)); pointer-events: none; }
.cf-field::before { width: 1px; background: var(--sig); transform: scaleY(0); transform-origin: 50% 0; transition: transform .8s var(--ease); }
.cf-field::after { top: 0; bottom: 0; width: 8px; opacity: 0; background: linear-gradient(180deg, transparent calc(var(--so) + var(--sh) / 2 - .5px), var(--sig) 0, var(--sig) calc(var(--so) + var(--sh) / 2 + .5px), transparent 0) 0 0 / 8px var(--rp) repeat-y; transition: opacity .5s ease .4s; }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) .cf-field::before { transform: none; }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) .cf-field::after { opacity: 1; }
/* Labels in the field sit on their own dark backing. */
.cf-tag { position: absolute; z-index: 2; padding: 3px 6px; background: rgba(10, 13, 20, .92); font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.cf-tag.t-wash { left: calc(23.25% + 10px); top: calc(2 * var(--rp) + var(--so) + var(--sh) / 2); transform: translateY(-50%); color: var(--cop); }
.cf-tag.t-loc { left: calc(70% - 10px); top: calc(3 * var(--rp) + var(--so) + var(--sh) / 2); transform: translate(-100%, -50%); color: var(--sig); }
.cf[data-state="apart"] .cf-tag.t-wash { opacity: 1; transition-delay: .8s; }
.cf[data-state="plan"] .cf-tag.t-loc { opacity: 1; transition-delay: 1.3s; }

/* The independent check: a line that crosses the household, account by account. */
.cf-scan > i { position: absolute; left: -16px; right: -10px; top: calc(var(--k) * 100%); height: 1px; background: var(--sig); opacity: 0; }
.cf-scan > i::before { content: ""; position: absolute; left: -4px; top: -3px; width: 7px; height: 7px; background: var(--sig); }
.cf[data-state="check"] .cf-scan > i { opacity: clamp(0, (1 - var(--k)) * 30, 1); }
.cf-cells { display: flex; align-items: center; gap: 5px; }
.cf-cells i { position: relative; width: 9px; height: 9px; box-shadow: inset 0 0 0 1px var(--n1); }
.cf-cells i::after { content: ""; position: absolute; inset: 0; background: var(--sig); opacity: var(--on); }
.cf-cells::after { content: "Re-tested"; margin-left: 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sig); opacity: var(--on); }
.cf-mval .cf-cells::after { content: "Household limits"; }
.cf[data-state="check"] .cf-sum .k-run { opacity: calc(1 - clamp(0, (var(--k) - .985) * 70, 1)); }
.cf[data-state="check"] .cf-sum .k-done { opacity: clamp(0, (var(--k) - .985) * 70, 1); }
/* Orders: thin tickets, per account. */
.cf-tk { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-tk em { padding: 5px 7px 5px 8px; border-left: 2px solid var(--n2); background: rgba(242, 243, 246, .05); font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--n2); white-space: nowrap; clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease); }
.cf-tk em.b { border-color: var(--sig); background: rgba(151, 164, 255, .09); color: var(--sig); }
.cf-tk em.h { border-color: var(--cop); background: rgba(208, 138, 92, .09); color: var(--cop); }
.cf[data-state="orders"] .cf-tk em { clip-path: inset(0); transition-delay: calc(var(--r) * 70ms + .15s); }
.cf[data-state="orders"] .cf-tk em + em { transition-delay: calc(var(--r) * 70ms + .3s); }
/* The gains budget. */
.cf-meter { grid-column: 2; grid-row: 10; position: relative; align-self: center; height: 10px; background: rgba(242, 243, 246, .08); }
.cf-meter i { position: absolute; top: 0; bottom: 0; }
.cf-meter .m-in { left: 0; width: calc(min(var(--g), var(--b)) * 100%); background: var(--n2); transition: width .9s var(--ease), background-color .6s ease; }
.cf-meter .m-over { left: calc(var(--b) * 100%); width: calc(max(0, var(--g) - var(--b)) * 100%); background: var(--cop); transition: width .9s var(--ease) .15s; }
.cf-meter .m-mark { top: -7px; bottom: -7px; left: calc(var(--b) * 100%); width: 1px; background: var(--ink); }
.cf:is([data-state="plan"], [data-state="check"], [data-state="orders"]) .cf-meter .m-in { background: var(--sig); }
.cf-sum { grid-column: 2 / -1; grid-row: 11; display: grid; margin: 16px 0 0; font: 500 11px/1.45 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.cf-sum .is-sig { color: var(--sig); }

/* Narrower stages: the status column tightens. */
@container cf (max-width: 700px) {
  .cf { --pl: 30px; --pr: 44px; }
  .cf-hud .cf-id { display: none; }
  .cf-rows { --lab: 92px; --stat: 164px; column-gap: 16px; }
  .cf-stat { font-size: 11.5px; }
  .cf-tk { gap: 5px; }
  .cf-tk em { padding: 4px 5px 4px 6px; letter-spacing: .02em; }
  .cf-legend p { gap: 6px 14px; letter-spacing: .08em; }
}
/* Phones: the figure is a band above the copy. Each account's name sits
   above its strip, so the strips run the full width of the band. */
@container cf (max-width: 540px) {
  .cf { --pl: 16px; --pr: 16px; --pt: 36px; --pb: 46px; }
  .cf-hud { top: 12px; left: 16px; right: 16px; letter-spacing: .1em; }
  .cf-hud .cf-id, .cf-frame, .cf-rail, .cf-tag { display: none; }
  .cf-rows { --rp: clamp(23px, 7cqh, 40px); --sh: calc(var(--rp) - 17px); --so: 14px; --lab: 0px; --stat: 36px; column-gap: 10px; }
  .cf-title { margin-bottom: 6px; font-size: 12px; }
  .cf-lab { position: relative; z-index: 4; grid-column: 2; flex-direction: row; justify-content: flex-start; align-items: baseline; align-self: start; gap: 0; text-align: left; }
  .cf-lab b { padding-right: 6px; font-size: 11px; line-height: 13px; letter-spacing: .08em; background: var(--bg); }
  .cf-lab small { padding-right: 4px; font-size: 11px; line-height: 13px; background: var(--bg); }
  .cf-stat { align-items: start; padding-top: calc(var(--so) + var(--sh) / 2 - 4px); }
  .cf-stat > :not(.cf-cells):not(.cf-tk) { display: none; }
  .cf-cells { gap: 2px; }
  .cf-cells i { width: 7px; height: 7px; }
  .cf-cells i:nth-child(n+4) { display: none; }
  .cf-cells::after { display: none; }
  .cf-tk { gap: 2px; flex-direction: column; }
  .cf-tk em { width: 30px; height: 3px; padding: 0; border: 0; background: var(--n2); font-size: 0; }
  .cf-tk em.b { background: var(--sig); } .cf-tk em.h { background: var(--cop); }
  .cf-field::before, .cf-field::after { left: -7px; }
  .cf-field::after { width: 5px; background-size: 5px var(--rp); }
  .cf-meter { align-self: start; height: 7px; margin-top: calc(var(--so) + 2px); }
  .cf-sum { margin-top: 8px; letter-spacing: .05em; line-height: 1.35; }
  .cf-legend { left: 16px; right: 16px; bottom: 10px; }
  .cf-legend p { gap: 2px 12px; letter-spacing: .05em; }
  .cf-legend i { width: 8px; height: 8px; }
}
@container cf (max-width: 540px) and (max-height: 375px) {
  .cf { --pb: 12px; }
  .cf-legend { display: none; }
}

/* ============================================================= 2. Plan record */
/* The heading holds its place on the left while the record scrolls past. */
.hx-rec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.hx-rec-head { position: sticky; top: calc(var(--nav) + 40px); }
.hx-rec-head h2 { font-size: clamp(34px, 3.5vw, 56px); }
.rx { max-width: 680px; border: 1px solid rgba(242, 243, 246, .16); background: var(--s1); }
.rx-sec { position: relative; padding: 20px 28px 22px; border-top: 1px solid var(--rule2); transition: box-shadow .25s ease; }
.rx-sec:first-child { border-top: 0; padding-top: 24px; }
.rx-sec:hover { box-shadow: inset 2px 0 0 var(--sig); }

.rx-bar { display: flex; justify-content: space-between; align-items: center; margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.rx-ill { padding: 2px 7px; border: 1px solid var(--cop); color: var(--cop); }
.rx-title { margin: 14px 0 4px; font: 400 30px/1.1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.rx-sub { margin: 0; font: 400 14px/1.5 var(--sans); color: var(--soft); }
.rx-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.rx-meta dt, .rx-kv dt { font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.rx-meta dd { margin: 3px 0 0; font: 400 13px/1.4 var(--sans); color: var(--ink); }
.rx h4 { display: flex; gap: 12px; align-items: baseline; margin: 0 0 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.rx h4 span { color: var(--faint); }
.rx-gauge { position: relative; height: 10px; margin: 4px 0 14px; background: rgba(242, 243, 246, .08); }
.rx-gauge i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); background: var(--sig); }
.rx-gauge::after { content: ""; position: absolute; right: 0; top: -5px; bottom: -5px; width: 1px; background: var(--ink); }
.rx-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.rx-kv dd { margin: 4px 0 0; font: 400 15px/1.3 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.rx-fp .rx-kv { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.rx-fp .rx-kv dd { font-size: 13.5px; }
.rx-moves { list-style: none; margin: 0; padding: 0; }
.rx-moves li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto; gap: 4px 14px; padding: 7px 0; border-bottom: 1px solid var(--rule2); font: 400 13px/1.45 var(--sans); }
.rx-moves li:last-child { border-bottom: 0; }
.rx-moves b { font-weight: 400; color: var(--ink); }
.rx-moves span { color: var(--soft); }
.rx-moves span i { font-style: normal; color: var(--sig); padding: 0 4px; }
.rx-moves em { font: 400 13px/1.45 var(--mono); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.rx-hold, .rx-hold:hover { box-shadow: inset 2px 0 0 var(--cop); }
.rx-hold h4 { color: var(--cop); }
.rx-hold p { display: grid; gap: 4px; margin: 0; font: 400 13.5px/1.5 var(--sans); color: var(--soft); }
.rx-hold p b { font-weight: 400; color: var(--ink); }
.rx-checkgrid { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 20px; align-items: start; }
.rx-stamp { display: grid; gap: 3px; padding: 11px 13px 12px; border: 1.5px solid var(--sig); color: var(--sig); }
.rx-stamp span { font: 500 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.rx-stamp b { font: 400 24px/1.15 var(--sans); letter-spacing: -.02em; }
.rx-stamp small { font: 400 11.5px/1.45 var(--sans); color: var(--soft); }
.rx-limits { list-style: none; margin: 0; padding: 0; font: 400 13px/1.4 var(--sans); }
.rx-limits li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--rule2); color: var(--soft); }
.rx-limits li:last-child { border-bottom: 0; }
.rx-limits b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.rx-limits b.is-ok { color: var(--sig); }

/* ============================================================= 3. Your process (the zip) */
.hh-process-grid { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1.15fr); grid-template-areas: "list rail board"; column-gap: 8px; align-items: start; }
.hh-zip { grid-area: list; }
.hh-zip-rail { grid-area: rail; }
.hh-board { grid-area: board; }
.hh.js .hh-board { position: sticky; top: calc(var(--nav) + 32px); }
.hh-zip-turn { margin: 14px 0 0; font: 500 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sig); }
.hh-zip-tail { height: 132px; }
.hh-zip-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.hh-zip-list li { position: relative; display: grid; padding: 15px 8px 15px 2px; border-bottom: 1px solid var(--rule); cursor: pointer; transition: background-color .25s ease; }
.hh-zip-list li:hover { background: rgba(151, 164, 255, .045); }
.hh-zip-list li > span { grid-area: 1 / 1; transition: opacity .3s ease, transform .35s var(--ease), color .25s ease; }
.hh-txt { font: 400 16px/1.5 var(--sans); color: var(--soft); }
.hh-zip-list li.on .hh-txt { color: var(--ink); }
.hh-zip-list li.on::before { content: ""; position: absolute; left: -16px; top: 22px; width: 7px; height: 7px; background: var(--cop); }
.hh-fix { opacity: 0; transform: translateY(8px); font: 400 16px/1.5 var(--sans); color: var(--sig); }
.hh-fix::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--sig); vertical-align: 2px; }
.hh-zip-list li.fixed .hh-txt { opacity: 0; transform: translateY(-8px); }
.hh-zip-list li.fixed .hh-fix { opacity: 1; transform: none; }
/* Without the script there is no zip: each statement reads with its answer. */
.hh:not(.js) .hh-zip-list li > span { grid-area: auto; }
.hh:not(.js) .hh-fix { opacity: 1; transform: none; margin-top: 6px; }
.hh:not(.js) :is(.hh-zip-turn, .hh-zip-tail, .hh-board-foot) { display: none; }
.hh-zip-rail { display: none; }
.hh.js .hh-zip-rail { display: block; position: relative; align-self: stretch; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; --y: 0px; --end: 100%; --turn: 50%; }
.hh-zip-rail.is-dragging { cursor: grabbing; }
.hx .hh-zip-rail:focus, .hx .hh-zip-rail:focus-visible { outline: none !important; }
/* Teeth: two rows apart below the pull; above it they interlock, copper
   through today's process and signal through the plan. */
.hh-zip-teeth { position: absolute; left: 50%; pointer-events: none; }
.hh-zip-open { top: var(--y); height: max(0px, calc(var(--end) - var(--y))); width: 20px; margin-left: -10px; background: repeating-linear-gradient(180deg, rgba(242, 243, 246, .24) 0 3px, transparent 3px 7px) left top / 4px 100% no-repeat, repeating-linear-gradient(180deg, transparent 0 3.5px, rgba(242, 243, 246, .24) 3.5px 6.5px, transparent 6.5px 7px) right top / 4px 100% no-repeat; transition: top .32s var(--ease), height .32s var(--ease); }
.hh-zip-closed { top: 0; height: max(0px, min(var(--y), var(--turn))); width: 10px; margin-left: -5px; background: repeating-linear-gradient(180deg, var(--cop) 0 3px, transparent 3px 7px) left top / 6px 100% no-repeat, repeating-linear-gradient(180deg, transparent 0 3.5px, var(--cop) 3.5px 6.5px, transparent 6.5px 7px) right top / 6px 100% no-repeat; transition: height .32s var(--ease); }
.hh-zip-closed.is-plan { top: var(--turn); height: max(0px, calc(var(--y) - var(--turn))); background: repeating-linear-gradient(180deg, var(--sig) 0 3px, transparent 3px 7px) left top / 6px 100% no-repeat, repeating-linear-gradient(180deg, transparent 0 3.5px, var(--sig) 3.5px 6.5px, transparent 6.5px 7px) right top / 6px 100% no-repeat; }
.hh-zip-stops i { position: absolute; left: 50%; width: 56px; height: 1px; margin: 0 0 0 -28px; background: linear-gradient(90deg, rgba(242, 243, 246, .28) 0 16px, transparent 16px 40px, rgba(242, 243, 246, .28) 40px); transition: background .25s ease; }
.hh-zip-stops i.on { background: linear-gradient(90deg, var(--cop) 0 16px, transparent 16px 40px, var(--cop) 40px); }
.hh-zip-stops i.fix { background: linear-gradient(90deg, var(--sig) 0 16px, transparent 16px 40px, var(--sig) 40px); }
.hh.js .hh-zip-rail::after { content: ""; position: absolute; left: 6px; right: 6px; top: var(--turn); height: 1px; background: var(--sig); opacity: .6; }
.hh-zip-knob { position: absolute; left: 50%; top: var(--y); width: 44px; height: 66px; margin: -16px 0 0 -22px; z-index: 2; transition: top .32s var(--ease), transform .2s var(--ease); }
.hh-zip-body { position: absolute; left: 5px; top: 0; width: 34px; height: 30px; border-radius: 5px 5px 9px 9px; background: var(--ink); transition: background-color .2s ease; }
.hh-zip-tab { position: absolute; left: 14px; top: 22px; width: 16px; height: 40px; border-radius: 5px; background: var(--ink); transform-origin: 50% 4px; transition: transform .3s var(--ease), background-color .2s ease; }
.hh-zip-tab::after { content: ""; position: absolute; left: 4px; bottom: 6px; width: 8px; height: 12px; border-radius: 3px; background: var(--bg); }
.hh-zip-rail:hover .hh-zip-knob { transform: translateY(-2px); }
.hh-zip-rail.is-dragging :is(.hh-zip-body, .hh-zip-tab) { background: var(--sig); }
.hh-zip-rail.is-dragging .hh-zip-tab { transform: rotate(-7deg); }
.hh-zip-rail.is-dragging :is(.hh-zip-knob, .hh-zip-open, .hh-zip-closed) { transition: transform .2s var(--ease); }
.hh-zip-rail:focus-visible .hh-zip-body { outline: 2px solid var(--sig); outline-offset: 3px; }
.hh-zip-cue { position: absolute; left: 50%; top: calc(var(--y) - 40px); transform: translateX(-50%); display: grid; justify-items: center; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sig); pointer-events: none; transition: opacity .3s ease; }
.hh-zip-cue i { position: absolute; left: 50%; top: 96px; width: 9px; height: 9px; margin-left: -5px; border-right: 1.5px solid var(--sig); border-bottom: 1.5px solid var(--sig); transform: rotate(45deg); animation: hh-zip-cue 1.5s ease-in-out infinite; }
.hh-zip-cue i:nth-of-type(2) { top: 104px; animation-delay: .2s; }
@keyframes hh-zip-cue { 0% { opacity: 0; translate: 0 -5px; } 50% { opacity: 1; } 100% { opacity: 0; translate: 0 6px; } }
.hh-zip-rail.is-used .hh-zip-cue { opacity: 0; }
@keyframes hh-zip-tug { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(14px); } }
.hh-zip-rail.is-tug .hh-zip-knob { animation: hh-zip-tug .9s var(--ease) 2; }

/* The household board: no frame, only registration marks. */
.hh-board { position: relative; padding: 24px 26px 20px; }
.hh-board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.hh-board-title { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.hh-meter { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.hh-meter-bar { display: flex; gap: 3px; }
.hh-meter-bar i { width: 18px; height: 8px; background: rgba(242, 243, 246, .1); transition: background-color .3s ease; }
.hh-meter-bar i.on { background: var(--cop); }
.hh-meter-bar i.fixed { background: var(--sig); }
.hh-meter-n { min-width: 74px; text-align: right; color: var(--ink); }
.hh-planbar { display: flex; align-items: center; gap: 10px; height: 0; margin-top: 16px; padding: 0 12px; overflow: hidden; opacity: 0; border-left: 2px solid var(--sig); background: rgba(151, 164, 255, .08); font: 500 13.5px/1.2 var(--sans); color: var(--sig); transition: height .45s var(--ease), opacity .3s ease; }
.hh-planbar i { width: 9px; height: 9px; flex: 0 0 auto; background: var(--sig); }
.hh-board.is-planned .hh-planbar { height: 42px; opacity: 1; }
.hh-accts { --gap: 18px; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap) 14px; margin-top: 20px; }
.hh-acct { position: relative; display: grid; gap: 1px; align-content: start; transition: opacity .45s var(--ease) calc(var(--i) * 55ms); }
.hh-acct b { font: 500 11px/1.25 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.hh-acct small { font: 400 12px/1.3 var(--sans); color: var(--soft); }
.hh-lots { display: flex; gap: 2px; height: 14px; margin-top: 8px; }
.hh-lots i { flex: 1 1 0; background: var(--n0); transition: background-color .35s ease, box-shadow .35s ease; }
.hh-lots i:nth-child(3n+2) { background: var(--n1); }
.hh-acct.held .hh-lots i { background: transparent; box-shadow: inset 0 0 0 1px var(--n1); }
/* Before the first statement, only two accounts are in view: the others'
   names stay readable while their lots recede. */
.hh-board:not(.k-accounts) .hh-acct:nth-child(n+3) :is(b, small) { color: var(--faint); }
.hh-board:not(.k-accounts) .hh-acct:nth-child(n+3) .hh-lots { opacity: .28; }
.hh-badge { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 14px; height: 14px; font: 600 11px/1 var(--sans); font-style: normal; color: var(--bg); transform: scale(0); transition: transform .35s var(--ease); }
/* Placed on the grid lines of the first column, so the link joins the two
   accounts' lots whatever the board's width. */
.hh-wash { position: absolute; grid-column: 1 / 2; grid-row: 1 / 3; inset: 0; pointer-events: none; }
.hh-wash::before { content: ""; position: absolute; left: calc(30% - .5px); top: calc(50% - var(--gap) / 2 - 7px); bottom: 7px; width: 1px; background: repeating-linear-gradient(180deg, var(--cop) 0 3px, transparent 3px 6px); opacity: 0; transition: opacity .3s ease; }
.hh-board.k-wash:not(.f-wash) .hh-wash::before { opacity: 1; }
.hh-board.k-wash:not(.f-wash) .hh-acct:is([data-a="0"], [data-a="4"]) .hh-lots i.w { background: var(--cop); }
.hh-board.k-wash:not(.f-wash) .hh-acct:is([data-a="0"], [data-a="4"]) { opacity: 1; }
.hh-board.k-wash:not(.f-wash) .hh-acct:is([data-a="0"], [data-a="4"]) .hh-badge { background: var(--cop); transform: scale(1); }
.hh-board.k-wash:not(.f-wash) .hh-acct:is([data-a="0"], [data-a="4"]) .hh-badge::after { content: "×"; }
.hh-board.f-accounts .hh-acct { opacity: 1; }
.hh-board.f-accounts .hh-acct:not(.held) .hh-lots { box-shadow: 0 3px 0 -2px var(--sig); }
.hh-board.f-accounts .hh-acct:not(.held) .hh-badge { background: var(--sig); transform: scale(1); transition-delay: calc(var(--i) * 70ms + .2s); }
.hh-board.f-accounts .hh-acct:not(.held) .hh-badge::after { content: "✓"; font-size: 9px; }
.hh-board.f-wash .hh-acct:is([data-a="0"], [data-a="4"]) .hh-lots i.w { background: var(--sig); }

.hh-symptoms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.hh-sym { position: relative; min-height: 112px; }
.hh-sym-now, .hh-sym-fix { position: absolute; inset: 0; display: grid; gap: 3px; align-content: start; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.hh-sym b { font: 500 13px/1.25 var(--sans); }
.hh-sym small { font: 400 12px/1.3 var(--sans); color: var(--soft); }
.hh-sym-wait { position: absolute; left: 0; right: 0; bottom: 0; padding-top: 8px; border-top: 1px dashed rgba(242, 243, 246, .2); font: 500 11px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); transition: opacity .25s ease; }
.hh-board:is(.k-sheet) .hh-sym[data-s="sheet"] .hh-sym-wait, .hh-board.k-wash .hh-sym[data-s="wash"] .hh-sym-wait,
.hh-board.k-lock .hh-sym[data-s="lock"] .hh-sym-wait, .hh-board.k-acq .hh-sym[data-s="acq"] .hh-sym-wait { opacity: 0; }
.hh-sym-now { color: var(--cop); }
.hh-sym-fix { color: var(--sig); }
.hh-board.k-sheet:not(.f-sheet) .hh-sym[data-s="sheet"] .hh-sym-now, .hh-board.k-wash:not(.f-wash) .hh-sym[data-s="wash"] .hh-sym-now,
.hh-board.k-lock:not(.f-lock) .hh-sym[data-s="lock"] .hh-sym-now, .hh-board.k-acq:not(.f-acq) .hh-sym[data-s="acq"] .hh-sym-now { opacity: 1; transform: none; }
.hh-board.f-sheet .hh-sym[data-s="sheet"] .hh-sym-fix, .hh-board.f-wash .hh-sym[data-s="wash"] .hh-sym-fix,
.hh-board.f-lock .hh-sym[data-s="lock"] .hh-sym-fix, .hh-board.f-acq .hh-sym[data-s="acq"] .hh-sym-fix { opacity: 1; transform: none; transition-delay: .25s; }
.hh-sym-vis { display: flex; align-items: center; height: 26px; margin-bottom: 8px; }
.hh-ok { position: relative; width: 14px; height: 14px; margin: 6px 0 14px; background: var(--sig); }
.hh-ok::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 7px; border-right: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: rotate(40deg); }
.hh-sheet { display: grid !important; grid-template-columns: repeat(4, 10px); gap: 2px; }
.hh-sheet i { height: 6px; background: var(--n0); }
.hh-board.k-sheet .hh-sheet i { animation: hh-cell 2.4s infinite steps(1); }
.hh-sheet i:nth-child(3n+2) { animation-delay: .4s; } .hh-sheet i:nth-child(4n+1) { animation-delay: .8s; } .hh-sheet i:nth-child(5n) { animation-delay: 1.2s; }
@keyframes hh-cell { 0%, 40% { background: var(--n0); } 50%, 90% { background: var(--cop); } }
.hh-x { gap: 14px; }
.hh-x i { position: relative; width: 12px; height: 12px; background: var(--cop); }
.hh-x i + i::before { content: "×"; position: absolute; right: calc(100% + 2px); top: 50%; transform: translateY(-52%); font: 400 13px/1 var(--sans); color: var(--cop); }
.hh-lockbar i { position: relative; flex: 0 0 64px; height: 6px; background: rgba(242, 243, 246, .1); overflow: hidden; }
.hh-lockbar i::after { content: ""; position: absolute; inset: 0 70% 0 0; background: var(--cop); animation: hh-stall 2.6s infinite var(--ease); }
@keyframes hh-stall { 0% { right: 100%; } 50%, 100% { right: 70%; } }
.hh-stack { position: relative; width: 60px; }
.hh-stack i { position: absolute; top: 6px; width: 14px; height: 14px; box-shadow: inset 0 0 0 1px var(--cop); }
.hh-stack i:nth-child(1) { left: 0; } .hh-stack i:nth-child(2) { left: 18px; } .hh-stack i:nth-child(3) { left: 36px; background: var(--cop); }
.hh-board.k-acq .hh-stack i:nth-child(3) { animation: hh-move 2.2s infinite var(--ease); }
@keyframes hh-move { 0% { transform: translateX(0); opacity: 1; } 60% { transform: translateX(22px); opacity: 0; } 61% { transform: translateX(-36px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.hh-board-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.hh-check-out { font: 400 14px/1.45 var(--sans); color: var(--ink); }

/* ============================================================= 4. Evidence */
.ev-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--rule); scroll-margin-top: var(--nav); }
.hx-ev .hx-head + .ev-row { border-top: 0; padding-top: 0; }
.ev-claim { align-self: center; }
.ev-fn { margin-left: 3px; font-size: 9px; vertical-align: super; line-height: 0; }
.hx .ev-fn a { color: var(--sig); text-decoration: none; }
.ev-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 20px; }
.ev-big > strong { font: 300 clamp(60px, 6vw, 100px)/.9 var(--sans); letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.ev-big > strong.is-sig { color: var(--sig); }
.ev-big > span { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.ev-p { margin: 0 0 20px; max-width: 44ch; font: 400 15.5px/1.65 var(--sans); color: var(--soft); text-wrap: pretty; }
.hx .ev-src { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font: 500 12.5px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.hx .ev-src:hover { border-color: var(--ink); color: var(--sig); }
/* Two half-width results: claims share one row and figures the next, so
   both figures start on the same line. */
.ev-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; gap: 0 clamp(32px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--rule); }
.ev-row.is-half { display: contents; }
.ev-row.is-half .ev-claim { position: static; margin-bottom: 40px; scroll-margin-top: calc(var(--nav) + 24px); }
.ev-row.is-half .ev-big > strong { font-size: clamp(50px, 4.4vw, 72px); }
#after-tax .ev-big > strong { font-size: clamp(40px, 3.3vw, 54px); }

/* Figures in the paper's grammar, on the night ground. */
.hx-fig { min-width: 0; margin: 0; container: fig / inline-size; }
.hx-fig-hd { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0 0; border-top: 1px solid rgba(242, 243, 246, .34); }
.hx-fig-s { margin: 0; font: 400 13.5px/1.5 var(--sans); color: var(--soft); }
.hx-fig-tag { flex: none; padding-top: 3px; font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.hx-fig-body { position: relative; margin: 16px 0 0; padding: 30px 26px 24px; }
.hx-data { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hx-data > summary { display: block; padding: 11px 0; font: 500 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); cursor: pointer; list-style: none; }
.hx-data > summary::-webkit-details-marker { display: none; }
.hx-data > summary::before { content: "▸ "; color: var(--sig); }
.hx-data[open] > summary::before { content: "▾ "; }
.hx-data > summary:hover { color: var(--ink); }
.hx-dt-wrap { overflow-x: auto; padding: 0 0 14px; }
.hx-dt { width: 100%; border-collapse: collapse; font: 400 13.5px/1.5 var(--sans); color: var(--soft); font-variant-numeric: tabular-nums; }
.hx-dt th, .hx-dt td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule2); text-align: left; vertical-align: top; }
.hx-dt thead th { font: 500 10.5px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hx .hx-dt tbody th { font-weight: 500; color: var(--ink) !important; }
/* Values: the legacy light layers colour td dark (2.33:1 on night); use the soft ink. */
.hx .hx-dt td { color: var(--soft) !important; }
.hx-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.hx-legend span { display: inline-flex; align-items: center; gap: 8px; }
.hx-legend i { width: 10px; height: 10px; flex: 0 0 auto; }
.sw-ours { background: var(--sig); }
.sw-range { box-shadow: inset 0 0 0 1px var(--sig); }
.sw-none { background: var(--cell0); }
.sw-exc { background: var(--cop); }

/* Fig 2: waffles, one square per household. */
.wf3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 4cqi, 44px); }
.wf-svg { display: block; width: 100%; max-width: 188px; height: auto; }
.wf-svg .s { fill: var(--sig); }
.wf-svg .o { fill: none; stroke: var(--sig); stroke-width: 1; }
.wf-svg .d { fill: var(--cell0); }
.wf:not(.is-ours) .wf-svg .o { stroke: var(--n2); }
.wf-n { margin: 18px 0 6px; font: 300 clamp(30px, 3vw, 40px)/1 var(--sans); letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.wf.is-ours .wf-n { color: var(--sig); }
.wf-name { margin: 0; max-width: 24ch; font: 400 13px/1.45 var(--sans); color: var(--soft); }

/* Fig 3: exception grids, one square per household-month (40 x 15). */
.xg { display: grid; gap: 20px; }
.xg-h, .xg-row { display: grid; grid-template-columns: 44px max-content max-content; gap: 8px 28px; align-items: start; }
.xg-h span { font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.xg-h span:nth-child(2), .xg-h span:nth-child(3) { width: calc(40 * var(--xp, 6px)); }
.xg-y { padding-top: 2px; font: 500 12px/1 var(--mono); color: var(--soft); }
.xg-grid {
  --p: var(--xp, 6px); --gp: 1.5px; position: relative; width: calc(40 * var(--p) - var(--gp)); height: calc(15 * var(--p) - var(--gp)); overflow: hidden;
  --cells: linear-gradient(90deg, transparent calc(var(--p) - var(--gp)), var(--bg) 0) 0 0 / var(--p) var(--p), linear-gradient(180deg, transparent calc(var(--p) - var(--gp)), var(--bg) 0) 0 0 / var(--p) var(--p);
  background: var(--cells), var(--cell0);
}
.xg-grid i { position: absolute; top: 0; background: var(--cells), var(--cop); transform-origin: 0 0; transition: clip-path 1.2s var(--ease); clip-path: inset(0); }
.xg-full { left: 0; width: calc(var(--c) * var(--p)); height: 100%; }
.xg-part { left: calc(var(--c) * var(--p)); width: var(--p); height: calc(var(--m) * var(--p)); }
.xg-c p { margin: 8px 0 0; font: 400 12.5px/1.4 var(--sans); color: var(--soft); }
.xg-c p b { font: 500 15px/1 var(--mono); color: var(--ink); }
.xg-c.is-ours p b { color: var(--sig); }
.xg-who { display: none; }
.xg-x { font: 500 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--sig); white-space: nowrap; }
@container fig (max-width: 640px) {
  .xg-h { display: none; }
  .xg-row { grid-template-columns: 44px minmax(0, 1fr); }
  .xg-c { grid-column: 2; }
  .xg-who { display: inline; }
}

/* Fig 4: a range on a bp axis. */
.rg { padding: 34px 8px 0; }
.rg-plot { position: relative; height: 40px; }
.rg-zero { position: absolute; left: 0; top: -12px; bottom: -8px; width: 1px; background: var(--n1); }
.rg-band { position: absolute; top: 50%; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); height: 12px; margin-top: -6px; background: rgba(151, 164, 255, .42); transform-origin: 0 50%; transition: transform 1.1s var(--ease); }
.rg-dot { position: absolute; top: 50%; left: calc(var(--x) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--sig); transition: opacity .3s ease .7s; }
.rg-v { position: absolute; bottom: calc(50% + 14px); left: calc(var(--x) * 100%); transform: translateX(-50%); font: 500 16px/1 var(--mono); color: var(--ink); white-space: nowrap; transition: opacity .4s ease .8s; }
.rg-base { position: absolute; left: 10px; top: calc(100% + 34px); font: 400 12.5px/1.3 var(--sans); color: var(--soft); white-space: nowrap; }
.rg-base::before { content: "0 = "; font-family: var(--mono); color: var(--faint); }
.rg-axis { position: relative; height: 22px; margin: 8px 0 34px; border-top: 1px solid var(--rule); }
.rg-axis span { position: absolute; top: 7px; left: calc(var(--x) * 100%); transform: translateX(-50%); font: 400 11px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.rg-axis span:first-child { transform: none; }
.rg-axis span:last-child { transform: translateX(-100%); }

/* Fig 5: the book, one square per household (125 x 80). */
.bk { display: grid; gap: 14px; }
.bk-field {
  --p: 3px; --gp: 1px; position: relative; width: calc(125 * var(--p) - var(--gp)); max-width: 100%; height: calc(80 * var(--p) - var(--gp)); overflow: hidden;
  --cells: linear-gradient(90deg, transparent calc(var(--p) - var(--gp)), var(--bg) 0) 0 0 / var(--p) var(--p), linear-gradient(180deg, transparent calc(var(--p) - var(--gp)), var(--bg) 0) 0 0 / var(--p) var(--p);
  background: var(--cells), var(--cell0);
}
.bk-field i { position: absolute; left: 0; background: var(--cells), var(--sig); transition: clip-path 1.8s var(--ease); clip-path: inset(0); }
/* With the script, the book is drawn on a canvas at the screen's own
   resolution: every household its own tone, the check filling it row by row. */
.bk-canvas { display: none; position: absolute; left: 0; top: 0; }
.bk.is-canvas .bk-field { background: none; }
.bk.is-canvas .bk-field i { display: none; }
.bk.is-canvas .bk-canvas { display: block; }
.bk-full { top: 0; width: 100%; height: calc(75 * var(--p)); }
.bk-part { top: calc(75 * var(--p)); width: calc(82 * var(--p)); height: var(--p); transition-delay: 1.2s !important; }
.bk-time { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; max-width: calc(125 * 3px); font: 400 11px/1 var(--mono); color: var(--faint); }
.ev-row.is-half .hx-fig-body { padding-left: 20px; padding-right: 20px; }
.bk-time i { height: 1px; background: var(--rule); position: relative; }
.bk-time i::before, .bk-time i::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--n1); }
.bk-time i::before { left: 0; } .bk-time i::after { right: 0; }

/* Figures draw once, as they come into view (only with the script). */
@media (prefers-reduced-motion: no-preference) {
  .hx-js .hx-fig:not(.is-in) .wf-svg { clip-path: inset(0 0 100% 0); }
  .hx-js .hx-fig .wf-svg { transition: clip-path 1.1s var(--ease); }
  .hx-js .hx-fig .wf + .wf .wf-svg { transition-delay: .15s; }
  .hx-js .hx-fig .wf + .wf + .wf .wf-svg { transition-delay: .3s; }
  .hx-js .hx-fig:not(.is-in) .xg-grid i { clip-path: inset(0 100% 0 0); }
  .hx-js .hx-fig .xg-c.is-ours .xg-grid i { transition-delay: .35s; }
  .hx-js .hx-fig:not(.is-in) .rg-band { transform: scaleX(0); }
  .hx-js .hx-fig:not(.is-in) :is(.rg-dot, .rg-v) { opacity: 0; transition-delay: 0s; }
  .hx-js .hx-fig:not(.is-in) .bk-field i { clip-path: inset(0 0 100% 0); }
  .hx-js .hx-fig:not(.is-in) .bk-part { clip-path: inset(0 100% 0 0); }
}

/* ---- How we test (collapsed) and the page's one footnote */
.hx-how { margin-top: clamp(48px, 5vw, 72px); }
.hx-how p { margin: 0 0 18px; max-width: 72ch; font: 400 14.5px/1.65 var(--sans); color: var(--soft); }
.hx-how a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--n1); }
.hx-how a:hover { color: var(--sig); }
.hx-foot { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: fn; display: grid; gap: 6px; max-width: 80ch; font: 400 12.5px/1.6 var(--sans); color: var(--faint); }
.hx-foot li { counter-increment: fn; display: grid; grid-template-columns: 18px minmax(0, 1fr); scroll-margin-top: calc(var(--nav) + 24px); }
.hx-foot li::before { content: counter(fn); font: 500 10.5px/1.9 var(--mono); color: var(--sig); }
.hx-foot li:last-child::before { content: "·"; color: var(--faint); }

/* ============================================================= 6. Controls */
.hx-ctl { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hx-ctl li { display: grid; align-content: start; padding: 28px 28px 32px 0; }
.hx-ctl li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.hx-ctl b { max-width: 22ch; font: 400 clamp(19px, 1.6vw, 24px)/1.25 var(--sans); letter-spacing: -.025em; color: var(--ink); }

/* ============================================================= 7. Roles and films */
.hx-filmhead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; margin: 0 0 clamp(52px, 6vw, 84px); }
.hx-film { position: relative; min-width: 0; margin: 0; }
.hx-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--s1); }
.hx-cover {
  position: absolute; left: 0; top: 0; z-index: 2; width: 100%; aspect-ratio: 16 / 9; display: grid; grid-template-rows: auto 1fr auto; gap: 10px;
  padding: clamp(16px, 2.4vw, 28px); border: 0; border-radius: 0; background: var(--s1); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.hx-cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(242, 243, 246, .28) 0 12px, transparent 12px calc(100% - 12px), rgba(242, 243, 246, .28) calc(100% - 12px)) 0 0 / 100% 1px no-repeat, linear-gradient(90deg, rgba(242, 243, 246, .28) 0 12px, transparent 12px calc(100% - 12px), rgba(242, 243, 246, .28) calc(100% - 12px)) 0 100% / 100% 1px no-repeat, linear-gradient(180deg, rgba(242, 243, 246, .28) 0 12px, transparent 12px calc(100% - 12px), rgba(242, 243, 246, .28) calc(100% - 12px)) 0 0 / 1px 100% no-repeat, linear-gradient(180deg, rgba(242, 243, 246, .28) 0 12px, transparent 12px calc(100% - 12px), rgba(242, 243, 246, .28) calc(100% - 12px)) 100% 0 / 1px 100% no-repeat; }
.hx-cover-k { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hx-cover-t { align-self: center; max-width: 16ch; font: 400 clamp(22px, 2.4vw, 34px)/1.1 var(--sans); letter-spacing: -.035em; color: var(--ink); }
.hx-cover-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hx-cover-play { display: inline-flex; align-items: center; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sig); }
.hx-cover-play i { position: relative; width: 38px; height: 38px; background: var(--sig); transition: background-color .2s ease; }
.hx-cover-play i::after { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--bg); }
.hx-cover-cells { display: flex; gap: 3px; }
.hx-cover-cells i { width: 10px; height: 10px; background: var(--n0); }
.hx-cover-cells i:nth-child(-n+7) { background: var(--n1); }
.hx-cover-cells i:last-child { background: transparent; box-shadow: inset 0 0 0 1px var(--n1); }
.hx-cover:hover .hx-cover-play i { background: var(--ink); }
.hx-film.is-playing .hx-cover { display: none; }
.hh-tablist { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.hx .hh-tablist button { appearance: none; position: relative; margin: 0 28px 0 0; padding: 15px 0; border: 0; background: transparent; font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); cursor: pointer; transition: color .2s ease; }
.hx .hh-tablist button:hover { color: var(--ink); }
.hx .hh-tablist button[aria-selected="true"] { color: var(--ink); }
.hx .hh-tablist button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sig); }
.hh-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; padding-top: 40px; }
.hh-panel[hidden] { display: none; }
.hh-panel h3 { margin: 0 0 16px; font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.hh-line { margin: 0; max-width: 40ch; font: 400 16px/1.6 var(--sans); color: var(--soft); }
.hh-ticket { position: relative; padding: 22px 24px 18px; background: var(--s1); border: 1px solid rgba(242, 243, 246, .16); }
.hh-ticket-k { display: flex; justify-content: space-between; margin: 0 0 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.hh-ticket-k span:last-child { padding: 1px 6px; border: 1px solid var(--cop); color: var(--cop); }
.hh-ticket dl { margin: 0; }
.hh-ticket dl > div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-top: 1px solid var(--rule2); font: 400 12.5px/1.5 var(--mono); }
.hh-ticket dt { color: var(--soft); }
.hh-ticket dd { margin: 0; text-align: right; color: var(--ink); }
.hh-ticket dd.is-cop { color: var(--cop); }
.hh-ticket dd.is-sig { color: var(--sig); }

/* ============================================================= 8. Worksheet */
.hx-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.hx-split-copy h2 { font-size: clamp(34px, 3.5vw, 56px); }
.hh-calc { position: relative; display: grid; gap: 12px; padding: 28px 30px; }
.hh-calc label { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 16px; align-items: center; font: 400 14.5px/1.45 var(--sans); color: var(--soft); }
body.editorial-site .hx .hh-calc input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(242, 243, 246, .26) !important; border-radius: 0 !important;
  background: var(--s1) !important; color: var(--ink) !important; font: 500 15px/1 var(--mono); text-align: right; transition: border-color .2s ease;
}
body.editorial-site .hx .hh-calc input:hover { border-color: rgba(242, 243, 246, .5) !important; }
body.editorial-site .hx .hh-calc input:focus-visible { border-color: var(--sig) !important; outline-offset: 2px !important; }
.hh-fee { display: grid; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--rule); }
.hh-fee > div { display: grid; grid-template-columns: 136px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font: 400 13px/1.3 var(--sans); color: var(--soft); }
.hh-fee b { height: 10px; width: 0; background: var(--n1); transition: width .5s var(--ease); }
.hh-fee b.us { background: var(--sig); }
.hh-fee em { font: 500 13px/1 var(--mono); font-style: normal; color: var(--ink); text-align: right; }
.hh-calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 12px 0 0; background: var(--rule); border: 1px solid var(--rule); }
.hh-calc-out > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 18px 18px; background: var(--bg); }
.hh-calc-out > div:first-child { grid-column: 1 / -1; }
.hh-calc-out dt { font: 400 13px/1.35 var(--sans); color: var(--soft); }
.hh-calc-out dd { margin: 0; font: 300 30px/1.05 var(--sans); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hh-calc-out > div:first-child dd { font-size: 44px; color: var(--sig); }

/* ============================================================= 9. Pilot: path strip and questions */
.hx-pilot-side { display: grid; gap: 52px; }
.hx-path { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin: 0; padding: 0; }
.hx-path::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: linear-gradient(90deg, var(--sig) 0 50%, var(--rule) 50%); }
.hx-path li { position: relative; display: grid; align-content: start; gap: 6px; padding-top: 30px; }
.hx-path li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--sig); }
.hx-path li.now::before { background: var(--sig); }
.hx-path span { font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sig); }
.hx-path b { font: 400 19px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.hh-faq { border-top: 1px solid var(--rule); }
.hh-faq details { border-bottom: 1px solid var(--rule); }
.hh-faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; padding: 16px 0; list-style: none; cursor: pointer; font: 400 16.5px/1.4 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.hh-faq summary::-webkit-details-marker { display: none; }
.hh-faq summary::after { content: "+"; flex: 0 0 auto; font: 400 20px/1 var(--mono); color: var(--sig); }
.hh-faq details[open] summary::after { content: "−"; }
.hh-faq summary:hover { color: var(--sig); }
.hh-faq p { margin: -2px 0 18px; max-width: 64ch; font: 400 15px/1.6 var(--sans); color: var(--soft); }
.hx-pilot h2 { font-size: clamp(36px, 4vw, 64px); }

/* The page's night carries into the footer. */
body.hh-page.editorial-site footer.site-footer-refined { background: #0a0d14 !important; border-top-color: rgba(242, 243, 246, .12) !important; color: #aab1be !important; }
body.hh-page .site-footer-brand { color: #f2f3f6 !important; }
body.hh-page .site-footer-brand img { filter: brightness(0) invert(1); }
body.hh-page .site-footer-brand small, body.hh-page .site-footer-grid > div > span { color: #8a92a3 !important; }
body.hh-page.editorial-site .site-footer-grid > div > a { color: #d5d9e2 !important; }
body.hh-page .site-footer-bottom { border-top-color: rgba(242, 243, 246, .12) !important; color: #8a92a3 !important; }
body.hh-page .site-footer-bottom a, body.hh-page .site-footer-disclaimer { color: #8a92a3 !important; }
body.hh-page.editorial-site .site-footer-refined a:focus-visible { outline-color: #97a4ff; }

/* Headlines rise into place as they enter (where supported). Big numbers
   are never faded: they stand at full strength on their final value. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hx-head h2, .hx-split-copy h2, .hx-rec-head h2 { animation: hx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .rx-sec { animation: hx-print linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes hx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hx-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ------------------------------------------------------------- narrower desktops */
@media (max-width: 1100px) {
  .ev-pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .ev-row.is-half + .ev-row.is-half .ev-claim { margin-top: 64px; }
  .hh-process-grid { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); }
  .hh-symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ev-row { grid-template-columns: minmax(0, 1fr); }
  .hx-head, .hx-filmhead, .hh-panel, .hx-split, .hx-rec { grid-template-columns: minmax(0, 1fr); }
  .hx-rec-head { position: static; }
  .hx-ctl { grid-template-columns: minmax(0, 1fr); }
  .hx-ctl li, .hx-ctl li + li { padding: 22px 0; border-left: 0; }
  .hx-ctl li + li { border-top: 1px solid var(--rule); }
  .hx-ctl li { display: flex; align-items: center; gap: 20px; }
  .hx-ctl .hx-gl { flex: none; margin: 0; }
}

/* ------------------------------------------------------------- phones */
@media (max-width: 760px) {
  .hx { font-size: 16px; }
  .hx-case { display: flex; flex-direction: column; }
  .hx-stage { order: -1; position: sticky; top: var(--nav); z-index: 5; width: 100%; height: 49vh; height: clamp(340px, 49svh, 412px); border-left: 0; border-bottom: 1px solid var(--rule); background: var(--bg); }
  .hx-copycol { padding: 0 20px; }
  .hx-step, .hx-step.is-long, .hx-step:last-child { min-height: 0; padding: 7vh 0 var(--pbm, 34vh); }
  .hx-step.is-long { --pbm: 40vh; }
  .hx-step:last-child { --pbm: 14vh; }
  .hx-hero { padding: 5vh 0 26vh; }
  .hx-copy { position: relative; top: auto; max-width: none; padding-bottom: 0; }
  .hx-cue { display: none; }
  .hx h1 { font-size: clamp(38px, 10.6vw, 48px); }
  .hx h2, .hx-head h2, .hx-split-copy h2, .hx-pilot h2 { font-size: clamp(30px, 8.4vw, 38px); }
  .hx-checks { grid-template-columns: minmax(0, 1fr); }
  .hx-sec { padding: 76px 0; }
  .hx-head { margin-bottom: 38px; }
  .rx-sec { padding: 18px 16px 20px; }
  .rx-meta, .rx-kv { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .rx-fp .rx-kv { grid-template-columns: minmax(0, 1fr); }
  .rx-title { font-size: 26px; }
  .rx-checkgrid { grid-template-columns: minmax(0, 1fr); }
  .rx-moves li { grid-template-columns: minmax(0, 1fr) auto; }
  .rx-moves span { grid-column: 1 / -1; grid-row: 2; }
  /* The board stays pinned above the zip; the zip runs down the left. */
  .hh-process-grid { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "board board" "rail list"; column-gap: 0; }
  .hh.js .hh-board { top: var(--nav); z-index: 3; margin: 0 -20px 16px; padding: 12px 20px 10px; background: var(--bg); border-bottom: 1px solid var(--rule); }
  .hh-board .hx-marks { display: none; }
  .hh-board-top { gap: 6px 10px; }
  .hh-meter { gap: 6px; }
  .hh-meter-label { display: none; }
  .hh-meter-bar i { width: 13px; height: 6px; }
  .hh-meter-n { min-width: 0; }
  .hh-planbar { gap: 8px; margin-top: 10px; padding: 0 10px; font-size: 12px; }
  .hh-board.is-planned .hh-planbar { height: 32px; }
  .hh-accts { --gap: 10px; gap: var(--gap) 8px; margin-top: 12px; }
  .hh-acct b { font-size: 11px; letter-spacing: .04em; }
  .hh-acct small { font-size: 11px; }
  .hh-lots { height: 9px; margin-top: 5px; }
  .hh-badge { width: 12px; height: 12px; font-size: 10px; }
  .hh-symptoms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; padding-top: 8px; }
  .hh-sym { min-height: 60px; }
  .hh-sym b { font-size: 11px; line-height: 1.2; }
  .hh-sym small { display: none; }
  .hh-sym-vis { height: 16px; margin-bottom: 4px; transform: scale(.7); transform-origin: left center; }
  .hh-ok { width: 11px; height: 11px; margin: 2px 0 6px; }
  .hh-ok::after { left: 3.5px; top: 1px; width: 3px; height: 6px; }
  .hh-sym-wait { font-size: 11px; letter-spacing: .02em; line-height: 1.2; }
  .hh-board-foot { margin-top: 8px; padding-top: 8px; }
  .hh-check-out { font-size: 12.5px; }
  .hh-zip-list li { padding: 11px 4px 11px 2px; }
  .hh-zip-list li.on::before { display: none; }
  .hh-txt, .hh-fix { font-size: 15px; }
  .hh-zip-tail { height: 112px; }
  .hh-zip-stops i { width: 40px; margin-left: -20px; background: linear-gradient(90deg, transparent 0 30px, rgba(242, 243, 246, .28) 30px); }
  .hh-zip-stops i.on { background: linear-gradient(90deg, transparent 0 30px, var(--cop) 30px); }
  .hh-zip-stops i.fix { background: linear-gradient(90deg, transparent 0 30px, var(--sig) 30px); }
  /* Evidence. */
  .ev-big > strong { font-size: 64px; }
  .ev-row.is-half .ev-big > strong { font-size: 50px; }
  #after-tax .ev-big > strong { font-size: 40px; }
  .hx-fig-hd { flex-direction: column; gap: 6px; }
  .hx-fig-body { padding: 24px 12px 18px; }
  .wf3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .wf-n { font-size: 24px; margin-top: 12px; }
  .wf-name { font-size: 12px; }
  .bk-field { --p: 2.5px; }
  .bk-time { max-width: calc(125 * 2.5px); }
  .hx .hh-tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .hx .hh-tablist button { margin: 0; padding: 13px 6px 13px 0; text-align: left; border-bottom: 1px solid var(--rule); }
  .hh-panel { padding-top: 26px; }
  .hh-calc { padding: 18px 0; }
  .hh-calc .hx-marks { display: none; }
  .hh-calc label { grid-template-columns: minmax(0, 1fr) 104px; }
  .hh-fee > div { grid-template-columns: 112px minmax(0, 1fr) 56px; }
  .hh-calc-out > div:first-child dd { font-size: 36px; }
  .hh-calc-out dd { font-size: 25px; }
  .hx-path { gap: 0 12px; }
  .hx-path b { font-size: 16px; }
  .hx-pilot-side { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { transition: none !important; animation: none !important; }
}
/* Printed or saved as PDF: every section and figure in its final state. */
@media print {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
  .hx-stage { position: relative; height: 820px; }
}
