/* Philanthropy by Grey Mirror · "Blush world, oxblood thread"
 * One system: light rose-neutral precision crossed by the oxblood thread of
 * one accountable team. See DESIGN.md for the doctrine behind every token.
 */

/* ---------- Fonts (self-hosted, SIL OFL; see assets/fonts/LICENSES.md) --- */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-600-italic.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}

/* ---------- Tokens --------------------------------------------------- */

:root {
  /* color · seeds are owner-approved (2026-07-20); AA-verified in tools/contrast.mjs */
  --blush: #FEF8F9;
  --petal: #F7EBEC;
  --rose-mist: #EBD9DB;
  --ink: #271A1B;
  --ink-2: #3A2528;
  --ink-soft: #4A3437;
  --muted: #614A4D;
  --line: #EAD6D8;
  --line-strong: #CDAFB2;
  --line-input: #AB888C;
  --thread: #832838;
  --thread-deep: #5E1926;
  --thread-bright: #F5A3B5;
  --secondary: #8A5761;
  --selected: var(--thread-deep);
  --error: #A93226;
  --dark-ink: #F9EFF0;
  --dark-soft: #DCC6C8;
  --dark-muted: #B89EA1;
  --dark-line: #462F32;
  --white: #FFFFFF;

  /* type */
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-quote: "Source Serif 4", Georgia, serif;
  --size-display: clamp(2.75rem, 1.1rem + 6.4vw, 5.5rem);
  --size-h2: clamp(2rem, 1.05rem + 3.6vw, 3.05rem);
  --size-h3: 1.375rem;
  --size-lede: clamp(1.1875rem, 1.05rem + 0.55vw, 1.375rem);
  --size-body: 1.0625rem;
  --size-small: 0.9375rem;
  --size-label: 0.8125rem;

  /* space */
  --space-1: 0.375rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
  --section: clamp(4.5rem, 2.4rem + 7vw, 7.5rem);
  --section-tight: clamp(3rem, 1.8rem + 4vw, 4.75rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* shape and structure */
  --radius: 4px;
  --radius-lg: 8px;
  --wrap: 74rem;
  --measure: 42rem;

  /* z scale */
  --z-nav: 40;
  --z-skip: 50;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-quick: 160ms;
  --speed-draw: 520ms;
}

/* ---------- Reset and base ------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: 1.62;
  font-weight: 400;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.015em;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }

a { color: var(--thread); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--thread-deep); text-decoration-thickness: 2px; }

::selection { background: var(--thread); color: var(--white); }

/* The deep rose owns selected and focused states on light surfaces. */
:focus-visible {
  outline: 2px solid var(--selected);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--thread-bright);
}

