/* ==========================================================================
   Components
   Sections in order:
    1 Header / nav       2 Menu overlay     3 Floating CTA
    4 Buttons & links    5 Hero             6 Section header
    7 Pull line          8 Checklist        9 Cover list + steps
   10 Card trio         11 Credentials     12 Statement slide
   13 Self-test         14 Testimonials    15 Posts + article
   16 FAQ accordion     17 Forms           18 Footer
   19 Photo strip
   ========================================================================== */

/* ---- 1. Header / nav ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  color: #fff;
  mix-blend-mode: difference;   /* only while over the first section (hero) */
  transition: transform 0.45s var(--ease), background-color var(--dur) ease, color var(--dur) ease;
}
.site-header.is-hidden { transform: translateY(-100%); }

/* After the hero: a solid compact bar that matches the surface under it.
   main.js toggles .is-solid (past the first section) and .is-on-light /
   .is-on-dark (from the surface under the bar). No page markup needed. */
.site-header.is-solid {
  --hdr-bg: var(--ink);
  --hdr-fg: var(--paper);
  --hdr-line: var(--paper-20);
  mix-blend-mode: normal;
  background: var(--hdr-bg);
  color: var(--hdr-fg);
  box-shadow: inset 0 -1px 0 var(--hdr-line);
}
.site-header.is-solid.is-on-light {
  --hdr-bg: var(--paper);
  --hdr-fg: var(--ink);
  --hdr-line: var(--ink-20);
}
.site-header.is-solid .site-header__inner { height: var(--header-h-compact); }
.site-header.is-solid .site-header__tag { display: none; }
.site-header.is-solid .menu-btn { background: var(--hdr-fg); color: var(--hdr-bg); }
.site-header.is-solid :focus-visible { outline-color: var(--hdr-fg); }

.site-header__inner {
  width: var(--container);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

.site-header__tag {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.site-header__tag span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.site-header__brand {
  grid-column: 2;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.site-header__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(16px, 2vw, 28px);
}

.nav-link {
  position: relative;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current]::after { opacity: 1; }

.menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.menu-btn:hover { transform: scale(1.08); }
.menu-btn__bar {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.menu-btn__bar:nth-child(1) { top: 18.5px; }
.menu-btn__bar:nth-child(2) { top: 23.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 767px) {
  .site-header__tag,
  .site-header__nav ul { display: none; }
}

/* ---- 2. Menu overlay ------------------------------------------------- */
.menu {
  --surface: var(--ink);
  --on-surface: var(--paper);
  --muted: var(--paper-70);
  --line: var(--paper-20);
  --line-strong: var(--paper-40);
  --hairline: 1px solid var(--line);
  --hairline-dashed: 1px dashed var(--line-strong);
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }

.menu__inner {
  width: var(--container);
  min-height: 100%;
  margin-inline: auto;
  padding-top: calc(var(--header-h) + var(--space-7));
  padding-bottom: var(--space-7);
  display: grid;
  gap: var(--space-8);
  align-content: space-between;
}
@media (min-width: 992px) {
  .menu__inner {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }
}

.menu__links li { overflow: hidden; padding: 6px; margin: -6px; }
.menu__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35em;
  font-size: clamp(40px, 7vw, 108px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.menu__link .index { font-size: 13px; letter-spacing: 0.04em; margin-top: 0.9em; }
.menu__links:hover .menu__link:not(:hover) { opacity: 0.45; }
.menu__link:hover { transform: translateX(0.12em); }
.menu__link[aria-current]::after {
  content: "";
  width: 0.14em;
  height: 0.14em;
  margin-top: 0.4em;
  border-radius: 50%;
  background: currentColor;
}

/* links rise in when the menu opens */
.menu .menu__link { transform: translateY(105%); }
.menu.is-open .menu__link { transform: none; transition: transform 0.7s var(--ease), opacity var(--dur); }
.menu.is-open li:nth-child(2) .menu__link { transition-delay: 0.04s; }
.menu.is-open li:nth-child(3) .menu__link { transition-delay: 0.08s; }
.menu.is-open li:nth-child(4) .menu__link { transition-delay: 0.12s; }
.menu.is-open li:nth-child(5) .menu__link { transition-delay: 0.16s; }
.menu.is-open li:nth-child(6) .menu__link { transition-delay: 0.2s; }
.menu.is-open .menu__link:hover { transform: translateX(0.12em); transition-delay: 0s; }

.menu__aside { display: grid; gap: var(--space-6); max-width: 30rem; }
.menu__tagline { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.02em; }
.menu__contact { display: grid; gap: var(--space-2); font-size: var(--fs-small); color: var(--muted); }
.menu__contact a { color: var(--paper); }

/* ---- 3. Floating CTA ------------------------------------------------- */
.float-cta {
  position: fixed;
  right: clamp(16px, 1.7vw, 24px);
  bottom: clamp(16px, 1.7vw, 24px);
  z-index: var(--z-cta);
  transition: opacity var(--dur) var(--ease), visibility var(--dur), transform var(--dur) var(--ease);
}
/* Solid ink with a paper outline: legible on dark, white and grey alike.
   (No blend mode: difference scrambled it over large text.) */
.float-cta .btn {
  background: var(--ink);
  border-color: var(--paper);
  color: var(--paper);
  outline: 1px solid var(--ink);   /* thin ink ring keeps the edge on white */
  outline-offset: 0;
  min-height: 44px;
  padding: 0.6em 1.05em;
  font-size: 16px;
}
.float-cta .btn:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.float-cta .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--paper); }
.float-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
/* Mobile: a slim sticky bar across the bottom, shown once the hero CTA
   has scrolled away (main.js), hidden over forms, articles and the footer. */
@media (max-width: 767px) {
  .float-cta {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ink);
    box-shadow: inset 0 1px 0 var(--paper-20);
  }
  .float-cta .btn {
    width: 100%;
    min-height: 48px;
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
    outline: 0;
    font-size: var(--fs-body);
  }
  .float-cta .btn:hover { background: var(--ink); color: var(--paper); }
  .float-cta .btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; box-shadow: none; }
  .float-cta.is-hidden { transform: translateY(100%); }
}

