/* ==========================================================================
   Fund a Rafiki - Mental 360
   Campaign palette: Rafiki Sky Blue (#52A9DA), Mental 360 Navy (#073159)
   and Yellow (#FDC648).
   ========================================================================== */

:root {
  /* Mental 360 Brand Palette */
  --blue: #52a9da;
  --navy: #073159;
  --yellow: #fdc648;
  --blue-pale: #edf7fd;
  --blue-subtle: #f5fafd;
  
  /* Brand Neutrals & Typography */
  --muted: #5f7380;
  --line: #dce7ee;
  --line-soft: #eaf1f5;
  --white: #ffffff;
  
  
  /* Layout Spacing */
  --page-edge: clamp(16px, 4.5vw, 64px);
  --header-height: 94px;
  --ease-settle: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  color: var(--navy);
  background-color: var(--white);
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Clip sideways overflow without creating a scroll container for the sticky header. */
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

::selection {
  background: var(--blue);
  color: var(--navy);
}

button, a {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

/* ==========================================================================
   Branded Loading Intro
   Hidden by default so the site stays accessible without JavaScript.
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(ellipse at 50% 35%, var(--white) 15%, var(--blue-pale) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms var(--ease-settle), visibility 0s linear 300ms;
}

.is-loading .page-loader {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.intro-skipped .page-loader {
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.loader-content {
  text-align: center;
  max-width: 100%;
}

.is-loading .loader-content {
  animation: intro-content 340ms var(--ease-settle) both;
}

.loader-mark {
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.loader-mark img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.loader-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.loader-title > span {
  color: var(--navy);
}

.loader-message {
  margin-top: 12px;
  font-size: clamp(0.76rem, 2.8vw, 0.92rem);
  color: var(--muted);
}

.loader-track {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  overflow: hidden;
}

.is-loading .loader-track::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: var(--blue);
  animation: intro-sweep 680ms ease-in-out 2 both;
}

@keyframes intro-content {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes intro-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}
/* ==========================================================================
   Header & Navigation
   ========================================================================== */
main > section[id],
#payment {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.skip-link {
  position: fixed;
  z-index: 60;
  top: -70px;
  left: 20px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  padding: 0 var(--page-edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(220, 231, 238, 0.65);
  box-shadow: 0 6px 24px rgba(30, 37, 43, 0.08);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 48px);
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--navy);
  transition: right 0.25s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="location"] {
  color: var(--navy);
}

.main-nav a:hover::after,
.main-nav a[aria-current="location"]::after {
  right: 0;
}

.header-link {
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 100px;
  --control-elevation: 0 4px 14px rgba(7, 49, 89, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.header-link span {
  margin-left: 6px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--navy);
  transition: box-shadow 180ms ease;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: var(--blue);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
}

/* ==========================================================================
   Full-bleed campaign hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.hero-scene {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
}

.hero-inner {
  display: grid;
  align-content: center;
  min-height: clamp(565px, calc(100svh - var(--header-height)), 780px);
  max-width: 1640px;
  margin: 0 auto;
  padding: clamp(28px, 3.4vw, 68px) var(--page-edge) clamp(40px, 4.9vw, 75px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: min(40vw, 550px);
}

.section-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

h1, h2, h3 {
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 7.1vw, 6rem);
  line-height: 0.98;
  color: var(--white);
  font-weight: 600;
  margin: 0 0 24px;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-block: 0.065em;
}

.hero-line > * {
  display: block;
}

.hero-line em {
  display: block;
  font-style: normal;
  color: var(--blue);
}

.hero-lead {
  font-size: clamp(1.2rem, 1.55vw, 1.48rem);
  line-height: 1.6;
  color: var(--white);
  max-width: 620px;
  margin-bottom: 18px;
}

.hero-lead strong {
  font-weight: 600;
}

.hero-secondary {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--blue-pale);
  max-width: 580px;
  margin-bottom: 26px;
}

.hero-secondary strong {
  color: var(--white);
  font-weight: 600;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--blue);
  color: var(--navy);
  padding: 17px 34px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  min-height: 56px;
  --control-elevation: 0 8px 24px rgba(82, 169, 218, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-wrap .primary-button {
  background: var(--yellow);
  --control-elevation: 0 7px 18px rgba(7, 49, 89, 0.14);
}

.primary-button span {
  font-size: 1.15rem;
}

.hero-note {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--white);
}

.hero-credit {
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--blue-pale);
  font-weight: 600;
}

/* Full-width photo stage, with the campaign copy on the navy side. */
.hero-visual {
  position: absolute;
  inset: 0 0 0 24%;
  overflow: hidden;
  background: var(--navy);
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, #073159 0%, rgba(7, 49, 89, 0.96) 12%, rgba(7, 49, 89, 0.80) 28%, transparent 58%),
    linear-gradient(0deg, rgba(7, 49, 89, 0.78), transparent 30%);
  pointer-events: none;
}

.hero-frames {
  position: absolute;
  inset: 0;
}

.hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035) translateX(5px);
  /* Hold the outgoing image behind the fade so the photo stage never flashes navy. */
  transition: opacity 0s linear 320ms, visibility 0s linear 320ms, transform 0s linear 320ms;
}

