/* ==========================================================================
   Al Fajer Private School (AFS) — Design System
   Warm, bright, premium primary-school identity.
   Built mobile-first. Targets WCAG 2.1 AA.
   --------------------------------------------------------------------------
   Contents
   1.  Design tokens (colour, type, spacing, radius, shadow, motion)
   2.  Reset & base
   3.  Typography
   4.  Layout helpers (container, grid, sections)
   5.  Buttons & links
   6.  Header / navigation (sticky + off-canvas)
   7.  Hero — rotating pupils' questions (home)
   8.  Proof / stat band
   9.  Feature sections (alternating)
   10. Value cards
   11. Principal's message
   12. Life at AFS strip
   13. News & events grid
   14. Gallery
   15. CTA banners
   16. Forms
   17. Tables (fees)
   18. FAQ accordion
   19. Footer
   20. Utilities, cookie notice, back-to-top
   21. Motion / reveal-on-scroll + reduced-motion
   ========================================================================== */

/* 1. DESIGN TOKENS ========================================================= */
:root {
  /* Brand — royal blue (loyalty & integrity).
     Sampled from the official AFS crest (shield fill #3913f4). */
  --blue-950: #0d0847;
  --blue-900: #150c66;
  --blue-800: #2213a8; /* primary */
  --blue-700: #2b17d0;
  --blue-600: #3913f4; /* crest blue */
  --blue-500: #5a43f7;
  --blue-100: #e5e1fd;
  --blue-050: #f2f0fe;

  /* Brand — old gold (intellect, optimism & creativity).
     Sampled from the crest banner (#dbb548).
     Use for fills / accents; use --gold-text for small text on light. */
  --gold-600: #c2992f;
  --gold-500: #dbb548; /* crest gold */
  --gold-400: #e5c568;
  --gold-300: #efd795;
  --gold-100: #faf2dc;
  --gold-text: #8a6b1d; /* AA-safe gold for small text on white/cream */

  /* Neutral canvas — light, airy, warm off-white */
  --white: #ffffff;
  --cream: #fffdf6; /* warm off-white page canvas */
  --paper: #f5f7fd; /* soft blue-tinted background */
  --sand: #fbf6ec;  /* gentle warm tint */

  /* Ink / text */
  --ink-900: #161a2e;
  --ink-700: #2a2f45;
  --ink-500: #565d76; /* muted body */
  --ink-300: #8990a6;
  --line: #e7e9f2;    /* hairline borders */

  /* Semantic */
  --ok: #1f7a4d;
  --ok-bg: #e7f6ee;
  --err: #c2334a;
  --err-bg: #fdecef;

  /* Typography */
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Fluid type scale (clamp: min, preferred, max) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --fs-lg: clamp(1.3rem, 1vw + 1rem, 1.6rem);
  --fs-xl: clamp(1.6rem, 2vw + 1rem, 2.25rem);
  --fs-2xl: clamp(2rem, 3.2vw + 1rem, 3rem);
  --fs-3xl: clamp(2.5rem, 5vw + 1rem, 4.25rem);

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.7;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radius — soft rounded corners throughout */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — gentle, layered, never harsh (tinted with brand blue) */
  --sh-sm: 0 1px 2px rgba(21, 12, 102, 0.06), 0 2px 6px rgba(21, 12, 102, 0.06);
  --sh-md: 0 6px 18px rgba(21, 12, 102, 0.10);
  --sh-lg: 0 18px 48px rgba(21, 12, 102, 0.16);
  --sh-gold: 0 10px 24px rgba(194, 153, 47, 0.30);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

/* 2. RESET & BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; display: block; height: auto; }

ul, ol { padding-left: 1.1em; }

a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }

/* Visible focus for keyboard users (a11y) — high-contrast ring, dark-context aware */
:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.bg-blue :focus-visible, .footer :focus-visible, .cta-banner :focus-visible,
.page-hero :focus-visible, .menu-overlay :focus-visible, .proof :focus-visible,
.lightbox :focus-visible, .announce :focus-visible {
  outline-color: var(--gold-400);
}
/* …but white cards inside dark sections keep the blue ring */
.bg-blue .form-card :focus-visible, .bg-blue .card :focus-visible {
  outline-color: var(--blue-600);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1200;
  background: var(--blue-800);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-md);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* 3. TYPOGRAPHY ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: var(--lh-tight);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-md);
  color: var(--ink-500);
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 4px;
  border-radius: var(--r-pill);
  background: var(--gold-500);
}
.eyebrow.center::before { display: none; }

.text-gold { color: var(--gold-text); }
.text-blue { color: var(--blue-800); }

/* 4. LAYOUT ================================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container.narrow { max-width: var(--container-narrow); }

section { position: relative; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--sand); }
.bg-blue { background: var(--blue-800); color: #fff; }
.bg-cream { background: var(--cream); }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-500); font-size: var(--fs-md); }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 719px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Decorative wave / swoosh divider (echoes the crest swoosh motif) */
.wave {
  display: block;
  width: 100%;
  line-height: 0;
  color: inherit;
}
.wave svg { width: 100%; height: auto; }

