/* Site styles. Colours and fonts: tokens.css. Conventions: ../CONVENTIONS.md */

:root {
  /* Colours and fonts live in tokens.css. These are layout tokens. */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 120px;

  --max: 1240px;
  --margin: 24px;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--link);
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.2vw, 32px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
p { margin: 0 0 var(--s3); }

.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--margin); padding-right: var(--margin); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); min-height: 72px;
}
/* Header logo: the ring mark, then "Select Business Group" on one line, both drawn from /brand/logo.svg.
   The two SVGs share one height, so mark and name keep the brand sheet's alignment and spacing. */
.site-header .name {
  --logo-h: 30px;
  display: inline-flex; align-items: center; gap: calc(var(--logo-h) * 0.5034);
  color: var(--ink); text-decoration: none; white-space: nowrap;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; /* double click switches copy mode (copy.js) */
}
.site-header .wm { display: block; height: var(--logo-h); width: calc(var(--logo-h) * 8.4183); }
@media (max-width: 560px) { .site-header .name { --logo-h: 26px; } }
@media (max-width: 360px) { .site-header .name { --logo-h: 22px; } }
.site-header nav { display: flex; gap: var(--s4); }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.site-header nav a:hover { color: var(--ink); }
/* Services dropdown (nav.js): the trigger looks like the other links; the panel fades and drops in */
.site-header nav { align-items: center; }
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 16px; color: var(--muted); transition: color var(--fade) var(--ease);
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-group.is-current .nav-trigger { color: var(--ink); }
.nav-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.nav-trigger .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease); }
/* The caret turns when the menu is opened by click, tap or keyboard, not when a mouse hover opens it */
.nav-trigger[aria-expanded="true"]:not([data-by="hover"]) .chev { transform: rotate(180deg); }
.nav-panel {
  position: absolute; z-index: 20; top: calc(100% + 14px); left: -14px; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 200ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
}
/* An invisible bridge over the gap, so the mouse can travel from the trigger to the panel */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
.nav-trigger[aria-expanded="true"] + .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-panel a { display: block; padding: 9px 12px; border-radius: 6px; white-space: nowrap; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--card); color: var(--ink); }
.nav-panel a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-panel a[aria-current="page"] { color: var(--ink); }
.site-header .right { display: flex; align-items: center; gap: var(--s4); }
/* The ring mark: four interlaced rings, the top one in ink and one per practice.
   The padding widens the tap target for the copy-mode gesture without moving anything. */
.mark {
  display: block; box-sizing: content-box; overflow: visible;
  width: var(--logo-h, 30px); height: var(--logo-h, 30px);
  padding: 8px; margin: -8px;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
}

/* Stacked lockups (/brand/logo.svg symbols). The ring mark is the full height; practice lockups dim the other three rings.
   Height follows --name-size; on narrow cards max-width shrinks the logo, held to the left (preserveAspectRatio). */