.hero-frame--training { object-position: 58% 46%; }
.hero-frame--nakujali { object-position: 44% 38%; }
.hero-frame--care { object-position: 54% 39%; }

.hero-frame.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 320ms var(--ease-settle), transform 320ms var(--ease-settle);
}

.hero-visual.is-instant .hero-frame {
  transition: none;
}

.hero-scene .primary-button:focus-visible {
  outline-color: var(--white);
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-frames {
    inset: -12px;
    transition: transform 180ms var(--ease-settle);
  }
}

@media (max-width: 900px) {
  .hero-visual {
    inset-inline-start: 14%;
  }

  .hero-visual::after {
    background: linear-gradient(90deg, var(--navy), rgba(7, 49, 89, 0.92) 32%, rgba(7, 49, 89, 0.84) 46%, transparent 88%),
      linear-gradient(0deg, rgba(7, 49, 89, 0.76), transparent 34%);
  }

  .hero-frame--dialogues { object-position: 38% 45%; }

  .hero-inner {
    min-height: clamp(510px, calc(100svh - var(--header-height)), 650px);
  }

  .hero-copy {
    max-width: min(51vw, 32rem);
  }
}

@media (max-width: 600px) {
  .hero-scene {
    --hero-photo-room: clamp(165px, 26svh, 218px);
  }

  .hero-inner {
    align-content: end;
    min-height: clamp(530px, calc(100svh - var(--header-height)), 650px);
    padding-block: var(--hero-photo-room) 28px;
  }

  .hero-copy {
    max-width: 32rem;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 13vw, 4.25rem);
  }

  .hero-visual {
    inset: 0;
  }

  .hero-visual::after {
    background: linear-gradient(90deg, rgba(7, 49, 89, 0.40), transparent 76%),
      linear-gradient(180deg, rgba(7, 49, 89, 0.06), rgba(7, 49, 89, 0.14) 92px,
        rgba(7, 49, 89, 0.67) var(--hero-photo-room),
        rgba(7, 49, 89, 0.94) calc(var(--hero-photo-room) + 78px), var(--navy) 100%);
  }

  .hero-frame--dialogues { object-position: 55% 42%; inset-block-start: -32px; }
  .hero-frame--training { object-position: 56% 42%; inset-block-start: -42px; }
  .hero-frame--nakujali { object-position: 39% 38%; }
  .hero-frame--care { object-position: 43% 38%; }

  .hero-copy .hero-lead {
    font-size: 1.06rem;
    line-height: 1.48;
    margin-bottom: 14px;
  }

  .hero-secondary {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
}

@media (min-width: 601px) and (max-width: 900px) and (max-height: 500px) {
  .hero-inner {
    min-height: 0;
    padding-block: 26px 34px;
  }
}

