/* ==========================================================================
   Agomeda God Is Good Academy - main.css (v2)
   Design system, shared components, header, mobile navigation and footer.
   Colours come from the pupils' uniform: purple-and-white check with a pale
   yellow thread, khaki bottoms, and the gold of the crest embroidery.

   CONTENTS
   01  Tokens (uniform palette + v1 aliases)
   02  Reset
   03  Base typography & links
   04  Layout: containers, sections, grid, splits, stacks
   05  Headings system: eyebrow, section-head, display, emphasis
   06  Buttons & text links
   07  Site header: utility bar, main bar, brand, nav, dropdowns
   08  Mobile navigation overlay
   09  Page hero (v2), breadcrumb, scroll cue
   10  Hero slider
   11  Slider controls (shared)
   12  Media: frames, captions, media stack
   13  Cards
   14  Stats band
   15  Quotes & testimonials
   16  News cards
   17  Event list
   18  Timeline
   19  Tabs
   20  Accordion
   21  Forms
   22  Badges & tags
   23  Icon list
   24  Gallery & lightbox
   25  CTA band
   26  Marquee
   27  Dividers & ornaments
   28  Horizontal scroll gallery
   28b Campus scene (3D diorama) defaults
   29  Social icons
   30  Footer
   31  Quick actions: WhatsApp, back to top, phone action bar
   40  Gingham motif                      (v2)
   41  Photo frame & collage              (v2)
   42  Impact stats                       (v2)
   43  Need cards & need detail           (v2)
   44  Tier cards                         (v2)
   45  Copy button & pay cards            (v2)
   46  Donate panel & donate modal        (v2)
   47  Steps                              (v2)
   48  Promise band                       (v2)
   49  Sponsor band                       (v2)
   50  (WhatsApp float: see 31)           (v2)
   51  WhatsApp forms                     (v2)
   52  Video card & ambient video         (v3)
   32  Utilities
   33  Motion helpers
   34  Reduced motion
   35  Print
   ========================================================================== */


/* ==========================================================================
   01  Tokens
   ========================================================================== */
:root {
  /* Uniform palette ------------------------------------------------------ */
  --purple-950: #1F1229;
  --purple-900: #2B1938;              /* deep sections, footer */
  --purple-800: #3D2452;
  --purple-700: #53316E;              /* PRIMARY: buttons on light, links, heading emphasis */
  --purple-600: #6A4589;
  --purple-500: #8A6BB0;              /* lavender accent (non-text, or large text on dark) */
  --purple-200: #D9CCEA;
  --purple-100: #EFE8F6;              /* lavender tint section */
  --purple-50:  #F8F5FB;

  --khaki-700: #6F6048;               /* text-safe khaki on light (5.7:1 on cream) */
  --khaki-600: #9C8A6A;
  --khaki-500: #BCA887;               /* uniform khaki */
  --khaki-300: #DCCFB6;
  --khaki-100: #F1EBDD;
  --khaki-50:  #FAF7F0;               /* page background, warm cream */

  --gold-800: #7A5C0E;                /* small gold text on TINTED light surfaces (5.2:1 on purple-100 / khaki-100) */
  --gold-700: #8A6912;                /* small gold text on cream / paper (4.78:1 cream, 5.03:1 paper) */
  --gold-600: #C4962A;                /* large text, icons, rules on light */
  --gold-500: #E0B540;                /* crest gold: buttons and accents on purple, hairlines */
  --gold-300: #F2D57E;                /* gold text on purple (11:1 on purple-900) */
  --gold-100: #FBF3DC;
  --thread:   #E3DAA4;                /* the pale yellow thread in the check */

  --ink:   #1E1726;
  --slate: #5B5366;
  --paper: #FFFDF9;
  --line: rgba(43, 25, 56, .12);
  --line-strong: rgba(43, 25, 56, .24);
  --line-light: rgba(250, 247, 240, .16);
  --brick: #9B3B2A;                   /* errors */
  --brick-light: #F0AE9F;             /* errors on purple */
  --success: #2E6A4E;
  --whatsapp: #0E7A6E;                /* WhatsApp teal-green (white text 5.2:1) */
  --whatsapp-dark: #075E54;

  /* v1 names kept as aliases, so every v1 component and any leftover page CSS
     inherits the uniform colours. Prefer the purple/khaki names in new code. */
  --navy-950: var(--purple-950);
  --navy-900: var(--purple-900);
  --navy-800: var(--purple-800);
  --navy-700: var(--purple-700);
  --navy-100: var(--purple-100);
  --ivory: var(--khaki-50);
  --cream: var(--khaki-50);

  /* Contextual colours: dark surfaces re-map these (see "dark contexts") */
  --c-bg: var(--khaki-50);
  --c-text: var(--ink);
  --c-heading: var(--purple-900);
  --c-muted: var(--slate);
  --c-line: var(--line);
  --c-line-strong: var(--line-strong);
  --c-accent: var(--gold-700);        /* small gold text (AA on cream/paper) */
  --c-accent-em: var(--purple-600);   /* italic emphasis inside headings on light (6.9:1 on cream) */
  --c-accent-icon: var(--gold-600);   /* gold glyphs and ornaments (non-text, 3:1) */
  --c-rule: var(--gold-500);          /* hairlines and ornaments */
  --c-focus: var(--purple-700);
  --c-link: var(--purple-700);
  --c-surface: var(--paper);          /* cards, inputs */
  --c-tint: var(--purple-100);        /* soft fills (icon tiles, chips) */

  /* Gingham (uniform check) */
  --gingham-ink: rgba(83, 49, 110, .5);   /* one purple stripe; crossings read darker */
  --gingham-ground: #FFFFFF;
  --gingham-thread: var(--thread);
  --gingham-cell: 8px;

  /* Type families. None of the three brand fonts has the cedi sign (U+20B5), so each stack names a
     cedi-only face right after them: "EB Garamond" (old-style, sits well beside Caslon) and "Libre
     Franklin" (the family Public Sans is based on). The shared <head> loads just that one glyph
     from Google Fonts (text=₵, unicode-range U+20B5), so every "GH₵" on the site uses a real,
     matching cedi sign instead of Georgia's missing glyph or a random system font. */
  --font-display: "Libre Caslon Display", "Libre Caslon Text", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.75rem, 1.55rem + 5.1vw, 5.5rem);
  --fs-page-title: clamp(2.5rem, 1.55rem + 3.6vw, 4.5rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.9vw, 4.625rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.375rem);
  --fs-h3: clamp(1.375rem, 1.22rem + .7vw, 1.8125rem);
  --fs-h4: clamp(1.125rem, 1.07rem + .25vw, 1.3125rem);
  --fs-lede: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-eyebrow: .75rem;

  /* Spacing */
  --space-section: clamp(80px, 10vw, 150px);
  --space-2xs: .5rem;
  --space-xs: .75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --gutter: clamp(20px, 4vw, 40px);
  --grid-gap: clamp(20px, 2.6vw, 40px);

  /* Containers */
  --container: 1280px;
  --container-narrow: 860px;
  --container-wide: 1520px;

  /* Shape & depth (v2 is a little softer: photos and cards get real rounding) */
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(31, 18, 41, .05), 0 3px 10px -2px rgba(31, 18, 41, .06);
  --shadow-md: 0 2px 6px rgba(31, 18, 41, .05), 0 18px 36px -12px rgba(31, 18, 41, .18);
  --shadow-lg: 0 4px 12px rgba(31, 18, 41, .06), 0 32px 64px -20px rgba(31, 18, 41, .32);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Phone action bar (section 31): its height, 0 where the bar is not shown */
  --action-bar-h: 0px;

  /* Header metrics */
  --utility-h: 40px;
  --header-h: 88px;
  --header-h-scrolled: 72px;
  --anchor-offset: calc(var(--header-h-scrolled) + 24px);

  /* Paper grain (inline SVG noise with a faint purple cast, very low opacity) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .07 0 0 0 0 .16 0 0 0 1.6 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E");
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 .8 13.2 7 7 13.2.8 7z' fill='none' stroke='%23C4962A'/%3E%3Cpath d='M7 4.4 9.6 7 7 9.6 4.4 7z' fill='%23C4962A'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232B1938' stroke-width='1.5'/%3E%3C/svg%3E");
}

@media (max-width: 1079.98px) {
  :root {
    --header-h: 76px;
    --header-h-scrolled: 66px;
  }
}

/* Tablets: at least 32px side gutters (4vw was 26-31px at 640-799px), so the WhatsApp /
   back-to-top edge rail (section 31) fits in the page margin without covering text. */
@media (min-width: 640px) {
  :root {
    --gutter: clamp(32px, 4vw, 40px);
  }
}

@media (max-width: 559.98px) {
  :root {
    --utility-h: 36px;
    --header-h: 68px;
    --header-h-scrolled: 62px;
  }
}

/* Dark contexts: every component reads the contextual variables. */
.section--purple,
.section--purple-deep,
.section--navy,
.section--navy-deep,
.on-dark,
.page-hero,
.hero,
.cta-band,
.site-footer,
.mobile-nav,
.dropdown__aside,
.lightbox,
.sponsor-band,
.tier-card--featured,
.impact-stats--dark,
.video-card--dark {
  --c-bg: var(--purple-900);
  --c-text: rgba(250, 247, 240, .84);
  --c-heading: #FFFFFF;
  --c-muted: rgba(250, 247, 240, .7);
  --c-line: var(--line-light);
  --c-line-strong: rgba(250, 247, 240, .32);
  --c-accent: var(--gold-300);
  --c-accent-em: var(--gold-300);
  --c-accent-icon: var(--gold-300);
  --c-rule: var(--gold-500);
  --c-focus: var(--gold-300);
  --c-link: var(--gold-300);
  --c-surface: var(--purple-800);
  --c-tint: rgba(250, 247, 240, .08);
  --c-primary-sweep: var(--khaki-50);
  --c-primary-sweep-fg: var(--purple-950);
  --gingham-ink: rgba(255, 255, 255, .16);
  --gingham-ground: transparent;
  --gingham-thread: rgba(227, 218, 164, .35);
}

/* Tinted light sections: small gold text steps down to gold-800 to keep AA */
.section--lavender,
.section--khaki,
.section--gold-tint {
  --c-accent: var(--gold-800);
}


/* ==========================================================================
   02  Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--anchor-offset);
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

table {
  border-collapse: collapse;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-950);
}

/* Lenis (inlined from lenis@1.1.13/dist/lenis.css) */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}


/* ==========================================================================
   03  Base typography & links
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--c-heading);
  font-weight: 400;
  text-wrap: balance;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -.02em;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -.015em;
}

h3,
.h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -.005em;
}

h4,
.h4 {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.35;
}

h5,
h6 {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--c-heading);
}

/* Italic Caslon emphasis inside headings: "Rooted in faith. <em>Ready</em> for the world." */
:is(h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4) em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-accent-em);
  letter-spacing: -.015em;
}

/* v2: emphasis is purple-600 on light (6.9:1, fine at any size) and gold-300 on purple */

:is(h1, h2, .display, .h1, .h2) em {
  font-size: .94em;
}

/* The italic accent is kept for moments that matter: the page title (h1), the closing call to
   action (the last section of <main>) and any heading word marked <em class="accent">. Section
   headings elsewhere read plain, so the accent does not become a formula. */
main > section:not(:last-of-type) :is(h2, h3, h4, .h2, .h3, .h4) em:not(.accent) {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}

:is(h1, h2, h3, h4, .h1, .h2, .h3, .h4) .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--c-accent-em);
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--fs-xs);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--c-muted);
  max-width: 60ch;
}

.prose {
  max-width: 68ch;
  color: var(--c-text);
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose > :is(h2, h3, h4) {
  margin-top: 1.8em;
}

.prose ul:not([class]),
.prose ol:not([class]) {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: .4em;
}

.prose li::marker {
  color: var(--c-rule);
}

.prose a,
.link {
  color: var(--c-link);
  text-decoration: underline;
  text-decoration-color: var(--c-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .25s ease, text-decoration-color .25s ease;
}

.prose a:hover,
.link:hover {
  color: var(--c-accent);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: .85rem 1.25rem;
  background: var(--navy-950);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  border: 1px solid var(--gold-500);
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
}

main:focus,
[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

[data-counter] {
  font-variant-numeric: tabular-nums lining-nums;
}


/* ==========================================================================
   04  Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.container--wide {
  max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

.container--full {
  max-width: none;
}

/* Sections ---------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--space-section);
  background-color: var(--c-bg);
  color: var(--c-text);
}

.section--sm {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--lg {
  padding-block: clamp(100px, 13vw, 200px);
}

.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

.section--flush {
  padding-block: 0;
}

.section--ivory,
.section--cream {
  --c-bg: var(--khaki-50);
  background-image: var(--grain);
}

.section--paper {
  --c-bg: var(--paper);
}

.section--gold-tint {
  --c-bg: var(--gold-100);
  background-image: var(--grain);
}

/* soft lavender tint (uniform purple, washed out) */
.section--lavender {
  --c-bg: var(--purple-100);
  --c-surface: var(--paper);
  background-image: radial-gradient(90% 70% at 0% 0%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 60%);
}

/* warm khaki tint (uniform shorts and skirts) */
.section--khaki {
  --c-bg: var(--khaki-100);
  background-image: var(--grain);
}

.section--navy,
.section--purple {
  --c-bg: var(--purple-900);
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(106, 69, 137, .5) 0%, rgba(43, 25, 56, 0) 60%);
}

.section--navy-deep,
.section--purple-deep {
  --c-bg: var(--purple-950);
}

.section--bordered {
  border-top: 1px solid var(--c-line);
}

.on-dark {
  color: var(--c-text);
}

/* 12-column grid ---------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.grid--align-center {
  align-items: center;
}

.grid--align-end {
  align-items: end;
}

@media (min-width: 640px) {
  .sm-span-6 { grid-column: auto / span 6; }
  .sm-span-4 { grid-column: auto / span 4; }
}

@media (min-width: 960px) {
  .span-2 { grid-column: auto / span 2; }
  .span-3 { grid-column: auto / span 3; }
  .span-4 { grid-column: auto / span 4; }
  .span-5 { grid-column: auto / span 5; }
  .span-6 { grid-column: auto / span 6; }
  .span-7 { grid-column: auto / span 7; }
  .span-8 { grid-column: auto / span 8; }
  .span-9 { grid-column: auto / span 9; }
  .span-10 { grid-column: auto / span 10; }
  .span-12 { grid-column: 1 / -1; }
  .start-1 { grid-column-start: 1; }
  .start-2 { grid-column-start: 2; }
  .start-3 { grid-column-start: 3; }
  .start-4 { grid-column-start: 4; }
  .start-5 { grid-column-start: 5; }
  .start-6 { grid-column-start: 6; }
  .start-7 { grid-column-start: 7; }
  .start-8 { grid-column-start: 8; }
  .start-9 { grid-column-start: 9; }
  .start-10 { grid-column-start: 10; }
  .start-11 { grid-column-start: 11; }
  .start-12 { grid-column-start: 12; }
}

/* Split layouts (asymmetric two-column) ----------------------------------- */
.split {
  display: grid;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.split > * {
  min-width: 0;
}

.split--center {
  align-items: center;
}

.split--end {
  align-items: end;
}

@media (min-width: 960px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .split--reverse > :first-child { order: 2; }
}

/* Auto grids for cards ---------------------------------------------------- */
.cols-2,
.cols-3,
.cols-4 {
  display: grid;
  gap: var(--grid-gap);
}

@media (min-width: 700px) {
  .cols-2,
  .cols-3,
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Stacks ------------------------------------------------------------------ */
.stack > * + * {
  margin-top: var(--stack, 1.25rem);
}

.stack--sm { --stack: .75rem; }
.stack--lg { --stack: 2rem; }


/* ==========================================================================
   05  Headings system
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.35rem;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--c-rule);
}

.eyebrow--light {
  --c-accent: var(--gold-300);
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--center::after {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--c-rule);
}

/* Numbered marker: <p class="eyebrow eyebrow--numbered"><span class="eyebrow__num">01</span>Our Story</p> */
.eyebrow--numbered::before {
  display: none;
}

.eyebrow__num {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--c-accent);
}

.eyebrow__num::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--c-rule);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(44px, 5.5vw, 80px);
}

.section-head__title {
  margin: 0;
}

.section-head__lede {
  margin-top: 1.4rem;
  max-width: 60ch;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--c-muted);
}

.section-head__actions {
  margin-top: 2rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow::after {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--c-rule);
}

.section-head--center .eyebrow--numbered::after {
  display: none;
}

.section-head--center .section-head__lede {
  margin-inline: auto;
}

.section-head--center .btn-group {
  justify-content: center;
}

