/* Rose Practice Solutions website, v2.
   Values come from tokens.css. Rules: brand/design-system/design-guideline.md (v2.1).
   Checked by brand/design-system/check/rose-design-check.mjs.
   Class list with usage examples: site-v2/_partials.md. Live reference: /components. */

@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url("/assets/type/InstrumentSerif-Regular-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/type/InstrumentSerif-Italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-display: swap; src: url("/assets/type/PlusJakartaSans-latin.woff2") format("woff2"); }

:root {
  /* cream at reduced strength, for hairlines and outlines on forest */
  --line-on-strong: rgba(251, 248, 242, .22);
  --outline-on-strong: rgba(251, 248, 242, .6);
  --header-h: 104px;
  --section-gap: var(--space-24);
  /* cream at 4%, the quiet fill of an empty slot on forest */
  --fill-on-strong: rgba(251, 248, 242, .04);
}

@media (max-width: 768px) {
  :root { --section-gap: var(--space-16); }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-text);
  font-size: var(--text-body-m);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.on-strong :focus-visible {
  outline: 2px solid var(--focus-ring-on-strong);
  outline-offset: 2px;
}

/* a light card inside a forest panel goes back to the light ring */
.on-strong .on-light :focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 30;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--action-primary-bg);
  color: var(--action-primary-text);
  font-size: var(--text-body-s);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: var(--space-4); }

/* ---------- type ---------- */

.display-xl, .display-l, .display-m, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

.display-xl { font-size: var(--text-display-xl); line-height: 1.02; letter-spacing: -.01em; }
.display-l { font-size: var(--text-display-l); line-height: var(--leading-display); letter-spacing: -.01em; }
.display-m { font-size: var(--text-display-m); line-height: 1.1; }
.h2 { font-size: var(--text-h2); line-height: 1.15; }

.h3 {
  font-family: var(--font-text);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
}

.body-l { font-size: var(--text-body-l); }
.body-s { font-size: var(--text-body-s); line-height: 1.5; }
.muted { color: var(--text-muted); }
/* keeps a hyphenated phrase on one line, so a headline never breaks at the hyphen ("follow-up,") */
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Tiny meta only: dates, areas, legal. Never above a headline. */
.meta {
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.label {
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  color: var(--text-muted);
}

/* The italic word a person changed: deep rose on light, light rose on forest. */
h1 em, h2 em, h3 em, .tagline em, .signed-change em { color: var(--accent-italic); }
.on-strong h1 em, .on-strong h2 em, .on-strong .tagline em { color: var(--accent-italic-on-strong); }
.on-strong .on-light h2 em, .on-strong .on-light h3 em, .on-strong .on-light .signed-change em { color: var(--accent-italic); }

.signed-change em {
  font-family: var(--font-display);
  font-size: 1.2em;
  line-height: 1;
}

/* A name as a signature. Markup: <span class="signature"><em>Follow-up</em></span> */
.signature {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.15;
  color: var(--accent-italic);
}

.on-strong .signature { color: var(--accent-italic-on-strong); }
.on-strong .on-light .signature { color: var(--accent-italic); }

.tagline {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.15;
}

/* A fact we don't have yet, shown in brackets on the page. */
.placeholder {
  display: grid;
  place-items: center;
  padding: var(--space-3);
  border: var(--border-w) dashed var(--border-input);
  border-radius: var(--radius-input);
  background: var(--surface-panel);
  color: var(--text-muted);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--maxw-content) + 2 * var(--margin-outer));
  margin-inline: auto;
  padding-inline: var(--margin-outer);
}

.section { padding-block: var(--section-gap); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-top: 0; }
/* a band that sits between two sections of the same colour: their own padding already spaces it */
.section--flush { padding-block: 0; }

/* Section heads are centred site-wide: the headline, then its intro under it, both on one centre line. The headline
   runs to 760px and balances its lines; the intro is held to a prose measure so it never runs long. .head-row is the
   same head (its name is older; it no longer splits headline and sentence into two columns). Page heads and heroes
   stay left. Markup: (.section-head | .head-row) > h2 (+ p) */
.section-head, .head-row {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
  text-align: center;
}
.section-head > :is(h2, h3), .head-row > :is(h2, h3) { max-width: 100%; text-wrap: balance; }
.section-head > p, .head-row > p { max-width: var(--maxw-prose); color: var(--text-muted); text-wrap: pretty; }
.section-head p { font-size: var(--text-body-l); }
.section-head--wide { max-width: 820px; }
@media (max-width: 768px) { .section-head, .head-row { gap: var(--space-4); margin-bottom: var(--space-8); } }

.page-head { padding-block: var(--space-16) var(--space-12); }
.page-head .section-head { justify-items: start; max-width: 820px; margin-inline: 0; margin-bottom: 0; text-align: left; }

/* Two columns that stack under 1024px. --lead puts the wider column first. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: var(--space-12) var(--space-16);
}

.split--lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--center { align-items: center; }
.split-aside { display: grid; gap: var(--space-6); justify-items: start; }

@media (min-width: 1025px) {
  .split-aside--sticky { position: sticky; top: calc(var(--header-h) + var(--space-8)); }
}

@media (max-width: 1024px) {
  .split, .split--lead, .split--even { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}

.stack { display: grid; gap: var(--space-4); justify-items: start; }
.stack--loose { gap: var(--space-8); }

/* ---------- header and nav ---------- */

/* Sticky. Its mark is on every screen. The motif textures on page surfaces don't count against it
   (guideline v2.3); see "texture" below. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface-page);
  border-bottom: var(--border-w) solid var(--border-quiet);
}

.site-head .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  color: var(--text-body);
  text-decoration: none;
}

.brand-mark { flex: none; width: 36px; height: 36px; }
/* the full lockup with its strap: 200px wide, so the strap stays readable; a little smaller only below 360px */
.brand-lockup { flex: none; width: 200px; height: auto; }
@media (max-width: 359px) { .brand-lockup { width: 168px; } }
.brand-word { font-family: var(--font-display); font-size: 28px; line-height: 1; }

.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav-links { display: flex; align-items: center; gap: var(--space-8); }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-block: var(--border-w-strong) solid transparent;
  font-size: var(--text-body-s);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-link:hover { color: var(--text-body); }

.nav-link[aria-current="page"] {
  color: var(--text-body);
  border-bottom-color: var(--border-strong);
}

/* Services opens a submenu: the three services, then the add-ons and projects page. Markup: li.nav-item.nav-item--sub > a.nav-link + button.nav-sub-toggle[aria-expanded][aria-controls] + ul.nav-sub > li > a.nav-sub-link. From 769px it is a card under the link, shown on hover, on keyboard focus, or by the button (.is-open); Escape shuts it (.is-shut). On phones the four links sit under Services, always shown. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-sub-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 44px;
  margin-left: var(--space-1);
  border: 0;
  border-radius: var(--radius-input);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.nav-sub-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) var(--ease-standard); }
.nav-sub-toggle:hover { color: var(--text-body); }
.nav-sub-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.nav-sub {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--space-4));
  z-index: 1;
  display: grid;
  min-width: 288px;
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  border: var(--border-w) solid var(--border-quiet);
  border-radius: var(--radius-card);
  background: var(--surface-page);
  box-shadow: var(--shadow-3);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), visibility var(--dur-fast);
}
.nav-item:hover > .nav-sub, .nav-item:focus-within > .nav-sub, .nav-item.is-open > .nav-sub { visibility: visible; opacity: 1; transform: none; }
.nav-item.is-shut > .nav-sub { visibility: hidden; opacity: 0; transform: translateY(-4px); }
.nav-item:hover:not(.is-shut) .nav-sub-toggle svg, .nav-item:focus-within:not(.is-shut) .nav-sub-toggle svg, .nav-item.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-input);
  font-size: var(--text-body-s);
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.nav-sub-link:hover, .nav-sub-link:focus-visible, .nav-sub-link[aria-current="page"] { background: var(--surface-panel); }
.nav-sub-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .nav-sub, .nav-sub-toggle svg, .nav-sub-link { transition: none; } }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-input);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
}

.nav-toggle svg, .arrow, .icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle svg { width: 24px; height: 24px; }
.arrow { flex: none; width: 18px; height: 10px; }
.icon { flex: none; width: 20px; height: 20px; }

/* Phones without JavaScript: no toggle, the links sit in a row under the brand. */
@media (max-width: 768px) {
  .site-head .wrap { flex-wrap: wrap; row-gap: 0; }
  .nav { flex-wrap: wrap; width: 100%; gap: var(--space-2) var(--space-5); padding-bottom: var(--space-4); }
  .nav-links { flex-wrap: wrap; gap: 0 var(--space-5); }
  .js .site-head .wrap { flex-wrap: nowrap; }
  .js .nav-toggle { display: grid; }

  .js .nav {
    flex-wrap: nowrap;
    width: auto;
    gap: var(--space-8);
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: var(--space-10) var(--margin-outer) var(--space-8);
    background: var(--surface-page);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur-med) var(--ease-standard), visibility var(--dur-med);
  }

  .nav-open .nav { visibility: visible; opacity: 1; }
  .nav-open body { overflow: hidden; }
  .js .nav-links { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: var(--space-3); }

  .js .nav-link {
    font-family: var(--font-display);
    font-size: var(--text-display-m);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-body);
  }

  .js .nav .btn { width: 100%; }

  /* the submenu on phones: no card and no button, the four links sit under Services */
  .nav-item { flex-wrap: wrap; }
  .nav-sub-toggle { display: none; }
  .nav-sub, .nav-item.is-shut > .nav-sub { position: static; min-width: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; visibility: inherit; opacity: 1; transform: none; transition: none; }
  .nav-sub-link { padding-inline: 0; }
  .nav-sub-link:hover, .nav-sub-link:focus-visible, .nav-sub-link[aria-current="page"] { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
  .js .nav-sub { margin-top: var(--space-2); padding-left: var(--space-4); border-left: var(--border-w) solid var(--border-quiet); }
  .js .nav-sub-link { font-size: var(--text-body-l); font-weight: 500; }
}

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) 28px;
  border: var(--border-w) solid var(--action-primary-bg);
  border-radius: var(--radius-pill);
  background: var(--action-primary-bg);
  color: var(--action-primary-text);
  font-family: var(--font-text);
  font-size: var(--text-body-s);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}

.btn:hover { filter: brightness(.92); }
.btn:active { transform: scale(.98); }

/* Hover: a wash blooms out from where the pointer came in, the pill lifts a little, and the arrow
   passes through. Opacity and transform only; --bx and --by are set by site.js and default to the centre. */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  width: 240%;
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.btn--on-strong::before, .closing-panel .btn::before, .btn--secondary::before { background: var(--sage-mist); }
.btn[disabled]::before { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter var(--dur-fast) var(--ease-standard), transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
  .btn::before { transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-fast) var(--ease-standard); }
  .btn:hover, .btn:focus-visible { filter: none; transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
  .btn[disabled]:hover { transform: none; box-shadow: none; }
  .btn:hover .arrow, .btn:focus-visible .arrow { animation: arrow-pass var(--dur-slow) var(--ease-out) both; transform: none; }
}
@keyframes arrow-pass {
  0% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(12px); opacity: 0; }
  55% { transform: translateX(-12px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* The guideline's sage fill with cream text measures 2.15:1, so a sent button dims instead. */
.btn[disabled] {
  opacity: .55;
  cursor: default;
  filter: none;
  transform: none;
}

.btn--small { min-height: 44px; padding: var(--space-2) var(--space-5); }

.btn--on-strong {
  border-color: var(--surface-page);
  background: var(--surface-page);
  color: var(--forest);
}

/* Secondary: the outlined button that replaces standalone text links ("See…", "How it works", "Back to…").
   Cream fill, 2px forest outline, forest label (8.7:1 on cream); the hover wash is sage mist (forest on sage mist 7.55:1).
   On forest it turns transparent with a cream outline and label (cream on forest 8.7:1), and the wash is ink
   (cream on ink 13.78:1). Markup: a.btn.btn--secondary[.btn--small] > text + svg.arrow */
.btn--secondary {
  border: var(--border-w-strong) solid var(--border-strong);
  background: var(--surface-page);
  color: var(--forest);
}
.btn--small.btn--secondary { padding-block: calc(var(--space-2) - 1px); }
.btn--secondary:hover { filter: none; }
.on-strong .btn--secondary { border-color: var(--text-on-strong); background: transparent; color: var(--text-on-strong); }
.on-strong .btn--secondary::before { background: var(--ink); }
.on-strong .on-light .btn--secondary { border-color: var(--border-strong); background: var(--surface-page); color: var(--forest); }
.on-strong .on-light .btn--secondary::before { background: var(--sage-mist); }

/* ---------- text links ---------- */
/* One treatment for every link that sits in a sentence: .inline-link, links in running text (FAQ answers, Q&A, prose,
   notes on the hero), the links in the who-we-work-with statement, and the footer. A link that stands on its own is
   a .btn.btn--secondary (see buttons), never a bare text link. At rest a link in running text keeps a 1px underline
   in label sage (cream at 60% on forest), so it never relies on colour alone (WCAG 1.4.1); the footer links have none.
   On hover and keyboard focus a 2px line in forest (cream on forest) draws in from the left over the rest underline
   and retracts on leave. Under reduced motion tokens.css cuts the transition, so the line is simply there.
   The line is a background image so it follows a link across line breaks. Gradients aren't allowed, so it is a
   one-colour SVG (--line-forest, --line-cream) stretched by background-size. Context sets custom properties:
   --link-line (the image), --link-rest-color, --link-span (the line's full width), and the pair
   --link-offset / --link-y, which put the 2px line over the 1px rest underline. An inline link's background ends at
   the font's descent (Plus Jakarta Sans .22em, Instrument Serif .31em under the baseline), so the underline sits
   1.5px above that. A 44px flex link (the footer, .helper) centres its text, and Plus Jakarta Sans puts
   the baseline .41em under the centre at any line height, so --link-flex-y measures from there. */
:root {
  --line-forest: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Crect width='1' height='1' fill='%233F4B39'/%3E%3C/svg%3E");
  --line-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Crect width='1' height='1' fill='%23FBF8F2'/%3E%3C/svg%3E");
}
.on-strong { --link-line: var(--line-cream); --link-rest-color: var(--outline-on-strong); }
.on-strong .on-light { --link-line: var(--line-forest); --link-rest-color: var(--text-muted); }

:where(.inline-link, .faq-a a, .qa-item a, .prose a:not([class]), .who-statement a, .hero-note a, .hero-capture-help a, .hero-capture-status a, .foot-links a, .foot-contact a, .foot-legal a, .foot-legal .motion-toggle) {
  text-decoration-line: underline;
  text-decoration-color: var(--link-rest-color, var(--text-muted));
  text-decoration-thickness: 1px;
  text-underline-offset: var(--link-offset, calc(.22em - 1.5px));
  background-image: var(--link-line, var(--line-forest));
  background-repeat: no-repeat;
  background-position: 0 var(--link-y, 100%);
  --link-flex-y: calc(50% + .41em + 3.75px);
  background-size: 0% 2px;
  transition: background-size var(--dur-med) var(--ease-standard);
}
:where(.inline-link, .faq-a a, .qa-item a, .prose a:not([class]), .who-statement a, .hero-note a, .hero-capture-help a, .hero-capture-status a, .foot-links a, .foot-contact a, .foot-legal a, .foot-legal .motion-toggle):is(:hover, :focus-visible) {
  background-size: var(--link-span, 100%) 2px;
}

.btn .arrow { transition: transform var(--dur-fast) var(--ease-standard); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }

/* ---------- chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border: var(--border-w) solid transparent;
  border-radius: var(--radius-pill);
  background: var(--surface-panel);
  color: var(--forest);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* on a sage mist or field surface */
.chip--page { background: var(--surface-page); }
/* the current state, or the one that matters */
.chip--strong { background: var(--surface-strong); color: var(--text-on-strong); }
/* not reached yet */
.chip--todo { border-color: var(--border-input); background: transparent; color: var(--text-muted); }
/* the visible "Sample" label every made-up number, time or person carries */
.chip--sample { border-color: var(--border-input); background: var(--surface-page); color: var(--text-muted); }
.chip .icon { width: 14px; height: 14px; }

/* ---------- hero ---------- */
/* Full-bleed forest under the header. Markup: section.hero > .wrap > .hero-panel.on-strong > .hero-copy + figure. */

.hero { background: var(--surface-strong); color: var(--text-on-strong); overflow: hidden; }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: var(--space-12) var(--space-16);
  padding-block: clamp(56px, 7vw, 104px);
}

.hero-copy { display: grid; justify-items: start; gap: var(--space-6); min-width: 0; }
.hero-copy h1 { max-width: 11em; }
.hero-intro { max-width: 30em; font-size: var(--text-body-l); color: var(--sage-mist); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-4); }
.hero-note { font-size: var(--text-body-s); color: var(--sage-mist); }
.hero-note a { color: var(--text-on-strong); }
.hero-figure { display: grid; gap: var(--space-4); min-width: 0; }
.hero-caption { font-size: var(--text-label); color: var(--sage-mist); }

