/* ==========================================================================
   Mtukufu Simba Foundation
   ========================================================================== */

:root {
  --cream: #F7F1E5;
  --paper: #FFFCF6;
  --sand: #EFE5D2;
  --ink: #15241B;
  --ink-soft: #4A584F;
  --forest: #173F2F;
  --forest-2: #1F5540;
  --moss: #3C7A5A;
  --sun: #E3A33C;
  --sun-soft: #F6DDAA;
  --clay: #B95A35;
  --clay-deep: #9A4728;
  --clay-soft: #F2D3C2;
  --water: #2A7782;
  --water-soft: #D3E9E8;
  --line: rgba(21, 36, 27, .12);
  --line-light: rgba(255, 252, 246, .16);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(21, 36, 27, .06), 0 4px 12px -6px rgba(21, 36, 27, .12);
  --shadow: 0 1px 2px rgba(21, 36, 27, .05), 0 24px 48px -24px rgba(21, 36, 27, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Subtle paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
}

h1 em, h2 em, h3 em, .mv-text em {
  font-style: italic;
  font-weight: 300;
  color: var(--clay);
}

::selection { background: var(--sun-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 8px;
}

[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

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

.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;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: .7em 1.1em;
  background: var(--forest);
  color: var(--paper);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type helpers ---------- */

.display {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  letter-spacing: -.03em;
}

.h3 {
  font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem);
}

.lead {
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .45em 1em .45em .8em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, .6);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(227, 163, 60, .22);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  margin-bottom: 1.4rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
}

.section-label span {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em;
  height: 2.4em;
  padding-inline: .5em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .85em;
  letter-spacing: .04em;
}

.section-label--light { color: var(--sun); }

.section { padding-block: clamp(80px, 6vw + 48px, 140px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 1em 1.6em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-2); box-shadow: 0 12px 28px -12px rgba(23, 63, 47, .7); }

.btn-ghost { border-color: rgba(21, 36, 27, .22); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(21, 36, 27, .04); }

.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #EDB255; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .45); }

.btn-sm { padding: .75em 1.25em; font-size: .875rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile nav and collapse it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 241, 229, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.site-header.is-scrolled::before { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  transition: transform .6s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-12deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

.brand-sub {
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--clay);
}

.brand--light { color: var(--paper); }
.brand--light .brand-sub { color: var(--sun); }

.nav { display: flex; align-items: center; gap: 28px; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  position: relative;
  display: block;
  padding: .55em .9em;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s, background-color .2s;
}

.nav-links a:hover { color: var(--ink); background: rgba(21, 36, 27, .05); }
.nav-links a.is-active { color: var(--forest); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .15em;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--sun);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 19px; }
.nav-toggle-bar:nth-child(2) { top: 25px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 221, 170, .75), rgba(246, 221, 170, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hero-copy .eyebrow { margin-bottom: 1.75rem; }
.hero-copy .display { margin-bottom: 1.6rem; }
.hero-copy .lead { margin-bottom: 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.75rem; }

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.pillar {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .5em .95em .5em .65em;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.pillar .icon {
  width: 1.75em;
  height: 1.75em;
  padding: .3em;
  border-radius: 50%;
}
.pillar--food .icon { background: var(--sun-soft); color: #8A5A12; }
.pillar--water .icon { background: var(--water-soft); color: var(--water); }
.pillar--people .icon { background: var(--clay-soft); color: var(--clay-deep); }

.hero-art {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.arch-outline {
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1.5px solid rgba(185, 90, 53, .45);
  border-radius: 999px 999px 28px 28px;
  pointer-events: none;
}

.savanna { width: 100%; height: 100%; }

.savanna .sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: sun-rise 1.6s var(--ease) both .2s;
}

@keyframes sun-rise {
  from { transform: translateY(40px) scale(.94); opacity: .4; }
  to { transform: none; opacity: 1; }
}

.badge {
  position: absolute;
  top: 6%;
  left: -44px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 28s linear infinite;
}

.badge-ring text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  fill: var(--forest);
}

.badge-lion {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  right: -36px;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 16px 16px;
  border-radius: 20px;
  background: rgba(255, 252, 246, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.float-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--sun);
}

.float-label {
  margin-bottom: 2px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
}

.float-value { font-size: .85rem; color: var(--ink-soft); line-height: 1.45; }
.float-value strong { color: var(--ink); font-weight: 800; letter-spacing: .02em; }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
  padding-block: 22px;
  border-block: 1px solid rgba(0, 0, 0, .1);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}

.ticker-group { display: flex; align-items: center; flex: none; }

.ticker span {
  padding-inline: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  white-space: nowrap;
}

.ticker i { font-style: normal; color: var(--sun); font-size: .9rem; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.about-copy .h2 { margin-bottom: 2rem; max-width: 14em; }

.prose { display: grid; gap: 1.1rem; max-width: 36em; color: var(--ink-soft); }

.prose-lead {
  font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
}

.pull-quote {
  position: relative;
  margin: 2.75rem 0 0;
  padding: 1.75rem 0 0 0;
  border-top: 1px solid var(--line);
  max-width: 30em;
}

.pull-quote-mark { width: 36px; margin-bottom: 1rem; fill: var(--sun); }

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--forest);
}

.partner-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.partner-kicker {
  margin-bottom: .6rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--water);
}

