/* ==========================================================================
   Work with John Adams — site styles
   Built on the Workwithjohnadams design system (Linen): Newsreader for the
   voice, Hanken Grotesk for information, and the brand's matte color fields
   and quarter circles, which move gently as the page scrolls.
   ========================================================================== */

/* ---- Fonts ------------------------------------------------------------- */
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-Italic-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* ---- Tokens (Linen) ---------------------------------------------------- */
:root {
  color-scheme: light;
  --surface: #f5f0e7;
  --surface-raised: #fbf8f2;
  --surface-sunk: #ece5d8;
  --line: #dcd2c2;
  --line-strong: #8f8475;
  --ink: #231e18;
  --ink-muted: #655b4f;
  --ochre: #bf911a;
  --ochre-deep: #7d5d0c;
  --ochre-soft: #efe2c2;
  --on-ochre: #1f1a12;
  --clay: #9c4a33;
  --clay-soft: #f3dfd6;
  --sage: #4d6246;
  --sage-soft: #e2e8da;
  --focus: var(--ochre-deep);
  --link: var(--ochre-deep);
  --band-ink-ground: #231e18;
  --band-ink-text: #f5f0e7;
  --shadow-soft: 0 1px 2px rgba(35, 30, 24, 0.05), 0 12px 32px rgba(35, 30, 24, 0.06);

  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-none: 0; --radius-sm: 3px; --radius-md: 8px;
  --measure-text: 38rem;
  --measure-page: 72rem;

  --section-gap: var(--space-8);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (min-width: 48rem) { :root { --section-gap: var(--space-9); } }

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (max-width: 52rem) { html { scroll-padding-top: 120px; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 28px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 240ms var(--ease), text-decoration-color 240ms var(--ease); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--ochre-soft); color: var(--ink); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--ochre); color: var(--on-ochre); padding: var(--space-2) var(--space-4);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* ---- Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--measure-page) + 2 * var(--space-6)); margin-inline: auto; padding-inline: var(--space-5); }
@media (min-width: 48rem) { .wrap { padding-inline: var(--space-6); } }
.text { max-width: var(--measure-text); }
.section { padding-block: var(--section-gap); }
.section:not([hidden]) + .section { padding-top: 0; }
.section-head { max-width: var(--measure-text); margin-bottom: var(--space-7); }
.flow > * { margin-top: 0; margin-bottom: 0; }
.flow > * + * { margin-top: var(--space-4); }
.flow > h2 + .lead { margin-top: var(--space-5); }
.flow > * + h3 { margin-top: var(--space-7); }

.split { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); }
  .split-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-flip > :first-child { order: 2; }
  .split-center { align-items: center; }
}

/* ---- Type -------------------------------------------------------------- */
h1, h2, h3, .display { font-family: var(--font-serif); color: var(--ink); text-wrap: balance; margin: 0; }
.display { font-size: clamp(40px, 6.4vw, 56px); line-height: 1.08; font-weight: 300; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.6vw, 30px); line-height: 1.27; font-weight: 400; }
h3 { font-size: 22px; line-height: 30px; font-weight: 400; }
.lead { font-family: var(--font-serif); font-size: 20px; line-height: 32px; font-weight: 300; color: var(--ink); max-width: var(--measure-text); }
.subtitle { font-family: var(--font-serif); font-size: 22px; line-height: 30px; font-weight: 400; color: var(--ink); margin: var(--space-3) 0 0; }
.small { font-size: 14px; line-height: 22px; }
.muted { color: var(--ink-muted); }

.list { margin: 0 0 var(--space-4); padding: 0; list-style: none; max-width: var(--measure-text); }
.list li { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-3); }
.list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }

/* ---- Buttons: square-cornered, like the matte fields ------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; text-align: center;
  border-radius: var(--radius-none); border: 1px solid transparent; cursor: pointer; background: none;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-lg { min-height: 52px; padding: 0 var(--space-6); font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.btn-primary { background: var(--ochre); color: var(--on-ochre); }
.btn-primary:hover { background: var(--ochre-deep); color: var(--surface); }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-sunk); }
.btn-quiet {
  min-height: 44px; padding: 0 var(--space-2); color: var(--ochre-deep);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px;
}
.btn-quiet:hover { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-6); }
.actions-note { margin: var(--space-3) 0 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.quiet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); margin: var(--space-4) 0 0 calc(-1 * var(--space-2)); }
.quiet-row .small { padding-inline: var(--space-2); }
@media (max-width: 30rem) {
  .actions > .btn-primary, .actions > .btn-secondary { flex: 1 1 100%; }
}

/* ---- Header ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: border-color 240ms var(--ease); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); padding-block: var(--space-4); }
.brand { order: 1; margin-right: auto; display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; color: var(--ochre); flex: none; transition: transform 220ms var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .mark, .brand:focus-visible .mark { transform: rotate(90deg); }
}
.brand-name { font-family: var(--font-serif); font-size: 22px; line-height: 30px; font-weight: 400; }
.site-nav { order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); }
.site-nav a { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-muted); text-decoration: none; padding: var(--space-2) 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ochre); }
.nav-apply { order: 3; }
.nav-apply[aria-current="page"] { background: var(--surface-sunk); }
@media (max-width: 52rem) {
  .header-inner { padding-block: var(--space-3) var(--space-2); column-gap: var(--space-4); }
  .brand .mark { width: 28px; height: 28px; }
  .brand-name { font-size: 20px; }
  .nav-apply { order: 2; }
  .site-nav { order: 3; flex-basis: 100%; column-gap: var(--space-5); }
  .site-nav a { padding: var(--space-1) 0; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-top: var(--space-8); }
@media (min-width: 48rem) { .hero { padding-top: var(--space-9); } }
.hero .lead { margin-top: var(--space-5); }
.hero .subtitle + .lead { margin-top: var(--space-4); }
.hero-facts { margin: var(--space-5) 0 0; max-width: var(--measure-text); }
.read-time { margin: var(--space-5) 0 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.hero > .brand-strip { margin-top: var(--section-gap); }


/* ---- Photos ------------------------------------------------------------ */
.photo { margin: 0; }
.photo img { width: 100%; background: var(--surface-sunk); }
.photo-45 img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.photo-32 img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ---- The brand in motion ------------------------------------------------ */
/* Three grouped sections of matte colour: stacked lines that flow at different speeds, a bunch
   of three-quarter circles that turn together, and an isosceles triangle whose apex angle opens
   as the page moves. The gaps between the sections are the ground: negative space.
   site.js sets --m on each piece: -1 as it enters at the bottom of the screen, 0 mid-screen,
   1 as it leaves at the top. Without script, or with reduced motion, everything rests at 0. */
.brand-motion {
  --m: 0; pointer-events: none;
  --sq-bg: var(--ochre-soft); --sq-fg: var(--ochre);
  --ci-bg: var(--ink); --ci-fg: var(--ochre);
  --tr-bg: var(--sage); --tr-fg: var(--ochre-soft);
  --tq: 36px; --tq-gap: 14px; --tri-w: 56px; --tri-h: 40px;
}
.bm { position: relative; overflow: hidden; min-width: 0; }

/* Squiggles only */
.bm-lines { background: var(--sq-bg); }
.bm-lines svg { display: block; width: 100%; height: 100%; }
.bm-lines path { fill: none; stroke: var(--sq-fg); stroke-width: 5; stroke-linecap: round; transform: translateX(calc(var(--m) * var(--v, 0px))); }
.bm-lines .v1 { --v: 8px; }
.bm-lines .v2 { --v: 16px; }
.bm-lines .v3 { --v: 24px; }
.bm-lines .v4 { --v: 32px; }
.bm-lines .v5 { --v: 40px; }

/* A bunch of three-quarter circles: one colour on another, no outline, turning together */
.bm-circles { background: var(--ci-bg); display: flex; align-items: center; justify-content: center; }
.tq-row { display: flex; gap: var(--tq-gap); flex: none; }
.tq-grid { display: grid; grid-template-columns: repeat(2, var(--tq)); gap: var(--tq-gap); flex: none; }
.tq { display: block; width: var(--tq); height: var(--tq); flex: none; fill: var(--ci-fg); transform: rotate(calc(var(--o, 0deg) + var(--m) * 45deg)); }
.tq:nth-child(4n+2) { --o: 90deg; }
.tq:nth-child(4n+3) { --o: 180deg; }
.tq:nth-child(4n) { --o: 270deg; }