/* Email capture (homepage hero, and again in the closing panel). Markup: form.hero-capture[data-capture=hero|closing][data-done=<note id>]
   > input[type=hidden][name=form][value=hero] + label.hero-capture-label + .hero-capture-row (input.input + button.btn.btn--on-strong)
   + p.field-error + p.hero-capture-help + p.hero-capture-status + .hp + hidden data-track inputs; ids are per form (hero-*, closing-*).
   On success site.js swaps it for its .signed-note.hero-done. On forest the label is cream and the ring is --focus-ring-on-strong (from .on-strong);
   an error keeps the aria-invalid border, and its message is cream because deep rose on forest can't be read. */
.hero-capture { display: grid; gap: var(--space-2); width: 100%; max-width: 34rem; margin-top: var(--space-4); }
.hero-capture-label { font-size: var(--text-label); font-weight: 600; line-height: 1.4; letter-spacing: var(--tracking-label); color: var(--text-on-strong); }
.hero-capture-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-capture-row .input { flex: 1 1 15rem; min-width: 0; }
.hero-capture-row .btn { flex: none; }
.hero-capture .input[aria-invalid="true"] { padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px); border-width: var(--border-w-strong); }
.hero-capture .field-error, .hero-capture-status { font-size: var(--text-body-s); font-weight: 600; line-height: 1.4; color: var(--text-on-strong); }
.hero-capture-status:empty { display: none; }
.hero-capture-help { font-size: var(--text-caption); line-height: 1.4; color: var(--sage-mist); }
.hero-capture-help a, .hero-capture-status a { color: var(--text-on-strong); }
/* the signed note that replaces it (hero and closing): its line, then the button to the full form, then the sign-off */
.hero-done { display: grid; justify-items: start; gap: var(--space-3); max-width: 34rem; margin-top: var(--space-4); padding: var(--space-6); border: var(--border-w) solid var(--line-on-strong); border-radius: var(--radius-card); color: var(--sage-mist); }
.hero-done[hidden] { display: none; }
.hero-done-title { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.15; color: var(--text-on-strong); }
.hero-done-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.hero-done-by span { font-size: var(--text-label); font-weight: 600; letter-spacing: var(--tracking-label); color: var(--sage-mist); }
/* Without JavaScript the API sends the visitor back to /?sent=1#hero-sent or /?sent=0#hero-not-sent. */
.hero-copy .hero-result { display: none; }
.hero-copy .hero-result:target { display: grid; }
.js .hero-copy .hero-result:target { display: none; }
.hero-copy:has(#hero-sent:target) .hero-capture { display: none; }
.js .hero-copy:has(#hero-sent:target) .hero-capture { display: grid; }
@media (max-width: 480px) {
  .hero-capture-row .btn { flex: 1 1 100%; }
}
/* in the closing panel the capture follows the panel's own rhythm and its lines take the form's width */
.closing-copy :is(.hero-capture, .hero-done) { margin-top: 0; }
.closing-copy :is(.hero-capture, .hero-done) p { max-width: none; }

/* The hero letter (homepage): a sheet of paper on the forest panel, from the homepage redesign. The paper is a baked
   bitmap (assets/img/paper-letter.webp: a scanned-fibre texture with cockle, edge wear, light falloff and a flattened
   dog-ear crease; no CSS gradient), and the printed type is multiplied into its grain. It rests at -1.5deg on an ink
   shadow with a lifted lower-right corner. The forest surface swallows the --shadow-1..3 scale, so the letter rig, and
   only the letter rig, uses the three on-forest tokens (--shadow-on-strong, -lift, -contact). The logo mark sits top
   right as a letterhead; "The founders" is deep rose (.on-light inside .on-strong).
   At rest (no JavaScript, reduced motion, paused, phones and tablets up to 900px, GSAP missing) this is all there is.
   On wider screens site.js ("the hero letter") builds the envelope, its tear strip and two shadows (aria-hidden,
   classes .env-*), plays the delivery once with GSAP and removes them: the envelope drops in from close to the camera,
   lands with a short slide, its tear strip peels off in six hinged segments, letter and envelope are pulled apart, the
   envelope is tossed off to the right and the letter is set down. html.will-deliver (set in the head, only when the
   delivery will run) holds the rig invisible until it starts, 2.5s at most.
   Markup: .note-stage > .note-rig > .note-sheet > span.note-shade[aria-hidden] + article.note-letter.on-light
   (img.note-mark + p.note-hello + p.note-body + p.note-sign > em.signature + p.note-meta) */
.note-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; width: 100%; max-width: 440px; }
.note-rig { position: relative; width: 100%; }
.note-sheet { position: relative; z-index: 1; transform: rotate(-1.5deg); }
.note-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: var(--shadow-on-strong); }
/* the lifted corner: a second, offset shadow under the lower right only */
.note-shade::after { content: ""; position: absolute; right: 6px; bottom: 6px; z-index: -1; width: 46%; height: 30%; box-shadow: var(--shadow-on-strong-lift); rotate: 3deg; }
.note-letter {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-8) var(--space-6);
  background: var(--surface-page) url("/assets/img/paper-letter.webp") center / 100% 100% no-repeat;
  color: var(--text-body);
}
.note-letter > * { position: relative; mix-blend-mode: multiply; }
.note-mark { position: absolute; top: var(--space-6); right: var(--space-6); width: 28px; height: 28px; mix-blend-mode: normal; }
.note-hello { padding-right: var(--space-10); font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.1; }
.note-body { font-family: var(--font-display); font-size: var(--text-h3); line-height: 1.38; text-wrap: pretty; }
.note-sign { margin-top: var(--space-2); }
.note-sign .signature { font-size: var(--text-h2); line-height: 1; rotate: -2deg; transform-origin: left center; }
.note-meta { font-size: var(--text-caption); font-weight: 500; line-height: 1.4; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 640px) {
  .note-letter { padding: var(--space-6); }
  .note-hello { padding-right: var(--space-8); }
}

/* the delivery's decoration: built by site.js, only while the delivery plays */
.env-shadow, .env-front, .env-strip { position: absolute; pointer-events: none; }
.env-shadow { inset: var(--env-inset); }
.env-shadow--soft { border-radius: var(--radius-input); background: var(--ink); filter: blur(26px); opacity: 0; }
.env-shadow--contact { box-shadow: var(--shadow-on-strong-contact); opacity: 0; }
.env-front { z-index: 2; inset: var(--env-inset); }
.env-paper { position: absolute; inset: 0; background: var(--sage-mist) url("/assets/img/paper-envelope.webp") 0 0 / var(--env-w) var(--env-h) no-repeat; }
.env-print { position: absolute; inset: 0; mix-blend-mode: multiply; }
.env-return { position: absolute; left: 22px; top: 40px; display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.env-return img { width: 18px; height: 18px; mix-blend-mode: normal; }
.env-print em { position: absolute; left: 50%; top: 56%; translate: -50% -50%; rotate: -3deg; font-family: var(--font-display); font-size: var(--text-h2); line-height: 1; color: var(--accent-italic); white-space: nowrap; }
.env-fibre { position: absolute; left: 0; top: 0; width: 100%; height: 40px; overflow: visible; opacity: 0; }
.env-fibre path { fill: none; stroke: var(--cream); stroke-opacity: .85; stroke-width: 1.2; }
.env-strip { z-index: 3; }
.env-seg-pivot { will-change: transform; }
.env-seg { position: absolute; top: 0; height: 100%; background: var(--sage-mist) url("/assets/img/paper-envelope.webp") no-repeat; background-size: var(--env-w) var(--env-h); }
/* the envelope's stamp: the bloom on forest with a perforated edge (assets/img/stamp.svg) */
.env-stamp { position: absolute; right: 22px; top: 36px; width: 46px; height: 56px; background: url("/assets/img/stamp.svg") center / contain no-repeat; rotate: 2deg; }
/* held for the delivery: the rig waits, invisible, for site.js (2.5s at most, see the head script) */
.will-deliver .note-rig { opacity: 0; }

/* The homepage hero's opening ([data-hero-intro] on its div.arc, once a load; a written exception to "hero headlines
   don't animate", homepage only). About 2.9s in all, with the letter's delivery:
     0s      the headline rises 16px into place from 30% (--rest-bloom, --ease-out); it is painted from the first frame,
             so it is the page's first and largest paint and reads by about .6s
     0s      the window opens from the bloom's centre (55.6% across and down the crop) ring by ring: five beats of
             --dur-med, each easing out, from a first ring that is open on the first frame to the whole disc (1.25s)
     .15s    the intro line rises 8px from 50% (--rest-bloom)
     .25s    "know", the headline's one italic word, writes in left to right like a signature (--rest-bloom)
     .9s     the sage crescent under the disc edge draws out from 60% to its two points (--dur-slow x 2, --ease-standard)
     ~.1s    on screens wider than 900px the letter is delivered (site.js, GSAP, about 2.9s; see "The hero letter"),
             once the type and the paper are in (1.2s at most)
   The email capture never moves: it is usable from the first frame. Every start state lives only inside a CSS
   animation with fill-mode backwards, so when the opening ends, never runs or is cut short, the hero is simply
   complete; nothing is hidden at rest except the letter rig while html.will-deliver holds it. Only transform,
   translate, opacity and clip-path change, so nothing shifts (no layout shift). Under reduced motion, without
   JavaScript (html.js) or with animations paused (html.motion-paused) none of it runs; site.js adds .is-introduced once
   the crescent has drawn out and the letter has landed, or when the visitor pauses or plays animations, so the opening
   never replays in the same visit to the page. The window and the crescent are the motif's own artwork and the disc
   edge's own fill: no recolour, and the window's size and place never change. */
@keyframes hero-rise {
  from { opacity: var(--rise-from, .3); translate: 0 var(--rise, 16px); }
}
@keyframes hero-write {
  from { clip-path: inset(-20% 100% -20% -5%); }
  to { clip-path: inset(-20% -10% -20% -5%); }
}
@keyframes hero-window {
  0% { clip-path: circle(10% at 55.6% 55.6%); animation-timing-function: var(--ease-out); }
  20% { clip-path: circle(20% at 55.6% 55.6%); animation-timing-function: var(--ease-out); }
  40% { clip-path: circle(30% at 55.6% 55.6%); animation-timing-function: var(--ease-out); }
  60% { clip-path: circle(40% at 55.6% 55.6%); animation-timing-function: var(--ease-out); }
  80% { clip-path: circle(49% at 55.6% 55.6%); animation-timing-function: var(--ease-out); }
  100% { clip-path: circle(58% at 55.6% 55.6%); }
}
@keyframes hero-edge {
  from { transform: scaleX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .js:not(.motion-paused) [data-hero-intro]:not(.is-introduced) .hero h1 { animation: hero-rise var(--rest-bloom) var(--ease-out) backwards; }
  /* the homepage drops the generic hero-copy rise (below): its intro line rises as part of the opening and the email
     capture stays put from the first frame. Not gated on .is-introduced, so nothing restarts when the opening ends. */
  .js [data-hero-intro] .hero-copy > :not(h1) { animation: none; }
  .js:not(.motion-paused) [data-hero-intro]:not(.is-introduced) .hero h1 em { animation: hero-write var(--rest-bloom) var(--ease-out) var(--dur-med) backwards; }
  .js:not(.motion-paused) [data-hero-intro]:not(.is-introduced) .hero-intro { --rise: 8px; --rise-from: .5; animation: hero-rise var(--rest-bloom) var(--ease-out) var(--dur-fast) backwards; }
  .js:not(.motion-paused) [data-hero-intro]:not(.is-introduced) .bloom-window { animation: hero-window calc(var(--dur-med) * 5) linear backwards; }
  .js:not(.motion-paused) [data-hero-intro]:not(.is-introduced)::after { transform-origin: 60% 0; animation: hero-edge calc(var(--dur-slow) * 2) var(--ease-standard) calc(var(--rest-bloom) * 1.5) backwards; }
}

/* A page hero without a product view: one column of copy. */
.hero-panel--plain { grid-template-columns: minmax(0, 1fr); }
.hero-panel--plain .hero-copy h1 { max-width: 16em; }

/* the rings around the follow-up page's ringing call */
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ring, 280px);
  height: var(--ring, 280px);
  margin: calc(var(--ring, 280px) / -2) 0 0 calc(var(--ring, 280px) / -2);
  border: var(--border-w) solid var(--line-on-strong);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* the concept's 3s ping, in token multiples */
  .ring--ping { animation: ping calc(5 * var(--rest-bloom)) var(--ease-out) infinite; }
  .ring--ping + .ring--ping { animation-delay: calc(-2.5 * var(--rest-bloom)); }
  .js .hero-copy > :not(h1) { animation: rise var(--dur-slow) var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: calc(2 * var(--stagger-ring)); }
  .js .hero-copy > :nth-child(n+3) { animation-delay: calc(4 * var(--stagger-ring)); }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .hero-panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .hero-panel { padding-block: var(--space-12); gap: var(--space-10); }
}

/* ---------- product components ---------- */
/* Every one is HTML and CSS. Each carries <span class="chip chip--sample">Sample</span>
   when it shows a number, a time or a person who isn't real. */

/* The frame a product view sits in. */
.screen {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  --screen-pad: var(--space-6);
  width: 100%;
  max-width: 520px;
  padding: var(--screen-pad);
  border: var(--border-w) solid var(--border-quiet);
  border-radius: var(--radius-card);
  background: var(--surface-page);
  color: var(--text-body);
  box-shadow: var(--shadow-2);
  font-size: var(--text-body-s);
  line-height: 1.5;
}

.screen--raised { box-shadow: var(--shadow-3); }
.screen--flat { box-shadow: none; }
.screen--wide { max-width: 760px; }

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-w) solid var(--border-quiet);
}

.screen-title { font-size: var(--text-body-s); font-weight: 600; }

/* a browser bar: sits at the top of a .screen, bleeds to its edges */
.screen-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: calc(-1 * var(--screen-pad)) calc(-1 * var(--screen-pad)) 0;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-w) solid var(--border-quiet);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--surface-panel);
}

.screen-url {
  flex: 1;
  min-width: 0;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--surface-page);
  color: var(--text-muted);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* grey bars that stand in for content we aren't showing */
.skeleton { display: grid; gap: var(--space-2); }
.skeleton span { display: block; height: 8px; border-radius: var(--radius-pill); background: var(--surface-panel); }
.skeleton span:nth-child(2) { width: 82%; }
.skeleton span:nth-child(3) { width: 56%; }

/* --- search result --- */

.serp { display: grid; gap: var(--space-4); }

.serp-query {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: var(--border-w) solid var(--border-input);
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.serp-query .icon { color: var(--text-muted); }

.serp-local {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border-radius: var(--radius-input);
  background: var(--surface-panel);
}

.serp-pin {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-input);
  background: var(--surface-page);
  color: var(--forest);
}

.serp-name { font-size: var(--text-body-m); font-weight: 600; line-height: 1.3; }
.serp-kind { color: var(--text-muted); }
.serp-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.serp-result { display: grid; gap: var(--space-1); }
.serp-url { font-size: var(--text-caption); font-weight: 500; color: var(--text-muted); overflow-wrap: anywhere; }
.serp-title { font-size: var(--text-body-m); font-weight: 600; line-height: 1.35; color: var(--forest); text-decoration: underline; text-decoration-color: var(--border-quiet); text-underline-offset: 3px; }
.serp-snippet { color: var(--text-muted); }

/* --- ad card --- */

.ad-card { display: grid; gap: var(--space-2); }
.ad-tag { font-size: var(--text-caption); font-weight: 600; line-height: 1.4; }
.ad-url { font-size: var(--text-caption); font-weight: 500; color: var(--text-muted); overflow-wrap: anywhere; }
.ad-title { font-size: var(--text-h3); font-weight: 600; line-height: 1.3; color: var(--forest); }
.ad-text { color: var(--text-body); }
.ad-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }

/* the keyword an ad or a page was written for */
.keyword-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding-top: var(--space-4);
  border-top: var(--border-w) solid var(--border-quiet);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
}

/* --- landing page thumbnail --- */

.lp-thumb { display: grid; gap: var(--space-4); }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: var(--space-4); align-items: center; }
.lp-copy { display: grid; gap: var(--space-2); }
.lp-title { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.1; }
.lp-photo { aspect-ratio: 4 / 5; }

.lp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-input);
  background: var(--surface-panel);
}

.lp-field {
  padding: var(--space-2) var(--space-3);
  border: var(--border-w) solid var(--border-input);
  border-radius: var(--radius-input);
  background: var(--surface-page);
  color: var(--text-muted);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.4;
}

.lp-button {
  grid-column: 1 / -1;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  color: var(--text-on-strong);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* --- lead card --- */

.lead-card { display: grid; gap: var(--space-4); }
.lead-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.lead-title { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-body-s); font-weight: 600; }
.lead-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-strong); }
.lead-time { font-size: var(--text-label); font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lead-name { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.1; }
.lead-want { color: var(--text-muted); }

.lead-source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-input);
  background: var(--surface-panel);
}