.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem clamp(40px, 6vw, 110px);
}

@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
  .section-head--split .section-head__lede {
    margin-top: 0;
  }
}

.section-head--tight {
  margin-bottom: clamp(28px, 3vw, 44px);
}


/* ==========================================================================
   06  Buttons & text links
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-heading);
  --btn-border: currentColor;
  --btn-sweep: var(--navy-900);
  --btn-fg-hover: var(--ivory);
  --btn-border-hover: var(--btn-sweep);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 3.25rem;
  padding: .95rem 1.65rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}

/* phones: a label longer than the button's width ("Sponsor a Child on WhatsApp") wraps onto a
   second line instead of running into the padding; labels that fit stay on one line */
@media (max-width: 479.98px) {
  .btn { white-space: normal; }
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--btn-sweep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .6s var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  color: var(--btn-fg-hover);
  border-color: var(--btn-border-hover);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.btn i {
  font-size: .95em;
  transition: transform .5s var(--ease-out);
}

.btn:hover i:last-child,
.btn:focus-visible i:last-child {
  transform: translateX(5px);
}

.btn:active {
  transform: translateY(1px);
}

/* gold "Donate" button: purple-950 on gold-500 = 9.2:1. Hover sweeps to purple-900
   on light surfaces, cream on purple ones. */
.btn--primary {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--purple-950);
  --btn-border: var(--gold-500);
  --btn-sweep: var(--c-primary-sweep, var(--purple-900));
  --btn-fg-hover: var(--c-primary-sweep-fg, var(--khaki-50));
}

/* solid purple button for light surfaces: white on purple-700 = 10.3:1 */
.btn--purple,
.btn--navy {
  --btn-bg: var(--purple-700);
  --btn-fg: #fff;
  --btn-border: var(--purple-700);
  --btn-sweep: var(--purple-900);
  --btn-fg-hover: #fff;
}

/* WhatsApp action: white on WhatsApp teal-green = 5.2:1 */
.btn--whatsapp {
  --btn-bg: var(--whatsapp);
  --btn-fg: #fff;
  --btn-border: var(--whatsapp);
  --btn-sweep: var(--whatsapp-dark);
  --btn-fg-hover: #fff;
  font-weight: 700;
}

.btn--whatsapp .fa-whatsapp {
  font-size: 1.35em;
}

.btn--outline {
  --btn-fg: var(--c-heading);
  --btn-border: var(--c-line-strong);
  --btn-sweep: var(--c-heading);
  --btn-fg-hover: var(--c-bg);
}

.btn--light {
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, .5);
  --btn-sweep: var(--ivory);
  --btn-fg-hover: var(--navy-950);
}

/* Quiet secondary control (e.g. the campus-scene day/evening toggle): takes the
   surrounding text color, hairline border, faint tint of that color on hover. */
.btn--ghost {
  --btn-fg: currentColor;
  --btn-border: color-mix(in srgb, currentColor 35%, transparent);
  --btn-sweep: color-mix(in srgb, currentColor 12%, transparent);
  --btn-fg-hover: currentColor;
  --btn-border-hover: currentColor;
}

.btn--sm {
  min-height: 2.75rem;
  padding: .7rem 1.2rem;
  font-size: .71rem;
  letter-spacing: .15em;
  gap: .65rem;
}

.btn--lg {
  min-height: 3.75rem;
  padding: 1.15rem 2.1rem;
}

.btn--block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .875rem 1rem;
}

@media (max-width: 479.98px) {
  .btn-group > .btn {
    flex: 1 1 100%;
  }
}

/* Text link with animated arrow */
.btn--link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .4rem 0;
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-heading);
  background-image: linear-gradient(var(--c-rule), var(--c-rule));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color .3s ease;
}

.btn--link i {
  color: var(--c-rule);
  transition: transform .5s var(--ease-out);
}

.btn--link:hover,
.btn--link:focus-visible,
a:hover > .btn--link,
.card:hover .btn--link {
  color: var(--c-accent);
  animation: link-redraw .8s var(--ease-in-out);
}

.btn--link:hover i,
.btn--link:focus-visible i,
a:hover > .btn--link i,
.card:hover .btn--link i {
  transform: translateX(6px);
}

.btn--link-light {
  --c-heading: #fff;
  --c-accent: var(--gold-300);
}

@keyframes link-redraw {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0% 1px; background-position: 100% 100%; }
  46% { background-size: 0% 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}


/* ==========================================================================
   07  Site header
   Transparent with white text over the deep-purple page heroes, then a solid
   paper bar with purple text once scrolled (.is-scrolled). Pages whose first
   section is light get .is-solid from main.js (solid bar, utility bar kept).
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  --c-focus: var(--gold-300);
  transition: transform .55s var(--ease-out), color .4s ease;
}

.site-header::before {
  /* legibility veil over dark heroes while transparent */
  content: "";
  position: absolute;
  inset: 0 0 -70px 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31, 18, 41, .55) 0%, rgba(31, 18, 41, .22) 60%, rgba(31, 18, 41, 0) 100%);
  pointer-events: none;
  transition: opacity .45s ease;
}

.site-header.is-scrolled {
  transform: translateY(calc(var(--utility-h) * -1));
}

.site-header.is-scrolled,
.site-header.is-solid {
  color: var(--purple-900);
  --c-focus: var(--purple-700);
}

.site-header.is-scrolled::before,
.site-header.is-solid::before {
  opacity: 0;
}

/* Utility bar ------------------------------------------------------------- */
.utility-bar {
  height: var(--utility-h);
  background: var(--purple-950);
  color: rgba(250, 247, 240, .8);
  font-size: .78rem;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  --c-focus: var(--gold-300);
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.utility-bar ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.utility-bar li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.utility-bar a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .25s ease;
}

.utility-bar a:hover {
  color: var(--gold-300);
}

.utility-bar i {
  color: var(--gold-500);
  font-size: .85em;
}

.utility-bar .fa-whatsapp {
  font-size: 1.05em;
}

.utility-bar__contact li + li {
  padding-left: 1.35rem;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.utility-bar__links {
  margin-left: auto;
}

.utility-bar__links li + li {
  padding-left: 1.35rem;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.utility-bar__momo strong {
  font-weight: 600;
  color: #fff;
}

@media (max-width: 1279.98px) {
  .utility-bar__place { display: none !important; }
}

@media (max-width: 899.98px) {
  .utility-bar__phone2 { display: none !important; }
}

/* the email needs about 230px: shown from 640px (the mobile menu and footer carry it below) */
@media (max-width: 639.98px) {
  .utility-bar__email { display: none !important; }
}

@media (max-width: 559.98px) {
  .utility-bar { font-size: .72rem; }
  .utility-bar a { min-height: 36px; }
  .utility-bar ul,
  .utility-bar__inner { gap: 1rem; }
  .utility-bar__contact li + li,
  .utility-bar__links li + li { padding-left: 1rem; }
}

/* below 1024px the left side already shows 024 008 7434 (the MoMo number too): no repeat */
@media (max-width: 1023.98px) {
  .utility-bar__momo { display: none !important; }
}

/* Main bar ---------------------------------------------------------------- */
.site-header__bar {
  position: relative;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transition: height .5s var(--ease-out), background-color .45s ease, border-color .45s ease, box-shadow .45s ease;
}

.site-header.is-scrolled .site-header__bar,
.site-header.is-solid .site-header__bar {
  background-color: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(43, 25, 56, .04), 0 10px 30px -18px rgba(31, 18, 41, .35);
}

.site-header.is-scrolled .site-header__bar {
  height: var(--header-h-scrolled);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 100%;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex: none;
}

.nav + .site-header__actions {
  margin-left: 0;
}

.site-header .site-header__cta {
  --c-primary-sweep: var(--khaki-50);
  --c-primary-sweep-fg: var(--purple-950);
}

.site-header.is-scrolled .site-header__cta,
.site-header.is-solid .site-header__cta {
  --c-primary-sweep: var(--purple-900);
  --c-primary-sweep-fg: var(--khaki-50);
}

/* Brand: real crest on a white circular backing + wordmark ----------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  flex: none;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__badge {
  --badge: 62px;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--badge);
  height: var(--badge);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 8px 20px -8px rgba(31, 18, 41, .6);
  transition: width .5s var(--ease-out), height .5s var(--ease-out), box-shadow .45s ease;
}

.brand__badge picture,
.brand__badge img {
  display: block;
  width: 90%;
  height: 90%;
}

.brand__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header.is-scrolled .brand__badge {
  --badge: 52px;
}

.site-header.is-scrolled .brand__badge,
.site-header.is-solid .brand__badge {
  box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgba(31, 18, 41, .3);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  white-space: nowrap;
}

.brand__tag {
  margin-top: .45rem;
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-300);
  transition: color .4s ease;
}

.site-header.is-scrolled .brand__tag,
.site-header.is-solid .brand__tag {
  color: var(--gold-700);
}

.brand--light {
  color: #fff;
}

.brand--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.brand--stacked .brand__badge {
  --badge: 92px;
}

.brand--stacked .brand__name {
  font-size: 1.5rem;
  line-height: 1.15;
  white-space: normal;
}

/* Primary nav ------------------------------------------------------------- */
.nav {
  margin-left: auto;
  height: 100%;
}

.nav__list {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 .85rem;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: inherit;
  white-space: nowrap;
  transition: color .3s ease;
}

.has-dropdown > .nav__link {
  padding-right: .3rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: calc(50% - 1.2em);
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--ease-out);
}

.has-dropdown > .nav__link::after {
  right: .3rem;
}

.nav__link:hover::after,
.nav__item.is-open > .nav__link::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__link[aria-current="page"] {
  color: var(--gold-300);
}

.site-header.is-scrolled .nav__link[aria-current="page"],
.site-header.is-solid .nav__link[aria-current="page"] {
  color: var(--purple-700);
}

.site-header.is-scrolled .nav__link:hover,
.site-header.is-solid .nav__link:hover {
  color: var(--purple-600);
}

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 2rem;
  margin-right: .5rem;
  color: inherit;
  font-size: .56rem;
  opacity: .75;
  transition: opacity .25s ease;
}

.nav__toggle i {
  transition: transform .4s var(--ease-out);
}

.nav__toggle:hover {
  opacity: 1;
}

.nav__toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Dropdown panels --------------------------------------------------------- */
.dropdown {
  --dd-x: -50%;
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  width: max-content;
  min-width: 300px;
  max-width: 360px;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(var(--dd-x), 12px);
  transition: opacity .3s ease, transform .45s var(--ease-out), visibility 0s linear .45s;
}

.nav__item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(var(--dd-x), 0);
  transition: opacity .3s ease, transform .45s var(--ease-out), visibility 0s;
}

.dropdown__inner {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.55rem 1.6rem 1.3rem;
}

/* a thin uniform-check strip along the top edge of every dropdown */
.dropdown__inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background-color: var(--gingham-ground);
  background-image:
    linear-gradient(90deg, var(--gingham-ink) 50%, transparent 50%),
    linear-gradient(0deg, var(--gingham-ink) 50%, transparent 50%);
  background-size: 10px 10px;
}

.dropdown__title {
  margin-bottom: .6rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.dropdown__list {
  display: grid;
  gap: 2px;
}

.dropdown__link {
  display: grid;
  gap: .2rem;
  margin-inline: -.8rem;
  padding: .65rem .8rem;
  border-radius: var(--radius);
  transition: background-color .25s ease;
}

.dropdown__link:hover,
.dropdown__link:focus-visible {
  background: var(--purple-50);
}

.dropdown__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--purple-900);
}

.dropdown__label::after {
  content: "";
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width .45s var(--ease-out);
}

.dropdown__link:hover .dropdown__label::after,
.dropdown__link:focus-visible .dropdown__label::after {
  width: 22px;
}

.dropdown__desc {
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--slate);
}

/* Split dropdown (Our Needs: links + a small "give" aside) */
.dropdown--split {
  --dd-x: -50%;
  max-width: none;
}

.dropdown--split .dropdown__inner {
  display: grid;
  grid-template-columns: minmax(0, 290px) 236px;
  gap: 1.6rem;
  padding-right: 1.1rem;
}

.dropdown__aside {
  align-self: start;
  margin: -.45rem 0 -.35rem;
  padding: 1.35rem 1.35rem 1.45rem;
  background: var(--purple-900);
  color: var(--c-text);
  border-radius: var(--radius);
}

.dropdown__aside .dropdown__title {
  color: var(--gold-300);
  border-bottom-color: var(--line-light);
}

.dropdown__aside-text {
  margin: .4rem 0 1.2rem;
  font-size: .875rem;
  line-height: 1.55;
  color: rgba(250, 247, 240, .84);
}

.dropdown__aside-text strong {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--gold-300);
}

/* Menu toggle (mobile) ---------------------------------------------------- */
.menu-toggle {
  display: none;
  align-items: center;
  gap: .8rem;
  height: 44px;
  padding: 0 .25rem;
  color: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.menu-toggle__bars {
  position: relative;
  width: 28px;
  height: 11px;
}

.menu-toggle__bars span {
  position: absolute;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: width .4s var(--ease-out);
}

.menu-toggle__bars span:first-child {
  top: 0;
  width: 100%;
}

.menu-toggle__bars span:last-child {
  bottom: 0;
  width: 64%;
}

.menu-toggle:hover .menu-toggle__bars span:last-child {
  width: 100%;
}

/* Header responsive ------------------------------------------------------- */
@media (max-width: 1439.98px) and (min-width: 1080px) {
  .site-header__inner { gap: 1.25rem; }
  .nav__link { padding: 0 .7rem; font-size: .9rem; }
  .has-dropdown > .nav__link { padding-right: .25rem; }
  .nav__link::after { left: .7rem; right: .7rem; }
  .has-dropdown > .nav__link::after { right: .25rem; }
  .nav__toggle { margin-right: .35rem; }
}

@media (max-width: 1279.98px) and (min-width: 1080px) {
  .site-header__inner { padding-inline: 24px; gap: 1rem; }
  .site-header .brand__name { font-size: 1.05rem; }
  .site-header .brand__badge { --badge: 54px; }
  .site-header.is-scrolled .brand__badge { --badge: 48px; }
  .nav__item--home { display: none; }
  .nav__link { padding: 0 .55rem; font-size: .875rem; }
  .has-dropdown > .nav__link { padding-right: .15rem; }
  .nav__link::after { left: .55rem; right: .55rem; }
  .has-dropdown > .nav__link::after { right: .15rem; }
  .nav__toggle { margin-right: .25rem; }
  .site-header__cta i { display: none; }
}

@media (max-width: 1079.98px) {
  .nav { display: none; }
  /* The nav is hidden, so the actions (CTA + Menu) take over its auto margin and sit at the right edge. */
  .nav + .site-header__actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .site-header__bar { border-bottom-color: rgba(255, 255, 255, .1); }
  .site-header .brand__badge { --badge: 54px; }
  .site-header.is-scrolled .brand__badge { --badge: 48px; }
}

/* Phones keep a compact gold "Donate" in the bar (the charity ask stays one tap away);
   "Menu" becomes an icon button to make room. Below 360px the mobile menu carries it. */
@media (max-width: 639.98px) {
  .site-header .site-header__cta {
    min-height: 38px;
    padding: .55rem .8rem;
    font-size: .6875rem;
    letter-spacing: .12em;
  }
  .site-header__cta i,
  .site-header__cta-more { display: none; }
}

@media (max-width: 359.98px) {
  .site-header .site-header__cta { display: none; }
}

/* 640-767px (the wider page gutter starts at 640): the one-line wordmark, "Donate Now" with its
   arrow and "Menu" overran the right edge, cutting off the menu bars. Keep "Donate" only and
   drop the small tagline until 768px. */
@media (min-width: 640px) and (max-width: 767.98px) {
  .site-header__cta i,
  .site-header__cta-more { display: none; }
  .site-header .brand__tag { display: none; }
  .site-header .brand__name { font-size: 1.05rem; }
}

/* Phones: the crest, a two-line wordmark and the Menu button share the row inside the
   20px gutters. Below 390px "Menu" / "Close" become 44px icon buttons (the words stay
   available to screen readers). */
@media (max-width: 559.98px) {
  .site-header__inner { gap: .85rem; }
  .site-header .brand { gap: .6rem; }
  .site-header .brand__badge { --badge: 46px; }
  .site-header.is-scrolled .brand__badge { --badge: 42px; }
  .site-header .brand__name {
    max-width: 11.5em;
    font-size: 1rem;
    line-height: 1.12;
    white-space: normal;
    text-wrap: balance;
  }
  .site-header .brand__tag { display: none; }
  .menu-toggle { gap: .6rem; padding-inline: .15rem; }
}

@media (max-width: 479.98px) {
  /* two lines: "Agomeda God Is" / "Good Academy" (a wrapped line box keeps its max-width) */
  .site-header .brand__name { max-width: 7.9em; }
  .site-header__actions { gap: .4rem; }
  .menu-toggle {
    min-width: 44px;
    justify-content: center;
    padding-inline: 0;
  }
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 389.98px) {
  .site-header__inner { gap: .6rem; }
  .site-header .brand__name { font-size: .94rem; }
  .menu-toggle,
  .mobile-nav__close {
    min-width: 44px;
    justify-content: center;
    padding-inline: 0;
  }
  .menu-toggle__label,
  .mobile-nav__close > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .mobile-nav__top { gap: .5rem; }
}


/* ==========================================================================
   08  Mobile navigation overlay
   ========================================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(106, 69, 137, .45) 0%, rgba(43, 25, 56, 0) 60%),
    var(--purple-950);
  color: var(--c-text);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .75s var(--ease-in-out), visibility 0s linear .75s;
}

.mobile-nav.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .75s var(--ease-in-out), visibility 0s;
}

.mobile-nav__top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  background: var(--purple-950);
  border-bottom: 1px solid var(--line-light);
}

.mobile-nav__top .brand__badge {
  --badge: 46px;
}

.mobile-nav__top .brand__name {
  max-width: 11.5em;
  font-size: 1rem;
  line-height: 1.12;
  white-space: normal;
  text-wrap: balance;
}

.mobile-nav__top .brand__tag {
  display: none;
}

.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  height: 44px;
  padding: 0 .25rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mobile-nav__close i {
  font-size: 1.15rem;
  color: var(--gold-300);
}

.mobile-nav__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 720px;
  padding: 1.25rem var(--gutter) 2.5rem;
}

/* the prominent gift button at the top of the menu */
.mobile-nav__donate {
  display: grid;
  gap: .6rem;
}

.mobile-nav__donate .btn {
  width: 100%;
  min-height: 3.5rem;
  font-size: .8125rem;
}

.mobile-nav__donate p {
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(250, 247, 240, .72);
  text-align: center;
}

.mobile-nav__item {
  border-bottom: 1px solid var(--line-light);
}

.mobile-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .8rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
  transition: color .3s ease;
}

