/* MyExamHub — design system
   Palette: Burgundy & Mint (pinned by client brief)
   --color-accent-strong is a derived, non-pinned addition: the mint accent
   (#4FD1B5) is too light to pass text/focus-ring contrast on the pale
   backgrounds, so light mode substitutes a deeper teal wherever accent is
   used as foreground rather than as a decorative fill/border. Dark mode's
   accent-strong is identical to accent since mint already contrasts well
   against the near-black surfaces there.
   Direction: growth-journey narrative, clean editorial execution
*/

:root {
  --color-primary: #7A2438;
  --color-accent: #4FD1B5;
  --color-accent-strong: #0F7A6C;
  --color-secondary: #A8536A;
  /* theme-constant: text/icons placed on the mint accent's own fill (chips,
     accent-filled buttons) need a fixed dark ink, since the accent stays
     bright in both themes but --color-text flips to near-white in dark. */
  --color-ink-on-accent: #2A1F22;
  --color-bg: #FFF7F5;
  --color-surface: #FFFFFF;
  --color-text: #2A1F22;
  --color-text-soft: #5C4650;
  --color-border: rgba(42, 31, 34, 0.12);
  --color-footer-bg: #2A1F22;
  --color-footer-text: #FFF7F5;

  --shadow-sm: 0 1px 2px rgba(42, 31, 34, 0.06), 0 1px 1px rgba(42, 31, 34, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 31, 34, 0.10);
  --shadow-lg: 0 16px 40px rgba(42, 31, 34, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font-display: 'Frank Ruhl Libre', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
  --space-6: 5.25rem;

  --container-max: 1180px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --color-primary: #7A2438;
  --color-accent: #4FD1B5;
  --color-accent-strong: #4FD1B5;
  --color-secondary: #A8536A;
  --color-bg: #240F17;
  --color-surface: #331623;
  --color-text: #F5EEEA;
  --color-text-soft: #D9BFC4;
  --color-border: rgba(245, 238, 234, 0.14);
  --color-footer-bg: #170A0F;
  --color-footer-text: #F5EEEA;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #7A2438;
    --color-accent: #4FD1B5;
    --color-accent-strong: #4FD1B5;
    --color-secondary: #A8536A;
    --color-bg: #240F17;
    --color-surface: #331623;
    --color-text: #F5EEEA;
    --color-text-soft: #D9BFC4;
    --color-border: rgba(245, 238, 234, 0.14);
    --color-footer-bg: #170A0F;
    --color-footer-text: #F5EEEA;
    color-scheme: dark;
  }
}

/* ===== Palette switcher: Burgundy & Sage =====
   Primary/Accent/Secondary don't change between light/dark (same pattern
   as the default Burgundy & Mint palette), so one block covers both
   themes; only --color-accent-strong needs a theme-specific value, same
   reasoning as the default palette's accent-strong.
   Note: this palette's Primary (#331623) is identical to the dark-mode
   --color-surface. Every place Primary is used as text/icon color already
   has a dark-mode override to accent or text (added for the Mint palette's
   own contrast fix), so nothing goes invisible — the one visible side
   effect is the tree-journey node's decorative border blending into its
   own fill in dark mode, which is cosmetic only. */
:root[data-palette="sage"] {
  --color-primary: #331623;
  --color-accent: #8CA88F;
  --color-accent-strong: #4F6F55;
  --color-secondary: #E0B93A;
}
:root[data-palette="sage"][data-theme="dark"] {
  --color-accent-strong: #8CA88F;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="sage"]:not([data-theme="light"]) {
    --color-accent-strong: #8CA88F;
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 1.0625rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-primary);
}
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 { color: var(--color-text); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) h1,
  html:not([data-theme="light"]) h2,
  html:not([data-theme="light"]) h3,
  html:not([data-theme="light"]) h4 { color: var(--color-text); }
}

/* Optical sizing: tracking and leading are size-specific, not one fixed
   value for every heading — large display type wants negative tracking
   and tighter leading; smaller headings need less of both. */
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.12; letter-spacing: -0.012em; }
h3 { font-size: 1.3rem; letter-spacing: -0.004em; }