/* ---- 4. Buttons & links ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75em 1.3em;
  border: 1px solid var(--on-surface);
  border-radius: var(--radius);
  background: var(--on-surface);
  color: var(--surface);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  transition: color var(--dur) ease, background-color var(--dur) ease, border-color var(--dur) ease;
}
.btn:hover { background: transparent; color: var(--on-surface); }
.btn:focus-visible { outline-color: var(--on-surface); }
/* Pressed toggles (filters) fill with --on-surface, so currentColor would
   draw an invisible ring: use the opposite colour. */
[aria-pressed="true"]:focus-visible { outline-color: var(--on-surface); }

/* outlined: transparent with a border, fills on hover */
.btn--ghost { background: transparent; color: var(--on-surface); }
.btn--ghost:hover { background: var(--on-surface); color: var(--surface); }

/* force white, whatever the surface (e.g. over a photo) */
.btn--light,
.btn--on-dark {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.btn--light:hover,
.btn--on-dark:hover { background: transparent; color: var(--paper); }

.btn--lg { padding: 1.05em 1.6em; font-size: var(--fs-body-lg); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* text link: underline grows on hover */
.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur) var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* inline link inside running text: always underlined (no colour cue in monochrome) */
.link-inline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.link-inline:hover { text-decoration-thickness: 2px; }

/* circle-arrow link */
.circle-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-body);
}
.circle-link__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.circle-link__icon svg { width: 18px; height: 18px; }
.circle-link:hover .circle-link__icon { background: var(--on-surface); color: var(--surface); }
.circle-link--down .circle-link__icon svg { transform: rotate(90deg); }
.circle-link--up .circle-link__icon svg { transform: rotate(-90deg); }
.circle-link--lg .circle-link__icon { width: 88px; height: 88px; }