.lockup { display: block; overflow: visible; width: auto; max-width: 100%; height: calc(var(--name-size, 48px) * 1.5); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: -8px;
  padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon, [data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

/* Sections */
section { padding: var(--s6) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-bottom: var(--s5); border-bottom: 1px solid var(--line); padding-bottom: var(--s3); }

/* Hero */
.hero { padding: var(--s6) 0; }
.hero .lockup { margin-bottom: var(--s6); }
.hero .label { margin-bottom: var(--s4); }
.hero h1 { max-width: 17ch; }
.home-hero h1 { letter-spacing: -0.04em; }
.practice-hero .lockup { --name-size: 44px; margin-bottom: var(--s5); }
.practice-hero h1 { font-size: clamp(40px, 6vw, 76px); max-width: 18ch; }
.hero .lede { font-size: clamp(20px, 2.2vw, 24px); color: var(--muted); max-width: 44ch; margin: var(--s5) 0 var(--s4); line-height: 1.45; }
.hero .proof { font-size: 16px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s5); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Home hero: taller, with a bar chart beside the headline that tells a growth story (the one approved motion exception,
   see CONVENTIONS.md). On load, hero.js builds it once, bar by bar from the left, each bar rising and settling, while a
   thin accent line draws along the tops to the last, brass bar. Then it stays.
   Reduced motion or no JavaScript: the finished chart, standing still. */
/* Two columns: the words on the left, the chart on the right at the same height, buttons above the fold */
.home-hero { padding: var(--s5) 0 var(--s6); }
.home-hero > .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s6); align-items: end; }
.home-hero > .wrap > * { grid-column: 1; }
.home-hero .lockup { --name-size: 40px; margin-bottom: var(--s5); }
.home-hero h1 { font-size: clamp(40px, 4.8vw, 72px); line-height: 1.02; max-width: 14ch; }
.home-hero .lede { margin: var(--s4) 0 0; max-width: 34ch; }
.home-hero .hero-actions { margin-top: var(--s5); }
.home-hero > .wrap > .hero-visual { grid-column: 2; grid-row: 1 / span 5; align-self: stretch; min-height: 340px; }
.hero-field { width: 100%; height: 100%; pointer-events: none; }
.hero-field svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-field rect { fill: color-mix(in srgb, var(--muted) 42%, var(--paper)); transform-box: fill-box; transform-origin: 50% 100%; }
.hero-field rect.peak { fill: var(--brand); }
/* The line is dotted; a solid copy inside a mask is what draws it on, so the dots never slide */
.hero-field .trend { fill: none; stroke: var(--accent); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 12; }
.hero-field .trend-mask { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* The line ends past the last bar in an arrowhead pointing on up, with one soft ripple as it lands */
.hero-field .trend-head { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; transform-box: view-box; }
.hero-field .trend-ripple { fill: var(--accent); stroke: none; opacity: 0; transform-box: view-box; }
/* Starting state while the first build is about to run (set in <head>, cleared by hero.js) */
.hero-build .hero-field rect { transform: scaleY(0); }
.hero-build .hero-field .trend-mask { stroke-dashoffset: 1; }
.hero-build .hero-field .trend-head { opacity: 0; }
.hero .proof strong { color: var(--ink); font-weight: 600; }
/* Bold inside grey copy steps up to full ink: white in dark, darkest charcoal in light */
.lede strong, .summary strong, .cs-context strong, .more-work strong, figcaption strong,
.rows dd strong, .steps p strong, .site-footer strong { color: var(--ink); }

/* Contact */
.contact h2 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.035em; margin: var(--s4) 0 var(--s5); }
.contact .links { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); font-size: 20px; }

/* Contact form (contact.js): stacked fields, one accent button, the result announced beside it */
.contact-form { max-width: 560px; margin: var(--s5) 0 var(--s6); display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s2); }
.field label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
  transition: border-color var(--fade) var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select { appearance: auto; }
.field .optional { text-transform: none; letter-spacing: 0; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.was-submitted .field :invalid { border-color: var(--error); }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.button {
  display: inline-block; text-decoration: none;
  font: 600 16px/1 var(--sans); color: var(--on-brand); background: var(--brand);
  border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  transition: filter var(--fade) var(--ease);
}
.button:hover { filter: brightness(1.08); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button:disabled { opacity: .6; cursor: default; }
.form-status { margin: 0; font-size: 16px; color: var(--muted); }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: var(--error); }

/* Footer: practice links and Contact, then the parent-company line, all quiet */
.site-footer { padding: var(--s5) 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0 0 var(--s3); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-line { margin: 0; }

/* Practice cards (Home): three quiet cards in client order */
.practices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.practice-card {
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5) var(--s4) var(--s4); border: 1px solid var(--line); border-radius: 8px;
  color: inherit; text-decoration: none; --name-size: 40px;
}
.practice-card:hover { border-color: var(--muted); }
.practice-card h3 { margin-bottom: var(--s2); }
.practice-card .summary { color: var(--muted); margin: 0; flex: 1; }
.practice-card .more { font-size: 16px; font-weight: 600; color: var(--ink); }
.practice-card:hover .more { color: var(--accent); }

/* Text blocks at reading width */
.prose { max-width: var(--measure); }
.prose p { font-size: 20px; line-height: 1.55; }
.prose p.muted { color: var(--muted); }

/* Term and description rows, hairlines between */
.rows { margin: 0; display: grid; }
.rows > div {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--s2) var(--s5);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.rows > div:first-child { padding-top: 0; }
.rows dt { font-weight: 600; font-size: 20px; line-height: 1.4; }
.rows dd { margin: 0; color: var(--muted); max-width: 52ch; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5) var(--s4); }
.steps li { border-top: 1px solid var(--line); padding-top: var(--s3); }
.steps .label { margin-bottom: var(--s3); }
.steps h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: var(--s2); }
.steps p { color: var(--muted); margin: 0; font-size: 17px; }
.after-steps { margin-top: var(--s5); }

