/* ==========================================================================
   FIVE PILLARS — COMPONENT LIBRARY
   Buttons, cards, header/nav, footer, carousel, testimonials, accordion,
   modal, lightbox, timeline, forms, badges, breadcrumb, CTA strips.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  /* Both stops stay inside the accessible range (>=4.5:1 with the white
     label) — the brighter true-logo gold (--brand-gold) alone dips to
     ~3:1 and isn't used here. */
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
  color: var(--white);
  box-shadow: var(--shadow-warm);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover {
  /* darken further on hover — text is white, so darkening the background
     (not lightening it) is what keeps/improves contrast here */
  background: linear-gradient(135deg, var(--brand-secondary-dark), color-mix(in srgb, var(--brand-secondary-dark) 80%, black));
  box-shadow: 0 20px 44px rgba(163, 107, 0, 0.3);
  transform: translateY(-3px);
}

@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163, 107, 0, 0.5), var(--shadow-warm); }
  50% { box-shadow: 0 0 0 9px rgba(163, 107, 0, 0), var(--shadow-warm); }
}
.btn-primary { animation: btnPulseGlow 2.6s ease-in-out infinite; }
.btn-primary:hover { animation: none; }
@media (prefers-reduced-motion: reduce) { .btn-primary { animation: none; } }

.btn-secondary {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--brand-primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--brand-primary);
}
.btn-outline:hover { background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary); }

.btn-outline-white { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--brand-primary); border-color: var(--white); }

/* dark text — white-on-#25D366 fails WCAG AA (2.0:1); dark ink passes at 7.4:1 */
.btn-whatsapp { background: #25D366; color: var(--ink-900); }
.btn-whatsapp:hover { background: #1FAE55; transform: translateY(-2px); }

.btn-call { background: var(--brand-primary); color: var(--white); }
.btn-call:hover { background: var(--brand-primary-dark); transform: translateY(-2px); }

.btn-donate { background: var(--pillar-2); color: var(--ink-900); }
.btn-donate:hover { background: color-mix(in srgb, var(--pillar-2) 90%, white); transform: translateY(-2px); }

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-text {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-heading); font-weight: 600; color: var(--brand-primary);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease);
}
.btn-text:hover { border-color: var(--brand-primary); }
.btn-text svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.btn-text:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------------- */
/* Header                                                                   */
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */
/* Top utility bar — contact details + social, sits above the main header  */
/* ---------------------------------------------------------------------- */
.top-bar { background: var(--bg-dark); color: var(--white); }
.top-bar-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.82rem;
}
.top-bar-contact { display: flex; align-items: center; gap: var(--space-md); }
.top-bar-contact a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--white); opacity: 0.88; transition: opacity var(--dur-fast) var(--ease); }
.top-bar-contact a:hover { opacity: 1; }
.top-bar-contact svg { width: 15px; height: 15px; flex-shrink: 0; }
.top-bar-social { display: flex; align-items: center; gap: 0.6rem; }
.top-bar-social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.28), inset 0 1px 1px rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.top-bar-social a:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 16px rgba(0,0,0,0.32), inset 0 1px 1px rgba(255,255,255,0.35);
}
.top-bar-social svg { width: 15px; height: 15px; }
.top-bar-social a[aria-label="Facebook"] { background: linear-gradient(145deg, #3E9BFF, #1058C4); color: var(--white); }
.top-bar-social a[aria-label="Instagram"] { background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); color: var(--white); }
.top-bar-social a[aria-label="YouTube"] { background: linear-gradient(145deg, #FF3D3D, #CC0000); color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,254,251,0.94);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease), height var(--dur-med) var(--ease);
}
/* backdrop-filter lives on .header-inner, not .site-header — filter/
   backdrop-filter on an ancestor creates a new containing block for
   position:fixed descendants, which broke .mobile-nav (a fixed sibling
   of .header-inner inside this element): its `inset` started resolving
   against .site-header's own (short) box instead of the viewport, so the
   open drawer collapsed to header height instead of covering the page. */
.site-header.is-scrolled { box-shadow: var(--shadow-md); border-color: var(--border-soft); }
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--pillar-1), var(--pillar-2), var(--pillar-3), var(--pillar-4), var(--pillar-5));
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; transition: transform var(--dur-fast) var(--ease); }
.brand:hover { transform: scale(1.03); }
.brand img { height: 127px; width: auto; }
.brand-collab {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-soft, rgba(20,49,58,0.15));
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: black;
  max-width: 170px;
}

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: var(--space-lg); }
.nav-list a {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink-700);
  padding-block: 0.5rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav-list a:hover { color: var(--brand-primary); }
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0%;
  background: var(--brand-secondary);
  transition: width var(--dur-fast) var(--ease);
  border-radius: 2px;
}
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="page"]::after { width: 100%; }
.nav-list a[aria-current="page"] { color: var(--brand-primary); }

/* Gallery dropdown (desktop) — hover/focus reveal, no JS needed */
.nav-item-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger .nav-caret { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.nav-item-dropdown:hover .nav-dropdown-trigger .nav-caret,
.nav-item-dropdown:focus-within .nav-dropdown-trigger .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 160px;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
  z-index: 10;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-700);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--bg-soft); color: var(--brand-primary); }

.header-cta { display: flex; align-items: center; gap: var(--space-md); }

.nav-toggle {
  display: none;
  flex-direction: column;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  align-items: center; justify-content: center;
  border: 1px solid var(--border-soft);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle span { margin: 5px 0; }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  /* Animates via `width` (0 -> 100%), not translateX — a translated
     fixed-position box still occupies its full geometric footprint at its
     un-translated spot, so with inset:0 it was adding a whole extra
     viewport-width to the page's scrollable area on every mobile page.
     width:0 has no footprint to clip in the first place.

     Padding lives on .is-open only, not here: with box-sizing:border-box
     a "0" width can't actually shrink below the element's own left/right
     padding (the content box would go negative, so the browser clamps the
     rendered width up to padding-left + padding-right instead) — with
     padding-inline set unconditionally the "closed" drawer was never
     really 0-width, just a permanent ~48px sliver clipping the nav links'
     first couple of letters on every page at mobile widths. */
  position: fixed;
  top: var(--header-h); right: 0; bottom: 0;
  width: 0;
  background: var(--white);
  z-index: 490;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width var(--dur-med) var(--ease);
  display: none;
}
.mobile-nav.is-open { width: 100%; padding: var(--space-lg) var(--container-pad) var(--space-xl); }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-list > li > a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink-900);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav-list > li > a[aria-current="page"] { color: var(--brand-primary); }
.mobile-nav .header-cta { margin-top: var(--space-lg); flex-direction: column; align-items: stretch; }

/* Gallery submenu (mobile) — native <details>/<summary>, no JS needed */
.mobile-nav-item-dropdown { border-bottom: 1px solid var(--border-soft); }
.mobile-nav-item-dropdown details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink-900);
  padding: var(--space-sm) 0;
  cursor: pointer;
  list-style: none;
}
.mobile-nav-item-dropdown details summary::-webkit-details-marker { display: none; }
.mobile-nav-item-dropdown details summary .nav-caret {
  width: 16px; height: 16px;
  transition: transform var(--dur-fast) var(--ease);
}
.mobile-nav-item-dropdown details[open] summary .nav-caret { transform: rotate(180deg); }
.mobile-nav-submenu { display: flex; flex-direction: column; padding: 0 0 var(--space-sm) var(--space-md); }
.mobile-nav-submenu a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-700);
  padding: var(--space-xs) 0;
}
.mobile-nav-submenu a[aria-current="page"] { color: var(--brand-primary); }