/* ---- 5. Hero (dark) --------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(24px, 7vh, 96px));
  padding-bottom: var(--section-y);
  text-align: center;
  overflow: hidden;
}
.hero__media {
  width: clamp(240px, 22vw, 340px);
  margin-inline: auto;
}
/* Bottom scrim so the white h1 that overlaps the photo stays legible
   over any image (P1-2). Pages can tune it with --hero-scrim. */
.hero__media::after,
.photo-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--hero-scrim, linear-gradient(to top, rgba(20, 36, 59, 0.92) 0%, rgba(20, 36, 59, 0.55) 22%, rgba(20, 36, 59, 0) 45%));
}
/* small white text sitting on a photo (captions, overlay labels) */
.on-photo { text-shadow: 0 1px 2px rgba(20, 36, 59, 0.6), 0 0 18px rgba(20, 36, 59, 0.45); }

.hero__title {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--fs-hero) * -0.6);
  font-weight: 500;
  text-transform: uppercase;
}
.hero__line {
  display: block;
  font-size: var(--fs-hero);
  line-height: 0.95;
  letter-spacing: var(--ls-display);
}
.hero__line--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-hero-serif);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__sub {
  max-width: 34rem;
  margin: var(--space-6) auto 0;
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--muted);
}
.hero__cta { margin-top: var(--space-6); }

@media (max-width: 767px) {
  .hero__media { width: 70vw; }
}

/* ---- 6. Section header ------------------------------------------------ */
.sec-head {
  display: grid;
  grid-template-columns: var(--index-col) minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  column-gap: var(--space-5);
}
.sec-head__index { align-self: start; padding-top: 0.5em; }
.sec-head__title { grid-column: 2; }
.sec-head__title.h2--sentence { justify-self: start; }
.sec-head__eyebrow { justify-self: end; text-align: right; padding-bottom: 0.4em; }
.sec-head + * { margin-top: var(--block-gap); }