/* The triangle: isosceles, standing on its base, its apex angle opening as the base expands */
.bm-tri { background: var(--tr-bg); display: flex; align-items: flex-end; justify-content: center; }
.tri-shape { width: var(--tri-w); height: var(--tri-h); background: var(--tr-fg); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 100%; transform: scaleX(calc(1 + var(--m) * 0.4)); }

.bm-lines path, .tq, .tri-shape { transition: transform 700ms var(--ease); }

/* Strips under each hero and across the top of the footer */
.brand-strip { display: flex; gap: var(--space-3); height: 56px; }
.brand-strip .bm-lines { flex: 3 1 0; }
.brand-strip .bm-circles { flex: 4 1 0; }
.brand-strip .bm-tri { flex: 2 1 0; }
@media (min-width: 48rem) {
  .brand-strip { height: 96px; gap: var(--space-4); --tq: 60px; --tq-gap: 24px; --tri-w: 104px; --tri-h: 76px; }
  .brand-strip .bm-lines { flex-grow: 5; }
}

/* ---- Full-bleed quote bands -------------------------------------------- */
.band { position: relative; }
.quote-band { padding-block: var(--space-8); overflow: hidden; }
@media (min-width: 48rem) { .quote-band { padding-block: var(--space-9); } }
.band-ochre { background: var(--ochre); color: var(--on-ochre); --band-cite: var(--on-ochre); --band-link: var(--on-ochre); }
.band-ink { background: var(--band-ink-ground); color: var(--band-ink-text); --band-cite: var(--band-ink-text); --band-link: var(--band-ink-text); }
.band-ochre-soft { background: var(--ochre-soft); color: var(--ink); --band-cite: var(--ink-muted); --band-link: var(--ochre-deep); }
.band-sage-soft { background: var(--sage-soft); color: var(--ink); --band-cite: var(--ink-muted); --band-link: var(--ochre-deep); }
.band-ochre :focus-visible, .band-ink :focus-visible { outline-color: currentColor; }
.quote-band .wrap { position: relative; z-index: 1; }
.qb { margin: 0; max-width: var(--measure-text); display: grid; gap: var(--space-4); justify-items: start; }
.qb blockquote { margin: 0; }
.qb blockquote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 24px; line-height: 36px; text-wrap: pretty; }
.qb figcaption { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 500; color: var(--band-cite); }

/* Inside a band, every figure takes the band's own colour, so it reads as a cut-out */
.band-ochre .brand-motion { --ci-bg: var(--ink); --ci-fg: var(--ochre); --sq-bg: var(--ochre-soft); --sq-fg: var(--ochre); --tr-bg: var(--sage); --tr-fg: var(--ochre); }
.band-ink .brand-motion { --ci-bg: var(--ochre); --ci-fg: var(--band-ink-ground); --sq-bg: var(--sage); --sq-fg: var(--band-ink-ground); --tr-bg: var(--ochre-soft); --tr-fg: var(--band-ink-ground); }
.band-ochre-soft .brand-motion { --ci-bg: var(--ochre); --ci-fg: var(--ochre-soft); --sq-bg: var(--ink); --sq-fg: var(--ochre-soft); --tr-bg: var(--sage); --tr-fg: var(--ochre-soft); }
.band-sage-soft .brand-motion { --ci-bg: var(--sage); --ci-fg: var(--sage-soft); --sq-bg: var(--ochre); --sq-fg: var(--sage-soft); --tr-bg: var(--ink); --tr-fg: var(--sage-soft); }