.lead-source dt { font-size: var(--text-label); font-weight: 600; line-height: 1.6; color: var(--text-muted); }
.lead-source dd { font-weight: 500; overflow-wrap: anywhere; }

/* --- status: new, called, consult booked --- */

.status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.status-step { display: inline-flex; align-items: center; gap: var(--space-2); }
.status-step + .status-step::before { content: ""; width: 16px; height: 1px; background: var(--fill-quiet); }
/* default step: not reached. is-done: behind us. is-current: where the lead is now. */
.status-step .chip { border-color: var(--border-input); background: transparent; color: var(--text-muted); }
.status-step.is-done .chip { border-color: transparent; background: var(--surface-panel); color: var(--forest); }
.status-step.is-current .chip { border-color: transparent; background: var(--surface-strong); color: var(--text-on-strong); }

@media (max-width: 480px) {
  .status, .status-step { gap: var(--space-1); }
  .status-step + .status-step::before { width: 8px; }
  .status-step .chip { padding-inline: var(--space-2); }
  .report-top { grid-template-columns: minmax(0, 1fr); }
  .report-chart svg { max-width: 220px; }
}

/* --- call and text thread --- */

.thread { display: grid; gap: var(--space-3); }

.thread-call {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-input);
  background: var(--surface-panel);
}

.thread-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-strong); color: var(--text-on-strong); }
.thread-who { font-weight: 600; }
.thread-meta { font-size: var(--text-caption); font-weight: 500; line-height: 1.4; color: var(--text-muted); }

.bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  background: var(--surface-panel);
  color: var(--text-body);
}

.bubble--out { justify-self: end; background: var(--surface-strong); color: var(--text-on-strong); }
.bubble--in { justify-self: start; }
.thread .thread-meta--out { justify-self: end; }

/* --- schedule row --- */

.schedule { display: grid; gap: var(--space-2); }
.schedule-day { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-2); }
.schedule-day strong { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.1; }

.schedule-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
}

.schedule-time { font-size: var(--text-label); font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.schedule-slot {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-input);
  background: var(--surface-panel);
  color: var(--text-muted);
  font-size: var(--text-label);
  font-weight: 500;
}

.schedule-row--open .schedule-slot { border: var(--border-w) dashed var(--border-input); background: transparent; }

.schedule-row--booked .schedule-slot {
  display: grid;
  gap: 2px;
  padding-block: var(--space-3);
  background: var(--surface-strong);
  color: var(--text-on-strong);
  font-size: var(--text-body-s);
  font-weight: 600;
  box-shadow: var(--shadow-2);
}

.schedule-row--booked .schedule-slot small { font-size: var(--text-caption); font-weight: 500; color: var(--sage-mist); }
.schedule-row--booked .schedule-time { color: var(--text-body); }

/* --- report line and report panel --- */

.report-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border-radius: var(--radius-input);
  background: var(--surface-panel);
}

.report-line-num { grid-row: 1 / span 2; font-family: var(--font-display); font-size: var(--text-h2); line-height: 1; color: var(--forest); white-space: nowrap; }
.report-line-what { font-weight: 600; }
.report-line p { grid-column: 2; }

.report-panel { display: grid; gap: var(--space-4); }
/* the three numbers with the small chart beside them */
.report-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: var(--space-6); }
.report-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.stat { display: grid; gap: var(--space-1); align-content: start; }
.stat-num { font-family: var(--font-display); font-size: var(--text-display-m); line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--text-caption); font-weight: 500; line-height: 1.4; color: var(--text-muted); }

/* a small chart, per board D12: forest for the thing that matters, sage for the rest, no rose */
.report-chart { display: grid; gap: var(--space-2); }
.report-chart svg { width: 100%; height: auto; }
.chart-axis { stroke: var(--fill-quiet); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-bar { fill: var(--fill-quiet); }
.chart-bar--key, .chart-dot { fill: var(--forest); }
/* Labels are HTML under the chart, never SVG text, so they stay 13px on a phone.
   One span per bar, in bar order; or --ends for the first and last point of a line. */
.chart-labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-1); font-size: var(--text-label); font-weight: 500; line-height: 1.3; color: var(--text-muted); text-align: center; }
.chart-labels .is-key { color: var(--forest); font-weight: 600; }
.chart-labels b { display: block; font-weight: 600; }
.chart-labels--ends { display: flex; justify-content: space-between; text-align: left; }
.chart-caption { font-size: var(--text-label); font-weight: 600; line-height: 1.4; color: var(--text-muted); }

.didnt-work {
  display: grid;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: var(--border-w) solid var(--border-quiet);
}

.didnt-work-title { font-size: var(--text-label); font-weight: 600; line-height: 1.4; letter-spacing: var(--tracking-label); color: var(--text-muted); }

/* --- signed change feed, per board B5 --- */

.feed > li, .feed > .signed-change {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: var(--border-w) solid var(--border-quiet);
}

.feed > li:first-child { padding-top: 0; }
.feed > li:last-child { padding-bottom: 0; border-bottom: 0; }

.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--text-on-strong);
  font-size: var(--text-label);
  font-weight: 600;
}

.avatar--small { width: 28px; height: 28px; font-size: 11px; }

.feed-body { display: grid; justify-items: start; gap: var(--space-2); }
.feed-name { font-weight: 600; line-height: 1.3; }
.feed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.feed-note { font-size: var(--text-caption); line-height: 1.4; color: var(--text-muted); }

/* "Made by [Name] for [Practice name], [date]" */
.signed-footer { font-size: var(--text-body-s); color: var(--text-muted); }
.signed-footer .signature { display: inline; font-size: 1.5em; line-height: 1; }

/* --- call schedule: the follow-up cadence as a timeline --- */

.cadence { --cadence-when: 96px; display: grid; }

.cadence-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--cadence-when) 12px minmax(0, 1fr);
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.cadence-step:last-child { padding-bottom: 0; }

/* the line to the next step */
.cadence-step:not(:last-child)::before {
  transform: scaleY(var(--cad-p, 1));
  transform-origin: center top;
  content: "";
  position: absolute;
  left: calc(var(--cadence-when) + var(--space-4) + 5.5px);
  top: 21px;
  bottom: -1px;
  width: 1px;
  background: var(--fill-quiet);
}

.cadence-when {
  padding-top: 2px;
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cadence-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border: var(--border-w-strong) solid var(--forest);
  border-radius: 50%;
  background: var(--surface-page);
}

.cadence-step--end .cadence-dot { background: var(--forest); }
.cadence-what { display: grid; justify-items: start; gap: var(--space-1); }
.cadence-what strong { font-weight: 600; line-height: 1.4; }
.cadence-what > span:not(.chip) { color: var(--text-muted); }
.cadence-what .chip { margin-top: var(--space-1); }

/* across the page on desktop, down the page under 1024px */
@media (min-width: 1025px) {
  .cadence--row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-6); }
  .cadence--row .cadence-step { grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--space-3); padding-bottom: 0; }
  .cadence--row .cadence-when { order: 2; padding-top: 0; text-align: left; }
  .cadence--row .cadence-dot { order: 1; margin-top: 0; }
  .cadence--row .cadence-what { order: 3; }
  .cadence--row .cadence-step:not(:last-child)::before { transform: scaleX(var(--cad-p, 1)); transform-origin: left center; left: 20px; right: calc(-1 * var(--space-6) + 8px); top: 5.5px; bottom: auto; width: auto; height: 1px; }
}

@media (max-width: 480px) {
  .cadence { --cadence-when: 72px; }
  .cadence-step { gap: var(--space-3); }
  .cadence-step:not(:last-child)::before { left: calc(var(--cadence-when) + var(--space-3) + 5.5px); }
}

/* --- person card, per board B5 --- */

.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-10) var(--gutter); }
.people--full { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-12); }

.person { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }

/* Holds a real 4:5 headshot: <img> inside, or the bracketed placeholder until the photo exists. */
.person-photo {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
  border: var(--border-w) dashed var(--border-input);
  border-radius: var(--radius-input);
  background: var(--surface-panel);
  color: var(--text-muted);
  font-size: var(--text-label);
  font-weight: 600;
  overflow: hidden;
}

.section--alt .person-photo { background: var(--surface-page); }
.person-photo:has(img) { border: 0; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.15; }
.person-role { font-size: var(--text-label); font-weight: 600; line-height: 1.4; letter-spacing: var(--tracking-label); color: var(--text-muted); }
.person-did { font-size: var(--text-body-s); line-height: 1.5; }
/* the signature pins to the card bottom (margin auto), so the hairlines line up across a row; the hairline spans the column */
.person .signature { align-self: stretch; margin-top: auto; padding-top: var(--space-3); border-top: var(--border-w) solid var(--border-quiet); }

/* Cards, for the homepage row: a cream card each, a small 4:5 tile, name, role, what they did. */
.people--cards .person { gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-card); background: var(--surface-page); }
.section--alt .people--cards .person-photo, .people--cards .person-photo { width: 64px; margin-bottom: var(--space-3); background: var(--surface-panel); font-size: 10px; font-weight: 500; text-align: center; }
.people--cards .person-name { font-size: var(--text-h3); font-family: var(--font-display); }
.people--cards .person-did { margin-top: var(--space-1); }

.person-email { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-label); font-weight: 500; color: var(--text-body); text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people--full { grid-template-columns: minmax(0, 1fr); }
  .people--full .person-photo { max-width: 280px; width: 100%; }
}

/* ---------- story (a list of beats) ---------- */
/* Every beat visible, one after the other: copy on the left and one large rounded stage card on the right,
   forest by default, sage with .beat-screen--light. One idea per card, large and quiet. */

.story { padding-block: var(--section-gap); }
.story-head { margin-bottom: var(--space-12); }

.story-beats { display: grid; gap: var(--space-16); }

.beat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-8) clamp(20px, 4vw, 72px);
}

.beat-copy { display: grid; justify-items: start; align-content: start; gap: var(--space-3); min-width: 0; }

/* the clock time, very large */
.beat-when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.beat-when small { font-family: var(--font-text); font-size: var(--text-label); font-weight: 600; letter-spacing: var(--tracking-label); color: var(--text-muted); }
.beat-title { margin-top: var(--space-2); font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.15; text-wrap: balance; }
.beat-text { max-width: 28em; color: var(--text-muted); }
.beat-by { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); }

/* the stage card */
.beat-screen {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--space-4);
  min-height: 320px;
  padding: var(--space-12) var(--space-8) var(--space-8);
  border-radius: var(--radius-panel);
  background: var(--surface-strong);
  color: var(--text-on-strong);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.beat-screen--light { background: var(--surface-panel); color: var(--text-body); }
.beat-screen > .chip--sample { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 1; }
.beat-screen > * { min-width: 0; }
.beat-screen > .moment, .beat-screen > .screen { width: 100%; }
.beat-screen :focus-visible { outline: 2px solid var(--focus-ring-on-strong); outline-offset: 2px; }
.beat-screen--light :focus-visible, .beat-screen .screen :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* A "moment": the plain pieces a stage card is made of. */
.moment { display: grid; gap: var(--space-4); width: 100%; max-width: 520px; }
.moment-meta { font-size: var(--text-caption); font-weight: 500; line-height: 1.4; color: var(--sage-mist); }
.beat-screen--light .moment-meta { color: var(--text-muted); }
.moment-title { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.1; }
.moment-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

.moment-card {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-card);
  background: var(--surface-page);
  color: var(--text-body);
  font-size: var(--text-body-s);
  line-height: 1.5;
}

.moment-card--raised { box-shadow: var(--shadow-2); }
.moment-card-label { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-caption); font-weight: 500; line-height: 1.4; color: var(--text-muted); }
.moment-card-title { font-size: var(--text-body-m); font-weight: 600; line-height: 1.4; }
.moment-card-sub { font-size: var(--text-label); color: var(--text-muted); }
.moment-card--signed { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-2) var(--space-4); }
.moment-card--signed > :not(.signature) { grid-column: 1; }
.moment-card--signed .signature { grid-column: 2; grid-row: 1 / span 3; font-size: var(--text-h3); line-height: 1; }

/* a search box on the stage */
.beat-screen .serp-query { border-color: transparent; background: var(--surface-page); color: var(--text-body); }

/* the ringing call */
.call { display: grid; justify-items: center; gap: var(--space-5); text-align: center; }
.call-icon { position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-page); color: var(--forest); }
.call-icon .icon { width: 32px; height: 32px; }
.call-icon .ring { --ring: 96px; }
.call-name { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.1; }
.call-timer { margin-top: var(--space-1); font-size: var(--text-body-s); color: var(--sage-mist); font-variant-numeric: tabular-nums; }
.call .signature { font-size: var(--text-h3); line-height: 1; color: var(--accent-italic-on-strong); }

/* an outlined bubble on forest, for a reply */
.bubble--on-strong { border: var(--border-w) solid var(--line-on-strong); background: var(--fill-on-strong); color: var(--text-on-strong); }
.beat-screen .bubble--out { background: var(--surface-page); color: var(--text-body); }
.beat-screen--light .bubble--out { background: var(--surface-strong); color: var(--text-on-strong); }

/* the schedule on forest: empty slots are quiet outlines, the booked one is cream */
.beat-screen:not(.beat-screen--light) > .moment .schedule-time { color: var(--sage-mist); }
.beat-screen:not(.beat-screen--light) > .moment .schedule-slot { border: var(--border-w) solid var(--line-on-strong); background: var(--fill-on-strong); color: var(--sage-mist); }
.beat-screen:not(.beat-screen--light) > .moment .schedule-row--booked .schedule-time { color: var(--text-on-strong); }
.beat-screen:not(.beat-screen--light) > .moment .schedule-row--booked .schedule-slot { border-color: var(--surface-page); background: var(--surface-page); color: var(--text-body); box-shadow: none; }
.beat-screen:not(.beat-screen--light) > .moment .schedule-row--booked .schedule-slot small { color: var(--text-muted); }

@media (max-width: 1024px) {
  .beat { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .beat-screen { padding: var(--space-12) var(--space-4) var(--space-5); }
  .beat-screen .screen { --screen-pad: var(--space-5); }
}

/* ---------- reveal on scroll ---------- */
/* Add .reveal to a block. It only hides when JavaScript is running and motion is allowed. */

/* Nothing is hidden here. site.js animates .reveal and [data-anim] blocks with GSAP when it has loaded
   and motion is allowed; otherwise they simply sit in place. */

/* ---------- what we run: one row per service, each with a piece of the work ---------- */
/* A set of services, so no row numbers (numerals are for sequences only). */

.run-list { border-top: var(--border-w) solid var(--border-quiet); }

.run-row {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.05fr) minmax(0, 1.15fr);
  align-items: start;
  gap: var(--space-6) var(--space-10);
  padding-block: var(--space-10);
  border-bottom: var(--border-w) solid var(--border-quiet);
}

.run-title { display: grid; justify-items: start; gap: var(--space-3); }
.run-title :is(h3, h4) { font-family: var(--font-display); font-size: var(--text-display-m); font-weight: 400; line-height: 1.1; text-wrap: balance; }
/* inline, not inline-flex: a flex anchor trims the spaces around any span inside it (the .nowrap fix),
   and the 1.1 line height of the display-m title already clears the 44px target */
.run-title :is(h3, h4) a { text-decoration: none; }
.run-title :is(h3, h4) a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.run-text { display: grid; justify-items: start; gap: var(--space-3); }
.run-show { display: grid; justify-items: end; }
.run-show .screen { --screen-pad: var(--space-5); max-width: 400px; gap: var(--space-3); }
/* The homepage's third row, "Beyond the core plan": the add-ons as one set. An animated line ("We can also take on
   [phrase].") names one item at a time; site.js ("The add-ons cycle") slides the next phrase up into place while the slot
   eases to its width, and swaps the descriptor box under it to the same item (a calm fade and lift). Patient follow-up
   sits in a forest pill (cream on forest, 8.7:1) and holds twice as long. Under the box, previous and next buttons and
   one dot per item jump to an item and keep it there until the row leaves the screen.
   All six descriptors are in the page. With JavaScript they share one grid cell, so the box always has the tallest one's
   height and nothing moves when they change, and only the current one is visible; without it they stack as a list and
   the controls stay hidden. The markup's own state is patient follow-up, so under reduced motion, with animations paused
   or without GSAP the line rests there and the controls swap instantly. The moving line is aria-hidden; the .sr-only
   sentence before it says the same thing once. One cycle per page.
   Markup: article.run-row.run-row--beyond[data-cycle][data-current=follow] > .run-title (h3)
   + .cycle (p.sr-only + p.cycle-line[aria-hidden] (span.cycle-lead + span.cycle-tail > span.cycle-slot > span.cycle-phrase
   [data-cycle-item] ×6, each ending on its full stop, the first .is-current with span.cycle-pill))
   + .addons (.addon-box[aria-live=off] > article.addon[data-cycle-item] ×6, the first .is-active (.addon-text (.addon-head
   (h4.addon-title + span.chip) + p + a.btn.btn--secondary.btn--small) + .addon-show > .screen[role=img], a Sample)
   + .addon-bar (.addon-controls (button.addon-step[data-cycle-step=-1] + .addon-dots > button.addon-dot[data-cycle-go] ×6
   + button.addon-step[data-cycle-step=1]) + a.btn.btn--secondary.btn--small)) */
