/* ==========================================================================
   Innovative Workspace — site stylesheet (redesign 2026)
   Design system & rationale: tools/design-system.md
   Mobile-first · no framework · no build step · one file
   --------------------------------------------------------------------------
   1. Fonts            5. Components       9. Page: blog & article
   2. Tokens           6. Header / footer 10. Page: about, contact, legal, 404
   3. Base             7. Page: home      11. Motion
   4. Layout           8. Shared sections 12. Utilities
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Plus Jakarta Sans (variable 200–800): interface + marketing body copy.     */
/* Newsreader, pinned optical sizes: Display (opsz 72) for headlines/quotes,  */
/* Text (opsz 18) for long-form reading. All Latin-subset WOFF2, OFL.         */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/jakarta-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader Display"; src: url("/assets/fonts/newsreader-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader Display"; src: url("/assets/fonts/newsreader-display-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader Text"; src: url("/assets/fonts/newsreader-text.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader Text"; src: url("/assets/fonts/newsreader-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader Text"; src: url("/assets/fonts/newsreader-text-semibold.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }

/* 2. Tokens --------------------------------------------------------------- */
/* Design system: strategy/design-notes.md (Phase 2). One size per type role,
   three brand colours in seven roles, six translucent tokens, 8px spacing. */
:root {
  /* Colour */
  --navy: #182E52;          /* ink: all text, dark sections, primary buttons */
  --navy-700: #2B4472;      /* hover */
  --cream: #F3EDE0;         /* canvas: every light section */
  --paper: #FFFDF9;         /* raised surface: cards, forms, package boxes, the essay column */
  --lavender: #D8CAFF;      /* accent surface: hero disc, highlighter, mobile menu */
  --lavender-100: #EEE8FF;  /* accent tint: chips, notes, image placeholders */
  --violet: #5B3FBF;        /* accent ink: links, markers, small accent text (6.2:1 cream, 7.1:1 paper) */
  --slate: #4A5876;         /* muted text: meta, captions, roles only (6.1:1 cream, 7.0:1 paper) */
  /* The only translucent colours. --line and --line-strong are also roles:
     on navy they switch to the -dark values. */
  --line: rgb(24 46 82 / .14);
  --line-strong: rgb(24 46 82 / .55);          /* >= 3:1 on light surfaces: form borders */
  --line-dark: rgb(243 237 224 / .16);
  --line-strong-dark: rgb(243 237 224 / .6);
  --scrim: rgb(24 46 82 / .78);                /* text and labels on photos */
  --veil: linear-gradient(180deg, rgb(24 46 82 / .55), rgb(24 46 82 / .92));   /* photo bands */

  /* Roles (re-mapped by .surface-*) */
  --bg: var(--cream);
  --text: var(--navy);
  --text-muted: var(--slate);
  --accent-ink: var(--violet);
  --card-bg: var(--paper);
  --focus: var(--navy);
  --mark: var(--lavender);
  --btn-bg: var(--navy);
  --btn-fg: var(--cream);
  --btn-bg-hover: var(--navy-700);

  /* Type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Newsreader Display", "Newsreader Text", Georgia, "Times New Roman", serif;
  --font-serif: "Newsreader Text", Georgia, "Times New Roman", serif;

  /* Modular scale, fluid 360px -> 1440px.
     min: 17px base x 1.2 (minor third) · max: 18px base x 1.333 (perfect fourth) */
  --step--2: clamp(0.75rem, 0.74rem + 0.05vw, 0.78rem);
  --step--1: clamp(0.875rem, 0.858rem + 0.074vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.042rem + 0.093vw, 1.125rem);
  --step-1: clamp(1.275rem, 1.2rem + 0.333vw, 1.5rem);
  --step-2: clamp(1.53rem, 1.373rem + 0.696vw, 2rem);
  --step-4: clamp(2.203rem, 1.753rem + 2.002vw, 3.554rem);
  --step-5: clamp(2.644rem, 1.946rem + 3.102vw, 4.738rem);
  --step-6: clamp(3.172rem, 2.124rem + 4.658vw, 6.316rem);

  /* Type roles: every text style uses exactly one of these sizes */
  --fs-display: var(--step-6);   /* home hero H1 only */
  --fs-h1: var(--step-5);        /* every other page title */
  --fs-h2: var(--step-4);        /* section titles, the featured quote, the closing call */
  --fs-h3: var(--step-2);        /* card and item titles, FAQ questions, testimonials, essay H2 */
  --fs-h4: var(--step-1);        /* lead paragraphs, small headings, prices */
  --fs-body: var(--step-0);      /* all paragraphs */
  --fs-small: var(--step--1);    /* buttons, navigation, meta, captions, footer */
  --fs-label: var(--step--2);    /* the one uppercase label style */
  --fs-prose: clamp(1.1875rem, 1.146rem + 0.185vw, 1.3125rem);   /* blog essay body only */
  --lh-display: 0.96;
  --lh-h1: 1.02;
  --lh-h2: 1.06;
  --lh-h3: 1.15;
  --lh-h4: 1.4;
  --lh-body: 1.6;
  --lh-small: 1.5;
  --lh-label: 1.3;
  --lh-prose: 1.68;
  --tracking-display: -0.03em;
  --tracking-h1: -0.024em;
  --tracking-h2: -0.02em;
  --tracking-h3: -0.012em;
  --tracking-small: 0.01em;
  --tracking-label: 0.12em;

  /* Space: 8px grid (with a 4px half-step) */
  --space-0-5: 0.25rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6.667vw, 9rem);       /* 72 -> 144 */
  --head-gap: clamp(2.5rem, 2rem + 2.222vw, 4rem);         /* section head -> content: 40 -> 64 */
  --gutter: clamp(1.5rem, 1rem + 2.222vw, 3rem);          /* 24 -> 48 */
  --gap: clamp(1.5rem, 1.167rem + 1.481vw, 2.5rem);       /* 24 -> 40 */

  /* Layout */
  --container: 80rem;          /* 1280 */
  --measure: 34em;             /* sans body text: about 65 characters per line */
  --measure-prose: 28em;       /* Newsreader essay text: about 65 characters per line */
  --header-h: 4.5rem;          /* 72 */

  /* Shape & depth */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(24 46 82 / .06), 0 2px 8px rgb(24 46 82 / .05);
  --shadow: 0 2px 4px rgb(24 46 82 / .05), 0 14px 32px -10px rgb(24 46 82 / .18);
  --shadow-lg: 0 4px 10px rgb(24 46 82 / .06), 0 36px 72px -20px rgb(24 46 82 / .32);

  /* Motion */
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 700ms;

  color-scheme: light;
  interpolate-size: allow-keywords;
}
@media (min-width: 64em) { :root { --header-h: 5.5rem; } }

/* Surfaces: each section declares one; components inherit the roles.
   Light sections are all cream; paper is for cards, forms and boxes only. */
.surface-cream { --bg: var(--cream); --card-bg: var(--paper); }
.surface-paper { --bg: var(--paper); --card-bg: var(--cream); }
.surface-lavender { --bg: var(--lavender); --card-bg: var(--paper); --mark: var(--paper); }
.surface-navy {
  --bg: var(--navy);
  --text: var(--cream);
  --text-muted: rgb(243 237 224 / .78);
  --accent-ink: var(--lavender);
  --card-bg: rgb(243 237 224 / .06);
  --line: var(--line-dark);
  --line-strong: var(--line-strong-dark);
  --focus: var(--lavender);
  --mark: rgb(216 202 255 / .32);
  --btn-bg: var(--lavender);
  --btn-fg: var(--navy);
  --btn-bg-hover: var(--lavender-100);
}
[class*="surface-"], .quote-card[class*="surface-"] { background-color: var(--bg); color: var(--text); }

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--lavender); color: var(--navy); }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
picture > img { width: 100%; }
/* Heading level predicts size: one role per level (components may only pick
   another role token, never a new size). */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tracking-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); }