/* About: the three principles, large */
.principles { list-style: none; margin: 0; padding: 0; }
.principles li {
  display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
  font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
}
.principles .label { font-size: 13px; }

/* Practice-name heading: the lockup pairing as type (Instrument Sans name over tracked Geist Mono caps) */
.pair-heading { display: grid; gap: 6px; }
.pair-heading .ph-name { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.pair-heading .ph-caps { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.links-to { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-top: var(--s5); }
.links-to a { display: block; padding: var(--s4); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.links-to a:hover { border-color: var(--muted); }
.links-to p { color: var(--muted); font-size: 16px; margin: var(--s3) 0 0; }

/* Closing line and contact button, at the end of every page */
.cta { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); }
.cta h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.03em; max-width: 18ch; margin-bottom: var(--s5); }

/* Home: a short intro under a section head, and a quiet "more" link after a list */
.section-intro { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: var(--measure); margin: 0 0 var(--s5); }
.cta-note { color: var(--muted); font-size: 18px; margin: calc(-1 * var(--s4)) 0 var(--s5); max-width: 44ch; }
.after-list { margin: var(--s4) 0 0; font-size: 17px; }

/* Screen-reader text */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Content modes (copy.js). In lorem mode <main> stays hidden until the swap is done, so the real copy never flashes.
   Nothing fades in on load; the fade below only runs when the mode is switched in a browser without View Transitions. */
html[data-copy="lorem"]:not(.copy-ready) main { visibility: hidden; }
html.copy-fading main { transition: opacity 140ms ease-out; }
html.copy-out main { opacity: 0; }

/* Draft markers: remove before publishing */
.todo {
  background: #4a3b00; color: #ffe8a3;
  padding: 1px 6px; border-radius: 4px; font-size: 0.85em; font-family: var(--sans); text-transform: none; letter-spacing: 0;
}
[data-theme="light"] .todo { background: #fff3bf; color: #5c4400; }

/* Case study pages (site/work/) */
.cover.placeholder {
  display: flex; align-items: flex-end; padding: var(--s5);
  background: var(--ink); color: var(--paper);
}
.cover.placeholder span { font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.metrics { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin: var(--s4) 0; }
.metric strong { display: block; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.metric span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.more-work { margin-top: var(--s6); color: var(--muted); }

.cs-hero { padding-top: var(--s6); padding-bottom: var(--s5); }
.cs-hero .back { font-size: 16px; display: inline-block; margin-bottom: var(--s5); color: var(--muted); text-decoration: none; }
.cs-hero .back:hover { color: var(--accent); }
.cs-hero h1 { font-size: clamp(40px, 5.5vw, 68px); max-width: 18ch; margin-top: var(--s3); }
.cs-hero .lede { font-size: clamp(20px, 2.2vw, 24px); color: var(--muted); max-width: 46ch; margin-top: var(--s4); line-height: 1.45; }
.cs-hero .cs-context { font-size: 16px; color: var(--muted); max-width: 60ch; margin-top: var(--s3); }
.cs-hero .metrics { margin: var(--s5) 0 0; gap: var(--s5) var(--s6); }

.meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--s4) 0; margin: var(--s5) 0 0;
}
.meta dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
.meta dd { margin: 0; font-size: 16px; }

.cs-body { padding-bottom: var(--s7); }
.cs-body .text { max-width: calc(var(--measure) + 2 * var(--margin)); margin: 0 auto; }
.cs-body h2 { font-size: 28px; margin: var(--s6) 0 var(--s3); }
.cs-body h3 { font-size: 21px; letter-spacing: -0.01em; margin: var(--s5) 0 var(--s2); }
.cs-body ul, .cs-body ol { padding-left: 1.2em; margin: 0 0 var(--s3); }
.cs-body li { margin-bottom: var(--s2); }

figure { margin: var(--s6) 0; }
figure img { border-radius: 6px; width: 100%; background: var(--card); border: 1px solid var(--line); }
figcaption { font-size: 14px; color: var(--muted); margin-top: var(--s2); }
.wide-figure .scroller { overflow-x: auto; border-radius: 6px; border: 1px solid var(--line); background: var(--card); overscroll-behavior-x: contain; }
.wide-figure .scroller:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wide-figure .scroller img { width: 3600px; max-width: none; border: 0; border-radius: 0; }
:root[data-theme="dark"] .only-light, :root[data-theme="light"] .only-dark { display: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin: var(--s6) 0; }
.pair figure { margin: 0; }


.next { border-top: 1px solid var(--line); padding: var(--s6) 0; }
.next a { display: inline-block; margin-top: var(--s2); font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.next a:hover { color: var(--accent); }

/* Motion: short colour fades on hover, a crossfade when the theme changes.
   Theme crossfade is triggered by theme.js only on toggle, so nothing fades on page load. */
:root { --ease: cubic-bezier(.2, .7, .3, 1); --fade: 180ms; }
a, .theme-toggle, .practice-card, .practice-card .more {
  transition: color var(--fade) var(--ease), background-color var(--fade) var(--ease),
    border-color var(--fade) var(--ease), text-decoration-color var(--fade) var(--ease);
}
.theme-toggle svg { transition: fill var(--fade) var(--ease), stroke var(--fade) var(--ease); }

/* Browsers with View Transitions: whole-page crossfade */
::view-transition-old(*), ::view-transition-new(*) { animation-duration: 240ms; animation-timing-function: ease-out; }

/* Page-to-page: the header stays put while the page underneath fades and lifts slightly.
   Works over http(s) in browsers with cross-document View Transitions; others navigate normally.
   html.theme-switching (theme.js) and html.copy-switching (copy.js) keep those switches a plain crossfade. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
html:not(.theme-switching):not(.copy-switching)::view-transition-old(root) { animation: 140ms ease-out both vt-fade-out; }
html:not(.theme-switching):not(.copy-switching)::view-transition-new(root) { animation: 280ms var(--ease) 60ms both vt-rise-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise-in { from { opacity: 0; transform: translateY(6px); } }
/* Fallback for other browsers: fade colours on every element while the theme switches */
html.theme-fading, html.theme-fading *, html.theme-fading *::before, html.theme-fading *::after {
  transition: color 240ms ease-out, background-color 240ms ease-out, border-color 240ms ease-out,
    fill 240ms ease-out, stroke 240ms ease-out !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --margin: 16px; --s7: 72px; }
  body { font-size: 17px; }
  /* Header: logo and theme toggle on the first row, the five links on the second */
  .site-header .wrap { flex-wrap: wrap; gap: 0 var(--s3); min-height: 0; padding-top: 14px; padding-bottom: 10px; }
  .site-header .right { display: contents; }
  .site-header .theme-toggle { order: 2; }
  .site-header nav { order: 3; flex-basis: 100%; gap: var(--s4); padding-top: 10px; }
  .nav-trigger { font-size: 15px; }
  .nav-panel { left: -8px; }
  .site-header nav a { font-size: 15px; white-space: nowrap; }
  html { scroll-padding-top: 112px; }
  .practices, .links-to { grid-template-columns: 1fr; }
  .rows > div { grid-template-columns: 1fr; }
  .rows dt { font-size: 19px; }
  .prose p { font-size: 18px; }
  .principles li { grid-template-columns: 40px 1fr; gap: var(--s3); }
  .hero .lockup { --name-size: 38px; margin-bottom: var(--s5); }
  /* Phones: one column, words and buttons first, then the chart at full width */
  section.home-hero { padding: var(--s4) 0 var(--s5); }
  .home-hero > .wrap { grid-template-columns: minmax(0, 1fr); }
  .home-hero .lockup { --name-size: 36px; margin-bottom: var(--s4); }
  .home-hero > .wrap > .hero-visual { grid-column: 1; grid-row: auto; min-height: 0; height: 200px; margin-top: var(--s5); }
  section, .hero { padding: var(--s5) 0; }
  .cta { padding: var(--s5) 0 var(--s6); }
  .pair { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr 1fr; }
  .metric strong { font-size: 32px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: var(--s4); }
}

.site-header nav a[aria-current="page"] { color: var(--ink); }

/* Site chat (chat.js): launcher bottom right, panel above it; a bottom sheet on phones */
.chat-launcher {
  position: fixed; right: var(--margin); bottom: var(--margin); z-index: 20;
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 600 16px/1 var(--sans); color: var(--on-brand); background: var(--brand);
  border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: filter var(--fade) var(--ease);
}
.chat-launcher:hover { filter: brightness(1.08); }
.chat-launcher:focus-visible, .chat-panel button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.chat-launcher[hidden], .chat-panel[hidden] { display: none; }

.chat-panel {
  position: fixed; right: var(--margin); bottom: var(--margin); z-index: 20;
  width: 380px; max-width: calc(100vw - 2 * var(--margin)); height: min(560px, calc(100vh - 2 * var(--margin) - 72px));
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  font-size: 16px; line-height: 1.5;
}
:root[data-theme="light"] .chat-panel { box-shadow: 0 16px 48px rgba(20, 20, 30, .14); }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) 20px; border-bottom: 1px solid var(--line); }
.chat-head .label { font-size: 12px; margin-bottom: 2px; }
.chat-head h2 { font-size: 18px; letter-spacing: -0.01em; }
.chat-actions { flex: none; display: flex; align-items: center; gap: var(--s1); margin: -2px -4px 0 0; }
.chat-reset { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: color var(--fade) var(--ease), border-color var(--fade) var(--ease); }
.chat-reset:hover { color: var(--ink); border-color: var(--brand); }
.chat-reset[hidden] { display: none; }
.chat-close { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; transition: color var(--fade) var(--ease); }
.chat-close:hover { color: var(--ink); }