.run-row--beyond { grid-template-areas: "title cycle cycle" "title addons addons"; row-gap: var(--space-8); }
.run-row--beyond > .run-title { grid-area: title; }
.cycle { grid-area: cycle; display: grid; justify-items: start; gap: var(--space-4); min-width: 0; }
.addons { grid-area: addons; display: grid; gap: var(--space-4); min-width: 0; }

.cycle-line { width: 100%; font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.45; color: var(--text-body); }
.cycle-tail { white-space: nowrap; }
.cycle-phrase:not(.is-current) { display: none; }
.cycle-pill { display: inline-block; padding-inline: .32em; border-radius: var(--radius-pill); background: var(--surface-strong); color: var(--text-on-strong); }
.cycle-phrase .chip { font-family: var(--font-text); vertical-align: .3em; }
/* while it cycles (site.js adds .is-cycling): every phrase is stacked in the slot, whose width and height site.js sets
   from the phrases, so the row never moves. .is-stacked puts the phrase on its own line when the line can't hold the
   lead and the widest phrase together. */
.is-cycling .cycle-slot { position: relative; display: inline-block; vertical-align: bottom; overflow: hidden; }
.is-cycling .cycle-phrase { position: absolute; top: 0; left: 0; display: block; width: max-content; max-width: var(--cycle-max, none); white-space: normal; }
.is-cycling .cycle-phrase:not(.is-current) { visibility: hidden; }
.cycle-line.is-stacked .cycle-tail { display: block; }

/* the descriptor box: a sage mist panel, the item's name, chip, line and link, and its sample */
.addon-box { display: grid; gap: var(--space-4); }
.addon { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr); align-items: start; align-content: start; gap: var(--space-6) var(--space-10); min-width: 0; padding: var(--space-6); border-radius: var(--radius-card); background: var(--surface-panel); }
.js .addon-box { gap: 0; }
.js .addon-box > .addon { grid-area: 1 / 1; }
.js .addon:not(.is-active):not(.is-leaving) { visibility: hidden; }
.addon.is-leaving { pointer-events: none; }
.addon-text { display: grid; justify-items: start; align-content: start; gap: var(--space-3); }
.addon-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.addon-title { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.15; color: var(--text-body); }
.addon .chip { background: var(--surface-page); }
.addon .run-show .screen { border-color: var(--border-input); box-shadow: var(--shadow-3); }

/* the small samples in the box and on the add-ons page: lighter than the core services' samples */
.mini-brand { display: flex; align-items: center; gap: var(--space-5); }
.mini-logo { display: grid; place-items: center; flex: none; width: 76px; height: 76px; padding: var(--space-2); border-radius: var(--radius-input); background: var(--surface-strong); color: var(--text-on-strong); font-family: var(--font-display); font-size: var(--text-body-s); line-height: 1.15; text-align: center; }
.mini-swatches { display: flex; gap: var(--space-2); }
.mini-swatch { width: 28px; height: 28px; border: var(--border-w) solid var(--border-quiet); border-radius: var(--radius-pill); }
.mini-swatch--forest { background: var(--forest); }
.mini-swatch--sage { background: var(--sage); }
.mini-swatch--mist { background: var(--sage-mist); }
.mini-swatch--field { background: var(--field); }
.mini-video { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-input); background: var(--surface-alt); }
.mini-video .icon { width: 44px; height: 44px; color: var(--forest); }
/* the play mark's one soft ring: invisible at rest, it pulses once when the video sample plays */
.mini-video::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: var(--border-w) solid var(--forest); border-radius: var(--radius-pill); opacity: 0; pointer-events: none; }
.mini-review { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border: var(--border-w) solid var(--border-quiet); border-radius: var(--radius-input); }
.mini-review-name { font-weight: 600; }
.mini-review-text { color: var(--text-muted); }
/* the consult in the day's schedule, the one that matters */
.schedule-slot.mini-slot-key { background: var(--surface-strong); color: var(--text-on-strong); font-weight: 600; }

/* previous and next, and one dot per item (aria-current on the current one); shown only with JavaScript */
.addon-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); }
.addon-controls { display: none; align-items: center; }
.js .addon-controls { display: flex; }
/* a 32px circle in a 44px target */
.addon-step { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; }
.addon-step::before { content: ""; position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; border: var(--border-w) solid var(--border-input); border-radius: var(--radius-pill); background: var(--surface-page); transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard); }
.addon-step:hover::before { border-color: var(--border-strong); background: var(--surface-panel); }
.addon-step .arrow { position: relative; width: 14px; height: 8px; }
.addon-step[data-cycle-step="-1"] .arrow { transform: scaleX(-1); }
.addon-dots { display: flex; }
.addon-dot { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.addon-dot::before { content: ""; width: 10px; height: 10px; border: var(--border-w) solid var(--border-input); border-radius: var(--radius-pill); transition: width var(--dur-med) var(--ease-standard), background-color var(--dur-med) var(--ease-standard); }
.addon-dot[aria-current="true"]::before { width: 20px; border-color: var(--border-strong); background: var(--surface-strong); }
.addon-dot:hover::before { background: var(--surface-panel); }
.addon-dot[aria-current="true"]:hover::before { background: var(--surface-strong); }
.addon-dot:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -4px; border-radius: var(--radius-input); }
.addon-step:focus-visible { outline: none; }
.addon-step:focus-visible::before { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Each sample plays once: in the homepage cycle when its item becomes current (site.js adds .is-playing to the .addon),
   and on the add-ons page as a [data-play] sample comes into view (site.js adds .is-playing to it). Every keyframe starts
   from a hidden or quiet state and ends on the element's own style, so a sample that doesn't play (reduced motion,
   animations paused, no JavaScript) is simply complete. No loops. */
@media (prefers-reduced-motion: no-preference) {
  :is(.addon, [data-play]) { --play-at: .3s; --play-step: calc(var(--dur-med) + var(--stagger-ring)); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing :is(.status-step .chip, .mini-logo, .mini-swatch, .screen-bar, .skeleton span, .mini-review-name, .mini-review-text, .schedule-row, .mini-video, .mini-video .icon, .mini-slot-key) { animation-duration: var(--dur-slow); animation-timing-function: var(--ease-standard); animation-fill-mode: backwards; animation-delay: var(--play-at); }
  /* follow-up: New, Called, Consult booked light in turn */
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .status-step .chip { animation-name: play-light; }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .status-step:nth-child(2) .chip { animation-delay: calc(var(--play-at) + var(--play-step)); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .status-step:nth-child(3) .chip { animation-delay: calc(var(--play-at) + var(--play-step) * 2); }
  /* brand: the tile settles, then the swatches pop in one after another */
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-logo { animation-name: play-settle; }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-swatch { animation-name: play-pop; animation-timing-function: var(--ease-out); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-swatch:nth-child(1) { animation-delay: calc(var(--play-at) + var(--play-step)); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-swatch:nth-child(2) { animation-delay: calc(var(--play-at) + var(--play-step) * 1.5); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-swatch:nth-child(3) { animation-delay: calc(var(--play-at) + var(--play-step) * 2); }
  /* video: the frame fades in, the play mark grows from .9 and its ring pulses once */
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-video { animation-name: play-fade; }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-video .icon { animation-name: play-grow; animation-delay: calc(var(--play-at) + var(--dur-med)); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-video::after { animation-name: play-ring; animation-duration: var(--rest-bloom); animation-timing-function: var(--ease-out); animation-delay: calc(var(--play-at) + var(--dur-slow)); }
  /* website: the browser bar, then the two lines draw in from the left */
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .screen-bar { animation-name: play-settle; }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .skeleton span { animation-name: play-draw; }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .skeleton span:nth-child(1) { animation-delay: calc(var(--play-at) + var(--play-step)); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .skeleton span:nth-child(2) { animation-delay: calc(var(--play-at) + var(--play-step) * 2); }
  /* reputation: the name, then the review text draws in */
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-review-name { animation-name: play-fade; }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-review-text { animation-name: play-draw; animation-duration: var(--rest-bloom); animation-delay: calc(var(--play-at) + var(--play-step)); }
  /* consulting: the slots slide in in turn, and the consult settles last into forest */
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .schedule-row { animation-name: play-slide; }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .schedule-row:nth-child(2) { animation-delay: calc(var(--play-at) + var(--play-step)); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .schedule-row:nth-child(3) { animation-delay: calc(var(--play-at) + var(--play-step) * 2); }
  .js:not(.motion-paused) :is(.addon, [data-play]).is-playing .mini-slot-key { animation-name: play-key; animation-delay: calc(var(--play-at) + var(--play-step) * 3); }
}
@keyframes play-light { from { border-color: var(--border-input); background-color: transparent; color: var(--text-muted); transform: scale(.94); } }
@keyframes play-settle { from { opacity: 0; transform: translateY(6px); } }
@keyframes play-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes play-fade { from { opacity: 0; } }
@keyframes play-grow { from { opacity: 0; transform: scale(.9); } }
@keyframes play-ring { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes play-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes play-slide { from { opacity: 0; transform: translateX(-8px); } }
@keyframes play-key { from { background-color: var(--surface-panel); color: var(--text-muted); } }

/* the add-ons page's coming-soon names: hairline rows, the name in serif and its chip, no line and no link.
   Markup: ul.soon-list > li > span.soon-name + span.chip; then p.soon-ask > a.btn.btn--secondary */
.soon-list { display: grid; max-width: 640px; border-top: var(--border-w) solid var(--border-quiet); }
.soon-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding-block: var(--space-4); border-bottom: var(--border-w) solid var(--border-quiet); }
.soon-name { font-family: var(--font-display); font-size: var(--text-h3); line-height: 1.2; }
.soon-ask { margin-top: var(--space-4); }

/* who we work with: one serif statement at the foot of How we help, with room of its own. The two kinds of practice are
   links (the orthodontic one is the statement's one italic phrase; the dental one stays upright) with the site's link
   line. Markup: .who-statement > h3.who-statement-text (a > em, a) + p */
.who-statement { display: grid; justify-items: start; gap: var(--space-5); padding-top: var(--section-gap); }
.who-statement-text { max-width: 21em; font-family: var(--font-display); font-size: var(--text-display-m); font-weight: 400; line-height: 1.15; text-wrap: balance; }
.who-statement-text a { --link-offset: .14em; --link-y: calc(100% - .17em + 1.5px); color: inherit; }
.who-statement p { max-width: 34em; font-size: var(--text-body-l); color: var(--text-muted); }

@media (max-width: 1024px) {
  .run-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .run-title { grid-column: 1 / -1; }
  .run-row--beyond { grid-template-areas: "title title" "cycle cycle" "addons addons"; row-gap: var(--space-6); }
  .addon { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6) var(--space-8); }
}

@media (max-width: 768px) {
  .run-row { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-8); }
  .run-show { justify-items: stretch; }
  .run-show .screen { max-width: none; }
  .run-row--beyond { grid-template-areas: "title" "cycle" "addons"; }
  .addon { grid-template-columns: minmax(0, 1fr); padding: var(--space-5) var(--space-4); }
}

/* ----- Looping graphics: [data-loop="status|compare"] (CSS) and [data-loop="local-page|ledger|report"] (GSAP) -----
   status and compare are slow CSS loops on a sample graphic. site.js adds .is-looping once it watches the graphic and
   .is-live while it is on screen; off screen the loop pauses. The first frame of every loop is the finished graphic, so
   a paused, still or script-less graphic is complete. Under prefers-reduced-motion none of it runs. Put data-anim="none"
   on the same element so the one-shot behaviours in site.js leave it alone. The homepage's signed samples
   (local-page, ledger, report) are GSAP timelines in site.js ("signed samples"); see "signed samples" below. */
/* status chips: the loop opens on the finished row, then steps New, Called, Consult booked */
@keyframes loop-status-new {
  0%, 30% { border-color: transparent; background-color: var(--surface-panel); color: var(--forest); }
  34%, 54% { border-color: transparent; background-color: var(--surface-strong); color: var(--text-on-strong); }
  58%, 100% { border-color: transparent; background-color: var(--surface-panel); color: var(--forest); }
}
@keyframes loop-status-called {
  0%, 30% { border-color: transparent; background-color: var(--surface-panel); color: var(--forest); }
  34%, 54% { border-color: var(--border-input); background-color: var(--surface-page); color: var(--text-muted); }
  58%, 76% { border-color: transparent; background-color: var(--surface-strong); color: var(--text-on-strong); }
  80%, 100% { border-color: transparent; background-color: var(--surface-panel); color: var(--forest); }
}
@keyframes loop-status-booked {
  0%, 30% { border-color: transparent; background-color: var(--surface-strong); color: var(--text-on-strong); }
  34%, 76% { border-color: var(--border-input); background-color: var(--surface-page); color: var(--text-muted); }
  80%, 100% { border-color: transparent; background-color: var(--surface-strong); color: var(--text-on-strong); }
}

@media (prefers-reduced-motion: no-preference) {
  .is-looping .status-step:nth-child(1) .chip { animation: loop-status-new calc(3 * var(--hold-lower-third)) var(--ease-standard) infinite; }
  .is-looping .status-step:nth-child(2) .chip { animation: loop-status-called calc(3 * var(--hold-lower-third)) var(--ease-standard) infinite; }
  .is-looping .status-step:nth-child(3) .chip { animation: loop-status-booked calc(3 * var(--hold-lower-third)) var(--ease-standard) infinite; }
  /* off screen: hold the frame. !important because each loop's animation shorthand above (and in .compare) resets the play state */
  .is-looping:not(.is-live) *, .is-looping:not(.is-live) *::before { animation-play-state: paused !important; }
}

/* ---------- the proof strip (homepage, under the hero) ---------- */
/* Four claims the site already makes, each a serif figure and its line. Two by two under 1024px; compact rows on phones.
   Markup: section.proof[aria-label] > .wrap > ul.proof-list > li > span.proof-num + span.proof-label */
.proof { padding-block: var(--space-10); border-bottom: var(--border-w) solid var(--border-quiet); }
.proof-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-list li { display: grid; align-content: start; gap: var(--space-1); padding-inline: var(--space-6); border-left: var(--border-w) solid var(--border-quiet); }
.proof-list li:first-child { padding-left: 0; border-left: 0; }
.proof-num { font-family: var(--font-display); font-size: var(--text-display-m); line-height: 1.05; color: var(--forest); }
.proof-label { font-size: var(--text-body-s); line-height: 1.45; color: var(--text-muted); text-wrap: pretty; }
@media (max-width: 1024px) {
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); }
  .proof-list li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .proof { padding-block: var(--space-6); }
  .proof-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .proof-list li { grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: var(--space-4); padding: var(--space-3) 0; border-left: 0; border-top: var(--border-w) solid var(--border-quiet); }
  .proof-list li:first-child { border-top: 0; }
  .proof-num { font-size: var(--text-h2); }
}

/* ---------- the core services as alternating rows (homepage How we help) ---------- */
/* Copy on one side, the signed sample on a sage mist panel on the other; the second row flips. One column under 1024px.
   Markup: .service-rows > article.service-row(.service-row--flip) > .service-row-copy (h3.display-m + p + a.btn.btn--secondary)
   + .service-row-visual[data-place] > .vignette[data-loop][data-anim=none][role=img] */
.service-rows { display: grid; gap: var(--space-24); }
.service-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--space-12) var(--space-16); }
.service-row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.service-row--flip .service-row-copy { order: 2; }
.service-row-copy { display: grid; justify-items: start; gap: var(--space-5); max-width: 30rem; }
.service-row-copy p { font-size: var(--text-body-l); color: var(--text-muted); text-wrap: pretty; }
.service-row-visual { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 420px; padding: var(--space-12) var(--space-8); border-radius: var(--radius-panel); background: var(--surface-panel); }
/* the add-ons cycle follows the rows, on its own hairline */
.run-list--beyond { margin-top: var(--space-24); }

/* ---------- signed samples (homepage: the two service rows and the monthly report) ---------- */
/* Every change, signed: each sample replays its job in three beats, place (the work lands), mark (it is signed by role
   and the Rose stamp is pressed on), rest (it holds, finished). The static markup is the finished, signed state.
   site.js ("signed samples") builds each timeline the first time it reaches the screen, plays it only while on screen
   and the tab is visible, and jumps it to the finished state when animations are paused; under reduced motion nothing
   is built. Only transform, opacity and colour change. The Sample chip never fades.
   The sign-off: div.signoff > svg.signoff-disc.founder-art (the role disc, small) + span.signoff-who
   ("Signed by" + em.signature with the role) + span.chip.chip--sample + img.stamp (assets/img/stamp-signed.svg: the bloom
   in a deep rose double ring, mark artwork). Signed by role only: no names, no initials. */
.vignette { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; width: 100%; }
.vignette .screen { --screen-pad: var(--space-6); }
.signoff { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding-top: var(--space-4); padding-right: 56px; border-top: var(--border-w) solid var(--border-quiet); }
.signoff-disc.founder-art { flex: none; width: 30px; height: 30px; }
.signoff-who { font-size: var(--text-label); font-weight: 600; line-height: 1.4; color: var(--text-body); }
.signoff-who .signature { display: inline; margin-left: var(--space-1); font-size: 1.6em; line-height: 1; }
.signoff .chip--sample { margin-left: auto; }
.stamp { width: 52px; height: 52px; mix-blend-mode: multiply; opacity: .9; rotate: -10deg; pointer-events: none; }
.signoff .stamp { position: absolute; right: -14px; top: 50%; margin-top: -24px; }

/* Websites and SEO: the query types itself, this month's page lands over last month's, it is signed */
.bar-dots { display: flex; gap: var(--space-2); }
.bar-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--fill-quiet); }
.screen--front { z-index: 1; translate: -18px 30px; }
.screen--ghost { position: absolute; z-index: 0; top: 34px; right: 40px; width: 280px; justify-items: end; gap: var(--space-2); padding: var(--space-4) var(--space-5) 120px; text-align: right; box-shadow: var(--shadow-1); rotate: 4deg; }
.screen--ghost .serp-title { font-size: var(--text-body-s); }
.vignette .serp-query .icon { width: 18px; height: 18px; }
.caret { width: 1.5px; height: 1.2em; margin-left: calc(-1 * var(--space-2)); background: var(--forest); opacity: 0; }
.vignette .serp-result { padding: var(--space-4); border-radius: var(--radius-input); background: var(--surface-panel); }
.vignette .serp-url { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.chip--new { padding: 2px var(--space-2); background: var(--forest); color: var(--cream); font-size: var(--text-caption); }

/* Google and Meta ads: a consult arrives, a band traces it down the ledger to its source, the source lights, signed */
.ledger { max-width: 440px; }
.ledger-new { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: var(--border-w) solid var(--forest); border-radius: var(--radius-input); }
.ledger-new b { font-weight: 600; }
.ledger-new .lead-dot { flex: none; }
.ledger-time { margin-left: auto; font-size: var(--text-label); font-weight: 600; color: var(--text-muted); }
.ledger-body { position: relative; }
.ledger-rows { position: relative; display: grid; }
.ledger-rows li { display: flex; align-items: center; gap: var(--space-3); height: 44px; padding-inline: var(--space-3); font-weight: 500; }
.ledger-rows .leader { flex: 1; height: 1px; border-top: var(--border-w) dotted var(--border-quiet); }
.ledger-rows b { min-width: 3.2em; padding: 2px var(--space-2); border-radius: var(--radius-pill); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.ledger-rows li.is-key b { background: var(--forest); color: var(--cream); }
/* the trace: a band over the source row (the second row) */
.ledger-hl { position: absolute; left: 0; right: 0; top: 44px; height: 44px; border-radius: var(--radius-input); background: var(--surface-panel); }

/* What happens after you say yes (homepage): the timeline, vertical, beside the signed monthly report. From 1025px the
   report runs the full height of the timeline (from 2026-10-29; it was a shorter sticky card): the card stretches to the
   column and its parts spread down it, head at the top and what's next at the foot. Markup: .after-yes >
   ol.timeline.timeline--vertical (see "the timeline") + .after-yes-visual[data-place] > .vignette[data-loop=report] >
   .screen.month-report (.screen-head + .report-stats + p.report-month + .report-feed (span.report-hl +
   ul.report-changes > li[data-item] (svg.signoff-disc + .report-change + img.stamp)) + p.report-next) */
.after-yes { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; gap: var(--space-12) var(--space-16); }
.after-yes-visual { align-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.after-yes .month-report { align-content: space-between; }
.month-report .stat--key .stat-label { color: var(--forest); font-weight: 600; }
.report-feed { position: relative; }
.report-changes { position: relative; display: grid; }
.report-changes > li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) 52px var(--space-4) var(--space-2); border-top: var(--border-w) solid var(--border-quiet); }
.report-changes .signoff-disc.founder-art { width: 40px; height: 40px; }
.report-change { display: grid; justify-items: start; gap: var(--space-2); }
/* the signer, by role, in ink 600 (the signed change item, guideline section 6) */
.report-who { font-weight: 600; line-height: 1.3; }
.report-changes .stamp { position: absolute; right: -6px; top: var(--space-3); width: 48px; height: 48px; }
/* the band that walks from one signed change to the next (placed by site.js; hidden at rest) */
.report-hl { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: var(--radius-input); background: var(--surface-panel); opacity: 0; }

/* The annotated report (/pricing "What your monthly report covers"): the parts of one document, pinned on the document.
   The numbers are the keys between a pin and its line in the legend, never steps. The sample is static (no loop): the
   homepage carries the looping one. Each pin sits inside the part it labels, on the card's edge (the stamp's on its
   corner); pins are aria-hidden, since the legend carries the words. Under 1100px the card goes first and the legend
   follows in one column. Markup: .specimen > ol.specimen-legend.specimen-legend--left (li > span.specimen-pin + h3 + p)
   + .specimen-card (.screen.month-report: .screen-head, .report-stats, p.report-month, ul.report-changes, p.report-next,
   each holding its span.specimen-pin[data-side]) + ol.specimen-legend[start=3] */
.specimen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px) minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.specimen-card .screen { max-width: none; }
.specimen-card :is(.report-stats, .report-month, .report-changes, .report-next, .report-changes > li:first-child) { position: relative; }
.specimen-pin { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--surface-page); border-radius: 50%; background: var(--forest); color: var(--text-on-strong); font-size: var(--text-caption); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-1); }
.specimen-card .specimen-pin { position: absolute; z-index: 1; top: 50%; translate: 0 -50%; }
.specimen-card .specimen-pin[data-side="left"] { left: calc(-1 * var(--screen-pad) - 14px); }
.specimen-card .specimen-pin[data-side="right"] { right: calc(-1 * var(--screen-pad) - 14px); }
.specimen-card .specimen-pin[data-side="between"] { top: 0; right: calc(-1 * var(--screen-pad) - 14px); }
.specimen-card .specimen-pin[data-side="stamp"] { top: var(--space-1); right: 30px; translate: none; }
.report-next { padding-top: var(--space-4); border-top: var(--border-w) solid var(--border-quiet); }
.specimen-legend { display: grid; gap: var(--space-10); }
.specimen-legend li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-items: start; }
.specimen-legend h3 { font-size: var(--text-body-l); font-weight: 600; line-height: 1.3; }
.specimen-legend p { grid-column: 2; font-size: var(--text-body-s); line-height: 1.55; color: var(--text-muted); }
@media (min-width: 1101px) {
  .specimen-legend--left li { grid-template-columns: minmax(0, 1fr) 28px; text-align: right; }
  .specimen-legend--left .specimen-pin { grid-column: 2; grid-row: 1; }
  .specimen-legend--left :is(h3, p) { grid-column: 1; }
}
@media (max-width: 1100px) {
  .specimen { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin-inline: auto; }
  .specimen-card { order: -1; margin-inline: var(--space-5); }
  .specimen-legend { gap: var(--space-6); }
}