.mobile-nav__link:hover {
  color: var(--gold-300);
}

.mobile-nav__link[aria-current="page"] span:last-child {
  color: var(--gold-300);
}

.mobile-nav__num {
  min-width: 1.4rem;
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold-500);
  transform: translateY(-.55em);
}

.mobile-nav__expand {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color .3s ease, background-color .3s ease;
}

.mobile-nav__expand:hover,
.mobile-nav__expand[aria-expanded="true"] {
  border-color: var(--gold-500);
}

.mobile-nav__plus::before,
.mobile-nav__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -.75px 0 0 -7px;
  background: var(--gold-300);
  transition: transform .45s var(--ease-out);
}

.mobile-nav__plus::after {
  transform: rotate(90deg);
}

.mobile-nav__expand[aria-expanded="true"] .mobile-nav__plus::after {
  transform: rotate(0deg);
}

.mobile-nav__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}

.mobile-nav__sub.is-open {
  grid-template-rows: 1fr;
}

.mobile-nav__sublist {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  padding-left: 2.4rem;
  transition: visibility 0s linear .5s;
}

.mobile-nav__sub.is-open .mobile-nav__sublist {
  visibility: visible;
  transition: visibility 0s;
}

.mobile-nav__sublist li:last-child {
  padding-bottom: 1.1rem;
}

.mobile-nav__sublist a {
  display: block;
  padding: .5rem 0;
  font-size: 1rem;
  color: rgba(250, 247, 240, .8);
  transition: color .25s ease;
}

.mobile-nav__sublist a:hover {
  color: var(--gold-300);
}

.mobile-nav__footer {
  display: grid;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: .9375rem;
  color: rgba(250, 247, 240, .78);
}

.mobile-nav__contact {
  display: grid;
  gap: .25rem;
}

.mobile-nav__contact li,
.mobile-nav__contact a {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.mobile-nav__contact a {
  min-height: 44px;
  color: #fff;
}

.mobile-nav__contact i {
  width: 1.1rem;
  text-align: center;
  color: var(--gold-500);
  font-size: .95em;
}

.mobile-nav__contact .fa-whatsapp {
  font-size: 1.15em;
}

.mobile-nav__contact small {
  font-size: .75rem;
  color: rgba(250, 247, 240, .66);
}

.mobile-nav__contact a:hover {
  color: var(--gold-300);
}

.mobile-nav__place {
  min-height: 44px;
  color: rgba(250, 247, 240, .72);
}

/* info@<wbr>godblessingfoundation.org: may break after the @ on the narrowest phones */
.mobile-nav__email {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* staggered entrance */
.mobile-nav [data-menu-stagger] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s ease, transform .8s var(--ease-out);
}

.mobile-nav.is-open [data-menu-stagger] {
  opacity: 1;
  transform: none;
  transition-delay: calc(.28s + var(--i, 0) * .065s);
}

body.menu-open {
  overflow: hidden;
}


/* ==========================================================================
   09  Page hero (v2): deep purple band + gingham accent + a framed real photo
   on the right (desktop), stacked on phones. Small phone photos are never
   stretched full-bleed.
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--utility-h) + var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(72px, 9vw, 128px);
  background:
    radial-gradient(80% 90% at 92% 8%, rgba(106, 69, 137, .6) 0%, rgba(43, 25, 56, 0) 62%),
    radial-gradient(70% 90% at 0% 100%, rgba(31, 18, 41, .85) 0%, rgba(31, 18, 41, 0) 70%),
    var(--purple-900);
  color: var(--c-text);
}

/* uniform-check band along the bottom edge */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 10px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(227, 218, 164, .9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 49, 110, .55) 50%, transparent 50%),
    linear-gradient(0deg, rgba(83, 49, 110, .55) 50%, transparent 50%);
  background-size: 40px 10px, 10px 10px, 10px 10px;
  pointer-events: none;
}

/* optional full-bleed photo behind the band (v1 markup: .page-hero__media). Keep it for large,
   sharp photos only; the purple veil hides softness. */
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.page-hero__media img,
.page-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero:has(> .page-hero__media)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 18, 41, .72) 0%, rgba(43, 25, 56, .5) 40%, rgba(31, 18, 41, .92) 100%),
    linear-gradient(90deg, rgba(31, 18, 41, .8) 0%, rgba(31, 18, 41, .3) 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* hero-particles.js canvas: the light motes stay around the photo, never behind the title or
   the lede (they read as dust on the type). Phones: the lower part of the hero only. */
.page-hero .hero-particles__canvas {
  -webkit-mask-image: linear-gradient(180deg, transparent 0 55%, #000 85%);
  mask-image: linear-gradient(180deg, transparent 0 55%, #000 85%);
}

@media (min-width: 960px) {
  .page-hero .hero-particles__canvas {
    -webkit-mask-image: linear-gradient(90deg, transparent 0 46%, #000 72%);
    mask-image: linear-gradient(90deg, transparent 0 46%, #000 72%);
  }
}

.page-hero__inner:has(> .page-hero__figure) {
  display: grid;
  gap: clamp(2.75rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .page-hero__inner:has(> .page-hero__figure) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.page-hero__title {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-page-title);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: #fff;
}

.page-hero__lede {
  max-width: 54ch;
  margin-top: 1.5rem;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: rgba(250, 247, 240, .86);
}

.page-hero .btn-group {
  margin-top: 2.2rem;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: .8125rem;
  color: rgba(250, 247, 240, .76);
}

.page-hero__meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
}

/* the framed real photo */
.page-hero__figure {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 0 0;
}

@media (min-width: 960px) {
  .page-hero__figure {
    justify-self: end;
    margin: 0;
  }
  /* a small gingham swatch tucked behind the photo, like a fold of the uniform
     (::after, because .photo-frame uses ::before for its offset hairline) */
  .page-hero__figure::after {
    content: "";
    position: absolute;
    top: -26px;
    left: -26px;
    z-index: -1;
    width: 44%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, .06);
    background-image:
      linear-gradient(90deg, rgba(227, 218, 164, .28) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .13) 50%, transparent 50%),
      linear-gradient(0deg, rgba(255, 255, 255, .13) 50%, transparent 50%);
    background-size: 56px 14px, 14px 14px, 14px 14px;
  }
}

/* phones and tablets: a wider, shorter crop so the text stays close to the fold */
@media (max-width: 959.98px) {
  .page-hero__figure {
    max-width: 560px;
  }
  .page-hero__figure .photo-frame__media {
    aspect-ratio: 4 / 3;
  }
}

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, .7);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.breadcrumb li + li::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-500);
}

.breadcrumb a {
  display: inline-block;
  padding-block: .75rem;
  margin-block: -.75rem;
  transition: color .25s ease;
}

.breadcrumb a:hover {
  color: var(--gold-300);
}

.breadcrumb [aria-current="page"] {
  color: #fff;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 8vw, 112px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, .78);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.scroll-cue span:first-child {
  writing-mode: vertical-rl;
}

.scroll-cue:hover {
  color: var(--gold-300);
}

.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 72px;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-300);
  transform: translateY(-100%);
  animation: scroll-cue 2.4s var(--ease-in-out) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 767.98px) {
  .scroll-cue { display: none; }
}

/* a page hero with a photo frame has no room for the cue */
.page-hero:has(.page-hero__figure) .scroll-cue {
  display: none;
}


/* ==========================================================================
   10  Hero slider (home)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(640px, 100vh);
  min-height: max(640px, 100svh);
  overflow: hidden;
  background: var(--navy-950);
  color: var(--c-text);
}

.hero > .swiper,
.hero__swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero .swiper-slide {
  height: auto;
}

.hero-slide {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 100%;
  padding-top: calc(var(--utility-h) + var(--header-h) + 3rem);
  padding-bottom: clamp(140px, 17vh, 190px);
  overflow: hidden;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.6s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(31, 18, 41, .62) 0%, rgba(31, 18, 41, .12) 32%, rgba(31, 18, 41, .4) 64%, rgba(31, 18, 41, .9) 100%),
    linear-gradient(90deg, rgba(31, 18, 41, .7) 0%, rgba(31, 18, 41, .2) 58%, rgba(31, 18, 41, 0) 85%);
  pointer-events: none;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-slide__title {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: #fff;
}

.hero-slide__lede {
  max-width: 50ch;
  margin-top: 1.5rem;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: rgba(250, 247, 240, .86);
}

.hero-slide .btn-group {
  margin-top: 2.25rem;
}

/* Ken Burns on the active slide */
.hero.is-ready .swiper-slide-active .hero-slide__media img {
  transform: scale(1.12);
  transition: transform 9s linear;
}

/* Slide content choreography (only once Swiper is running) */
.hero.is-intro .swiper-slide-active .hero-slide__content > * {
  opacity: 0 !important;
  transform: translateY(26px) !important;
  transition: none !important;
}

.hero.is-ready .hero-slide__content > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .9s var(--ease-out);
}

.hero.is-ready .swiper-slide-active .hero-slide__content > * {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease, transform 1.2s var(--ease-out);
}

.hero.is-ready .swiper-slide-active .hero-slide__content > :nth-child(1) { transition-delay: .35s; }
.hero.is-ready .swiper-slide-active .hero-slide__content > :nth-child(2) { transition-delay: .48s; }
.hero.is-ready .swiper-slide-active .hero-slide__content > :nth-child(3) { transition-delay: .61s; }
.hero.is-ready .swiper-slide-active .hero-slide__content > :nth-child(4) { transition-delay: .74s; }

.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(28px, 5vh, 52px);
  z-index: 5;
}

.hero__controls-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}

.hero__controls .slider-nav {
  margin-left: auto;
}

/* narrow phones: fraction, progress, pause and two arrows must share 320px without squeezing */
@media (max-width: 399.98px) {
  .hero__controls-inner { gap: .75rem; }
  .hero__controls .slider-btn { width: 44px; height: 44px; }
}


/* ==========================================================================
   11  Slider controls (shared by every data-slider)
   ========================================================================== */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.slider-nav {
  display: flex;
  gap: .5rem;
}

.slider-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  color: var(--c-heading);
  font-size: .95rem;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, opacity .3s ease;
}

.slider-btn:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.slider-btn.swiper-button-disabled,
.slider-btn:disabled {
  opacity: .35;
  pointer-events: none;
}

.slider-btn.swiper-button-lock {
  display: none;
}

.slider-btn--sm {
  width: 44px;
  height: 44px;
  font-size: .85rem;
}

.slider-fraction {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--font-serif);
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums lining-nums;
}

.slider-fraction [data-slider-current] {
  font-size: 1.5rem;
  color: var(--c-heading);
}

.slider-progress {
  position: relative;
  flex: none;
  width: clamp(80px, 14vw, 200px);
  height: 1px;
  overflow: hidden;
  background: var(--c-line-strong);
}

.slider-progress > span {
  position: absolute;
  inset: 0;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left center;
}

.slider-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: auto !important;
  inset: auto !important;
  transform: none !important;
}

.slider-pagination .swiper-pagination-bullet {
  /* a 2px line drawn inside a 28px-tall hit area, so the bullets can be tapped */
  width: 26px;
  height: 28px;
  margin: 0 !important;
  border-radius: 0;
  background: linear-gradient(var(--c-line-strong), var(--c-line-strong)) center / 100% 2px no-repeat;
  opacity: 1;
  transition: width .5s var(--ease-out);
}

.slider-pagination .swiper-pagination-bullet-active {
  width: 46px;
  background-image: linear-gradient(var(--gold-500), var(--gold-500));
}

.slider-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-heading);
  font-size: .7rem;
  transition: border-color .3s ease, color .3s ease;
}

.slider-toggle:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
}

.slider-scrollbar {
  position: relative !important;
  inset: auto !important;
  flex: 1;
  height: 1px !important;
  width: auto !important;
  background: var(--c-line-strong) !important;
  border-radius: 0 !important;
}

.slider-scrollbar .swiper-scrollbar-drag {
  top: -1px;
  height: 3px;
  border-radius: 0;
  background: var(--gold-500);
  cursor: grab;
}

/* Generic slider track rules */
[data-slider] .swiper {
  overflow: visible;
}

[data-slider="hero"] .swiper,
[data-slider="testimonials"] .swiper {
  overflow: hidden;
}

.slider-clip {
  overflow: hidden;
}

[data-slider="cards"] .swiper-slide {
  height: auto;
}

[data-slider="gallery"] .swiper-slide:not(.gallery-slide) {
  width: auto;
}

/* gallery slides share one row height; width follows each slide's ratio */
.gallery-slide {
  --gs-h: clamp(260px, 30vw, 440px);
  width: calc(var(--gs-h) * .8);
  margin: 0;
}

.gallery-slide--wide {
  width: calc(var(--gs-h) * 1.3333);
}

.gallery-slide--square {
  width: var(--gs-h);
}

.gallery-slide__media {
  display: block;
  height: var(--gs-h);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--navy-100);
}

.gallery-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.gallery-slide:hover .gallery-slide__media img {
  transform: scale(1.04);
}

.gallery-slide figcaption {
  margin-top: 1rem;
}

/* Before Swiper initialises, sliders degrade to a horizontal scroller */
[data-slider="cards"]:not(.is-ready) .swiper-wrapper,
[data-slider="gallery"]:not(.is-ready) .swiper-wrapper {
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

[data-slider="cards"]:not(.is-ready) .swiper-slide {
  flex: 0 0 min(85%, 380px);
  scroll-snap-align: start;
}

[data-slider="gallery"]:not(.is-ready) .swiper-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* visibility (not display) so Swiper still counts every slide when it initialises */
[data-slider="testimonials"]:not(.is-ready) .swiper-slide:not(:first-child) {
  visibility: hidden;
}

/* Hero before / without Swiper (CDN down): only the first slide shows and the controls, which
   would do nothing, stay hidden. visibility (not display) so Swiper still measures every slide. */
.hero[data-slider]:not(.is-ready) .swiper-slide:not(:first-child),
.hero[data-slider]:not(.is-ready) .hero__controls {
  visibility: hidden;
}


/* ==========================================================================
   12  Media: frames, captions, media stack
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  background: var(--navy-100);
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

/* Frame with offset gold hairline */
.frame {
  --frame-offset: clamp(12px, 1.5vw, 22px);
  --frame-ratio: 4 / 3;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 var(--frame-offset) var(--frame-offset) 0;
}

.frame::before {
  content: "";
  grid-area: 1 / 1;
  z-index: -1;
  border: 1px solid var(--c-rule);
  transform: translate(var(--frame-offset), var(--frame-offset));
  pointer-events: none;
}

.frame__media {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--frame-ratio);
  background: var(--navy-100);
}