/* Narrow screens: a strip along the band's lower edge. Wide screens: the three sections as a grid in its open side. */
.band-art { display: none; }
.band-strip { margin-top: var(--space-7); }
@media (max-width: 71.99rem) { .quote-band { padding-bottom: 0; } }
@media (min-width: 72rem) {
  .band-strip { display: none; }
  .band-art {
    display: grid; position: absolute; top: 0; right: 0; bottom: 0; width: min(44vw, calc(100vw - 45rem), 40rem);
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4);
    --tq: 64px; --tq-gap: 24px; --tri-w: 150px; --tri-h: 116px;
  }
  .band-art .bm-circles { grid-row: 1 / span 2; }
  .band-art .bm-lines path { stroke-width: 7; }
}

/* ---- Callout: a contained colour field, the brand pieces along its right edge ---- */
.callout { display: grid; grid-template-rows: auto 64px; max-width: 64rem; overflow: hidden; }
.callout-body { padding: var(--space-6) var(--space-5); }
.callout .section-head { margin-bottom: 0; }
.callout-art { display: flex; gap: var(--space-2); --tq: 22px; --tq-gap: 10px; --tri-w: 44px; --tri-h: 34px; }
.callout-art .bm-lines { flex: 3 1 0; }
.callout-art .bm-circles { flex: 3 1 0; }
.callout-art .bm-circles .tq-grid { grid-template-columns: repeat(4, var(--tq)); }
.callout-art .bm-tri { flex: 2 1 0; }
@media (min-width: 48rem) {
  .callout { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 176px; }
  .callout-body { padding: var(--space-8) var(--space-7); }
  .callout-art { flex-direction: column; gap: var(--space-3); --tq: 48px; --tq-gap: 18px; --tri-w: 96px; --tri-h: 72px; }
  .callout-art .bm-lines { flex: 3 1 0; min-height: 96px; }
  .callout-art .bm-circles { flex: 4 1 0; min-height: 128px; }
  .callout-art .bm-circles .tq-grid { grid-template-columns: repeat(2, var(--tq)); }
  .callout-art .bm-tri { flex: 2 1 0; min-height: 88px; }
  .callout-art .bm-lines path { stroke-width: 6; }
}

/* ---- Cards ------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
@media (min-width: 48rem) { .card { padding: var(--space-6); } }
.card p { color: var(--ink-muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: var(--space-2); margin-left: calc(-1 * var(--space-2)); }
.after-cards { margin-top: var(--space-6); max-width: var(--measure-text); }

/* ---- Facts, panels and In brief ---------------------------------------- */
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: var(--space-3) var(--space-6); }
.facts dt { color: var(--ink-muted); font-size: 15px; line-height: 28px; font-weight: 500; }
.facts dd { margin: 0; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: var(--space-4); }
  .facts dt:first-child { margin-top: 0; }
}
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); }
@media (min-width: 48rem) { .panel { padding: var(--space-7); } }
.panel-float { box-shadow: var(--shadow-soft); border-color: transparent; }
.panel .actions { margin-top: var(--space-6); }
.hero .panel { margin-top: var(--space-6); }
.details-panel { max-width: 56rem; }
.details-panel h2 { margin-bottom: var(--space-6); max-width: var(--measure-text); }

.in-brief { margin: 0; max-width: 52rem; border-top: 1px solid var(--line); }
.in-brief > div { display: grid; gap: var(--space-1) var(--space-6); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .in-brief > div { grid-template-columns: 8rem 1fr; } }
.in-brief dt a { font-family: var(--font-serif); font-size: 22px; line-height: 30px; color: var(--ink); text-decoration: none; }
.in-brief dt a:hover { color: var(--ochre-deep); }
.in-brief dt a::after { content: " ↓"; font-family: var(--font-sans); font-size: 14px; color: var(--ochre-deep); }
.in-brief dd { margin: 0; }

