/* ============================================================
   Self-hosted fonts — mirrored from Google Fonts (same files,
   same unicode-range subsetting) so no cross-origin, render-
   blocking request is needed. Licences: OFL (IBM Plex,
   Instrument Serif).
============================================================ */
/* The IBM Plex Sans woff2 files are VARIABLE fonts (wght 100-700):
   one file per subset serves weights 400/500/600/700. */
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-variable-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-variable-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-variable-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-variable-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-variable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-variable-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============================================================
   Whiteboard Chemistry — Redesigned Stylesheet
   "Quiet authority, examiner-led"
============================================================ */

:root {
  /* Palette — Ink & Oxide (default) */
  --paper:      oklch(0.975 0.005 80);
  --paper-2:    oklch(0.955 0.008 80);
  --paper-3:    oklch(0.92  0.01  80);
  --ink:        oklch(0.20  0.018 250);
  --ink-soft:   oklch(0.32  0.015 250);
  --muted:      oklch(0.50  0.012 250);
  --hairline:   oklch(0.88  0.01  250);
  --accent:     oklch(0.52  0.165 30);
  --accent-soft:oklch(0.62  0.14  30);
  --dark:       oklch(0.16  0.018 250);

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* The whiteboard grid-paper ground — ONE definition for every surface
     that carries it (hero, proof bar, dark CTA, utility heroes). Pair with
     background-size: 64px 64px and a per-surface mask. */
  --grid-paper-ink:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px);
  --grid-paper-light:
    linear-gradient(to right, color-mix(in srgb, var(--paper) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--paper) 4%, transparent) 1px, transparent 1px);
  --radius: 4px;

  --font-display: "Instrument Serif", "EB Garamond", Georgia, serif;
  --font-body:    "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Defensive: nothing on these pages should scroll the page horizontally.
     Safe on body — the viewport (not body) is the scroll container, so
     position:sticky on .header/.rn-toc still works and the fixed nav drawer
     is unaffected. */
  overflow-x: hidden;
}

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

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

/* Skip link — first element in <body>; invisible until a keyboard user
   focuses it, then a paper-on-ink pill in the top-left corner.
   Hidden-by-default with a :focus reveal — NOT :not(:focus-visible) —
   because engines without :focus-visible drop any rule whose selector
   contains it, which would leave the pill permanently visible. */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  /* sr-only until focused */
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 13px 22px;
  border-radius: 999px;
  overflow: visible;
  clip-path: none;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  color: var(--ink);
  background: transparent;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent); color: var(--paper) !important; }

/* ============================================================
   HERO
============================================================ */
.hero {
  padding: clamp(24px, 3.2vw, 48px) 0 clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-paper-ink);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top right, black 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
}
.display em.accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.lede {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s, color .15s, border-color .15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: var(--accent); color: var(--paper); }
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 40%, transparent);
}
.btn-ghost-light:hover { border-color: var(--paper); }
.btn-large { --btn-h: 60px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-arrow {
  font-size: 18px;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.micro-proof {
  display: block;
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  font-family: var(--font-mono);
}
.micro-proof + .micro-proof { margin-top: 8px; }
.micro-proof strong {
  color: var(--ink);
  font-weight: 500;
}
.micro-proof .dot {
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-3);
  box-shadow: 0 1px 0 var(--hairline), 0 30px 60px -20px color-mix(in srgb, var(--ink) 25%, transparent);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.95);
}
/* Hand annotation — "Joe — your tutor". Lives on the empty paper up-left of
   the photo (a sibling of .hero-photo, so .hero-photo's overflow:hidden never
   clips it); the arrow sweeps down-right and its head stops clearly short of
   the photo edge, pointing into the frame. Desktop-only: below 1100px the gap
   between headline and photo disappears, so the annotation goes with it. */
.photo-annotate {
  position: absolute;
  top: -34px;
  /* The photo (max 380px) is centred in the wrap, so its left edge sits at
     50% + 190px from the wrap's right — anchor the annotation just left of it. */
  right: calc(50% + 176px);
  width: 200px;
  /* ink, not rust: annotations speak in one colour sitewide ("the jump.",
     "back on course") and rust stays reserved for its five sanctioned uses */
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.2;
  display: none;
  pointer-events: none;
}
.annotate-text { display: block; white-space: nowrap; }
.annotate-line { width: 120px; height: 100px; display: block; margin: 4px 0 0 34px; }
@media (min-width: 1100px) {
  .photo-annotate { display: block; }
}

.photo-badge {
  position: absolute;
  bottom: 20px;
  left: -28px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: 2px;
  box-shadow: 0 20px 40px -10px color-mix(in srgb, var(--ink) 30%, transparent);
  max-width: 220px;
}
.badge-label {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.1;
  font-style: italic;
}
.badge-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  margin-top: 6px;
}

/* ============================================================
   PROOF BAR (4 items)
============================================================ */
.proof-bar {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-2);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}
/* Same 4%-opacity grid-paper as the hero / final CTA — carries the whiteboard
   ground through the credentials band. Faded from the right so it reads as a
   continuation of the hero's grid, not a new wallpaper. */