.hero-bottom {
  max-width: 1640px;
  margin: 0 auto;
  padding: 18px var(--page-edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.hero-message {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.35;
}

.hero-message strong {
  color: var(--navy);
  font-weight: 600;
}

.hero-message-detail {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
}

.brand-bubble-icon {
  flex: none;
  color: var(--navy);
  fill: var(--yellow);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0;
  font-size: 0.8rem;
  text-transform: none;
  font-weight: 500;
  color: var(--navy);
}

.hero-arrow, .scroll-cue svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* ==========================================================================
   Rafiki Portrait Story
   These styles leave the existing hero photography untouched.
   ========================================================================== */
.rafiki-story {
  max-width: 1640px;
  margin: 0 auto;
  padding: 100px var(--page-edge) 0;
}

.rafiki-story-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: 100px;
  border-bottom: 1px solid var(--line);
}

.rafiki-portrait-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.08;
  overflow: hidden;
  border-radius: 180px 180px 28px 28px;
  background: var(--blue-pale);
}

.rafiki-portrait-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  left: 11%;
  top: 13%;
  border-radius: 50%;
  background: #c8e6f7;
}

.rafiki-orbit {
  position: absolute;
  inset: 8% 5% 12%;
  border: 1px solid rgba(34, 127, 182, 0.3);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.rafiki-stage-word {
  position: absolute;
  top: 6%;
  left: 8%;
  color: var(--white);
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
}

.rafiki-portrait {
  position: absolute;
  max-width: none;
  height: auto;
}

.rafiki-portrait-man {
  z-index: 1;
  width: 135%;
  left: -38%;
  bottom: -7%;
}

.rafiki-portrait-woman {
  z-index: 2;
  height: 100%;
  width: auto;
  right: -6%;
  bottom: -2%;
}

.rafiki-stage-note {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 18%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: clamp(10px, 1.3vw, 16px) clamp(13px, 1.8vw, 22px);
  border-radius: 18px;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(7, 49, 89, 0.18);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 600;
  transform: rotate(-5deg);
}

.rafiki-stage-note::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 10px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 5px 0 currentColor, 10px 0 currentColor;
}

.rafiki-stage-note::after {
  content: "";
  position: absolute;
  left: 17px;
  top: calc(100% - 1px);
  width: 14px;
  height: 10px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.rafiki-stage-caption {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  background: var(--blue);
  color: var(--navy);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rafiki-stage-caption > span {
  margin: 0 10px;
  opacity: 0.7;
}

.rafiki-story-copy h2 {
  margin: 16px 0 22px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.13;
}

.rafiki-story-copy h2 > span {
  color: var(--navy);
}

.rafiki-story-copy > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 500px;
}

.rafiki-story-copy > p:not(.section-kicker) + p {
  margin-top: 14px;
}

.rafiki-values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 22px 0;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.rafiki-values li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rafiki-values li > span {
  font-size: 0.66rem;
  color: var(--navy);
  font-weight: 500;
}

.rafiki-story-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 6px 0;
  border-bottom: 1px solid var(--blue);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.rafiki-story-link:hover {
  border-color: var(--navy);
}

/* ==========================================================================
   Giving & Impact Section
   ========================================================================== */
.giving-section {
  max-width: 1640px;
  margin: 0 auto;
  padding: 110px var(--page-edge) 120px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: 50px;
  align-items: end;
  margin-bottom: 50px;
}

.section-intro h2, .momentum h2, .faq-header h2 {
  font-size: clamp(1.85rem, 3.8vw, 3.8rem);
  line-height: 1.14;
  font-weight: 600;
  color: var(--navy);
  margin-top: 14px;
}

.section-intro h2 span {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.section-intro h2 span::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -0.07em 0.06em;
  height: 0.32em;
  border-radius: 0.1em;
  background: var(--yellow);
  transform-origin: left;
}

.section-intro > p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 580px;
}

.giving-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 50px;
  align-items: start;
}

.amounts {
  display: grid;
  gap: 12px;
  min-inline-size: 0;
  border: 0;
}