h4, h5, h6 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-h4); letter-spacing: 0; }
p, ul, ol, dl, dd, blockquote, figure, address { margin: 0; }
p { text-wrap: pretty; }
ul[class], ol[class] { list-style: none; padding: 0; }
address { font-style: normal; }
strong, b { font-weight: 700; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-8) 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }   /* components that set display (grid, flex) stay hidden too */
:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* 4. Layout --------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 46rem; }
.section { padding-block: var(--section-y); position: relative; }
/* Light sections share the cream canvas: pad each boundary once. */
.section.surface-cream + .section.surface-cream { padding-top: 0; }
.section--flush-top { padding-top: 0; }
.stack > * + * { margin-top: var(--stack, var(--space-3)); }
.split {
  display: grid;
  gap: var(--space-6) var(--gap);
}
@media (min-width: 56.25em) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .split > .split__a { grid-column: 1 / span 5; }
  .split > .split__b { grid-column: 7 / span 6; }
  .split--7-5 > .split__a { grid-column: 1 / span 7; }
  .split--7-5 > .split__b { grid-column: 9 / span 4; }
  .split--4-8 > .split__a { grid-column: 1 / span 4; }
  .split--4-8 > .split__b { grid-column: 5 / span 8; }
  .split--center { align-items: center; }
  .split--end { align-items: end; }
  /* Sticky only beside its content: in one column it would pin over it. */
  .sticky-col { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}

/* 5. Components ----------------------------------------------------------- */

/* Type roles as classes (for elements whose tag is fixed by meaning) */
.h-display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--tracking-display); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tracking-h1); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); }
.h4 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-h4); letter-spacing: 0; }
.lead { font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--text); max-width: var(--measure); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.measure { max-width: var(--measure); }
.serif-italic { font-family: var(--font-display); font-style: italic; }
.num { font-family: var(--font-display); font-variant-numeric: lining-nums; }

/* The one label style: 12.5px, bold, capitals, +0.12em. Section and page
   labels carry the two-dot node glyph (its only variant). */
.label, .eyebrow {
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-ink);
}
.section-head > .label, .masthead > .container > .label, .eyebrow { display: inline-flex; align-items: center; }
.section-head > .label::before, .masthead > .container > .label::before, .eyebrow::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  margin-right: 1.6em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0.95em 0 0 -0.12em currentColor;
  flex: none;
}

/* Highlighter (hero only) */
.mark {
  font-style: italic;
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  background-image: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Buttons */
.btn {
  --_pad: 1.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 3.25rem;
  padding: 0.75rem var(--_pad);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: var(--tracking-small);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out), color var(--dur-2);
}
.btn:hover { background: var(--btn-bg-hover); box-shadow: 0 10px 24px -12px rgb(24 46 82 / .55); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--sm { --_pad: 1.15rem; min-height: 2.75rem; padding-block: 0.5rem; }
.btn--lg { --_pad: clamp(1.25rem, 0.9rem + 1.5vw, 2rem); min-height: 3.5rem; font-size: var(--fs-body); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }

/* Text link with arrow (every secondary action) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: var(--tracking-small);
  color: var(--text);
  text-decoration: none;
}
.link-arrow span:not(.vh) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--dur-2) var(--ease-out); padding-bottom: 2px; }
.link-arrow:hover span:not(.vh) { background-size: 100% 1.5px; }
.link-arrow .icon { width: 1.1em; height: 1.1em; color: var(--accent-ink); transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--lavender-100);
  color: var(--navy);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out);
}
a.chip:hover { background: var(--lavender); }
.chip[aria-current="page"] { background: var(--navy); color: var(--cream); }

/* Section head: optional label, H2, optional lead, then the content. */
.section-head { display: grid; justify-items: start; row-gap: var(--space-3); margin-bottom: var(--head-gap); }
.section-head > * { margin: 0; }
.section-head .h2, .section-head h2 { max-width: 18em; }
/* A text link beside the H2 (head(..., link=...)), on its own row on phones */
@media (min-width: 56.25em) {
  .section-head--link { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--gap); }
  .section-head--link > .link-arrow { grid-row: -2; grid-column: 2; }
}
.section-foot { margin-top: var(--space-6); }

/* Cards */
.card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
}
.card--line { box-shadow: inset 0 0 0 1px var(--line); }

/* Media frame (fixed aspect, never stretched) */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--lavender-100);
  isolation: isolate;
}
.frame > picture, .frame > img { width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--16x10 { aspect-ratio: 16 / 10; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--1x1 { aspect-ratio: 1; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.zoom img { transition: transform 900ms var(--ease-out); }
a:hover .zoom img, .zoom:hover img { transform: scale(1.04); }

/* Accordion (native <details>, animated where ::details-content is supported) */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tracking-h3);
  transition: color var(--dur-2);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { color: var(--accent-ink); }
.acc > summary:focus-visible { outline-offset: 6px; }
.acc__icon {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
  flex: none;
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.9rem;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
  transition: transform var(--dur-2) var(--ease-out);
}
.acc__icon::after { transform: rotate(90deg); }
.acc[open] .acc__icon { background: var(--navy); color: var(--cream); box-shadow: none; transform: rotate(180deg); }
.surface-navy .acc[open] .acc__icon { background: var(--lavender); color: var(--navy); }
.acc[open] .acc__icon::after { transform: rotate(0deg); }
.acc__panel { padding: 0 0 var(--space-4); max-width: var(--measure); }
.acc__panel > * + * { margin-top: var(--space-2); }
.acc__panel a { font-weight: 700; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; }
.acc::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete;
}
.acc[open]::details-content { block-size: auto; }

/* Testimonials (quotes verbatim from data/testimonials.toml) */
.quote-card { display: flex; flex-direction: column; gap: var(--space-4); height: 100%; padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); border-radius: var(--radius-lg); background: var(--card-bg); }
.quote-card blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote-card figcaption { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; }
.person-meta { display: grid; line-height: var(--lh-small); font-size: var(--fs-small); }
.person-meta strong { font-size: var(--fs-body); }
.person-meta span { color: var(--text-muted); }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden; flex: none; background: var(--lavender-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.field { display: grid; gap: var(--space-1); }
.field label, .field__label { font-size: var(--fs-small); font-weight: 700; }
.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  font-size: var(--fs-body);
  line-height: 1.4;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
textarea.input { min-height: 8.5rem; resize: vertical; }
.input::placeholder { color: var(--slate); opacity: .85; }
.input:hover { border-color: var(--navy); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--lavender); }
/* Form messages (PHASE3.md item 4): optional markers, hints, errors (in the
   accent ink: violet on light surfaces, lavender on navy), the error summary,
   the consent box, the spam trap and the panel shown after sending. */