/* ---- Stats (About hero) ------------------------------------------------ */
.stats { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: var(--measure-text); }
.stats li { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.stats .num { display: block; font-family: var(--font-serif); font-size: 40px; line-height: 46px; font-weight: 300; color: var(--ink); letter-spacing: -0.005em; }
.stats .label { display: block; margin-top: var(--space-2); font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* ---- Notices ----------------------------------------------------------- */
.notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); max-width: var(--measure-text); background: var(--ochre-soft); }
.notice::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--ochre-deep); }
.notice-title { margin: 0; font-size: 15px; line-height: 28px; font-weight: 600; color: var(--ochre-deep); }
.notice-body { font-size: 15px; line-height: 24px; color: var(--ink); }
.notice-body p { margin: 0 0 var(--space-2); }
.notice-body p:last-child { margin: 0; }
.notice-body .actions { margin-top: var(--space-4); }
.notice-confirm { background: var(--sage-soft); }
.notice-confirm::before { background: var(--sage); }
.notice-confirm .notice-title { color: var(--sage); }
.notice-attention { background: var(--clay-soft); }
.notice-attention::before { background: var(--clay); }
.notice-attention .notice-title { color: var(--clay); }
.notice a:not(.btn) { color: inherit; }
.hero .notice { margin-top: var(--space-6); }
html.js .notice-enter { animation: settle-in 400ms var(--ease) both; }
@keyframes settle-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- The path (the pipeline, stop by stop) ----------------------------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.path-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--space-4); padding-bottom: var(--space-5); }
.path-step:last-child { padding-bottom: 0; }
.path-step > * { grid-column: 2; }
.path-step::before {
  counter-increment: step; content: counter(step);
  grid-row: 1 / span 3; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; line-height: 1;
  border: 1px solid var(--line-strong); color: var(--ink-muted); background: var(--surface);
  position: relative; z-index: 1; transition: transform 400ms var(--ease);
}
.path-step::after { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.path-step:last-child::after { display: none; }
.path-title { font-size: 17px; line-height: 28px; font-weight: 500; color: var(--ink); }
a.path-title { color: var(--ochre-deep); }
.path-detail { display: block; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.path-step.is-current::before { background: var(--ochre); border-color: var(--ochre); color: var(--on-ochre); }
.path-step.is-current.is-ink::before { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.path-step h3 { font-size: 22px; line-height: 30px; }
.path-step p { margin: var(--space-1) 0 0; color: var(--ink-muted); }
@media (min-width: 60rem) {
  .path-row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-5); }
  .path-row .path-step { grid-template-columns: 1fr; row-gap: var(--space-3); padding-bottom: 0; align-content: start; }
  .path-row .path-step::before { grid-row: auto; }
  .path-row .path-step > * { grid-column: 1; }
  .path-row .path-step::after { left: 36px; right: calc(-1 * var(--space-5) + 8px); top: 13.5px; bottom: auto; width: auto; height: 1px; }
}

/* ---- Questions (native disclosure) ------------------------------------- */
.faq { max-width: var(--measure-text); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: var(--space-5) var(--space-7) var(--space-5) 0; font-family: var(--font-serif); font-size: 22px; line-height: 30px; font-weight: 400; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: var(--space-2); top: 50%; width: 14px; height: 1.5px; background: var(--ochre-deep); transition: transform 240ms var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--ochre-deep); }
.faq-body { padding: 0 var(--space-7) var(--space-5) 0; }
.faq-body p { color: var(--ink-muted); }
.faq-body p.answer { color: var(--ink); }
.faq-body .quiet-row { margin-top: var(--space-2); }

/* ---- The week, quartered ----------------------------------------------- */
.week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); max-width: var(--measure-text); }
.week-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.week-list .q-glyph { width: 16px; height: 16px; margin-top: 6px; background: var(--surface-raised); border: 1px solid var(--line-strong); transition: background-color 240ms var(--ease); }
.week-list [data-q="table"] .q-glyph { border-radius: 16px 0 0 0; background: var(--ochre); border-color: var(--ochre); }
.week-list [data-q="group"] .q-glyph { border-radius: 0 16px 0 0; }
.week-list [data-q="journal"] .q-glyph { border-radius: 0 0 16px 0; }
.week-list [data-q="meditate"] .q-glyph { border-radius: 0 0 0 16px; }
.week-list strong { font-weight: 600; color: var(--ink-muted); transition: color 240ms var(--ease); }
.week-list li:hover strong { color: var(--ink); }
.week-list li:not([data-q="table"]):hover .q-glyph { background: var(--ochre-soft); }