.amount-card {
  position: relative;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
  gap: clamp(12px, 2vw, 26px);
  background: var(--blue-subtle);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px 16px 16px;
  color: var(--navy);
  min-height: 106px;
  --impact-delay: 0ms;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease,
    opacity 360ms var(--ease-settle) var(--impact-delay),
    translate 490ms var(--ease-settle) var(--impact-delay), scale 130ms var(--ease-settle);
}

.amount-card:active {
  scale: 0.99;
}

.amount-value {
  display: grid;
  place-items: center;
  width: 3.75em;
  min-height: 2.2em;
  padding: 0.2em 0.34em;
  border-radius: 10px;
  background: var(--blue);
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 180ms ease;
}

.amount-label {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
}

.amount-arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--white);
  transition: background-color 180ms ease, color 180ms ease;
}

.amount-arrow svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amount-arrow path {
  transition: opacity 140ms ease, transform 180ms var(--ease-settle);
}

.amount-check {
  opacity: 0;
  transform: translateX(-3px);
}

.amount-card:has(input:focus-visible) {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.amount-card:has(input:checked) {
  border-color: var(--navy);
  background: var(--white);
}

.amount-card:has(input:checked) .amount-value {
  background: var(--yellow);
}

.amount-card:has(input:checked) .amount-arrow {
  background: var(--navy);
  color: var(--white);
}

.amount-card:has(input:checked) .amount-forward {
  opacity: 0;
  transform: translateX(3px);
}

.amount-card:has(input:checked) .amount-check {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .amount-card:hover {
    border-color: var(--navy);
    box-shadow: 0 4px 20px rgba(82, 169, 218, 0.28);
  }
  .amount-card:not(:has(input:checked)):hover .amount-forward { transform: translateX(2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .has-reveal .section-intro.is-revealed h2 span::before {
    animation: impact-underline 550ms var(--ease-settle) both;
  }

  .has-reveal .amounts.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .has-reveal .amounts.reveal:not(.is-revealed):not(:focus-within) .amount-card {
    opacity: 0;
    translate: 0 13px;
  }

  .amount-card:nth-child(2) { --impact-delay: 60ms; }
  .amount-card:nth-child(3) { --impact-delay: 120ms; }
  .amounts:focus-within .amount-card {
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, scale 130ms var(--ease-settle);
  }
}

@keyframes impact-underline {
  from { transform: scaleX(0); }
}

.custom-gift {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 4px 0;
}

.custom-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.custom-choice input {
  accent-color: var(--navy);
}

.custom-field {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 9rem;
  padding: 0 10px;
  border: 1px solid var(--muted);
  border-radius: 10px;
}

.custom-field input {
  min-width: 0;
  width: 100%;
  padding: 7px 3px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.custom-amount-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.donation-return:not([hidden]) {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--navy);
}

.payment-card {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--navy);
  border-radius: 26px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 20px 48px rgba(7, 49, 89, 0.18);
}

.payment-card h3 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.18;
}

.payment-copy {
  color: var(--blue-pale);
  margin-bottom: 8px;
}

.payment-card label {
  font-size: 0.9rem;
  font-weight: 600;
}

.donor-email {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
}

.payment-card :focus-visible {
  outline-color: var(--yellow);
}

.payment-card .payment-submit {
  justify-content: center;
  margin-top: 8px;
  background: var(--yellow);
  color: var(--navy);
  text-align: center;
}

.giving-layout .payment-submit {
  gap: 10px;
  padding-inline: 14px;
}

.payment-submit .payment-submit-label {
  font-size: inherit;
  text-wrap: balance;
}

.payment-card .payment-submit:disabled {
  cursor: progress;
  background: color-mix(in srgb, var(--yellow) 72%, var(--white));
}

.payment-submit:disabled [aria-hidden="true"] {
  display: none;
}

.payment-result {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 20px;
  background: var(--blue-pale);
}

.payment-result .payment-card {
  max-width: 38rem;
}

.payment-result h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.2;
}