.frame__media img,
.frame__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame > figcaption,
.frame__caption {
  grid-area: 2 / 1;
  margin-top: calc(var(--frame-offset) + .95rem);
}

.frame--tall { --frame-ratio: 4 / 5; }
.frame--portrait { --frame-ratio: 3 / 4; }
.frame--square { --frame-ratio: 1 / 1; }
.frame--wide { --frame-ratio: 16 / 10; }
.frame--cinema { --frame-ratio: 21 / 9; }

.frame--left {
  margin: 0 0 var(--frame-offset) var(--frame-offset);
}

.frame--left::before {
  transform: translate(calc(var(--frame-offset) * -1), var(--frame-offset));
}

.frame--top {
  margin: var(--frame-offset) var(--frame-offset) 0 0;
}

.frame--top::before {
  transform: translate(var(--frame-offset), calc(var(--frame-offset) * -1));
}

.frame--plain::before {
  display: none;
}

.frame--plain {
  margin: 0;
}

/* small-caps style caption */
.caption {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.caption::before {
  content: "";
  flex: none;
  width: 20px;
  height: 1px;
  background: var(--c-rule);
  transform: translateY(-.3em);
}

/* Two overlapping images */
.media-stack {
  position: relative;
  padding-bottom: 16%;
  padding-right: 8%;
}

.media-stack__primary {
  position: relative;
}

.media-stack__secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  border: clamp(5px, .8vw, 10px) solid var(--c-bg);
  box-shadow: var(--shadow-lg);
  background: var(--c-bg);
}

.media-stack__secondary .media {
  aspect-ratio: 4 / 5;
}

.media-stack__badge {
  position: absolute;
  left: -1rem;
  bottom: 22%;
  z-index: 2;
  display: grid;
  gap: .25rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.media-stack__badge strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-300);
}

.media-stack__badge span {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}


/* ==========================================================================
   13  Cards
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 181, 64, .55);
  box-shadow: var(--shadow-md);
}

.card__icon {
  margin-bottom: 1.4rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-accent-icon);
}

.card__eyebrow {
  margin-bottom: .75rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.card__title {
  margin: 0 0 .75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.18rem + .5vw, 1.625rem);
  line-height: 1.25;
  color: var(--c-heading);
}

.card__text {
  font-size: .96875rem;
  line-height: 1.65;
  color: var(--c-muted);
}

.card__footer {
  margin-top: auto;
  padding-top: 1.6rem;
}

/* stretched link: the whole card is clickable */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link:focus-visible {
  outline: none;
}

.card:has(.card__link:focus-visible) {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}

/* Image card */
.card--image {
  padding: 0;
  overflow: hidden;
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--navy-100);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-out);
}

.card--image:hover .card__media img {
  transform: scale(1.06);
}

.card__media .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 2rem);
}

/* Feature card: full-bleed image, text over a navy veil */
.card--feature {
  justify-content: flex-end;
  min-height: clamp(400px, 42vw, 540px);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--navy-950);
  --c-heading: #fff;
  --c-text: rgba(250, 247, 240, .84);
  --c-muted: rgba(250, 247, 240, .78);
  --c-accent: var(--gold-300);
  --c-accent-icon: var(--gold-300);
  --c-focus: var(--gold-300);
}

.card--feature .card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.card--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 18, 41, 0) 30%, rgba(31, 18, 41, .55) 62%, rgba(31, 18, 41, .94) 100%);
  transition: opacity .6s ease;
  pointer-events: none;
}

.card--feature:hover .card__media img {
  transform: scale(1.06);
}

.card--feature .card__body {
  position: relative;
  z-index: 2;
  flex: none;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
}

.card--feature .card__body::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-bottom: 1.25rem;
  background: var(--gold-500);
  transition: width .7s var(--ease-out);
}

.card--feature:hover .card__body::before {
  width: 88px;
}

.card--feature .card__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  line-height: 1.1;
}

@media (hover: hover) and (min-width: 960px) {
  .card--feature .card__reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .6s var(--ease-out), opacity .5s ease;
  }
  .card--feature .card__reveal > * {
    min-height: 0;
    overflow: hidden;
  }
  .card--feature:hover .card__reveal,
  .card--feature:focus-within .card__reveal {
    grid-template-rows: 1fr;
    opacity: 1;
  }
}

.card--dark {
  --c-surface: var(--navy-800);
  --c-heading: #fff;
  --c-text: rgba(250, 247, 240, .82);
  --c-muted: rgba(250, 247, 240, .7);
  --c-line: var(--line-light);
  --c-accent: var(--gold-300);
  --c-accent-icon: var(--gold-300);
}

.card--plain {
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
}

.card--plain:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.card--ruled {
  padding: 2rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--c-line-strong);
  border-radius: 0;
}

.card--ruled:hover {
  transform: none;
  box-shadow: none;
  border-top-color: var(--gold-500);
}

.card__num {
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--c-accent);
}


/* ==========================================================================
   14  Stats band
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(var(--stats-cols, 4), minmax(0, 1fr)); }
  .stats--3 { --stats-cols: 3; }
  .stats--5 { --stats-cols: 5; }
}

/* Three-up bands never leave a lone stat in a half-empty row: three columns from 640px
   (the higher-specificity reset cancels older per-page "span the last stat" workarounds),
   and below 640px a third and final stat spans the full row. */
@media (min-width: 640px) and (max-width: 899.98px) {
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.stats--3 > .stat:nth-child(3):last-child { grid-column: auto; }
}

@media (max-width: 639.98px) {
  .stats--3 > .stat:nth-child(3):last-child { grid-column: 1 / -1; }
}

.stat {
  position: relative;
  margin: 0 0 -1px -1px;
  padding: clamp(1.75rem, 3.2vw, 3rem) clamp(1rem, 2.4vw, 2.25rem);
  border-left: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.stat__num {
  display: flex;
  align-items: baseline;
  gap: .08em;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.8rem + 3.4vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-heading);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.stat__unit {
  font-family: var(--font-serif);
  font-size: .5em;
  font-style: italic;
  color: var(--c-accent);  /* half the numeral size: under 24px on phones, so the AA text gold */
}

.stat__label {
  margin-top: 1rem;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-heading);
}

.stat__note {
  margin-top: .45rem;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--c-muted);
}

.stats--plain {
  border: 0;
}

.stats--plain .stat {
  border-bottom: 0;
}


/* ==========================================================================
   15  Quotes & testimonials
   ========================================================================== */
.pull-quote {
  position: relative;
  max-width: 920px;
  margin: 0;
  padding-top: clamp(3.25rem, 5vw, 4.25rem);
}

.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: -.08em;
  left: -.04em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 6vw, 9rem);
  line-height: 1;
  color: var(--gold-500);
}

.pull-quote blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  font-style: italic;
  line-height: 1.36;
  letter-spacing: -.01em;
  color: var(--c-heading);
}

.pull-quote figcaption,
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pull-quote__avatar,
.testimonial__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--c-rule);
  padding: 3px;
  background: var(--c-bg);
}

.pull-quote__name,
.testimonial__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: normal;
  color: var(--c-heading);
}

.pull-quote__role,
.testimonial__role {
  display: block;
  margin-top: .2rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.pull-quote--center {
  margin-inline: auto;
  text-align: center;
}

.pull-quote--center::before {
  left: 50%;
  transform: translateX(-50%);
}

.pull-quote--center figcaption {
  justify-content: center;
}

/* Inline quote with a gold rule */
.quote {
  margin: 0;
  padding: .25rem 0 .25rem 1.6rem;
  border-left: 2px solid var(--gold-500);
}

.quote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--c-heading);
}

.quote cite,
.quote footer {
  display: block;
  margin-top: .9rem;
  font-size: .6875rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Testimonial slides */
.testimonial {
  margin: 0;
}

.testimonial__mark {
  display: block;
  height: .6em;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold-500);
}

.testimonial__quote p {
  max-width: 34em;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem);
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--c-heading);
}

.testimonial--media {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .testimonial--media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}


/* ==========================================================================
   16  News cards
   ========================================================================== */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}

.news-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--navy-100);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-out);
}

.news-card:hover .news-card__media img {
  transform: scale(1.05);
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-bottom: .85rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.news-card__meta .tag {
  padding: .3rem .6rem;
}

.news-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  line-height: 1.3;
  color: var(--c-heading);
}

.news-card__title a {
  background-image: linear-gradient(var(--gold-500), var(--gold-500));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .7s var(--ease-out);
}

.news-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-card:hover .news-card__title a {
  background-size: 100% 1px;
}

.news-card__excerpt {
  margin-top: .75rem;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--c-muted);
}

.news-card--featured {
  gap: clamp(1.5rem, 3vw, 3rem);
}

@media (min-width: 900px) {
  .news-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
  .news-card--featured .news-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
    line-height: 1.12;
  }
}


/* ==========================================================================
   17  Event list
   ========================================================================== */
.event-list {
  border-top: 1px solid var(--c-line);
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--c-line);
}

.event__date {
  display: grid;
  justify-items: center;
  width: 84px;
  padding: .8rem 0 .7rem;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  line-height: 1;
  text-align: center;
  transition: border-color .35s ease, background-color .35s ease;
}

.event__month {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.event__day {
  margin: .35rem 0 .3rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--c-heading);
}

.event__dow {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.event__title {
  margin: 0 0 .4rem;
  font-weight: 400;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem);
  line-height: 1.3;
  color: var(--c-heading);
  transition: color .3s ease;
}

.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.4rem;
  font-size: .875rem;
  color: var(--c-muted);
}

.event__meta span {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
}

.event__meta i {
  color: var(--c-accent-icon);
  font-size: .85em;
}

.event__link {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  color: var(--c-heading);
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}

.event__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.event:hover .event__link {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.event:hover .event__date {
  border-color: var(--gold-500);
}

.event:hover .event__title {
  color: var(--c-accent);
}

@media (max-width: 559.98px) {
  .event { grid-template-columns: auto minmax(0, 1fr); }
  .event__link { display: none; }
  .event__date { width: 70px; }
  .event__day { font-size: 2rem; }
}


/* ==========================================================================
   18  Timeline
   ========================================================================== */
.timeline {
  --tl-x: 8.5rem;
  position: relative;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: .6rem;
  bottom: 0;
  left: var(--tl-x);
  width: 1px;
  background: var(--c-line-strong);
}

/* scroll-drawn gold line: main.js sets --tl-progress (0..1) */
.timeline::after {
  z-index: 1;
  background: var(--gold-500);
  transform: scaleY(var(--tl-progress, 0));
  transform-origin: top center;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-x) minmax(0, 1fr);
  padding-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: .55rem;
  left: var(--tl-x);
  z-index: 2;
  width: 11px;
  height: 11px;
  background: var(--c-bg);
  border: 1px solid var(--gold-500);
  transform: translateX(-50%) rotate(45deg);
  transition: background-color .5s ease, transform .5s var(--ease-out);
}

.timeline__item.is-active::before {
  background: var(--gold-500);
  transform: translateX(-50%) rotate(45deg) scale(1.15);
}

.timeline__year {
  padding-right: 2.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1;
  color: var(--c-heading);
  text-align: right;
}

.timeline__content {
  padding-left: clamp(2rem, 4vw, 3.5rem);
  max-width: 64ch;
}

.timeline__title {
  margin: 0 0 .6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  line-height: 1.3;
  color: var(--c-heading);
}

.timeline__content p {
  color: var(--c-muted);
}

.timeline__media {
  margin-top: 1.4rem;
  max-width: 440px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.timeline__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 699.98px) {
  .timeline { --tl-x: 5px; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); }
  .timeline__year {
    padding: 0 0 .75rem 2rem;
    text-align: left;
  }
  .timeline__content { padding-left: 2rem; }
}


/* ==========================================================================
   19  Tabs
   ========================================================================== */
.tabs__list {
  position: relative;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  overflow-x: auto;
  border-bottom: 1px solid var(--c-line);
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

.tabs__tab {
  position: relative;
  flex: none;
  padding: 1rem 0 1.15rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-muted);
  transition: color .3s ease;
}

.tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease-out);
}

.tabs__tab:hover {
  color: var(--c-heading);
}

.tabs__tab[aria-selected="true"] {
  color: var(--c-heading);
}

.tabs__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tabs__tab:focus-visible {
  outline-offset: -2px;
}

.tabs__panel:focus-visible {
  outline-offset: 8px;
}

.tabs.is-enhanced .tabs__panel:not([hidden]) {
  animation: tab-in .7s var(--ease-out);
}

@keyframes tab-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}


/* ==========================================================================
   20  Accordion
   ========================================================================== */
.accordion {
  border-top: 1px solid var(--c-line);
}

.accordion__item {
  border-bottom: 1px solid var(--c-line);
}

.accordion__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.03rem + .4vw, 1.375rem);
  line-height: 1.35;
  color: var(--c-heading);
  text-align: left;
  transition: color .3s ease;
}

.accordion__trigger:hover {
  color: var(--c-accent);
}

.accordion__icon {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  transition: background-color .4s ease, border-color .4s ease;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -.75px 0 0 -6px;
  background: var(--c-heading);
  transition: transform .45s var(--ease-out), background-color .3s ease;
}

.accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  background: var(--gold-300);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(0deg);
}

.on-dark .accordion__trigger[aria-expanded="true"] .accordion__icon,
.section--navy .accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.on-dark .accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.on-dark .accordion__trigger[aria-expanded="true"] .accordion__icon::after,
.section--navy .accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.section--navy .accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  background: var(--navy-950);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 1fr;
}

.accordion__body {
  min-height: 0;
  overflow: hidden;
  padding-right: clamp(0rem, 5vw, 4rem);
  color: var(--c-muted);
}

.accordion__body > :first-child {
  margin-top: 0;
}

.accordion__body > * + * {
  margin-top: 1em;
}

.accordion__body > :last-child {
  margin-bottom: 1.75rem;
}

.accordion.is-enhanced .accordion__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .55s var(--ease-out), visibility 0s linear .55s;
}

.accordion.is-enhanced .accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .55s var(--ease-out), visibility 0s;
}


/* ==========================================================================
   21  Forms
   ========================================================================== */
.form {
  display: grid;
  gap: 1.5rem;
}

.form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* phones: one track that may shrink below its content */
  gap: 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full,
  .form__grid > .checkbox,
  .form__grid > .form__actions { grid-column: 1 / -1; }
}

.form__legend {
  margin-bottom: .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.form__note {
  font-size: .8125rem;
  color: var(--c-muted);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: .5rem;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}

.field__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-heading);
}

.field__label .req,
.req {
  color: var(--brick);
  margin-left: .15em;
}

.field__input,
.select {
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.1rem;
  background-color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.field__input::placeholder {
  color: var(--slate);
}

.field__input:hover,
.select:hover {
  border-color: rgba(43, 25, 56, .42);
}

.field__input:focus,
.field__input:focus-visible,
.select:focus,
.select:focus-visible {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(224, 181, 64, .35);
}

textarea.field__input {
  min-height: 9.5rem;
  resize: vertical;
}

select.field__input,
.select {
  padding-right: 2.9rem;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.field__hint {
  font-size: .8125rem;
  color: var(--c-muted);
}

.field__error {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brick);
}

.field__error:empty {
  display: none;
}

.field__error::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .8em;
}

.field.is-invalid .field__input,
.field.is-invalid .select {
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(155, 59, 42, .12);
}

.field.is-invalid .field__label {
  color: var(--brick);
}

/* Floating labels: input needs placeholder=" " and the label must come AFTER the input */
.field--floating {
  gap: 0;
}

.field--floating .field__input {
  padding: 1.6rem 1.1rem .55rem;
}

.field--floating .field__label {
  position: absolute;
  top: 1.08rem;
  left: 1.15rem;
  right: 1.15rem;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--slate);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease-out), color .3s ease;
}

.field--floating .field__input:focus + .field__label,
.field--floating .field__input:not(:placeholder-shown) + .field__label,
.field--floating select.field__input + .field__label,
.field--floating .field__input:-webkit-autofill + .field__label {
  transform: translateY(-.62rem) scale(.74);
  color: var(--navy-700);
  font-weight: 600;
}

.field--floating textarea.field__input {
  padding-top: 1.85rem;
}

.field--floating .field__error,
.field--floating .field__hint {
  margin-top: .5rem;
}

.field.is-invalid.field--floating .field__label {
  color: var(--brick);
}

/* dark surfaces */
.on-dark .field__input,
.section--navy .field__input {
  background-color: rgba(255, 255, 255, .04);
  border-color: rgba(250, 247, 240, .28);
  color: #fff;
}