/* ---------------------------------------------------------------------- */
/* Breadcrumb + page hero                                                  */
/* ---------------------------------------------------------------------- */
.page-hero {
  position: relative;
  /* Bottom padding must clear the ::before curve's max-height (56px) so a
     two-line subtitle never runs into it — white text over the white curve
     would otherwise go invisible right where they overlap. Kept as tight as
     that allows so the hero doesn't leave a big empty gap above the next
     section. */
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.25rem) clamp(2.75rem, 2.25rem + 1.5vw, 4rem);
  color: var(--white);
  background: linear-gradient(160deg, var(--brand-primary), var(--brand-primary-dark));
  overflow: hidden;
}
.page-hero img.bg-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,255,255,0.14) 0%, transparent 32%),
    linear-gradient(160deg, rgba(15,42,66,0.88), rgba(0,42,82,0.72));
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 3; }
.page-hero-sm { padding-block: clamp(2rem, 1.7rem + 1.2vw, 2.75rem) clamp(2.5rem, 2rem + 1.5vw, 3.75rem); }
/* The hero's curve divider plus its own generous bottom padding already
   form a clean transition — without this, the very next section stacks
   its own top padding on top of that and the gap doubles up. */
.page-hero + section, .page-hero-sm + section { padding-top: clamp(1rem, 0.8rem + 1vw, 1.75rem); }
.page-hero h1 { color: var(--white); margin-top: var(--space-xs); font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.55rem); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 620px; margin-top: var(--space-sm); font-size: 1.1rem; }

/* Curved divider — soft "hill" transition into the section below, pure CSS (no extra markup) */
.page-hero::before {
  content: "";
  position: absolute;
  bottom: -1px; left: -5%;
  width: 110%; height: 3.5vw;
  min-height: 24px; max-height: 56px;
  background: var(--bg-page);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 2;
  pointer-events: none;
}

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: rgba(255,255,255,0.95); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: 0.6; }
.breadcrumb[data-on-light] { color: var(--ink-500); }
.breadcrumb[data-on-light] a { color: var(--brand-primary); }

/* ---------------------------------------------------------------------- */
/* Cards — shared base                                                     */
/* ---------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
/* Photo sits inset within the card rather than flush to its edges — the
   card's own white background shows as a thin "reveal" around the image's
   own (more rounded) corners, matching the floating-photo card reference. */
.card-media {
  /* no overflow:hidden here — the img clips itself via its own border-radius,
     so a hover zoom doesn't get square-clipped against this wrapper's edges */
  /* fixed height, not aspect-ratio — more reliable across browsers/contexts
     than aspect-ratio combined with grid/flex-stretched parents */
  position: relative;
  flex-shrink: 0;
  height: 230px;
  padding: 8px 8px 0;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--dur-slow) var(--ease);
}
.card:hover .card-media img { transform: scale(1.03); }
/* Flex column so the CTA at the end (Read More / View Details) always sits
   flush with the card's bottom edge, regardless of how long the text above
   it runs — no more CTAs landing at different heights card to card. */
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-sm) var(--space-md) var(--space-md); }
.card-body > *:last-child { margin-top: auto; padding-top: var(--space-sm); }

/* Card CTA — "Read More" / "View Details" styled as a small pill button
   instead of a plain underlined text link, scoped to card contexts only
   (section-level "View All" links keep the plain .btn-text look). */
.card-body .btn-text {
  border-bottom: none;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
/* only a *direct* child of card-body (blog/story cards) needs shrink-to-fit —
   inside .card-footer (programme cards) it must stay row-aligned with its sibling button */
.card-body > .btn-text { align-self: flex-start; }
.card-body .btn-text:hover { background: var(--brand-primary); color: var(--white); transform: translateY(-2px); }

/* Programme card */
.programme-card .card-media { height: 215px; }
.programme-icon {
  position: absolute; top: var(--space-sm); left: var(--space-sm);
  width: 50px; height: 50px; border-radius: 15px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease);
  animation: iconPulse 1.6s ease-in-out infinite;
}
.card:hover .programme-icon { animation-play-state: paused; transform: rotate(-6deg) scale(1.05); }
.programme-icon svg { width: 25px; height: 25px; }
.programme-card h3 { margin-top: var(--space-2xs); }
.programme-meta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  margin-top: var(--space-xs);
}
.programme-card .card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: var(--space-sm); gap: var(--space-sm); flex-wrap: wrap;
}

/* Pillar card — bold illustrated-poster style: pill badge, big scalloped
   icon, two-tone heading (2nd line tinted via .pillar-accent) and a solid
   pill "Learn more" button, echoing a colourful kids'-app reference design
   rather than the previous muted hanging-tag treatment. */
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: left;
  border-top: 7px solid var(--pillar-color, var(--brand-primary));
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.pillar-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
/* Real session photo — a small corner accent (not a big side illustration,
   which needed much wider cards than this 5-across grid allows), reusing
   the same photo already shown large in the pillar detail modal
   (data-pillar-image). Sits beside the "PILLAR 0X" badge without
   overlapping it. */
.pillar-card-photo {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  outline: 2px solid var(--pillar-color, var(--brand-primary));
  outline-offset: -1px;
  box-shadow: var(--shadow-sm);
}
.pillar-card .pillar-number {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--pillar-color, var(--brand-primary)) 14%, white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  /* Mixed with black (not `filter`, which would also darken the light
     background above into a muddy grey) for WCAG AA contrast on the tint. */
  color: color-mix(in srgb, var(--pillar-color, var(--brand-primary)) 70%, black);
  letter-spacing: 0.1em;
}
.pillar-card .pillar-icon {
  width: 62px; height: 62px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--pillar-color, var(--brand-primary)) 26%, white), color-mix(in srgb, var(--pillar-color, var(--brand-primary)) 10%, white));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M 54.00,32.00 A 6.91,6.91 0 0 1 49.80,44.93 A 6.91,6.91 0 0 1 38.80,52.92 A 6.91,6.91 0 0 1 25.20,52.92 A 6.91,6.91 0 0 1 14.20,44.93 A 6.91,6.91 0 0 1 10.00,32.00 A 6.91,6.91 0 0 1 14.20,19.07 A 6.91,6.91 0 0 1 25.20,11.08 A 6.91,6.91 0 0 1 38.80,11.08 A 6.91,6.91 0 0 1 49.80,19.07 A 6.91,6.91 0 0 1 54.00,32.00 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M 54.00,32.00 A 6.91,6.91 0 0 1 49.80,44.93 A 6.91,6.91 0 0 1 38.80,52.92 A 6.91,6.91 0 0 1 25.20,52.92 A 6.91,6.91 0 0 1 14.20,44.93 A 6.91,6.91 0 0 1 10.00,32.00 A 6.91,6.91 0 0 1 14.20,19.07 A 6.91,6.91 0 0 1 25.20,11.08 A 6.91,6.91 0 0 1 38.80,11.08 A 6.91,6.91 0 0 1 49.80,19.07 A 6.91,6.91 0 0 1 54.00,32.00 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  display: flex; align-items: center; justify-content: center;
  margin-block: var(--space-sm) var(--space-xs);
  transition: transform var(--dur-fast) var(--ease);
  animation: iconPulse 1.4s ease-in-out infinite;
}
.grid-5 > .pillar-card:nth-child(even) .pillar-icon { animation-delay: 0.5s; }
.pillar-card:hover .pillar-icon { animation-play-state: paused; transform: rotate(-8deg) scale(1.08); }
.pillar-card .pillar-icon svg { width: 28px; height: 28px; color: var(--pillar-color, var(--brand-primary)); }
.pillar-card h3 {
  margin-bottom: var(--space-2xs);
  font-size: 1.4rem;
  line-height: 1.15;
}
.pillar-card h3 .pillar-accent { color: var(--pillar-color, var(--brand-primary)); }
.pillar-card .pillar-meaning { font-size: 0.96rem; color: var(--ink-700); margin-bottom: var(--space-sm); }
/* "Learn more" is a real pill button (solid pillar colour, white label),
   sitting close to its own text rather than bottom-anchored to match a
   taller sibling in the same grid row. */
