/* threeAlpha inner pages: the layouts and components every page except home builds from.
   Loaded by base.html on every page but home (home.html empties the inner_css block), so nothing
   here needs a body:not(.home) scope. Shared primitives (bands, buttons, FAQ) live in system.css;
   DESIGN.md documents the system. */

/* ---------- Page chrome and focus (the page-level rules of the retired template sheet) ---------- */
body:not(.home) { background: var(--page-bg); overflow-x: clip; }
body:not(.home) a:focus-visible,
body:not(.home) button:focus-visible,
body:not(.home) input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

:root {
  --h3-feature: clamp(1.5rem, 2.3vw, 2rem);
  --h3-card: clamp(1.25rem, 1.8vw, 1.5rem);
  --h3-item: 1.125rem;
}

@media (max-width: 479px) {
  .page-wrapper .container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Section header (components/section_header.html) ---------- */
.section-header { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.section-header.is-left { margin-left: 0; text-align: left; }
/* the branches read down one left edge on a phone, so their header does too, as on home */
@media (max-width: 767px) {
  .about-how .section-header { margin-left: 0; text-align: left; }
  .about-how .section-header .section-label { justify-content: flex-start; margin-inline: 0; } /* outranks colour.css, which loads last */
  .about-how .section-heading { text-align: left; }
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  margin: 0 0 1.125rem;
  color: var(--color--gray-3);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-label::before {
  content: "";
  flex: none;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--accent);
}
.section-header.is-left .section-label,
.page-header .section-label { justify-content: flex-start; }
.band-light .section-label { color: var(--band-light-muted); }
.band-light .section-label::before { background: var(--accent-ink); }

.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 380;
  font-optical-sizing: auto;
  font-synthesis: none;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.section-intro {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  color: var(--color--gray-3);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.section-header.is-left .section-intro { margin-left: 0; }
.band-light .section-intro { color: var(--band-light-muted); }

/* ---------- Page header (components/page_header.html): the page's H1 ---------- */
.page-header { max-width: 52rem; }
.page-title {
  margin: 0;
  color: var(--color--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.6vw, 4.25rem);
  font-weight: 380;
  font-optical-sizing: auto;
  font-synthesis: none;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.page-lede {
  max-width: 36rem;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  color: var(--color--gray-5);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- Breadcrumb (components/breadcrumb.html) ----------
   Set as the section label: mono caps behind the accent dot, so it does the label's wayfinding. */
.breadcrumb { margin: 0 0 1.125rem; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .625rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color--gray-3);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.breadcrumb-list::before {
  content: "";
  flex: none;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--accent);
}
.breadcrumb-item { display: flex; align-items: center; gap: .625rem; margin: 0; padding: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--color--gray-3); opacity: .6; }
.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--color--gray-5);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-dark-strong);
  text-underline-offset: .35em;
  transition: color .2s, text-decoration-color .2s;
}
.breadcrumb-link:hover { color: var(--color--white); text-decoration-color: var(--accent); }

/* ---------- Related services (components/related_services.html): a branch, not a list ----------
   This service is the source node; one --line leaves it and branches to a node per related service.
   Wide: the line runs along the top and each branch turns down into its column, every branch starting
   at the source, so lighting one never lights another. Under 992px: a tree down a rail, each branch
   bending off it to its node, level with the name's first line; the rail runs on through the items above.
   A mouse or focus on a service lights its path and sparkles its node (system.css). The name's link
   covers the item. Colours are tokens only, so .band-white would invert it. */