/* sentence-case variant ("The rules (we play by)") */
.h2--sentence {
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.h2__tail {
  display: block;
  margin-top: 0.15em;
  font-family: var(--font-serif);
  font-size: 0.3em;
  font-weight: 400;
  letter-spacing: 0;
  text-align: right;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 767px) {
  .sec-head {
    grid-template-columns: auto 1fr;
    row-gap: var(--space-6);
  }
  .sec-head__index { grid-row: 1; padding-top: 0; align-self: center; }
  .sec-head__eyebrow { grid-row: 1; grid-column: 2; padding-bottom: 0; align-self: center; }
  .sec-head__title { grid-row: 2; grid-column: 1 / -1; }
}

/* ---- 7. Pull line ----------------------------------------------------- */
.pull {
  max-width: 21em;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
}
.pull__word { will-change: opacity; }

/* ---- 8. Checklist ("Signs you're ready") ----------------------------- */
.checklist-wrap { position: relative; overflow-x: clip; }
.checklist {
  --step: clamp(0px, 7vw, 124px);
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .checklist { margin-left: calc(var(--index-col) + var(--space-5)); }
}
.checklist__item {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  max-width: 27em;
  margin-left: calc(var(--i, 0) * var(--step));
  font-size: var(--fs-h4);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.checklist__item::before {
  content: "";
  flex: none;
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-0.12em);
}
.checklist__item:nth-child(2) { --i: 1; }
.checklist__item:nth-child(3) { --i: 2; }
.checklist__item:nth-child(4) { --i: 3; }
.checklist__item:nth-child(5) { --i: 4; }
.checklist__item:nth-child(6) { --i: 5; }

/* indexed variant: "( 01 )" labels instead of dots */
.checklist--indexed { counter-reset: checklist; }
.checklist--indexed .checklist__item { counter-increment: checklist; }
.checklist--indexed .checklist__item::before {
  content: "( " counter(checklist, decimal-leading-zero) " )";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  transform: none;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* giant rotated word on the section edge (decorative, aria-hidden) */
.sideword {
  position: absolute;
  right: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.05em;
  pointer-events: none;
}

@media (max-width: 767px) {
  .checklist { gap: 0; }
  .checklist__item {
    --i: 0 !important;
    max-width: none;
    padding: var(--space-4) 0;
    border-bottom: var(--hairline);
  }
  .checklist__item:first-child { border-top: var(--hairline); }
  .sideword { display: none; }
}

/* ---- 9a. Cover list ("What we'll cover") ----------------------------- */
.cover {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 992px) {
  .cover { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
}
.cover__list { border-top: var(--hairline-dashed); }
.cover__item {
  position: relative;
  padding: var(--space-4) 0 var(--space-4) 1.6em;
  border-bottom: var(--hairline-dashed);
}
.cover__item::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: calc(var(--space-4) + 0.7em);
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: currentColor;
}
.cover__title {
  display: block;
  font-size: clamp(22px, 2.3vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}
.cover__sub { display: block; margin-top: var(--space-1); font-size: var(--fs-small); color: var(--muted); }

/* ---- 9b. Numbered steps (process) ------------------------------------ */
.steps { border-bottom: var(--hairline); }
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  column-gap: var(--space-5);
  min-height: clamp(120px, 11vw, 168px);
  border-top: var(--hairline);
  overflow: hidden;
}
.step__num {
  align-self: end;
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--numeral);          /* ≥3:1 large-text contrast on white and band */
  transform: translateY(24%);
  font-variant-numeric: tabular-nums;
}
.step__body { padding: var(--space-5) 0 var(--space-6); }
.step__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.step__text { margin-top: var(--space-2); max-width: 34em; }

@media (max-width: 767px) {
  .step { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .step__num { font-size: 64px; }
}

/* ---- 10. Card trio ---------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.card__num { font-size: var(--fs-label); font-weight: 700; }
.card__head {
  margin-top: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-strong);
}
.card__title {
  font-size: clamp(26px, 2.2vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.card__sub { display: block; margin-top: var(--space-1); font-size: var(--fs-body); font-weight: 400; letter-spacing: -0.01em; }
.card__body { margin-top: var(--space-6); }
.card__body > * + * { margin-top: 0.8em; }

/* method variant: ink rule on the left instead of under the title */
.cards--ruled .card { padding-left: var(--space-5); border-left: 1px solid var(--on-surface); }
.cards--ruled .card__head { border-bottom: 0; padding-bottom: 0; }

@media (max-width: 899px) {
  .cards {
    display: flex;
    gap: var(--space-5);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards > .card { flex: 0 0 min(84%, 400px); scroll-snap-align: start; }
}
/* stack instead of scroll on mobile */
@media (max-width: 899px) {
  .cards.cards--stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .cards--stack > .card { flex: none; }
  .cards--stack + .scroll-hint { display: none; }
}
.scroll-hint { display: none; margin-top: var(--space-4); font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 899px) { .scroll-hint { display: block; } }

/* ---- 11. Credential rows --------------------------------------------- */
.creds { border-top: var(--hairline); }
.creds__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 0.32em 0;
  border-bottom: var(--hairline);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
}
.creds__meta {
  flex: none;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
/* long notes: the note gets its own column (stacked on mobile) */
.creds--notes .creds__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  padding: 0.5em 0;
}
.creds--notes .creds__meta {
  font-size: var(--fs-small);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
@media (min-width: 768px) {
  .creds--notes .creds__item { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-6); }
  .creds--notes .creds__meta { text-align: right; }
}

/* ---- 12. Statement slide (dark, pinned) ------------------------------ */
.statement {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: var(--section-y);
  overflow: hidden;
}
.statement__stage {
  position: relative;
  width: clamp(240px, 28vw, 440px);
  margin-inline: auto;
}
/* The word sits above the photo in solid paper (no blend mode), and a
   scrim darkens the part of the photo it overlaps, so it stays legible
   over any image: right edge on desktop, bottom edge on mobile. */
.statement__stage .media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* eased multi-stop ramp: no visible band over flat areas like sky */
  background: linear-gradient(90deg,
    rgba(20, 36, 59, 0) 0%, rgba(20, 36, 59, 0.02) 15%, rgba(20, 36, 59, 0.07) 26%,
    rgba(20, 36, 59, 0.15) 36%, rgba(20, 36, 59, 0.26) 46%, rgba(20, 36, 59, 0.39) 56%,
    rgba(20, 36, 59, 0.52) 66%, rgba(20, 36, 59, 0.64) 77%, rgba(20, 36, 59, 0.73) 88%,
    rgba(20, 36, 59, 0.78) 100%);
}
.statement__word {
  position: absolute;
  left: 58%;
  top: 14%;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: var(--fs-statement);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
  text-shadow: none;
  pointer-events: none;
}
.statement__word span { display: block; }
.statement__word--italic { font-style: italic; }
.statement__caption {
  max-width: 30rem;
  margin: var(--space-6) auto 0;
  text-align: center;
}
.statement__caption .h4 { margin-bottom: var(--space-3); }

@media (max-width: 767px) {
  .statement__stage { width: 72vw; }
  .statement__stage .media::after {
    background: linear-gradient(0deg,
      rgba(20, 36, 59, 0.86) 0%, rgba(20, 36, 59, 0.7) 10%, rgba(20, 36, 59, 0.5) 19%,
      rgba(20, 36, 59, 0.3) 28%, rgba(20, 36, 59, 0.14) 37%, rgba(20, 36, 59, 0.04) 46%,
      rgba(20, 36, 59, 0) 54%);
  }
  .statement__word {
    position: relative;
    left: auto;
    top: auto;
    margin-top: -0.42em;
    font-size: clamp(64px, 20vw, 110px);
    text-align: center;
    white-space: normal;
  }
}

/* ---- 13. Self-test (stepped yes/no) ---------------------------------- */
.quiz {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.quiz::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: -1;
  width: min(80vw, 900px);
  height: min(36vw, 380px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent);
  filter: blur(40px);
}
.quiz__title {
  font-family: var(--font-serif);
  font-size: clamp(64px, 10vw, 180px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}
/* *Why?* in Playfair italic, and longer phrases ("Is this right for you?") */
.quiz__title--italic { font-style: italic; }
.quiz__title--phrase { font-size: clamp(44px, 7.4vw, 132px); line-height: 0.95; }
.quiz__intro { margin-top: var(--space-4); color: var(--muted); }
.quiz__body {
  width: min(100%, 48rem);
  margin: var(--block-gap) auto 0;
}
.quiz__progress {
  font-size: var(--fs-label);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.quiz__bar {
  width: 120px;
  height: 1px;
  margin: var(--space-3) auto 0;
  background: var(--line);
}
.quiz__bar-fill {
  display: block;
  height: 100%;
  width: var(--progress, 20%);
  background: var(--on-surface);
  transition: width var(--dur) var(--ease);
}
.quiz__questions { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.quiz__q {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.quiz__q:focus { outline: none; }
.quiz__actions { margin-top: var(--space-7); justify-content: center; }
.quiz__actions .btn { min-width: 7.5rem; }
.quiz__result { margin-top: var(--space-7); }
.quiz__result:focus { outline: none; }
.quiz__result .lead { max-width: 18em; margin-inline: auto; }
.quiz__score { margin-top: var(--space-4); color: var(--muted); }
.quiz__result .btn-row { margin-top: var(--space-6); justify-content: center; }

.quiz.is-active .quiz__q { animation: quizIn 0.5s var(--ease); }
@keyframes quizIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---- 14. Testimonials -------------------------------------------------- */
.quotes { display: grid; gap: var(--space-7); max-width: 48rem; }
.quote { position: relative; }
.quote__headline {
  padding-bottom: var(--space-3);
  border-bottom: var(--hairline-dashed);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.quote__body { margin-top: var(--space-4); }
.quote__role {
  margin-top: var(--space-3);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Placeholder: the final card layout with greyed sample text and one small
   outlined tag, so the client judges the design, not a wireframe (P2-6). */
.quote--placeholder {
  padding-top: var(--space-5);
  border-top: var(--hairline);
}
.quote--placeholder .quote__headline {
  border-bottom: 0;
  font-size: var(--fs-h4);
  text-transform: uppercase;
  color: var(--muted);
}
.quote--placeholder .quote__body,
.quote--placeholder .quote__role { color: var(--muted); }
.quote__flag {
  display: inline-block;          /* in normal flow, above the headline */
  margin-bottom: var(--space-4);
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- 15a. Reflection cards -------------------------------------------- */
.posts {
  display: grid;
  gap: var(--space-7) clamp(24px, 3vw, 48px);
}
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.post-card__media { margin-bottom: var(--space-2); }
.post-card__media img { transition: transform var(--dur-slow) var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1em;
  padding-top: var(--space-3);
  border-top: var(--hairline);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--muted);
}
.post-card__title {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease); }
.post-card:hover .post-card__title a { background-size: 100% 1px; }
.post-card__title a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 2px solid currentColor; outline-offset: 6px; }
.post-card__dek { color: var(--muted); }

/* ---- 15b. Article ------------------------------------------------------ */
.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.2em;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--muted);
}
.article-head__title {
  max-width: 18em;
  margin-top: var(--space-5);
  font-size: clamp(40px, 5vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.article-head__dek {
  max-width: 34em;
  margin-top: var(--space-6);
  font-size: var(--fs-body-lg);
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
  font-size: var(--fs-body-lg);
  line-height: 1.65;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.3;
}
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose ul { list-style: none; padding-left: 1.3em; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.68em;
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  background: currentColor;
}
.prose blockquote {
  margin-block: 2em;
  padding-left: 1.1em;
  border-left: 1px solid var(--on-surface);
  font-size: 1.35em;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.prose figure { margin-block: 2.2em; }
.prose figcaption { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--muted); }
.prose hr { margin-block: 2.5em; border-top: var(--hairline-dashed); }
.prose strong { font-weight: 700; }

.article-layout { display: grid; gap: var(--space-7); }
@media (min-width: 992px) {
  .article-layout { grid-template-columns: var(--offset) minmax(0, 1fr); gap: 0; }
  .article-layout__aside { position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; padding-right: var(--space-7); }
}

/* ---- 16. FAQ accordion ------------------------------------------------- */
.faq { border-top: var(--hairline); }
.faq__item { border-bottom: var(--hairline); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(180deg); opacity: 0; }
.faq__item.is-closing .faq__icon::after { transform: rotate(90deg); opacity: 1; }
.faq__a { overflow: hidden; }
.faq__a-inner { padding-bottom: var(--space-6); max-width: 44em; }
.faq__a-inner > * + * { margin-top: 0.8em; }

/* ---- 17. Forms ---------------------------------------------------------- */
.form { display: grid; gap: var(--space-6); max-width: 52rem; }
.form__row { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: var(--space-1); align-content: start; }
.field__label { font-size: var(--fs-label); font-weight: 500; }
.field__hint { font-size: var(--fs-small); color: var(--muted); }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0.5em 0;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--on-surface);
  font-size: var(--fs-body-lg);
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea.field__input { min-height: 8em; resize: vertical; line-height: 1.5; }
.field__input:focus { outline: none; border-bottom-color: var(--on-surface); box-shadow: 0 1px 0 var(--on-surface); }
.field__input:focus-visible { outline: none; }

.field.is-invalid .field__input { border-bottom-color: var(--on-surface); box-shadow: 0 1px 0 var(--on-surface); }
.field__error {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-small);
  font-weight: 500;
}
.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: var(--on-surface);
  color: var(--surface);
  font-size: 0.8em;
  font-weight: 700;
}
.field__error:empty { display: none; }

/* Radio group in the same underline style as .field__input.
   <fieldset class="field choice" aria-describedby="x-error" data-error-required="…">
     <legend class="field__label">…</legend>
     <div class="choice__group"><label class="choice__option"><input type="radio" name="x" required> …</label>…</div>
     <p class="field__error" id="x-error"></p>
   </fieldset>
   main.js validates a required group (any radio with [required]). */
.choice {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice > legend {
  float: left;           /* lets the legend sit in the .field grid like a label */
  width: 100%;
  padding: 0;
}
.choice__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  min-height: 48px;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--muted);
  font-size: var(--fs-body-lg);
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.choice:focus-within .choice__group,
.choice.is-invalid .choice__group {
  border-bottom-color: var(--on-surface);
  box-shadow: 0 1px 0 var(--on-surface);
}
.choice__option {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  cursor: pointer;
}
.choice__option input {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.05em;
  height: 1.05em;
  margin: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.choice__option input::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease);
}
.choice__option input:checked::after { transform: scale(1); }
.choice__option input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 599px) {
  .choice__group { flex-direction: column; align-items: stretch; gap: 0; }
  .choice__option { display: flex; gap: 12px; }
  .choice__option input { width: 22px; height: 22px; }
}

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.form__note { font-size: var(--fs-small); color: var(--muted); max-width: 30em; }
.form__success {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  border: 1px solid var(--on-surface);
}
.form__success::before {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  margin-top: 0.45em;
  border-radius: 50%;
  background: currentColor;
}
.form__success:focus { outline: none; }
.form__success { scroll-margin-top: 120px; }
/* send failure: <div class="form__error" data-form-error role="alert" hidden>…</div> after the form */
.form__error {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  border: 2px solid var(--on-surface);
  scroll-margin-top: 120px;
}
.form__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--on-surface);
  color: var(--surface);
  font-size: 0.85em;
  font-weight: 700;
}
.form__error:focus { outline: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.75; }