.partner-card .h3 { max-width: 14em; margin-bottom: 1.25rem; }

.venn { width: 100%; max-width: 380px; margin: 0 auto; }
.venn-circles circle { fill-opacity: .2; stroke-opacity: .55; stroke-width: 1.5; }

.venn-labels text {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  fill: var(--ink);
}

.venn-center text {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .02em;
  fill: var(--paper);
}

.partner-note {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---------- Mission & Vision ---------- */

.mv {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
}

.mv-rays {
  position: absolute;
  top: 50%;
  right: -260px;
  width: 760px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(227, 163, 60, .13) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, transparent 22%, #000 23%, #000 70%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 22%, #000 23%, #000 70%, transparent 100%);
  animation: spin 160s linear infinite;
  pointer-events: none;
}

.mv .container { position: relative; }

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
}

.mv-item { padding-top: 2rem; border-top: 1px solid var(--line-light); }

.mv-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sun);
}

.mv-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(227, 163, 60, .45);
  border-radius: 50%;
}

.mv-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.35rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -.015em;
}

.mv-text em { color: var(--sun); }

/* ---------- Programs ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(48px, 5vw, 72px);
}

.section-head .h2 { max-width: 13em; }

.section-intro { color: var(--ink-soft); max-width: 28em; font-size: 1.08rem; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.program {
  --tint: var(--sun-soft);
  --accent: #8A5A12;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.program:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.program--water { --tint: var(--water-soft); --accent: var(--water); }
.program--people { --tint: var(--clay-soft); --accent: var(--clay-deep); }

.program-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 172px;
  padding: 24px 28px;
  overflow: hidden;
  background: var(--tint);
}

.program-top::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 0 0 28px color-mix(in srgb, var(--accent) 6%, transparent), 0 0 0 56px color-mix(in srgb, var(--accent) 4%, transparent);
}

.program-letter {
  position: relative;
  font-family: var(--font-display);
  font-size: 6rem;
  font-style: italic;
  font-weight: 300;
  line-height: .8;
  color: var(--accent);
  opacity: .9;
}

.program-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.program-icon .icon { width: 30px; height: 30px; }

.program-body { display: flex; flex-direction: column; gap: 1rem; padding: 28px; flex: 1; }
.program-body > p { color: var(--ink-soft); font-size: 1rem; }

.h3-sub {
  display: block;
  margin-top: .35rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.checklist {
  display: grid;
  gap: .7rem;
  margin-top: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  font-size: .97rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .05em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315241B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E");
  background-size: 62%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Values ---------- */

.values { background: var(--sand); }

.values-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.values-head { position: sticky; top: calc(var(--header-h) + 32px); }
.values-head .h2 { max-width: 10em; }

.values-list { border-top: 1px solid rgba(21, 36, 27, .18); }

.value {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 8px 32px;
  padding: 1.75rem .5rem;
  border-bottom: 1px solid rgba(21, 36, 27, .18);
  transition: background-color .35s var(--ease), padding .35s var(--ease);
}