p { color: var(--color-text-soft); max-width: 62ch; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-3); }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-surface) 100%, transparent);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 200ms ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--color-surface) 72%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }
  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--color-surface) 60%, transparent);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.is-scrolled {
    background: var(--color-surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: 1.4rem;
  position: relative;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  text-decoration: none;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.brand-mark {
  width: 56px;
  height: 45px;
  flex-shrink: 0;
}
.cap-band { fill: color-mix(in srgb, var(--color-primary) 65%, black); }
.cap-top { fill: var(--color-primary); }
.cap-face { fill: color-mix(in srgb, var(--color-primary) 80%, white); }
.cap-accent { fill: var(--color-accent-strong); }
.cap-tassel {
  fill: none;
  stroke: var(--color-accent-strong);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-word {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.word-dark { color: var(--color-primary); }
.word-accent { color: var(--color-accent-strong); }
.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
:root[data-theme="dark"] .word-dark { color: var(--color-text); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .word-dark { color: var(--color-text); }
}
@media (max-width: 640px) {
  .brand { position: static; transform: none; }
  .brand-mark { width: 46px; height: 37px; }
  .brand-word { font-size: 1.12rem; }
}

/* Home page: bigger, left-aligned brand lockup (scoped to .is-home so the
   other 5 pages keep the standard centered header per CLAUDE.md's nav/
   header consistency constraint). */
.site-header.is-home .container { padding-block: 1.9rem; }
.site-header.is-home .brand {
  position: static;
  transform: none;
  align-items: flex-start;
  text-align: left;
}
.site-header.is-home .brand-mark { width: 78px; height: 63px; }
.site-header.is-home .brand-word { font-size: 1.6rem; }
.site-header.is-home .brand-tagline { font-size: 0.68rem; }
@media (max-width: 640px) {
  .site-header.is-home .container { padding-block: 1.4rem; }
  .site-header.is-home .brand-mark { width: 58px; height: 47px; }
  .site-header.is-home .brand-word { font-size: 1.3rem; }
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--color-text);
}
.nav-toggle svg { width: 22px; height: 22px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.primary-nav ul {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.primary-nav a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .primary-nav a:hover { background: var(--color-bg); }
}
.primary-nav a:active { background: var(--color-bg); transition-duration: 50ms; }
.primary-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
:root[data-theme="dark"] .primary-nav a[aria-current="page"] { color: var(--color-accent); background: rgba(79,209,181,0.14); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  color: var(--color-primary);
}
:root[data-theme="dark"] .theme-toggle { color: var(--color-accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.palette-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.palette-toggle:active { transform: scale(0.92); }
.palette-toggle-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 1px solid var(--color-border);
  transition: background-color 200ms ease;
}

.header-cta { white-space: nowrap; }
@media (max-width: 520px) {
  .btn.header-cta { display: none; }
}

/* Home page: never hide the header CTAs, even on narrow phones — this
   page has no hamburger fallback, so "Book here"/"Contact us" are the
   only way to act from the header. Wrap onto a second row instead. */
@media (max-width: 520px) {
  .site-header.is-home .container { flex-wrap: wrap; row-gap: 0.75rem; }
  .site-header.is-home .nav-wrap { width: 100%; margin-left: 0; }
  .site-header.is-home .header-actions { width: 100%; flex-wrap: wrap; }
  .site-header.is-home .btn.header-cta {
    display: inline-flex;
    white-space: normal;
    flex: 1 1 auto;
    justify-content: center;
  }
}

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; order: 3; }
.primary-nav {
  position: fixed;
  top: var(--header-h, 4.75rem);
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(320px, 84vw);
  background: var(--color-surface);
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-2) var(--space-3) var(--space-3);
  transform: translateX(100%);
  transition: transform 240ms var(--ease-drawer);
  box-shadow: var(--shadow-lg);
}
.primary-nav.is-open { transform: translateX(0); }
.nav-close-row { display: flex; justify-content: flex-end; margin-bottom: var(--space-2); }
.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
}
.nav-close svg { width: 20px; height: 20px; }
.primary-nav ul { flex-direction: column; gap: 0.15rem; }
.primary-nav a { padding: 0.9rem 1rem; font-size: 1.05rem; }
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 12, 0.45);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease, background-color 150ms ease;
  font-size: 0.98rem;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--color-primary);
  color: #FFF7F5;
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: var(--shadow-md); }
}
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
:root[data-theme="dark"] .btn-outline { border-color: var(--color-accent); color: var(--color-accent); }
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { background: color-mix(in srgb, var(--color-primary) 8%, transparent); }
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ===== Hero / Journey path ===== */
.hero {
  padding-block: var(--space-6) var(--space-5);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}
.hero-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}
.hero h1 { margin-bottom: var(--space-3); }
.hero-lede { font-size: 1.15rem; margin-bottom: var(--space-4); }