@media (max-width: 1024px) {
  .service-row, .service-row--flip, .after-yes { grid-template-columns: minmax(0, 1fr); }
  .service-row--flip .service-row-copy { order: 0; }
  .service-rows { gap: var(--space-16); }
  .run-list--beyond { margin-top: var(--space-16); }
}
@media (max-width: 640px) {
  .service-row-visual { min-height: 0; padding: var(--space-6) var(--space-4); border-radius: var(--radius-card); }
  .screen--ghost { display: none; }
  .screen--front { translate: none; }
  .vignette .screen { --screen-pad: var(--space-5); }
  .signoff .stamp { right: -8px; width: 44px; height: 44px; margin-top: -20px; }
  .month-report .report-stats { gap: var(--space-2); }
}

/* Placing: a sample panel settles 16px into place the first time it reaches the screen, always at full opacity, so
   nothing waits on a scroll to be readable. site.js adds .is-placing when it starts watching and .is-placed when the
   panel arrives, so without the script nothing is offset. The search box's caret blinks while its query types. */
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.motion-paused) [data-place].is-placing { transition: translate var(--rest-bloom) var(--ease-out); }
  .js:not(.motion-paused) [data-place].is-placing:not(.is-placed) { translate: 0 16px; }
  .js:not(.motion-paused) [data-loop="local-page"].is-live .caret { animation: caret calc(var(--rest-bloom) * 2) steps(1) infinite; }
}

/* ---------- follow-up band: the line that keeps going past the lead ---------- */

.band {
  display: grid;
  gap: var(--space-12);
  padding: var(--space-16);
  border-radius: var(--radius-panel);
  background: var(--surface-strong);
  color: var(--text-on-strong);
}

.band--light { background: var(--surface-panel); color: var(--text-body); }
.band-head { display: grid; gap: var(--space-6); max-width: 900px; }
.band-text { max-width: var(--maxw-prose); font-size: var(--text-body-l); }

.pipeline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.4fr) auto; align-items: center; gap: var(--space-4); }
.pipeline-node { display: grid; justify-items: start; gap: var(--space-2); }
.pipeline-node strong { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.1; white-space: nowrap; }
.pipeline-node span { font-size: var(--text-label); font-weight: 600; line-height: 1.4; color: var(--sage-mist); }
.pipeline-line { height: 0; border-top: var(--border-w) dashed var(--outline-on-strong); }
.pipeline-line--ours { height: 2px; border: 0; background: var(--surface-page); transform-origin: left center; }

@media (prefers-reduced-motion: no-preference) {
}

.band-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--space-10) var(--space-16); }
.band-foot .screen { max-width: none; }
.band-quote { display: grid; justify-items: start; gap: var(--space-4); }
/* a claim waiting on its source: bracketed and boxed until it is confirmed */
.band-stat { max-width: var(--maxw-prose); padding: var(--space-4) var(--space-5); border: var(--border-w) dashed var(--outline-on-strong); border-radius: var(--radius-input); color: var(--sage-mist); }

@media (max-width: 1024px) {
  .band { padding: var(--space-12) var(--space-8); }
  .band-foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .band { gap: var(--space-10); padding: var(--space-10) var(--space-5); }
  .pipeline { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-3); }
  .pipeline-line { width: 0; height: 32px; margin-left: var(--space-3); border-top: 0; border-left: var(--border-w) dashed var(--outline-on-strong); }
  .pipeline-line--ours { width: 2px; height: 48px; margin-left: calc(var(--space-3) - .5px); border: 0; transform-origin: center top; }
}

/* ---------- quality over quantity: a numberless comparison ---------- */

/* Markup: .compare[data-loop="compare"][role="img"] > .compare-row (+ .compare-row--ours) > p.compare-label (strong + span) + .compare-track > span.compare-dot
   (--lost: fades to a ring; --kept: stays; --booked: turns forest with a cream check, holds an svg). Static, this is the end state. */
.compare { display: grid; gap: var(--space-8); margin-top: clamp(48px, 6vw, 72px); }
.compare-row { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); align-items: center; gap: var(--space-4) var(--space-12); }
.compare-label { display: grid; gap: 2px; }
.compare-label strong { font-weight: 600; }
.compare-label span { font-size: var(--text-body-s); color: var(--text-muted); }
.compare-track { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 32px; }
.compare-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border-quiet); }
.compare-row--ours .compare-track { justify-content: space-around; }
.compare-dot { position: relative; flex: none; display: grid; place-items: center; width: 16px; height: 16px; border: var(--border-w) solid transparent; border-radius: 50%; background: var(--fill-quiet); }
.compare-dot--lost { border-color: var(--border-quiet); background: var(--surface-alt); transform: scale(.75); }
.compare-dot--booked { width: 28px; height: 28px; background: var(--forest); }
.compare-dot--booked svg { width: 16px; height: 16px; fill: none; stroke: var(--surface-page); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.compare-dot:nth-child(2) { --i: 1; } .compare-dot:nth-child(3) { --i: 2; } .compare-dot:nth-child(4) { --i: 3; }
.compare-dot:nth-child(5) { --i: 4; } .compare-dot:nth-child(6) { --i: 5; } .compare-dot:nth-child(7) { --i: 6; }
.compare-dot:nth-child(8) { --i: 7; } .compare-dot:nth-child(9) { --i: 8; } .compare-dot:nth-child(10) { --i: 9; }
.compare-dot:nth-child(11) { --i: 10; } .compare-dot:nth-child(12) { --i: 11; }

/* one cycle: the finished picture holds, everything clears, the dots arrive in turn, then most leads fade to a ring while every consult is booked */
@keyframes loop-dot-lost {
  0%, 18% { opacity: 1; transform: scale(.75); border-color: var(--border-quiet); background-color: var(--surface-alt); }
  24% { opacity: 0; transform: scale(.75); border-color: var(--border-quiet); background-color: var(--surface-alt); }
  25% { opacity: 0; transform: translateX(-12px); border-color: transparent; background-color: var(--fill-quiet); }
  34%, 56% { opacity: 1; transform: none; border-color: transparent; background-color: var(--fill-quiet); }
  68%, 100% { opacity: 1; transform: scale(.75); border-color: var(--border-quiet); background-color: var(--surface-alt); }
}
@keyframes loop-dot-kept {
  0%, 18% { opacity: 1; transform: none; }
  24% { opacity: 0; transform: none; }
  25% { opacity: 0; transform: translateX(-12px); }
  34%, 100% { opacity: 1; transform: none; }
}
@keyframes loop-dot-booked {
  0%, 18% { opacity: 1; transform: none; background-color: var(--forest); }
  24% { opacity: 0; transform: none; background-color: var(--forest); }
  25% { opacity: 0; transform: translateX(-12px) scale(.6); background-color: var(--fill-quiet); }
  34%, 54% { opacity: 1; transform: scale(.6); background-color: var(--fill-quiet); }
  64%, 100% { opacity: 1; transform: none; background-color: var(--forest); }
}
@keyframes loop-check { 0%, 18% { opacity: 1; } 24%, 58% { opacity: 0; } 66%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .is-looping .compare-dot { animation: loop-dot-kept calc(3 * var(--hold-lower-third)) var(--ease-standard) infinite; animation-delay: calc(var(--i, 0) * 2 * var(--stagger-ring)); }
  .is-looping .compare-dot--lost { animation-name: loop-dot-lost; }
  .is-looping .compare-dot--booked { animation-name: loop-dot-booked; animation-delay: calc(var(--i, 0) * var(--rest-bloom)); }
  .is-looping .compare-dot--booked svg { animation: loop-check calc(3 * var(--hold-lower-third)) var(--ease-standard) infinite; animation-delay: calc(var(--i, 0) * var(--rest-bloom)); }
}

.line-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-12); margin-top: var(--space-16); }
/* a claim waiting on its source, on a light band */
.claim-box { max-width: var(--maxw-prose); padding: var(--space-4) var(--space-5); border: var(--border-w) dashed var(--border-input); border-radius: var(--radius-input); color: var(--text-muted); }

@media (max-width: 768px) {
  .compare { gap: var(--space-10); }
  .compare-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- why us: a full-bleed forest band (homepage) ---------- */
/* Full viewport width like .hero, flat forest: no motif, no texture, no gradient. It opens on a disc edge
   (div.arc.arc--above, see "disc-edge transitions"). Cream text; the one italic phrase in the h2 takes rose on forest
   and focus takes --focus-ring-on-strong, both from .on-strong. The head: the h2 left, the partner line right, on one
   baseline. Then the founders as four portrait cards, then the foot: the experience fact in serif and the About button.
   Markup: section.forest-band.on-strong > .wrap > .why (h2 + p.why-lead) + ul.team-cards > li.team-card
   (.team-card-frame + h3.team-card-name + p.team-card-role + p.team-card-service) + .team-foot (see "The band's foot") */
.forest-band { padding-block: var(--section-gap); background: var(--surface-strong); color: var(--text-on-strong); }
.why { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6) var(--space-16); align-items: end; }
.why h2 { max-width: 13em; }
.why-lead { max-width: 30em; font-size: var(--text-body-l); line-height: 1.55; color: var(--sage-mist); }
@media (max-width: 1024px) {
  .why { grid-template-columns: minmax(0, 1fr); }
}

/* The founders as portrait cards (homepage why-us band, from 2026-10-28): four across, two across under 1024px, compact
   rows (frame left) under 560px. Every card has the same 4:5 frame with the card radius, so the four read as one set:
   the real photo fills it, or, until that founder's photo exists, the frame is ink with the role disc small at its
   centre (never empty, never initials, never a generated face). Below the frame: who (name, roles), then what they do
   for you (the service) in sage mist, grouped by space, with no rule between them. Faces never move; the cards rise once
   in turn (data-anim="stagger"). */