/* 5. BUTTONS =============================================================== */
.btn {
  --btn-bg: var(--blue-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--blue-900); }
.btn--gold:hover { box-shadow: var(--sh-gold); background: var(--gold-400); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--blue-800);
  border-color: var(--blue-800);
}
.btn--ghost:hover { background: var(--blue-800); --btn-fg:#fff; }

.btn--white { --btn-bg: #fff; --btn-fg: var(--blue-800); }
.btn--white-ghost { --btn-bg: transparent; --btn-fg:#fff; border-color: rgba(255,255,255,0.6); }
.btn--white-ghost:hover { background: #fff; --btn-fg: var(--blue-800); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.68rem 1.05rem; font-size: var(--fs-xs); min-height: 42px; }
.btn--block { width: 100%; }

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-700);
}
.arrow-link svg { transition: transform 0.2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* 6. HEADER / NAV (modern floating glass bar + mega-menu) ================== */

/* Slim, light info strip — trust signals; scrolls away on scroll */
.infobar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-500);
}
.infobar .container {
  max-width: 1280px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; padding-block: 0.35rem;
}
.infobar a { color: var(--ink-500); text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; }
.infobar a:hover { color: var(--blue-700); }
.infobar__right { display: flex; align-items: center; gap: 1.35rem; }
.infobar__tag { display: inline-flex; align-items: center; gap: 0.45rem; }
.infobar__tag svg { color: var(--gold-600); }
/* Staff Login — a small pill in the utility bar linking out to the staff portal (afsup) */
.infobar a.infobar__staff {
  color: var(--blue-800);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.7rem;
  gap: 0.35rem;
}
.infobar a.infobar__staff:hover { background: var(--blue-050); color: var(--blue-900); }
.infobar a.infobar__staff svg { color: var(--gold-600); }
@media (max-width: 760px) { .infobar__tag, .infobar a.infobar__email, .infobar a.infobar__staff { display: none; } }

/* The header floats: a frosted, rounded bar with a small gap from the top */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.7rem 1.25rem 0;
  transition: padding 0.3s var(--ease);
}
.site-header__bar {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 66px;
  padding: 0.45rem 0.55rem 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(1.7) blur(18px);
  backdrop-filter: saturate(1.7) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  box-shadow: 0 6px 28px rgba(21, 12, 102, 0.09);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck { padding-top: 0.45rem; }
.site-header.is-stuck .site-header__bar {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 34px rgba(21, 12, 102, 0.16);
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: auto; height: 46px; flex-shrink: 0; filter: drop-shadow(0 3px 8px rgba(21,12,102,0.2)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; color: var(--blue-900); font-size: 1.1rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }

/* Primary menu */
.nav__primary { display: flex; align-items: center; }
.nav__menu {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0.1rem;
  align-items: center;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link { color: var(--blue-800); background: var(--blue-050); }
.nav__link[aria-current="page"] { color: var(--blue-800); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500);
}
.nav__caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px); opacity: 0.5;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(225deg) translateY(-2px); opacity: 0.9; }

/* Mega-menu panel */
.nav__mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 0.55rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 60;
}
.nav__mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 16px; }
.nav__item:hover > .nav__mega,
.nav__item:focus-within > .nav__mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1);
}
/* keep right-side panels from overflowing */
.nav__item:nth-last-child(-n+2) .nav__mega { left: auto; right: 0; transform-origin: top right; }
.nav__mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem; }
.nav__mega.is-narrow .nav__mega-grid { grid-template-columns: 1fr; }
.mega-link {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.7rem 0.85rem; border-radius: var(--r-md);
  text-decoration: none; min-width: 232px;
  transition: background 0.18s var(--ease);
}
.mega-link:hover { background: var(--blue-050); }
.mega-link__ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue-700);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.mega-link:hover .mega-link__ico { background: var(--blue-800); color: #fff; transform: translateY(-2px); }
.mega-link__t { display: block; font-family: var(--font-display); font-weight: 700; color: var(--blue-900); font-size: 0.92rem; line-height: 1.2; }
.mega-link__d { display: block; font-size: 0.8rem; color: var(--ink-500); margin-top: 2px; line-height: 1.3; }

/* Quick actions (always visible; the Menu button inside is the mobile/tablet trigger) */
.nav__actions { display: flex; gap: 0.45rem; margin-left: auto; align-items: center; }

@media (min-width: 1024px) {
  .nav__menu { display: flex; }              /* inline nav with dropdown panels */
  .nav__actions .menu-btn { display: none; } /* links are expanded — the immersive
                                                overlay serves mobile/tablet */
}


/* 7. HERO — PUPILS' QUESTIONS ==============================================
   Warm, editorial, handmade — a school-notebook feel. The rotating question
   is the dominant element; a rotated polaroid of the asker sits beside it
   with a self-sketching doodle over its corner.
   The concept palette maps to the crest tokens: cream → --sand,
   indigo → --blue-900, gold strokes → --gold-500, and the "burnt orange"
   CTA → --gold-text (the AA-safe bronze on light backgrounds). */
.qhero {
  position: relative;
  isolation: isolate;
  background: var(--sand);
  overflow: hidden;
}
.qhero::before {
  /* a whisper of paper grain — keep barely perceptible; never affects
     text contrast (it sits at 5% under everything) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.qhero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  /* minmax(0, …) so a long nowrap teaser can never inflate the track */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.75rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 7vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 920px) {
  .qhero__grid {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    min-height: min(620px, calc(100svh - 200px));
  }
}

.qhero__kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 1.4rem;
}
.qhero__frame { font-size: var(--fs-sm); color: var(--ink-500); margin-bottom: 0.7rem; }
.qhero__frame-mark { position: relative; white-space: nowrap; }
.qhero__underline {
  position: absolute;
  left: -2px;
  bottom: -7px;
  width: calc(100% + 4px);
  height: 8px;
  overflow: visible;
}
.qhero__underline path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: q-draw 0.8s var(--ease) 0.5s forwards;
}