.field__optional { font-weight: 400; color: var(--text-muted); }
.field__hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
.field__error { display: flex; gap: 0.5em; align-items: baseline; font-size: var(--fs-small); font-weight: 700; line-height: var(--lh-small); color: var(--accent-ink); }
.field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--accent-ink); color: var(--bg); line-height: 1; }
.input[aria-invalid="true"] { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1px var(--accent-ink), 0 0 0 4px var(--lavender); }
.form-errors { display: grid; gap: var(--space-1); padding: var(--space-2) var(--space-3); border-left: 4px solid var(--accent-ink); border-radius: var(--radius-sm); background: var(--lavender-100); color: var(--navy); }
.form-errors__title { font-weight: 700; }
.form-errors ul { display: grid; gap: var(--space-0-5); }
.form-errors a { font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.consent { gap: var(--space-1); }
.consent__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); align-items: start; font-size: var(--fs-small); line-height: var(--lh-small); }
.consent__row input { width: 1.25rem; height: 1.25rem; margin: 0.1em 0 0; accent-color: var(--navy); }
.consent__row label { font-weight: 400; }
.consent a { font-weight: 700; text-decoration-color: var(--accent-ink); text-decoration-thickness: 1.5px; }
.form-privacy { max-width: var(--measure); font-size: var(--fs-small); line-height: var(--lh-small); }   /* how a form's details are used (legal audit M1, N5) */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
.form-status { display: grid; gap: var(--space-1); justify-items: start; padding: var(--space-3); border-radius: var(--radius); background: var(--lavender-100); color: var(--navy); }
.form-status__text { font-weight: 700; }
.form-status__more { font-size: var(--fs-small); line-height: var(--lh-small); }
.form-status a { font-weight: 700; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; }
.form-status__again { padding: 0; border: 0; background: none; color: inherit; }
.surface-navy .form-errors, .surface-navy .form-status { background: rgb(243 237 224 / .08); color: var(--text); }
.surface-navy .form-status a { text-decoration-color: var(--lavender); }
.site-footer .form-errors a, .site-footer .form-status a, .site-footer .consent a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }   /* links in sentences stay underlined in the footer */
.surface-navy .consent__row input { accent-color: var(--lavender); }

/* Full-bleed media behind a section */
.media-fill { position: absolute; inset: 0; z-index: -2; }
.media-fill > picture, .media-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Decorative constellation (logo motif): hero and footer only */
.constellation { position: absolute; pointer-events: none; color: var(--navy); user-select: none; }
img.constellation { height: auto; }
.constellation line { stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; }
.constellation circle { fill: currentColor; }
.constellation .is-accent { fill: var(--violet); }

/* Lists ------------------------------------------------------------------ */
/* Ticks: what's included */
.ticks { display: grid; gap: var(--space-2); }
.ticks > li { position: relative; padding-left: 2rem; }
.ticks > li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.32em;
  width: 1.15rem;
  height: 0.6rem;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg) scale(.82);
  transform-origin: 30% 60%;
}
.ticks--cross > li::before { width: 1.05rem; height: 0; top: 0.78em; border-left: 0; border-bottom: 2px solid var(--text-muted); transform: none; }
/* Steps: a numbered process, italic serif numerals */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps > li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: var(--space-2); padding-block: var(--space-3); border-bottom: 1px solid var(--line); counter-increment: step; }
.steps > li::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-style: italic; font-size: var(--fs-h3); line-height: 1.1; color: var(--accent-ink); }
.steps__title { font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 700; line-height: var(--lh-small); }
.steps p { max-width: var(--measure); }
.steps > li > :not(.steps__title) { grid-column: 2; }
/* Tiles: a grid of short titled items (agent types, modules, principles) */
.tiles { display: grid; gap: var(--gap); }
@media (min-width: 48em) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: var(--space-2); padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); border-radius: var(--radius-lg); background: var(--card-bg); }
.tile__title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.tile .link-arrow { margin-top: auto; padding-top: var(--space-1); }
/* Points: titled items on hairlines, no card */
.points { display: grid; gap: var(--space-5) var(--gap); }
@media (min-width: 40em) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.point { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-3); border-top: 1px solid var(--line-strong); }
.point__title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
/* Points whose texts start on one line across each row, however the titles wrap */
@media (min-width: 40em) {
  .points--aligned { row-gap: 0; }
  .points--aligned > .point { grid-row: span 2; grid-template-rows: subgrid; row-gap: var(--space-2); padding-bottom: var(--space-5); }
}

/* Boxes ------------------------------------------------------------------ */
/* Note: a short aside on lavender tint (the guarantee, a caveat) */
.note { display: grid; gap: var(--space-1); padding: var(--space-3); border-radius: var(--radius); background: var(--lavender-100); color: var(--navy); }
.note__title { font-weight: 700; }
/* Package box: the Starter at a glance, with its one button */
.package { display: grid; gap: var(--space-4); align-content: start; padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.package__title { font-size: var(--fs-h3); margin-top: calc(var(--space-3) * -1 + var(--space-1)); }
.package__title:first-child { margin-top: 0; }   /* no label above it (home) */
.package__price { display: grid; gap: var(--space-1); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.price { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.price strong { font-weight: 600; }
.price span { display: block; font-size: var(--fs-small); color: var(--text-muted); }
.package__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }

/* Price table (Pricing page): stacked rows on phones, a table from 48em */
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { text-align: left; }
.price-table th, .price-table td { padding: var(--space-3) 0; text-align: left; vertical-align: top; }
.price-table thead th { padding-top: 0; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.price-table tbody tr { border-top: 1px solid var(--line); }
.price-table tbody th { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 400; line-height: var(--lh-h3); }
.price-table tbody th a { text-decoration: none; }
.price-table tbody th a:hover { text-decoration: underline; text-decoration-color: var(--violet); }
.price-table .price-table__price { font-weight: 700; }
@media (max-width: 47.99em) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tbody th { padding-bottom: var(--space-1); }
  .price-table td { padding-block: 0 var(--space-1); }
  .price-table td:last-child { padding-bottom: var(--space-3); }
  .price-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; }
}
@media (min-width: 48em) {
  .price-table th, .price-table td { padding-right: var(--gap); }
  .price-table th:last-child, .price-table td:last-child { padding-right: 0; }
}

/* Long text in the sans face (service details, legal text): one comfortable measure */
.longform { max-width: var(--measure); }
.longform > * + * { margin-top: 1em; }
.longform h3 { margin-top: 2em; }
.longform h3 + * { margin-top: 0.6em; }
.longform ul { padding-left: 1.2em; }
.longform li + li { margin-top: 0.6em; }
.longform li::marker { color: var(--violet); }
.longform a { text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; font-weight: 600; }

/* 6. Header --------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  transition: box-shadow var(--dur-2) var(--ease-out);
}
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would
   make it the containing block for the fixed-position mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(243 237 224 / .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color var(--dur-2);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgb(24 46 82 / .35); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--radius-sm); }
.brand img { height: 3.25rem; width: auto; }
@media (min-width: 64em) { .brand img { height: 4.25rem; } }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.75rem;   /* bars (1.5rem, centred) end exactly on the container edge */
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav__list { margin: 0; }
.nav__link {
  position: relative;
  text-decoration: none;
  font-weight: 600;
}

/* Mobile: full-screen lavender sheet */
@media (max-width: 63.99em) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-6);
    padding: calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-6);
    background: var(--lavender);
    overflow-x: hidden;
    overflow-y: auto;
    isolation: isolate;
    visibility: hidden;
    content-visibility: hidden;   /* closed sheet: no layout, no font downloads */
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2), content-visibility 0s linear var(--dur-2);
    transition-behavior: allow-discrete;
  }
  .nav-open .nav { visibility: visible; content-visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { box-shadow: none; }
  .nav-open .site-header::before { background: var(--lavender); }
  .nav-open .brand { position: relative; z-index: 2; }
  .nav__list { display: grid; gap: var(--space-0-5); }
  .nav__link {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    padding: var(--space-1) 0;
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: var(--lh-h2);
    letter-spacing: var(--tracking-h2);
  }
  .nav__link[aria-current] { font-style: italic; }
  .nav__link[aria-current]::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--violet);
    align-self: center;
  }
  .nav .btn { align-self: flex-start; }
  .nav__constellation { left: 8%; right: 0; bottom: 7rem; width: 92%; max-width: 30rem; opacity: .4; z-index: -1; }
}
/* Desktop */
@media (min-width: 64em) {
  .nav-toggle, .nav__constellation { display: none; }
  .nav { display: flex; align-items: center; gap: var(--space-3); }
  .nav__list { display: flex; align-items: center; gap: 0.125rem; }
  .nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.85rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    transition: background-color var(--dur-2) var(--ease-out);
  }
  .nav__link:hover { background: rgb(216 202 255 / .55); }
  .nav__link[aria-current] { background: var(--lavender); }
}
@media (min-width: 80em) { .nav { gap: var(--space-4); } .nav__link { padding-inline: 1rem; } }