.team-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); margin-top: clamp(56px, 7vw, 88px); }
.team-card { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; }
.team-card-frame { display: grid; place-items: center; aspect-ratio: 4 / 5; margin-bottom: var(--space-5); overflow: hidden; border-radius: var(--radius-card); background: var(--ink); }
.team-card-frame img { width: 100%; height: 100%; object-fit: cover; }
.team-card-frame--disc .founder-art { width: 36%; height: auto; }
.team-card-frame--disc .founder-art circle { fill: var(--forest); }
.team-card-frame--disc .founder-art path { fill: var(--sage); }
.team-card-name { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.1; }
.team-card-role { margin-top: var(--space-1); font-size: var(--text-label); font-weight: 600; letter-spacing: var(--tracking-label); color: var(--sage-mist); }
.team-card-service { align-self: start; margin-top: var(--space-3); line-height: 1.45; color: var(--sage-mist); }
/* The band's foot, from 2026-10-29: the experience fact as the band's closing statement on an ink plate (the second
   place ink is a fill, after the cards' frames), with no rule above it. "30+" is an em, so its rose on forest is the
   italic accent (8.31:1 on ink); the line beside it is cream serif (13.78:1). If the foot is below the screen at load,
   site.js marks it .is-waiting (a faint cream track) and swaps that for .is-playing when it arrives: the rose fills
   "30+" from left to right, once. Static and complete under reduced motion, with animations paused, without
   JavaScript, or when the foot is already on screen at load.
   Markup: div.team-foot[data-fill] > p.team-foot-fact (span.team-foot-num > em[data-num="30+"] + span.team-foot-line)
   + a.btn.btn--secondary */
.team-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6) var(--space-10); margin-top: clamp(56px, 7vw, 96px); padding: var(--space-8) clamp(24px, 4vw, 48px); border-radius: var(--radius-panel); background: var(--ink); }
.team-foot-fact { display: flex; align-items: center; gap: var(--space-2) var(--space-8); min-width: 0; }
.team-foot-num { font-family: var(--font-display); font-size: var(--text-display-xl); line-height: .9; }
.team-foot-num em { position: relative; display: inline-block; padding-right: .08em; color: var(--rose-on-forest); }
.team-foot-line { max-width: 18em; font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.2; }
.team-foot .btn { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .team-foot:is(.is-waiting, .is-playing) .team-foot-num em { color: var(--line-on-strong); }
  .team-foot:is(.is-waiting, .is-playing) .team-foot-num em::after { content: attr(data-num) / ""; position: absolute; inset: 0; color: var(--rose-on-forest); clip-path: inset(-10% 100% -10% -5%); }
  .team-foot.is-playing .team-foot-num em::after { animation: team-foot-fill calc(var(--rest-bloom) * 2) var(--ease-standard) var(--dur-slow) forwards; }
}
@keyframes team-foot-fill { to { clip-path: inset(-10% -10% -10% -5%); } }
@media (max-width: 1024px) {
  .team-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card-frame { max-width: 280px; }
}
@media (max-width: 768px) {
  .team-foot { flex-direction: column; align-items: flex-start; }
  .team-foot-fact { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .team-cards { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); }
  .team-card { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: none; column-gap: var(--space-4); align-items: start; }
  .team-card > * { grid-column: 2; }
  .team-card-frame { grid-column: 1; grid-row: 1 / span 3; margin: 0; border-radius: var(--radius-input); }
}

/* ---------- the role disc ---------- */
/* One disc per role, cut like the mark's outer ring, its crescent low (like the mark's bottom disc). Never rose. Used
   small in the sign-off (svg.signoff-disc.founder-art, see "signed samples"), in About's photo slot when there is no
   real photo yet (.person-photo--disc > svg.founder-art) and in the homepage's founder cards (.team-card-frame--disc).
   Forest disc, cream crescent; on the cards' ink frame the crescent is sage (see "The founders as portrait cards"). */
.founder-art { display: block; transform: rotate(-90deg); }
.founder-art circle { fill: var(--forest); }
.founder-art path { fill: var(--surface-page); }

/* About, from 2026-10-28: the founders in a 2 x 2 grid. Each card is a 4:5 portrait (or the role disc when there is no
   real photo) with, to its right, the name, the roles they cover, what they do, their background and their signature.
   One column of cards under 1024px; under 560px the portrait sits above the text.
   Markup: .team-grid > article.person.person--named#kate > span.person-anchor#sales (one per role, kept as link targets
   for /about#<role>) + .person-photo (img, or .person-photo--disc > svg.founder-art) + h3.person-name + p.person-role
   + p.person-did + p.person-bio + p.person-quote + span.signature > em
   The two cards in a row share their six text rows (subgrid, from 2026-10-29), so each line starts level with its
   neighbour's: the quotes begin on one line however long the bios above them run. The last row is flexible and takes
   whatever height the portrait needs beyond the text, as it did inside each card before. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto auto auto auto auto 1fr;
  gap: var(--space-12) var(--gutter);
}
.team-grid > .person--named {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-row: span 6;
  grid-template-rows: subgrid;
  gap: var(--space-2) var(--space-6);
  align-items: start;
  padding-top: var(--space-6);
  border-top: var(--border-w) solid var(--border-quiet);
}
.person--named > * { grid-column: 2; }
.person--named > .person-photo { grid-column: 1; grid-row: 1 / span 6; width: 100%; margin: 0; }
.person-anchor { position: absolute; top: 0; left: 0; }
.person-photo--disc { border: 0; }
.person-photo--disc .founder-art { width: 56%; height: auto; }
.person--named .person-did { font-size: var(--text-body-m); color: var(--text-muted); }
.person-bio { font-size: var(--text-body-m); line-height: 1.55; }
/* the founder's own line about practices, from their bio, in serif quotes (roman: italic comes from markup only).
   On hover the quote turns deep rose (8.43:1 on cream), the colour of the signature under it: a written exception to
   rose's scope (design guideline v2.30), for this hover only. Never a link, never rose at rest. */
.person-quote {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1.3;
  transition: color var(--dur-med) var(--ease-standard);
}
.person-quote:hover { color: var(--deep-rose); }
.person--named .signature { grid-row: 6; align-self: end; font-size: var(--text-h3); }
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
  .team-grid > .person--named { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-auto-rows: auto; }
  .team-grid > .person--named { grid-template-columns: minmax(0, 1fr); grid-row: auto; grid-template-rows: none; }
  .person--named > *, .person--named > .person-photo, .person--named .signature { grid-column: 1; grid-row: auto; }
  .person--named > .person-photo { width: 160px; margin-bottom: var(--space-2); }
}

/* The selector (About #why-switch, from 2026-10-29): a set the visitor picks from. Each item is a frustration in the
   owner's words (h3.pick-said, serif) and what we do instead (div.pick-answer: an optional chip, a serif lead line, the
   paragraph, a small secondary button). Without JavaScript the items are hairline rows, quote beside answer. site.js
   adds .is-picker: the quotes become a column of buttons (aria-expanded, aria-controls; Up and Down move between them)
   and the open answer is one sticky card beside them, the other answers hidden. Under 900px the open answer sits under
   its quote. Markup: div.pick[data-pick] > div.pick-item > h3.pick-said + div.pick-answer#pick-<n> (span.chip?
   + p.pick-lead + p + a.btn.btn--secondary.btn--small) */
.pick { display: grid; max-width: 1040px; margin-inline: auto; border-top: var(--border-w) solid var(--border-quiet); }
.pick-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4) var(--space-12); align-items: start; padding-block: var(--space-8); border-bottom: var(--border-w) solid var(--border-quiet); }
.pick-said { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.2; color: var(--text-body); }
.pick-answer { display: grid; justify-items: start; gap: var(--space-4); }
.pick-lead { font-family: var(--font-display); font-size: var(--text-h3); line-height: 1.2; }
.pick-answer p:not(.pick-lead) { font-size: var(--text-body-m); line-height: 1.55; }
.pick.is-picker { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: repeat(var(--pick-rows, 7), auto) 1fr; gap: var(--space-1) var(--space-12); align-items: start; max-width: 1120px; border-top: 0; }
.pick.is-picker .pick-item { display: contents; }
.pick.is-picker .pick-said { grid-column: 1; font-size: var(--text-h3); }
.pick-tab { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: var(--space-4); align-items: baseline; width: 100%; min-height: 44px; padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--radius-input); background: none; font: inherit; color: var(--text-muted); text-align: left; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.pick-tab::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--border-input); border-radius: 50%; translate: 0 -2px; }
.pick-tab:hover { color: var(--text-body); }
.pick-tab[aria-expanded="true"] { background: var(--surface-page); color: var(--text-body); }
.pick-tab[aria-expanded="true"]::before { border-color: var(--forest); background: var(--forest); }
.pick.is-picker .pick-answer { grid-column: 2; grid-row: 1 / -1; position: sticky; top: calc(var(--header-h) + var(--space-8)); gap: var(--space-5); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-panel); background: var(--surface-page); box-shadow: var(--shadow-2); }
.pick.is-picker .pick-lead { font-size: var(--text-display-m); line-height: 1.1; }
.pick.is-picker .pick-answer p:not(.pick-lead) { font-size: var(--text-body-l); }
@media (max-width: 900px) {
  .pick.is-picker { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .pick.is-picker .pick-said { grid-column: 1; }
  .pick.is-picker .pick-answer { grid-column: 1; grid-row: auto; position: static; margin-block: var(--space-2) var(--space-4); }
}
@media (max-width: 768px) {
  .pick-item { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-6); }
}

/* ---------- commitments ---------- */

/* One sage mist panel: the commitments in a 2 x 2 (four) or a row of three (.commit-grid--three), each with its 1.5px
   line icon, or its numeral when the points are a sequence. Flat, no texture.
   Markup: .commit-panel > (.section-head | .head-row) + .commit-grid(--three) > article.commit-item > (svg.commit-icon | span.commit-num)
   + h3.h3 + p (+ a.btn.btn--secondary.btn--small), and, optionally, p.commit-note after the grid. On a field band the panel is cream. */
.commit-panel { padding: clamp(32px, 5vw, 72px); border-radius: var(--radius-panel); background: var(--surface-panel); }
.section--alt .commit-panel { background: var(--surface-page); }
.commit-panel .section-head, .commit-panel .head-row { margin-bottom: var(--space-10); }
.commit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-16); }
.commit-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-10); }
.commit-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: start;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-8);
  border-top: var(--border-w) solid var(--border-quiet);
}
.commit-item > :is(.commit-icon, .commit-num) { grid-row: 1 / span 2; margin-top: 2px; }
.commit-item > :not(.commit-icon):not(.commit-num) { grid-column: 2; justify-self: start; }
/* a set: no numeral and no icon, so the item is one column (numerals are for sequences only, guideline section 6) */
.commit-grid .commit-item:not(:has(> .commit-icon, > .commit-num)) { grid-template-columns: minmax(0, 1fr); }
.commit-grid .commit-item:not(:has(> .commit-icon, > .commit-num)) > * { grid-column: 1; }
.commit-item p { color: var(--text-body); max-width: 30em; }
.commit-panel .commit-note { margin-top: var(--space-6); color: var(--text-muted); }
.commit-icon { width: 32px; height: 32px; fill: none; stroke: var(--forest); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1024px) {
  .commit-grid--three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .commit-grid { grid-template-columns: minmax(0, 1fr); }
  .commit-item { padding-block: var(--space-6); }
}

/* ---------- the timeline ---------- */
/* A true sequence on a time axis (guideline section 6): /services#after-yes (horizontal, in the commit panel) and the
   homepage's What happens after you say yes (.timeline--vertical, beside the report). Each stop: when it happens
   (a sentence-case label in label sage, approved timings only; never tracked caps above the title), a node on the sage track holding the face of the founder who leads it
   (the role disc until a photo exists; .timeline-node--team for the founders together), the step's title and its line
   word for word, "With [name], [role]", and optionally "Your part", what the practice brings to that stop. Two stops
   that share a date (.timeline-stop--paired, the first with data-pair) carry one bracket over both on desktop; their
   own "when" stays in the markup for screen readers and shows on phones. Horizontal from 1025px; vertical below, and
   always for .timeline--vertical. Faces are decorative (alt=""), since the name follows.
   Markup: ol.timeline > li.timeline-stop(.timeline-stop--paired[data-pair]) > p.timeline-when + span.timeline-node
   (img | svg.founder-art | span x n) + div.timeline-body (h3.timeline-title + p.timeline-text + p.timeline-by)
   + p.timeline-yours? (span.timeline-yours-label + text); then, after the list, p.timeline-end (strong + span + a.btn)
   for what follows the last stop. Across a horizontal timeline the four parts share rows (subgrid), so the "when"s,
   the nodes, the bodies and the "Your part" notes each line up. */
.timeline { --timeline-bg: var(--surface-panel); --timeline-stops: 5; position: relative; display: grid; grid-template-columns: repeat(var(--timeline-stops), minmax(0, 1fr)); grid-template-rows: 56px 40px auto auto; gap: 0 var(--space-6); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 76px; height: 2px; border-radius: var(--radius-pill); background: var(--fill-quiet); }
.timeline-stop { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
.timeline-when { align-self: end; padding-bottom: var(--space-3); font-size: var(--text-label); font-weight: 600; line-height: 1.3; letter-spacing: var(--tracking-label); color: var(--text-muted); }
.timeline-node { position: relative; z-index: 1; display: block; width: 40px; height: 40px; overflow: hidden; border: 3px solid var(--timeline-bg); border-radius: 50%; background: var(--ink); }
.timeline-node :is(img, .founder-art), .timeline-node--team > span > :is(img, .founder-art) { width: 100%; height: 100%; object-fit: cover; }
.timeline-node--team { display: flex; width: auto; overflow: visible; border: 0; background: none; }
.timeline-node--team > span { flex: none; width: 40px; height: 40px; margin-right: -12px; overflow: hidden; border: 3px solid var(--timeline-bg); border-radius: 50%; background: var(--ink); }
.timeline-body { padding-top: var(--space-5); }
.timeline-title { font-size: var(--text-h3); font-weight: 600; line-height: 1.25; }
.timeline-text { margin-top: var(--space-2); font-size: var(--text-body-s); line-height: 1.55; }
.timeline-by { margin-top: var(--space-3); font-size: var(--text-caption); font-weight: 600; line-height: 1.4; color: var(--text-muted); }
.timeline-yours { align-self: start; margin-top: var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-input); background: var(--surface-page); font-size: var(--text-caption); line-height: 1.45; }
.timeline-yours-label { display: block; margin-bottom: 2px; font-weight: 600; color: var(--forest); }
.timeline-end { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-6); margin-top: var(--space-10); padding: var(--space-5) var(--space-6); border-radius: var(--radius-card); background: var(--surface-strong); color: var(--text-on-strong); }
.timeline-end strong { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.1; }
.timeline-end span { color: var(--sage-mist); }
@media (min-width: 1025px) {
  .timeline:not(.timeline--vertical) .timeline-stop--paired .timeline-when { clip-path: inset(50%); }
  .timeline:not(.timeline--vertical) .timeline-stop--paired[data-pair]::before { content: ""; position: absolute; left: 0; top: 26px; width: calc(200% + var(--space-6)); height: 30px; border: var(--border-w-strong) solid var(--border-quiet); border-bottom: 0; border-radius: var(--radius-input) var(--radius-input) 0 0; }
  .timeline:not(.timeline--vertical) .timeline-stop--paired[data-pair]::after { content: attr(data-pair) / ""; position: absolute; left: calc(100% + var(--space-3)); top: 16px; translate: -50% 0; padding-inline: var(--space-2); background: var(--timeline-bg); font-size: var(--text-label); font-weight: 600; letter-spacing: var(--tracking-label); color: var(--text-muted); white-space: nowrap; }
}
.timeline--vertical { --timeline-bg: var(--surface-page); grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: var(--space-8); padding-left: 64px; }
.timeline--vertical::before { left: 19px; right: auto; top: var(--space-2); bottom: var(--space-2); width: 2px; height: auto; }
.timeline--vertical .timeline-stop { grid-row: auto; grid-template-rows: none; }
.timeline--vertical .timeline-node { position: absolute; left: -64px; top: 0; }
.timeline--vertical .timeline-when { padding: 0; }
.timeline--vertical .timeline-body { padding-top: var(--space-2); }
.timeline--vertical .timeline-node--team > span:not(:first-child) { display: none; }
@media (max-width: 1024px) {
  .timeline { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: var(--space-8); padding-left: 64px; }
  .timeline::before { left: 19px; right: auto; top: var(--space-2); bottom: var(--space-2); width: 2px; height: auto; }
  .timeline-stop { grid-row: auto; grid-template-rows: none; }
  .timeline-node { position: absolute; left: -64px; top: 0; }
  .timeline-when { padding: 0; }
  .timeline-body { padding-top: var(--space-2); }
  .timeline-node--team > span:not(:first-child) { display: none; }
}