/* The question itself — the loudest element on the page. Big editorial
   Fraunces italic on a deliberately narrow ~11ch measure so questions wrap
   into 2–3 strong lines. min-height reserves 3 lines so rotation causes
   zero layout shift (data file caps questions at ~45 characters). */
.qhero__qbox { position: relative; max-width: max-content; margin-bottom: 0.4rem; }
.qhero__q {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-variation-settings: "opsz" 100, "wght" 540, "SOFT" 40, "WONK" 0;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--blue-900);
  margin: 0;
  max-width: 11ch; /* ch resolves against the question's own big size —
                      long questions break into 2–3 strong lines */
  min-height: 3.3em;
}
html.js .qhero__q.is-entering { animation: q-text-in 0.5s var(--ease); }

/* Static one-liner — the only place the hero says what the school is */
.qhero__support {
  font-size: var(--fs-base);
  color: var(--ink-500);
  max-width: 34ch;
  margin: 0 0 1.7rem;
}

/* Editorial link CTAs — serif italic, thin underline, no pills */
.qhero__ctas { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin-bottom: 1.5rem; }
.qlink {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-variation-settings: "opsz" 30, "wght" 580, "SOFT" 30, "WONK" 0;
  font-size: 1.1875rem;
  color: var(--blue-800);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.qlink:hover { color: var(--blue-900); }
.qlink__arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.qlink:hover .qlink__arrow, .qlink:focus-visible .qlink__arrow { transform: translateX(5px); }
.qlink--primary { color: var(--gold-text); }
.qlink--primary:hover { color: #6f5617; }

/* "Next question" teaser — mono label, truncating serif preview, and a
   2px progress bar that fills across the rotation interval (gold on a
   12%-indigo track). Clicking advances immediately. */
.qhero__next {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 30rem;
  background: transparent;
  border: 0;
  padding: 0.5rem 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
}
html:not(.js) .qhero__next { display: none; } /* controls are JS-only */
.qhero__next-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  flex-shrink: 0;
}
.qhero__next-q {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-variation-settings: "opsz" 30, "wght" 480, "SOFT" 30, "WONK" 0;
  font-size: 0.9375rem;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
  transition: color 0.2s var(--ease);
}
.qhero__next:hover .qhero__next-q, .qhero__next:focus-visible .qhero__next-q { color: var(--blue-900); }
.qhero__bar {
  position: relative;
  flex: 1 0 72px;
  height: 2px;
  border-radius: 2px;
  background: rgba(21, 12, 102, 0.12);
  overflow: hidden;
}
.qhero__bar-fill {
  position: absolute;
  inset: 0;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
}
/* duration comes from JS (the rotation interval); hover/focus pause it */
html.js .qhero__bar-fill.is-running { animation: q-progress linear forwards; }
.qhero.is-paused .qhero__bar-fill { animation-play-state: paused; }

/* Per-question dots stay for keyboard / screen-reader users — visually
   hidden until one receives focus (the teaser serves sighted visitors) */
.qhero__dots {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.qhero__dots:focus-within {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  display: flex;
  gap: 0.3rem;
  margin: 0.55rem 0 0 -9px;
}
html:not(.js) .qhero__dots { display: none; } /* controls are JS-only */
.qhero__dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
}
.qhero__dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.6px solid var(--ink-500);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.qhero__dot:hover::after { border-color: var(--blue-800); transform: scale(1.15); }
.qhero__dot[aria-current="true"]::after {
  background: var(--gold-text);
  border-color: var(--gold-text);
  transform: scale(1.2);
}

/* The polaroid — white card, whisper shadow, honest 2.5° tilt.
   A second, empty card peeks out behind it, tilted the other way:
   the rest of the collection. */
.qhero__stage { position: relative; display: flex; justify-content: center; }
.polaroid {
  position: relative;
  z-index: 1;
  width: min(370px, calc(100% - 28px));
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px 13px;
  box-shadow: 0 16px 40px rgba(21, 12, 102, 0.10);
  transform: rotate(2.5deg);
}
.polaroid--ghost {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 7%;
  width: min(320px, calc(100% - 64px));
  padding-bottom: 42px; /* blank caption band */
  transform: translateX(-80%) rotate(-4deg);
  box-shadow: 0 10px 26px rgba(21, 12, 102, 0.07);
}
.polaroid__blank {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: #e9e1d0; /* plain warm-grey photo area */
}
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.polaroid__cap {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-500);
  padding: 0.75rem 0.2rem 0.1rem;
  min-height: calc(2 * 1.45em + 0.85rem); /* two caption lines reserved — no reflow between questions */
}
.polaroid__cap strong { color: var(--ink-700); }
html.js .polaroid.is-entering { animation: q-card-in 0.5s var(--ease); }