.related {
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --drop: 2.75rem;                          /* wide: the line down from the top to a service's node */
  --bend: 14px;                             /* where a branch turns */
  --rel-line: var(--color--gray-3);         /* 6.2:1 on black: a stroke that carries meaning */
  --rel-lit: var(--color--white);
  --stem: calc(var(--node) / 2 - var(--line) / 2); /* the left edge of a line centred on a node */
}
.related-node { display: block; flex: none; width: var(--node); height: var(--node); border-radius: 50%; background: var(--accent); }
.related-source {
  position: relative;
  display: flex;
  align-items: center;
  gap: .875rem;
  margin: 0;
  padding-bottom: 2rem;
  color: var(--color--gray-3);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.related-source::after { /* the stem: from the source node down to where the branches leave */
  content: "";
  position: absolute;
  left: var(--stem);
  top: .5rem;
  bottom: 0;
  width: var(--line);
  background: var(--rel-line);
  transform-origin: top;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-item { position: relative; margin: 0; padding-top: calc(var(--drop) + var(--node) + 1.125rem); }
.related-item > .related-node { position: absolute; z-index: 2; top: var(--drop); left: 0; }
.related-item::before { /* the branch: from the source's x along the top, then down to this node */
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--k) * (-100% - var(--gap)) + var(--stem));
  width: calc(var(--k) * (100% + var(--gap)) + var(--line));
  height: var(--drop);
  box-sizing: border-box;
  border: 0 solid var(--rel-line);
  border-top-width: var(--line);
  border-right-width: var(--line);
  border-top-right-radius: var(--bend);
}
.related-item:first-child::before { border-top-width: 0; border-radius: 0; }
.related-name {
  width: fit-content;
  margin: 0;
  color: var(--color--white);
  font-size: var(--h3-card);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.related-link { color: inherit; font: inherit; letter-spacing: inherit; text-decoration: none; }
.related-link::after { content: ""; position: absolute; z-index: 3; inset: calc(var(--drop) - .75rem) -.75rem -.75rem; border-radius: 12px; }
.related-arrow { display: inline-block; vertical-align: -.1em; color: var(--accent); transition: transform .3s var(--ease-out); }
.related-summary { max-width: 34ch; margin: .625rem 0 0; color: var(--color--gray-3); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.related-item:is(:hover, :focus-within) .related-summary { color: var(--color--gray-5); }
.related-item:hover .related-arrow { transform: translateX(4px); }
body:not(.home) .related-link:focus-visible { outline: none; } /* the ring goes round the item instead (::after) */
.related-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
/* the lit path: the stem, then this branch (wide), or the rail through the items above it (narrow) */
.related:has(.related-item:is(:hover, :focus-within)) .related-source::after { background: var(--rel-lit); }
.related-item:is(:hover, :focus-within)::before { z-index: 1; border-color: var(--rel-lit); }
.related-item:has(~ .related-item:is(:hover, :focus-within))::after { background: var(--rel-lit); }

@media (max-width: 991px) {
  .related {
    --indent: 2.25rem;                      /* where the copy starts */
    --pad: 1.25rem;                         /* above each name */
    --ny: calc(var(--pad) + var(--h3-card) * .6); /* the node's centre: the name's first line */
    --nx: calc(var(--indent) - var(--node) - .875rem);
    max-width: 38rem;
  }
  .related-source { padding-bottom: .5rem; }
  .related-list { display: block; }
  .related-item { padding: var(--pad) 0 1.25rem var(--indent); }
  .related-item:last-child { padding-bottom: 0; }
  .related-item > .related-node { top: calc(var(--ny) - var(--node) / 2); left: var(--nx); }
  .related-item::before,
  .related-item:first-child::before { /* down the rail, then bending out to the node */
    left: var(--stem);
    width: calc(var(--nx) - var(--stem));
    height: calc(var(--ny) + var(--line) / 2);
    border-width: 0 0 var(--line) var(--line);
    border-radius: 0 0 0 var(--bend);
  }
  .related-item:not(:last-child)::after { /* the rail on through this item to the next */
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--stem);
    width: var(--line);
    background: var(--rel-line);
    transform-origin: top;
  }
  .related-link::after { inset: calc(var(--pad) - .5rem) -.5rem .5rem calc(var(--nx) - .5rem); }
  .related-item:last-child .related-link::after { bottom: -.5rem; }
}

/* the draw: once in view (initDraw), the stem drops, each branch runs out along its line, its node lands
   and its name brightens from muted as the line reaches it. The copy never hides. */
@keyframes related-wide { /* along the top, then down */
  0% { clip-path: inset(0 100% calc(100% - var(--line)) 0); }
  65% { clip-path: inset(0 0 calc(100% - var(--line)) 0); }
  100% { clip-path: inset(0); }
}
@keyframes related-narrow { /* down the rail, then out */
  0% { clip-path: inset(0 calc(100% - var(--line)) 100% 0); }
  60% { clip-path: inset(0 calc(100% - var(--line)) 0 0); }
  100% { clip-path: inset(0); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .related.is-armed { --t0: .35s; }
  html:not(.motion-paused) .related.is-armed .related-source::after { transform: scaleY(0); }
  html:not(.motion-paused) .related.is-armed .related-item::before { clip-path: inset(0 100% 100% 0); }
  html:not(.motion-paused) .related.is-armed .related-item > .related-node { transform: scale(0); }
  html:not(.motion-paused) .related.is-armed .related-name { color: var(--color--gray-3); }
  html:not(.motion-paused) .related.is-armed.is-drawn .related-source::after { transform: none; transition: transform var(--t0) cubic-bezier(.45, 0, .55, 1); }
  html:not(.motion-paused) .related.is-armed.is-drawn .related-item {
    --run: calc(.45s + var(--k) * .2s);     /* a longer branch takes longer, at about one pace */
    --land: calc(var(--t0) + var(--run));
  }
  html:not(.motion-paused) .related.is-armed.is-drawn .related-item::before { clip-path: inset(0); animation: related-wide var(--run) cubic-bezier(.45, 0, .55, 1) var(--t0) both; }
  html:not(.motion-paused) .related.is-armed.is-drawn .related-item > .related-node { transform: none; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1) var(--land); }
  html:not(.motion-paused) .related.is-armed.is-drawn .related-name { color: var(--color--white); transition: color .6s var(--ease-out) var(--land); }
}
@media screen and (prefers-reduced-motion: no-preference) and (max-width: 991px) {
  html:not(.motion-paused) .related.is-armed .related-item:not(:last-child)::after { transform: scaleY(0); }
  html:not(.motion-paused) .related.is-armed.is-drawn .related-item {
    --step: .4s;                            /* each branch starts where the rail reaches it */
    --run: .45s;
    --land: calc(var(--t0) + var(--k) * var(--step) + var(--run));
  }
  html:not(.motion-paused) .related.is-armed.is-drawn .related-item::before { animation: related-narrow var(--run) cubic-bezier(.45, 0, .55, 1) calc(var(--t0) + var(--k) * var(--step)) both; }
  html:not(.motion-paused) .related.is-armed.is-drawn .related-item:not(:last-child)::after { transform: none; transition: transform var(--step) linear calc(var(--t0) + var(--k) * var(--step)); }
}

/* ---------- Closing CTA (components/cta_band.html): one dark card ---------- */
/* the footer's top padding sets the gap below, the same as on home */
.h-section.cta-band-section { padding-bottom: 0; }
.cta-band {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, var(--color--gray-1), var(--color--dark));
  text-align: center;
}
/* the closing line stays in the sans, the same voice as the home page's closing CTA */
.cta-band-heading {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.cta-band-note {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--color--gray-3);
  font-size: var(--_typography---body--body-l);
  line-height: 1.5;
  text-wrap: pretty;
}
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* ---------- Focus on light bands: black ring (the page-level rule sets the white one) ---------- */
body:not(.home) .band-light a:focus-visible,
body:not(.home) .band-light button:focus-visible { outline-color: var(--band-light-text); }

/* ============================================================
   Services index (core/services/index.html)
   ============================================================ */
.h-section.svc-index-hero { padding-top: clamp(8rem, 12vw, 9.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.svc-index-hero .container { position: relative; }

/* ============================================================
   Service pages (core/services/detail.html)
   ============================================================ */

/* ---------- Hero: copy beside the service's diagram, stacked under 992px ---------- */
.h-section.svc-hero { padding-top: clamp(8rem, 12vw, 9.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.svc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 3.5rem);
}
.svc-hero-copy { container-type: inline-size; }
/* Sized from the copy column and the headline's length (--hl-len, set in the template), so every
   headline holds to two lines at any width. Measured in Fraunces 380 across all 11 headlines at
   358-708px: two lines fit while font-size (in cqi) x characters stays above 393; 370 leaves a margin. */
.svc-hero .page-title { font-size: clamp(1.5rem, calc(370cqi / var(--hl-len, 58)), 4rem); }
.svc-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.75rem, 3.5vw, 2.25rem); }
.svc-hero-visual { min-width: 0; }
@media (min-width: 992px) {
  .svc-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 5vw, 5rem); }
}

/* Section headings sit one step under the system H2 here, so the two-line H1 stays the largest type */
.service-page .section-heading { font-size: clamp(1.625rem, 3.4vw, 2.75rem); line-height: 1.1; }