.pillar-card .pillar-expand-hint {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--pillar-color, var(--brand-primary));
  font-size: 0.88rem; font-weight: 700;
  color: var(--white);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pillar-card:hover .pillar-expand-hint { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Student story card */
.story-card .card-media { height: 205px; }
.story-card .progress-tag {
  position: absolute; bottom: var(--space-sm); left: var(--space-sm);
  background: rgba(20,49,58,0.85);
  color: var(--white);
  font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.8rem; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
/* Home "Real Progress" stories: children's photos are deliberately softened
   for privacy. clip-path trims the blur's soft edge so it stays inside the
   rounded frame; the slight scale hides any faded border. */
#student-stories .story-card .card-media img {
  filter: blur(6px) saturate(1.05);
  transform: scale(1.08);
  clip-path: inset(0 round var(--radius-md));
}
#student-stories .story-card:hover .card-media img { transform: scale(1.12); }
/* Programme photos show children — softened for privacy (same treatment as
   the story cards above). */
.programme-card .card-media img {
  filter: blur(3px) saturate(1.05);
  transform: scale(1.05);
  clip-path: inset(0 round var(--radius-md));
}
.programme-card:hover .card-media img { transform: scale(1.09); }
/* Same photos reused on the programme details page */
#pd-hero-image, #pd-detail-image { filter: blur(3px) saturate(1.05); }
.story-card h3 { margin-top: var(--space-2xs); }
.story-card p.story-excerpt { margin-top: var(--space-2xs); }

/* Blog card */
.blog-card .card-media { height: 215px; }
.blog-card .category-badge {
  position: absolute; top: var(--space-sm); left: var(--space-sm);
}
.blog-meta { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.82rem; color: var(--ink-500); margin-top: var(--space-xs); }
.blog-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); }
.blog-card h3 { margin-top: var(--space-2xs); }

/* Blog article title (smaller than the default hero h1) */
.article-title { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem); }

/* Blog details page: tighter left/right gap on wide screens only — on
   phones the text needs the normal container gutter, otherwise it sits
   flush against the screen edges. */
@media (min-width: 901px) {
  .blog-details-page .container { padding-inline: 0.2rem; }
}

/* Blog article images */
.blog-article-hero-img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius-lg); }
.blog-article-figure-img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-md); }

/* Featured blog */
.blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-xl); align-items: center; background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; }
.blog-featured .card-media { aspect-ratio: 4/3; padding: 0; margin: 0; }
.blog-featured .card-media img { border-radius: 0; }
.blog-featured-body { padding: var(--space-lg); }

/* Gallery card */
.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery-card .gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,49,58,0.88) 0%, rgba(20,49,58,0) 60%);
  display: flex; align-items: flex-end; padding: var(--space-md);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card:hover .gallery-overlay, .gallery-card:focus-within .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 0.92rem; }

/* Photo collage — a staggered 2-column grid of photos (varied tile heights)
   used in place of a single split-media image, e.g. the homepage intro and
   the About "Who We Are" section. */
.photo-collage {
  columns: 2;
  column-gap: var(--space-sm);
}
.photo-collage img {
  display: block;
  width: 100%;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.photo-collage img:hover { transform: scale(1.04); box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.photo-collage img:nth-child(1) { height: 170px; }
.photo-collage img:nth-child(2) { height: 250px; }
.photo-collage img:nth-child(3) { height: 210px; }
.photo-collage img:nth-child(4) { height: 170px; }

/* Team / profile card — circular framed photo (colour cycling per pillar,
   same idea as the pillar cards) instead of a plain full-width rectangle,
   with the role as a pill badge rather than plain bold text. */
.team-card {
  --card-color: var(--pillar-1);
  text-align: center;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  overflow: visible;
  border-top: 5px solid var(--card-color);
}
.grid-4 > .team-card:nth-child(4n+1) { --card-color: var(--pillar-1); }
.grid-4 > .team-card:nth-child(4n+2) { --card-color: var(--pillar-2); }
.grid-4 > .team-card:nth-child(4n+3) { --card-color: var(--pillar-3); }
.grid-4 > .team-card:nth-child(4n+4) { --card-color: var(--pillar-4); }
.team-card .card-media {
  position: relative;
  width: 108px; height: 108px;
  margin: 0 auto var(--space-sm);
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  outline: 3px solid var(--card-color);
  box-shadow: var(--shadow-sm);
}
.team-card .card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 0;
  transition: transform var(--dur-slow) var(--ease);
}
.team-card:hover .card-media img { transform: scale(1.08); }
.team-card h3, .team-card > p { padding-inline: var(--space-xs); }
.team-card .role {
  display: inline-flex;
  margin-top: var(--space-2xs);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--card-color) 14%, white);
  color: color-mix(in srgb, var(--card-color) 70%, black);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Video card */
.video-card { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; aspect-ratio: 16/10; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.video-card:hover img { transform: scale(1.06); }
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-fast) var(--ease);
}
.video-card .play-btn::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  transform: scale(0.85);
}
.video-card:hover .play-btn { transform: translate(-50%,-50%) scale(1.1); }
.video-card:hover .play-btn::after { opacity: 1; transform: scale(1); }
/* Idle attention ring — pulses outward even before hover, so the play
   buttons read as "tap me" rather than a static icon. */
.video-card .play-btn::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.65);
  animation: playPulse 2.4s ease-out infinite;
}
@keyframes playPulse {
  0% { transform: scale(0.85); opacity: 0.65; }
  80%, 100% { transform: scale(1.4); opacity: 0; }
}
.video-card:hover .play-btn::before { animation-play-state: paused; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .video-card .play-btn::before { animation: none; opacity: 0; }
}
.video-card .play-btn svg { width: 25px; height: 25px; color: var(--brand-secondary-text); margin-left: 3px; }
.video-card .video-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-md);
  background: linear-gradient(0deg, rgba(20,49,58,0.85), rgba(20,49,58,0));
  color: var(--white);
}
.video-card .video-caption .label { font-size: 0.78rem; color: var(--pillar-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }

/* Testimonial card — big dashed-frame photo up top (reordered via flex,
   no HTML change), quote below, matching the reference parent-card layout. */
.testimonial-card {
  display: flex;
  flex-direction: column;
  max-width: 460px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}
.testimonial-card .quote-mark {
  order: 2;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-primary-light);
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  color: var(--brand-primary); line-height: 1;
  margin-top: var(--space-sm);
}
.testimonial-card p.quote { order: 3; color: var(--ink-700); font-size: 1.02rem; margin-top: 0.5rem; }
.testimonial-card .testimonial-lead-in { display: block; font-style: italic; color: var(--ink-700); margin-bottom: 0.4rem; }
.testimonial-card .quote-highlight { display: block; color: var(--brand-secondary-text); font-weight: 600; margin-bottom: 0.4rem; }
.testimonial-person {
  order: 1;
  display: flex; flex-direction: row; align-items: center;
  gap: 0.7rem; margin-top: 0;
}
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.testimonial-person .name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--ink-900); }
.testimonial-person .ref { font-size: 0.82rem; color: var(--ink-500); }

/* Testimonial scroller — 3 cards visible at once, arrow buttons scroll by
   one card. Built with native horizontal scroll + scroll-snap so it works
   with any number of cards (adding a 4th later needs no markup changes here). */
/* Side padding reserves dedicated space for the arrow buttons so they sit
   beside the cards, not floating on top of card content. */
.testimonial-scroller { position: relative; padding-inline: 60px; }
.testimonial-scroller .carousel-controls { left: 4px; right: 4px; }
.testimonial-scroller-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonial-scroller-track::-webkit-scrollbar { display: none; }
.testimonial-scroller-track .testimonial-card {
  flex: 0 0 calc((100% - 2 * var(--space-md)) / 3);
  max-width: none;
  margin-inline: 0;
  scroll-snap-align: start;
}
.carousel-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.carousel-arrow:disabled:hover { transform: none; background: rgba(255,255,255,0.9); }

/* Reel scroller — same horizontal-scroll mechanics as the testimonial
   scroller (js/scroller.js is selector-agnostic), sized for the portrait
   (9:16) session-highlight clips instead of square testimonial cards. */