/* The doodle — hand-drawn strokes that sketch themselves in, anchored to
   the question block's top-right whitespace like a margin note answering
   it (right where the reader is looking as the question changes).
   pathLength="1" on every path/circle lets one dash rule animate them all;
   parts stagger via inline animation-delay set by the renderer. */
.qhero__doodle {
  position: absolute;
  top: -34px;
  right: -108px;
  width: 124px;
  height: 124px;
  z-index: 1;
  transform: rotate(7deg);
  pointer-events: none;
}
.qhero__doodle svg { display: block; width: 100%; height: 100%; overflow: visible; }
.qhero__doodle path, .qhero__doodle circle {
  fill: none;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: q-draw 0.9s ease forwards;
}
.dd-i { stroke: var(--blue-900); }
.dd-g { stroke: var(--gold-500); }

@keyframes q-draw { to { stroke-dashoffset: 0; } }
@keyframes q-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes q-card-in {
  from { opacity: 0; transform: rotate(2.5deg) translateY(16px); }
  to { opacity: 1; transform: rotate(2.5deg) translateY(0); }
}
@keyframes q-text-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Ghost question mark — felt, not noticed. Behind all content. */
.qhero__ghost {
  position: absolute;
  left: -0.05em;
  bottom: 14px;
  z-index: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 640, "SOFT" 40, "WONK" 0;
  font-size: clamp(240px, 26vw, 380px);
  line-height: 1;
  color: var(--blue-900);
  opacity: 0.03; /* felt, not noticed */
  pointer-events: none;
  user-select: none;
}

/* Facts strip — static full-width anchor along the hero's bottom edge */
.qhero__facts {
  position: relative;
  z-index: 1;
  border-top: 1.5px solid var(--blue-900);
  background: #f3ecdb; /* one step darker than the hero cream */
}
.qhero__facts-row {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem 1.5rem;
  padding-block: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
}

@media (max-width: 919px) {
  .qhero__q { font-size: clamp(1.875rem, 8vw, 2.375rem); }
  /* perched on the question's corner — above the words, not across them */
  .qhero__doodle { width: 62px; height: 62px; top: -46px; right: -10px; }
  .polaroid { width: min(330px, calc(100% - 20px)); }
  .polaroid--ghost { width: min(280px, calc(100% - 56px)); transform: translateX(-78%) rotate(-4deg); }
}
@media (max-width: 700px) {
  .qhero__facts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* draw-on effects resolve straight to their finished state;
     the progress bar simply doesn't run (rotation is manual-only) */
  .qhero__doodle path, .qhero__doodle circle, .qhero__underline path {
    animation: none;
    stroke-dashoffset: 0;
  }
  html.js .qhero__bar-fill.is-running { animation: none; }
}

/* 8. PROOF / STAT BAND ===================================================== */
.proof { background: var(--blue-800); color: #fff; }
.proof .container { padding-block: clamp(2rem, 4vw, 3rem); }
.proof__grid {
  display: grid;
  gap: 1.5rem 1rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 820px) { .proof__grid { grid-template-columns: repeat(4, 1fr); } }
.proof__item { position: relative; }
.proof__item + .proof__item::before {
  content: ""; position: absolute; left: -0.5rem; top: 12%; bottom: 12%;
  width: 1px; background: rgba(255,255,255,0.18);
}
@media (max-width: 819px) { .proof__item::before { display: none !important; } }
.proof__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--gold-400); line-height: 1; }
.proof__label { font-size: var(--fs-sm); color: rgba(255,255,255,0.88); margin-top: 0.4rem; }
.proof__note {
  text-align: center;
  margin-top: 1.75rem;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.82);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}
.proof__note svg { color: var(--gold-400); flex-shrink: 0; }

/* 9. FEATURE SECTIONS (alternating) ======================================== */
.feature { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__media { order: 2; }
}
.feature__media { position: relative; isolation: isolate; }
.feature__img {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.feature__media .blob {
  position: absolute;
  inset: auto -18px -22px auto;
  width: 130px; height: 130px;
  background: var(--gold-300);
  border-radius: 42% 58% 60% 40% / 48% 42% 58% 52%;
  z-index: -1;
}
.feature--reverse .feature__media .blob { inset: -22px auto auto -18px; background: var(--blue-100); }
.feature__list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: 0.7rem; }
.feature__list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.feature__list .tick {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: grid; place-items: center;
  margin-top: 2px;
}