/* ---------- Shared mono kicker: the small headings inside a band (fit lists, Done means, the first call) ---------- */
.svc-kicker {
  margin: 0 0 1.25rem;
  color: var(--color--gray-3);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.band-light .svc-kicker { color: var(--color--gray-3); } /* outranks .band-light h3: a label, not a heading's ink */

/* ---------- What it is and who it fits (components/service_fit.html) ----------
   The statement full width, then two lists: filled nodes for a good fit, hollow for not yet. */
.svc-statement {
  max-width: 52ch; /* Fraunces' 0 is wide: 52ch sets about 75 characters a line, inside the body measure */
  margin: 0;
  color: var(--color--gray-5);
  font-family: var(--font-display);
  font-size: clamp(1.3125rem, 2.1vw, 1.75rem);
  font-weight: 360;
  font-optical-sizing: auto;
  line-height: 1.38;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.svc-fit .section-label { justify-content: flex-start; }
.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
@media (min-width: 768px) {
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fit-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.fit-sign {
  position: relative;
  margin: 0;
  padding: .875rem 0 .875rem calc(var(--node) + 1rem);
  border-bottom: 1px solid var(--line-dark);
  color: var(--color--gray-5);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.fit-sign::before {
  content: "";
  position: absolute;
  top: calc(.875rem + .775em - var(--node) / 2); /* the first line's middle */
  left: 0;
  box-sizing: border-box;
  width: var(--node);
  height: var(--node);
  border: var(--line) solid var(--color--white);
  border-radius: 50%;
  background: var(--color--white);
}
.fit-sign.is-not::before { background: transparent; }
.fit-pointer { display: block; margin-top: .25rem; color: var(--color--gray-3); font-size: 1rem; }
a.fit-pointer {
  width: fit-content;
  color: var(--color--white);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-dark-strong);
  text-underline-offset: .25em;
  transition: text-decoration-color .2s;
}
a.fit-pointer:hover { color: var(--color--white); text-decoration-color: currentColor; }

/* ---------- How it runs: timed rail and spotlight (components/service_steps.html) ----------
   The markup is the finished frame: the rail fully lit and every step in the list. tour.js adds
   .is-touring while the tour runs or is paused, which hides the list and shows the stage; it sets
   data-state (done, current or ahead) on each stop and ledger row, --fill on the rail (0 to 1) and
   --p on the current stop's ring. With no class and no state, everything reads as done. Text never
   drops under 4.5:1; the grey rail and ring hold 3:1 on white. */
.tour {
  --tour-line: #7d838c; /* the rail not yet reached and hollow stops: 3.9:1 on white */
  --tour-muted: #6b7179; /* ledger rows not yet reached: 5:1 on white */
  --tour-ink: var(--band-light-text);
  --tour-edge: rgba(5, 9, 15, .4);
  --tour-dot: 2.25rem;
}

/* the control and the stage ship [hidden]; their display rules below must not undo it */
.tour-ctl[hidden],
.tour-stage[hidden] { display: none; }

/* the control: status on the left, one button on the right */
.tour-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 2rem; }
.band-light .tour-status { margin: 0; color: var(--tour-ink); font-size: 1rem; font-weight: 500; }
.tour-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--tour-edge);
  border-radius: 12px;
  background: var(--band-light-bg);
  color: var(--tour-ink);
  font: inherit;
  font-size: .9375rem;
  cursor: pointer;
}
.tour-btn:hover { border-color: var(--tour-ink); }
.tour-btn:focus-visible { outline: 2px solid var(--tour-ink); outline-offset: 3px; }
.tour-icon { display: none; width: 12px; height: 12px; fill: currentColor; }
.tour-icon--replay { fill: none; stroke: currentColor; stroke-width: var(--line); }
.tour-btn[data-mode="pause"] .tour-icon--pause,
.tour-btn[data-mode="resume"] .tour-icon--play,
.tour-btn[data-mode="replay"] .tour-icon--replay { display: block; }

/* the rail: one stop per step on a --line track; the ink fill runs to the current stop */
.tour-rail { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.tour-rail::before,
.tour-rail::after {
  content: "";
  position: absolute;
  left: calc(50% / var(--n));
  top: calc(var(--tour-dot) / 2 - var(--line) / 2);
}
.tour-rail::before { right: calc(50% / var(--n)); height: var(--line); background: var(--tour-line); }
.tour-rail::after { width: calc(100% - 100% / var(--n)); height: var(--line); background: var(--tour-ink); transform: scaleX(var(--fill, 1)); transform-origin: left; }
.tour-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 0 .25rem; text-align: center; }
.tour-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--tour-dot);
  height: var(--tour-dot);
  border: var(--line) solid var(--tour-ink);
  border-radius: 50%;
  background: var(--tour-ink);
  color: var(--band-light-bg);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
.tour-ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); opacity: 0; transform: rotate(-90deg); overflow: visible; }
.tour-ring circle { fill: none; stroke: var(--tour-ink); stroke-width: var(--line); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); vector-effect: non-scaling-stroke; }
.tour-stop-name { color: var(--tour-ink); font-size: .8125rem; line-height: 1.35; text-wrap: balance; }
.tour.is-touring .tour-stop[data-state="current"] .tour-dot { background: var(--band-light-bg); color: var(--tour-ink); }
.tour.is-touring .tour-stop[data-state="current"] .tour-ring { opacity: 1; }
.tour.is-touring .tour-stop[data-state="current"] .tour-stop-name { font-weight: 500; }
.tour.is-touring .tour-stop[data-state="ahead"] .tour-dot { border-color: var(--tour-line); background: var(--band-light-bg); color: var(--tour-muted); }
.tour.is-touring .tour-stop[data-state="ahead"] .tour-stop-name { color: var(--tour-muted); }