.reel-scroller { position: relative; padding-inline: 60px; }
.reel-scroller .carousel-controls { left: 4px; right: 4px; }
.reel-scroller-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reel-scroller-track::-webkit-scrollbar { display: none; }
.reel-scroller-track .video-card {
  flex: 0 0 220px;
  aspect-ratio: 9/16;
  scroll-snap-align: start;
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--white);
  color: var(--brand-primary);
  font-size: 0.78rem; font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge[data-pillar="1"] { color: var(--pillar-1-text); }
.badge[data-pillar="2"] { color: var(--pillar-2-text); }
.badge[data-pillar="3"] { color: var(--pillar-3-text); }
.badge[data-pillar="4"] { color: var(--pillar-4-text); }
.badge[data-pillar="5"] { color: var(--pillar-5-text); }
/* Founder badges carry a real icon instead of the plain dot. */
.founder-badges .badge::before { display: none; }
.founder-badges .badge svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* Founder teaser (home page) — decorated circular photo (soft colour blob,
   dashed orbit ring, a couple of scattered doodle icons reused from the
   section-heading decor set) beside a two-tone heading and icon badges. */
/* ---------------------------------------------------------------------- */
.founder-teaser-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.founder-teaser-photo {
  position: relative;
  width: 260px; height: 260px;
  margin-inline: auto;
}
.ftp-blob {
  position: absolute; inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--brand-primary) 20%, white), color-mix(in srgb, var(--brand-primary) 6%, white));
}
/* The dashed "orbit" ring spins slowly and continuously — the doodle icons
   themselves stay put (no wiggle), only this dotted circle rotates. */
.ftp-ring {
  position: absolute; inset: -32px;
  border-radius: 50%;
  border: 3px dashed var(--brand-secondary);
  animation: ringSpin 18s linear infinite;
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ftp-ring { animation: none; }
}
.ftp-photo {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}
.ftp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ftp-doodle {
  position: absolute; z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(20,49,58,0.15));
}
.ftp-doodle svg { width: 26px; height: 26px; }
.ftp-doodle-star { top: -6px; right: 14px; color: var(--pillar-3); transform: rotate(-10deg); }
.ftp-doodle-heart { bottom: 26px; left: -16px; color: var(--pillar-2); transform: rotate(8deg); }
.ftp-doodle-book { bottom: -8px; right: 28px; color: var(--pillar-4); transform: rotate(-6deg); }
/* Solid white (not a light tint) — a light tan/gold tint nearly matched
   the founder section's own warm background and disappeared into it. */
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--brand-secondary-text);
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow-badge svg { width: 13px; height: 13px; }
.founder-teaser-heading {
  margin-top: var(--space-sm);
  line-height: 1.2;
}
.founder-teaser-heading .accent { display: block; color: var(--brand-secondary-text); }
.founder-quote {
  margin-top: var(--space-md);
  font-style: italic;
  color: var(--ink-700);
}
/* The default paragraph gray (--ink-500) only manages ~3.4:1 contrast on
   this section's tan background (it was tuned against the site's usual
   near-white background) — fails WCAG AA's 4.5:1 minimum. Darken every
   paragraph in this grid (bio text, expandable full-story copy) to
   --ink-700, which clears 6.7:1. */
.founder-teaser-grid p { color: var(--ink-700); }
@media (max-width: 900px) {
  .founder-teaser-grid { grid-template-columns: 1fr; text-align: center; }
  .founder-teaser-grid .founder-badges,
  .founder-teaser-grid .btn-text { justify-content: center; }
  .founder-teaser-grid .founder-badges { display: flex; flex-wrap: wrap; justify-content: center; }
  /* The blob (-18px) and orbit ring (-32px) extend outside the photo box, so
     the photo must leave room for them on both sides and above/below —
     otherwise the ring clips at narrow widths and crowds the eyebrow badge. */
  .founder-teaser-photo {
    width: min(260px, calc(100vw - 8rem));
    height: auto;
    aspect-ratio: 1;
    margin-block: 2.25rem 2.75rem;
  }
}
@media (max-width: 430px) {
  .founder-teaser-photo { margin-block: 2rem 2.5rem; }
  .ftp-ring { inset: -26px; border-width: 2px; }
  .ftp-blob { inset: -14px; }
  .founder-badges .badge { font-size: 0.74rem; }
}

/* ---------------------------------------------------------------------- */
/* CTA sections / strips                                                   */
/* ---------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: var(--white);
  padding: clamp(1.75rem, 1.5rem + 1.4vw, var(--space-2xl)) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 6s var(--ease); }
.cta-banner:hover img { transform: scale(1.06); }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15,42,66,0.92), rgba(0,42,82,0.78)); z-index: 0; }
.cta-banner .cta-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.88); margin-top: var(--space-sm); font-size: 1.08rem; }
.cta-banner .cta-actions { margin-top: var(--space-md); display: flex; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; }

.contact-strip {
  background: linear-gradient(155deg, var(--brand-primary), var(--brand-primary-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
}
.contact-strip-item {
  display: flex; align-items: center; gap: var(--space-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.contact-strip-item:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }
.contact-strip-item .icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  animation: iconPulse 1.7s ease-in-out infinite;
}
.contact-strip-item:nth-child(even) .icon-circle { animation-delay: 0.55s; }
.contact-strip-item .icon-circle svg { width: 22px; height: 22px; }
.contact-strip-item .label { font-size: 0.82rem; opacity: 0.85; }
.contact-strip-item .value { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; }

/* Icon feature cards (mission/vision, how support helps, etc.) */
.icon-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--brand-primary);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.icon-card.icon-card-accent { border-top-color: var(--brand-secondary); }
.icon-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.icon-card .icon-circle {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(150deg, var(--brand-primary-light), color-mix(in srgb, var(--brand-primary-light) 60%, white));
  border: 2px solid color-mix(in srgb, var(--brand-primary) 18%, white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  transition: transform var(--dur-fast) var(--ease);
  animation: iconPulse 1.8s ease-in-out infinite;
}
.icon-card:nth-child(even) .icon-circle { animation-delay: 0.6s; }
.icon-card:hover .icon-circle { animation-play-state: paused; transform: rotate(-6deg) scale(1.06); }
.icon-card .icon-circle svg { width: 28px; height: 28px; color: var(--brand-primary); }
.icon-card.icon-card-accent .icon-circle {
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand-secondary) 22%, white), color-mix(in srgb, var(--brand-secondary) 8%, white));
  border-color: color-mix(in srgb, var(--brand-secondary) 22%, white);
}
.icon-card.icon-card-accent .icon-circle svg { color: var(--brand-secondary-text); }
.icon-card h3 { margin-bottom: var(--space-2xs); }

/* Mission/Vision cards — a "floating badge" treatment: the icon sits in a
   solid gradient circle that pops half outside the card's own top edge,
   with a soft colour glow behind it, rather than a flat inline icon.
   Scoped via .mv-card so it doesn't touch the other .icon-card uses
   (e.g. donation.html). */
.mv-card {
  position: relative;
  overflow: visible;
  padding: 56px var(--space-lg) var(--space-lg);
  border: none;
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--brand-primary) 32%, white);
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--brand-primary) 30%, white);
}
.mv-card.icon-card-accent {
  background: color-mix(in srgb, var(--brand-secondary) 34%, white);
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--brand-secondary) 34%, white);
}
.mv-card:hover { box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--brand-primary) 24%, white); }
.mv-card.icon-card-accent:hover { box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--brand-secondary) 30%, white); }
.mv-card::before {
  content: "";
  position: absolute; top: -30px; left: var(--space-lg);
  width: 90px; height: 90px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 22%, white);
  z-index: 0;
}
.mv-card.icon-card-accent::before { background: color-mix(in srgb, var(--brand-secondary) 26%, white); }
.mv-card .icon-circle {
  position: absolute; top: -30px; left: var(--space-lg);
  z-index: 1;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--brand-primary);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md), 0 8px 22px -6px color-mix(in srgb, var(--brand-primary) 55%, transparent);
  margin: 0;
}
.mv-card.icon-card-accent .icon-circle { background: var(--brand-secondary); box-shadow: var(--shadow-md), 0 8px 22px -6px color-mix(in srgb, var(--brand-secondary) 55%, transparent); }
/* .icon-card.icon-card-accent .icon-circle svg (3 classes) otherwise beats
   .mv-card .icon-circle svg (2 classes) and recolours the icon dark gold —
   invisible against this badge's own dark-gold gradient background. Match
   its specificity here to actually win. */