/* the services page's "Other things we can take on", split the way /services/add-ons is: the monthly add-on, the
   projects, then coming soon. Markup: .extras-groups > .extras-group > h3.h3 + p.muted + ul.link-rows (or p.help-later) */
.extras-groups { display: grid; gap: var(--space-12); }
.extras-group { display: grid; gap: var(--space-3); }
.extras-group > .muted { margin-bottom: var(--space-2); }
.extras-group > .help-later { margin-top: 0; }

/* a plain numbered list, for a column beside something else */

.commit-list { display: grid; width: 100%; border-top: var(--border-w) solid var(--border-quiet); }
.commit-list > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding-block: var(--space-5); border-bottom: var(--border-w) solid var(--border-quiet); }
.commit-num { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.1; color: var(--forest); }
.commit-list p { grid-column: 2; color: var(--text-muted); }
.commit-note { margin-top: var(--space-10); font-size: var(--text-body-l); }
.split-aside .commit-note { margin-top: 0; }

/* ---------- link rows ---------- */
/* The services sold one at a time, and who we work with: hairline rows in a field band, each row a link.
   The homepage lists the services once, in How we help's third row (.beyond-list); the services page uses these rows.
   Markup: ul.link-rows > li > a.link-row > span.link-row-title + span.link-row-line + span.link-row-ask > svg.arrow */
.link-rows { display: grid; border-top: var(--border-w) solid var(--border-quiet); }
.link-rows > li { border-bottom: var(--border-w) solid var(--border-quiet); }
.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-6);
  padding-block: var(--space-5);
  color: var(--text-body);
  text-decoration: none;
}
.link-row-title { font-family: var(--font-display); font-size: var(--text-h3); line-height: 1.2; }
.link-row-line { grid-column: 1; max-width: 34em; font-size: var(--text-body-s); line-height: 1.5; color: var(--text-muted); }
.link-row-ask { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-body-s); font-weight: 600; white-space: nowrap; }
.link-row .arrow { width: 22px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.link-row:hover .link-row-title, .link-row:focus-visible .link-row-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .link-row .arrow { transition: transform var(--dur-med) var(--ease-standard); }
  .link-row:hover .arrow, .link-row:focus-visible .arrow { transform: translateX(4px); }
}
@media (max-width: 640px) {
  .link-row { grid-template-columns: minmax(0, 1fr); }
  .link-row-ask { grid-column: 1; grid-row: auto; margin-top: var(--space-2); }
}

/* the three services with the founder who runs each (About, from 2026-10-29): a set, so no numerals. Each is a filled
   sage mist tile (like the plan cards) and the whole tile is the link: the face (or the role disc), the service in serif,
   "[name] runs it". Markup: .team-runs > p.label.team-runs-label + ul.owners > li > a.owner > span.owner-face (img |
   svg.founder-art) + span.owner-service + span.owner-who + svg.arrow */
.team-runs { margin-top: var(--space-12); }
.team-runs-label { color: var(--text-muted); margin-bottom: var(--space-4); }
.owners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.owner { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); align-items: center; height: 100%; padding: var(--space-5); border-radius: var(--radius-card); background: var(--surface-panel); color: var(--text-body); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-standard); }
.owner-face { grid-row: 1 / span 2; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--ink); }
.owner-face :is(img, .founder-art) { width: 100%; height: 100%; object-fit: cover; }
.owner-service { align-self: end; font-family: var(--font-display); font-size: var(--text-h3); line-height: 1.15; text-wrap: balance; }
.owner-who { grid-column: 2; align-self: start; font-size: var(--text-label); font-weight: 600; color: var(--text-muted); }
.owner .arrow { grid-column: 3; grid-row: 1 / span 2; width: 22px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform var(--dur-fast) var(--ease-standard); }
.owner:hover { background: var(--surface-alt); }
.owner:hover .arrow, .owner:focus-visible .arrow { transform: translateX(3px); }
@media (max-width: 900px) { .owners { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .owner, .owner .arrow { transition: none; } .owner:hover .arrow, .owner:focus-visible .arrow { transform: none; } }

.help-later { margin-top: var(--space-6); color: var(--text-muted); }

/* ---------- questions as visible headings ---------- */

.questions { display: grid; gap: var(--space-8); max-width: var(--maxw-prose); }
.question { display: grid; gap: var(--space-2); padding-top: var(--space-6); border-top: var(--border-w) solid var(--border-quiet); }

.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-16); border-top: var(--border-w) solid var(--border-quiet); }
.qa-item { display: grid; align-content: start; gap: var(--space-3); padding-block: var(--space-8); border-bottom: var(--border-w) solid var(--border-quiet); }
.qa-item h3 { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.15; }
.qa-item p { color: var(--text-muted); }
.qa-item a { color: var(--text-body); }

@media (max-width: 768px) {
  .qa { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- questions: an accordion on native details and summary ---------- */
/* <div class="faq"><details class="faq-item"><summary class="faq-q"><h3 class="faq-title">…</h3>
   <span class="faq-icon" aria-hidden="true"></span></summary><div class="faq-a"><p>…</p></div></details></div>
   Works with no JavaScript. site.js adds the open and close animation when motion is allowed. */

.faq { max-width: 840px; margin-inline: auto; border-top: var(--border-w) solid var(--border-quiet); }
/* a questions section reads as one centred column: its head lines up with the accordion */
.wrap:has(> .faq) > :is(.section-head, .head-row) { max-width: 840px; margin-inline: auto; }
.faq-item { border-bottom: var(--border-w) solid var(--border-quiet); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 44px;
  padding-block: var(--space-5);
  border-radius: var(--radius-input);
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.faq-title { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 400; line-height: 1.15; text-wrap: balance; }

/* a plus that turns to a minus */
.faq-icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border: var(--border-w) solid var(--border-input);
  border-radius: 50%;
  color: var(--forest);
}

.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 1px);
  width: 14px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform var(--dur-med) var(--ease-out);
}

.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: none; }
.faq-item.is-closing .faq-icon::after { transform: rotate(90deg); }

.faq-a { display: grid; gap: var(--space-3); max-width: var(--maxw-prose); overflow: hidden; color: var(--text-muted); }
/* the space under an answer lives inside it, so the height can run to zero */
.faq-a::after { content: ""; height: var(--space-3); }
.faq-a a { color: var(--text-body); }

/* ---------- a quiet call to action at the end of a mid-page section ---------- */

.cta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-12);
  font-size: var(--text-body-l);
  text-align: center;
}

/* ---------- numbered steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  border-top: var(--border-w) solid var(--border-quiet);
}

.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { display: grid; align-content: start; gap: var(--space-3); padding-top: var(--space-6); }
.step-num { font-family: var(--font-display); font-size: var(--text-display-m); line-height: 1; color: var(--forest); }
.step p { color: var(--text-muted); }
.panel .step p { color: var(--text-body); }
/* on forest */
.on-strong .step p { color: var(--sage-mist); }
.on-strong .step-num { color: var(--text-on-strong); }
.on-strong .steps, .on-strong .step { border-color: var(--line-on-strong); }
.on-strong .on-light .step p { color: var(--text-muted); }
.on-strong .on-light .step-num { color: var(--forest); }

@media (max-width: 1024px) {
  .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .steps, .steps--four { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 0; }
  .step { padding-block: var(--space-6); border-top: var(--border-w) solid var(--border-quiet); }
}

/* ---------- plain statement ---------- */

.statement { display: grid; gap: var(--space-6); max-width: 900px; }
.statement p { max-width: var(--maxw-prose); font-size: var(--text-body-l); }

/* ---------- panels and cards ---------- */

.panel {
  padding: var(--space-12);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}

.panel-head { display: grid; gap: var(--space-4); max-width: var(--maxw-prose); margin-bottom: var(--space-10); }
.panel-head p { font-size: var(--text-body-l); }
.panel-foot { display: grid; gap: var(--space-1); margin-top: var(--space-10); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: var(--surface-panel);
}

.section--alt .card { background: var(--surface-page); box-shadow: var(--shadow-2); }
.card-foot { display: grid; gap: var(--space-1); margin-top: var(--space-3); }

.plain-list { display: grid; gap: var(--space-4); max-width: var(--maxw-prose); }
.plain-list li { padding-top: var(--space-4); border-top: var(--border-w) solid var(--border-quiet); font-size: var(--text-body-l); }

@media (max-width: 1024px) {
  .cards, .cards--two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .panel { padding: var(--space-8) var(--space-5); }
}

/* ---------- values ---------- */

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10) var(--gutter); }
.value { display: grid; align-content: start; gap: var(--space-2); padding-top: var(--space-6); border-top: var(--border-w) solid var(--border-quiet); }

@media (max-width: 768px) {
  .values { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}

/* ---------- motif (the bloom as a ground or a hairline) ---------- */
/* A ground covers at most 40% of its surface and never sits behind text under 18px. */

.motif-ground { background-repeat: no-repeat; background-size: cover; background-position: center; }
.motif-ground--light { background-image: url("/assets/motif/rose-motif-ground-a-light.svg"); }
.motif-ground--dark { background-image: url("/assets/motif/rose-motif-ground-a-dark.svg"); }
.motif-ground--rose { background-image: url("/assets/motif/rose-motif-ground-a-rose.svg"); }
.motif-ground--b.motif-ground--light { background-image: url("/assets/motif/rose-motif-ground-b-light.svg"); }
.motif-ground--b.motif-ground--dark { background-image: url("/assets/motif/rose-motif-ground-b-dark.svg"); }
.motif-ground--c.motif-ground--light { background-image: url("/assets/motif/rose-motif-ground-c-light.svg"); }
.motif-ground--c.motif-ground--dark { background-image: url("/assets/motif/rose-motif-ground-c-dark.svg"); }
.motif-hairline { background-image: url("/assets/motif/rose-motif-hairline.svg"); background-repeat: no-repeat; background-size: 140% auto; background-position: 60% 40%; }
.motif-hairline--dark { background-image: url("/assets/motif/rose-motif-hairline-dark.svg"); }

/* ---------- texture (the motif in the hero) ---------- */
/* Guideline v2.4, grown by Direction B: on the website the motif appears once per page, as a round D2 dark ground
   window (crop a) in the hero, and the sticky header mark doesn't count against it. Everything else (bands, closing
   panel, footer, cards, forms) stays flat. Limits: the window covers at most 40% of the hero, never sits behind text
   under 18px and never moves. brand/design-system/check/motif-coverage.mjs measures both on every page.
   Two forms:
   - the corner window (.hero::before), for heroes with no figure (privacy, terms, ai-policy, accessibility, 404).
     --tex-r is its radius, --tex-a / --tex-b how far its centre sits in from the top-right corner. The vars live on
     .hero so the check can resolve them.
   - the stage window (.hero--window + div.bloom-window.motif inside figure.hero-figure--window), for every hero with a
     figure: the corner window grown into the hero's right-hand stage. What the hero shows sits on its rim, on its own
     opaque card; cream-on-forest captions stay off it (20em). */

.hero {
  position: relative;
  isolation: isolate;
  --tex-r: clamp(140px, 16vw, 256px);
  --tex-a: calc(var(--tex-r) * .5);
  --tex-b: calc(var(--tex-r) * .3);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/motif/rose-motif-ground-a-dark.svg") no-repeat;
  background-size: calc(var(--tex-r) * 2) calc(var(--tex-r) * 2);
  background-position: right calc(var(--tex-a) - var(--tex-r)) top calc(var(--tex-b) - var(--tex-r));
  clip-path: circle(var(--tex-r) at calc(100% - var(--tex-a)) var(--tex-b));
  pointer-events: none;
}

@media (max-width: 768px) {
  /* the hero copy fills the width here: keep the window in the corner, above and beside the headline only */
  .hero { --tex-r: 120px; --tex-a: 40px; --tex-b: 30px; }
}

/* the stage window. --win-r is its radius; it steps with the viewport and never moves. */
.hero--window::before { content: none; }
.hero-figure--window { --win-r: clamp(170px, 21vw, 310px); position: relative; justify-items: start; align-content: end; min-height: calc(var(--win-r) * 1.7); }
.bloom-window {
  position: absolute;
  top: calc(var(--win-r) * -.42);
  right: calc(var(--win-r) * -.58);
  width: calc(var(--win-r) * 2);
  height: calc(var(--win-r) * 2);
  border-radius: 50%;
  background: url("/assets/motif/rose-motif-ground-a-dark.svg") center / cover no-repeat;
  pointer-events: none;
}
.hero-figure--window > :not(.bloom-window) { position: relative; z-index: 1; }
/* homepage: the founders' note sits on the window's lower-left rim */
.hero-figure--window .note-stage { max-width: 440px; }
/* inner pages: the window sits behind the right half of the sample, so only its opaque cards cross it */
.hero-figure--window.is-sample { --win-r: clamp(130px, 14vw, 210px); min-height: 0; }
.hero-figure--window.is-sample .bloom-window { top: 50%; right: calc(var(--win-r) * -.9); transform: translateY(-50%); }
.hero-figure--window.is-sample :is(.moment-meta, .moment-title, .hero-caption) { max-width: 20em; }
/* the ringing call and its caption share one column, so they share one centre line */
.hero-figure--window.is-sample .call { width: 100%; max-width: calc(20 * var(--text-label)); }
.hero-figure--window.is-sample .call ~ .hero-caption { width: 100%; text-align: center; }

@media (max-width: 1024px) {
  .hero-figure--window { --win-r: 160px; min-height: 0; padding-top: calc(var(--win-r) * .9); justify-items: stretch; }
  .hero-figure--window .bloom-window { top: 0; right: calc(var(--win-r) * -.35); }
  .hero-figure--window .note-stage { max-width: 520px; }
  .hero-figure--window.is-sample { --win-r: 150px; padding-top: 0; }
}
@media (max-width: 768px) {
  .hero-figure--window { --win-r: 130px; padding-top: calc(var(--win-r) * 1.05); }
  .hero-figure--window .bloom-window { right: calc(var(--win-r) * -.55 - var(--margin-outer)); }
  .hero-figure--window.is-sample { --win-r: 120px; padding-top: 0; }
  .hero-figure--window.is-sample .bloom-window { right: calc(var(--win-r) * -.9 - var(--margin-outer)); }
  .hero-figure--window.is-sample :is(.moment-meta, .moment-title, .hero-caption) { max-width: 17em; }
  /* the ringing call's centred lines would cross the window here: set them from the left, clear of it */
  .hero-figure--window.is-sample .call { max-width: calc(17 * var(--text-label)); justify-items: start; text-align: left; }
  .hero-figure--window.is-sample .call ~ .hero-caption { text-align: left; }
}

/* ---------- disc-edge transitions ---------- */
/* The bottom of every forest hero, and the top of the homepage why-us band, end on the edge of a very large disc whose
   extreme point sits at 60% of the width (the bloom's offset centre), with a sage crescent beside it: the gap to a
   smaller disc touching the first at 60%, so it tapers to two points (at most 1.1vw thick, 16px at 1440, about 10px
   on phones). The crescent is decorative sage fill, never text or outline, and never touches type. At most two a page.
   Markup: div.arc.arc--below > section.hero, or div.arc.arc--above > section.forest-band.
   All lengths are vw so the shape is the same at every width: --arc-r is the surface's disc, --arc-m the crescent's
   thickness at 60%, and --arc-r2 = 1 / (2m / D^2 + 1 / r) the smaller disc, D the half-span to the points. */
:root { --arc-r: 400vw; --arc-r2: 238.2vw; --arc-m: 1.1vw; }
@media (max-width: 768px) { :root { --arc-r: 250vw; --arc-r2: 179.2vw; --arc-m: 1.6vw; } }
@media (max-width: 480px) { :root { --arc-r: 250vw; --arc-r2: 153.2vw; --arc-m: 2.56vw; } }

.arc { position: relative; isolation: isolate; }
.arc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  background: var(--sage);
  pointer-events: none;
}
.arc--below > :first-child { clip-path: circle(var(--arc-r) at 60% calc(100% - var(--arc-r))); }
.arc--below::after { top: 0; height: calc(100% + var(--arc-m) + 4px); clip-path: circle(var(--arc-r2) at 60% calc(100% - 4px - var(--arc-r2))); }
.arc--above > :first-child { clip-path: circle(var(--arc-r) at 60% var(--arc-r)); }
.arc--above::after { top: calc(-1 * (var(--arc-m) + 4px)); bottom: 0; clip-path: circle(var(--arc-r2) at 60% calc(4px + var(--arc-r2))); }
/* the corners outside the disc show the band they meet */
.arc--below:has(+ .section--alt), .section--alt + .arc--above { background: var(--surface-alt); }
/* room for the arc: the corners rise or drop by up to 4.5vw (7.3vw on phones) */
.arc--below .hero-panel { padding-bottom: calc(clamp(56px, 7vw, 104px) + 3vw); }
.arc--above .forest-band { padding-top: calc(var(--section-gap) + 3vw); }
@media (max-width: 768px) {
  .arc--below .hero-panel { padding-bottom: calc(var(--space-12) + 6vw); }
  .arc--above .forest-band { padding-top: calc(var(--section-gap) + 6vw); }
}