.proof-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-paper-ink);
  background-size: 64px 64px;
  mask-image: linear-gradient(to left, black 0%, black 25%, transparent 75%);
  pointer-events: none;
}
.proof-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.proof-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 4px;
  font-weight: 500;
}
.proof-label {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
}
.proof-detail {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

/* ============================================================
   SHARED SECTION BITS
============================================================ */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow-rule {
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-eyebrow-light {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}
.section-head {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .section-eyebrow { justify-content: center; }
.section-head-left { text-align: left; margin: 0 0 56px; max-width: none; }
.section-head-left .section-eyebrow { justify-content: flex-start; }
.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

/* ============================================================
   WHY EXAMINER (condensed)
============================================================ */
.differ {
  padding: clamp(72px, 10vw, 130px) 0;
}
.differ-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.differ-inner .section-eyebrow { justify-content: center; }
.pull {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 40px;
}
.pull em {
  color: var(--accent);
  font-style: italic;
}
.differ-cta {
  display: flex;
  justify-content: center;
}

/* ============================================================
   OFFER (What lessons look like) — preview
============================================================ */
.offer {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.offer-card {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-card:last-child { border-right: 0; }
.offer-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.offer-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.offer-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.offer-cta-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   TESTIMONIALS CAROUSEL
============================================================ */
.testimonials {
  padding: clamp(80px, 10vw, 140px) 0;
}
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  /* Equal card heights (Joe's ruling 2026-08-14): the default stretch keeps
     the row composed; quotes grow so the byline sits on each card's bottom
     rule. Ragged natural heights were tried and looked odd. */
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 24px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.t-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-height: 320px;
  transition: opacity .25s ease, border-color .2s ease, transform .25s ease;
  opacity: 0.75;
  transform: scale(0.985);
}
.t-card.is-active {
  opacity: 1;
  transform: scale(1);
  /* border emphasis only — shadows are reserved for photographs, and the
     resting row reads composed rather than half-loaded */
  border-color: color-mix(in srgb, var(--ink) 30%, var(--hairline));
}
/* Single testimonial (placeholders hidden): center it and let it breathe
   instead of sitting in a one-third-width column with empty space beside it. */
.carousel-track:has(> .t-card:only-child) { justify-content: center; }
.t-card:only-child { flex: 0 0 min(100%, 620px); }
.t-card-placeholder {
  background: repeating-linear-gradient(
    135deg,
    var(--paper) 0 14px,
    color-mix(in srgb, var(--hairline) 40%, var(--paper)) 14px 15px
  );
}
.t-card-placeholder .t-quote { color: var(--muted); font-style: italic; }
.t-card-placeholder .t-author,
.t-card-placeholder .t-context { color: var(--muted); }
.t-mark {
  font-family: var(--font-display);
  font-size: 70px;
  color: var(--accent);
  line-height: 0.4;
  height: 22px;
  opacity: 0.7;
}
.t-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  flex-grow: 1;
}
.t-meta {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.t-author {
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
}
.t-context {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, color .15s;
}
.carousel-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  /* 24px+ hit target around an 8px visual dot (drawn by ::before) —
     bare 8px buttons 8px apart guarantee mis-taps. */
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.carousel-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  /* idle dots at var(--muted), not hairline — 1.33:1 failed non-text contrast */
  background: var(--muted);
  transition: background .2s, transform .2s;
}
.carousel-dot:hover::before { background: var(--ink); }
.carousel-dot.is-active::before {
  background: var(--accent);
  transform: scale(1.3);
}

/* ============================================================
   INSIGHTS PREVIEW
============================================================ */
.insights {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
/* Revision notes preview — white block so it alternates with the
   paper-2 Insights section directly below it */
.resource-preview { background: var(--paper); border-bottom: 0; }
.resource-preview-lede {
  max-width: 60ch;
  margin: -32px 0 40px;
  color: var(--ink-soft, #555);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.insight-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px 36px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background .15s ease;
  position: relative;
}
.insight-card:last-child { border-right: 0; }
.insight-card:hover { background: var(--paper-2); }
.insight-card:hover .insight-read { color: var(--accent); }
.insight-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.insight-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.insight-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}
.insight-excerpt {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex-grow: 1;
}
.insight-read {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: auto;
  transition: color .15s;
}

/* ============================================================
   FAQ
============================================================ */
.faq { padding: clamp(72px, 10vw, 140px) 0; }
/* When the FAQ sits directly below the testimonials (e.g. tuition page),
   collapse the doubled section padding so the gap matches the normal rhythm. */
.testimonials + .faq { padding-top: clamp(24px, 3vw, 40px); }
.faq-inner { max-width: var(--maxw); margin: 0 auto; }
.faq-list { max-width: 680px; border-top: 1px solid var(--hairline); }
/* Wide viewports: eyebrow + title become a sticky left column with the
   (widened) question list on the right, so a long FAQ doesn't strand the
   right half of the page. Keyed off the shared .faq-inner > .section-head +
   .faq-list structure, so any page using it (e.g. tuition) picks it up. */
@media (min-width: 1100px) {
  .faq-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(680px, 800px);
    gap: clamp(48px, 6vw, 88px);
    align-items: start;
  }
  .faq-inner .section-head-left {
    margin: 0;
    position: sticky;
    top: 110px;
  }
  .faq-list { max-width: 800px; }
}
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-indicator {
  width: 28px; height: 28px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.faq-indicator::before,
.faq-indicator::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.faq-indicator::before { width: 10px; height: 1px; }
.faq-indicator::after  { width: 1px; height: 10px; }
.faq-item[open] .faq-indicator { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-indicator::before,
.faq-item[open] .faq-indicator::after { background: var(--paper); }
.faq-item[open] .faq-indicator::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-body {
  padding: 0 0 24px;
  max-width: 70ch;
}
.faq-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ============================================================
   FINAL CTA
============================================================ */
.final-cta {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-paper-light);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at bottom left, black 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.final-cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--paper);
}
.final-cta-title .accent-light {
  color: var(--accent-soft);
  font-style: italic;
}
.final-cta-lede {
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
  max-width: 50ch;
  margin: 0;
}
.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.reply-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
  margin: 8px 0 0;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--paper);
  padding: 56px 0 28px;
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}
.footer-blurb {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 36ch;
  margin: 16px 0 0;
  line-height: 1.55;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h5,
.footer-cols .footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-cols a,
.footer-cols span.footer-meta {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11.5px !important;
  color: var(--muted) !important;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 36px; }
  .t-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .offer-card:last-child { border-bottom: 0; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card { border-right: 0; }
  .t-card { flex: 0 0 100%; min-height: 260px; }
  .final-cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .nav { gap: 10px; }
  .brand-sub { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  /* Keep the examiner badge's overhang inside the viewport — at -28px it sat
     flush against (and 1px clipped by) the screen edge. */
  .photo-badge { left: -12px; }
}

/* ============================================================
   MOBILE NAV DRAWER
============================================================ */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.menu-toggle:hover { border-color: var(--ink); }
@media (max-width: 980px) {
  /* Collapsed-nav header: a circular 3-line "hamburger" toggle paired with a
     larger Enquire pill of matching height. The toggle goes icon-only — the
     "Menu" label is hidden with font-size:0 (the aria-label keeps it
     accessible), and three currentColor bars are drawn with a ::before plus
     two box-shadow copies, rounded to match the brand mark's stroke caps.
     The brand takes the slack (margin-right:auto) so the Enquire pill and
     toggle stay grouped together on the far right instead of space-between
     stranding Enquire in the middle on wide (iPad) viewports. */
  .brand { margin-right: auto; }
  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    padding: 0;
    gap: 0;
    margin-left: 12px;
    font-size: 0;
    border-radius: 999px;
  }
  .menu-toggle::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }
  .nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 22px;
    font-size: 15px;
    line-height: 1;
  }
}