.mv-card .icon-circle svg,
.mv-card.icon-card-accent .icon-circle svg { width: 32px; height: 32px; color: var(--white); }
.mv-card h3 {
  position: relative; z-index: 1;
  margin-top: var(--space-md);
  font-size: 1.5rem;
  color: var(--brand-primary);
}
.mv-card.icon-card-accent h3 { color: var(--brand-secondary-text); }
/* Default paragraph gray (--ink-500) only manages ~2.6–3:1 contrast on
   these now-darker tinted card backgrounds — well under WCAG AA's 4.5:1.
   Near-black clears 8–9:1. */
.mv-card p { position: relative; z-index: 1; margin-top: var(--space-xs); color: var(--ink-900); }

/* Contact info cards (contact page) — one card per pillar color, top accent + centered layout */
.info-card {
  --card-color: var(--brand-primary);
  --card-color-text: var(--brand-primary);
  background: var(--white);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--card-color);
  padding: var(--space-lg) var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.info-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.grid-5 > .info-card:nth-child(1) { --card-color: var(--pillar-1); --card-color-text: var(--pillar-1-text); }
.grid-5 > .info-card:nth-child(2) { --card-color: var(--pillar-2); --card-color-text: var(--pillar-2-text); }
.grid-5 > .info-card:nth-child(3) { --card-color: var(--pillar-3); --card-color-text: var(--pillar-3-text); }
.grid-5 > .info-card:nth-child(4) { --card-color: var(--pillar-4); --card-color-text: var(--pillar-4-text); }
.grid-5 > .info-card:nth-child(5) { --card-color: var(--pillar-5); --card-color-text: var(--pillar-5-text); }
.info-card .icon-circle {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--card-color) 20%, white), color-mix(in srgb, var(--card-color) 8%, white));
  border: 2px solid color-mix(in srgb, var(--card-color) 22%, white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-bottom: var(--space-2xs);
  transition: transform var(--dur-fast) var(--ease);
  animation: iconPulse 1.5s ease-in-out infinite;
}
.info-card:nth-child(even) .icon-circle { animation-delay: 0.5s; }
.info-card:hover .icon-circle { animation-play-state: paused; transform: rotate(-6deg) scale(1.06); }
.info-card .icon-circle svg { width: 24px; height: 24px; color: var(--card-color-text); }
.info-card h4 { margin-bottom: 0.15rem; }
.info-card p { margin: 0; }
.info-card a:hover { text-decoration: underline; color: var(--card-color-text); }

/* ---------------------------------------------------------------------- */
/* Carousel (hero + testimonials share this base)                          */
/* ---------------------------------------------------------------------- */
.carousel { position: relative; }
/* .carousel-track gets its own stacking context once the slide transform is
   active — being position:static, it can't carry an explicit z-index itself,
   so it's implicitly ranked below the hero-carousel's ::after curve divider
   (which has z-index:1) no matter what z-index the in-slide content claims
   internally. Make it positioned + explicitly ranked above the curve. */
.hero-carousel .carousel-track { position: relative; z-index: 2; }
.carousel-track { display: flex; height: 100%; transition: transform var(--dur-slow) var(--ease); }
.carousel-slide { flex: 0 0 100%; height: 100%; }
.carousel-controls {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: var(--space-md); right: var(--space-md);
  display: flex; justify-content: space-between;
  pointer-events: none; z-index: 3;
}
.carousel-arrow {
  pointer-events: all;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.carousel-arrow:hover { background: var(--brand-primary-dark); transform: scale(1.06); }
.carousel-arrow svg { width: 20px; height: 20px; color: var(--white); }
.carousel-dots {
  position: absolute; bottom: var(--space-md); left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 3;
}
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 0; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.carousel-dots button.is-active { background: var(--white); transform: scale(1.25); }
.carousel-dots.dark button { background: rgba(20,49,58,0.2); }
.carousel-dots.dark button.is-active { background: var(--brand-primary); }

/* Hero carousel specific — sized to the b1/b2/b3 banner artwork's own
   aspect ratio (2560×794) so the full design (logo, headline, callouts near
   the edges) always shows with no cropping, at any viewport width. */
.hero-carousel { position: relative; width: 100%; max-width: 100vw; aspect-ratio: 2560 / 794; overflow: hidden; background: #FBF3E4; }
.hero-carousel::after {
  content: "";
  position: absolute;
  bottom: -1px; left: -5%;
  width: 110%; height: 3vw;
  min-height: 18px; max-height: 38px;
  background: var(--bg-page);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
  pointer-events: none;
}
.hero-slide {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center;
}
.hero-slide > picture, .hero-slide > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* No dark gradient scrim here — the b1/b2/b3 banners already bake in their
   own text and contrast, so a tint would just muddy their light background. */
.hero-slide-content { position: relative; z-index: 2; max-width: 640px; color: var(--white); }
.hero-slide-content .brand-mark { margin-bottom: var(--space-md); }
.hero-slide-content .brand-mark img { height: 46px; }
.hero-slide-content h1 { color: var(--white); }
.hero-slide-content p { color: rgba(255,255,255,0.88); margin-top: var(--space-sm); font-size: 1.1rem; }
.hero-slide-content .hero-actions { margin-top: var(--space-lg); display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero-carousel .carousel-dots { bottom: calc(var(--space-md) + 20px); }

/* Testimonial carousel */
.testimonial-carousel .carousel-track { align-items: stretch; }
.testimonial-carousel .carousel-slide { padding: 0 var(--space-2xs); }

/* ---------------------------------------------------------------------- */
/* Accordion                                                                */
/* ---------------------------------------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--border-soft);
}
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-md) 0.25rem;
  background: transparent; border: 0; text-align: left;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.08rem; color: var(--ink-900);
  transition: color var(--dur-fast) var(--ease);
}
.accordion-trigger:hover { color: var(--brand-primary); }
.accordion-trigger .plus { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-primary-light); position: relative; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.accordion-trigger:hover .plus { background: var(--brand-primary); }
.accordion-trigger:hover .plus::before, .accordion-trigger:hover .plus::after { background: var(--white); }
.accordion-trigger[aria-expanded="true"] .plus { transform: rotate(90deg); }
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: ""; position: absolute; background: var(--brand-primary); border-radius: 2px;
}
.accordion-trigger .plus::before { top: 50%; left: 7px; right: 7px; height: 2px; transform: translateY(-50%); }
.accordion-trigger .plus::after { left: 50%; top: 7px; bottom: 7px; width: 2px; transform: translateX(-50%); transition: opacity var(--dur-fast) var(--ease); }
.accordion-trigger[aria-expanded="true"] .plus::after { opacity: 0; }
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-med) var(--ease);
}
.accordion-panel .accordion-panel-inner { padding-bottom: var(--space-md); }

/* ---------------------------------------------------------------------- */
/* Modal                                                                    */
/* ---------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15,33,39,0.72);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.modal-overlay.is-open { display: flex; opacity: 1; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: var(--space-lg);
  position: relative;
  transform: translateY(18px) scale(0.98);
  transition: transform var(--dur-med) var(--ease);
}
.modal-overlay.is-open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: var(--space-sm); right: var(--space-sm);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.modal-close:hover { background: var(--brand-primary-light); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

.video-modal .modal-box { padding: 0; max-width: 920px; background: black; }
.video-modal .video-frame-wrap { position: relative; width: 100%; aspect-ratio: 16/9; }
.video-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Local session-highlight clips are phone-recorded portrait video — the
   16/9 wrap above would letterbox them with huge empty side bars, so JS
   swaps this class in for [data-video-src] files ending .mp4/.webm/.mov. */
.video-modal .video-frame-wrap.is-portrait { aspect-ratio: 9/16; max-width: 420px; margin-inline: auto; }
.video-modal video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* Sits inside the box's own top-right corner, not above it (top:-50px
   used to push it there, but a tall portrait video leaves no room above
   the box for it to land in — it went off-screen and became unreachable
   on tall/portrait clips). */
.video-modal .modal-close { top: var(--space-sm); right: var(--space-sm); background: rgba(0,0,0,0.45); z-index: 2; }
.video-modal .modal-close:hover { background: rgba(0,0,0,0.65); }
.video-modal .modal-close svg { color: var(--white); }

/* Pillar detail modal content */
[data-modal-number] {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em;
  /* the inline style sets color from the raw pillar hex; darken it here for WCAG AA text contrast */
  filter: brightness(0.65);
}
.pillar-modal-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.pillar-modal-header .pillar-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--pillar-color) 14%, white); }
.pillar-modal-header .pillar-icon svg { width: 28px; height: 28px; color: var(--pillar-color); }
.pillar-modal-body img { border-radius: var(--radius-md); margin-bottom: var(--space-md); aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* ---------------------------------------------------------------------- */
/* Lightbox                                                                 */
/* ---------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(10,20,24,0.94);
  display: none; align-items: center; justify-content: center;
  padding: var(--space-md);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox-content { max-width: 900px; width: 100%; text-align: center; }
.lightbox-content img { max-height: 78vh; margin-inline: auto; border-radius: var(--radius-md); width: auto; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: var(--white); margin-top: var(--space-md); opacity: 0.85; }
.lightbox-close {
  position: absolute; top: var(--space-md); right: var(--space-md);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); transform: rotate(90deg); }
.lightbox-close svg { width: 20px; height: 20px; color: var(--white); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox-nav svg { width: 22px; height: 22px; color: var(--white); }
.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }

/* ---------------------------------------------------------------------- */
/* Timeline                                                                 */
/* ---------------------------------------------------------------------- */
/* Dark highlight card for a timeline sitting on a light/warm section
   background (e.g. the founder page's tan section) — the connector line
   below is semi-transparent (opacity 0.55) and all but disappeared against
   a similarly light background, so it needs real contrast under it. */
.timeline-panel-dark {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
}
.timeline-panel-dark .timeline-step h4 { color: var(--white); }
.timeline-panel-dark .timeline-step p { color: rgba(255,255,255,0.75); }
.timeline-panel-dark .timeline-step p strong { color: var(--white); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-sm); }
.timeline.timeline-4 { grid-template-columns: repeat(4, 1fr); }
/* Colorful gradient connector (cycles through the five pillar colors)
   instead of a flat gray dashed rule — reads as a "path" rather than a
   placeholder divider. */