.on-dark .field--floating .field__label,
.section--navy .field--floating .field__label {
  color: rgba(250, 247, 240, .7);
}

.on-dark .field--floating .field__input:focus + .field__label,
.on-dark .field--floating .field__input:not(:placeholder-shown) + .field__label,
.section--navy .field--floating .field__input:focus + .field__label,
.section--navy .field--floating .field__input:not(:placeholder-shown) + .field__label {
  color: var(--gold-300);
}

.on-dark .field__error,
.section--navy .field__error {
  color: var(--brick-light);
}

/* Checkbox & radio */
.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--c-text);
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: .1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: background-color .25s ease, border-color .25s ease;
}

.checkbox__box::after {
  content: "";
  width: 10px;
  height: 5.5px;
  margin-top: -2px;
  border-left: 2px solid var(--navy-950);
  border-bottom: 2px solid var(--navy-950);
  transform: rotate(-45deg) scale(0);
  transition: transform .25s var(--ease-out);
}

.checkbox input:checked + .checkbox__box {
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.checkbox input:checked + .checkbox__box::after {
  transform: rotate(-45deg) scale(1);
}

.checkbox input:focus-visible + .checkbox__box {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

.checkbox--radio .checkbox__box {
  border-radius: 50%;
}

.checkbox--radio .checkbox__box::after {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy-950);
  transform: scale(0);
}

.checkbox--radio input:checked + .checkbox__box::after {
  transform: scale(1);
}

.field.is-invalid .checkbox__box {
  border-color: var(--brick);
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Success panel that replaces a submitted form */
.form-success {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  color: var(--ink);
  animation: tab-in .8s var(--ease-out);
}

.form-success:focus {
  outline: none;
}

.form-success__icon {
  margin-bottom: 1.25rem;
  font-size: 2rem;
  color: var(--success);
}

.form-success__title {
  margin-bottom: .75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  line-height: 1.2;
  color: var(--navy-900);
}

.form-success p {
  color: var(--slate);
  max-width: 56ch;
}

.form-success .btn-group {
  margin-top: 1.75rem;
}


/* ==========================================================================
   22  Badges & tags
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .7rem;
  font-size: .625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold-100);
  border: 1px solid rgba(224, 181, 64, .5);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge--navy {
  color: var(--gold-300);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.badge--gold {
  color: var(--navy-950);
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.badge--new {
  color: #fff;
  background: var(--brick);
  border-color: var(--brick);
}

.badge--outline {
  color: var(--c-heading);
  background: transparent;
  border-color: var(--c-line-strong);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}

a.tag:hover,
button.tag:hover {
  color: var(--c-heading);
  border-color: var(--gold-500);
}

.tag.is-active,
.tag[aria-pressed="true"] {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}


/* ==========================================================================
   23  Icon list
   ========================================================================== */
.icon-list {
  display: grid;
  gap: 1rem;
}

.icon-list li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  line-height: 1.6;
}

.icon-list i {
  margin-top: .38em;
  font-size: .95rem;
  line-height: 1;
  text-align: center;
  color: var(--c-accent-icon);
}

.icon-list strong {
  display: block;
  color: var(--c-heading);
}

.icon-list--lined {
  gap: 0;
}

.icon-list--lined li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--c-line);
}

.icon-list--lined li:first-child {
  border-top: 1px solid var(--c-line);
}

@media (min-width: 768px) {
  .icon-list--cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
  .icon-list--cols.icon-list--lined li:nth-child(2) {
    border-top: 1px solid var(--c-line);
  }
}


/* ==========================================================================
   24  Gallery & lightbox
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 22vw, 300px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1.2vw, 16px);
}

@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gallery__item {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--navy-100);
  cursor: zoom-in;
}

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--large { grid-column: span 2; grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-out);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 18, 41, 0) 45%, rgba(31, 18, 41, .72) 100%);
  opacity: 0;
  transition: opacity .5s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.05);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

.gallery__caption {
  position: absolute;
  left: 1rem;
  right: 3.5rem;
  bottom: .9rem;
  z-index: 1;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .6s var(--ease-out);
}

.gallery__zoom {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: .8rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .6s var(--ease-out);
}

.gallery__item:hover .gallery__caption,
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__caption,
.gallery__item:focus-visible .gallery__zoom {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .gallery__zoom { opacity: 1; transform: none; }
}

/* Lightbox (markup is built by main.js) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(64px, 9vh, 100px) clamp(16px, 8vw, 130px);
  background: rgba(31, 18, 41, .96);
  color: var(--c-text);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility 0s;
}

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 100%;
  margin: 0;
}

.lightbox__img {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 230px);
  max-height: calc(100svh - 230px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6);
  transition: opacity .35s ease, transform .6s var(--ease-out);
}

.lightbox.is-loading .lightbox__img {
  opacity: 0;
  transform: scale(.985);
}

.lightbox__caption {
  max-width: 62ch;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  text-align: center;
  color: rgba(250, 247, 240, .86);
}

.lightbox__count {
  position: absolute;
  top: 1.6rem;
  left: clamp(16px, 3vw, 32px);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: rgba(250, 247, 240, .7);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(250, 247, 240, .28);
  border-radius: var(--radius-sm);
  color: #fff;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.lightbox__close {
  top: 1rem;
  right: clamp(16px, 3vw, 32px);
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev { left: clamp(12px, 3vw, 36px); }
.lightbox__next { right: clamp(12px, 3vw, 36px); }

@media (max-width: 699.98px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}


/* ==========================================================================
   25  CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(110px, 13vw, 190px);
  background: var(--navy-950);
  color: var(--c-text);
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 18, 41, .93) 0%, rgba(31, 18, 41, .8) 42%, rgba(31, 18, 41, .42) 100%);
  pointer-events: none;
}

.cta-band__inner {
  max-width: 780px;
}

.cta-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
}

.cta-band__text {
  max-width: 54ch;
  margin-top: 1.5rem;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: rgba(250, 247, 240, .84);
}

.cta-band .btn-group {
  margin-top: 2.5rem;
}

.cta-band--center {
  text-align: center;
}

.cta-band--center::before {
  background: rgba(31, 18, 41, .78);
}

.cta-band--center .cta-band__inner,
.cta-band--center .cta-band__text {
  margin-inline: auto;
}

.cta-band--center .btn-group,
.cta-band--center .eyebrow {
  justify-content: center;
}


/* ==========================================================================
   26  Marquee
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.4rem, 2.6vw, 2.25rem);
  border-block: 1px solid var(--c-line);
  background-color: var(--c-bg);
  color: var(--c-heading);
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
}

.marquee.is-ready .marquee__track {
  animation: marquee var(--marquee-duration, 45s) linear infinite;
}

.marquee[data-marquee-direction="reverse"] .marquee__track {
  animation-direction: reverse;
}

.marquee.is-paused .marquee__track,
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(1.5rem, 3.2vw, 3.25rem);
  padding-right: clamp(1.5rem, 3.2vw, 3.25rem);
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.marquee__item em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .94em;
  color: var(--c-accent-em);
}

.marquee__sep {
  flex: none;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold-500);
  transform: rotate(45deg);
}

.marquee--sm .marquee__item {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.marquee--sm .marquee__sep {
  width: 7px;
  height: 7px;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}


/* ==========================================================================
   27  Dividers & ornaments
   ========================================================================== */
.divider {
  display: block;
  height: 14px;
  max-width: 440px;
  margin: clamp(2.5rem, 5vw, 4rem) auto;
  border: 0;
  background:
    var(--ornament) center / 14px 14px no-repeat,
    linear-gradient(var(--c-rule), var(--c-rule)) left center / calc(50% - 22px) 1px no-repeat,
    linear-gradient(var(--c-rule), var(--c-rule)) right center / calc(50% - 22px) 1px no-repeat;
}

.divider--full {
  max-width: none;
}

.divider--left {
  margin-left: 0;
  max-width: 180px;
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--c-line);
}

.rule--gold {
  width: 56px;
  background: var(--gold-500);
}

.ornament {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--ornament) center / contain no-repeat;
}


/* ==========================================================================
   28  Horizontal scroll gallery (pinned on desktop)
   ========================================================================== */
.hscroll {
  position: relative;
  overflow: hidden;
  background-color: var(--c-bg);
  color: var(--c-text);
}

.hscroll__pin {
  position: relative;
  padding-block: var(--space-section);
}

.hscroll__head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hscroll__track {
  display: grid;
  gap: clamp(20px, 2.5vw, 36px);
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) {
  .hscroll__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hscroll__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.hscroll__item {
  margin: 0;
  min-width: 0;
}

.hscroll__media {
  display: block;                     /* also when it is an <a> (lightbox link): aspect-ratio needs a block */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--navy-100);
}

.hscroll__item--wide .hscroll__media {
  aspect-ratio: 4 / 3;
}

.hscroll__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hscroll__item figcaption {
  margin-top: 1rem;
}

.hscroll__item h3 {
  margin-top: 1.1rem;
  font-size: 1.35rem;
}

/* :not(.caption) so the small-caps .caption above the title keeps its own size and color */
.hscroll__item p:not(.caption) {
  margin-top: .45rem;
  font-size: .9375rem;
  color: var(--c-muted);
}

.hscroll__progress {
  display: none;
}

/* active (pinned) state, added by main.js on wide screens */
.hscroll.is-active .hscroll__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  min-height: 640px;
  padding-block: calc(var(--header-h-scrolled) + 2rem) 3rem;
}

.hscroll.is-active .hscroll__track {
  display: flex;
  width: max-content;
  max-width: none;
  margin: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2));
  will-change: transform;
}

.hscroll.is-active .hscroll__item {
  flex: none;
  width: clamp(300px, 26vw, 420px);
}

.hscroll.is-active .hscroll__item--wide {
  width: clamp(420px, 40vw, 640px);
}

.hscroll.is-active .hscroll__media {
  height: clamp(240px, 44vh, 520px);
  aspect-ratio: auto;
}

.hscroll.is-active .hscroll__head {
  margin-bottom: clamp(1.25rem, 3vh, 2.5rem);
}

.hscroll.is-active .hscroll__item h3 {
  margin-top: .75rem;
}

.hscroll.is-active .hscroll__progress {
  display: block;
  position: relative;
  height: 1px;
  margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
  background: var(--c-line-strong);
}

.hscroll__progress > span {
  position: absolute;
  inset: 0;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
}


/* ==========================================================================
   28b Campus scene (assets/js/campus-scene.js) defaults
   Zero-specificity (:where) fallbacks so a page that drops in the scene markup gets a
   sized container, a poster and the hint behaviour from scene-api.md. Any page rule
   (.campus-scene, .page-about .campus-scene, ...) overrides these, whatever the load order.
   ========================================================================== */
:where(.campus-scene-wrap) {
  margin: 0;
}

:where(.campus-scene) {
  position: relative;
  width: 100%;
  height: clamp(460px, 78vh, 860px);
  overflow: hidden;
  background: linear-gradient(180deg, #F3E3C8 0%, #E9E2D4 45%, #BCCFDD 100%);
}

@media (max-width: 640px) {
  :where(.campus-scene) {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

:where(.campus-scene__poster) {
  position: absolute;
  inset: 0;
  background: inherit;
}

:where(.campus-scene.is-ready .campus-scene__poster) {
  opacity: 0;
  transition: opacity .8s ease .3s;
}

/* The poster photo (992px wide) is stretched to the scene's full width: soften it into a
   backdrop so it does not read as a blurry photograph. Pages keep their own veil (::after). */
.campus-scene__poster img {
  filter: blur(3px) saturate(.9);
  transform: scale(1.04);
}

.campus-scene__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 25, 56, .25), rgba(43, 25, 56, .55));
}

:where(.campus-scene__hint) {
  display: none;
}

:where(.campus-scene.is-ready ~ .campus-scene__bar .campus-scene__hint) {
  display: inline-flex;
}

@media (hover: none) {
  :where(.campus-scene.is-ready ~ .campus-scene__bar .campus-scene__hint) {
    display: none;
  }
}

/* Hint typography (the home style): uppercase, letter-spaced, gold glyph */
:where(.campus-scene__hint) {
  align-items: center;
  gap: .6rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* Shared Day / Evening segmented toggle (same control on every page that shows the scene).
   <button type="button" class="campus-toggle" id="campusToggle" aria-pressed="false" hidden>
     <span class="visually-hidden">Evening on campus</span>
     <span class="campus-toggle__opt campus-toggle__opt--day" aria-hidden="true"><i class="fa-solid fa-sun"></i>Day</span>
     <span class="campus-toggle__opt campus-toggle__opt--evening" aria-hidden="true"><i class="fa-solid fa-moon"></i>Evening</span>
   </button>
   aria-pressed="true" = evening. Zero specificity, so page rules still win. */
:where(.campus-toggle) {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .3s ease;
}

:where(.campus-toggle[hidden]) {
  display: none;
}

:where(.campus-toggle__opt) {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .62rem 1rem;
  border-radius: 1px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: background-color .5s var(--ease-out), color .4s ease;
}

:where(.campus-toggle[aria-pressed="false"] .campus-toggle__opt--day),
:where(.campus-toggle[aria-pressed="true"] .campus-toggle__opt--evening) {
  background: var(--gold-500);
  color: var(--navy-950);
}

:where(.campus-toggle:hover) {
  border-color: var(--gold-500);
}


/* ==========================================================================
   29  Social icons
   ========================================================================== */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  color: var(--c-heading);
  font-size: .9rem;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.social a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.social--sm a {
  width: 28px;
  height: 28px;
  border: 0;
  font-size: .78rem;
  color: rgba(250, 247, 240, .78);
}

.social--sm a:hover {
  background: transparent;
  color: var(--gold-300);
}

.social--light a {
  border-color: rgba(250, 247, 240, .2);
  color: var(--ivory);
}


/* ==========================================================================
   30  Footer (deep purple, uniform-check top edge)
   ========================================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(10px + clamp(64px, 8vw, 112px));
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(106, 69, 137, .35) 0%, rgba(43, 25, 56, 0) 60%),
    var(--purple-900);
  color: var(--c-text);
  font-size: .9375rem;
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(52px, 6vw, 84px);
  border-bottom: 1px solid var(--line-light);
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: end;
  }
}

.site-footer__motto-text {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #fff;
}

.site-footer__motto-text em {
  font-family: var(--font-serif);
  font-size: .92em;
  font-style: italic;
  color: var(--gold-300);
}

.site-footer__ask > p {
  max-width: 44ch;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(250, 247, 240, .84);
}

.site-footer__heading {
  margin-bottom: 1.2rem;
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem 2rem;
  padding-block: clamp(52px, 6vw, 84px);
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 3.6fr) minmax(0, 1.7fr) minmax(0, 3.3fr) minmax(0, 2.9fr);
    gap: 2.5rem;
  }
  .site-footer__brand { grid-column: auto; }
}

.site-footer__mission {
  max-width: 40ch;
  margin-top: 1.5rem;
  color: rgba(250, 247, 240, .78);
}

.site-footer__links {
  display: grid;
  gap: 0;
}

.site-footer__links a {
  display: inline-block;
  padding-block: .35rem;
}

.site-footer__links a,
.site-footer__contact a {
  color: rgba(250, 247, 240, .82);
  background-image: linear-gradient(var(--gold-500), var(--gold-500));
  background-repeat: no-repeat;
  background-origin: content-box;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color .3s ease, background-size .5s var(--ease-out);
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
  color: #fff;
  background-size: 100% 1px;
}

/* Give column: MoMo + GCB details with copy buttons */
.site-footer__pay {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.site-footer__pay > div {
  padding: .95rem 1rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.site-footer__pay dt {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, .7);
}

.site-footer__pay dd {
  margin: .3rem 0 0;
  color: rgba(250, 247, 240, .84);
  font-size: .875rem;
  line-height: 1.45;
}

.site-footer__pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .75rem;
  margin-top: .35rem;
}

.site-footer__num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: .03em;
  color: #fff;
  font-variant-numeric: lining-nums tabular-nums;
}

/* SWIFT code row under the account number: its small label sits above the code */
.site-footer__pay-row--swift {
  margin-top: .7rem;
  padding-top: .6rem;
  border-top: 1px solid var(--line-light);
}

.site-footer__pay .pay-pair__label {
  color: rgba(250, 247, 240, .7);
}

.site-footer__promise {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(250, 247, 240, .84);
}

.site-footer__promise i {
  margin-top: .2rem;
  color: var(--gold-300);
}