main[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--dark-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--speed-quick) var(--ease-out);
}
.skip-link:focus-visible { top: 0.75rem; color: var(--dark-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Type helpers --------------------------------------------- */

.display { font-size: var(--size-display); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); font-weight: 700; line-height: 1.3; }

.lede {
  font-size: var(--size-lede);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.small { font-size: var(--size-small); }
.muted { color: var(--muted); }

.label {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.flow > * + * { margin-top: var(--space-3); }
.flow > h2 + p, .flow > h3 + p { margin-top: var(--space-2); }
.flow p { max-width: var(--measure); }

/* ---------- Layout --------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); --surface: var(--blush); }
.section--tight { padding-block: var(--section-tight); }
.section--petal { background: var(--petal); --surface: var(--petal); }
.section--rose { background: var(--rose-mist); --surface: var(--rose-mist); }

.section-head { max-width: var(--measure); margin-bottom: var(--space-5); }
.section-head > p { margin-top: var(--space-2); color: var(--ink-soft); }
.section-head .lede { margin-top: var(--space-2); }

/* ---------- Header --------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--blush) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand__tile { flex: none; display: block; border-radius: 6px; }

.brand__words { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand__by { font-weight: 500; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.75rem); }
.site-nav a { white-space: nowrap; }
/* Scoped to the inline list so panel links keep their own sizing. */
.site-nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav__links a:hover { border-bottom-color: var(--thread); color: var(--ink); }
.site-nav__links a[aria-current="page"] { border-bottom-color: var(--selected); }

.site-nav__links { display: contents; }

/* Disclosure menu for narrow widths. Native details/summary: works without JS;
 * site.js only adds close-on-outside-click and Escape as an enhancement. */
.nav-menu { position: relative; display: none; }
.nav-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  user-select: none;
  -webkit-user-select: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { display: block; }
.nav-menu[open] summary { background: var(--petal); border-color: var(--secondary); }
.nav-menu__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 14rem;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(36, 26, 34, 0.16);
  padding: 0.5rem;
  display: grid;
}
.nav-menu__panel a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}
.nav-menu__panel a:hover { background: var(--petal); color: var(--ink); }
/* At widths where the bar can't hold the full CTA, the menu carries it. */
.nav-menu__panel .nav-menu__cta {
  margin-top: 0.35rem;
  background: var(--thread);
  color: var(--white);
  text-align: center;
}
.nav-menu__panel .nav-menu__cta:hover { background: var(--thread-deep); color: var(--white); }
.nav-menu__panel a[aria-current="page"] {
  background: var(--petal);
  text-decoration: underline;
  text-decoration-color: var(--selected);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 52rem) {
  .site-nav__links { display: none; }
  .nav-menu { display: block; }
  .site-foot nav a { padding: 0.55rem 0; }
}

/* ---------- Buttons -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.66rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--speed-quick) var(--ease-out), border-color var(--speed-quick) var(--ease-out), color var(--speed-quick) var(--ease-out);
}
.btn--lg { padding: 0.85rem 1.6rem; font-size: 1.0625rem; }

.btn--primary { background: var(--thread); color: var(--white); }
.btn--primary:hover { background: var(--thread-deep); color: var(--white); }

/* Dusty rose owns secondary actions. */
.btn--ghost { border-color: var(--secondary); color: var(--thread-deep); background: transparent; }
.btn--ghost:hover { background: var(--secondary); color: var(--white); }

/* On ink the primary flips light so base oxblood red never sits on dark. */
.on-dark .btn--primary { background: var(--blush); color: var(--ink); }
.on-dark .btn--primary:hover { background: var(--rose-mist); color: var(--ink); }
.on-dark .btn--ghost { border-color: var(--dark-ink); color: var(--dark-ink); }
.on-dark .btn--ghost:hover { background: var(--dark-ink); color: var(--ink); }

.btn[disabled] { opacity: 0.65; cursor: default; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---------- The thread ----------------------------------------------- */

.thread-svg { display: block; overflow: visible; }
.thread-dot { fill: var(--thread); }
.thread-path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.on-dark .thread-path { stroke: var(--thread-bright); }

/* Hero underline: drawn by JS when motion is allowed. Default state
 * (no JS, reduced motion, crawlers) is fully drawn. */
.hero-thread {
  display: block;
  width: min(56rem, 100%);
  height: auto;
  margin-top: 0.5rem;
}

.mt-link { margin-top: var(--space-4); font-weight: 600; }

/* Split composition: heading column + content column */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}
.split__head .lede { margin-top: var(--space-2); }
.split__head--sticky { position: sticky; top: 6rem; }
.split__head .mt-link { display: inline-block; }

/* Flipped split: content left, heading right, to vary the page spine. */
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--flip .split__head { order: 2; }

@media (max-width: 60rem) {
  .split, .split--flip { grid-template-columns: 1fr; gap: var(--space-4); }
  .split__head--sticky { position: static; }
  .split--flip .split__head { order: 0; }
}

/* Thread ticks as list markers (feature lists only) */
.tick-list { list-style: none; }
.tick-list li {
  position: relative;
  padding-left: 1.6rem;
  max-width: var(--measure);
}
.tick-list li + li { margin-top: 0.65rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--thread);
  transform: rotate(-8deg);
}
.on-dark .tick-list li::before { background: var(--thread-bright); }

/* ---------- Hero ----------------------------------------------------- */

.hero { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem) clamp(4rem, 2.5rem + 5vw, 6.5rem); }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: var(--size-small);
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.hero__kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--thread);
}

.hero h1 { max-width: none; }
.hero__lede { margin-top: var(--space-4); max-width: 38rem; }

/* Subpage hero: same grammar, smaller commitment */
.hero--page { padding-block: clamp(3.5rem, 2.4rem + 4vw, 5.5rem) clamp(2.75rem, 2rem + 3vw, 4rem); }
.hero--page h1 { max-width: 18ch; }

/* ---------- Feature quotes ------------------------------------------- */

.pullquote { margin: 0; max-width: 46rem; }
/* Centered variant: the proof moment as a composed set piece. */
.pullquote--center { margin-inline: auto; text-align: center; }
.pullquote--center figcaption { justify-content: center; }
.pullquote blockquote { margin: 0; }
.pullquote blockquote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: none;
}
.pullquote--minor blockquote p { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.7rem); }
.pullquote figcaption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-3);
  font-weight: 600;
  font-size: var(--size-small);
  color: var(--ink-soft);
}
.pullquote figcaption::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--thread);
  transform: rotate(-8deg);
  flex: none;
}

