/* ==========================================================================
   Zonke Kids
   Palette sampled from the logo artwork. Single committed light theme.
   Type: Barlow throughout — Bold (700) for headlines.
   ========================================================================== */

:root {
  /* Surfaces */
  --cream:      #F7F3EA;   /* nav + alternating sections; matches the logo's own bg */
  --white:      #FFFFFF;
  --ink:        #2A3138;
  --ink-soft:   #4E565E;
  --ink-faint:  #7C858D;

  /* Logo colours */
  --yellow:     #FFCE1F;
  --amber:      #F7AE18;
  --orange:     #F5872F;
  --coral:      #E8434A;
  --red-deep:   #C42B34;
  --chartreuse: #C4D62B;
  --lime-mid:   #A6BC1E;
  --teal:       #3F7D74;

  /* Chartreuse is the brand link colour, but at full brightness it measures
     1.46:1 on cream — unreadable. --link is the same hue darkened to 4.6:1.
     --link-on-dark is the bright original, used only on dark/saturated bands. */
  --link:         #63760E;
  --link-hover:   #4C5B0A;
  --link-on-dark: #C4D62B;

  /* Gradients. --sunset is decorative (brushes, hairlines, tints).
     --sunset-btn and --sunset-band are angled so white text always lands on
     the red half — measured, not guessed. */
  --sunset:       linear-gradient(100deg, #FFCE1F 0%, #F7AE18 26%, #F5872F 58%, #E8434A 100%);
  --sunset-btn:   linear-gradient(90deg, #FFCE1F 0%, #F5872F 45%, #E8434A 100%);
  --sunset-band:  linear-gradient(118deg, #F7AE18 0%, #F5872F 24%, #DC3A44 62%, #BE2B33 100%);
  /* Gradient TEXT is contrast-bound by its lightest stop. On cream, yellow
     measures 1.34:1 and mid-orange 2.26:1. Kept anyway at the client's
     request so the full logo sunset reads across the headline.
     The full yellow→red sunset only works as text on the dark band. */
  --sunset-text:  linear-gradient(96deg, #FFCE1F 0%, #F5872F 46%, #E8434A 100%);
  --sunset-text-d: linear-gradient(96deg, #FFCE1F 0%, #F7AE18 28%, #F5872F 60%, #E8434A 100%);
  --lime-band:    linear-gradient(118deg, #DDEB4A 0%, #C4D62B 52%, #A6BC1E 100%);
  --tint-warm:    linear-gradient(135deg, rgba(255,206,31,.16), rgba(232,67,74,.09));
  --tint-lime:    linear-gradient(135deg, rgba(196,214,43,.22), rgba(255,206,31,.12));

  --rule:      rgba(42,49,56,.12);
  --shadow-sm: 0 1px 2px rgba(42,49,56,.05), 0 3px 10px rgba(42,49,56,.05);
  --shadow-md: 0 2px 6px rgba(42,49,56,.06), 0 14px 32px rgba(42,49,56,.10);
  --shadow-lg: 0 4px 10px rgba(42,49,56,.08), 0 26px 56px rgba(42,49,56,.14);

  --wrap: 1140px;
  --narrow: 720px;
  --doc-col: 34rem;   /* shared column for long-form pages */
  --r: 12px;
  --r-lg: 20px;

  --display: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.03rem, .97rem + .3vw, 1.15rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.021em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.9vw, 4.15rem); }
h2 { font-size: clamp(1.95rem, 1.4rem + 2.2vw, 2.95rem); }
h3 { font-size: clamp(1.22rem, 1.08rem + .6vw, 1.5rem); }
h4 { font-size: 1.04rem; letter-spacing: 0; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* Gradient display type. Kept inside the orange→red range so every stop
   clears 3:1 on light surfaces. */
.grad-text, .grad-text-warm {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
/* background-image, not the `background` shorthand — the shorthand resets
   background-clip back to border-box and the text renders as a solid block. */
.grad-text      { background-image: var(--sunset-text);   color: var(--coral); }
.grad-text-warm { background-image: var(--sunset-text-d); color: var(--yellow); }  /* dark bands only */

/* Scoped away from .btn: a:hover is more specific than .btn-give, so any
   button variant that didn't declare its own hover colour was inheriting the
   olive link-hover colour on hover. */
a:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:not(.btn):hover { color: var(--link-hover); text-decoration-thickness: 2px; }

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

.wrap   { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; margin-inline: auto; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff;
        padding: .7rem 1.1rem; border-radius: 0 0 8px 0; z-index: 99; }
.skip:focus { left: 0; top: 0; }

/* Chunky gradient squiggle. Sits on the hero's bottom edge rather than
   between sections: the SVG fills white below the wave and leaves above it
   transparent, so the hero colour runs right up to the band with no seam. */
.squiggle {
  position: absolute; left: 0; right: 0; bottom: -1px;
  display: block; width: 100%;
  height: clamp(24px, 3.6vw, 38px);
}

/* =========================  HEADER  ========================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .85rem;
}
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { width: 152px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.nav a:not(.btn) {
  font-family: var(--display); font-weight: 600; font-size: 1.04rem;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  padding-block: .34rem; border-bottom: 2px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] {
  color: var(--ink); font-weight: 700; border-bottom-color: var(--coral);
}
.nav .btn { margin-left: clamp(.2rem, .8vw, .6rem); }

/* =========================  BUTTONS  =========================
   No borders on filled variants: a transparent border plus background-clip
   let the page colour show through as a pale ring. The ghost outline is an
   inset shadow instead, so every variant keeps an identical box. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 800; font-size: 1.04rem;
  line-height: 1.2; text-align: center; text-decoration: none;
  padding: .82rem 1.7rem; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.btn-give, .btn-give:visited, .btn-give:hover, .btn-give:focus {
  background-image: var(--sunset-btn); background-color: var(--coral); color: #fff;
}

.btn-ink, .btn-ink:visited { background-color: var(--ink); color: #fff; }
.btn-ink:hover { background-color: #171C21; color: #fff; }

.btn-white, .btn-white:visited {
  background-color: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(42,49,56,.13);   /* crisp edge, no glow */
}
.btn-white:hover { background-color: #fff; color: var(--red-deep); }

.btn-ghost { background-color: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background-color: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }

.btn-sm { font-size: .97rem; padding: .6rem 1.35rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 0; }
.btn-row.center { justify-content: center; }

/* =========================  SECTIONS  ========================= */
section { padding: clamp(3rem, 6.5vw, 5.5rem) 0; }
.sec-white { background: var(--white); }
.sec-cream { background: var(--cream); }

/* Saturated bands: white or ink text plus black/white pill buttons */
.sec-sun {
  background-color: var(--coral); background-image: var(--sunset-band); color: #fff;
}
.sec-sun h1, .sec-sun h2, .sec-sun h3 { color: #fff; }
.sec-sun .lede { color: rgba(255,255,255,.92); }
.sec-sun .kicker { color: rgba(255,255,255,.82); }
.sec-sun a:not(.btn) { color: #fff; text-decoration-thickness: 2px; }

.sec-lime {
  background-color: var(--chartreuse); background-image: var(--lime-band); color: var(--ink);
}
.sec-lime .lede { color: rgba(42,49,56,.84); }
.sec-lime .kicker { color: rgba(42,49,56,.68); }
.sec-lime a:not(.btn) { color: #3D4708; }

.sec-ink { background-color: var(--ink); color: #D6D1C8; }
.sec-ink h2, .sec-ink h3 { color: #fff; }
.sec-ink a:not(.btn) { color: var(--link-on-dark); }

.kicker {
  font-family: var(--display); font-weight: 800;
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 .8rem;
}
.lede {
  font-size: clamp(1.08rem, 1.01rem + .45vw, 1.26rem);
  line-height: 1.45;   /* larger type takes less leading than body copy */
  color: var(--ink-soft); text-wrap: pretty;
}
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head.center { max-width: 56ch; }

/* =========================  HERO  ========================= */
.hero {
  background-color: var(--cream); background-image: var(--tint-warm);
  position: relative;   /* anchors the .squiggle on the bottom edge */
}
.hero-grid { display: grid; gap: clamp(2.4rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { max-width: 48ch; }
.hero-cta { margin-top: 1.9rem; }

/* ---- Split hero: copy on the left, full-bleed photograph on the right.
        Below 860px it stacks with the photo on top. ---- */
.hero-split { display: grid; grid-template-columns: 1fr; padding: 0; }

.hero-split-text {
  display: flex; align-items: center; justify-content: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}
.hero-split-inner { width: 100%; }

.hero-split-media { position: relative; min-height: clamp(240px, 56vw, 380px); }
.hero-split-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}

@media (max-width: 859px) {
  .hero-split-media { order: -1; }          /* photo first on phone and tablet */
}
@media (min-width: 860px) {
  .hero-split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  /* Centred in the left half with even gutters, rather than pushed against
     the photo. The copy no longer lines up with the wrap below it — that is
     the trade for having it sit in the middle of the panel. */
  .hero-split-inner { max-width: 34rem; }
  .hero-split-media { min-height: clamp(420px, 42vw, 620px); }
}


/* Single canted print */
.cant       { background: #fff; padding: 10px; border-radius: 6px; box-shadow: var(--shadow-lg); rotate: -2.4deg; }
.cant-right { rotate: 2.4deg; }

/* Story collage: one large print, one small tucked into the corner */
.collage-story { position: relative; padding-bottom: clamp(3.5rem, 9vw, 5.5rem); }
.collage-story .lead-shot { width: 86%; rotate: -1.8deg; }
.collage-story .inset-shot {
  position: absolute; right: 2%; bottom: .5rem; width: 43%; z-index: 3; rotate: 5deg;
}
.collage-story img { background: #fff; padding: 9px; border-radius: 6px; box-shadow: var(--shadow-lg); }

/* =========================  FULL-BLEED STAT BOXES  ========================= */
.stats-bleed { display: grid; grid-template-columns: 1fr; }
.stat {
  padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.2rem, 3vw, 2rem);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.stat b {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: .98; margin-bottom: .35rem;
}
.stat span {
  font-size: 1rem; line-height: 1.45;
  /* Reserve two lines so the numbers sit on one baseline and the descriptions
     on another, even if this copy is later shortened to one line. */
  min-height: 2.9em;
}
.stat-y { background: var(--yellow);     color: var(--ink); }
.stat-o { background: var(--orange);     color: var(--ink); }
.stat-r { background: var(--red-deep);   color: #fff; }
.stat-c { background: var(--chartreuse); color: var(--ink); }

/* =========================  WHY EARLY EDUCATION  ========================= */
.need-grid {
  display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1fr; align-items: start;
}
.need-copy > p:first-child { margin-top: 0; }
.src { font-size: .88rem; color: var(--ink-faint); margin-top: 1.2rem; }

/* White card holding the headline statistic */
.stat-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 2.6vw, 1.8rem);
  box-shadow: var(--shadow-md);
  container-type: inline-size;   /* lets the figure size off the card, not the viewport */
}
.stat-card-fig {
  /* inline-block matters: as a block element its box spans the whole card, so
     background-clip:text would only reveal the first slice of the gradient
     through the glyphs. Hugging the text lets the full sweep show. */
  display: inline-block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(5rem, 1rem + 15vw, 9.4rem);  /* fallback */
  font-size: 62cqw;                             /* fills the card at any width */
  line-height: .82; letter-spacing: -.05em;
  background-image: var(--sunset-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--coral);
  margin: 0 0 .5rem; padding-right: .03em;
}
.stat-card-sub {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
  line-height: 1.35; color: var(--ink); margin: 0;
}

/* =========================  CARDS  ========================= */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.g-2, .g-3, .g-4 { grid-template-columns: 1fr; }

.card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  border: 1px solid var(--rule);
}
.card > img { display: block; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card-body h3 { margin-bottom: .45rem; }
.card-top { height: 7px; background: var(--sunset); }
.card:nth-child(2) .card-top { background: var(--lime-band); }
.card:nth-child(3) .card-top { background: linear-gradient(90deg, var(--coral), var(--red-deep)); }
.card:nth-child(4) .card-top { background: linear-gradient(90deg, var(--teal), var(--chartreuse)); }
.card-meta {
  display: inline-block; font-family: var(--display); font-weight: 800;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--chartreuse);
  padding: .24rem .68rem; border-radius: 999px; margin-bottom: .7rem;
}

/* Gradient icon badge — replaces the top bar on cards that have no image */
.card-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  margin-bottom: 1.05rem;
  background-color: var(--orange);
  background-image: var(--sunset);
}
.card-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-warm  { background-image: var(--sunset); }
.ico-lime  { background-color: var(--chartreuse); background-image: var(--lime-band); }
.ico-lime  svg { stroke: var(--ink); }
.ico-coral { background-color: var(--coral);
             background-image: linear-gradient(135deg, var(--coral), var(--red-deep)); }

/* =========================  QUOTES  ========================= */
.quotes { display: grid; gap: clamp(1.1rem, 2.4vw, 1.6rem); grid-template-columns: 1fr; }
.quote {
  position: relative; background: var(--white); color: var(--ink);
  border-radius: var(--r-lg); padding: 2.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.quote::before {
  content: "\201C"; position: absolute; top: .35rem; left: 1.1rem;
  font-family: var(--display); font-weight: 800; font-size: 4.4rem; line-height: 1;
  color: var(--yellow);
}
.quote:nth-child(2)::before { color: var(--chartreuse); }
.quote:nth-child(3)::before { color: var(--coral); }
.quote blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.quote cite {
  font-style: normal; font-family: var(--display); font-weight: 800;
  font-size: .93rem; color: var(--ink-soft); display: block;
}

/* =========================  GALLERY REEL  =========================
   One horizontal row instead of a grid: the vertical footprint stays the
   same whether there are 12 photos or 24. Native scroll + scroll-snap, so
   it swipes on touch and scrolls with the keyboard without any JS; the
   arrows are added by script only when they are actually needed. */
.reel-wrap { position: relative; }

.reel {
  display: flex; gap: .75rem;
  list-style: none; margin: 0;
  padding: .25rem clamp(1.1rem, 4vw, 2.4rem) 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(42,49,56,.35) transparent;
}
.reel::-webkit-scrollbar { height: 8px; }
.reel::-webkit-scrollbar-thumb { background: rgba(42,49,56,.3); border-radius: 4px; }
.reel::-webkit-scrollbar-track { background: transparent; }
.reel:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.reel li { flex: 0 0 auto; scroll-snap-align: center; }

.reel-item {
  display: block; padding: 0; border: 0; cursor: pointer;
  background: none; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.reel-item img {
  display: block; width: clamp(170px, 38vw, 250px); aspect-ratio: 1;
  object-fit: cover; transition: transform .25s ease;
}
.reel-item:hover img, .reel-item:focus-visible img { transform: scale(1.05); }
.reel-item:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.reel-nav {
  position: absolute; top: calc(50% - 1.5rem); z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .14s ease, opacity .14s ease;
}
.reel-nav:hover { transform: scale(1.08); }
.reel-nav[disabled] { opacity: .3; cursor: default; transform: none; }
.reel-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor;
                stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.reel-prev { left: clamp(.4rem, 2vw, 1.2rem); }
.reel-next { right: clamp(.4rem, 2vw, 1.2rem); }

/* =========================  LIGHTBOX  =========================
   Native <dialog>: focus trapping, Esc to close and the backdrop all come
   for free, with no library. */
.lightbox {
  /* Sized by the photo, not the other way round. With a fixed-width dialog and
     object-fit: contain, a portrait shot sat letterboxed inside a wider box and
     the rounded corners landed on the box rather than on the image — which is
     why some looked rounded and some didn't. Letting the dialog shrink-wrap
     means the corners always follow the photo itself, whatever its shape. */
  /* fit-content, not auto: a modal dialog is positioned with inset:0, where
     `width:auto` stretches to fill instead of shrink-wrapping. Without this
     the box stayed 92vw wide and the photo sat against its left edge. */
  width: fit-content; max-width: 92vw;
  padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(20,24,28,.88); }
.lightbox img {
  display: block;
  width: auto; height: auto;
  max-width: 92vw; max-height: 84vh;   /* fits whichever dimension binds first */
  border-radius: var(--r-lg);
}
/* Pinned to the viewport, not to the dialog. The dialog shrink-wraps each
   photo, so anchoring the controls to it made them jump around as you paged
   between portrait and landscape shots. */
.lb-btn {
  position: fixed; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-md);
}
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor;
              stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* `translate` rather than `transform`, so a hover transform can't cancel the
   vertical centring */
.lb-prev  { top: 50%; translate: 0 -50%; left:  clamp(.6rem, 2.5vw, 2.25rem); }
.lb-next  { top: 50%; translate: 0 -50%; right: clamp(.6rem, 2.5vw, 2.25rem); }
.lb-close { top: clamp(.6rem, 2.5vw, 1.75rem); right: clamp(.6rem, 2.5vw, 2.25rem); }

@media (prefers-reduced-motion: reduce) {
  .reel { scroll-behavior: auto; }
  .reel-item img { transition: none; }
}

/* =========================  FULL-BLEED PHOTO  ========================= */
.bleed { width: 100%; }
.bleed img {
  width: 100%;
  /* Group shots come in all sorts of ratios; cap the height so a squarer
     photo doesn't swallow the page, and crop toward the faces. */
  max-height: clamp(320px, 46vw, 620px);
  object-fit: cover; object-position: 50% 34%;
}

/* =========================  GALLERY  ========================= */
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
.gallery img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; }

/* =========================  PROSE / STORY  ========================= */
/* Header block on a long-form page — same column as .prose so the two
   line up on the left edge. */
.prose-head { max-width: var(--doc-col); margin-inline: auto; }
.prose-lede { font-size: clamp(1rem, .96rem + .2vw, 1.1rem); }

/* Long-form pages (privacy policy). Document typography, not marketing
   typography: smaller body, much smaller headings, tighter vertical rhythm. */
.prose { max-width: var(--doc-col); margin-inline: auto; font-size: .97rem; line-height: 1.6; }
.prose h2 {
  font-size: clamp(1.15rem, 1.05rem + .35vw, 1.34rem);
  letter-spacing: -.01em;
  margin: 2em 0 .5em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: .85em; }
.prose ul { padding-left: 1.15em; margin: 0 0 .85em; }
.prose li { margin-bottom: .3em; }

/* Alternating story rows: text and a modest photo */
.row { display: grid; gap: clamp(1.6rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: center; }
.row + .row { margin-top: clamp(2.6rem, 6vw, 4.5rem); }
.year {
  display: inline-block; font-family: var(--display); font-weight: 800;
  font-size: .86rem; letter-spacing: .12em;
  color: var(--ink); background: var(--yellow);
  padding: .22rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
/* Explicit chip colours. nth-child was fragile here: the pull quote sits
   between the rows, so the indices no longer matched the year order. */
.y-yellow { background: var(--yellow); }
.y-lime   { background: var(--chartreuse); }
.y-orange { background: var(--orange); }
.y-coral  { background: var(--coral); color: #fff; }

/* Inset pull quote — same chartreuse gradient as the testimonials band
   (--lime-band), so it reads as one family. Text is ink, not white: the bright
   chartreuse gives white only 1.6:1, whereas ink lands at 6.2–10:1. */
.pull {
  margin: clamp(2rem, 4vw, 2.8rem) 0;
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  border-radius: var(--r-lg);
  background-color: var(--chartreuse);
  background-image: var(--lime-band);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.pull::before {
  /* watermark quote mark, fully inside the panel so it reads as a glyph */
  content: "\201C";
  position: absolute; top: .06em; right: .1em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(5rem, 10vw, 8rem); line-height: .78;
  color: var(--ink); opacity: .12; pointer-events: none;
}
.pull p {
  position: relative;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.16rem, 1rem + .8vw, 1.55rem); line-height: 1.36;
  margin: 0 0 1rem; text-wrap: pretty;
}
.pull cite {
  position: relative; display: block;
  font-style: normal; font-family: var(--display); font-weight: 700;
  font-size: .92rem; letter-spacing: .04em;
  color: var(--ink);
}

/* =========================  VALUE PANELS  ========================= */
.panels { display: grid; gap: 1px; background: var(--rule); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr; }
.panel { background: var(--white); padding: 1.7rem 1.6rem; }
.panel h3 {
  font-size: clamp(1.35rem, 1.14rem + .85vw, 1.72rem);
  margin-bottom: .85rem;
}
.panel ul { margin: 0; padding-left: 1.1em; }
.panel li { margin-bottom: .45em; }
/* Sits between the heading and the copy, not above the heading */
.panel-ico { height: 6px; width: 48px; border-radius: 3px; margin: 0 0 1.1rem; background: var(--sunset); }
.panel:nth-child(2) .panel-ico { background: var(--lime-band); }
.panel:nth-child(3) .panel-ico { background: linear-gradient(90deg, var(--coral), var(--red-deep)); }

/* =========================  DONATE DETAILS  ========================= */
.give-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); grid-template-columns: 1fr; align-items: start; }
.give-stack { display: grid; gap: clamp(1.1rem, 2.4vw, 1.6rem); }
.check {
  background: var(--white); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-md);
}
.check dl { margin: 0; display: grid; grid-template-columns: 1fr; }
.check dt {
  font-family: var(--display); font-weight: 800; font-size: .73rem;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint); padding-top: .95rem;
}
.check dd { margin: .12rem 0 0; padding-bottom: .95rem; border-bottom: 1px dashed var(--rule);
            font-size: 1.06rem; font-weight: 600; }
.check dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
.check h3 + p { margin-top: 0; }
/* Memo row: the chip with its caveat sitting alongside, wrapping under it
   when the column gets narrow. */
.check dd.memo-row { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: baseline; }
.memo-note { flex: 1 1 9rem; font-size: .85rem; font-weight: 500;
             line-height: 1.4; color: var(--ink-faint); }
.check address { font-style: normal; font-weight: 600; }
.memo {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-weight: 800;
  padding: .12rem .6rem; border-radius: 7px;
}

.money { background: var(--white); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 1.9rem); box-shadow: var(--shadow-sm); }
.money-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
             padding: .68rem 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.money-row:last-of-type { border-bottom: 0; }
.money-row b { font-family: var(--display); font-weight: 800; }
.money-note { font-size: .89rem; color: var(--ink-faint); margin-top: 1rem; }

/* Memo-line callout inside the well appeal */
.well-memo {
  margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.3);
}

/* =========================  FAQ  ========================= */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.1rem 2.2rem 1.1rem 0;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.7rem; line-height: 1; color: var(--orange); font-family: var(--display);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 0 1.3rem; max-width: 64ch; }

/* =========================  DONATE PRE-FOOTER  ========================= */
.prefoot { text-align: center; }

/* Contact row under a gradient band (Donate page "Get in touch").
   No rule above it — the divider was dropped by request. */
.prefoot .contact {
  display: flex; flex-wrap: wrap; gap: .55rem 2rem; justify-content: center;
  margin-top: 1.9rem; font-size: .97rem;
}
.prefoot .contact span { white-space: nowrap; }

/* Tilted prints tucked into the donate band */
.sec-sun.has-photos { position: relative; overflow: hidden; }
.cta-photo {
  position: absolute; z-index: 1;
  width: clamp(130px, 19vw, 280px);
  background: #fff; padding: 8px; border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
/* Mirrors the bottom-right print: same size, same inset, tilted the other way */
.cta-photo-a { top: 6%; left: 2.5%; rotate: -5.5deg; }
.cta-photo-b { bottom: 7%; right: 2.5%; rotate: 4.5deg; }
.sec-sun.has-photos .wrap { position: relative; z-index: 2; }
/* Narrower copy column in this band, to give the photos room to grow */
.sec-sun.has-photos .wrap.prefoot { max-width: 34rem; }

/* Not enough room beside the copy once the band narrows */
@media (max-width: 1100px) { .cta-photo { display: none; } }
@media (prefers-reduced-motion: reduce) { .cta-photo { rotate: none; } }

/* =========================  FOOTER  ========================= */
.site-footer { background: var(--ink); color: #A9A399; padding: clamp(2.2rem, 4.5vw, 3.4rem) 0 1.6rem; font-size: .94rem; }
.site-footer a:not(.btn) { color: var(--link-on-dark); }
.site-footer a:not(.btn):hover { color: #DDEB4A; }
.site-footer h3 {
  color: #fff; font-size: .8rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .85rem;
}
.foot-grid { display: grid; gap: 2rem 2.4rem; grid-template-columns: 1fr; }
.foot-logo { width: 116px; background: var(--white); padding: .4rem .55rem; border-radius: 8px; margin-bottom: 1rem; }
.foot-brand p { margin: 0; line-height: 1.5; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .45rem; }
.foot-legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: clamp(1.8rem, 4vw, 2.6rem); padding-top: 1.1rem;
  font-size: .85rem; color: #857F76;
}
/* Legal-bar links sit in the grey of the surrounding text rather than taking
   the footer's chartreuse — this is fine print, not navigation. */
.site-footer .foot-legal a {
  color: inherit;
  text-decoration-color: rgba(255,255,255,.3);
}
.site-footer .foot-legal a:hover { color: #C9C4B7; text-decoration-color: currentColor; }

/* =========================  BREAKPOINTS  ========================= */
/* =========================  MOBILE LAYOUT  =========================
   Below 760px every section stacks. Two rules apply throughout:
     1. the photograph leads the section, above the copy
     2. imagery is inset from the screen edge so it reads as a framed
        element rather than a full-width band; the copy keeps the normal
        wrap padding so text measure is unaffected
   `:has(img)` picks out the image side of each two-up grid without needing
   a marker class in the markup. Where it is unsupported the image simply
   stays below the copy — the old behaviour. */
@media (max-width: 759px) {

  /* Leading runs loose on a narrow measure — pull it in so prose reads at a
     consistent rhythm across every section. */
  body { line-height: 1.48; }
  .lede { line-height: 1.4; }
  .quote blockquote, .card-body p, .faq .faq-body p { line-height: 1.48; }

  .hero-grid, .row { gap: 1.7rem; }

  /* Hero: tighten the space above and below the photo pair, and let the second
     print ride further up over the first. */
  .hero { padding-top: 1.5rem; }
  /* ...but the split hero's photo should butt straight up against the header */
  .hero-split { padding-top: 0; }
  .hero-grid { gap: 1.3rem; }

  /* photo first */
  .hero-grid > div:has(img),
  .row > div:has(img) { order: -1; }

  /* inset the imagery (~50px from the screen edge, wrap padding included) */
  .hero-grid > div:has(img) { padding-inline: 2rem; }
  .row > div:has(img)       { padding-inline: 2.25rem; }

  /* a lone portrait can take more inset than a pair */
  .row.portrait-left > div:has(img) { padding-inline: 3rem; }

  /* Our Story pair: same outside inset as the hero, hers scaled down a touch
     more, and the vertical spacing pulled in to match. */
  .row > div.collage-story { padding-inline: 2rem; }
  .collage-story { padding-bottom: clamp(2rem, 9vw, 3.25rem); }
  .collage-story .lead-shot  { width: 70%; }
  /* right: 2rem matches the container's own padding, so the square's right edge
     is inset the same amount as her left edge. An absolutely positioned child
     resolves right:0 against the padding box, which would have ignored it. */
  .collage-story .inset-shot { width: 36%; right: 2rem; }

  /* Why early education: bring the card in and centre it */
  .stat-card { margin-inline: 1.5rem; text-align: center; }
  .stat-card-fig { font-size: 48cqw; }
}

@media (max-width: 559px) {
  /* Number blocks: inset hard and centre, so figures and captions line up
     down the middle of the screen and captions still run to two lines. */
  .stat {
    text-align: center; align-items: center;
    padding-inline: clamp(1.8rem, 11vw, 3.4rem);
  }
  /* Narrower measure plus balance, so the two lines carry a similar number of
     words instead of a long first line and a stub second one. */
  .stat span { max-width: 15rem; text-wrap: balance; }

  .brand img { width: 124px; }
  .site-header .wrap { padding-block: .65rem; }
  .nav { gap: 1rem; }
  .nav a:not(.btn) { font-size: 1rem; }
  .nav .btn { margin-left: .2rem; }
  .btn-sm { padding: .52rem 1.1rem; }
}
@media (min-width: 560px) {
  .stats-bleed { grid-template-columns: repeat(2, 1fr); }
  .check dl { grid-template-columns: 11rem 1fr; align-items: baseline; }
  .check dt { border-bottom: 1px dashed var(--rule); padding-bottom: .95rem; }
  .check dt:last-of-type { border-bottom: 0; }
  .check dd { margin-top: 0; padding-top: .95rem; }
}
@media (min-width: 760px) {
  .g-2 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .panels { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .give-grid { grid-template-columns: 1.05fr .95fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .need-grid { grid-template-columns: .66fr 1.34fr; }
  .row { grid-template-columns: 1fr 1fr; }
  .row.photo-first > :first-child { order: 2; }
  /* Portrait photo on the left, text on the right */
  .row.portrait-left { grid-template-columns: .82fr 1.18fr; }
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.02fr .98fr; }
  .stats-bleed { grid-template-columns: repeat(4, 1fr); }
  .g-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr .7fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .cant, .cant-right, .collage-story .lead-shot, .collage-story .inset-shot,
  .cta-photo { rotate: none; }
}

@media print {
  .site-header, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