.journey {
  position: relative;
  min-height: 360px;
}
.journey-path {
  width: 100%;
  height: auto;
}
.journey-stop {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 132px;
  transform: translate(-50%, -50%);
}
.journey-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
:root[data-theme="dark"] .journey-dot { color: var(--color-accent); }
.journey-dot--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFF7F5;
}
.journey-stop span.label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .journey { min-height: 280px; order: -1; }
}

/* Signature moment: the journey draws itself in, dot by dot.
   Base state is fully revealed so no-JS / reduced-motion visitors see
   the complete path immediately; the animation is additive. */
.journey-stop { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .journey-path {
    animation: journey-draw 1.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .journey-stop {
    opacity: 0;
    animation: journey-stop-in 0.6s ease-out both;
  }
  .journey-stop:nth-child(2) { animation-delay: 0.35s; }
  .journey-stop:nth-child(3) { animation-delay: 0.85s; }
  .journey-stop:nth-child(4) { animation-delay: 1.3s; }
  .journey-stop:nth-child(5) { animation-delay: 1.65s; }
}

@keyframes journey-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0% 0 0); }
}

@keyframes journey-stop-in {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(8px) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
}

/* Echo of the signature device further down the page: milestones
   reveal left-to-right as they enter view, like the path extending. */
.milestone {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.milestone.is-visible { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .milestone { clip-path: none; transition: none; }
}

/* ===== Interior page header ===== */
.page-header {
  padding-block: var(--space-5) var(--space-4);
  text-align: center;
}
.page-header .container { max-width: 760px; }
.page-header p { margin-inline: auto; font-size: 1.08rem; }

/* ===== Sections ===== */
section { padding-block: var(--space-5); }
.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-4);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-alt { background: var(--color-surface); }
.eyebrow {
  display: block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

/* ===== Cards / grid ===== */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
}
.card .icon {
  width: 42px;
  height: 42px;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
:root[data-theme="dark"] .card .icon { color: var(--color-accent); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p { max-width: none; font-size: 0.96rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-2);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  cursor: pointer;
}
:root[data-theme="dark"] .card-link { color: var(--color-accent); }
.card-link svg { width: 16px; height: 16px; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card-link:hover svg { transform: translateX(3px); }
}

/* ===== Info modal (in-page "Read more" boxes) ===== */
.info-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  width: min(560px, 90vw);
  max-height: calc(100vh - var(--space-5));
  overflow-y: auto;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}
.info-modal::backdrop {
  background: rgba(20, 8, 12, 0.45);
}
.info-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.info-modal-head h2 { margin: 0; }
.info-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
}
.info-modal-close svg { width: 20px; height: 20px; }
.info-modal--wide { width: min(760px, 92vw); }
.info-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.info-modal-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .info-modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .info-modal-grid--3 { grid-template-columns: 1fr; }
}
.info-modal-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.info-modal-box h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.info-modal-box p { font-size: 0.92rem; max-width: none; }
.info-modal-box ul { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--color-text-soft); list-style: disc; }
.info-modal-box li { margin-bottom: 0.3rem; }

/* ===== Milestone / stepper (used across pages) ===== */
.milestones {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.milestone {
  flex: 1 1 160px;
  min-width: 160px;
  border-left: 3px solid var(--color-accent);
  padding: 0.25rem 0 0.25rem var(--space-2);
}
.milestone .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent-strong);
  font-size: 0.9rem;
}
.milestone h4 { font-size: 1rem; margin-block: 0.2rem 0.3rem; color: var(--color-text); }
.milestone p { font-size: 0.9rem; }