.timeline::before {
  content: "";
  position: absolute; top: 28px; left: 4%; right: 4%; height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--pillar-1), var(--pillar-2), var(--pillar-3), var(--pillar-4), var(--pillar-5));
  opacity: 0.55;
}
.timeline.timeline-4::before { background: linear-gradient(90deg, var(--pillar-1), var(--pillar-2), var(--pillar-3), var(--pillar-4)); }
.timeline-step { position: relative; text-align: center; }
.timeline-step .step-num {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--step-color, var(--brand-primary)) 60%, white), color-mix(in srgb, var(--step-color, var(--brand-primary)) 24%, white));
  border: 2.5px solid var(--step-color, var(--brand-primary));
  color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  animation: iconPulse 1.6s ease-in-out infinite;
}
.timeline-step:nth-child(even) .step-num { animation-delay: 0.4s; }
.timeline-step:hover .step-num { animation-play-state: paused; background: var(--step-color, var(--brand-primary)); color: var(--white); transform: translateY(-5px) scale(1.06); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .timeline-step .step-num { animation: none; } }
.timeline-step h4 { margin-top: var(--space-sm); font-size: 0.95rem; }
/* Cycle each step through the five pillar colors for a livelier, more
   attractive path instead of a single flat teal repeated on every step. */
.timeline-step:nth-child(5n+1) { --step-color: var(--pillar-1); }
.timeline-step:nth-child(5n+2) { --step-color: var(--pillar-2); }
.timeline-step:nth-child(5n+3) { --step-color: var(--pillar-3); }
.timeline-step:nth-child(5n+4) { --step-color: var(--pillar-4); }
.timeline-step:nth-child(5n+5) { --step-color: var(--pillar-5); }
.timeline-step p { font-size: 0.82rem; margin-top: 0.2rem; }

/* Founder journey timeline (vertical) */
.journey-timeline { position: relative; padding-left: 36px; }
.journey-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border-soft); }
.journey-item { position: relative; padding-bottom: var(--space-lg); }
.journey-item:last-child { padding-bottom: 0; }
.journey-item::before {
  content: ""; position: absolute; left: -36px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-secondary); border: 4px solid var(--brand-primary-light);
}
.journey-item .year { font-family: var(--font-heading); font-weight: 700; color: var(--brand-secondary-text); font-size: 0.85rem; letter-spacing: 0.06em; }
.journey-item h4 { margin-top: 0.2rem; }

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */
.form-card { background: var(--white); border-radius: var(--radius-xl); padding: var(--space-md); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-field { margin-bottom: var(--space-md); position: relative; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block; font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem;
  color: var(--ink-900); margin-bottom: 0.4rem;
}
.form-field label .req { color: var(--error); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-soft);
  font-size: 0.98rem;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* Icon-prefixed inputs — icon sits inside a relative wrapper around just the
   input, so it centers on the input's own box rather than the whole field
   (which also includes the label). */
.input-wrap { position: relative; }
.input-wrap .field-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--ink-300);
  pointer-events: none;
  transition: color var(--dur-fast) var(--ease);
}
.input-wrap input, .input-wrap textarea { padding-left: 2.75rem; }
.input-wrap.input-wrap-textarea .field-icon { top: 1.7rem; transform: none; }
.form-field:focus-within .field-icon { color: var(--brand-primary); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--brand-primary-light);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--error); background: #FBF1F0; }
.form-error-msg {
  display: none;
  color: var(--error); font-size: 0.82rem; margin-top: 0.35rem;
}
.form-field.has-error .form-error-msg { display: block; }

/* Compact modifier — tighter spacing for form-cards paired next to shorter content (e.g. donation split layout) */
.form-card.form-card-compact { padding: var(--space-sm); }
.form-card-compact .form-field { margin-bottom: var(--space-2xs); }
.form-card-compact .form-field label { font-size: 0.8rem; margin-bottom: 0.25rem; }
.form-card-compact .form-field input,
.form-card-compact .form-field select,
.form-card-compact .form-field textarea { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.form-card-compact .input-wrap input,
.form-card-compact .input-wrap textarea { padding-left: 2.3rem; }
.form-card-compact .input-wrap .field-icon { width: 16px; height: 16px; left: 0.8rem; }
.form-card-compact .form-field textarea { min-height: 48px; }
.form-card-compact .form-grid { gap: 0.6rem; }
.form-card-compact .btn-block { padding-block: 0.65rem; }

.form-check {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.9rem; color: var(--ink-700);
}
.form-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-primary); flex-shrink: 0; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.form-success.is-visible { display: block; }
.form-success .icon-circle {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--brand-primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; margin-bottom: var(--space-md);
}
.form-success .icon-circle svg { width: 36px; height: 36px; color: var(--success); }