/* the stage: the spotlight card beside the ledger of what you keep */
.tour-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: clamp(2.5rem, 4vw, 3.25rem); }
.tour-spot { min-height: 17rem; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--home-radius); background: #05090f; }
.band-light .tour-spot .tour-num,
.band-light .tour-spot .tour-of { color: #9ea4ac; }
.band-light .tour-spot .tour-phase { color: var(--band-light-bg); }
.band-light .tour-spot .tour-phase-range { color: #9ea4ac; }
.band-light .tour-spot .tour-name {
  margin: .875rem 0 .75rem;
  color: var(--band-light-bg);
  -webkit-text-fill-color: currentColor;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 400;
  line-height: 1.15;
}
.band-light .tour-spot .tour-line { max-width: 34rem; margin: 0 0 1.75rem; color: #c9ced6; font-size: 1.0625rem; }
.band-light .tour-spot .tour-keeps { padding-top: 1rem; border-top: var(--line-hair) solid rgba(255, 255, 255, .16); color: var(--band-light-bg); }
.band-light .tour-spot .tour-keeps-label { color: #9ea4ac; }
.band-light .tour-ledger-title,
.band-light .tour-phase,
.tour-keeps-label {
  color: var(--tour-ink);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.band-light .tour-ledger-title { margin: 0 0 .75rem; }
.tour-ledger ol { margin: 0; padding: 0; list-style: none; }
.band-light .tour-ledger li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  padding: .625rem 0;
  border-bottom: var(--line-hair) solid var(--band-light-line);
  color: var(--tour-ink);
  font-size: .9375rem;
  line-height: 1.45;
}
.band-light .tour-ledger li[data-state="ahead"] { color: var(--tour-muted); }
.band-light .tour-ledger li[data-state="current"] { font-weight: 500; }

/* the list: every step, the finished frame */
.tour-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; margin: clamp(2.5rem, 4vw, 3.25rem) 0 0; padding: 0; list-style: none; }
.tour.is-touring .tour-list { display: none; }
.tour-item { padding-top: 1.25rem; border-top: var(--line-hair) solid var(--band-light-line); scroll-margin-top: 7rem; /* a "Prevented in step N" jump clears the navbar */ }
.band-light .tour-phase { margin: 0 0 .5rem; color: var(--band-light-text); }
.tour-phase-range { color: var(--band-light-muted); white-space: nowrap; }
.band-light .tour-num { margin: 0 0 .5rem; color: var(--band-light-muted); font-family: var(--_typography---font-family--body-alt); font-size: .8125rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tour-of { color: var(--band-light-muted); }
.band-light .tour-name { margin: 0 0 .375rem; color: var(--tour-ink); font-size: var(--h3-item); font-weight: 500; line-height: 1.3; text-wrap: balance; }
.tour-line { margin: 0 0 .875rem; font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.band-light .tour-keeps { margin: 0; color: var(--band-light-text); /* outranks .band-light p: what you keep reads in ink */ font-size: .9375rem; line-height: 1.5; text-wrap: pretty; }
.tour-keeps-label { display: block; margin-bottom: .2rem; color: var(--band-light-muted); }
.tour-num { display: block; }
.tour-spot-in > * + * { margin-top: 0; }

@media (max-width: 639px) {
  .tour { --tour-dot: 2rem; }
  .tour-stop-name { display: none; }
}
@media (min-width: 640px) {
  .tour-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .tour-stage { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
}

/* motion: the fill and ring follow the clock with no easing of their own; the spotlight rises in */
@keyframes tour-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
@media screen and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .tour-spot-in { animation: tour-in .55s var(--ease-out); }
  html:not(.motion-paused) .tour-dot,
  html:not(.motion-paused) .tour-ledger li { transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out); }
  html:not(.motion-paused) .tour-btn { transition: border-color .2s; }
}
@media print {
  .tour-ctl, .tour-stage { display: none !important; }
  .tour.is-touring .tour-list { display: grid; }
  .tour-item { break-inside: avoid; }
}

/* ---------- What goes wrong (components/service_risks.html) ----------
   Three rows between hairlines, then up to two facts: beside the rows from 992px, under them below. */
.risks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 4rem);
  align-items: start;
}
@media (min-width: 992px) {
  .risks-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
}
.risk-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark-strong); }
.risk { margin: 0; padding: clamp(1.5rem, 3vw, 2rem) 0; border-bottom: 1px solid var(--line-dark-strong); }
.risk-title {
  margin: 0 0 .5rem;
  color: var(--color--white);
  font-size: var(--h3-card);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.risk-line { max-width: 36rem; margin: 0 0 1rem; color: var(--color--gray-3); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
.risk-step {
  display: inline-block;
  padding-block: .1875rem; /* a 24px target */
  color: var(--color--gray-5);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-dark-strong);
  text-underline-offset: .25em;
  transition: color .2s, text-decoration-color .2s;
}
.risk-step:hover { color: var(--color--white); text-decoration-color: currentColor; }

/* a fact: the figure in the stat style (its sweep is in colour.css), what was measured, the source */
.fact-list { display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
.fact { margin: 0; padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line-dark-strong); }
.fact-figure {
  margin: 0 0 .75rem;
  color: var(--color--white);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.fact-claim { max-width: 32rem; margin: 0 0 1rem; color: var(--color--gray-5); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
.is-quote .fact-claim { margin-bottom: .5rem; } /* the framing, then the source's words */
.fact-quote { margin: 0 0 1rem; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; } /* site.css draws blockquotes as centred cards */
.fact-quote p {
  margin: 0;
  color: var(--color--white);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 380;
  font-optical-sizing: auto;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.fact-source { margin: 0; color: var(--color--gray-5); font-size: .875rem; line-height: 1.5; text-align: left; } /* site.css centres figcaption */
.fact-source a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-dark-strong);
  text-underline-offset: .25em;
}
.fact-source a:hover { color: var(--color--white); text-decoration-color: currentColor; }
.fact-checked { display: block; margin-top: .25rem; color: var(--color--gray-3); font-size: .8125rem; }
.fact-unverified { color: var(--color--white); font-weight: 500; } /* development only: the template drops the fact in production */

/* ---------- What you keep (components/service_keep.html, .band-white) ----------
   The deliverables beside the Done means checks, then the sample card full width. */
.keep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 992px) {
  .keep-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
}
.keep-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.keep-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .375rem clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 768px) {
  .keep-item { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
.band-light .keep-title { margin: 0; color: var(--color--white); font-size: var(--h3-item); font-weight: 500; line-height: 1.3; text-wrap: balance; }
.keep-line { margin: 0; color: var(--color--gray-5); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.done-list { margin: 0; padding: 0; list-style: none; }
.done-item {
  position: relative;
  margin: 0 0 .875rem;
  padding-left: 1.75rem;
  color: var(--color--gray-5);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.done-item:last-child { margin-bottom: 0; }
/* the check, drawn in ink at the line weight: no green */
.done-item::before {
  content: "";
  position: absolute;
  top: .3em;
  left: .25rem;
  box-sizing: border-box;
  width: .4375rem;
  height: .8125rem;
  border: solid var(--color--white);
  border-width: 0 var(--line) var(--line) 0;
  transform: rotate(45deg);
}

/* the sample: the card recipe (DESIGN.md §5 Cards), which .band-white turns to white on white with an ink hairline */
.sample-card {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, var(--color--gray-1), var(--color--dark));
}
.sample-pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .375rem .75rem;
  border: 1px solid var(--line-dark-strong);
  border-radius: 999px;
  color: var(--color--gray-3);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.band-light .sample-title { margin: 0 0 1.25rem; color: var(--color--white); font-size: var(--h3-card); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.sample-table { width: 100%; border-collapse: collapse; }
.sample-table :is(th, td) { padding: .875rem 0; border-top: 1px solid var(--line-dark); text-align: left; vertical-align: baseline; }
.sample-table th {
  width: 30%;
  padding-right: 1.5rem;
  color: var(--color--gray-3);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sample-table td { color: var(--color--gray-5); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.sample-note { margin-top: 1.25rem; color: var(--color--gray-3); font-size: .875rem; text-align: left; }
@media (max-width: 767px) {
  .sample-table, .sample-table tbody, .sample-table tr, .sample-table :is(th, td) { display: block; width: auto; }
  .sample-table th { padding: .875rem 0 .25rem; }
  .sample-table td { padding: 0 0 .875rem; border-top: 0; }
}
@media print {
  .sample-card { padding: 0; border: 0; background: none; } /* the frame goes, the text stays */
}

/* ---------- Closing CTA: "On the first call" (components/cta_band.html, first_call) ---------- */
.cta-first-call-wrap { max-width: 52rem; margin: 2.25rem auto 0; }
.cta-band .svc-kicker { margin-bottom: 1rem; }
.cta-first-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
@media (min-width: 768px) {
  .cta-first-call { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cta-first-call li {
  margin: 0;
  padding-top: .75rem;
  border-top: 1px solid var(--line-dark-strong);
  color: var(--color--gray-5);
  font-size: .9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- Questions: the shared FAQ (system.css), one list beside the aside ---------- */
.faq-aside .section-header { max-width: 26rem; margin: 0; }
.faq-aside .section-heading { font-size: clamp(1.875rem, 2.7vw, 2.375rem); line-height: 1.1; } /* the longest service name stays on two lines */
.faq-q { font-size: var(--h3-item); line-height: 1.3; text-wrap: balance; }

/* ============================================================
   About (core/about.html): the hero, the story band and the link to /how-we-work/. It draws no diagrams.
   ============================================================ */
.h-section.about-hero { padding-top: clamp(8rem, 12vw, 9.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
/* How we work's intro: the same page-header spacing as About and Services */
.h-section.how-hero { padding-top: clamp(8rem, 12vw, 9.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
/* the line breaks at the comma, not at AI-assisted's hyphen, which balancing would pick: 11em fits "Human-led, AI-assisted," (9.9em) and not the next word */
.about-hero .page-title { max-width: 11em; text-wrap: wrap; }
.h-section.about-how-link { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- Story band (one white band: story, then the team as a sub-list) ---------- */
.about-story-text { max-width: 40rem; margin: 0 0 1.25rem; font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.about-team { margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.about-person { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.about-person-name { color: var(--color--white); font-size: 1.125rem; font-weight: 500; }
.about-person-role { color: var(--color--gray-3); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .breadcrumb-link, .related-arrow { transition: none; }
  .related-item:hover .related-arrow { transform: none; }
}


/* ============================================================
   Contact (core/contact.html): the form beside what happens next.
   ============================================================ */
.h-section.contact-hero { padding-top: clamp(8rem, 12vw, 9.5rem); }

/* Ways to reach us, under the lede: icon, small label, value. One row of three on wide screens, a stack
   on phones. The icon sits in a hairline circle that inks in on hover, as an outlined button does. */
.contact-channels {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: clamp(1.5rem, 3vw, 2rem) 0 0; list-style: none;
  border-top: 1px solid var(--line-dark);
}
.contact-channels li { margin: 0; min-width: 0; }
.contact-channel { display: flex; align-items: center; gap: .875rem; min-width: 0; color: var(--color--white); text-decoration: none; }
.contact-channel-icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border: 1px solid var(--line-dark-strong); border-radius: 50%; color: var(--color--gray-5);
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.contact-channel-icon svg { width: 20px; height: 20px; }
.contact-channel-text { display: grid; gap: .125rem; min-width: 0; }
.contact-channel-label { color: var(--color--gray-3); font-size: .8125rem; line-height: 1.3; }
.contact-channel-value {
  overflow-wrap: anywhere; font-size: 1rem; font-weight: 500; line-height: 1.35;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease-out);
}
.contact-channel:hover .contact-channel-icon { border-color: var(--color--white); color: var(--color--white); }
.contact-channel:hover .contact-channel-value { text-decoration-color: var(--accent); }
.contact-channel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-form { display: grid; gap: 1.5rem; }
/* Before the form: what we need, in one line, under a serif heading (navy on white, colour.css) */
.contact-intro { margin: 0 0 clamp(1.75rem, 3vw, 2.25rem); }
.contact-intro-title { margin: 0 0 .75rem; font-family: var(--font-display); font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 380; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.contact-intro p { max-width: 36rem; margin: 0; color: var(--color--gray-5); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.contact-intro a { color: var(--color--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
/* Clear: takes a chosen answer back (the dropdown, the services). Sits on the label's line at the right,
   shown by contact.js only while something is chosen. 24px tall, the smallest target the floor allows. */
.field-clear {
  position: absolute; top: -1px; right: 0; display: inline-flex; align-items: center; min-height: 24px; padding: 0 .25rem;
  border: 0; border-radius: 6px; background: none; color: var(--color--gray-3);
  font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: color .15s var(--ease-out), text-decoration-color .15s var(--ease-out);
}
.field-clear:hover { color: var(--color--white); text-decoration-color: currentColor; }
.field-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-clear[hidden] { display: none; }
/* a legend sits outside its fieldset's box, so floated it becomes an ordinary first line and the Clear
   button can share it; the pills clear the float, and the legend wraps clear of the button */
.pills > .field-label { float: left; width: 100%; padding-right: 3.5rem; }
.pills > .pill-list { clear: both; }
.field-label { display: block; padding: 0; margin: 0 0 .5rem; color: var(--color--white); font-size: .9375rem; font-weight: 500; }
.field-opt { color: var(--color--gray-3); font-weight: 400; }
.field-control {
  display: block; width: 100%; height: 48px; padding: 0 1rem;
  background: var(--color--gray-1); color: var(--color--white);
  border: 1px solid var(--line-dark-strong); border-radius: 12px;
  font: inherit; font-size: 1rem; line-height: 1.2;
  transition: border-color .15s var(--ease-out);
}
/* autofill keeps the band's ink and a quiet tint instead of the browser's blue */
.field-control:autofill { -webkit-text-fill-color: var(--color--white); box-shadow: inset 0 0 0 100px var(--color--gray-2); }

/* The dropdown stays a native select, so the keyboard, phone pickers and screen readers keep working.
   .field-select draws the chevron at the line weight. Where the picker can be styled (base-select), the
   list opens as the nav dropdown does: a floating panel of pill rows, the chosen row ending on a --node
   dot, hover as the pill fill. Elsewhere the platform's own list opens under the same closed control. */
.field-select { position: relative; display: block; }
.field-select::after {
  content: ""; position: absolute; top: 50%; right: 1rem; width: 12px; height: 12px; margin-top: -6px;
  background: var(--color--gray-3); pointer-events: none;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.25 6 7.75l3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease-out), background-color .15s;
}
.field-select:hover::after { background: var(--color--white); }
.field-select:has(select:open)::after { transform: rotate(180deg); background: var(--color--white); }
select.field-control { appearance: none; padding-right: 2.75rem; cursor: pointer; }
select.field-control:has(option[value=""]:checked) { color: var(--color--gray-3); } /* "Choose one" reads as a prompt, not an answer */

@supports (appearance: base-select) {
  select.field-control, select.field-control::picker(select) { appearance: base-select; }
  select.field-control { display: flex; align-items: center; }
  select.field-control::picker-icon { display: none; } /* .field-select draws it */
  /* The list scrolls the way the nav dropdown does: no scrollbar (the page's dark one would draw a black
     track down the white panel), six and a half rows so the cut row says there is more, and a soft ink
     shade at an edge only while there is more beyond it (the covers scroll with the rows, the shades stay
     put). The wheel stops at the ends instead of moving the page, and a keyboard-highlighted row keeps
     clear of the edges. */
  select.field-control::picker(select) {
    --shade: color-mix(in srgb, var(--color--white) 14%, transparent);
    margin-block: 6px; padding: .375rem;
    max-height: 19rem; /* 6 rows + half of the next: 6 × (44 + 2) + 22 + the padding */
    overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: .375rem;
    scrollbar-width: none;
    border: 1px solid var(--line-dark); border-radius: var(--home-radius);
    background:
      linear-gradient(var(--color--gray-1) 40%, transparent) top / 100% 2.5rem no-repeat local,
      linear-gradient(transparent, var(--color--gray-1) 60%) bottom / 100% 2.5rem no-repeat local,
      radial-gradient(farthest-side at 50% 0, var(--shade), transparent) top / 100% .875rem no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, var(--shade), transparent) bottom / 100% .875rem no-repeat scroll;
    background-color: var(--color--gray-1);
    box-shadow: 0 14px 34px -14px rgba(16, 24, 40, .28); /* floating, as the nav dropdown over a light band */
    opacity: 0; translate: 0 -4px;
    transition: opacity .15s var(--ease-out), translate .15s var(--ease-out), overlay .15s allow-discrete, display .15s allow-discrete;
  }
  select.field-control:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { select.field-control:open::picker(select) { opacity: 0; translate: 0 -4px; } }
  select.field-control option {
    display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .875rem;
    border-radius: 999px; color: var(--color--gray-5); font-size: .9375rem; line-height: 1.3;
    cursor: pointer; transition: background-color .15s, color .15s;
  }
  select.field-control option[hidden] { display: none; } /* the flex above would otherwise show the placeholder */
  select.field-control option:not([hidden]) ~ option { margin-top: 2px; } /* rows never touch */
  select.field-control option:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--color--white) 7%, transparent); color: var(--color--white); }
  select.field-control option:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  select.field-control option:checked { color: var(--color--white); font-weight: 500; }
  select.field-control option::checkmark {
    content: ""; order: 1; flex: none; width: var(--node); height: var(--node); margin-left: auto;
    border-radius: 50%; background: currentColor;
  }
  select.field-control option:not(:checked)::checkmark { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .field-select::after { transition: none; }
  select.field-control::picker(select) { transition: none; translate: none; }
}
.field-textarea { height: auto; min-height: 9rem; padding: .875rem 1rem; resize: vertical; line-height: 1.5; }
.field-control:hover { border-color: rgba(255, 255, 255, .3); }
.band-white .field-control:hover { border-color: rgba(5, 9, 15, .8); }
.field-control:focus-visible, .pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* errors take the coral speck: the colours are in colour.css; the "Fix:" prefix keeps them readable without colour */
.field-error { margin: .5rem 0 0; font-size: .875rem; line-height: 1.4; }
.field-error::before { content: "Fix: "; font-weight: 500; }

.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; margin: 0; }
.pill input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem;
  border: 1px solid var(--line-dark-strong); border-radius: 999px;
  color: var(--color--gray-5); font-size: .9375rem; transition: background-color .15s, color .15s, border-color .15s;
}
.pill:hover span { border-color: rgba(255, 255, 255, .4); }
.band-white .pill:hover span { border-color: rgba(5, 9, 15, .8); }
.pill input:checked + span { background: var(--silver); color: var(--color--dark); border-color: var(--silver); font-weight: 500; }

.contact-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.contact-submit .hero-cta { font: inherit; font-weight: 500; cursor: pointer; }
.contact-submit .hero-cta[aria-busy="true"] { cursor: progress; opacity: .7; transform: none; }
.contact-note { margin: 0; color: var(--color--gray-3); font-size: .9375rem; }
.form-alert { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid; border-radius: 12px; color: var(--color--white); }
.form-alert p { margin: 0; }

.contact-sent { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line-dark-strong); border-radius: var(--home-radius); background: var(--color--gray-1); }
.contact-sent-title { margin: 0 0 1rem; color: var(--color--white); font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 380; line-height: 1.15; text-wrap: balance; }
.contact-sent p { max-width: 34rem; margin: 0 0 1.5rem; color: var(--color--gray-5); line-height: 1.55; }
.contact-sent a:not(.hero-cta) { color: var(--color--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* The aside: the visitor's note beside the fields it mirrors, then the dark reply panel beside the
   send button, which is where what happens next begins. */
.contact-next { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.contact-next .section-label { justify-content: flex-start; margin: 0; } /* sits on the panel's left edge */

/* The reply panel (.ground-dark): the dark band in miniature, on the card recipe. */
.contact-panel {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border: 1px solid var(--line-dark); border-radius: var(--home-radius);
  background: linear-gradient(180deg, var(--color--gray-1), var(--color--dark));
}
.contact-panel .reply-when { /* .contact-panel: past .band-light p */
  margin: 1.25rem 0 0; color: var(--color--white);
  font-family: var(--font-display); font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 380;
  line-height: 1.1; letter-spacing: -.015em; text-wrap: balance;
}
.reply-when em { font-style: italic; }
.reply-date { margin: .625rem 0 0; color: var(--color--gray-3); font-size: .875rem; line-height: 1.4; }

/* What happens next: a --node per step on a 1.5px rail over a 1px faint track, drawn once in view by
   initDraw (system.js, the data-draw-root contract): each segment runs from its node to the next, and
   the next node and its copy land as it arrives (--d on each li). The first node, the step that starts
   when they press send, takes the sparkle. Without JS, under reduced motion and with html.motion-paused,
   the finished frame shows. */
.next-steps { --nx: 12px; /* the node's centre: half the first line of the step's title */ margin: 1.75rem 0 0; padding: 1.75rem 0 0; list-style: none; border-top: 1px solid var(--line-dark); }
.next-steps li { position: relative; margin: 0; padding: 0 0 1.5rem 2rem; color: var(--color--gray-3); font-size: .9375rem; line-height: 1.5; }
.next-steps li:last-child { padding-bottom: 0; }
.next-steps li:not(:last-child)::before,
.next-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: var(--nx); height: 100%; transform-origin: top;
}
.next-steps li:not(:last-child)::before { left: calc(var(--node) / 2 - var(--line-hair) / 2); width: var(--line-hair); background: var(--line-dark-strong); }
.next-steps li:not(:last-child)::after { left: calc(var(--node) / 2 - var(--line) / 2); width: var(--line); background: var(--color--gray-5); }
.next-node {
  position: absolute; left: 0; top: calc(var(--nx) - var(--node) / 2); z-index: 1;
  width: var(--node); height: var(--node); border-radius: 50%; background: var(--accent);
}
.next-text { display: block; }
.next-steps strong { display: block; color: var(--color--white); font-size: 1rem; font-weight: 500; margin-bottom: .25rem; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .next-steps.is-armed li::after { transform: scaleY(0); }
  html:not(.motion-paused) .next-steps.is-armed .next-node { transform: scale(0); }
  html:not(.motion-paused) .next-steps.is-armed .next-text { opacity: 0; translate: 0 .5em; }
  html:not(.motion-paused) .next-steps.is-armed.is-drawn .next-text { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease-out) var(--d), translate .6s var(--ease-out) var(--d); }
  html:not(.motion-paused) .next-steps.is-armed.is-drawn .next-node { transform: none; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1) var(--d); }
  html:not(.motion-paused) .next-steps.is-armed.is-drawn li::after { transform: none; transition: transform .55s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + .15s); }
}

.panel-foot { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.panel-foot-label { margin: 0 0 .5rem; color: var(--color--gray-3); font-size: .8125rem; }
.panel-email { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.panel-email a { min-width: 0; overflow-wrap: anywhere; color: var(--color--white); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-dark-strong); text-underline-offset: 4px; transition: text-decoration-color .2s var(--ease-out); }
.panel-email a:hover { text-decoration-color: var(--accent); }
.panel-email a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.copy-email {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line-dark-strong); border-radius: 999px; background: none;
  color: var(--color--white); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.copy-email:hover { border-color: var(--color--white); }
.copy-email:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-email.is-done { background: var(--color--white); border-color: var(--color--white); color: var(--color--dark); }
.copy-email.is-done::before { content: ""; width: var(--node); height: var(--node); border-radius: 50%; background: currentColor; }

/* Your note: the form written out as a letter while the visitor types, on the white card. Blanks are
   italic over a dashed hairline until they fill; four dots count the details we need, and the last line
   names the next one missing. Wide screens only, where it can sit beside the fields. */
.contact-letter {
  padding: 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--home-radius); background: var(--color--gray-1);
}
.letter-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.letter-label { margin: 0; color: var(--color--gray-3); font-family: var(--_typography---font-family--body-alt); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.letter-count { display: flex; align-items: center; gap: .625rem; margin: 0; color: var(--color--gray-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.letter-dots { display: flex; gap: 5px; }
.letter-dots i {
  box-sizing: border-box; width: var(--node); height: var(--node); border: 1px solid var(--line-dark-strong); border-radius: 50%;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.letter-dots i.is-on { background: var(--accent); border-color: var(--accent); transform: scale(1.0001); }
.letter-body { margin: 1.25rem 0 0; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 380; line-height: 1.5; text-wrap: pretty; overflow-wrap: anywhere; }
.letter-slot { transition: color .2s var(--ease-out); }
.letter-slot.is-blank { color: var(--color--gray-3); -webkit-text-fill-color: currentColor; font-style: italic; text-decoration: underline dashed var(--line-dark-strong) 1px; text-underline-offset: 5px; }
.letter-message {
  display: -webkit-box; margin: .875rem 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  color: var(--color--gray-5); font-size: .9375rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere;
}
.letter-message[hidden] { display: none; }
.letter-sign { margin: 1rem 0 0; color: var(--color--gray-3); font-size: .875rem; overflow-wrap: anywhere; }
.letter-sign .letter-slot:not(.is-blank) { color: var(--color--white); }
.letter-status { display: flex; align-items: flex-start; gap: .625rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-dark); color: var(--color--gray-5); font-size: .875rem; line-height: 1.4; }
.letter-status::before { content: ""; flex: none; margin-top: calc((1.4em - var(--node)) / 2); /* on the first line */ box-sizing: border-box; width: var(--node); height: var(--node); border: 1px solid var(--line-dark-strong); border-radius: 50%; }
.contact-letter.is-ready .letter-status { color: var(--color--white); font-weight: 500; }
.contact-letter.is-ready .letter-status::before { background: var(--accent); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .letter-dots i, .letter-slot, .copy-email, .panel-email a { transition: none; }
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-letter { display: none; } /* below the form there is nothing left to mirror */
}
@media (max-width: 767px) {
  .contact-channels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Prose: the reading column (case studies, and blog posts next) ----------
   About 68 characters a line, Fraunces H2 and H3, lists, quotes and code from the tokens. */
.prose {
  max-width: 68ch;
  color: var(--color--gray-5);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.prose > * { margin-top: 0; margin-bottom: 1.25em; }
.prose > :last-child { margin-bottom: 0; }
.prose :is(h2, h3, h4) {
  margin: 2em 0 .6em;
  color: var(--color--white);
  font-family: var(--font-display);
  font-weight: 380;
  font-optical-sizing: auto;
  font-synthesis: none;
  letter-spacing: -.01em;
  line-height: 1.15;
  text-wrap: balance;
}
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.prose h4 { font-size: 1.125rem; }
.prose a { color: var(--color--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--color--white); font-weight: 500; }
.prose :is(ul, ol) { padding-left: 1.4em; }
.prose li { margin: 0 0 .5em; padding-left: .25em; }
.prose li::marker { color: var(--color--gray-3); }
.prose img, .prose figure { max-width: 100%; height: auto; border-radius: 12px; }
.prose :is(blockquote, .prose-quote) {
  margin: 2em 0;
  padding: .25em 0 .25em 1.5rem;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: none;
  color: var(--color--white);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 380;
  line-height: 1.4;
}
.prose .prose-quote p { margin: 0; font: inherit; color: inherit; }
.prose .prose-quote-by { margin-top: .75rem; color: var(--color--gray-3); font-family: var(--_typography---font-family--body-alt); font-size: .8125rem; letter-spacing: .04em; }
.prose :is(code, kbd) { padding: .1em .35em; border-radius: 6px; background: var(--color--gray-1); color: var(--color--white); font-family: var(--_typography---font-family--body-alt); font-size: .875em; }
.prose pre { overflow-x: auto; padding: 1.125rem 1.25rem; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--color--gray-1); line-height: 1.55; }
.prose pre code { padding: 0; background: none; font-size: .875rem; }
.prose hr { border: 0; border-top: 1px solid var(--line-dark); }
.prose .prose-metrics { display: flex; flex-wrap: wrap; gap: .625rem; padding: 0; list-style: none; }
.prose .prose-metrics li { margin: 0; padding: .5rem .875rem; border: 1px solid var(--line-dark-strong); border-radius: 999px; color: var(--color--white); font-size: .9375rem; }
.prose .prose-metrics strong { font-weight: 500; }

/* ---------- Case study detail ---------- */
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3rem); align-items: end; }
.case-hero-metric {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, var(--color--gray-1), var(--color--dark));
}
.case-hero-metric-label { color: var(--color--gray-3); font-family: var(--_typography---font-family--body-alt); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.case-hero-metric-value {
  color: var(--color--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 380;
  font-optical-sizing: auto;
  font-synthesis: none;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
/* the side column exists only for a metric: without one the title takes the full measure */
@media (min-width: 992px) {
  .case-hero-grid:has(.case-hero-metric) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(3rem, 5vw, 5rem); }
}
.case-hero-grid:not(:has(.case-hero-metric)) .page-header { max-width: none; }

.case-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.5rem); }
.case-story { min-width: 0; }
.case-figure { max-width: 68ch; margin: 0 0 2rem; overflow: hidden; border-radius: var(--home-radius); }
.case-figure[hidden] { display: none; }
.case-figure img { display: block; width: 100%; height: auto; }
.case-facts-list { display: grid; gap: 1.5rem; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line-dark); }
.case-fact dt { margin: 0 0 .5rem; color: var(--color--gray-3); font-family: var(--_typography---font-family--body-alt); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.case-fact dd { margin: 0; color: var(--color--white); font-size: 1.0625rem; }
.case-fact-logo { display: block; width: auto; max-width: 12rem; height: 1.75rem; }
.case-fact-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.case-fact-chips li { margin: 0; padding: .375rem .75rem; border: 1px solid var(--line-dark-strong); border-radius: 999px; font-size: .875rem; }
@media (min-width: 992px) {
  .case-layout { grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
  .case-facts { position: sticky; top: 6.5rem; }
  .case-facts-list { padding-top: 0; border-top: 0; }
}
.case-related .section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Case studies index ---------- */
.case-empty { max-width: 36rem; margin: 0; color: var(--color--gray-3); line-height: 1.55; }
.case-empty a { color: var(--color--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- Blog: index list, post header, reading column ---------- */
.h-section.blog-index-hero, .h-section.post-hero, .h-section.contact-hero { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
/* the same clearance as the other page heroes, so the first line starts below the fixed navbar */
.h-section:is(.case-index-hero, .case-hero, .blog-index-hero, .post-hero) { padding-top: clamp(8rem, 12vw, 9.5rem); }
.post-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.post-row { margin: 0; padding: 0; border-bottom: 1px solid var(--line-dark); }
.post-link {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  color: inherit;
  text-decoration: none;
}
.post-link:focus-visible { outline: 2px solid var(--color--white); outline-offset: 4px; }
.post-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--silver); }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-link:hover .post-cover img { transform: scale(1.03); }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 .75rem; color: var(--color--gray-3); font-family: var(--_typography---font-family--body-alt); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.post-category { color: var(--color--white); }
.post-meta--lone { margin: 1.5rem 0 0; }
.post-title { margin: 0 0 .625rem; color: var(--color--white); font-family: var(--font-display); font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 380; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.post-link:hover .post-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .18em; }
.post-excerpt { max-width: 60ch; margin: 0; color: var(--color--gray-5); line-height: 1.6; }
.post-empty { margin: 0; color: var(--color--gray-5); }
.post-empty a { color: var(--color--white); text-decoration: underline; text-underline-offset: .2em; }
.post-related-title { margin: 0 0 1.5rem; color: var(--color--white); font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 380; }
.post-figure { max-width: 68ch; margin: 0 0 2rem; overflow: hidden; border-radius: 12px; background: var(--silver); }
.post-figure img { display: block; width: 100%; height: auto; }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line-dark-strong); border-radius: 999px; color: var(--color--white); text-decoration: none; }
a.page-link:hover { border-color: var(--color--white); }
a.page-link:focus-visible { outline: 2px solid var(--color--white); outline-offset: 3px; }
.page-link.is-current { background: var(--color--white); border-color: var(--color--white); color: var(--band-light-text); }
@media (max-width: 640px) {
  .post-link { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .post-cover { aspect-ratio: 16 / 9; }
}

/* ---------- Privacy: table of contents ---------- */
.toc { max-width: 68ch; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 1.25rem 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--home-radius, 16px); background: var(--color--gray-1); }
.toc-title { margin: 0 0 .75rem; color: var(--color--gray-3); font-family: var(--_typography---font-family--body-alt); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.toc-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .375rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); color: var(--color--gray-3); }
.toc-list a { color: var(--color--gray-5); text-decoration: none; }
.toc-list a:hover { color: var(--color--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
@media (max-width: 640px) { .toc-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.h-section.notfound { padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.notfound-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