/* Footer: navy, so the closing call to action runs straight into it ------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; font-size: var(--fs-small); line-height: var(--lh-small); }
.site-footer > .container { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) var(--space-4); }
/* The navy closing call and the footer read as one block, split by one hairline */
main:has(> .closing:last-child) + .site-footer > .container { border-top: 1px solid var(--line); }
.site-footer a { text-decoration: none; }
.footer__top { display: grid; gap: var(--space-6); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.footer__brand img { height: 4.5rem; width: auto; }
.footer__signoff { margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); color: var(--cream); }
.footer__signoff em { color: var(--lavender); }
.footer__newsletter { display: grid; gap: var(--space-2); align-content: start; max-width: 34rem; }
.footer__heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-ink);
}
.footer__newsletter p { color: var(--text-muted); }
.newsletter-form { display: grid; gap: var(--space-2); margin-top: var(--space-1); }
.newsletter-form__row { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.newsletter-form .consent__row { color: var(--text-muted); }
.newsletter-form .input { flex: 1 1 14rem; min-width: 0; background: rgb(243 237 224 / .06); border-color: var(--line-strong); color: var(--cream); border-radius: var(--radius-pill); padding-inline: 1.25rem; }
.newsletter-form .input::placeholder { color: var(--text-muted); opacity: 1; }
.newsletter-form .input:hover, .newsletter-form .input:focus { border-color: var(--lavender); }
.newsletter-form .input:focus { box-shadow: 0 0 0 4px rgb(216 202 255 / .3); }
.newsletter-form .btn { flex: none; }
.footer__grid { display: grid; gap: var(--space-5) var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.footer__col ul { display: grid; gap: var(--space-0-5); margin-top: var(--space-2); list-style: none; padding: 0; }
.footer__col a { display: inline-flex; min-height: 2.25rem; align-items: center; color: var(--text); transition: color var(--dur-2); }
.footer__col a:hover { color: var(--lavender); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.footer__address { grid-column: 1 / -1; display: grid; gap: var(--space-2); align-content: start; }
.footer__address address { color: var(--text-muted); line-height: 1.7; }
.footer__address address a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.footer__address address a:hover { color: var(--lavender); }
.footer__locations { color: var(--text); }
.footer__social { display: flex; gap: var(--space-1); }
.footer__social a {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2);
}
.footer__social a:hover { background: var(--lavender); color: var(--navy); box-shadow: none; }
.footer__social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--text-muted); }
.footer__constellation { right: -7rem; top: 1rem; width: 22rem; max-width: none; opacity: .45; z-index: -1; }   /* one column: top corner, clear of the logo */
@media (min-width: 48em) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__address { grid-column: auto; }
}
@media (min-width: 64em) {
  /* the constellation keeps to the fourth column, clear of the sign-up form in the two before it */
  .footer__constellation { right: -4rem; top: 2rem; width: min(22rem, 28vw); }
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; column-gap: var(--gap); align-items: end; }
  .footer__newsletter { grid-column: 2 / span 2; }
}

/* 7. Home ----------------------------------------------------------------- */
/* Hero: the design Alex likes (heart on the lavender disc, constellation,
   highlighter, cream). Only the words and the credential line changed. */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(4rem, 2rem + 6vw, 7.5rem); overflow: clip; }
.hero__grid { display: grid; gap: var(--space-6) var(--gap); align-items: center; }
.hero__copy { position: relative; z-index: 1; }   /* above the art's glow, which reaches into the copy */
.hero__title { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--tracking-display); }
.hero__lead { margin-top: var(--space-4); font-size: var(--fs-h4); line-height: 1.45; max-width: 26em; color: var(--text); text-wrap: balance; }
.hero__lead span { display: block; color: var(--text-muted); }
.hero__actions { margin-top: var(--space-5); column-gap: var(--space-2); }
.credentials { display: grid; gap: var(--space-0-5); margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--line); max-width: 32rem; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
.credentials span { display: block; }
.hero__art { position: relative; width: min(100%, 27rem); margin-inline: auto; aspect-ratio: 1; }
.hero__art::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgb(216 202 255 / .55), rgb(216 202 255 / 0)); z-index: 0; pointer-events: none; }
.hero__disc { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(120% 120% at 30% 25%, color-mix(in srgb, var(--lavender), #fff 35%) 0%, var(--lavender) 55%, color-mix(in srgb, var(--lavender), var(--violet) 12%) 100%); }
.hero__heart { position: absolute; left: 50%; top: 50%; width: 66%; translate: -50% -47%; filter: drop-shadow(0 30px 40px rgb(24 46 82 / .22)); }
.hero__art .constellation { inset: 0; width: 100%; height: 100%; }
.hero__art .constellation line { opacity: .5; }
@media (min-width: 56.25em) {
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .hero__art { width: 112%; max-width: 44rem; margin: -2rem -6% -2rem 0; justify-self: end; }
}

/* Client voices: one featured quote (the page's navy moment) and two cards */
.voices { display: grid; gap: var(--gap); }
.quote-card--feature { position: relative; justify-content: space-between; gap: var(--space-6); padding: clamp(1.75rem, 1rem + 3.5vw, 4rem); }
.quote-card--feature blockquote p { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: var(--tracking-h2); text-indent: -0.42em; }
.quote-card--feature .avatar { width: 4.5rem; height: 4.5rem; }
.quote-card--feature .person-meta strong { color: var(--cream); }
@media (min-width: 56.25em) {
  .voices { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .voices > .quote-card { grid-column: 8 / span 5; }
  .voices > .quote-card--feature { grid-column: 1 / span 7; grid-row: span 2; }
}

/* What we do: the three offers */
.offers { display: grid; gap: var(--gap); }
@media (min-width: 56.25em) { .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer-card { display: flex; flex-direction: column; gap: var(--space-2); padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); border-radius: var(--radius-lg); background: var(--card-bg); }
.offer-card--first { box-shadow: inset 0 0 0 1.5px var(--navy); }
.offer-card .label { margin-bottom: var(--space-1); }
.offer-card__title { font-size: var(--fs-h3); }
.offer-card .link-arrow { margin-top: auto; padding-top: var(--space-2); }

/* The Starter in four weeks: one row per week, the package box beside it */
.starter-grid { display: grid; gap: var(--space-6) var(--gap); }
@media (min-width: 64em) {
  .starter-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 1rem + 4vw, 6rem); align-items: start; }
  .starter-grid > .package { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}
.weeks { display: grid; border-top: 1px solid var(--line-strong); }
.week { display: grid; gap: var(--space-1) var(--gap); align-content: start; padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.week__num { font-family: var(--font-display); font-style: italic; font-size: var(--fs-h4); line-height: 1.25; color: var(--accent-ink); }
.week__title { font-size: var(--fs-h3); }
.week p:not(.week__num) { max-width: var(--measure); }
.week__gets { margin-top: var(--space-1); }
@media (min-width: 40em) {
  .week { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .week__num { grid-row: span 3; padding-top: 0.2em; }
}
/* Week by week in detail: what happens, and beside it what you get */
.weeks--detail .week__gets { padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--paper); }
@media (min-width: 64em) {
  .weeks--detail .week { grid-template-columns: 6.5rem minmax(0, 7fr) minmax(0, 4fr); }
  .weeks--detail .week__num { grid-row: span 2; }
  .weeks--detail .week__gets { grid-column: 3; grid-row: 1 / span 2; align-self: start; margin-top: 0; }
}

/* Team: three directors */
.team { display: grid; gap: var(--gap); }
.member { display: flex; flex-direction: column; gap: var(--space-3); }
.member__head { display: flex; align-items: center; gap: var(--space-3); }
.member__photo { width: clamp(5rem, 4.25rem + 3vw, 7rem); aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; flex: none; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: var(--fs-h3); }
.member__title { margin-top: var(--space-1); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 700; color: var(--text-muted); }
.member .link-arrow { margin-top: auto; }
@media (min-width: 56.25em) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member__head { flex-direction: column; align-items: flex-start; }
}

/* Inner-page title block and the closing call to action (all pages) ------- */
.masthead { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero.surface-cream + .section.surface-cream { padding-top: 0; }
/* After a page title block: one head gap, the same on every inner page */
.masthead.surface-cream + .section.surface-cream { padding-top: var(--head-gap); }
.masthead .label { margin-bottom: var(--space-3); }
.masthead__title { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tracking-h1); max-width: 14em; }
.masthead__lead { margin-top: var(--space-4); font-size: var(--fs-h4); line-height: var(--lh-h4); max-width: var(--measure); }
.masthead__actions { margin-top: var(--space-5); }
.masthead__note { margin-top: var(--space-3); max-width: var(--measure); }   /* the newsletter's confirmation pages */
.masthead__lead a, .masthead__note a { font-weight: 700; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; }

.closing { padding-block: var(--section-y) calc(var(--section-y) * .75); }
.closing__inner { display: grid; justify-items: start; gap: var(--space-3); }
.closing__title { font-size: var(--fs-h2); max-width: 14em; }
.closing__text { font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--text-muted); max-width: 30em; }
.closing .actions { margin-top: var(--space-2); }

/* 8. Shared: blog cards ----------------------------------------------------- */
/* Post card: image, meta (category links, date), title, excerpt. The title
   link covers the card (its focus ring outlines the card); the category links
   sit above that layer. Excerpts are body text: navy, body size, 32em at
   most, three lines at most (design-notes.md 4). */
.post-grid { display: grid; gap: var(--space-8) var(--gap); }
@media (min-width: 48em) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-grid--after-feature { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.post-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.post-card__media { aspect-ratio: 3 / 2; }
.post-card__media img { transition: transform 900ms var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: grid; justify-items: start; gap: var(--space-2); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5em; font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: var(--tracking-small); color: var(--text-muted); }
.post-card__meta > * + *::before { content: "·"; content: "·" / ""; display: inline-block; margin-right: 0.5em; font-weight: 400; color: var(--text-muted); }
.post-card__meta a, .post-card__cat { font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.post-card__meta a { position: relative; z-index: 2; }
.post-card__meta a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.post-card__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); }
.post-card__title a { text-decoration: none; background: linear-gradient(var(--mark), var(--mark)) 0 88% / 0 0.3em no-repeat; transition: background-size var(--dur-3) var(--ease-out); }
.post-card:hover .post-card__title a { background-size: 100% 0.3em; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg); }
.post-card__title a:focus-visible { outline: none; }
.post-card__title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 6px; }
.post-card__excerpt {
  max-width: 32em;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
/* Featured card (listing pages with an odd number of posts): image beside the
   text from 56.25em, where the excerpt has the height of the image to run in */
@media (min-width: 56.25em) {
  .post-card--feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
  .post-card--feature .post-card__media { aspect-ratio: 4 / 3; }
  .post-card--feature .post-card__body { gap: var(--space-3); }
  .post-card--feature .post-card__title { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); }
  .post-card--feature .post-card__excerpt { -webkit-line-clamp: 6; line-clamp: 6; }
}