/* The scale line that grounds the quote in verifiable range. */
.proof-line {
  margin-top: var(--space-4);
  color: var(--ink-soft);
  max-width: 46rem;
}
.proof-line--center { margin-inline: auto; text-align: center; }

/* Firm-voice emphasized fact, marked by the thread tick. */
.standfirst {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: var(--measure);
}
.standfirst::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--thread);
  transform: rotate(-8deg);
}

/* ---------- Model columns -------------------------------------------- */

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: var(--space-5);
}
.model-grid h3 { font-size: 1.25rem; }
.model-grid p { margin-top: var(--space-2); color: var(--ink-soft); }
/* Each column carries the thread tick so the grid belongs to the system. */
.model-grid > div::before {
  content: "";
  display: block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--thread);
  transform: rotate(-8deg);
  margin-bottom: var(--space-2);
}

/* ---------- Lifecycle stitch ----------------------------------------- */

.stitch { position: relative; list-style: none; }
.stitch::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: var(--thread);
}

.stage { position: relative; padding: 0 0 0 3.25rem; }
.stage + .stage { margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.stage::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--thread);
  border: 3px solid var(--surface, var(--blush));
  box-shadow: 0 0 0 2px var(--thread);
}

.stage__title { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.stage__num {
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stage__blurb { margin-top: 0.5rem; max-width: var(--measure); color: var(--ink-soft); }

/* Narrow widths: the stage number becomes a consistent label above every
 * title instead of wrapping unpredictably beside long ones. */
@media (max-width: 40rem) {
  .stage__title { display: block; }
  .stage__num { display: block; margin-bottom: 0.3rem; }
}
.stage__body { margin-top: var(--space-2); display: grid; gap: var(--space-3); }
.stage__body p { max-width: var(--measure); color: var(--ink-soft); }

/* ---------- Fork (beyond the grant) ---------------------------------- */

.fork-figure { margin: 0 0 var(--space-4); }

.branches {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-top: var(--space-5);
}
.branch { position: relative; padding-left: 1.6rem; }
.branch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--thread);
  transform: rotate(-8deg);
}
.branch h3 { font-size: 1.125rem; }
.branch p { margin-top: 0.5rem; color: var(--ink-soft); font-size: var(--size-small); line-height: 1.55; }

/* ---------- Fit panel ------------------------------------------------ */

.fit-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fit-col { padding: clamp(1.75rem, 3vw, 2.75rem); }
.fit-col + .fit-col { border-left: 1px solid var(--line); }
.fit-col h3 { font-size: 1.25rem; }
.fit-col ul { list-style: none; margin-top: var(--space-3); }
.fit-col li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.fit-col li + li { margin-top: 0.75rem; }
.fit-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
}
.fit-col--yes li::before { background: var(--thread); transform: rotate(-8deg); }

/* ---------- Bench (home) and roster (about) -------------------------- */

.bench {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.bench__faces { display: flex; padding-left: 12px; flex: none; }
.bench__faces img {
  width: clamp(52px, 6vw, 68px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 3px solid var(--blush);
  margin-left: -12px;
  background: var(--rose-mist);
  transition: transform var(--speed-quick) var(--ease-out);
}
.bench__faces img:hover { transform: translateY(-4px); }
/* Portraits with tall headroom need the crop pulled down to center the face. */
.bench__faces img.bench-face--low { object-position: 50% 32%; }
.bench__copy { flex: 1 1 24rem; }
.bench__copy p { color: var(--ink-soft); max-width: var(--measure); margin-top: var(--space-2); }
.bench__copy .bench__link { display: inline-block; margin-top: var(--space-3); font-weight: 600; }

.roster { margin-top: var(--space-5); }
.roster-group + .roster-group { margin-top: clamp(3rem, 5vw, 4.25rem); }
/* Two people per row at wide viewports so the roster uses the full wrap. */
.roster-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(23rem, 100%), 1fr));
  gap: clamp(2rem, 3.5vw, 2.75rem) clamp(2.5rem, 4vw, 4.5rem);
}
/* A group with a single member centers its row instead of leaving an empty column. */
.roster-group > .roster-row:only-of-type { grid-column: 1 / -1; justify-self: center; width: min(100%, 34rem); }
.roster-group__label {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}
.roster-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
.roster-row h4 { font-size: 1.25rem; letter-spacing: -0.01em; }
.roster-row img {
  width: 108px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rose-mist);
  background: var(--rose-mist);
}
.roster-row h3 { font-size: 1.25rem; }
.roster-row .roster-row__role {
  display: block;
  margin-top: 0.15rem;
  font-weight: 600;
  font-size: var(--size-small);
  color: var(--secondary);
}
.roster-row .roster-row__carry { margin-top: 0.6rem; color: var(--ink); }
.roster-row .roster-row__bio { margin-top: 0.5rem; color: var(--muted); font-size: var(--size-small); line-height: 1.58; }