/* ---- Testimonials: a carousel, one voice at a time --------------------- */
.carousel-track {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: var(--space-4); align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .carousel-track { grid-auto-columns: min(44rem, 78%); gap: var(--space-5); } }
.carousel-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.slide {
  margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-5);
  background: var(--surface-raised); border: 1px solid var(--line); padding: var(--space-6) var(--space-5);
}
@media (min-width: 48rem) { .slide { padding: var(--space-7); } }
.slide-mark { width: 28px; height: 28px; fill: var(--ochre); }
.slide { --lh: 28px; --lines: 9; }
@media (min-width: 48rem) { .slide { --lh: 34px; --lines: 7; } }
.slide blockquote { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: 18px; line-height: var(--lh); color: var(--ink); }
@media (min-width: 48rem) { .slide blockquote { font-size: 21px; } }
.slide blockquote p { margin: 0; }
.slide blockquote p + p { margin-top: var(--lh); }
/* Every panel shows the same number of lines; longer words open in place */
html.js .slide:not(.is-open) blockquote { max-height: calc(var(--lh) * var(--lines)); overflow: hidden; }
.slide-more { align-self: flex-start; margin-top: calc(-1 * var(--space-2)); padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 500; color: var(--ochre-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; }
.slide-more:hover { text-decoration-color: currentColor; }
.slide figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--space-3); font-size: 15px; line-height: 24px; font-weight: 600; color: var(--ink-muted); }
.slide figcaption::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--line-strong); }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-6); }
.carousel-progress { display: flex; align-items: center; gap: var(--space-4); }
.carousel-dots { display: flex; }
.carousel-dots button { position: relative; width: 36px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel-dots button::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--line); transition: background-color 240ms var(--ease); }
.carousel-dots button:hover::before { background: var(--line-strong); }
.carousel-dots button[aria-current="true"]::before { background: var(--ochre); }
.carousel-count { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.carousel-arrows { display: flex; gap: var(--space-2); }
.carousel-arrows button {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease);
}
.carousel-arrows button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.carousel-arrows button:disabled { opacity: 0.35; cursor: default; }
.carousel-arrows svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html:not(.js) .carousel-controls { display: none; }
@media (max-width: 30rem) {
  .carousel-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- For therapists, and the one inline quote -------------------------- */
.for-therapists { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); max-width: var(--measure-text); }
.inline-quote { margin: var(--space-5) 0 var(--space-4); }
.inline-quote blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 20px; line-height: 32px; color: var(--ink); }
.inline-quote blockquote p { margin: 0; }
.inline-quote figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* ---- Rows (About close) ------------------------------------------------ */
.rows { list-style: none; margin: var(--space-5) 0; padding: 0; max-width: var(--measure-text); border-top: 1px solid var(--line); }
.rows li { padding-block: var(--space-3); border-bottom: 1px solid var(--line); }

/* ---- D6 — the lineage, hand to hand ------------------------------------ */
.lineage { --gap: var(--space-6); margin-top: var(--space-7); max-width: 52rem; }
.lineage-threads { display: grid; gap: var(--space-6) var(--gap); }
@media (min-width: 40rem) { .lineage-threads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lineage-line { display: flex; flex-direction: column; }
.lineage-thread { list-style: none; margin: 0; padding: 0 0 var(--space-5); position: relative; flex: 1; }
.lineage-thread::before { content: ""; position: absolute; left: 5.5px; top: 12px; bottom: 0; width: 1px; background: var(--line-strong); transform-origin: top; transition: transform 400ms var(--ease); }
.lineage-thread li { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-5); }
.lineage-thread li:last-child { margin-bottom: 0; }
.lineage-thread li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.lineage-name { display: block; font-family: var(--font-serif); font-size: 22px; line-height: 30px; color: var(--ink); }
.lineage-thread .small { display: block; color: var(--ink-muted); margin-top: var(--space-1); }
.lineage-join { position: relative; height: var(--space-7); display: none; }
.lineage-join::before { content: ""; position: absolute; top: 0; left: 5.5px; width: calc(50% + var(--gap) / 2); height: 1px; background: var(--line-strong); transform-origin: left; transition: transform 400ms var(--ease) 240ms; }
.lineage-join::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc((100% + var(--gap)) / 4 + 5.5px); width: 1px; background: var(--line-strong); transform-origin: top; transition: transform 400ms var(--ease) 360ms; }
.lineage-me { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-2); margin: 0; }
.lineage-me .lineage-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ochre); flex: none; }
.lineage-note { margin-top: var(--space-6); }
@media (min-width: 40rem) {
  .lineage-join { display: block; }
  .lineage-me { padding-top: 0; margin-left: calc((100% + var(--gap)) / 4 + 5.5px - 10px); }
  .lineage-thread { padding-bottom: 0; }
  .lineage-thread::before { bottom: calc(-1 * var(--space-6)); }
  .lineage-threads { row-gap: 0; }
  .lineage-line { padding-bottom: var(--space-6); }
}
html.js .lineage:not(.is-in) .lineage-thread::before { transform: scaleY(0); }
html.js .lineage:not(.is-in) .lineage-join::before { transform: scaleX(0); }
html.js .lineage:not(.is-in) .lineage-join::after { transform: scaleY(0); }
.lineage-line + .lineage-line .lineage-thread::before { transition-delay: 120ms; }