/* 9. Blog listing & article (owner while building: blog agent) ----------- */
/* Back link: to the Insights index from a post ("Insights") or a topic page ("All insights") */
.back-link { display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem; font-size: var(--fs-small); font-weight: 700; letter-spacing: var(--tracking-small); color: var(--text-muted); text-decoration: none; transition: color var(--dur-2); }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-2) var(--ease-out); }
.back-link:hover .icon { transform: translateX(-3px); }
.masthead .back-link { display: flex; width: max-content; margin: calc(var(--space-1) * -1) 0 var(--space-3); }

.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@keyframes progress { to { transform: scaleX(1); } }

/* Article header: back link, topics, title, byline; the image below them
   at 3:2, beside them (square) from 56.25em */
.article-header { padding-block: clamp(1.5rem, 0.75rem + 3vw, 3.5rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
/* One column below 56.25em: the essay's column (28em at the essay size; every
   text in the header sets its own size), so on tablets the title, image and
   essay share their edges. */
.article-header__grid { display: grid; gap: var(--space-5) var(--gap); align-items: center; max-width: var(--measure-prose); font-size: var(--fs-prose); }
.article-header__topics { margin-top: var(--space-2); }
.article-title { margin-top: var(--space-3); max-width: 15em; }
.byline { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: var(--fs-small); line-height: var(--lh-small); }
.byline .avatar { width: 3rem; height: 3rem; }
.byline .avatar img { transform: scale(1.3); transform-origin: 46% 34%; }   /* the face, not the studio backdrop */
.byline__text { display: grid; }
.byline__name { font-size: var(--fs-body); font-weight: 700; }
.byline__meta { display: flex; flex-wrap: wrap; gap: 0 0.5em; color: var(--text-muted); }
.byline__meta > * + *::before { content: "·"; content: "·" / ""; margin-right: 0.5em; }
/* "Last reviewed" (data/post-edits.toml): one quiet line under the byline */
.article-reviewed { margin-top: var(--space-2); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
/* Editor's note above the essay: the site's voice at body size, on the lavender tint */
.editor-note { margin-bottom: var(--space-6); font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); }
.editor-note a { font-weight: 700; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.article-figure .frame { aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
@media (min-width: 56.25em) {
  .article-header__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); max-width: none; }
  .article-figure .frame { aspect-ratio: 1; }
}

/* Article body: one column at the essay's measure (the sources, author card,
   call to action and related posts share it); from 75em the contents rail
   sits beside it, the pair centred, no empty right column. */
.article-body { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section-y); }
.article-layout { display: grid; }
.article-main { width: min(100%, var(--measure-prose)); margin-inline: auto; font-size: var(--fs-prose); }   /* 28em at the essay size */
@media (min-width: 75em) {
  .article-layout--toc { grid-template-columns: 15rem minmax(0, 37rem); justify-content: center; column-gap: var(--space-8); }
  .article-layout--toc .article-main { margin-inline: 0; }
}
/* Contents rail (posts from 75em, the privacy policy from 64em) */
.toc { display: none; }
.toc ol { display: grid; gap: 2px; margin: var(--space-2) 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 0.375rem 0 0.375rem 1rem; border-left: 2px solid transparent; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); text-decoration: none; transition: color var(--dur-2), border-color var(--dur-2); }
.toc a:hover { color: var(--text); }
.toc a.is-active { border-left-color: var(--violet); color: var(--text); }
@media (min-width: 75em) {
  .article-layout--toc .toc { display: block; position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; }
}

/* The essay (design-notes.md 4): Newsreader Text at the essay size, about
   65 characters a line, a visible pause between paragraphs and list items. */