/* Full-screen overlay behind the drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in panel */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;            /* keep the off-screen drawer out of the tab order / a11y tree when closed */
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .28s;
  box-shadow: -24px 0 56px -16px color-mix(in srgb, var(--ink) 14%, transparent);
  overflow-y: auto;
}
.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.drawer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.drawer-close {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.drawer-close:hover { border-color: var(--ink); background: var(--paper-2); }

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 32px;
  gap: 0;
  flex-grow: 1;
}
.mobile-drawer nav a {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  transition: color .15s;
}
.mobile-drawer nav a:last-of-type { border-bottom: 0; }
.mobile-drawer nav a:hover { color: var(--accent); }
.mobile-drawer nav a.drawer-cta {
  margin-top: 24px;
  border: none;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  display: block;
  transition: background .15s;
}
.mobile-drawer nav a.drawer-cta:hover { background: var(--accent); }

/* ============================================================
   STICKY BOTTOM CTA
============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--dark);
  padding: 12px clamp(16px, 3vw, 32px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  border-top: 1px solid color-mix(in srgb, var(--paper) 10%, transparent);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-text {
  font-size: 14.5px;
  font-weight: 500;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--paper);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.sticky-cta-btn:hover { background: var(--accent-soft); }
/* Reserve space so the fixed CTA bar never sits over the footer / last
   content — the bar appears at EVERY width once scrolled, so the reservation
   can't live only in the mobile media query. Scoped to pages that have the
   bar via :has(); the unconditional mobile rule below is the fallback for
   engines without :has() support (restoring the pre-existing behaviour). */
body:has(.sticky-cta) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) {
  .sticky-cta-text { display: none; }
  .sticky-cta { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta-btn { flex-grow: 1; justify-content: center; font-size: 15px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   FOCUS VISIBILITY — a branded ring for keyboard users on every
   interactive element (the revision widgets already have one).
============================================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On dark grounds the oxide ring vanishes — use paper instead. */
.final-cta a:focus-visible,
.sticky-cta a:focus-visible {
  outline-color: var(--paper);
}
/* Anchor jumps land below the sticky header instead of underneath it. */
[id] {
  scroll-margin-top: 90px;
}

/* ============================================================
   REDUCED MOTION — honour the user's OS "reduce motion" setting
   (carousel autoplay is additionally disabled in carousel.js)
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