/* ---------- Inquiry form --------------------------------------------- */

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.next-steps { position: sticky; top: 6rem; }
.next-steps h2 { font-size: 1.375rem; }
.next-steps ol { list-style: none; margin-top: var(--space-3); counter-reset: step; }
.next-steps li { position: relative; padding-left: 2.1rem; counter-increment: step; }
.next-steps li + li { margin-top: var(--space-3); }
.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
.next-steps strong { font-weight: 700; }
.next-steps p { margin-top: 0.2rem; color: var(--muted); font-size: var(--size-small); }

.form-wrap { position: relative; padding-top: 34px; }

.form-card {
  position: relative;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* The thread enters the card and ends in a knot: the handoff point. */
.form-card__thread {
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 3vw, 2.5rem);
  width: 150px;
  height: 46px;
  pointer-events: none;
  z-index: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-3);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }

.field label { font-weight: 600; font-size: var(--size-small); }
.field .hint { display: block; font-weight: 400; font-size: var(--size-small); color: var(--muted); margin-top: 0.15rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-input);
  border-radius: var(--radius);
  padding: 0.66rem 0.8rem;
  width: 100%;
  transition: border-color var(--speed-quick) var(--ease-out);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field .textarea--short { min-height: 5rem; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--selected);
  outline-offset: 1px;
  border-color: var(--selected);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }

/* Errors get their own red so they never read as brand accent. */
.field-error {
  display: none;
  color: var(--error);
  font-size: var(--size-small);
  font-weight: 500;
}
.has-error input, .has-error textarea { border-color: var(--error); }

.field--consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}
.field--consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--thread);
  flex: none;
}
.field--consent label { font-weight: 400; font-size: var(--size-small); color: var(--ink-soft); }

.field--trap { position: absolute !important; left: -9999px; opacity: 0; pointer-events: none; }

.consent-error { margin-top: var(--space-2); }

.form-foot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.form-status { font-size: var(--size-small); color: var(--muted); min-height: 1.4em; }

.form-notice {
  background: var(--petal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: var(--space-3);
  font-size: var(--size-small);
  color: var(--ink-soft);
}
.form-notice strong { display: block; color: var(--ink); margin-bottom: 0.2rem; font-weight: 700; }
.form-notice[role="alert"] { background: #FAE5E2; border-color: var(--error); }

.form-success h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.375rem;
}
.form-success .done-tick { width: 22px; height: 18px; color: var(--thread); flex: none; }
.form-success p { margin-top: var(--space-2); max-width: var(--measure); color: var(--ink-soft); }

.spinner {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  display: inline-block;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA band and footer -------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--dark-ink);
  padding-block: var(--section);
  text-align: center;
}
.cta-band h2 { color: var(--dark-ink); max-width: 22ch; margin-inline: auto; }
.cta-band .lede { color: var(--dark-soft); margin-top: var(--space-3); margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }
.cta-band .cta-note { margin-top: var(--space-3); color: var(--dark-muted); font-size: var(--size-small); }
/* Links on ink always use the bright thread; base oxblood red never sits on dark. */
.cta-band a:not(.btn) { color: var(--thread-bright); }
.cta-band a:not(.btn):hover { color: var(--dark-ink); text-decoration-color: var(--thread-bright); }

.site-foot {
  background: var(--ink);
  color: var(--dark-soft);
  padding-block: var(--space-5) var(--space-4);
  border-top: 1px solid var(--dark-line);
}
.site-foot a { color: var(--dark-ink); text-decoration: none; }
.site-foot a:hover { color: var(--dark-ink); text-decoration: underline; text-decoration-color: var(--thread-bright); text-decoration-thickness: 2px; }

.site-foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
}
.site-foot .brand { color: var(--dark-ink); }
.site-foot .brand__by { color: var(--dark-muted); }
.site-foot__service { margin-top: var(--space-3); font-size: var(--size-small); color: var(--dark-muted); max-width: 36ch; }

.site-foot__label {
  font-weight: 700;
  font-size: var(--size-label);
  letter-spacing: 0.04em;
  color: var(--dark-muted);
  margin-bottom: var(--space-2);
}
.site-foot nav a { display: block; padding: 0.25rem 0; font-size: var(--size-small); font-weight: 500; }

.site-foot__legal {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--dark-line);
  font-size: 0.8125rem;
  color: var(--dark-muted);
}