/* Contact column */
.site-footer__contact {
  display: grid;
  gap: .15rem;
  margin-bottom: 1.25rem;
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.site-footer__contact li > i {
  width: 1rem;
  margin-top: .72rem;
  text-align: center;
  color: var(--gold-500);
  font-size: .85em;
}

.site-footer__contact li > i.fa-whatsapp {
  font-size: 1.05em;
  margin-top: .66rem;
}

.site-footer__contact a,
.site-footer__contact li > span {
  display: inline-block;
  padding-block: .45rem;
}

.site-footer__contact li > span {
  color: rgba(250, 247, 240, .82);
  line-height: 1.55;
}

.site-footer__contact small {
  display: block;
  font-size: .75rem;
  color: rgba(250, 247, 240, .68);
}

/* the email is long: let it break after the @ (<wbr>) rather than overflow the column */
.site-footer__email a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.6rem 2.1rem;
  border-top: 1px solid var(--line-light);
  font-size: .8125rem;
  color: rgba(250, 247, 240, .7);
}

.site-footer__motto {
  margin-top: .85rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-300);
}

/* phones: the last line of the page stays clear of the fixed action bar (section 31) */
@media (max-width: 639.98px) {
  .site-footer__bottom { padding-bottom: calc(2.1rem + var(--action-bar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* Developer credit: "Developed with love (heart) by STELNEX". Right-hand end of the bottom bar on
   larger screens; its own centred line, under a hairline, on phones. */
.site-footer__credit {
  margin-left: auto;
  color: rgba(250, 247, 240, .74);
  white-space: nowrap;
}

.site-footer__credit i {
  margin-inline: .12em .06em;
  font-size: .82em;
  color: var(--gold-500);
  vertical-align: .02em;
}

.site-footer__credit a {
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-decoration-color .25s ease, color .25s ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: var(--gold-300);
  text-decoration-color: currentColor;
}

@media (max-width: 639.98px) {
  .site-footer__credit {
    flex: 1 1 100%;
    margin-left: 0;
    padding-top: .85rem;
    border-top: 1px solid var(--line-light);
    text-align: center;
    white-space: normal;
  }
}


/* ==========================================================================
   31  Quick actions: WhatsApp, back to top and the phone action bar
   One block of markup, generated in the SITE FOOTER region:
     .quick-actions[data-quick-actions] > .quick-actions__donate, .whatsapp-float, .back-to-top
   Three layouts, and none of them ever sits on top of text:
   - phones (< 640px): a sticky bottom bar, Donate (gold) | WhatsApp (green) | up arrow (after
     640px of scrolling). The footer's last line is padded by --action-bar-h, scroll-padding keeps
     focused controls above the bar, and the bar slides away while a text field has focus (the
     on-screen keyboard is up), the menu is open or the donate modal is open.
   - 640-1439px: a slim rail docked to the right edge, narrower than the page gutter (32-40px).
   - 1440px and wider: round buttons centred in the margin beside the 1280px container (the
     margin is at least 72px there, even with a 17px scrollbar).
   ========================================================================== */
.quick-actions {
  /* centre a 52px button in the page margin (the gutter, or the space beside the 1280px
     container), 8-32px from the screen edge. 100% = the viewport without its scrollbar. */
  --qa-right: clamp(8px, calc((max(var(--gutter), (100% - var(--container)) / 2) - 52px) / 2), 32px);
  position: fixed;
  right: var(--qa-right);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 91;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s;
}

.quick-actions > * {
  pointer-events: auto;
}

/* menu, donate modal and lightbox open (all set body.menu-open) */
body.menu-open .quick-actions {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .3s;
}

.quick-actions__donate {
  display: none;
}

/* WhatsApp ------------------------------------------------------------------ */
.whatsapp-float {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 12px 26px -10px rgba(7, 94, 84, .75);
  transition: background-color .3s ease, transform .3s var(--ease-out);
  --c-focus: var(--purple-700);
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--purple-700);
  outline-offset: 4px;
}

/* the visible word, used by the phone bar only */
.whatsapp-float__text {
  display: none;
}

/* hover tooltip (mouse only) */
.whatsapp-float__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  padding: .5rem .85rem;
  border-radius: 999px;
  background: var(--purple-950);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  pointer-events: none;
  transition: opacity .3s ease, transform .45s var(--ease-out);
}

.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (hover: none) {
  .whatsapp-float__label { display: none; }
}

/* Back to top (main.js adds .is-visible after 640px of scrolling) ------------ */
.back-to-top {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-top: -44px;                  /* hidden: tucked under the WhatsApp button, takes no room */
  border-radius: 50%;
  background: var(--purple-900);
  color: var(--gold-300);
  font-size: .9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: scale(.7);
  transition: margin .5s var(--ease-out), width .45s var(--ease-out), opacity .35s ease, transform .5s var(--ease-out), visibility 0s linear .5s, background-color .3s ease;
  --c-focus: var(--purple-700);
}

.back-to-top.is-visible {
  margin-top: 14px;                   /* the WhatsApp button moves up to make room */
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: margin .5s var(--ease-out), width .45s var(--ease-out), opacity .35s ease, transform .5s var(--ease-out), visibility 0s, background-color .3s ease;
}

.back-to-top:hover {
  background: var(--purple-700);
}

.back-to-top i {
  position: relative;
  transition: transform .5s var(--ease-out);
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

.back-to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top__track,
.back-to-top__progress {
  fill: none;
  stroke-width: 1.5;
}

.back-to-top__track {
  stroke: rgba(250, 247, 240, .14);
}

.back-to-top__progress {
  stroke: var(--gold-500);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

/* 640-1439px: a rail docked to the right edge, narrower than the page gutter ----- */
@media (min-width: 640px) and (max-width: 1439.98px) {
  .quick-actions {
    --rail-w: calc(var(--gutter) - 4px);           /* 28-36px: always inside the gutter */
    right: env(safe-area-inset-right, 0px);
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    align-items: flex-end;
  }
  .whatsapp-float {
    width: var(--rail-w);
    height: 52px;
    border-radius: 10px 0 0 10px;
    font-size: 1.25rem;
    box-shadow: -6px 10px 22px -12px rgba(7, 94, 84, .8);
  }
  .whatsapp-float:hover {
    transform: none;
  }
  .whatsapp-float:focus-visible {
    outline-offset: -3px;
    outline-color: #fff;
  }
  .back-to-top {
    width: var(--rail-w);
    height: 40px;
    margin-top: -40px;
    border-radius: 10px 0 0 10px;
    font-size: .8rem;
    box-shadow: -6px 10px 22px -12px rgba(31, 18, 41, .6);
    transform: translateX(100%);
  }
  .back-to-top.is-visible {
    margin-top: 8px;
    transform: none;
  }
  .back-to-top:hover i {
    transform: none;
  }
  .back-to-top__ring {
    display: none;
  }
}

/* phones: the sticky action bar -------------------------------------------- */
@media (max-width: 639.98px) {
  :root {
    --action-bar-h: 64px;
  }

  html {
    scroll-padding-bottom: calc(var(--action-bar-h) + 16px);
  }

  .quick-actions {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    height: calc(var(--action-bar-h) + env(safe-area-inset-bottom, 0px));
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(255, 253, 249, .97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -22px rgba(31, 18, 41, .55);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
    pointer-events: auto;
    --c-focus: var(--purple-700);
  }

  .quick-actions__donate,
  .quick-actions .whatsapp-float {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: none;
  }

  /* gold Donate: purple-950 on gold-500 = 9.2:1, the same as the header button */
  .quick-actions__donate {
    background: var(--gold-500);
    color: var(--purple-950);
    transition: background-color .3s ease;
  }

  .quick-actions__donate:hover {
    background: var(--gold-300);
  }

  .quick-actions__donate i {
    font-size: 1.05rem;
  }

  .quick-actions .whatsapp-float i {
    font-size: 1.3rem;
  }

  .quick-actions .whatsapp-float:hover {
    transform: none;
  }

  .quick-actions .whatsapp-float:focus-visible,
  .quick-actions__donate:focus-visible {
    outline: 3px solid var(--purple-700);
    outline-offset: 2px;
  }

  .whatsapp-float__text {
    display: inline;
  }

  .whatsapp-float__label {
    display: none;
  }

  /* the up arrow grows in from zero width once the page is scrolled */
  .back-to-top {
    width: 0;
    height: auto;
    margin: 0 0 0 -8px;                 /* cancels the flex gap while hidden */
    border-radius: var(--radius);
    box-shadow: none;
    transform: none;
  }

  .back-to-top.is-visible {
    width: 48px;
    margin: 0;
  }

  .back-to-top__ring {
    display: none;
  }

  /* a text field has focus: the on-screen keyboard is up, so the bar steps aside */
  body:has(:is(input:not([type="radio"], [type="checkbox"], [type="button"], [type="submit"], [type="reset"], [type="range"], [type="color"], [type="file"]), textarea, [contenteditable="true"]):focus) .quick-actions {
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
}


/* ==========================================================================
   40  Gingham motif (the uniform check, pure CSS)
   Two perpendicular sets of semi-transparent purple stripes (their crossings
   read darker, like woven gingham) and a hairline pale-yellow thread every
   fourth cell. Use sparingly: thin bands, edges, corners, behind small badges.
     .gingham                 fill any element (context aware: faint on purple)
     .gingham--uniform        force the real uniform colours (white + purple)
     .gingham--soft           paler check for large light areas
     .gingham--band           a thin divider strip (10px; --band-h to change)
     .gingham--edge           strip along the element's top edge (::before)
     .gingham--edge-bottom    strip along the bottom edge (::after)
     .gingham--corner         a faded square for section corners (absolute)
     .gingham-badge           a check ring around a small label
   ========================================================================== */
.gingham,
.gingham--edge::before,
.gingham--edge-bottom::after,
.gingham-badge {
  --g-cell: var(--gingham-cell);
  --g-ink: var(--gingham-ink);
  --g-thread: var(--gingham-thread);
  background-color: var(--gingham-ground);
  background-image:
    linear-gradient(90deg, var(--g-thread) 1px, transparent 1px),
    linear-gradient(0deg, var(--g-thread) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-ink) 50%, transparent 50%),
    linear-gradient(0deg, var(--g-ink) 50%, transparent 50%);
  background-size:
    calc(var(--g-cell) * 4) calc(var(--g-cell) * 4),
    calc(var(--g-cell) * 4) calc(var(--g-cell) * 4),
    calc(var(--g-cell) * 2) calc(var(--g-cell) * 2),
    calc(var(--g-cell) * 2) calc(var(--g-cell) * 2);
}

.gingham--uniform,
.gingham--band,
.gingham--edge::before,
.gingham--edge-bottom::after,
.gingham-badge {
  --g-ink: rgba(83, 49, 110, .55);
  --g-thread: rgba(227, 218, 164, .95);
  background-color: #fff;
}

.gingham--soft {
  --g-ink: rgba(83, 49, 110, .14);
  --g-thread: rgba(227, 218, 164, .5);
}

.on-dark .gingham--soft,
.section--purple .gingham--soft,
.section--navy .gingham--soft {
  --g-ink: rgba(255, 255, 255, .08);
  --g-thread: rgba(227, 218, 164, .2);
}

.gingham--band {
  --g-cell: 5px;
  display: block;
  width: 100%;
  height: var(--band-h, 10px);
  margin: 0;
  border: 0;
}

.gingham--band.gingham--thin {
  --g-cell: 3px;
  --band-h: 6px;
}

.gingham--edge,
.gingham--edge-bottom {
  position: relative;
}

.gingham--edge::before,
.gingham--edge-bottom::after {
  --g-cell: 5px;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: var(--band-h, 10px);
  pointer-events: none;
}

.gingham--edge::before { top: 0; }
.gingham--edge-bottom::after { bottom: 0; }

.gingham--corner {
  --g-cell: 9px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: clamp(120px, 16vw, 220px);
  aspect-ratio: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 70%);
  mask-image: linear-gradient(225deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 70%);
}

.gingham--corner.gingham--corner-left {
  right: auto;
  left: 0;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 70%);
  mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 70%);
}

/* phones: a small, quiet corner (at 120px it read as a mosaic block); the 10px bands carry it */
@media (max-width: 599.98px) {
  .gingham--corner {
    width: 76px;
    opacity: .55;
  }
}

/* a check ring around a small label: <span class="gingham-badge"><span>Need 01</span></span> */
.gingham-badge {
  --g-cell: 3px;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
}

.gingham-badge > span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--purple-900);
  font-size: .625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}


/* ==========================================================================
   41  Photo frame & collage (for the school's small real photos)
   Rounded corners, an offset gold hairline behind the photo and a caption.
   ========================================================================== */
/* Two of the school's phone photos are badly underexposed: lift them wherever they appear
   (frames, cards, the lightbox) so a collage does not read as murky next to the ICT photos.
   Replace with brighter exports in assets/img/school when the client can supply them. */
img[src*="teacher-with-textbooks"],
img[src*="nursery-class"] {
  filter: brightness(1.14) contrast(1.06) saturate(1.05);
}

.photo-frame {
  --pf-offset: clamp(10px, 1.2vw, 16px);
  --pf-radius: var(--radius-lg);
  --pf-ratio: auto;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 var(--pf-offset) var(--pf-offset) 0;
}

.photo-frame::before {
  content: "";
  grid-area: 1 / 1;
  z-index: -1;
  border: 1px solid var(--c-rule);
  border-radius: var(--pf-radius);
  transform: translate(var(--pf-offset), var(--pf-offset));
  pointer-events: none;
}

.photo-frame__media {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--pf-ratio);
  border-radius: var(--pf-radius);
  background: var(--purple-100);
  box-shadow: var(--shadow-md);
}

.photo-frame__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame > figcaption,
.photo-frame__caption {
  grid-area: 2 / 1;
  display: flex;
  align-items: baseline;
  gap: .65rem;
  margin-top: calc(var(--pf-offset) + .8rem);
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.photo-frame > figcaption::before,
.photo-frame__caption::before {
  content: "";
  flex: none;
  width: 18px;
  height: 1px;
  background: var(--c-rule);
  transform: translateY(-.3em);
}

/* a small label on the photo, e.g. "6 pupils, 1 laptop" */
.photo-frame__tag {
  position: absolute;
  left: .85rem;
  bottom: .85rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: calc(100% - 1.7rem);
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(255, 253, 249, .94);
  color: var(--purple-900);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 6px 18px -8px rgba(31, 18, 41, .5);
}

.photo-frame__tag i {
  color: var(--purple-600);
}

.photo-frame--portrait { --pf-ratio: 3 / 4; }
.photo-frame--tall { --pf-ratio: 4 / 5; }
.photo-frame--landscape { --pf-ratio: 4 / 3; }
.photo-frame--wide { --pf-ratio: 16 / 10; }
.photo-frame--square { --pf-ratio: 1 / 1; }

.photo-frame--left {
  margin: 0 0 var(--pf-offset) var(--pf-offset);
}

.photo-frame--left::before {
  transform: translate(calc(var(--pf-offset) * -1), var(--pf-offset));
}

.photo-frame--plain {
  margin: 0;
}

.photo-frame--plain::before {
  display: none;
}

/* Collage: a main photo with a second one overlapping its lower corner */
.collage {
  position: relative;
  padding-bottom: 16%;
}

.collage__main {
  width: 74%;
}

.collage__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 52%;
  margin: 0;
}

.collage__inset::before {
  display: none;
}

.collage__inset .photo-frame__media {
  border: clamp(4px, .6vw, 8px) solid var(--c-bg);
  box-shadow: var(--shadow-lg);
}

.collage--reverse .collage__main {
  margin-left: auto;
  margin-right: 0;
}

.collage--reverse .collage__main::before {
  transform: translate(calc(var(--pf-offset) * -1), var(--pf-offset));
}

.collage--reverse .collage__inset {
  right: auto;
  left: 0;
}

.collage__badge {
  position: absolute;
  top: 8%;
  right: 4%;
  z-index: 2;
  display: grid;
  gap: .2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--purple-900);
  color: rgba(250, 247, 240, .84);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.collage__badge strong {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-300);
}

.collage--reverse .collage__badge {
  right: auto;
  left: 4%;
}


/* ==========================================================================
   42  Impact stats (big numerals + labels; works with data-counter)
   ========================================================================== */