/* ---- Next step (the end-of-page handoff) ------------------------------- */
.next-step .section-head { margin-bottom: 0; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--surface-sunk); color: var(--ink); padding-bottom: var(--space-6); font-size: 15px; line-height: 24px; }
.site-footer > .brand-strip { margin-bottom: var(--space-8); --ci-bg: var(--sage); --ci-fg: var(--ochre-soft); --sq-bg: var(--ink); --sq-fg: var(--surface-sunk); --tr-bg: var(--ochre); --tr-fg: var(--ink); }
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); } }
.site-footer .brand { margin-bottom: var(--space-4); }
.footer-heading { font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 600; color: var(--ink); margin: 0 0 var(--space-3); }
.site-footer p { margin: 0 0 var(--space-3); }
.site-footer .footer-block + .footer-block { margin-top: var(--space-6); }
.site-footer a:not(.btn):not(.brand) { color: var(--ink); text-decoration-color: var(--line-strong); }
.site-footer a:not(.btn):not(.brand):hover { color: var(--ochre-deep); text-decoration-color: currentColor; }
.site-footer .btn-quiet { color: var(--ochre-deep); min-height: 36px; }
.site-footer .quiet-row { margin-top: 0; }
.coming-up { list-style: none; margin: 0; padding: 0; }
.coming-up li { padding-block: var(--space-2); border-bottom: 1px solid var(--line); }
.coming-up li:first-child { border-top: 1px solid var(--line); }
.coming-up .when { display: block; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.season { font-family: var(--font-serif); font-weight: 400; font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.footer-base { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); display: grid; gap: var(--space-3); color: var(--ink-muted); font-size: 14px; line-height: 22px; }
@media (min-width: 60rem) { .footer-base { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-6); } }
.footer-base p { margin: 0; }

/* ---- Motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html, .carousel-track { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .lineage:not(.is-in) .lineage-thread::before,
  html.js .lineage:not(.is-in) .lineage-join::before,
  html.js .lineage:not(.is-in) .lineage-join::after { transform: none; }
}

/* ---- Print: the taster and cohort pages as clean flyers ---------------- */
@media print {
  :root { --surface: #fff; --surface-raised: #fff; --surface-sunk: #fff; --ink: #000; --ink-muted: #333; --line: #bbb; --ochre-deep: #000; --link: #000; }
  body { font-size: 12pt; line-height: 1.45; }
  .site-header, .site-footer, .skip-link, .quote-band, .brand-motion, .photo, .read-time { display: none !important; }
  .section, .hero { padding-block: 12pt; }
  .split { display: block; }
  .panel-float { box-shadow: none; border: 1px solid #999; }
  .taster-panel .facts dd { font-size: 16pt; line-height: 1.35; }
  .btn { border: 1px solid #000; }
  .faq details { break-inside: avoid; }
  .carousel-controls { display: none !important; }
  .carousel-track { display: block; overflow: visible; }
  .slide { break-inside: avoid; margin-bottom: 12pt; }
}