.chat-log { flex: 1; overflow-y: auto; padding: var(--s3) 20px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.chat-msg { max-width: 88%; border-radius: 10px; padding: 10px 14px; }
.chat-msg p { margin: 0; }
.chat-msg p + p { margin-top: var(--s2); }
.chat-msg.from-bot { align-self: flex-start; background: var(--card); }
.chat-msg.from-visitor { align-self: flex-end; background: none; border: 1px solid var(--line); }
.chat-msg.is-typing { color: var(--muted); }
.chat-msg.is-error { color: var(--muted); }
.chat-msg.from-visitor.is-error { opacity: .7; }

.chat-suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.chat-suggestions button {
  font: inherit; font-size: 15px; text-align: left; color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  transition: border-color var(--fade) var(--ease), color var(--fade) var(--ease),
    background-color var(--fade) var(--ease), transform var(--fade) var(--ease);
}
/* Hover: accent edge, a faint accent wash and a 2px nudge toward the text; hover-capable pointers only so taps don't stick */
@media (hover: hover) {
  .chat-suggestions button:hover { border-color: var(--brand); background-color: color-mix(in srgb, var(--brand) 9%, transparent); transform: translateX(2px); }
}
.chat-suggestions button:active { transform: translateX(2px) scale(.98); }

.chat-form { display: flex; align-items: flex-end; gap: var(--s2); margin: 0 var(--s3); padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); transition: border-color var(--fade) var(--ease); }
.chat-form:focus-within { border-color: var(--accent); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; font: inherit; color: var(--ink); background: none; border: 0; padding: 6px 0; outline: none; max-height: 120px; }
.chat-form textarea::placeholder { color: var(--muted); }
.chat-send { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: var(--brand); color: var(--on-brand); cursor: pointer; transition: filter var(--fade) var(--ease); }
.chat-send:hover { filter: brightness(1.08); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-note { font-size: 12px; color: var(--muted); margin: var(--s2) 20px 12px; line-height: 1.4; }

/* Open/close (chat.js adds these classes on click only, never on page load).
   The panel grows out of the launcher's corner; the launcher pops back as the panel fades. */
.chat-panel { transform-origin: bottom right; }
.chat-panel.is-entering { animation: chat-in 240ms var(--ease) both; }
.chat-panel.is-leaving { animation: chat-out 180ms cubic-bezier(.4, 0, 1, 1) both; pointer-events: none; }
.chat-launcher.is-returning { animation: chat-launcher-in 240ms var(--ease) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes chat-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes chat-launcher-in { from { opacity: 0; transform: scale(.92); } }
@keyframes chat-sheet-in { from { transform: translateY(100%); } }
@keyframes chat-sheet-out { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .chat-suggestions button:hover, .chat-suggestions button:active { transform: none; }
}

@media (max-width: 480px) {
  /* Phones: a bottom sheet that slides up and back down */
  .chat-panel.is-entering { animation: chat-sheet-in 300ms var(--ease) both; }
  .chat-panel.is-leaving { animation: chat-sheet-out 220ms cubic-bezier(.4, 0, 1, 1) both; }
  .chat-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-launcher { padding: 14px; }
  .chat-panel { right: 0; bottom: 0; width: 100%; max-width: none; height: min(85vh, 640px); border-radius: 12px 12px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media print { .chat-launcher, .chat-panel { display: none !important; } }

/* ------------------------------------------------------------------------------------------------
   Peer-review enhancements (PEER-REVIEW-PLAN.md): charts, problem cards, named proof, self-check.
   ------------------------------------------------------------------------------------------------ */

/* Named proof stays out of real copy mode until there's permission to show it */
html[data-copy="real"] .real-hidden { display: none; }

/* Charts (charts.js): still, inline SVG marks with HTML labels, each on a quiet card. Grey marks on pale tracks,
   hairline rules, brass for the one value that matters (--brand fill, --accent text). No motion beyond --fade on hover. */
.chart {
  margin: var(--s5) 0 0; max-width: 960px; padding: var(--s5); border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  --track: color-mix(in srgb, var(--line) 55%, var(--card));
  --bar: color-mix(in srgb, var(--muted) 55%, var(--card));
  --work: var(--muted);
}
.chart-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 var(--s5); font-size: inherit; color: inherit; }
.chart-kicker { font-size: 11px; letter-spacing: 0.06em; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); line-height: 1; }
.chart-title { margin: 0; font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); max-width: 36ch; }
.chart-note { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.chart-note + .chart-note { margin-top: var(--s2); padding-top: 0; border-top: 0; }

.chart-rows { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr) minmax(6em, auto); gap: 18px var(--s4); align-items: center; }
.chart-row { display: contents; }
.chart-label { font-size: 16px; line-height: 1.35; color: var(--ink); }
.chart-value { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; text-align: right; }
.chart-tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.chart-track { display: block; width: 100%; height: 14px; overflow: visible; }
.chart .track { fill: var(--track); }
.chart .bar { fill: var(--bar); transition: fill var(--fade) var(--ease); }
.chart .is-key .bar { fill: var(--brand); }
.chart .is-key .chart-value { color: var(--accent); font-weight: 600; }
.chart .is-key .chart-label { font-weight: 600; }
.chart-row:hover .bar { fill: var(--muted); }
.chart-row.is-key:hover .bar { fill: var(--brand); }

/* Key: small swatches with their names, used where direct labels won't fit */
.chart-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 var(--s4); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.chart-key .sw { display: inline-block; width: 12px; height: 12px; margin-right: -12px; border-radius: 3px; background: var(--bar); vertical-align: -1px; }
.chart-key .sw-work { background: var(--work); }
.chart-key .sw-key, .chart-key .sw-dot.is-key { background: var(--brand); }
.chart-key .sw-dot { border-radius: 50%; background: var(--muted); }
.chart-key .sw-on { background: var(--ink); }
.chart-key .sw-off { background: var(--track); box-shadow: inset 0 0 0 1px var(--line); }

/* Stacked work and wait: working time in grey, waiting in pale grey, the longest wait in brass */
.chart .bar.work, .chart .is-key .bar.work { fill: var(--work); }
.chart .is-key .bar.wait { fill: var(--brand); }
.chart-row:hover .bar.wait { fill: color-mix(in srgb, var(--muted) 75%, var(--card)); }
.chart-row.is-key:hover .bar.wait { fill: var(--brand); }

/* Dot chart: before (grey) and after (brass) on a hairline, joined by a thicker line */
.chart-dots { position: relative; height: 22px; background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.chart-dots .dot-line { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 45%, var(--muted)); }
.chart-dots .dot { position: absolute; top: 0; width: 18px; height: 22px; margin-left: -9px; overflow: visible; }
.chart-dots .dot circle { fill: var(--muted); stroke: var(--card); stroke-width: 3; }
.chart-dots .dot.is-key circle { fill: var(--brand); }

/* Engagement timeline: numbered stages as blocks, the optional stage dashed, a brass flag where the diagnosis ends */
.chart-timeline { display: flex; align-items: stretch; gap: 6px; padding-bottom: 64px; }
.tl-seg { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tl-seg .chart-label { font-weight: 600; margin-bottom: 8px; flex: 1; }
.tl-seg .chart-value { text-align: left; font-size: 13px; margin-top: 8px; }
.tl-bar { display: block; width: 100%; height: 40px; }
.tl-bar rect { fill: var(--bar); }
.tl-seg:nth-child(3) .tl-bar rect { fill: color-mix(in srgb, var(--muted) 75%, var(--card)); }
.tl-seg.is-optional .tl-bar rect { fill: none; stroke: var(--muted); stroke-width: 1.5px; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.tl-seg.is-optional .chart-label { font-weight: 400; color: var(--muted); }
.tl-marker { position: relative; flex: none; width: 2px; margin: 0 8px -64px; background: var(--brand); }
.tl-marker::before { content: ""; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.tl-marker span {
  position: absolute; bottom: 0; right: -1px; width: max-content; max-width: 26ch; padding: 7px 12px; border-radius: 8px 8px 0 8px;
  font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--on-brand); background: var(--brand);
}

/* History: a line with a dot per milestone, the latest in brass with a soft ring */
.chart-milestones { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s3);
  background: linear-gradient(var(--line), var(--line)) 0 10px / 100% 2px no-repeat; }
.chart-milestones li { display: flex; flex-direction: column; gap: 4px; }
.ms-dot { display: block; width: 22px; height: 22px; margin-bottom: var(--s3); overflow: visible; }
.ms-dot circle { fill: var(--muted); stroke: var(--card); stroke-width: 3; }
.chart-milestones .is-key .ms-dot circle { fill: var(--brand); stroke: color-mix(in srgb, var(--brand) 30%, var(--card)); stroke-width: 6; }
.chart-milestones .chart-value { font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; text-align: left; color: var(--ink); }
.chart-milestones .is-key .chart-value { color: var(--accent); }
.chart-milestones .chart-label { color: var(--muted); font-size: 15px; }

/* US tile map: covered states in ink, the home state in brass, the rest pale */
.chart-tiles { display: block; width: 100%; max-width: 560px; height: auto; margin-bottom: var(--s4); }
.chart-tiles rect { fill: var(--track); }
.chart-tiles text { font-family: var(--mono); font-size: 2.5px; text-anchor: middle; fill: var(--muted); }
.chart-tiles .is-on rect { fill: var(--ink); }
.chart-tiles .is-on text { fill: var(--paper); }
.chart-tiles .is-key rect { fill: var(--brand); }
.chart-tiles .is-key text { fill: var(--on-brand); }
.chart-tiles .tile:hover rect { fill: var(--bar); }
.chart-tiles .tile.is-on:hover rect { fill: var(--ink); }
.chart-tiles .tile.is-key:hover rect { fill: var(--brand); }
.chart-list { margin: 0; font-size: 16px; }

/* Rep vs in-house cost: a conceptual diagram, no numbers, with a short key beside it */
.cost-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s5); align-items: center; }
.cost-diagram { position: relative; }
.cost-diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.cost-diagram .grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.cost-diagram .axis { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cost-diagram .in-house-area { fill: color-mix(in srgb, var(--muted) 12%, transparent); }
.cost-diagram .rep-area { fill: color-mix(in srgb, var(--brand) 22%, transparent); }
.cost-diagram .in-house { fill: none; stroke: var(--muted); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.cost-diagram .rep { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; }
.cost-diagram .in-house-dot { fill: var(--muted); stroke: var(--card); stroke-width: 3; }
.cost-diagram .rep-dot { fill: var(--brand); stroke: var(--card); stroke-width: 3; }
.cost-label { position: absolute; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 4px 9px; border-radius: 999px; background: var(--card); white-space: nowrap; }
.cost-label.in-house { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cost-label.rep { color: var(--on-brand); background: var(--brand); }
.cost-axis { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cost-lede { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 var(--s4); }
.cost-key { margin: 0; display: grid; gap: var(--s4); }
.cost-key dt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.cost-key dd { margin: 4px 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cost-key .sw { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.cost-key .sw-in-house { background: var(--muted); }
.cost-key .sw-rep { background: var(--brand); }

/* "Sound familiar?": three quiet problem cards */
.problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.problems li {
  padding: var(--s4); border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em;
}
.draft-note { margin: var(--s4) 0 0; font-size: 16px; }

/* Named proof (hidden in real mode until there's permission): placeholder logos and quotes */
.proof-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.proof-logos li { display: grid; place-items: center; min-height: 88px; padding: var(--s3); border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.proof-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-top: var(--s5); }
.proof-quotes blockquote { margin: 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line); }
.proof-quotes blockquote p { font-size: 20px; line-height: 1.45; }
.proof-quotes footer { font-size: 15px; color: var(--muted); }

/* Self-check (check.js): six statements in a compact grid with a four-point scale, then the visitor's own scores */
.button-quiet {
  display: inline-block; font: 600 16px/1 var(--sans); color: var(--ink); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 13px 21px;
  transition: border-color var(--fade) var(--ease), color var(--fade) var(--ease);
}
.button-quiet:hover { border-color: var(--brand); }
.button-quiet:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#self-check .section-intro { margin-bottom: var(--s4); }
#self-check .section-head .label { white-space: nowrap; }
.check-form, .check-result { max-width: 960px; }
.check-form { padding: var(--s3) var(--s5) var(--s5); border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.check-form[hidden], .check-result[hidden], .check-result [hidden] { display: none; }
.check-head, .check-q { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 76px); align-items: center; column-gap: 4px; }
.check-head { padding: var(--s2) 0; }
.check-head span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); text-align: center; }
.check-q { padding: 12px 0; border-top: 1px solid var(--line); }
.check-text { margin: 0; padding-right: var(--s4); font-size: 17px; line-height: 1.4; }
.check-q label { position: relative; display: grid; place-items: center; height: 40px; cursor: pointer; }
.check-q input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check-q .opt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.check-q label::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--paper); pointer-events: none;
  transition: border-color var(--fade) var(--ease), background-color var(--fade) var(--ease), box-shadow var(--fade) var(--ease);
}
.check-q label:hover::after { border-color: var(--ink); }
.check-q label:has(input:checked)::after { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--paper); }
.check-q label:has(input:focus-visible)::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.check-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.check-form .draft-note { margin-top: var(--s3); }
.check-status { margin: 0; font-size: 16px; color: var(--muted); }
.check-status.is-error { color: var(--error); }
.check-result .chart { margin-top: 0; }
.check-result .chart-rows { grid-template-columns: minmax(0, 12em) minmax(0, 1fr) minmax(4.5em, auto); }
.check-advice { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: var(--s5) 0 0; }
.check-advice a { white-space: nowrap; }
.check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s4); }
.check-small { color: var(--muted); font-size: 14px; margin: var(--s4) 0 0; }