/* ---- 18. Footer (dark) ------------------------------------------------ */
.site-footer {
  padding-top: var(--section-y);
  overflow: hidden;
}
.footer__top { display: grid; gap: var(--space-8); }
@media (min-width: 992px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.footer__cta-title {
  max-width: 12em;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}
.footer__cta-line {
  max-width: 22em;
  margin-top: var(--space-4);
  font-size: clamp(22px, 1.9vw, 32px);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
}
.footer__cta-line em { font-family: var(--font-serif); font-style: italic; }
.footer__location { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--muted); max-width: 28em; }
.footer__buttons { margin-top: var(--space-6); }
.footer__trust { max-width: 28em; margin-top: var(--space-6); font-size: var(--fs-small); color: var(--muted); }
.footer__small { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer__small a { color: var(--on-surface); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
}
@media (min-width: 992px) { .footer__cols { justify-self: end; width: min(100%, 30rem); } }
.footer__col-title { margin-bottom: var(--space-4); font-size: var(--fs-label); font-weight: 500; color: var(--muted); }
.footer__links li + li { margin-top: var(--space-2); }

.footer__wordmark {
  display: block;
  margin-top: var(--space-10);
  overflow: hidden;
  font-size: var(--fs-wordmark);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 0.04em;
  margin-inline: -0.04em;
}
.footer__wordmark .letter { display: inline-block; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-block: var(--space-5);
  border-top: var(--hairline);
  font-size: var(--fs-small);
  color: var(--muted);
}
.footer__bottom .circle-link { color: var(--on-surface); }
.footer__bottom .circle-link__icon { width: 44px; height: 44px; }

/* ---- 19. Photo strip --------------------------------------------------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.photo-strip .media { --ratio: 3 / 2; }
@media (max-width: 767px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip .media { --ratio: 4 / 5; }
  .photo-strip > :nth-child(3) { grid-column: 1 / -1; }
  .photo-strip > :nth-child(3) .media,
  .photo-strip > .media:nth-child(3) { --ratio: 3 / 2; }
}

/* ===================================================================
   20. Review mode: facts still to confirm with Jodl
   Wrap unconfirmed claims as <span class="tbc" data-tbc="C12: certifying body">…</span>.
   Invisible in the normal demo; open any page with ?review to highlight them.
   =================================================================== */
html.review .tbc {
  text-decoration: underline dotted currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  outline: 1px dashed currentColor;
  outline-offset: 2px;
  cursor: help;
}
html.review .tbc::after {
  content: " [" attr(data-tbc) "]";
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
  font-style: normal;
  vertical-align: super;
}