/* ---------- Engagement steps (home strip + how-it-works reuse) -------- */

.steps-row {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: var(--space-5);
}
.steps-row li { position: relative; padding-left: 2.3rem; counter-increment: step; }
.steps-row li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
.steps-row strong { font-weight: 700; display: block; }
.steps-row p { margin-top: 0.35rem; color: var(--ink-soft); font-size: var(--size-small); line-height: 1.55; }

/* ---------- FAQ ------------------------------------------------------- */

.faq-group {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
  row-gap: 0;
  align-items: start;
}
.faq-group + .faq-group { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.faq-group > h2 {
  grid-column: 1;
  position: sticky;
  top: 6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.faq-group > .qa { grid-column: 2; }

@media (max-width: 60rem) {
  .faq-group { display: block; }
  .faq-group > h2 {
    position: static;
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--line);
    margin-bottom: var(--space-4);
  }
}
.qa { max-width: 46rem; }
.qa + .qa { margin-top: clamp(1.9rem, 3vw, 2.5rem); }
.qa h3 { font-size: 1.1875rem; }
.qa p { margin-top: 0.55rem; color: var(--ink-soft); max-width: var(--measure); }
.qa p + p { margin-top: 0.7rem; }

/* ---------- Legal pages and 404 -------------------------------------- */

.legal { max-width: var(--measure); }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3rem); }
.legal h2 { font-size: 1.375rem; margin-top: var(--space-5); }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p, .legal h2 + p { margin-top: var(--space-2); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-top: var(--space-2); }
.legal li + li { margin-top: 0.5rem; }
.legal .legal-updated { color: var(--muted); font-size: var(--size-small); margin-top: var(--space-2); }

.notfound { padding-block: clamp(5rem, 12vw, 9rem); }
.notfound h1 { font-size: var(--size-display); }
.notfound p { margin-top: var(--space-3); max-width: var(--measure); color: var(--ink-soft); }

/* ---------- Motion system -------------------------------------------- */

/* Entrances exist only when JS runs AND motion is allowed. Default = visible. */
@media (prefers-reduced-motion: no-preference) {
  html.js .rise { opacity: 0; transform: translateY(14px); }
  html.js .rise.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }

  /* Thread drawing: JS sets stroke-dasharray/offset inline, then clears it */
  html.js .thread-path[data-draw] { transition: stroke-dashoffset var(--speed-draw) var(--ease-out); }

  html.js .stitch[data-stitch]::before {
    transform: scaleY(0);
    transform-origin: top;
  }
  html.js .stitch[data-stitch].is-in::before {
    transform: scaleY(1);
    transition: transform 900ms var(--ease-out);
  }
  html.js .stitch[data-stitch] .stage::before {
    opacity: 0;
    transition: opacity 300ms var(--ease-out);
  }
  html.js .stitch[data-stitch].is-in .stage::before { opacity: 1; }
  html.js .stitch[data-stitch].is-in .stage:nth-child(1)::before { transition-delay: 100ms; }
  html.js .stitch[data-stitch].is-in .stage:nth-child(2)::before { transition-delay: 280ms; }
  html.js .stitch[data-stitch].is-in .stage:nth-child(3)::before { transition-delay: 460ms; }
  html.js .stitch[data-stitch].is-in .stage:nth-child(4)::before { transition-delay: 640ms; }
  html.js .stitch[data-stitch].is-in .stage:nth-child(5)::before { transition-delay: 820ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsive ----------------------------------------------- */

@media (max-width: 60rem) {
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .start-grid { grid-template-columns: 1fr; }
  /* The form leads on mobile; the reassurance aside follows it. */
  .next-steps { position: static; order: 2; }
}

@media (max-width: 46rem) {
  .fit-panel { grid-template-columns: 1fr; }
  .fit-col + .fit-col { border-left: none; border-top: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .roster-row { grid-template-columns: 84px 1fr; }
  .roster-row img { width: 84px; }
}

@media (max-width: 34rem) {
  /* Full-width bios; no dead column beside a short portrait. */
  .roster-row { grid-template-columns: 1fr; }
  .roster-row img { width: 72px; }
}

@media (max-width: 30rem) {
  :root { --size-small: 1rem; }
  .site-foot__legal { font-size: 0.875rem; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .brand__by { display: none; }
  .btn--lg { width: 100%; }
  .bench__faces { flex-wrap: wrap; }
  .bench__faces img { width: 44px; }
  .site-head__bar { min-height: 3.5rem; }
  .nav-menu summary .nav-menu__label { display: none; }
  .nav-menu summary { padding: 0.5rem 0.55rem; }
  .site-nav > .btn--primary { display: none; }
}