/* Contact: the way into the self-check */
.contact .check-link { margin: var(--s4) 0 var(--s4); font-size: 18px; color: var(--muted); }

@media (max-width: 860px) {
  .chart { padding: var(--s4) var(--s3); border-radius: 12px; }
  .problems { grid-template-columns: 1fr; gap: var(--s3); }
  .problems li { font-size: 18px; }
  .proof-logos { grid-template-columns: repeat(2, 1fr); }
  .proof-quotes { grid-template-columns: 1fr; }
  /* Phones: horizontal charts stay horizontal; labels move above their bars */
  .chart-rows, .check-result .chart-rows { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .chart-rows > .chart-row > .chart-label { grid-column: 1 / -1; margin-top: var(--s3); }
  .chart-rows > .chart-row:first-child > .chart-label { margin-top: 0; }
  .chart-timeline { gap: 4px; }
  .tl-seg .chart-label { font-size: 13px; }
  .tl-seg .chart-value { font-size: 11px; white-space: normal; }
  .tl-bar { height: 28px; }
  .tl-marker { margin: 0 4px -64px; }
  .tl-marker span { font-size: 12px; max-width: 18ch; }
  .chart-milestones { gap: var(--s2); }
  .chart-milestones .chart-value { font-size: 18px; }
  .chart-milestones .chart-label { font-size: 13px; }
  .cost-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .cost-label { font-size: 12px; padding: 3px 7px; }
  .cost-axis { font-size: 10px; }
  /* Self-check: the statement on its own line, the four choices as labelled buttons below */
  .check-form { padding: var(--s2) var(--s3) var(--s4); }
  .check-head { display: none; }
  .check-q { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; padding: var(--s3) 0; }
  .check-q:first-of-type { border-top: 0; }
  .check-text { grid-column: 1 / -1; padding: 0; font-size: 16px; }
  .check-q label { height: auto; }
  .check-q label::after { display: none; }
  .check-q .opt {
    position: static; width: 100%; height: auto; overflow: visible; clip-path: none; white-space: normal;
    display: block; padding: 9px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
    font-size: 13px; line-height: 1.2; text-align: center; color: var(--muted);
  }
  .check-q label:has(input:checked) .opt { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
  .check-q label:has(input:focus-visible) .opt { outline: 2px solid var(--accent); outline-offset: 2px; }
}