.prose { max-width: var(--measure-prose); font-family: var(--font-serif); font-size: var(--fs-prose); line-height: var(--lh-prose); color: var(--text); }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { margin-top: 2em; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); }
.prose h2 + * { margin-top: 0.75em; }
.prose h2 strong { font-weight: 400; }
.prose :is(ul, ol) { padding-left: 1.2em; }
.prose li + li { margin-top: 1em; }
.prose li::marker { color: var(--violet); }
.prose ol > li::marker { font-family: var(--font-display); font-style: italic; }
.prose strong { font-weight: 600; }
.prose a { border-radius: 2px; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; transition: background-color var(--dur-2); }
.prose a:hover { background: var(--lavender-100); text-decoration-color: currentColor; }
/* Opening paragraph at the essay size, with a two-line violet drop cap */
.prose .lede::first-letter { float: left; margin: 0.08em 0.1em 0 -0.02em; font-family: var(--font-display); font-size: 3.6em; font-style: normal; line-height: 0.82; color: var(--violet); }
/* A paragraph set entirely in bold reads as a pull-quote */
.prose .pullquote { margin-block: 1.4em; padding: 0.1em 0 0.1em 1em; border-left: 3px solid var(--lavender); font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.22; letter-spacing: var(--tracking-h3); }
.prose .pullquote strong, .prose em strong, .prose strong em { font-weight: 400; }
.prose em strong { background: linear-gradient(transparent 60%, var(--lavender) 60%, var(--lavender) 92%, transparent 92%); }
/* Each post ends with a rule: three violet dots close the essay */
.prose hr { width: 4.5rem; height: 1.5rem; margin: 2.5em auto 0; border: 0; background: radial-gradient(circle, var(--violet) 2.5px, transparent 3px) center / 1.5rem 1.5rem repeat-x; }

/* Sources: calm small navy text after the essay; author-date lists hang */
.references { margin-top: var(--space-6); font-family: var(--font-sans); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text); }
.references__title { font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 700; line-height: var(--lh-small); letter-spacing: 0; }
.references :is(ul, ol) { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.references ol { padding-left: 1.5em; }
.references ol > li::marker { color: var(--text-muted); }
.references ul { padding-left: 0; list-style: none; }
.references ul > li { padding-left: 1.5em; text-indent: -1.5em; }
.references li { overflow-wrap: anywhere; }
.references a { text-decoration-color: var(--violet); text-underline-offset: 0.2em; }
.references a:hover { text-decoration-thickness: 1.5px; }

/* About the author: the same card on every post (data/team.toml) */
.author-card { display: grid; justify-items: start; gap: var(--space-3); margin-top: var(--space-8); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--card-bg); font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); }
.author-card__head { display: flex; align-items: center; gap: var(--space-3); }
.author-card__photo { flex: none; width: 4.5rem; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.author-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-card__name { margin-top: var(--space-1); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); }
.author-card__role { margin-top: var(--space-0-5); font-size: var(--fs-small); font-weight: 700; line-height: var(--lh-small); color: var(--text-muted); }
.author-card .link-arrow { margin-block: calc(var(--space-1) * -1); }
@media (min-width: 40em) { .author-card__photo { width: 6rem; } }

/* End-of-post call to action: the page's one lavender block */
.post-cta { display: grid; justify-items: start; gap: var(--space-2); margin-top: var(--space-8); padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border-radius: var(--radius-lg); font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); }
.post-cta__title { max-width: 16em; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); }
.post-cta__text { max-width: 30em; }
.post-cta .actions { margin-top: var(--space-2); }

/* Related posts */
.related { margin-top: var(--space-8); font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); }
.related__title { font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 700; line-height: var(--lh-small); letter-spacing: 0; }
.related ul { margin: var(--space-2) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { position: relative; display: grid; gap: var(--space-1); padding: var(--space-3) 2.75rem var(--space-3) 0; text-decoration: none; }
.related .date { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
.related .title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); text-wrap: balance; }
.related a:hover .title { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.related__icon { position: absolute; top: 50%; right: 0.25rem; translate: 0 -50%; color: var(--accent-ink); transition: transform var(--dur-2) var(--ease-out); }
.related a:hover .related__icon { transform: translateX(4px); }

/* 10. About (owner while building: about/contact agent) ------------------- */
/* Who we are (beside the directors) and our story (beside a client quote) */
.about-who__text, .about-story { display: grid; justify-items: start; gap: var(--space-3); }
.about-who__text > p, .about-story > p { max-width: var(--measure); }

/* "Meet the Team" over where we operate: three city panels (one colour
   treatment, see images.py) with the team card overlapping their lower edge.
   Narrow column: a compact city strip, then one row per person. From a 34rem
   column (tablet, desktop): tall panels and the three people side by side. */
.directors { container: directors / inline-size; width: 100%; max-width: 44rem; justify-self: center; }
.cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; }
.city { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 5; border-radius: 0.75rem; background: var(--navy); }
.city picture { height: 100%; }
.city img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.city::after { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: linear-gradient(rgb(14 28 54 / .28), rgb(14 28 54 / 0)); }   /* scrim behind the label */
.city__label {
  position: absolute;
  z-index: 1;
  top: 0.375rem;
  left: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.65em 0.3em 0.5em;
  border-radius: var(--radius-pill);
  background: rgb(14 28 54 / .78);   /* white text >= 8:1 even over white cloud */
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.city__label::before { content: ""; flex: none; width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--lavender); }
.team-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2);
  margin: -1.75rem 0.5rem 0;
  padding: var(--space-2) 0.75rem 0.75rem;
  border: 5px solid var(--paper);
  border-radius: var(--radius);
  background: radial-gradient(90% 60% at 50% 100%, rgb(91 63 191 / .6), transparent 70%), linear-gradient(170deg, #150F33, #2A1B6E);
  box-shadow: var(--shadow-lg);
}
.team-card__title { font-family: var(--font-sans); font-size: var(--step--1); font-weight: 800; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); text-align: center; }
.team-card__title span { padding-inline: 0.25em; background: linear-gradient(transparent 52%, rgb(216 202 255 / .4) 52%, rgb(216 202 255 / .4) 90%, transparent 90%); }
.team-card__list { display: grid; gap: 0.5rem; }
.team-card__tile { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: var(--space-2); height: 100%; padding: 0.5rem 2.5rem 0.5rem 0.5rem; border-radius: 0.75rem; background: #fff; }
.team-card__tile::before { content: ""; position: absolute; top: 0.6rem; right: 0.75rem; width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: var(--navy); box-shadow: -0.5rem 0 0 var(--navy), -1rem 0 0 var(--navy); }   /* three dots */
.team-card__tile figcaption { display: grid; gap: 0.125rem; line-height: 1.3; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); }
.team-card__tile strong { font-size: var(--step--1); font-weight: 800; }
.team-card__tile figcaption span { font-size: var(--step--2); font-weight: 500; text-wrap: balance; }
@container directors (min-width: 34rem) {
  .cities { gap: 0.5rem; }
  .city { aspect-ratio: 3 / 5; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .city__label { top: 0.625rem; left: 0.625rem; padding: 0.4em 0.8em 0.4em 0.65em; font-size: var(--step--2); letter-spacing: 0.14em; }
  .team-card { margin: -22% 1rem 0; padding: 0.875rem 0.875rem 1rem; border-width: 6px; transform: rotate(1deg); }
  .team-card__title { font-size: var(--step-0); }
  .team-card__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-card__tile { grid-template-columns: none; align-content: start; gap: 0.625rem; padding: 1.375rem 0.625rem 0.875rem; }
  .team-card__tile strong { font-size: clamp(0.75rem, 2.1cqi, 0.9375rem); }
}

/* Facts: a short definition list (About: legal details; Contact: other ways
   to reach us), two columns from tablet width */
.facts { display: grid; gap: var(--space-4) var(--gap); }
@media (min-width: 40em) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts dt { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 700; color: var(--text-muted); }
.facts dd { margin: var(--space-0-5) 0 0; }
.facts a { font-weight: 700; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; }

/* 10b. Contact: the landing page of "Book an intro call" ------------------ */
/* Hero over the sky photo: a cream veil keeps the navy text AA. From 56.25em
   a card sits beside the copy, which stays in view beside it: the booking card
   (#book, a button to the booking page, Phase 3c) or, without a booking page,
   the request form. With an embedded calendar (.contact-hero--booking,
   booking.embed, Phase 3b) the call facts sit beside the copy and the booking
   card spans the container below them. */
.contact-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--section-y); }
.contact-hero + .section.surface-cream { padding-top: 0; }   /* light-to-light boundary padded once */
.contact-hero__media img { object-position: 50% 30%; }
.contact-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--cream) 42%, transparent) 0%, color-mix(in srgb, var(--cream) 62%, transparent) 50%, var(--cream) 100%); }
.contact-hero .eyebrow { margin-bottom: var(--space-3); color: var(--navy); }   /* navy, not violet, over the photo */
.contact-hero h1 { max-width: 12em; }
.contact-hero__lead { margin-top: var(--space-4); font-size: var(--fs-h4); line-height: var(--lh-h4); max-width: var(--measure); }
.contact-hero__actions { margin-top: var(--space-5); }
.contact-hero__note { margin-top: var(--space-4); max-width: var(--measure); font-size: var(--fs-small); line-height: var(--lh-small); }
.contact-hero__note a, .brief a:not(.btn), .booking__alt a { font-weight: 700; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; }
/* What the call covers, and who you will speak with */
.call-facts { display: grid; gap: var(--space-2); margin-top: var(--space-5); max-width: var(--measure); }
.call-facts__title { font-weight: 700; }
.call-facts__people { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-1); font-size: var(--fs-small); line-height: var(--lh-small); }
.call-facts__faces { display: flex; flex: none; }
.call-facts__faces .avatar { width: 2.5rem; height: 2.5rem; box-shadow: 0 0 0 2px var(--cream); }
.call-facts__faces .avatar + .avatar { margin-left: -0.625rem; }
@media (min-width: 56.25em) {
  .contact-hero .split > .split__a { grid-column: 1 / span 6; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .contact-hero .split > .split__b { grid-column: 8 / span 5; }
  .contact-hero--booking .split { align-items: end; }
  .contact-hero--booking .split > .split__a { position: static; }
  .contact-hero--booking .call-facts { margin-top: 0; }
}

/* The request form (#brief: the closing bands' "Or send us a short brief"
   links here). Shared field, error and status styles: section 5, Forms. */
.brief, .booking { --card-pad: clamp(1.5rem, 1rem + 2.5vw, 3rem); container-type: inline-size; display: grid; gap: var(--space-4); padding: var(--card-pad); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-lg); }
.brief { position: relative; overflow: clip; }   /* holds and clips its off-screen spam trap (section 5), as the hero did */
.brief__head, .booking__head { display: grid; gap: var(--space-1); }
.brief__title, .booking__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); }
.brief__form { display: grid; gap: var(--space-4); }
.brief__fields { display: grid; gap: var(--space-3) var(--space-2); }
@container (min-width: 36rem) { .brief__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 1.15rem; top: 50%; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
.brief__options { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; }
.brief__options legend { padding: 0; margin-bottom: var(--space-1); }
.brief__option { display: flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; }
.brief input[type="radio"] { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--navy); }
.brief__form .btn { justify-self: start; }
.brief__form .form-note { margin-top: calc(var(--space-2) * -1); }