/* Generic card */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  height: 100%;
  color: var(--ink-700); /* don't inherit white text when placed on dark sections */
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.card__body { padding: var(--sp-5); }

/* Icon badge */
.icon-badge {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--blue-050);
  color: var(--blue-700);
  margin-bottom: 1rem;
}
.icon-badge.gold { background: var(--gold-100); color: var(--gold-600); }

/* 10. VALUE CARDS ========================================================== */
.value-card { position: relative; padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); height: 100%; overflow: hidden; }
.value-card--blue { background: linear-gradient(160deg, var(--blue-800), var(--blue-600)); color: #fff; }
.value-card--gold { background: linear-gradient(160deg, var(--gold-400), var(--gold-500)); color: var(--blue-900); }
.value-card h3 { color: inherit; }
.value-card .value-card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.18);
  margin-bottom: 1rem;
}
.value-card--gold .value-card__icon { background: rgba(21,12,102,0.14); }
.value-card .deco {
  position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

/* 11. PRINCIPAL'S MESSAGE ================================================== */
.principal { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 880px) { .principal { grid-template-columns: 0.85fr 1.15fr; } }
.principal__portrait { position: relative; }
.principal__portrait img {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.principal__quote {
  position: absolute; right: -14px; bottom: 24px;
  background: var(--gold-500); color: var(--blue-900);
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  box-shadow: var(--sh-md);
}
.principal__sign { margin-top: 1.5rem; }
.principal__name { font-family: var(--font-display); font-weight: 700; color: var(--blue-900); font-size: var(--fs-md); }
.principal__title { color: var(--ink-500); font-size: var(--fs-sm); }

/* 12. LIFE AT AFS STRIP ==================================================== */
.life-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .life-grid { grid-template-columns: repeat(5, 1fr); } }
.life-item {
  position: relative;
  isolation: isolate; /* keep the z-index:-1 photo inside this tile, not behind the section */
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  color: #fff;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--sh-sm);
}
.life-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.life-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,8,71,0.80), rgba(13,8,71,0) 60%); z-index: -1; }
.life-item span { padding: 0.9rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; }
@media (max-width: 759px) { .life-grid > .life-item:nth-child(5) { grid-column: span 2; aspect-ratio: 16/7; } }

/* 13. NEWS GRID ============================================================ */
.news-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 680px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-card--hover:hover .news-card__media img { transform: scale(1.06); }
.news-card .card__body { display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.news-card__meta { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.chip {
  display: inline-block;
  background: var(--blue-050);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-pill);
}
.chip--gold { background: var(--gold-100); color: var(--gold-text); }
.news-card h3 { font-size: var(--fs-md); margin: 0; }
.news-card h3 a { color: var(--blue-900); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue-600); }
.news-card p { color: var(--ink-500); font-size: var(--fs-sm); }
.news-card .arrow-link { margin-top: auto; padding-top: 0.5rem; }

/* 14. GALLERY ============================================================== */
.gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border: 0; padding: 0; background: none;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item.wide { grid-column: span 2; aspect-ratio: 2; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,8,71,0.25), transparent 50%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(10, 7, 46, 0.93);
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.5rem;
  display: grid; place-items: center;
}
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 1.25rem; }
.lightbox__nav.next { right: 1.25rem; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,0.28); }

/* 15. CTA BANNERS ========================================================== */
.cta-banner { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }
.cta-banner .container { padding-block: clamp(3rem, 6vw, 5rem); position: relative; z-index: 1; }
.cta-banner__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 880px) { .cta-banner__inner { grid-template-columns: 1.4fr 1fr; } }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: var(--fs-md); }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 880px) { .cta-banner__actions { justify-content: flex-end; } }
.cta-banner .deco-dot { position: absolute; border-radius: 50%; opacity: 0.5; }
.cta-banner .deco-dot.a { width: 320px; height: 320px; background: radial-gradient(circle, rgba(219,181,72,0.26), transparent 70%); top: -120px; right: -80px; }
.cta-banner .deco-dot.b { width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%); bottom: -120px; left: -60px; }

/* 16. FORMS ================================================================ */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.span-2 { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink-700);
}
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink-900);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-100);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-500); }
.field .error-msg { font-size: var(--fs-xs); color: var(--err); font-weight: 700; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--err);
  background: var(--err-bg);
}
.field.has-error .error-msg { display: block; }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus {
  box-shadow: 0 0 0 4px var(--err-bg);
}

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--font-display); font-weight: 700; color: var(--blue-900); font-size: var(--fs-md); padding: 0; margin-bottom: 0.75rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: var(--ok-bg);
  border: 1.5px solid #bfe6d0;
  border-radius: var(--r-lg);
  color: var(--ok);
}
.form-success.is-visible { display: block; }
.form-success svg { margin-inline: auto; margin-bottom: 0.75rem; }
.form-success h3 { color: var(--ok); }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-500); }
.consent input { width: auto; margin-top: 4px; flex-shrink: 0; }