.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.payment-result-reference {
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.payment-recheck {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Campaign progress
   ========================================================================== */
.momentum {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.momentum-inner {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 var(--page-edge);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 70px;
}

.momentum .section-kicker {
  color: var(--yellow);
}

.momentum h2 {
  color: var(--white);
  margin: 20px 0;
}

.momentum-line,
.momentum-line > span {
  display: block;
}

.momentum-copy > p:last-child {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 520px;
  color: var(--blue-pale);
}

.total-card {
  background: var(--white);
  color: var(--navy);
  padding: 44px 50px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.total-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
}

.total-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--yellow);
}

.total-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.total-card strong {
  display: block;
  overflow: hidden;
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 12px 0 10px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

#raised-total {
  display: inline-block;
}

.total-updated {
  color: var(--muted);
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: no-preference) {
  .has-reveal .momentum-copy.reveal {
    transform: none;
    transition: none;
  }

  .has-reveal .momentum-copy.is-revealed .section-kicker {
    animation: momentum-copy-in 360ms var(--ease-settle) both;
  }

  .has-reveal .momentum-copy.is-revealed .momentum-line {
    overflow: hidden;
  }

  .has-reveal .momentum-copy.is-revealed .momentum-line > span {
    animation: line-arrive 500ms 70ms var(--ease-settle) backwards;
  }

  .has-reveal .momentum-copy.is-revealed .momentum-line:nth-child(2) > span {
    animation-delay: 140ms;
  }

  .has-reveal .momentum-copy.is-revealed > p:last-child {
    animation: momentum-copy-in 420ms 225ms var(--ease-settle) both;
  }

  .has-reveal .total-card.is-revealed .total-icon path {
    stroke-dasharray: 1;
    animation: total-trace 440ms var(--total-entrance-delay, 0ms) var(--ease-settle) both;
  }

  .has-reveal .total-card.is-revealed #raised-total {
    animation: total-arrive 540ms calc(var(--total-entrance-delay, 0ms) + 110ms) var(--ease-settle) both;
  }
}

@media (min-width: 1025px) {
  .total-card { --total-entrance-delay: 180ms; }
}

@keyframes momentum-copy-in {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes total-trace {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes total-arrive {
  from { opacity: 0; transform: translateY(75%); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  max-width: 1640px;
  margin: 0 auto;
  padding: 120px var(--page-edge) 100px;
}

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.faq-header {
  position: sticky;
  top: 120px;
}

.faq-header h2 span {
  color: var(--navy);
}

.faq-intro {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-top: 18px;
  max-width: 440px;
}

.faq-direct-help {
  margin-top: 30px;
  padding: 20px 24px;
  background: var(--blue-pale);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 440px;
}

.faq-direct-help span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--navy);
}

.faq-direct-help a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
}

.faq-direct-help a:hover {
  text-decoration: underline;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  cursor: pointer;
  list-style: none;
  width: 100%;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 8px;
  transition: box-shadow 180ms ease;
}