/* The booking card (#book: every "Book an intro call" button lands here).
   Phase 3c: its button opens the booking page in a new tab, with a one-line
   note saying so. The rest is for an embedded calendar (booking.embed, kept
   empty since Phase 3c, legal audit M3).
   Google's appointment page (booking.embed in data/site.toml) can't size its
   frame from outside, so the frame is as tall as the page's content at each
   width, measured 20 October 2026 with 16 half-hour slots a day (10:00-17:30):
   one column below 600px wide (1713px from 360px, 1753px at 320px), the month
   beside two days from 600px (1253-1272px), a week from 920px (1238px). If the
   schedule's hours change, measure again (tools/qa/booking-embed.js). Phones
   and small tablets: the frame runs to the card's edges. */
.contact-hero--booking .booking { margin-top: var(--space-8); }
.booking__action { display: grid; justify-items: start; gap: var(--space-2); }
.booking__note { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
.booking__alt { font-size: var(--fs-small); line-height: var(--lh-small); }
.booking__alt .icon { display: inline-block; width: 1.1em; height: 1.1em; margin-left: 0.2em; vertical-align: -0.2em; color: var(--accent-ink); }
.booking__frame { container-type: inline-size; }
@media (max-width: 47.99em) { .booking__frame { margin-inline: calc(var(--card-pad) * -1); } }
.booking__frame iframe { display: block; width: 100%; height: 1800px; border: 0; }
@container (min-width: 320px) { .booking__frame iframe { height: 1760px; } }
@container (min-width: 360px) { .booking__frame iframe { height: 1720px; } }
@container (min-width: 600px) { .booking__frame iframe { height: 1280px; } }
@container (min-width: 920px) { .booking__frame iframe { height: 1245px; } }

/* 10c. Legal: privacy policy and terms of website use ------------------- */
/* Body text in navy at body size within --measure (.longform), the date of
   the last update as meta, a contents rail beside the text from 64em. */
.legal-meta { display: grid; margin-top: var(--space-3); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }   /* phones: one date a line */
@media (min-width: 40em) {
  .legal-meta { display: flex; flex-wrap: wrap; gap: 0 0.5em; }
  .legal-meta > * + *::before { content: "·"; content: "·" / ""; margin-right: 0.5em; }
}
.legal-layout { display: grid; }
@media (min-width: 64em) {
  .legal-layout { grid-template-columns: 15rem minmax(0, var(--measure)); justify-content: start; column-gap: var(--space-8); }
  .legal-layout .toc { display: block; position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; }
}
.legal { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); }
.legal h2 { margin-top: 2em; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); }
.legal h2 + * { margin-top: var(--space-2); }
.legal > h2:first-child { margin-top: 0; }   /* level with the contents rail beside it */
/* Sub-sections of the privacy policy: body size, bold sans (no extra type size) */
.legal h3 { margin-top: 1.8em; font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 700; line-height: var(--lh-small); letter-spacing: 0; }
.legal h3 + * { margin-top: var(--space-1); }

/* 10d. 404 (owner while building: about/contact agent) ------------------ */
/* The constellation with its missing node is the page's art; the title takes
   the H1 role like every inner page. */
.error-hero { text-align: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--section-y); }
.error-hero__art { width: min(100%, 26rem); margin: 0 auto var(--space-3); position: relative; }
.error-hero__art .constellation { position: static; width: 100%; height: auto; }
.error-hero h1 em { color: var(--violet); }
.error-hero p { margin: var(--space-3) auto 0; max-width: 28em; font-size: var(--fs-h4); line-height: var(--lh-h4); text-wrap: balance; }
.error-hero .actions { justify-content: center; margin-top: var(--space-5); }
.error-hero .constellation .missing { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 3 3; }
.error-hero .constellation line.missing { stroke: var(--violet); stroke-dasharray: 4 4; opacity: .9; }

/* 10e. Services, agents, consulting, pricing, nonprofits (owner while building: service pages agent) */
/* Services: the three offers. Phones: one card each. Tablets: one wide card
   each, its three rows side by side. Desktop: three cards whose rows (For,
   You get, How it's priced) line up across the cards (nested subgrid). */