/* 17. TABLES (fees) ======================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-sm); -webkit-overflow-scrolling: touch; }
table.fees {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: #fff;
}
table.fees.fees--wide { min-width: 720px; }
table.fees caption { text-align: left; padding: 1rem 1.25rem; font-weight: 700; color: var(--ink-500); font-size: var(--fs-sm); }
table.fees th, table.fees td { padding: 0.95rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
table.fees thead th { background: var(--blue-800); color: #fff; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; }
table.fees thead th:not(:first-child) { text-align: right; }
table.fees td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
table.fees tbody tr:nth-child(even) { background: var(--paper); }
table.fees tbody tr:hover { background: var(--blue-050); }
table.fees td:first-child { font-weight: 700; color: var(--blue-900); }
table.fees .amt { font-family: var(--font-display); font-weight: 700; }

/* Steps / process */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.25rem; box-shadow: var(--sh-sm); }
.step__num {
  counter-increment: step;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-800); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center; margin-bottom: 0.9rem;
}
.step:nth-child(even) .step__num { background: var(--gold-500); color: var(--blue-900); }
.step h3 { font-size: var(--fs-base); margin-bottom: 0.3rem; }
.step p { font-size: var(--fs-sm); color: var(--ink-500); }

/* Info callout */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--gold-100);
  border: 1px solid #f4e2a8;
  border-left: 5px solid var(--gold-500);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
}
.callout svg { color: var(--gold-600); flex-shrink: 0; margin-top: 2px; }
.callout.blue { background: var(--blue-050); border-color: var(--blue-100); border-left-color: var(--blue-600); }
.callout.blue svg { color: var(--blue-600); }
.callout strong { color: var(--blue-900); }