/* ---------- closing band ---------- */
/* A left-set forest panel: the tagline (or the page's own headline), one line, Get in touch. Flat, no texture. */

.closing { padding-block: var(--section-gap); }
/* One gap above the panel on every page: a cream section before it already leaves the space. */
.section:not(.section--alt) + .closing, .story + .closing { padding-top: 0; }

.closing-panel {
  position: relative;
  display: grid;
  justify-items: start;
  padding: clamp(48px, 7vw, 104px) clamp(24px, 6vw, 88px);
  border-radius: var(--radius-panel);
  background: var(--surface-strong);
  color: var(--text-on-strong);
  text-align: left;
  overflow: hidden;
}

.closing-copy { display: grid; justify-items: start; gap: var(--space-6); }
.closing-copy p { max-width: 24em; color: var(--sage-mist); }
.closing-panel h2 em { color: var(--accent-italic-on-strong); }
.closing-panel .btn:not(.btn--secondary) { border-color: var(--surface-page); background: var(--surface-page); color: var(--forest); }
.closing-panel :focus-visible { outline: 2px solid var(--focus-ring-on-strong); outline-offset: 2px; }

/* ---------- book a call ---------- */

.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-12);
  padding-block: var(--space-16) var(--section-gap);
}

.book-copy { display: grid; gap: var(--space-6); }
.book-copy .body-l { color: var(--text-muted); }
/* the talk points as a checklist: hairline rows, each with a 1.5px line check */
.book-list { display: grid; margin: 0; }
.book-list li { position: relative; padding: var(--space-5) 0 var(--space-5) calc(var(--space-8) + 2px); border-top: var(--border-w) solid var(--border-quiet); font-size: var(--text-body-l); line-height: var(--leading-body); }
.book-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(var(--space-5) + .7em);
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--forest);
  border-bottom: 1.5px solid var(--forest);
  transform: rotate(-45deg);
}
/* the reply promise, signed, in a quiet card under the list */
.book-note { display: grid; justify-items: start; gap: var(--space-3); margin-top: var(--space-2); padding: var(--space-6); border-radius: var(--radius-card); background: var(--surface-panel); }
/* overflow-wrap lets the email address break on the narrowest phones */
.book-note p { font-size: var(--text-body-m); line-height: var(--leading-body); overflow-wrap: anywhere; }
.book-note .signature { font-size: var(--text-h3); }

.form-panel {
  padding: var(--space-10);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}

.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field { display: grid; align-content: start; gap: var(--space-2); }

.field label, .field legend {
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: var(--border-w) solid var(--border-input);
  border-radius: var(--radius-input);
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-text);
  font-size: var(--text-body-s);
  line-height: 1.5;
}

.input:focus-visible {
  padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px);
  border: var(--border-w-strong) solid var(--border-strong);
}

.input[aria-invalid="true"] { border-color: var(--border-error); }
.field-error { font-size: var(--text-caption); line-height: 1.4; color: var(--text-error); }
.helper { font-size: var(--text-caption); line-height: 1.4; color: var(--text-muted); }
/* a link in the small print still gets a 44px target */
.helper a { --link-y: var(--link-flex-y); --link-offset: 3px; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text-body); }

/* Without JavaScript the API sends the visitor back to /book-a-call?sent=1#sent or ?sent=0#not-sent. */
.form-result { display: none; gap: var(--space-3); margin-bottom: var(--space-6); }
.form-result:target { display: grid; }
.js .form-result:target { display: none; }
.form-panel:has(#sent:target) .form { display: none; }
.js .form-panel:has(#sent:target) .form { display: grid; }

.choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: var(--border-w) solid var(--border-input);
  border-radius: var(--radius-pill);
  background: var(--surface-page);
  font-size: var(--text-body-s);
  font-weight: 500;
  line-height: 1.5;
}

.choice input:checked + span {
  border-color: var(--border-strong);
  background: var(--action-primary-bg);
  color: var(--action-primary-text);
}

.choice input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* honeypot: off-screen for people, present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: grid; justify-items: start; gap: var(--space-3); margin-top: var(--space-2); }

.signed-note { display: grid; justify-items: start; gap: var(--space-4); }
.signed-note .signature { margin-top: var(--space-2); }

@media (max-width: 1024px) {
  .book { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}

@media (min-width: 1025px) {
  /* the form is much taller than the copy: the copy follows the scroll, like .split-aside--sticky */
  .book-copy { position: sticky; top: calc(var(--header-h) + var(--space-8)); }
}

@media (max-width: 768px) {
  .book { padding-top: var(--space-10); }
  .form-panel { padding: var(--space-8) var(--space-5); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  /* 16px stops iOS from zooming the page when a field takes focus */
  .input { font-size: var(--text-body-m); }
}

/* ---------- prose pages ---------- */

.prose { display: grid; gap: var(--space-5); max-width: var(--maxw-prose); padding-block: var(--space-16) var(--section-gap); }
.prose h2 { margin-top: var(--space-8); }
.prose ul { display: grid; gap: var(--space-2); padding-left: var(--space-5); list-style: disc; }

/* Founder notes (/notes/*). Markup: article.prose.note > div.note-byline (p "Written by" + span.signature > em role, then p.meta with
   the published and updated time elements) + the note's paragraphs and question h2s, ending in ol.sources (li#source-n > a). */
.note-byline { display: grid; gap: var(--space-2); padding-bottom: var(--space-5); border-bottom: var(--border-w) solid var(--border-quiet); }
.note-byline .signature { display: inline; margin-left: var(--space-1); font-size: var(--text-h3); line-height: 1; }
.prose ol.sources { display: grid; gap: var(--space-2); padding-left: var(--space-5); list-style: decimal; font-size: var(--text-body-s); }
.sources li { overflow-wrap: anywhere; scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
/* The notes list (/notes): link rows with a third line, the byline and date */
.notes-list .link-row-ask { grid-row: 1 / span 3; }
@media (max-width: 640px) { .notes-list .link-row-ask { grid-row: auto; } }

/* A click-to-load video (/audit #sample). Markup: div.video-sample > h3 + p, then figure > a.video-frame[data-video-player]
   (href the MP4; img poster + span.video-play) + figcaption.video-caption, then details.transcript. site.js swaps the
   link for a <video controls> on click, so only the poster loads with the page. */
.video-sample { display: grid; gap: var(--space-4); max-width: 960px; margin: var(--space-16) auto 0; text-align: center; }
.video-sample > p { max-width: 40em; margin-inline: auto; color: var(--text-muted); }
.video-sample figure { margin: var(--space-4) 0 0; }
.video-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-card); background: var(--forest); box-shadow: var(--shadow-3); }
.video-frame img, .video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: var(--radius-pill); background: var(--cream); color: var(--forest); box-shadow: var(--shadow-2); transition: scale var(--dur-fast) var(--ease-standard); }
.video-play svg { width: 32px; height: 32px; margin-left: 4px; fill: currentColor; }
.video-frame:hover .video-play { scale: 1.06; }
@media (max-width: 640px) { .video-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .video-play svg { width: 24px; height: 24px; } }
.video-frame:focus-visible, .video-frame video:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.video-caption { margin-top: var(--space-3); font-size: var(--text-body-s); color: var(--text-muted); }
.transcript { text-align: left; border-top: var(--border-w) solid var(--border-quiet); padding-top: var(--space-4); }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--forest); }
.transcript summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: var(--radius-input); }
.transcript-body { display: grid; gap: var(--space-3); max-width: var(--maxw-prose); margin-top: var(--space-4); }
.transcript-body ol { display: grid; gap: var(--space-1); padding-left: var(--space-5); list-style: decimal; }

/* The audit watch page (/audit/watch?r=…): one practice's own audit video, filled in by site.js from report.json.
   Markup: section.section.audit-watch[data-audit-watch] > .wrap > .audit-watch-inner > p.audit-watch-status
   + div.audit-watch-missing[hidden] (h2 + p + a.btn) + div.audit-watch-body[hidden] (figure > a.video-frame[data-video-player]
   + figcaption.video-caption, then .audit-watch-made (p + p.signed-footer > span.signature > em), then details.transcript). */
.audit-watch-inner { display: grid; gap: var(--space-6); max-width: 960px; margin-inline: auto; }
.audit-watch-status { color: var(--text-muted); text-align: center; }
.audit-watch-missing { display: grid; justify-items: start; gap: var(--space-4); max-width: var(--maxw-prose); }
.audit-watch-missing p { color: var(--text-muted); }
.audit-watch-body { display: grid; gap: var(--space-6); }
.audit-watch-body figure { margin: 0; }
.audit-watch-made { display: grid; gap: var(--space-2); max-width: var(--maxw-prose); }
.audit-watch-made > p:first-child { color: var(--text-muted); }

.notfound { display: grid; justify-items: start; gap: var(--space-6); max-width: var(--maxw-prose); padding-block: var(--section-gap); }

/* ---------- pricing ---------- */

/* The price is a lookup by location count (from 2026-10-29): each card leads with the count (h3.plan-for) and the
   price sits under it; no tier is highlighted. The one cost outside the price follows the cards (p.plans-note).
   Under 1025px the cards are compact rows, count left and price right, so all three and the note fit one screen. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }

.plan {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-8);
  border-radius: var(--radius-card);
  background: var(--surface-panel);
}

.section--alt .plan { background: var(--surface-page); box-shadow: var(--shadow-2); }
.plan-price { font-family: var(--font-display); font-size: var(--text-display-m); line-height: 1; color: var(--forest); }
.plan-price small { margin-left: var(--space-2); font-family: var(--font-text); font-size: var(--text-body-s); font-weight: 500; color: var(--text-muted); }
.plan-for { font-size: var(--text-body-l); font-weight: 600; line-height: 1.3; color: var(--text-body); }
.plans-note { margin-top: var(--space-6); text-align: center; color: var(--text-muted); }

/* What's in the price (inside a .commit-item): a list whose items are divided by hairlines, never closed by one. */
.included { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.included li + li { padding-top: var(--space-3); border-top: var(--border-w) solid var(--border-quiet); }

.tiers { width: 100%; max-width: var(--maxw-prose); border-collapse: collapse; }
.tiers th, .tiers td { padding: var(--space-4) 0; border-top: var(--border-w) solid var(--border-quiet); text-align: left; vertical-align: baseline; }
.tiers th { padding-top: 0; border-top: 0; font-size: var(--text-label); font-weight: 600; letter-spacing: var(--tracking-label); color: var(--text-muted); }
.tiers th:last-child, .tiers td:last-child { text-align: right; }
.tiers .price { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1; color: var(--forest); white-space: nowrap; }

@media (max-width: 1024px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .plan { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-4); padding: var(--space-5) var(--space-6); }
  .plan-price { font-size: var(--text-h2); white-space: nowrap; }
}

/* ---------- footer ---------- */

.site-foot {
  padding-block: var(--space-16) var(--space-8);
  border-radius: 28px 28px 0 0;
  background: var(--surface-strong);
  color: var(--text-on-strong);
}

.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-6) var(--space-12); align-items: start; }
.foot-brand { grid-row: 1 / span 2; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.foot-brand { display: grid; justify-items: start; align-content: start; gap: var(--space-6); }
/* the wordmark with its strap: 200px wide, never smaller */
.foot-wordmark { width: 200px; height: auto; }
.foot-about { max-width: 26em; font-size: var(--text-body-s); color: var(--sage-mist); }
.site-foot .meta { color: var(--sage-mist); }
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); }
/* footer links take the site's link line in cream, with no rest underline (they read as a menu) */
.foot-links a, .foot-contact a { --link-y: var(--link-flex-y); display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--text-on-strong); font-size: var(--text-body-s); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.foot-contact p { min-height: 44px; display: flex; align-items: center; color: var(--sage-mist); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-4);
  border-top: var(--border-w) solid var(--line-on-strong);
}

.foot-legal a { --link-y: var(--link-flex-y); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
/* a button that reads as the meta links beside it: .meta sets the type; this only takes off the button chrome */
.foot-legal .motion-toggle { --link-y: var(--link-flex-y); min-height: 44px; padding: 0; border: 0; background-color: transparent; font-family: inherit; color: var(--sage-mist); text-decoration: none; cursor: pointer; }

/* ---------- pause animations ---------- */
/* WCAG 2.2.2. The control is a script feature, so it shows only with JavaScript, and not under reduced motion,
   where nothing loops. Paused, the looping graphics and the call rings show their still, complete state, as
   they do under reduced motion; site.js stops the homepage steps. One-off entrances still finish. */
.motion-toggle { display: none; }
.js .motion-toggle { display: inline-flex; align-items: center; gap: var(--space-2); }
@media (prefers-reduced-motion: reduce) { .js .motion-toggle { display: none; } }
.motion-paused [data-loop] *, .motion-paused [data-loop] *::before, .motion-paused [data-loop] *::after,
.motion-paused .ring--ping { animation: none !important; }

/* The header's pause control: a 44px icon button before "Get in touch", in sync with the footer's text button
   (site.js). Pause bars while things move, a play triangle once paused; the name is the .sr-only label site.js
   keeps up to date, and aria-pressed says whether animations are paused. Forest icon (8.7:1 on cream) in a
   label sage ring (--border-input, 5.88:1); hover fills sage mist. Markup: nav > .nav-actions >
   button.motion-toggle.motion-toggle--icon[data-motion-toggle][data-label-pause][data-label-play]
   > svg.icon (path.i-pause + path.i-play) + span.sr-only[data-motion-text]; then a.btn.btn--small */
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.motion-toggle--icon {
  flex: none;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: var(--border-w) solid var(--border-input);
  border-radius: 50%;
  background: var(--surface-page);
  color: var(--forest);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.motion-toggle--icon:hover { background: var(--surface-panel); }
.motion-toggle--icon .icon { width: 18px; height: 18px; }
.motion-toggle--icon .i-play { display: none; fill: currentColor; }
.motion-paused .motion-toggle--icon .i-play { display: block; }
.motion-paused .motion-toggle--icon .i-pause { display: none; }
@media (max-width: 768px) {
  .js .nav-actions .btn { flex: 1 1 auto; width: auto; }
}

@media (max-width: 768px) {
  .site-foot { padding-top: var(--space-12); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .foot-brand { grid-row: auto; }
}

/* ---------- components reference page ---------- */

.ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--gutter); align-items: start; }
.ref-item { display: grid; gap: var(--space-4); justify-items: start; min-width: 0; }
.ref-item--wide { grid-column: 1 / -1; }
.ref-item > * { min-width: 0; }
.ref-item > .band, .ref-item > .beat, .ref-item > .run-list, .ref-item > .qa, .ref-item > .commit-list, .ref-item > .ref-stage, .ref-item > .people, .ref-item > .commit-panel, .ref-item > .commit-grid, .ref-item > .beat-screen, .ref-item > .faq, .ref-item > .who-statement { justify-self: stretch; }
.ref-stage > * { justify-self: stretch; }
.ref-stage > .cta-line { justify-self: stretch; margin-top: 0; }
.ref-item > .person { width: 100%; max-width: 280px; }
.ref-name { font-size: var(--text-label); font-weight: 600; line-height: 1.4; color: var(--text-muted); overflow-wrap: anywhere; }
.ref-stage { width: 100%; padding: var(--space-8); border-radius: var(--radius-panel); background: var(--surface-panel); display: grid; justify-items: start; gap: var(--space-4); }
.ref-stage--strong { background: var(--surface-strong); color: var(--text-on-strong); }
.ref-list { display: grid; gap: var(--space-2); max-width: 880px; padding-left: var(--space-5); list-style: disc; font-size: var(--text-body-s); }
.ref-list code { font-size: var(--text-label); color: var(--text-muted); }

@media (max-width: 1024px) {
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .ref-stage { padding: var(--space-5); }
}

/* ---------- motion pass two: small pieces the graphics use ---------- */
/* Everything here is complete and still without JavaScript. site.js plays each graphic once as it arrives. */

/* a hairline that grows under the header once the page has scrolled */
.site-head::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-standard);
}

.site-head.is-scrolled::after { transform: scaleX(1); }

@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  /* the current-page underline draws in */
  .nav-link[aria-current="page"] { position: relative; border-bottom-color: transparent; }
  .nav-link[aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 -2px 0; height: 2px; background: var(--border-strong); transform-origin: left center; animation: draw-x var(--dur-slow) var(--ease-standard) var(--dur-med) both; }
}

/* the practice's own result, ringed at the end of the search animation */
.is-ringed { outline: 2px solid var(--focus-ring); outline-offset: 6px; border-radius: var(--radius-input); }
/* a line that underlines a keyword, and a soft ripple where a click would land: both added by site.js */
.anim-underline { position: absolute; inset: auto 0 -3px 0; height: 2px; border-radius: var(--radius-pill); background: var(--forest); transform-origin: left center; pointer-events: none; }
.anim-ripple { position: absolute; left: 12%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: var(--border-w-strong) solid var(--forest); border-radius: 50%; opacity: 0; pointer-events: none; }
.anim-host { position: relative; }