.value:hover { background: rgba(255, 252, 246, .55); padding-inline: 1.25rem; }

.value-num {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--clay);
}

.value-name {
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.15rem);
  letter-spacing: -.03em;
  transition: color .3s var(--ease);
}

.value:hover .value-name { color: var(--clay); font-style: italic; }

.value-text { font-size: .97rem; color: var(--ink-soft); }

.value-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid rgba(21, 36, 27, .18);
  border-radius: 50%;
  color: var(--forest);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.value:hover .value-icon { background: var(--forest); color: var(--sun); border-color: var(--forest); }

/* ---------- Donate ---------- */

.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.donate-intro .h2 { margin-bottom: 1.5rem; max-width: 12em; }
.donate-intro > p:not(.section-label) { color: var(--ink-soft); max-width: 32em; }

.give-list { display: grid; gap: .9rem; margin: 2rem 0; }

.give-list li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-weight: 600;
}

.give-list .icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: .55rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  box-shadow: var(--shadow-sm);
}

.donate-note {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

.donate-note a {
  font-weight: 700;
  color: var(--forest);
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pay-cards { display: grid; gap: 20px; }

.pay-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.pay-card--mpesa {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.pay-card--mpesa::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227, 163, 60, .35), rgba(227, 163, 60, 0));
  pointer-events: none;
}

.pay-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.pay-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sand);
  color: var(--forest);
}
.pay-icon .icon { width: 24px; height: 24px; }

.pay-card--mpesa .pay-icon { background: var(--sun); color: var(--forest); }

.pay-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}
.pay-card--mpesa .pay-kicker { color: var(--sun); }

.pay-title { font-size: 1.6rem; }

.pay-details { position: relative; display: grid; }

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.pay-card--mpesa .pay-row { border-color: var(--line-light); }

.pay-row dt { font-size: .9rem; color: var(--ink-soft); }
.pay-card--mpesa .pay-row dt { color: rgba(255, 252, 246, .72); }

.pay-row dd { display: flex; align-items: center; gap: 12px; }

.pay-number {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem);
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.pay-text { font-weight: 700; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .45em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.copy-btn .icon { width: 1.05em; height: 1.05em; }
.copy-btn:hover { background: var(--sand); border-color: transparent; }

.pay-card--mpesa .copy-btn { border-color: var(--line-light); color: var(--paper); }
.pay-card--mpesa .copy-btn:hover { background: rgba(255, 252, 246, .12); }

.copy-btn.is-copied { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.pay-card--mpesa .copy-btn.is-copied { background: var(--sun); color: var(--ink); }

.pay-steps {
  position: relative;
  counter-reset: step;
  display: grid;
  gap: .7rem;
  margin-top: .5rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255, 252, 246, .07);
  font-size: .93rem;
  color: rgba(255, 252, 246, .85);
}

.pay-steps li {
  position: relative;
  counter-increment: step;
  padding-left: 2.3rem;
  line-height: 1.55;
}

.pay-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(227, 163, 60, .2);
  color: var(--sun);
  font-size: .75rem;
  font-weight: 800;
}

.pay-steps strong { color: var(--paper); }

/* ---------- Contact ---------- */

.contact { padding-bottom: clamp(80px, 6vw + 48px, 140px); }

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 40px 64px;
  padding: clamp(36px, 6vw, 80px);
  overflow: hidden;
  border-radius: 40px;
  background: var(--clay-deep);
  color: var(--paper);
  isolation: isolate;
}

.contact-sun {
  position: absolute;
  right: -140px;
  bottom: -220px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #D9893F 0 60%, rgba(217, 137, 63, 0) 100%);
  opacity: .55;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255, 252, 246, .035) 0 2px, transparent 2px 14px);
}

.contact-copy .h2 { margin-bottom: 1.25rem; }
.contact-copy .h2 em { color: var(--sun-soft); }
.contact-copy p:last-child { color: rgba(255, 252, 246, .82); max-width: 30em; }

.contact-actions { display: grid; gap: 16px; justify-items: start; }