/* 18. FAQ ACCORDION ======================================================== */
.faq { display: grid; gap: 0.85rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base);
  color: var(--blue-900); text-align: left;
}
.faq__q .chev { width: 11px; height: 11px; border-right: 2.5px solid var(--blue-600); border-bottom: 2.5px solid var(--blue-600); transform: rotate(45deg); transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq__q[aria-expanded="true"] .chev { transform: rotate(-135deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a p { padding: 0 1.3rem 1.2rem; color: var(--ink-500); margin: 0; }

/* 19. FOOTER =============================================================== */
.footer { background: var(--blue-900); color: rgba(255,255,255,0.82); }
.footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.footer a:hover { color: var(--gold-300); }
.footer__top { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer__top { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; } }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 1rem; max-width: 38ch; font-size: var(--fs-sm); color: rgba(255,255,255,0.72); }
/* h2 for a correct heading outline (h1 → h2), styled like the old small h4 */
.footer h2 { color: #fff; font-size: var(--fs-base); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: var(--fs-sm); }
.footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact svg { color: var(--gold-400); flex-shrink: 0; margin-top: 3px; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social a:hover { background: var(--gold-500); color: var(--blue-900); transform: translateY(-2px); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: rgba(255,255,255,0.6);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }

/* 20. UTILITIES / MISC ===================================================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.items-center { align-items: center; } .justify-center { justify-content: center; }
.maxw-prose { max-width: 65ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(219,181,72,0.22), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: var(--fs-md); max-width: 58ch; }
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero .eyebrow::before { background: var(--gold-400); }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-xs); margin-bottom: 1rem; color: rgba(255,255,255,0.75); }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.6; margin-inline: 0.4rem; }

/* Prose (article body) */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--r-lg); margin-block: 1.5rem; }
.prose ul, .prose ol { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 5px solid var(--gold-500);
  background: var(--sand);
  border-radius: var(--r-md);
  font-style: italic;
  color: var(--ink-700);
}

/* Testimonials */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-sm); height: 100%; display: flex; flex-direction: column; }
.testimonial__stars { color: var(--gold-500); margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial p { font-size: var(--fs-md); color: var(--ink-700); flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.testimonial__name { font-family: var(--font-display); font-weight: 700; color: var(--blue-900); font-size: var(--fs-sm); }
.testimonial__role { font-size: var(--fs-xs); color: var(--ink-500); }

/* Map */
.map-embed { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Cookie consent */
.cookie {
  position: fixed; z-index: 1200; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 1.1rem 1.25rem;
  display: none;
  gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie.is-visible { display: flex; }
.cookie p { font-size: var(--fs-sm); margin: 0; flex: 1 1 260px; color: var(--ink-500); }
.cookie .cookie__actions { display: flex; gap: 0.5rem; margin-left: auto; }

/* Back to top */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--blue-800); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-600); }

/* Mini quick-actions bar for inner page heroes */
.quick-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

/* Logo strip / accreditation */
.accred { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; opacity: 0.9; }
.accred .accred__item { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; color: var(--ink-500); font-size: var(--fs-sm); }
.accred .accred__item svg { color: var(--blue-600); flex-shrink: 0; }

/* 21. MOTION =============================================================== */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .infobar, .announce, .menu-overlay, .mobile-cta, .cookie, .to-top, .cta-banner, .footer__social { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   22. IMMERSIVE MENU (full-screen overlay, WebGL bg, variable-font links)
   ========================================================================== */

/* Fluid, flash-free page navigation (Chromium; degrades gracefully) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.46s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Responsive helper for header actions */
.hide-sm { display: none !important; }
@media (min-width: 600px) { .hide-sm { display: inline-flex !important; } }

/* The "Menu" button */
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  cursor: pointer; border: 0;
  background: var(--blue-800); color: #fff;
  border-radius: var(--r-pill);
  padding: 0.62rem 1.1rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.menu-btn:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: var(--sh-md); }
.menu-btn__lines { position: relative; width: 18px; height: 12px; flex-shrink: 0; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn__lines i:nth-child(1) { top: 2px; }
.menu-btn__lines i:nth-child(2) { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* Overlay shell */
.menu-overlay {
  position: fixed; inset: 0; z-index: 1250;
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  overflow: hidden;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-overlay__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.menu-overlay__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(13,8,71,0) 38%, rgba(13,8,71,0.55) 100%),
    linear-gradient(180deg, rgba(13,8,71,0.55), rgba(13,8,71,0.2) 32%, rgba(13,8,71,0.6));
}
.menu-overlay__bar, .menu-overlay__body { position: relative; z-index: 2; }

.menu-overlay__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem clamp(1.25rem, 4vw, 3rem);
}
.menu-overlay__bar .brand__name { color: #fff; }
.menu-overlay__bar .brand__sub { color: var(--gold-300); }
.menu-close {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; cursor: pointer;
  padding: 0.55rem 1rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.menu-close:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }

.menu-overlay__body {
  flex: 1; display: grid; align-items: center;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
  overflow-y: auto;
}

/* Big variable-font nav */
.menu-nav { display: flex; flex-direction: column; gap: clamp(0.2rem, 1vw, 0.55rem); }
.menu-row { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.menu-overlay.is-open .menu-row { opacity: 1; transform: none; transition-delay: calc(var(--i) * 0.06s + 0.12s); }
.menu-link { display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none; color: rgba(255,255,255,0.85); }
.menu-link__num { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--gold-400); opacity: 0.85; min-width: 2.2ch; align-self: flex-start; padding-top: 0.6em; }
.menu-link__word {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6.5vw, 5rem); line-height: 1.02; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 80, "wght" 400, "SOFT" 0, "WONK" 0;
  transition: font-variation-settings 0.4s var(--ease), color 0.25s var(--ease), transform 0.4s var(--ease);
}
.menu-link__arrow { opacity: 0; transform: translateX(-14px); color: var(--gold-400); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.menu-row.is-active .menu-link, .menu-link:hover, .menu-link:focus-visible { color: #fff; }
.menu-row.is-active .menu-link__word, .menu-link:hover .menu-link__word, .menu-link:focus-visible .menu-link__word {
  font-variation-settings: "opsz" 144, "wght" 720, "SOFT" 0, "WONK" 1;
  transform: translateX(10px);
}
.menu-row.is-active .menu-link__arrow, .menu-link:hover .menu-link__arrow { opacity: 1; transform: translateX(0); }
.menu-link[aria-current="page"] .menu-link__num { color: #fff; }

.menu-sub {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem;
  padding-left: calc(2.2ch + 0.9rem);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), padding 0.3s var(--ease);
}
.menu-row.is-active .menu-sub { max-height: 150px; opacity: 1; padding-top: 0.5rem; padding-bottom: 0.4rem; }
.menu-sub a { color: rgba(255,255,255,0.72); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.menu-sub a:hover { color: var(--gold-300); }

/* Aside: image preview + contact */
.menu-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.menu-preview { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,0.16); }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s var(--ease); }
.menu-meta { color: rgba(255,255,255,0.82); display: flex; flex-direction: column; gap: 1.1rem; }
.menu-meta__cta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
/* Staff Login — sits at the foot of the menu list; links out to the staff portal (afsup) */
.menu-staff {
  align-self: flex-start;
  margin-top: clamp(1rem, 3vw, 1.7rem);
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: var(--fs-sm);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--r-pill);
  padding: 0.5rem 0.95rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu-staff:hover { background: rgba(255,255,255,0.1); border-color: var(--gold-500); }
.menu-staff svg { color: var(--gold-400); flex-shrink: 0; }
.menu-staff svg:last-child { width: 15px; height: 15px; opacity: 0.8; }
.menu-meta__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: var(--fs-sm); }
.menu-meta__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.menu-meta__contact svg { color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.menu-meta__contact a, .menu-meta__contact span { color: #fff; text-decoration: none; }
.menu-meta__social { display: flex; gap: 0.6rem; }
.menu-meta__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; color: #fff; transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.menu-meta__social a:hover { background: var(--gold-500); color: var(--blue-900); transform: translateY(-2px); }

@media (max-width: 900px) {
  .menu-overlay__body { grid-template-columns: 1fr; align-items: start; }
  .menu-aside { display: none; }
  /* touch / small screens: always reveal sub-links (no hover) */
  .menu-sub { max-height: none; opacity: 1; padding-top: 0.4rem; padding-bottom: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .menu-row { opacity: 1; transform: none; }
}

/* ==========================================================================
   23. ANNOUNCEMENT BAR, MOBILE CTA, FEE CALCULATOR, GALLERY EXTRAS
   ========================================================================== */

/* Announcement ribbon (e.g. "Grade 6 now open") — dismissible */
.announce {
  position: relative;
  z-index: 5;
  background: linear-gradient(90deg, var(--blue-950), var(--blue-700));
  color: #fff;
  font-size: var(--fs-sm);
}
.announce .container {
  display: flex; align-items: center; justify-content: center;
  gap: 0.7rem; flex-wrap: wrap;
  padding-block: 0.55rem;
  text-align: center;
  padding-right: 3rem; /* room for the close button */
  position: relative;
}
.announce__badge {
  flex-shrink: 0;
  background: var(--gold-500); color: var(--blue-950);
  font-family: var(--font-display); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.14rem 0.6rem; border-radius: var(--r-pill);
}
.announce strong { font-family: var(--font-display); font-weight: 600; }
.announce a { color: var(--gold-300); font-weight: 700; white-space: nowrap; }
.announce a:hover { color: #fff; }
.announce__close {
  position: absolute; right: var(--sp-5); top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: none; color: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 1rem; line-height: 1;
}
.announce__close:hover { background: rgba(255,255,255,0.15); }

/* Sticky bottom action bar — phones/tablets only */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(21, 12, 102, 0.14);
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 54px; padding: 0.6rem 0.4rem;
  background: #fff; color: var(--blue-800);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  text-decoration: none;
}
.mobile-cta a svg { flex-shrink: 0; }
.mobile-cta a.is-wa { color: #0e7a40; }
.mobile-cta a.is-primary { background: var(--blue-800); color: #fff; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023.98px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .cookie { bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* WhatsApp button variant */
.btn--wa { --btn-bg: #0e7a40; --btn-fg: #fff; }
.btn--wa:hover { background: #0b6434; }

/* Honest form hand-off panel (no backend yet — send via WhatsApp or email) */
.form-channels {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: var(--blue-050);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--r-lg);
}
.form-channels.is-visible { display: block; }
.form-channels h3 { color: var(--blue-900); }
.form-channels p { color: var(--ink-500); font-size: var(--fs-sm); }
.form-channels__btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* Fee calculator */
.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.calc__grid { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .calc__grid { grid-template-columns: 1.2fr 1.4fr 1fr; align-items: end; } }
.seg {
  display: flex; flex-wrap: wrap;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px; gap: 2px;
}
.seg label { position: relative; flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem 0.9rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs);
  color: var(--ink-500); white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.seg input:checked + span { background: var(--blue-800); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.calc__result {
  margin-top: 1.5rem;
  border-top: 1.5px dashed var(--line);
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  align-items: baseline; justify-content: space-between;
}
.calc__total { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--blue-800); }
.calc__total small { font-size: 0.55em; font-weight: 600; color: var(--ink-500); }
.calc__breakdown { font-size: var(--fs-sm); color: var(--ink-500); max-width: 52ch; }
.calc__breakdown strong { color: var(--ink-700); }
.calc__note { font-size: var(--fs-xs); color: var(--ink-300); margin-top: 1rem; }

/* Gallery: filters, captions, richer lightbox */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-700);
  border-radius: var(--r-pill); padding: 0.55rem 1.15rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-chip:hover { border-color: var(--blue-500); color: var(--blue-800); }
.filter-chip[aria-pressed="true"] { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.gallery__item.is-hidden { display: none; }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 0.85rem 0.7rem;
  color: #fff; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs);
  background: linear-gradient(0deg, rgba(13,8,71,0.75), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; }
.lightbox__meta {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.1rem;
  display: flex; gap: 0.9rem; align-items: center;
  max-width: min(92vw, 640px);
  color: #fff; font-size: var(--fs-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.5rem 1.1rem; border-radius: var(--r-pill);
}
.lightbox__count { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.lightbox__cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Breadcrumb on light backgrounds (article pages) */
.breadcrumb--light { color: var(--ink-500); }
.breadcrumb--light a { color: var(--blue-700); }
.breadcrumb--light a:hover { color: var(--blue-500); }

/* Documents-required checklist */
.docs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
@media (min-width: 720px) { .docs-list { grid-template-columns: 1fr 1fr; } }
.docs-list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  font-size: var(--fs-sm);
  box-shadow: var(--sh-sm);
}
.docs-list .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-100); color: var(--gold-text);
  display: grid; place-items: center;
  font-size: 0.8rem; margin-top: 1px;
}

/* White value card (used on About alongside the gold one) */
.value-card--white { background: #fff; border: 1px solid var(--line); }
.value-card--white .deco { background: var(--blue-050); }
.value-card--white h3 { color: var(--blue-900); }
.value-card--white p { color: var(--ink-500); }
.value-card--white .value-card__icon { background: var(--gold-100); color: var(--gold-text); }