.compare { display: grid; gap: var(--gap); }
.compare__item { display: grid; row-gap: var(--space-3); align-content: start; padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); border-radius: var(--radius-lg); background: var(--card-bg); }
.compare__item--first { box-shadow: inset 0 0 0 1.5px var(--navy); }   /* the first step, as on the home page */
.compare__title { font-size: var(--fs-h3); }
.compare__rows { display: grid; gap: var(--space-3) var(--space-4); }
.compare__row { display: grid; gap: var(--space-1); align-content: start; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.compare__row dd { margin: 0; max-width: var(--measure); }
.compare__row--price dd { font-weight: 600; }
.compare__row--price dd span { display: block; }
.compare__item .link-arrow { justify-self: start; align-self: end; }
.compare__note { margin-top: var(--space-3); }
@media (min-width: 40em) and (max-width: 63.99em) {
  .compare__rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .compare { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-3); }
  .compare__item { grid-row: span 5; grid-template-rows: subgrid; }
  .compare__rows { grid-row: span 3; grid-template-rows: subgrid; }
}
/* Heading column of a .split: H2, an optional lead, an optional text link */
.split-head { display: grid; justify-items: start; align-content: start; gap: var(--space-3); }
/* A section that opens with an H2 straight after the masthead: the boundary is
   padded once (the masthead's bottom), which leaves the H2 as close to the
   masthead as to its own content. One head gap more above it. */

/* AI agents: five tiles; the last (People and HR agents) fills the free columns */
@media (min-width: 48em) { .agent-tiles > li:last-child:nth-child(5) { grid-column: span 2; } }
/* Note box: a .note with a card-title heading ("What we won't build",
   "Who counts as a nonprofit") */
.note-box { gap: var(--space-3); padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); border-radius: var(--radius-lg); }
.note-box__title { font-size: var(--fs-h3); }
.note-box > p { max-width: var(--measure); }
/* Ticks in two columns from tablets */
@media (min-width: 48em) { .ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); } }
/* Safeguards beside "What we won't build" */
.safeguards { display: grid; gap: var(--space-6) var(--gap); align-items: start; }
.safeguards__list { max-width: var(--measure); }
@media (min-width: 56.25em) {
  .safeguards { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .safeguards__list { grid-column: 1 / span 6; }
  .wont-build { grid-column: 8 / span 5; }
}
/* Figures shown only when pricing.toml's show_prices flag is on */
.price-list { display: grid; border-top: 1px solid var(--line); }
.price-list__row { display: grid; gap: var(--space-0-5); padding-block: var(--space-2); border-bottom: 1px solid var(--line); }
.price-list dt { font-weight: 700; }
.price-list dd { margin: 0; }
.module-price { font-weight: 600; }
/* Pricing: the price table on a paper card, "Who counts as a nonprofit" under it */
.price-card__note { margin-top: var(--space-3); }
.price-card__who { margin-top: var(--gap); max-width: 40rem; }
.price-table__approx { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--text-muted); }
@media (max-width: 47.99em) {
  /* Stacked rows: each cell's column name as a label above its value */
  .price-card .price-table tbody tr:first-child { border-top: 0; }
  .price-card .price-table tbody tr:first-child th { padding-top: 0; }
  .price-card .price-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: var(--space-0-5); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-ink); }
  .price-card .price-table td { padding-bottom: var(--space-2); }
}
@media (min-width: 48em) {
  .price-card .price-table thead th:first-child { width: 30%; }
  .price-card .price-table:not(.price-table--figures) thead th:nth-child(2) { width: 30%; }
  .price-card .price-table--figures thead th:nth-child(2), .price-card .price-table--figures thead th:nth-child(3) { width: 17%; }
}

/* Nonprofits: a point's text with a link under it; statements with their
   sources on hairlines; the funders card */
.point__body { display: grid; justify-items: start; align-content: start; gap: var(--space-1); }
.sourced { display: grid; border-top: 1px solid var(--line); }
.sourced > li { display: grid; justify-items: start; gap: var(--space-1); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.sourced p { font-size: var(--fs-h4); line-height: var(--lh-h4); max-width: var(--measure); }
.sourced__after { margin-top: var(--space-4); max-width: var(--measure); }
.funders { display: grid; justify-items: start; gap: var(--space-2); }
.funders p { max-width: var(--measure); }
@media (min-width: 56.25em) {
  .funders { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .funders > h2 { grid-column: 1 / span 5; grid-row: span 2; }
  .funders > :not(h2) { grid-column: 7 / span 6; }
}

/* 10f. Your Own AI Starter page (owner: lead) ----------------------------- */
.starter-hero__grid { display: grid; gap: var(--space-6) var(--gap); align-items: start; }
@media (min-width: 64em) {
  .starter-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 1rem + 4vw, 6rem); align-items: center; }
}
/* Deliverables: two columns of numbered items on hairlines */
.deliverables { display: grid; column-gap: var(--gap); border-top: 1px solid var(--line-strong); }
@media (min-width: 48em) { .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deliverable { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: var(--space-2); row-gap: var(--space-0-5); align-content: start; padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.deliverable__num { grid-row: span 2; font-family: var(--font-display); font-style: italic; font-size: var(--fs-h3); line-height: 1.1; color: var(--accent-ink); }
.deliverable__title { font-weight: 700; }
.deliverable p:not(.deliverable__title) { grid-column: 2; max-width: var(--measure); }
/* What we need / what's not included */
.starter-terms { display: grid; gap: var(--space-8) var(--gap); }
@media (min-width: 56.25em) { .starter-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.starter-terms__col { display: grid; gap: var(--space-4); align-content: start; }
.starter-terms a, .split__b .muted a { font-weight: 700; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; }

/* 11. Motion ---------------------------------------------------------------- */
/* Content is visible by default. Hidden only while main.js has set html.reveal
   AND marked the element .is-pending (it starts off-screen). It is released
   just before it scrolls in, so the short fade runs as it arrives; if it is
   already on screen when released, it appears at once (.is-instant), so text
   in view is never veiled. Stagger only where cards sit side by side. */
@media (prefers-reduced-motion: no-preference) {
  .reveal [data-reveal] { transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out); }
  .reveal [data-reveal].is-pending { opacity: 0; transform: translateY(1rem); transition: none; }
  .reveal [data-reveal].is-instant { transition: none; }   /* released while already on screen */
  @media (min-width: 48em) { .reveal [data-reveal] { transition-delay: calc(var(--i, 0) * 30ms); } }

  .mark--draw { background-size: 0% 100%; animation: mark-draw 1100ms var(--ease-out) 450ms forwards; }
  @keyframes mark-draw { to { background-size: 100% 100%; } }

  .hero__heart { animation: float 9s var(--ease-in-out) infinite alternate; }
  @keyframes float { from { translate: -50% -47%; } to { translate: -50% -51%; } }

  .draw line { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); animation: draw 1600ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 1ms + 200ms); }
  .draw circle { transform-box: fill-box; transform-origin: center; scale: 0; animation: pop 700ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 1ms + 300ms); }
  .draw circle.is-pulse { animation: pop 700ms var(--ease-out) forwards, pulse 3.6s var(--ease-in-out) 2s infinite; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { scale: 1; } }
  @keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.6; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Rendering budget: below-the-fold regions are laid out (and fetch their
   fonts/images) only as they approach the viewport. `auto` remembers the real
   size once rendered, so the scrollbar settles after the first pass. */
main > section:not(:first-child), main > .marquee, .article-body, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* 12. Utilities ----------------------------------------------------------- */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: var(--space-3); }
.mt-5 { margin-top: var(--space-5); }
.mt-8 { margin-top: var(--space-8); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
@media print {
  .site-header, .site-footer, .progress, .toc, .marquee { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