.phone-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px 18px 18px;
  border: 1px solid rgba(255, 252, 246, .22);
  border-radius: 24px;
  background: rgba(255, 252, 246, .08);
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.phone-link:hover { background: rgba(255, 252, 246, .14); border-color: rgba(255, 252, 246, .4); }

.phone-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--clay-deep);
}
.phone-icon .icon { width: 24px; height: 24px; }

.phone-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun-soft);
}

.phone-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem);
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #10201A;
  color: rgba(255, 252, 246, .72);
  font-size: .95rem;
}

.footer-stripe {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--forest-2) 0 48px,
    var(--sun) 48px 72px,
    var(--clay) 72px 120px,
    var(--water) 120px 144px,
    var(--paper) 144px 152px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(56px, 6vw, 88px);
}

.footer-brand p { margin-top: 1.25rem; max-width: 22em; }

.footer-title {
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sun);
}

.footer-col ul { display: grid; gap: .65rem; }

.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--paper); }

.footer-give li { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.footer-give span {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255, 252, 246, .55);
}

.footer-contact { display: inline-flex; align-items: center; gap: .6em; }
.footer-contact .icon { color: var(--sun); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 32px;
  background: linear-gradient(rgba(255, 252, 246, .1), rgba(255, 252, 246, .1)) top center / calc(100% - var(--gutter) * 2) 1px no-repeat;
  font-size: .85rem;
  color: rgba(255, 252, 246, .5);
}

.to-top { text-decoration: none; color: rgba(255, 252, 246, .7); }
.to-top:hover { color: var(--paper); }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

.js .program-grid .reveal:nth-child(2),
.js .pay-cards .reveal:nth-child(2) { transition-delay: .12s; }
.js .program-grid .reveal:nth-child(3) { transition-delay: .24s; }
.js .mv-grid .reveal:nth-child(2) { transition-delay: .12s; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .value { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
  .value-text { grid-column: 2 / -1; grid-row: 2; }
  .value-icon { grid-column: 3; grid-row: 1; }
  .program-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .program { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
  .program-top { height: auto; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 40px;
    background: var(--cream);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    overflow-y: auto;
  }

  .menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }

  .menu-open { overflow: hidden; }
  .menu-open .site-header::before { opacity: 1; background: var(--cream); }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }

  .nav-links a {
    padding: 1rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ink);
  }
  .nav-links a:hover { background: none; color: var(--clay); }
  .nav-links a.is-active::after { display: none; }

  .nav-cta { padding: 1.1em; font-size: 1rem; }

  .hero-grid,
  .about-grid,
  .values-grid,
  .donate-grid,
  .section-head,
  .contact-card { grid-template-columns: minmax(0, 1fr); }

  .hero-art { max-width: 400px; margin-top: 12px; }
  .badge { left: -12px; width: 104px; height: 104px; }
  .badge-lion { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .float-card { right: -12px; }

  .partner-card, .values-head { position: static; }

  .mv-grid { grid-template-columns: minmax(0, 1fr); }
  .mv-rays { right: -380px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .28em; }

  .hero-actions .btn { flex: 1 1 auto; }

  .arch-outline { transform: translate(10px, 10px); }
  .badge { top: 3%; left: -6px; width: 92px; height: 92px; }
  .badge-ring text { font-size: 11px; }
  .badge-lion { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .float-card { right: -6px; bottom: 6%; padding: 12px 16px 12px 12px; gap: 12px; }
  .float-icon { width: 40px; height: 40px; border-radius: 12px; }

  .program { display: flex; }
  .program-top { height: 140px; flex-direction: row; align-items: flex-end; padding: 20px 24px; }
  .program-letter { font-size: 4.75rem; }
  .program-body { padding: 24px; }

  .value { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding-block: 1.4rem; }
  .value-num { grid-column: 1; grid-row: 1; }
  .value-name { grid-column: 1; grid-row: 2; }
  .value-icon { grid-column: 2; grid-row: 1 / 3; width: 42px; height: 42px; padding: 10px; }
  .value-text { grid-column: 1 / -1; grid-row: 3; }
  .value:hover { padding-inline: .5rem; }

  .pay-row { align-items: flex-start; flex-direction: column; }

  .contact-card { border-radius: 28px; }
  .contact-actions { justify-items: stretch; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

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