/* ===== Callout / CTA band ===== */
.cta-band {
  background: var(--color-primary);
  color: #FFF7F5;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-block: var(--space-5);
  text-align: center;
}
:root[data-theme="dark"] .cta-band { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); }
.cta-band h2 { color: #FFF7F5; }
:root[data-theme="dark"] .cta-band h2 { color: var(--color-text); }
.cta-band p { color: rgba(251,246,236,0.85); margin-inline: auto; }
:root[data-theme="dark"] .cta-band p { color: var(--color-text-soft); }
.cta-band .btn-primary {
  background: #FFF7F5;
  color: var(--color-primary);
}
:root[data-theme="dark"] .cta-band .btn-primary { background: var(--color-accent); color: #240F17; }
.cta-actions { display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; margin-top: var(--space-3); }

/* ===== FAQ (details/summary) ===== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-2);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.5rem;
  margin-inline: -0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 100ms ease-out;
}
.faq-item summary:active { background: var(--color-bg); transition-duration: 30ms; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform 200ms var(--ease-out); color: var(--color-primary); }
:root[data-theme="dark"] .faq-item summary .chevron { color: var(--color-accent); }
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item .faq-answer { display: grid; grid-template-rows: 1fr; }
.faq-item .faq-answer > p { overflow: hidden; padding-block: 0.4rem 0.8rem; }
.faq-item.js-accordion .faq-answer {
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--ease-out);
}
.faq-item.js-accordion.is-open .faq-answer { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) {
  .faq-item.js-accordion .faq-answer { transition: none; }
}

/* ===== Badge (future feature note) ===== */
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: color-mix(in srgb, var(--color-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 45%, transparent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ===== Forms ===== */
.form-grid { display: grid; gap: var(--space-3); max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.88rem; }

/* ===== Contact info list ===== */
.contact-list { display: grid; gap: var(--space-3); }
.contact-item { display: flex; gap: var(--space-2); align-items: flex-start; }
.contact-item .icon { width: 26px; height: 26px; color: var(--color-primary); flex-shrink: 0; margin-top: 0.15rem; }
:root[data-theme="dark"] .contact-item .icon { color: var(--color-accent); }
.contact-item h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.contact-item p { font-size: 0.95rem; }
.contact-item p a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
:root[data-theme="dark"] .contact-item p a { color: var(--color-accent); }
.contact-item p a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-block: var(--space-5) var(--space-4);
  margin-top: var(--space-6);
}
.site-footer a,
.site-footer button {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-footer a:hover,
.site-footer button:hover { opacity: 1; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer.is-home .footer-grid { grid-template-columns: 1.4fr 1fr; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.92rem; opacity: 0.75; max-width: 40ch; color: inherit; }
.footer-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; margin-bottom: 0.7rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== About page: growing tree journey ===== */
.journey-hero {
  padding-block: var(--space-6) var(--space-4);
}
.journey-hero .container { max-width: 760px; }
.journey-hero h1 { margin-top: var(--space-2); max-width: 16ch; }
.journey-hero .lede { margin-top: var(--space-3); font-size: 1.1rem; }

.tree-note {
  margin-top: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 52ch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}
.tree-note svg { flex-shrink: 0; margin-top: 0.15rem; }
.tree-note p { margin: 0; font-size: 0.92rem; }
.tree-note strong { color: var(--color-text); }

/* --- illustrated tree timeline (desktop) --- */
.tree-journey {
  position: relative;
  width: min(360px, 82vw);
  margin: 0 auto;
  aspect-ratio: 320 / 640;
}
.tree-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tree-svg path { fill: none; stroke-linecap: round; }
.branch-trunk {
  stroke: var(--color-secondary);
  stroke-width: 5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: tree-draw 1.4s var(--ease-out) 0.1s forwards;
}
.branch {
  stroke: var(--color-secondary);
  stroke-width: 4;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: tree-draw 0.7s var(--ease-out) forwards;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}
.branch-1 { animation-delay: 0.5s; }
.branch-2 { animation-delay: 0.85s; }
.branch-3 { animation-delay: 1.2s; }
.branch-4 { animation-delay: 1.55s; }
@keyframes tree-draw { to { stroke-dashoffset: 0; } }

.tree-journey:has(.tree-stage-1 .tree-node:hover) .branch-1,
.tree-journey:has(.tree-stage-1 .tree-node:focus-visible) .branch-1,
.tree-journey:has(.tree-stage-1.is-open) .branch-1,
.tree-journey:has(.tree-stage-2 .tree-node:hover) .branch-2,
.tree-journey:has(.tree-stage-2 .tree-node:focus-visible) .branch-2,
.tree-journey:has(.tree-stage-2.is-open) .branch-2,
.tree-journey:has(.tree-stage-3 .tree-node:hover) .branch-3,
.tree-journey:has(.tree-stage-3 .tree-node:focus-visible) .branch-3,
.tree-journey:has(.tree-stage-3.is-open) .branch-3,
.tree-journey:has(.tree-stage-4 .tree-node:hover) .branch-4,
.tree-journey:has(.tree-stage-4 .tree-node:focus-visible) .branch-4,
.tree-journey:has(.tree-stage-4.is-open) .branch-4 {
  stroke: var(--color-accent);
  stroke-width: 6;
}

.tree-node-layer { position: absolute; inset: 0; }

.tree-stage {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: tree-node-in 0.5s ease-out forwards;
  animation-delay: var(--node-delay, 1.6s);
}
@keyframes tree-node-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.tree-node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-accent-strong);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.tree-stage[data-status="now"] .tree-node {
  border-color: var(--color-accent);
  color: var(--color-accent-strong);
  background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
}
.tree-stage-3 .tree-node { width: 56px; height: 56px; font-size: 1.05rem; }
@media (hover: hover) and (pointer: fine) {
  .tree-node:hover { transform: scale(1.18) rotate(-4deg); box-shadow: var(--shadow-md); }
}
.tree-node:focus-visible,
.tree-stage.is-open .tree-node {
  transform: scale(1.18) rotate(-4deg);
  box-shadow: var(--shadow-md);
}
.tree-node:active {
  transform: scale(0.94);
  transition-duration: 80ms;
}

.tree-card {
  position: absolute;
  top: 50%;
  width: 210px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.85);
  transform-origin: center left;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}
.tree-stage[data-side="left"] .tree-card { right: calc(100% + 1.1rem); transform-origin: center right; }
.tree-stage[data-side="right"] .tree-card { left: calc(100% + 1.1rem); }

@media (hover: hover) and (pointer: fine) {
  .tree-node:hover ~ .tree-card { opacity: 1; transform: translateY(-50%) scale(1); }
}
.tree-node:focus-visible ~ .tree-card,
.tree-stage.is-open .tree-card {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.tree-card-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-ink-on-accent);
  margin-bottom: 0.4rem;
}
.tree-stage[data-status="soon"] .tree-card-tag {
  background: color-mix(in srgb, var(--color-secondary) 16%, transparent);
  color: var(--color-secondary);
}
.tree-card h3 { font-size: 0.92rem; margin-bottom: 0.25rem; }
.tree-card p { margin: 0; font-size: 0.82rem; max-width: none; }
.tree-card ul { margin: 0.5rem 0 0; padding-left: 1rem; font-size: 0.8rem; color: var(--color-text-soft); list-style: disc; }
.tree-card li { margin-bottom: 0.2rem; }

/* --- mobile fallback: stacked accordion, illustration hidden --- */
.tree-mobile-list { display: none; }

@media (max-width: 760px) {
  .tree-journey { display: none; }
  .tree-mobile-list { display: block; }
  .tree-mobile-list .stage { position: relative; border-bottom: 1px solid var(--color-border); }
  .tree-mobile-list .stage:last-child { border-bottom: none; }
  .tree-mobile-list .stage-head {
    width: 100%; display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0.4rem;
    background: none; border: none; border-radius: var(--radius-sm); font: inherit; text-align: left; color: var(--color-text); cursor: pointer;
    transition: background-color 100ms ease-out;
  }
  .tree-mobile-list .stage-head:active { background: var(--color-bg); transition-duration: 30ms; }
  .tree-mobile-list .stage-node {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
    background: var(--color-surface); border: 3px solid var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--color-accent-strong);
  }
  .tree-mobile-list .stage[data-status="now"] .stage-node {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
  }
  .tree-mobile-list .stage-title { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--color-text); }
  .tree-mobile-list .stage-detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    padding-left: 3.25rem;
    transition: grid-template-rows 0.3s ease, opacity 0.2s ease;
  }
  .tree-mobile-list .stage.is-open .stage-detail { grid-template-rows: 1fr; opacity: 1; }
  .tree-mobile-list .stage-detail-inner { overflow: hidden; padding: 0 0.4rem 0.9rem; }
  .tree-mobile-list .stage-detail p { margin: 0; font-size: 0.9rem; }
  .tree-mobile-list .stage-detail ul { margin: 0.5rem 0 0; padding-left: 1rem; font-size: 0.87rem; color: var(--color-text-soft); list-style: disc; }
}

@media (prefers-reduced-motion: reduce) {
  .branch-trunk, .branch, .tree-stage { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .tree-node, .tree-card { transition: none; }
}

/* --- now / later split --- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
@media (max-width: 760px) {
  .split-grid { grid-template-columns: 1fr; }
}
.split-card { border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.35rem; }
.split-card.now { background: var(--color-primary); color: #FFF7F5; }
:root[data-theme="dark"] .split-card.now {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.split-card.later { background: var(--color-surface); border: 1px dashed var(--color-border); color: var(--color-text); }
.split-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.split-card.now h3 { color: var(--color-accent); }
.split-card ul { margin: 0; padding-left: 1.1rem; font-size: 0.94rem; list-style: disc; }
.split-card.now ul { color: #FCEAE0; }
:root[data-theme="dark"] .split-card.now ul { color: var(--color-text-soft); }
.split-card.later ul { color: var(--color-text-soft); }
.split-card li { margin-bottom: 0.45rem; }

/* ===== Utilities ===== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

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