.faq-trigger:hover > span:first-child {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.faq-symbol {
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-trigger::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-symbol {
  transform: rotate(45deg);
}

.faq-body {
  padding-bottom: 26px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
}

.faq-body strong {
  color: var(--navy);
}

.faq-body a {
  color: var(--navy);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Last Call Section
   ========================================================================== */
.last-call {
  text-align: center;
  padding: 120px 20px 130px;
  background: radial-gradient(circle at 50% 100%, var(--blue-pale) 0%, transparent 60%);
}

.last-call p {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.last-call h2 {
  font-size: clamp(2.3rem, 5.5vw, 5.8rem);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 600;
  margin-top: 14px;
}

.last-call h2 span {
  color: var(--navy);
}

.last-call .primary-button {
  margin-top: 32px;
}

.last-call-with-rafiki {
  padding: 56px var(--page-edge) 0;
  text-align: left;
  overflow: hidden;
  background: var(--blue-pale);
}

.last-call-inner {
  max-width: 1512px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
}

.last-call-copy {
  position: relative;
  z-index: 2;
  padding: 40px 0 80px;
}

.last-call-portrait {
  position: relative;
  isolation: isolate;
  align-self: end;
}

.last-call-orbit {
  position: absolute;
  z-index: -1;
  width: 80%;
  aspect-ratio: 1;
  left: 10%;
  top: 6%;
  border: 1px solid rgba(34, 127, 182, 0.25);
  border-radius: 50%;
  background: #d4ecfa;
  box-shadow: 0 0 0 22px rgba(212, 236, 250, 0.3);
}

.last-call-portrait img {
  width: 100%;
  height: auto;
  position: relative;
}

.last-call-portrait-note {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 28px rgba(30, 37, 43, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--page-edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-text strong {
  color: var(--navy);
  font-size: 0.96rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.footer-meta a {
  color: var(--navy);
  font-weight: 600;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Mobile Sticky Button & Navigation Drawer Helpers
   ========================================================================== */
.mobile-donate {
  display: none;
}

.nav-donate-mobile {
  display: none;
}

/* ==========================================================================
   Progressive Scroll Reveal (Accessible & Fallback-Safe)
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
}

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 360ms var(--ease-settle), transform 480ms var(--ease-settle);
}

.has-reveal .reveal[data-reveal="left"] {
  transform: translateX(-20px);
}

.has-reveal .reveal[data-reveal="right"] {
  transform: translateX(20px);
}

.has-reveal .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.has-reveal :is(.payment-card, .faq-list).reveal {
  transform: none;
  transition: opacity 260ms var(--ease-settle);
}

/* ==========================================================================
   Motion: headline and photographs arrive as a single composition
   ========================================================================== */
.is-ready:not(.intro-skipped) .hero-line > * {
  animation: line-arrive 560ms var(--ease-settle) both;
}

.is-ready:not(.intro-skipped) .hero-line:nth-child(2) > * { animation-delay: 65ms; }

.is-ready:not(.intro-skipped) :is(.hero-lead, .hero-secondary) {
  animation: hero-rise 460ms 105ms var(--ease-settle) both;
}

@media (prefers-reduced-motion: no-preference) {
  .is-ready:not(.intro-skipped) .hero-visual:not(.has-switched) .hero-frame--dialogues {
    animation: hero-photo-open 680ms var(--ease-settle) backwards;
  }
}

.has-reveal .rafiki-portrait-stage.is-revealed .rafiki-stage-note {
  animation: note-arrive 430ms 100ms var(--ease-settle) both;
}

.hero-arrow, .scroll-cue svg {
  transition: transform 180ms var(--ease-settle);
}

.primary-button:active, .header-link:active {
  transform: scale(0.98);
  transition-duration: 120ms;
}

.rafiki-portrait {
  transition: transform 260ms var(--ease-settle);
}

.rafiki-orbit {
  transition: transform 290ms var(--ease-settle);
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover .hero-arrow { transform: translate(2px, -2px); }
  .scroll-cue:hover svg { transform: translateY(3px); }
  .rafiki-portrait-stage:hover .rafiki-portrait-man { transform: translateY(-5px); }
  .rafiki-portrait-stage:hover .rafiki-portrait-woman { transform: translateY(-8px); }
  .rafiki-portrait-stage:hover .rafiki-orbit { transform: rotate(-8deg); }
}

.has-reveal .reveal:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}

@keyframes line-arrive {
  from { transform: translateY(106%); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(9px); }
}

@keyframes hero-photo-open {
  from { transform: scale(1.035); clip-path: inset(0 0 0 9%); }
  to { transform: scale(1); clip-path: inset(0); }
}

@keyframes note-arrive {
  from { opacity: 0; transform: translateY(16px) rotate(-8deg); }
  to { opacity: 1; transform: translateY(0) rotate(-5deg); }
}

/* ==========================================================================
   Responsive Breakpoints Across All Devices
   ========================================================================== */

/* 1. Large Laptops & Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  .giving-layout {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  }
}

/* 2. Tablet Landscape / Medium Screens (max-width: 1024px) */
@media (max-width: 1024px) {
  .rafiki-story-inner {
    gap: 36px;
  }

  .rafiki-portrait-stage {
    aspect-ratio: 0.85;
  }

  .rafiki-portrait-man {
    width: 168%;
    left: -58%;
  }

  .rafiki-portrait-woman {
    height: 86%;
    right: -18%;
  }

  .rafiki-stage-word {
    top: 8%;
  }

  .rafiki-stage-note {
    bottom: 14%;
    right: 4%;
    padding: 10px 14px;
  }

  .giving-section {
    padding: 80px var(--page-edge);
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .giving-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .payment-card {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }

  .momentum {
    padding: 80px 0;
  }

  .momentum-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-section {
    padding: 90px var(--page-edge) 80px;
  }

  .faq-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-header {
    position: static;
    max-width: 100%;
  }

  .faq-intro,
  .faq-direct-help {
    max-width: 100%;
  }
}

/* 3. Tablet Portrait & Large Handsets (max-width: 860px) */
@media (max-width: 860px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    padding: 0 var(--page-edge);
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .header-link {
    display: none;
  }

  .has-js .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: var(--page-edge);
    right: var(--page-edge);
    padding: 20px 22px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(30, 37, 43, 0.16);
    gap: 2px;
  }

  .main-nav.is-open {
    display: flex;
    animation: menuFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .main-nav a {
    padding: 13px 4px;
    font-size: 0.96rem;
    color: var(--navy);
    border-bottom: 1px solid var(--line-soft);
  }

  .main-nav a:last-of-type {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-donate-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 14px 22px;
    background: var(--blue);
    color: var(--navy) !important;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.92rem;
    --control-elevation: 0 6px 18px rgba(82, 169, 218, 0.35);
    transition: color 180ms ease, box-shadow 180ms ease;
    border-bottom: none !important;
    text-align: center;
  }

  .nav-donate-mobile:hover,
  .nav-donate-mobile:active {
    background: var(--blue);
  }

  html:not(.has-js) .site-header {
    position: relative;
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  html:not(.has-js) .main-nav {
    position: static;
    display: flex;
    order: 2;
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html:not(.has-js) .nav-donate-mobile {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 36px var(--page-edge) 40px;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Standard Mobile (max-width: 760px) */
@media (max-width: 760px) {
  .has-reveal .reveal[data-reveal]:not(.is-revealed) {
    transform: translateY(24px);
  }

  .rafiki-story {
    padding-top: 64px;
  }

  .rafiki-story-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-bottom: 64px;
  }

  .rafiki-portrait-stage {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 1.08;
    border-radius: 140px 140px 24px 24px;
  }

  .rafiki-portrait-man {
    width: 135%;
    left: -38%;
  }

  .rafiki-portrait-woman {
    height: 100%;
    right: -6%;
  }

  .rafiki-stage-word {
    font-size: clamp(5rem, 20vw, 8rem);
    top: 6%;
  }

  .rafiki-stage-note {
    bottom: 18%;
    right: 5%;
  }

  .rafiki-story-copy {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .rafiki-story-copy h2 {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

  .last-call.last-call-with-rafiki {
    padding: 64px var(--page-edge) 0;
    text-align: center;
  }

  .last-call-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .last-call-copy {
    padding: 0;
  }

  .last-call-portrait {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-copy h1 {
    margin-bottom: 18px;
  }

  .hero-lead {
    line-height: 1.5;
  }

  .hero-credit {
    margin-top: 12px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px var(--page-edge);
  }

  .mobile-donate {
    position: fixed;
    z-index: 50;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blue);
    color: var(--navy);
    border-radius: 100px;
    --control-elevation: 0 10px 28px rgba(82, 169, 218, 0.45);
    padding: 15px 24px;
    font-size: 0.94rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
  }

  .mobile-donate:active {
    transform: scale(0.98);
  }

  footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* 5. Mobile Small & Phablets (max-width: 580px) */
@media (max-width: 580px) {
  :root {
    --header-height: 68px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .hero-cta-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta-wrap .primary-button {
    width: 100%;
  }

  .hero-note {
    text-align: center;
  }

  .giving-section {
    padding: 60px var(--page-edge) 70px;
  }

  .giving-layout {
    gap: 22px;
  }

  .giving-layout .payment-submit {
    gap: 8px;
    padding-inline: 10px;
    font-size: clamp(0.88rem, 3.65vw, 0.98rem);
  }

  .amount-card {
    padding: 12px 14px 12px 12px;
    min-height: 78px;
  }

  .payment-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .momentum {
    padding: 60px 0;
  }

  .total-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .total-card strong {
    font-size: clamp(2rem, 9.5vw, 3.2rem);
    margin: 8px 0 10px;
  }

  .faq-section {
    padding: 60px var(--page-edge);
  }

  .faq-trigger {
    padding: 20px 0;
    font-size: 1.05rem;
  }

  .faq-body {
    padding-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .last-call {
    padding: 80px 16px 90px;
  }

  .last-call .primary-button {
    width: 100%;
    max-width: 320px;
  }
}

/* 6. Extra Small Screens (iPhone SE, Galaxy Z Flip, 320px - 380px) */
@media (max-width: 380px) {
  :root {
    --page-edge: 14px;
  }

  .amount-card {
    padding: 10px;
    gap: 10px;
  }

  .amount-value {
    font-size: 1.35rem;
  }

  .amount-label {
    font-size: 0.82rem;
  }


  .total-card {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .total-card strong {
    font-size: 1.95rem;
  }

  .mobile-donate {
    left: 10px;
    right: 10px;
    padding: 13px 18px;
    font-size: 0.88rem;
  }
}

@media (max-width: 360px) {
  .hero-scene {
    --hero-photo-room: clamp(112px, 20svh, 152px);
  }

  .hero-copy h1 {
    font-size: 2.75rem;
    margin-bottom: 12px;
  }

  .hero-copy .hero-lead {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .hero-secondary {
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .hero-cta-wrap .primary-button {
    padding-block: 13px;
  }
}

/* ==========================================================================
   Reduced Motion Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .has-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .primary-button:active, .header-link:active, .mobile-donate:active,
  .primary-button:hover .hero-arrow, .scroll-cue:hover svg,
  .rafiki-portrait-stage:hover .rafiki-portrait {
    transform: none;
  }

  .amount-card {
    transition: border-color 150ms ease, background-color 150ms ease !important;
    scale: none !important;
  }

  .amount-arrow path {
    transform: none !important;
  }
}


.mobile-donate[hidden] { display: none; }

/* One highlight treatment for buttons, donation links and FAQ disclosures. */
:is(button, .primary-button, .header-link, .nav-donate-mobile, .mobile-donate, .faq-trigger) {
  box-shadow: var(--control-elevation, 0 0 0 transparent),
    var(--control-rim, 0 0 0 transparent), var(--control-glow, 0 0 0 transparent);
}

:is(.hero-cta-wrap .primary-button, .payment-submit) {
  --control-rim-color: rgba(253, 198, 72, 0.78);
  --control-glow-color: rgba(253, 198, 72, 0.52);
}

:is(button, .primary-button, .header-link, .nav-donate-mobile, .mobile-donate, .faq-trigger):not(:disabled):focus-visible {
  --control-rim: 0 0 0 2px var(--control-rim-color, rgba(82, 169, 218, 0.72));
  --control-glow: 0 4px 20px var(--control-glow-color, rgba(82, 169, 218, 0.52));
}

@media (hover: hover) and (pointer: fine) {
  :is(button, .primary-button, .header-link, .nav-donate-mobile, .mobile-donate, .faq-trigger):not(:disabled):hover {
    --control-rim: 0 0 0 2px var(--control-rim-color, rgba(82, 169, 218, 0.72));
    --control-glow: 0 4px 20px var(--control-glow-color, rgba(82, 169, 218, 0.52));
  }
}