.impact-stats {
  --impact-bg: var(--c-bg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

@media (min-width: 900px) {
  .impact-stats { grid-template-columns: repeat(var(--impact-cols, 4), minmax(0, 1fr)); }
  .impact-stats--3 { --impact-cols: 3; }
}

.impact-stat {
  position: relative;
  padding: clamp(1.5rem, 2.8vw, 2.4rem) clamp(1.1rem, 2.2vw, 2rem) clamp(1.4rem, 2.6vw, 2.2rem);
  background: var(--impact-bg);
}

.impact-stat::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 1.1rem;
  border-radius: 2px;
  background: var(--gold-500);
}

.impact-stat__num {
  display: flex;
  align-items: baseline;
  gap: .14em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.7rem + 3vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-heading);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.impact-stat__num--text {
  font-size: clamp(1.9rem, 1.35rem + 1.9vw, 3.1rem);
  white-space: normal;
}

.impact-stat__unit {
  font-family: var(--font-serif);
  font-size: .42em;
  font-style: italic;
  letter-spacing: 0;
  color: var(--c-accent-em);
}

.impact-stat__label {
  margin-top: .95rem;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-heading);
}

.impact-stat__note {
  margin-top: .35rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--c-muted);
}

/* paper card, e.g. overlapping the bottom of a hero: add style="--overlap: 72px" */
.impact-stats--card {
  --impact-bg: var(--paper);
  position: relative;
  z-index: 3;
  margin-top: calc(var(--overlap, 0px) * -1);
  border-color: var(--line);
  box-shadow: var(--shadow-lg);
  --c-heading: var(--purple-900);
  --c-muted: var(--slate);
  --c-line: var(--line);
  --c-accent-em: var(--purple-600);
}

.impact-stats--dark {
  --impact-bg: var(--purple-900);
  border-color: var(--line-light);
}

.impact-stats--plain {
  border: 0;
  border-radius: 0;
}


/* ==========================================================================
   43  Need cards (photo proof + unit cost + goal + CTA) and need detail
   ========================================================================== */
.need-grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}

@media (min-width: 700px) {
  .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .need-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.need-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  color: var(--c-text);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s ease;
}

.need-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 181, 64, .6);
  box-shadow: var(--shadow-md);
}

.need-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--purple-100);
}

.need-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-out);
}

.need-card:hover .need-card__media img {
  transform: scale(1.05);
}

.need-card__media .gingham-badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 1;
}

.need-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.35rem, 2vw, 1.75rem);
}

.need-card__kicker {
  margin-bottom: .55rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.need-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.18rem + .45vw, 1.55rem);
  line-height: 1.25;
  color: var(--c-heading);
}

.need-card__text {
  margin-top: .65rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.need-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

/* facts list shared by need cards and need detail */
.need-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--c-line);
}

.need-facts dt {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.need-facts dd {
  margin: .3rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--c-heading);
}

.need-facts dd span {
  display: block;
  margin-top: .25rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--c-muted);
}

.need-facts--lg {
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* up to --facts-cols columns (default 3), but never narrower than 10.5rem, so an amount such as
   "GH&#8373;&nbsp;32,000" (which must not wrap) always fits; extra facts move to a second row */
@media (min-width: 640px) {
  .need-facts--lg {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(10.5rem, (100% - (var(--facts-cols, 3) - 1) * 2rem) / var(--facts-cols, 3))), 1fr));
  }
}

.need-facts--lg dd {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.2rem);
}

/* Need detail: large split layout for needs.html */
.need-detail {
  display: grid;
  gap: clamp(2.75rem, 6vw, 6rem);
  align-items: center;
}

@media (min-width: 960px) {
  .need-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .need-detail--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .need-detail--reverse > .need-detail__media { order: 2; }
}

.need-detail__media {
  position: relative;
  min-width: 0;
}

.need-detail__body {
  min-width: 0;
}

.need-detail__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--c-heading);
}

.need-detail__text {
  margin-top: 1.4rem;
  max-width: 60ch;
  color: var(--c-text);
}

.need-detail__text > * + * {
  margin-top: 1em;
}

.need-detail .btn-group {
  margin-top: 2rem;
}

.need-detail__note {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1.25rem;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--c-muted);
}

.need-detail__note i {
  margin-top: .25rem;
  color: var(--c-accent-icon);
}


/* ==========================================================================
   44  Tier cards ("Where your gift goes"; buttons pre-fill the donate panel)
   ========================================================================== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: calc(6px + clamp(1.5rem, 2.4vw, 2rem)) clamp(1.4rem, 2.2vw, 1.9rem) clamp(1.4rem, 2.2vw, 1.9rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  color: var(--c-text);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s ease;
}

/* uniform-check strip along the top */
.tier-card::before {
  --g-cell: 3px;
  --g-ink: rgba(83, 49, 110, .55);
  --g-thread: rgba(227, 218, 164, .95);
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, var(--g-thread) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-ink) 50%, transparent 50%),
    linear-gradient(0deg, var(--g-ink) 50%, transparent 50%);
  background-size: 12px 6px, 6px 6px, 6px 6px;
}

.tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 181, 64, .6);
  box-shadow: var(--shadow-md);
}

.tier-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--purple-700);
  font-size: 1.2rem;
  transition: background-color .4s ease, color .4s ease;
}

.tier-card:hover .tier-card__icon {
  background: var(--purple-700);
  color: var(--gold-300);
}

.tier-card__amount {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.85rem + 1.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-heading);
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}

.tier-card__cur {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-accent);
}

.tier-card__title {
  margin: .95rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--c-heading);
}

.tier-card__text {
  margin-top: .45rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.tier-card__action {
  margin-top: auto;
  padding-top: 1.5rem;
}

.tier-card__action .btn {
  width: 100%;
}

.tier-card--featured {
  background: var(--purple-900);
  border-color: var(--purple-900);
}

.tier-card--featured .tier-card__icon {
  color: var(--gold-300);
}

.tier-card--featured:hover .tier-card__icon {
  background: var(--gold-500);
  color: var(--purple-950);
}


/* ==========================================================================
   45  Copy button ([data-copy]) & pay cards (MoMo, Bank)
   ========================================================================== */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex: none;
  min-height: 40px;
  min-width: 5.5rem;
  padding: .45rem .9rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--c-heading);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.copy-btn:hover {
  border-color: var(--gold-500);
  background: var(--c-tint);
}

.copy-btn i {
  font-size: 1.05em;
}

.copy-btn.is-copied {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.copy-btn--sm {
  min-height: 34px;
  min-width: 4.75rem;
  padding: .35rem .7rem;
  font-size: .625rem;
}

/* a small label above its value, kept together on the left of a row with the Copy button on the
   right (the SWIFT code in the footer and in the compact bank blocks on About and Donate) */
.pay-pair {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  min-width: 0;
}

.pay-pair__label {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.pay-grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

@media (min-width: 820px) {
  .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pay-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  color: var(--c-text);
}

.pay-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pay-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--purple-700);
  font-size: 1.2rem;
}

.pay-card--momo .pay-card__icon {
  background: var(--gold-500);
  color: var(--purple-950);
}

.pay-card--bank .pay-card__icon {
  background: var(--purple-700);
  color: #fff;
}

.pay-card__kicker {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.pay-card__title {
  margin: .15rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  line-height: 1.2;
  color: var(--c-heading);
}

.pay-card__rows {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--c-line);
}

.pay-card__row {
  padding: .8rem 0 .85rem;
  border-bottom: 1px solid var(--c-line);
}

.pay-card__row dt {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* value on the left, its Copy button right-aligned on every row (a long account name wraps
   inside its own column instead of pushing the button underneath) */
.pay-card__row dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem .75rem;
  margin: .3rem 0 0;
}

.pay-card__value {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.12rem + .7vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--c-heading);
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}

.pay-card__value--text {
  font-size: 1.0625rem;
  letter-spacing: 0;
}

/* narrow cards (small phones, cards nested in a panel): a number shrinks to stay on one line beside
   its Copy button instead of breaking in the middle. 100cqi is the row's width; 6.5rem keeps room
   for the button. MoMo "024 008 7434" is about 6.8em wide, the 13-digit account number about 8.1em.
   In a very narrow row the Copy button moves under the number, which keeps its full size.
   Browsers without container queries or :has() keep the size above. */
.pay-card__row {
  container-type: inline-size;
}

.pay-card__row .pay-card__value:not(.pay-card__value--text) {
  font-size: min(clamp(1.3rem, 1.12rem + .7vw, 1.65rem), calc((100cqi - 6.5rem) / 7));
}

.pay-card__row:has([data-copy="2071180000373"]) .pay-card__value:not(.pay-card__value--text) {
  font-size: min(clamp(1.3rem, 1.12rem + .7vw, 1.65rem), calc((100cqi - 6.5rem) / 8.2));
}

@container (max-width: 235px) {
  .pay-card__row dd {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .pay-card__row .pay-card__value:not(.pay-card__value--text) {
    font-size: min(clamp(1.3rem, 1.12rem + .7vw, 1.65rem), calc(100cqi / 7));
  }
  .pay-card__row:has([data-copy="2071180000373"]) .pay-card__value:not(.pay-card__value--text) {
    font-size: min(clamp(1.3rem, 1.12rem + .7vw, 1.65rem), calc(100cqi / 8.2));
  }
}

.pay-card__steps {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pay-step;
}

.pay-card__steps li {
  position: relative;
  padding-left: 2.1rem;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--c-text);
  counter-increment: pay-step;
}

.pay-card__steps li::before {
  content: counter(pay-step);
  position: absolute;
  top: .05rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-heading);
  font-size: .72rem;
  font-weight: 700;
}

.pay-card__code {
  display: inline-block;
  padding: .05rem .4rem;
  border-radius: var(--radius-sm);
  background: var(--c-tint);
  color: var(--c-heading);
  font-family: var(--font-sans);
  font-size: .95em;
  font-weight: 700;
  letter-spacing: .04em;
}

.pay-card__note {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--c-muted);
}

.pay-card__note i {
  margin-top: .22rem;
  color: var(--c-accent-icon);
}

.pay-card__note a {
  color: var(--c-link);
  text-decoration: underline;
  text-decoration-color: var(--c-rule);
  text-underline-offset: .2em;
}

.pay-card--compact {
  gap: 1rem;
  padding: 1.25rem 1.35rem;
}

/* live region for copy feedback (created by main.js) */
.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ==========================================================================
   46  Donate panel (inline) and donate modal
   Amount chips + purpose + method -> exact payment details -> a prefilled
   WhatsApp message for the receipt. No network requests.
   ========================================================================== */
.donate-panel {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  --c-bg: var(--paper);
  --c-text: var(--ink);
  --c-heading: var(--purple-900);
  --c-muted: var(--slate);
  --c-line: var(--line);
  --c-line-strong: var(--line-strong);
  --c-accent: var(--gold-700);
  --c-accent-em: var(--purple-600);
  --c-accent-icon: var(--gold-600);
  --c-focus: var(--purple-700);
  --c-link: var(--purple-700);
  --c-surface: var(--paper);
  --c-tint: var(--purple-100);
  --c-primary-sweep: var(--purple-900);
  --c-primary-sweep-fg: var(--khaki-50);
}

/* uniform-check strip along the top */
.donate-panel::before {
  --g-ink: rgba(83, 49, 110, .55);
  --g-thread: rgba(227, 218, 164, .95);
  content: "";
  display: block;
  height: 8px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, var(--g-thread) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-ink) 50%, transparent 50%),
    linear-gradient(0deg, var(--g-ink) 50%, transparent 50%);
  background-size: 16px 8px, 8px 8px, 8px 8px;
}

.donate-panel--flush {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.donate-panel__form {
  display: grid;
}

.donate-panel__main,
.donate-panel__side {
  display: grid;
  align-content: start;
  gap: 1.6rem;
  min-width: 0;
  padding: clamp(1.4rem, 4cqi, 2.5rem);
}

.donate-panel__side {
  background: var(--purple-50);
  border-top: 1px solid var(--line);
}

@container (min-width: 820px) {
  .donate-panel__form { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .donate-panel__side { border-top: 0; border-left: 1px solid var(--line); }
}

.donate-panel__head .eyebrow {
  margin-bottom: .9rem;
}

.donate-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--purple-900);
}

.donate-panel__intro {
  margin-top: .75rem;
  max-width: 52ch;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--slate);
}

.donate-panel__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.donate-panel__legend {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .85rem;
  padding: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-900);
}

.donate-panel__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--purple-700);
  color: #fff;
  font-size: .75rem;
  letter-spacing: 0;
}

/* amount chips (radio buttons) */
.amount-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

@container (min-width: 440px) {
  .amount-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* no orphan: the last chip ("Other") fills the rest of its row */
.amount-chips > .amount-chip:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@container (min-width: 440px) {
  .amount-chips > .amount-chip:last-child:nth-child(odd) { grid-column: auto; }
  .amount-chips > .amount-chip:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .amount-chips > .amount-chip:last-child:nth-child(3n+2) { grid-column: span 2; }
}

.amount-chip,
.method-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.amount-chip input,
.method-choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.amount-chip__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-height: 4rem;
  padding: .6rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.amount-chip__value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--purple-900);
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}

.amount-chip__hint {
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
}

.amount-chip:hover .amount-chip__box,
.method-choice:hover .method-choice__box {
  border-color: var(--gold-600);
}

.amount-chip input:checked + .amount-chip__box {
  border-color: var(--purple-700);
  background: var(--purple-700);
  box-shadow: 0 8px 20px -12px rgba(83, 49, 110, .8);
}

.amount-chip input:checked + .amount-chip__box .amount-chip__value {
  color: #fff;
}

.amount-chip input:checked + .amount-chip__box .amount-chip__hint {
  color: rgba(255, 255, 255, .86);
}

.amount-chip input:focus-visible + .amount-chip__box,
.method-choice input:focus-visible + .method-choice__box {
  outline: 2px solid var(--purple-700);
  outline-offset: 3px;
}

/* custom amount with a GH₵ prefix */
.donate-panel__custom {
  margin-top: .75rem;
}

/* School fees (main.js adds .is-fees while it is the purpose): fee amounts are not preset, so the
   gift chips step aside and the parent types the amount; the heading reads "Pay school fees" */
.donate-panel.is-fees .amount-chips {
  display: none;
}

.donate-panel.is-fees .donate-panel__custom {
  margin-top: 0;
}

.input-affix {
  position: relative;
}

.input-affix__prefix {
  position: absolute;
  top: 50%;
  left: 1rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--purple-900);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-affix .field__input {
  padding-left: 3.4rem;
}

.donate-panel .field__label {
  color: var(--purple-900);
}

.donate-panel__impact {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: .85rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.donate-panel__impact i {
  margin-top: .25rem;
  color: var(--gold-600);
}

/* method choice (MoMo / Bank transfer) */
.method-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

/* phones: side by side the labels broke to "Mobile / Money" and "Bank / transfer" */
@container (max-width: 459.98px) {
  .method-choices { grid-template-columns: minmax(0, 1fr); }
}

.method-choice__box {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 3.6rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--purple-900);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.25;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.method-choice__box i {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  font-size: .95rem;
}

.method-choice__box small {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  color: var(--slate);
}

.method-choice input:checked + .method-choice__box {
  border-color: var(--purple-700);
  box-shadow: inset 0 0 0 1px var(--purple-700);
  background: var(--purple-50);
}

.method-choice input:checked + .method-choice__box i {
  background: var(--purple-700);
  color: #fff;
}

/* side column: payment details, summary, receipt */
.donate-panel__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .9rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--purple-900);
  color: rgba(250, 247, 240, .84);
  font-size: .875rem;
}

.donate-panel__summary strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-300);
}

.donate-panel__details {
  display: grid;
  gap: 1rem;
}

.donate-panel__receipt {
  display: grid;
  gap: .9rem;
}

.donate-panel__receipt .form__grid {
  gap: .9rem;
}

.donate-panel__receipt .btn {
  width: 100%;
  min-height: 3.6rem;
  padding-inline: 1.2rem;
  font-size: .9375rem;
  letter-spacing: .01em;
  text-transform: none;
  white-space: normal;
  line-height: 1.35;
}

.donate-panel__note {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--slate);
}

.donate-panel__note i {
  margin-right: .35rem;
  color: var(--gold-600);
}

/* Modal (built by main.js the first time a [data-donate-amount] trigger is used on a page
   without an inline panel) */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}

.donate-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease, visibility 0s;
}

.donate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 18, 41, .74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.donate-modal__dialog {
  position: relative;
  width: min(100%, 1000px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.985);
  transition: transform .55s var(--ease-out);
}

.donate-modal.is-open .donate-modal__dialog {
  transform: none;
}

/* The close button sits in .donate-modal__bar: at the dialog's top-right corner on larger
   screens (it scrolls away with the sheet, so it never covers the form; Esc and the backdrop
   also close), and a sticky strip with a grab handle on phones. */
.donate-modal__bar {
  position: absolute;
  top: 16px;
  right: 14px;
  z-index: 3;
}

.donate-modal__handle {
  display: none;
}

.donate-modal__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  box-shadow: 0 4px 14px -6px rgba(31, 18, 41, .35);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--purple-900);
  font-size: 1.1rem;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  --c-focus: var(--purple-700);
}