/* ---------------------------------------------------------------------- */
/* Filter tabs (gallery)                                                    */
/* ---------------------------------------------------------------------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: var(--space-lg); }
.filter-tab {
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.filter-tab:hover { border-color: var(--brand-primary); color: var(--brand-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.filter-tab.is-active { background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary); box-shadow: var(--shadow-md); }
.filter-tab.is-active:hover { color: var(--white); }

.masonry { columns: 3 220px; column-gap: var(--space-md); }
.masonry .gallery-card { break-inside: avoid; margin-bottom: var(--space-md); aspect-ratio: auto; }
.masonry .gallery-card img { aspect-ratio: 1/1; }
.masonry .gallery-card:nth-child(3n+1) img { aspect-ratio: 4/5; }
.masonry .gallery-card:nth-child(5n) img { aspect-ratio: 1/1.15; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: var(--white); padding-top: clamp(2.5rem, 2rem + 2vw, var(--space-2xl)); position: relative; overflow: hidden; }
/* The global `p { color: var(--ink-500) }` rule (style.css) is more
   specific than inheriting --white from .site-footer, so every paragraph
   in the footer needs this explicit override. */
.site-footer p { color: rgba(255,255,255,0.85); }
.site-footer::before {
  content: "";
  position: absolute;
  top: -18%; right: -8%;
  width: 30vw; height: 30vw;
  max-width: 380px; max-height: 380px;
  min-width: 200px; min-height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 130px; margin-bottom: var(--space-sm); }
.footer-collab {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}
.footer-brand p { max-width: 200px; }
.footer-tagline { font-family: var(--font-heading); font-weight: 600; color: var(--white); margin-top: var(--space-sm); font-size: 0.95rem; }
.footer-col h4 {
  position: relative;
  color: var(--white); margin-bottom: var(--space-md); font-size: 1.05rem;
  padding-bottom: 0.6rem;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px; border-radius: var(--radius-pill);
  background: var(--pillar-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a:not(.btn) {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--white);
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}
.footer-col > ul:not(.footer-contact) li > a::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pillar-3);
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer-col a:not(.btn):hover { color: var(--white); padding-left: 4px; }
.footer-col > ul:not(.footer-contact) li > a:hover::before { opacity: 1; transform: scale(1.4); }
.footer-contact li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: var(--space-md); }
.footer-contact svg {
  width: 36px; height: 36px; padding: 9px; box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  color: var(--pillar-3);
}
.footer-social { display: flex; gap: 0.65rem; margin-top: var(--space-md); }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.footer-social a:hover {
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 10px 18px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,255,255,0.35);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social a[aria-label="Facebook"] { background: linear-gradient(145deg, #3E9BFF, #1058C4); color: var(--white); }
.footer-social a[aria-label="Facebook"]:hover { background: linear-gradient(145deg, #52A7FF, #0d5fcb); }
.footer-social a[aria-label="Instagram"] { background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); color: var(--white); }
.footer-social a[aria-label="Instagram"]:hover { filter: brightness(1.1); }
.footer-social a[aria-label="YouTube"] { background: linear-gradient(145deg, #FF3D3D, #CC0000); color: var(--white); }
.footer-social a[aria-label="YouTube"]:hover { background: linear-gradient(145deg, #FF5555, #d90000); }

.footer-cta-col {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.footer-cta-col .btn-block { margin-top: var(--space-sm); color: var(--white); font-size: 1.05rem; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); flex-wrap: wrap;
  padding-block: var(--space-lg);
  font-size: 0.85rem;
}
.footer-policy { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.footer-policy a:hover { color: var(--white); }

/* ---------------------------------------------------------------------- */
/* Mobile sticky action bar                                                 */
/* ---------------------------------------------------------------------- */
.mobile-action-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 480;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 28px rgba(20,40,45,0.12);
  padding: 0.65rem var(--space-sm);
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
}
.mobile-action-bar .actions { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.6rem; }
.mobile-action-bar a, .mobile-action-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  padding: 0.6rem 0.3rem;
  border-radius: 14px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.72rem;
  transition: transform var(--dur-fast) var(--ease);
}
.mobile-action-bar a:active, .mobile-action-bar button:active { transform: scale(0.95); }
.mobile-action-bar svg { width: 20px; height: 20px; }
.mobile-action-bar .ma-whatsapp { background: #E8FBEF; color: #1FAE55; }
.mobile-action-bar .ma-call { background: var(--brand-primary-light); color: var(--brand-primary); }
.mobile-action-bar .ma-book { background: var(--brand-secondary); color: var(--ink-900); }

/* ---------------------------------------------------------------------- */
/* Back to top                                                              */
/* ---------------------------------------------------------------------- */
.back-to-top {
  position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: 460;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast), background var(--dur-fast) var(--ease);
}
.back-to-top:hover { background: var(--brand-primary-dark); transform: translateY(-3px); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------------- */
/* Bank / donation details                                                  */
/* ---------------------------------------------------------------------- */
.bank-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-md); }
.bank-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-soft);
  gap: var(--space-sm);
}
.bank-row:last-child { border-bottom: none; }
.bank-row .label { font-size: 0.82rem; color: var(--ink-500); }
.bank-row .value { font-family: var(--font-heading); font-weight: 600; color: var(--ink-900); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600; color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.copy-btn:hover { background: var(--brand-primary); color: var(--white); transform: translateY(-2px); }
.copy-btn.is-copied { background: #44A892; color: var(--ink-900); }
.qr-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-md); text-align: center; }
.qr-card img { width: 200px; margin-inline: auto; border-radius: var(--radius-sm); border: 8px solid var(--bg-soft); }

/* Recognition badge — compact trust-card pattern: a round framed photo
   beside a short claim, inside one elevated card. Used where a full-width
   photo block would be disproportionately tall next to a couple of lines
   of text (e.g. a single certificate/award photo). */
.recognition-badge {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
}
.recognition-badge .badge-photo {
  width: 140px; height: 140px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--brand-primary-light);
  /* Scale only (not the shared rotate wobble) — rotating a face photo
     reads as dizzying rather than playful. */
  animation: badgePhotoPulse 1.8s ease-in-out infinite;
}
@keyframes badgePhotoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) { .recognition-badge .badge-photo { animation: none; } }

/* ---------------------------------------------------------------------- */
/* Blob photo frame — organic border-radius + solid colour ring, used for  */
/* the programme-detail image (colour set per programme via inline style)  */
/* ---------------------------------------------------------------------- */
.blob-photo {
  /* fixed height, not aspect-ratio — same reliability fix applied to card
     photos; aspect-ratio was rendering far taller than intended */
  position: relative;
  border-radius: 30% 70% 44% 56% / 55% 45% 58% 42%;
  border: 6px solid var(--brand-primary);
  overflow: hidden;
  height: 340px;
  transition: border-radius var(--dur-slow) var(--ease), border-color var(--dur-med) var(--ease);
}
.blob-photo:hover { border-radius: 44% 56% 58% 42% / 45% 55% 42% 58%; }
#pd-detail-blob {
  height: auto;
  aspect-ratio: 4 / 3;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 28px;
  border-width: 5px;
  box-shadow: 0 20px 40px -14px rgba(20, 49, 58, 0.25);
}
#pd-detail-blob:hover { border-radius: 28px; }
#pd-overview-section { padding-block: 1.25rem; }
#pd-overview-section .split { align-items: start; }
.blob-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Founder panel — groups the bio split + journey timeline into one elevated
   card instead of two separate pieces sitting on the bare page background. */
.founder-panel {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.founder-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-sm); }

/* Blog article body — compact spacing between headings/paragraphs. Previously
   undefined, so every element touched with zero gap (global reset zeroes all
   heading/paragraph margins by default). */
.blog-article > * + * { margin-top: var(--space-sm); }
.blog-article > h2 + *, .blog-article > h3 + * { margin-top: var(--space-xs); }
.blog-article > h2 { margin-top: var(--space-lg); }
.blog-article > h3 { margin-top: var(--space-md); }
.blog-article > h2:first-child, .blog-article > h3:first-child { margin-top: 0; }
.blog-article p { line-height: 1.75; }

/* Article byline — author credit line under the title/meta */
.article-byline { display: flex; align-items: center; gap: 0.65rem; margin-top: var(--space-sm); }
.article-byline .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-primary-light); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem;
}
.article-byline .meta-text { font-size: 0.85rem; color: var(--ink-500); }
.article-byline .meta-text strong { color: var(--ink-900); }

/* Article table of contents */
.article-toc {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.article-toc h2 { font-size: 1rem; margin-bottom: var(--space-xs); }
.article-toc ul { display: flex; flex-direction: column; gap: 0.5rem; }
.article-toc a {
  color: var(--brand-primary); font-weight: 600; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color var(--dur-fast) var(--ease);
}
.article-toc a::before { content: "→"; }
.article-toc a:hover { color: var(--brand-secondary-text); }

/* Pull-quote / callout box within the article body */
.blog-article .article-callout {
  background: var(--brand-primary-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-block: var(--space-lg);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-900);
}

/* Boxed end-of-article CTA, replacing a bare button */
.article-cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.article-cta-box h3 { color: var(--white); margin-bottom: 0.3rem; }
.article-cta-box p { color: rgba(255,255,255,0.85); margin: 0; }

/* Skill list — sparkle-bullet list for the programme-detail "skills covered" */
.skill-panel {
  background: var(--white);
  border: 1px solid var(--border-color, rgba(20,49,58,0.1));
  border-left-width: 4px;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 12px 28px -18px rgba(20,49,58,0.25);
}
.skill-panel-title { font-weight: 600; color: var(--ink-900); margin: 0 0 var(--space-sm); }
.skill-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; }
.skill-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-700); font-size: 0.92rem; }
.skill-bullet {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
}
.skill-bullet svg { width: 10px; height: 10px; color: var(--white); }

@media (max-width: 560px) {
  .skill-list { grid-template-columns: 1fr; }
}

/* Programme detail extras (session options / support programmes) */
.pd-extras { margin-top: var(--space-md); display: grid; gap: var(--space-md); }
.pd-extras[hidden] { display: none; }
.pd-extra-title {
  margin: 0 0 var(--space-xs);
  font-size: 1.05rem; font-weight: 700; color: var(--ink-900);
}
.pd-extra-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pd-extra-list li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--pd-accent, var(--brand-primary));
  border-radius: var(--radius-pill);
  font-size: 0.95rem; font-weight: 600; color: var(--ink-900);
}
.pd-extra-list li .skill-bullet { width: 20px; height: 20px; background: var(--pd-accent, var(--brand-primary)); }
.pd-extra-list li .skill-bullet svg { width: 9px; height: 9px; }

/* ---------------------------------------------------------------------- */
/* Steps (programme detail "what a session looks like")                    */
/* ---------------------------------------------------------------------- */
.step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.step-item { text-align: center; }
.step-item .step-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-primary-light), color-mix(in srgb, var(--brand-primary-light) 55%, white));
  border: 2px solid color-mix(in srgb, var(--brand-primary) 18%, white);
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; margin-bottom: var(--space-md);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease);
}
.step-item:hover .step-icon { transform: translateY(-4px) scale(1.04); }
.step-item .step-icon svg { width: 28px; height: 28px; color: var(--brand-primary); }
.step-item .step-icon .step-num-badge {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-secondary); color: var(--ink-900);
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Pagination                                                               */
/* ---------------------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: var(--space-lg); }
.pagination a, .pagination span {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  border: 1.5px solid var(--border-soft); color: var(--ink-700);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pagination a:hover { border-color: var(--brand-primary); color: var(--brand-primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pagination .is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--white); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------------- */
/* Counter stat strip                                                       */
/* ---------------------------------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem); color: var(--brand-primary); }
.stat-item .label { font-size: 0.9rem; color: var(--ink-500); margin-top: 0.2rem; }

/* ---------------------------------------------------------------------- */
/* Impact / stats band — dark, fixed-attachment photo background           */
/* ---------------------------------------------------------------------- */
.stats-band {
  position: relative;
  color: var(--white);
  background-image: linear-gradient(rgba(15,42,66,0.90), rgba(0,42,82,0.86)), url("../assets/images/gallery/therapy-01.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
@media (max-width: 768px) {
  .stats-band { background-attachment: scroll; }
}
.stats-band .eyebrow { background: rgba(255,255,255,0.14); color: var(--white); }
.stats-band .eyebrow::before { background-color: var(--white); }
.stats-band .section-heading h2 { color: var(--white); }
.stats-band .section-heading p { color: rgba(255,255,255,0.82); }
.stats-band .stat-item .num { color: var(--white); }
.stats-band .stat-item .label { color: rgba(255,255,255,0.78); }
/* Curved divider into the next (light) section, same trick as .page-hero */
.stats-band::after {
  content: "";
  position: absolute;
  bottom: -1px; left: -5%;
  width: 110%; height: 3.5vw;
  min-height: 24px; max-height: 56px;
  background: var(--bg-soft);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* Subtle color-blob accents for otherwise-plain white sections            */
/* ---------------------------------------------------------------------- */
.section-accent { position: relative; overflow: hidden; }
.section-accent::before {
  content: "";
  position: absolute;
  top: -12%; left: -6%;
  width: 30vw; height: 30vw;
  max-width: 380px; max-height: 380px;
  min-width: 220px; min-height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pillar-1) 0%, transparent 68%);
  opacity: 0.07;
  filter: blur(6px);
  pointer-events: none;
}
.section-accent::after {
  content: "";
  position: absolute;
  bottom: -14%; right: -6%;
  width: 24vw; height: 24vw;
  max-width: 300px; max-height: 300px;
  min-width: 180px; min-height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pillar-4) 0%, transparent 68%);
  opacity: 0.07;
  filter: blur(6px);
  pointer-events: none;
}
.section-accent > .container { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------- */
/* Generic photo-background section — reusable anywhere via              */
/* class="section-photo tint-light|tint-dark" + inline background-image.  */
/* Same fixed-attachment parallax + tint-wash technique as #five-pillars   */
/* and .stats-band, just generalised so any section on any page can use it */
/* without a bespoke CSS rule per section.                                 */
/* ---------------------------------------------------------------------- */
.section-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
@media (max-width: 768px) {
  .section-photo { background-attachment: scroll; }
}
.section-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--photo-tint, linear-gradient(rgba(251,248,244,0.82), rgba(251,248,244,0.82)));
  z-index: 0;
  pointer-events: none;
}
.section-photo > .container { position: relative; z-index: 1; }
.section-photo.tint-light { --photo-tint: linear-gradient(rgba(251,248,244,0.82), rgba(251,248,244,0.82)); }
.section-photo.tint-dark {
  --photo-tint: linear-gradient(rgba(15,42,66,0.90), rgba(0,42,82,0.86));
  color: var(--white);
}
.section-photo.tint-dark .section-heading h2, .section-photo.tint-dark h2 { color: var(--white); }
.section-photo.tint-dark .section-heading p, .section-photo.tint-dark p { color: rgba(255,255,255,0.85); }
.section-photo.tint-dark .eyebrow { background: rgba(255,255,255,0.14); color: var(--white); }
.section-photo.tint-dark .eyebrow::before { background-color: var(--white); }

/* ---------------------------------------------------------------------- */
/* Founder / expandable content                                            */
/* ---------------------------------------------------------------------- */
.expand-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-med) var(--ease); }
.expand-content > div { overflow: hidden; }
.expand-content.is-open { grid-template-rows: 1fr; }
.expand-toggle {
  /* it's a <button>, so it inherits the browser's default border/background
     unless explicitly cleared — that stray border was showing as vertical
     bars on either side of the text */
  border: 0;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  padding-bottom: 0.6rem; /* override .btn-text's 2px underline gap */
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.expand-toggle:hover { background: var(--brand-primary); color: var(--white); border-color: transparent; }
.expand-toggle-label { display: inline; }
.expand-toggle[aria-expanded="true"] .expand-toggle-label::before { content: "Show Less"; }
.expand-toggle[aria-expanded="false"] .expand-toggle-label::before { content: "Read the Full Story"; }