.donate-modal__close:hover {
  background: var(--purple-900);
  border-color: var(--purple-900);
  color: #fff;
}

.donate-modal .donate-panel__head {
  padding-right: 3rem;
}

/* two columns: the summary starts below the close button */
@container (min-width: 820px) {
  .donate-modal .donate-panel__side { padding-top: 76px; }
}

/* phones: a sheet that rises from the bottom, with a sticky top strip for the close button */
@media (max-width: 639.98px) {
  .donate-modal {
    place-items: end stretch;
    padding: 0;
  }
  .donate-modal__dialog {
    width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(40px);
  }
  .donate-modal__bar {
    position: sticky;
    top: 0;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 56px;
    padding: 0 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .donate-modal__handle {
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--line-strong);
    transform: translateX(-50%);
  }
  .donate-modal__close {
    width: 40px;
    height: 40px;
    box-shadow: none;
  }
  .donate-modal .donate-panel__head {
    padding-right: 0;
  }
}


/* ==========================================================================
   47  Steps (numbered how-to-give)
   ========================================================================== */
.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps__item {
  position: relative;
  min-width: 0;
  padding-left: 4.1rem;
  counter-increment: steps;
}

.steps__item::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--purple-700);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 0 0 6px var(--c-bg);
}

/* connecting line (vertical on phones) */
.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: -1.75rem;
  left: 1.5rem;
  width: 0;
  border-left: 1px dashed var(--c-rule);
}

.steps__title {
  margin: .55rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  line-height: 1.3;
  color: var(--c-heading);
}

.steps__text {
  margin-top: .5rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.steps__text a {
  color: var(--c-link);
  text-decoration: underline;
  text-decoration-color: var(--c-rule);
  text-underline-offset: .2em;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(var(--steps-cols, 4), minmax(0, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
  }
  .steps--3 { --steps-cols: 3; }
  .steps__item {
    padding-left: 0;
    padding-top: 4.4rem;
  }
  .steps__item:not(:last-child)::after {
    top: 1.5rem;
    bottom: auto;
    left: 3.6rem;
    right: calc(clamp(1.5rem, 2.5vw, 2.5rem) * -1 + .6rem);
    width: auto;
    border-left: 0;
    border-top: 1px dashed var(--c-rule);
  }
  .steps__title { margin-top: 0; }
}

.on-dark .steps__item::before,
.section--purple .steps__item::before,
.section--navy .steps__item::before {
  background: var(--gold-500);
  color: var(--purple-950);
}


/* ==========================================================================
   48  Promise band (official receipt + photo update)
   ========================================================================== */
.promise {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem 1.6rem;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.4rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem) calc(10px + clamp(1.4rem, 3vw, 2.5rem));
  background: var(--gold-100);
  border: 1px solid rgba(224, 181, 64, .5);
  border-radius: var(--radius-lg);
  color: var(--ink);
  --c-heading: var(--purple-900);
  --c-muted: var(--slate);
  --c-accent: var(--gold-800);
  --c-focus: var(--purple-700);
}

/* uniform-check strip down the left edge */
.promise::before {
  --g-ink: rgba(83, 49, 110, .55);
  --g-thread: rgba(227, 218, 164, .95);
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  background-color: #fff;
  background-image:
    linear-gradient(0deg, var(--g-thread) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-ink) 50%, transparent 50%),
    linear-gradient(0deg, var(--g-ink) 50%, transparent 50%);
  background-size: 10px 20px, 10px 10px, 10px 10px;
}

.promise__icons {
  display: flex;
}

.promise__icons span {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(224, 181, 64, .55);
  color: var(--purple-700);
  font-size: 1.1rem;
}

.promise__icons span + span {
  margin-left: -.7rem;
  background: var(--purple-700);
  border-color: var(--purple-700);
  color: var(--gold-300);
}

.promise__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.05rem + .45vw, 1.45rem);
  line-height: 1.3;
  color: var(--purple-900);
}

.promise__text {
  margin-top: .35rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--slate);
}

.promise__action {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .promise { grid-template-columns: auto minmax(0, 1fr) auto; }
  .promise__action { grid-column: auto; }
}

@media (max-width: 479.98px) {
  .promise { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   49  Sponsor band (deep purple, framed photo, WhatsApp CTA)
   ========================================================================== */
.sponsor-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(106, 69, 137, .5) 0%, rgba(43, 25, 56, 0) 62%),
    var(--purple-900);
  color: var(--c-text);
}

.sponsor-band > .gingham--corner {
  --g-ink: rgba(255, 255, 255, .1);
  --g-thread: rgba(227, 218, 164, .28);
  background-color: transparent;
}

.sponsor-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.75rem, 6vw, 5rem);
  align-items: center;
}

.sponsor-band__inner > * {
  min-width: 0;                       /* long words and button groups never widen the grid */
}

@media (min-width: 960px) {
  .sponsor-band__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .sponsor-band--reverse .sponsor-band__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .sponsor-band--reverse .sponsor-band__media { order: 2; }
}

.sponsor-band__media {
  max-width: 480px;
}

.sponsor-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
}

.sponsor-band__text {
  max-width: 54ch;
  margin-top: 1.4rem;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: rgba(250, 247, 240, .86);
}

.sponsor-band .icon-list {
  margin-top: 1.75rem;
  max-width: 54ch;
}

/* "GH₵ 800 pays for a one-term scholarship..." reads as one sentence (Home, Donate, Admissions) */
.sponsor-band .icon-list strong {
  display: inline;
  margin-right: .35rem;
  color: #fff;
}

.sponsor-band .btn-group {
  margin-top: 2.25rem;
}


/* ==========================================================================
   50  WhatsApp float: moved to section 31 (Quick actions)
   ========================================================================== */


/* ==========================================================================
   51  WhatsApp forms ([data-whatsapp-form]): confirmation panel extras
   ========================================================================== */
.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
}

.form-success__icon .fa-whatsapp {
  color: var(--whatsapp);
}

.form-success__preview {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--whatsapp);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--purple-50);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.6;
  white-space: pre-line;
}


/* ==========================================================================
   52  Video card & ambient video (v3)
   The school's own phone videos are small (640x360 and 360x640), so they are
   never shown large: a landscape card stops at 720px, a portrait one at 380px.
   .video-card     poster + big play button; the <video> (controls, sound) is
                   only created when the visitor clicks (main.js initVideoCards).
   .video-ambient  short muted loop, plays only while on screen, with a
                   Pause/Play button (main.js initAmbientVideos). Poster only
                   with reduced motion, data saver or a 2G connection.
   ========================================================================== */
.video-card {
  --vc-max: 720px;
  --vc-ratio: 16 / 9;
  --vc-radius: var(--radius-lg);
  --vc-offset: clamp(10px, 1.2vw, 16px);
  --vc-bezel: var(--purple-900);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: var(--vc-max);
  margin: 0 auto;
  padding-right: var(--vc-offset);   /* room for the offset gold hairline */
}

.video-card--start {
  margin-inline: 0;
}

/* offset gold hairline behind the landscape screen (as on .photo-frame) */
.video-card::before {
  content: "";
  grid-area: 1 / 1;
  z-index: -1;
  border: 1px solid var(--c-rule);
  border-radius: var(--vc-radius);
  transform: translate(var(--vc-offset), var(--vc-offset));
  pointer-events: none;
}

.video-card__media {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--vc-ratio);
  border-radius: var(--vc-radius);
  background: var(--purple-950);
  box-shadow: var(--shadow-md);
}

.video-card__poster,
.video-card__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.video-card__poster {
  object-fit: cover;
}

.video-card__video {
  z-index: 3;
  object-fit: contain;
  background: var(--purple-950);
}

.video-card__video:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: -3px;
}

/* the whole poster is the button; the round gold disc is its visible face */
.video-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;                 /* the media box clips the corners */
  background: linear-gradient(180deg, rgba(31, 18, 41, 0) 40%, rgba(31, 18, 41, .42) 100%);
  color: var(--purple-950);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.video-card__play-icon {
  display: grid;
  place-items: center;
  width: clamp(64px, 5.2vw + 40px, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--purple-950);
  font-size: clamp(1.3rem, .9vw + 1rem, 1.7rem);
  box-shadow: 0 0 0 8px rgba(255, 253, 249, .3), 0 16px 32px -12px rgba(31, 18, 41, .7);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s ease;
}

/* the play triangle sits a little right of centre so it looks centred */
.video-card__play-icon i {
  margin-left: .16em;
}

.video-card__play:hover .video-card__play-icon {
  transform: scale(1.06);
  background: var(--gold-300);
  box-shadow: 0 0 0 12px rgba(255, 253, 249, .36), 0 18px 36px -12px rgba(31, 18, 41, .75);
}

/* the button fills a clipped box, so its focus ring is drawn on the disc (white + purple: visible on any photo) */
.video-card__play:focus-visible {
  outline: none;
}

.video-card__play:focus-visible .video-card__play-icon {
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--purple-700), 0 16px 32px -12px rgba(31, 18, 41, .7);
}

.video-card.is-playing .video-card__play,
.video-card.is-playing .video-card__note {
  display: none;
}

/* shown over the poster if the file cannot be played (the poster stays) */
.video-card__note {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 4;
  margin: 0;
  padding: .55rem .85rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 249, .96);
  color: var(--purple-900);
  font-size: .8125rem;
  line-height: 1.45;
  box-shadow: 0 6px 18px -8px rgba(31, 18, 41, .5);
}

.video-card__note a {
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* caption: title, one plain line, then length (and a sound note) */
.video-card__caption {
  grid-area: 2 / 1;
  display: grid;
  justify-items: start;
  gap: .3rem;
  margin-top: calc(var(--vc-offset) + .9rem);
}

.video-card__title {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--c-heading);
}

.video-card__title::before {
  content: "";
  flex: none;
  width: 18px;
  height: 1px;
  background: var(--c-rule);
  transform: translateY(-.32em);
}

.video-card__text {
  max-width: 60ch;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--c-text);
}

.video-card__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  margin-top: .15rem;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.video-card__meta i {
  color: var(--c-accent-icon);
  font-size: 1.1em;
}

.video-card__meta time {
  font-variant-numeric: lining-nums tabular-nums;
}

/* Landscape: 16:9, at most 720px */
.video-card--landscape {
  --vc-max: 720px;
  --vc-ratio: 16 / 9;
}

/* Portrait: 9:16 in a phone-like frame with a rounded purple bezel, at most 380px wide and
   never taller than the screen below the header (narrower on short laptop screens) */
.video-card--portrait {
  --vc-max: clamp(240px, calc((100vh - 170px) * .5625 + 18px), 380px);
  --vc-max: clamp(240px, calc((100svh - 170px) * .5625 + 18px), 380px);
  --vc-ratio: 9 / 16;
  --vc-radius: 30px;
  padding-right: 0;
}

.video-card--portrait::before {
  display: none;
}

.video-card--portrait .video-card__media {
  box-sizing: content-box;          /* the 9:16 ratio is the screen inside the bezel */
  border: 9px solid var(--vc-bezel);
  box-shadow: 0 0 0 1px rgba(83, 49, 110, .3), var(--shadow-lg);
}

.video-card--portrait .video-card__play-icon {
  width: clamp(60px, 3vw + 46px, 72px);
}

.video-card--portrait .video-card__caption {
  margin-top: 1.1rem;
}

/* On a purple section: lighter bezel edge and a deeper shadow (colours come from the dark context) */
.video-card--dark {
  --vc-bezel: var(--purple-950);
}

.video-card--dark .video-card__media {
  box-shadow: 0 0 0 1px rgba(250, 247, 240, .14), 0 30px 60px -24px rgba(0, 0, 0, .6);
}

.video-card--dark.video-card--portrait .video-card__media {
  box-shadow: 0 0 0 1px rgba(250, 247, 240, .22), 0 30px 60px -24px rgba(0, 0, 0, .6);
}

/* Ambient loop: muted, no controls; the poster <img> carries the alt text */
.video-ambient {
  --va-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 720px;
  aspect-ratio: var(--va-ratio);
  border-radius: var(--radius-lg);
  background: var(--purple-100);
}

.video-ambient__poster,
.video-ambient__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-ambient__video {
  z-index: 1;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}

.video-ambient.is-live .video-ambient__video {
  opacity: 1;
}

/* inside a photo frame: <figure class="photo-frame photo-frame--video"><div class="photo-frame__media video-ambient" ...> */
.photo-frame--video {
  width: 100%;
  max-width: calc(720px + var(--pf-offset));
}

.photo-frame__media.video-ambient {
  max-width: none;
}

/* WCAG 2.2.2: moving content can be paused */
.video-ambient__toggle {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 36px;
  margin: 0;
  padding: .4rem .85rem .4rem .75rem;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(31, 18, 41, .74);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .25s ease;
}

.video-ambient__toggle:hover {
  background: rgba(31, 18, 41, .9);
}

.video-ambient__toggle:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
}

.video-ambient__toggle i {
  width: .9em;
  color: var(--gold-300);
  font-size: .9em;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .video-card__play:hover .video-card__play-icon {
    transform: none;
  }
}

@media print {
  .video-card__play,
  .video-card__video,
  .video-card__note,
  .video-ambient__video,
  .video-ambient__toggle {
    display: none !important;
  }
}


/* ==========================================================================
   32  Utilities
   ========================================================================== */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.nowrap { white-space: nowrap; }
/* an amount written as GH&#8373;&nbsp;1,500: keeps the sign and number together, lining figures */
.money { white-space: nowrap; font-variant-numeric: lining-nums; }
.muted { color: var(--c-muted); }
.text-gold { color: var(--c-accent); }
.text-heading { color: var(--c-heading); }
.measure { max-width: 64ch; }
.measure-narrow { max-width: 46ch; }
.mx-auto { margin-inline: auto; }
.relative { position: relative; }
.w-100 { width: 100%; }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

.mt-0 { margin-top: 0 !important; }
.mt-2xs { margin-top: var(--space-2xs) !important; }
.mt-xs { margin-top: var(--space-xs) !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }
.mt-2xl { margin-top: var(--space-2xl) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2xs { margin-bottom: var(--space-2xs) !important; }
.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }
.mb-2xl { margin-bottom: var(--space-2xl) !important; }

@media (max-width: 767.98px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}


/* Tablet portrait: single-column running text spans the full container (80-97 characters
   per line). Cap it near the brief's measure. Page classes are listed here so one rule covers them. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .prose p,
  .need-detail__text p,
  .measure-tablet {
    max-width: 64ch;
  }
}


/* ==========================================================================
   33  Motion helpers
   ========================================================================== */
/* Pre-JS state: the inline head script adds .js-preload only when motion is allowed and
   always removes it within 3s, so content can never stay hidden. main.js removes it as
   soon as GSAP has set the initial reveal states. */
.js-preload [data-reveal],
.js-preload [data-reveal-stagger] > *,
.js-preload [data-split] {
  opacity: 0;
}

.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .1em .08em .16em;
  margin: -.1em -.08em -.16em;
}

.split-word__inner {
  display: inline-block;
}

/* only promoted while motion is on (GSAP promotes split words just while they tween) */
.js-motion [data-parallax] {
  will-change: transform;
  transform-origin: 50% 50%;
}


/* ==========================================================================
   34  Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .marquee .marquee__track,
  .scroll-cue__line::after {
    animation: none !important;
  }

  .hero.is-ready .swiper-slide-active .hero-slide__media img,
  .hero-slide__media img {
    transform: none !important;
  }

  .card:hover,
  .need-card:hover,
  .tier-card:hover,
  .whatsapp-float:hover {
    transform: none;
  }

  .need-card:hover .need-card__media img {
    transform: none;
  }
}


/* ==========================================================================
   35  Print
   ========================================================================== */
@media print {
  .site-header,
  .mobile-nav,
  .back-to-top,
  .whatsapp-float,
  .quick-actions,
  .donate-modal,
  .copy-btn,
  .scroll-cue,
  .slider-controls,
  .hero__controls,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-hero,
  .hero,
  .cta-band,
  .section--navy,
  .section--purple,
  .section--purple-deep,
  .sponsor-band,
  .site-footer {
    min-height: 0;
    padding-block: 1.5rem;
    background: #fff !important;
    color: #000 !important;
    --c-heading: #000;
    --c-text: #000;
    --c-muted: #333;
  }

  .page-hero__media,
  .hero-slide__media,
  .cta-band__media,
  .page-hero::before,
  .cta-band::before,
  .hero-slide::before {
    display: none !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .8em;
  }

  [data-reveal],
  [data-reveal-stagger] > *,
  [data-split],
  .split-word__inner {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
