:root {
  --cream: #FBF7ED;
  --card: #FFFDF8;
  --sand: #F3EEE1;
  --line: #E8E1CF;
  --ink: #1D2B36;
  --body: #3B4752;
  --muted: #5A6570;
  --navy: #1E3242;
  --navy-2: #2D4757;
  --navy-3: #3A5B70;
  --night: #172836;
  --sage: #788666;
  --accent: #A9B78F;
  --tint: #E5EADB;
  --olive: #4E5C3A;
  --on-dark: #D6DCE0;
  --serif: 'Domine', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 20px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; color: var(--body); }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.18; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tag { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--olive); font-size: 13px; font-weight: 600; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding: 14px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 46px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 600; color: #3A4552; padding: 12px 0; text-decoration: underline 2px transparent; text-underline-offset: 8px; transition: color .2s ease, text-decoration-color .2s ease; }
.nav a:not(.btn):hover, .nav a:not(.btn):focus-visible { color: var(--ink); text-decoration-color: var(--sage); }
.nav .btn { margin-left: 6px; font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 12px 22px; min-height: 0; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 15px 28px; border-radius: 14px; border: 0; font-family: var(--serif); font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s ease, background-color .25s ease, border-color .25s ease; }
.btn .arrow, .link-arrow .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover, .btn-accent:focus-visible { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(8, 18, 28, .35); }
.btn-accent:hover .arrow, .btn-navy:hover .arrow { transform: translateX(4px); }
.btn-ghost { padding: 14px 28px; border: 1px solid rgba(251, 247, 237, .4); color: var(--cream); }
.btn-ghost:hover, .btn-ghost:focus-visible { transform: translateY(-3px); background: rgba(251, 247, 237, .12); border-color: rgba(251, 247, 237, .85); }
.btn-navy { background: var(--navy-2); color: var(--cream); }
.btn-navy:hover, .btn-navy:focus-visible { transform: translateY(-2px); background: var(--navy-3); box-shadow: 0 10px 22px rgba(30, 50, 66, .28); }
.btn-outline { border: 1px solid var(--navy-2); background: transparent; color: var(--navy-2); }
.btn-outline:hover, .btn-outline:focus-visible { transform: translateY(-2px); background: #F0EBDD; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy-2); text-decoration: none; transition: color .2s ease; }
.link-arrow:hover, .link-arrow:focus-visible { color: var(--ink); }
.link-arrow:hover .arrow { transform: translateX(6px); }

/* Dark hero / CTA bands */
.dark { position: relative; overflow: hidden; background: var(--navy); color: var(--cream); padding-inline: var(--gutter); }
.dark h1, .dark h2 { color: var(--cream); }
.dark .bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dark .inner { position: relative; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.dark .sub { max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--on-dark); }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(56px, 8vw, 120px); display: block; }
.pill-dark { display: inline-flex; padding: 7px 16px; border-radius: 999px; background: rgba(169, 183, 143, .18); border: 1px solid rgba(169, 183, 143, .35); color: #D3DBC1; font-size: 14px; font-weight: 600; }
.display { font-size: clamp(40px, 6vw, 74px); line-height: 1.12; letter-spacing: -0.01em; }
.hero { padding-block: clamp(88px, 10vw, 136px) clamp(150px, 14vw, 196px); }
.hero .inner { max-width: 880px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }

/* Stats */
.stats { padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(24px, 3vw, 40px); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px 24px; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .7s ease, transform .7s var(--ease); }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 56px); line-height: 1.1; color: var(--navy-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .bar { display: block; height: 3px; width: 44px; border-radius: 2px; background: var(--sage); margin: 4px 0 6px; transition: width .9s var(--ease) .3s; }
.stat p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.stats.armed .stat { opacity: 0; transform: translateY(24px); }
.stats.armed .bar { width: 0; }
.stat:nth-child(2), .stat:nth-child(2) .bar { transition-delay: .12s; }
.stat:nth-child(3), .stat:nth-child(3) .bar { transition-delay: .24s; }
.stat:nth-child(4), .stat:nth-child(4) .bar { transition-delay: .36s; }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) var(--gutter); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 5vw, 72px); }
.split > * { flex: 1 1 420px; min-width: 0; }
.split > .stack { flex-basis: 460px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid #DCD4BF; font-size: 13px; font-weight: 500; color: var(--body); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 44px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(29, 43, 54, .12); border-color: #D6CBAF; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; transition: background-color .3s ease; }
.card:hover .icon { background: #D5DDC2; }
.card h3 { font-size: 22px; line-height: 1.3; }
.card p { font-size: 16px; line-height: 1.65; color: var(--body); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #EEE8D9; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.steps .num { flex: 0 0 auto; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--sage); }
.steps div { display: flex; flex-direction: column; gap: 6px; }
.steps h3 { font-size: 20px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); }

/* Photos */
.photos-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 36px; }
.photos-head .stack { flex: 1 1 420px; min-width: 0; gap: 18px; }
.photos-head .lead { flex: 1 1 360px; min-width: 0; max-width: 480px; }
.photos { display: flex; flex-wrap: wrap; gap: 24px; }
.photos figure { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.photos .frame { overflow: hidden; border-radius: 22px; height: clamp(260px, 30vw, 440px); background: var(--line); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.photos figure:hover img { transform: scale(1.04); }
.photos figcaption { font-size: 15px; color: var(--muted); }

/* About */
.about { background: var(--sand); }
.about .split { align-items: flex-start; }
.about .portrait { flex: 1 1 320px; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.about .portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 64% 50%; border-radius: 22px; display: block; }
.about .portrait .name { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.about .portrait .role { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
.about .stack { flex: 2 1 480px; gap: 22px; }
.about .tag { background: #E2E7D6; }
.timeline { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; }
.timeline li { display: grid; grid-template-columns: minmax(96px, 128px) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid #DED6C3; }
.timeline li:last-child { border-bottom: 1px solid #DED6C3; }
.timeline .when { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.timeline .what { font-weight: 600; font-size: 16px; }
.timeline .detail { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 3px; }
.funders { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.funders p:last-child { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: var(--navy-2); }

/* AFR-IX */
.afrix-panel { background: var(--navy); color: var(--cream); border-radius: 22px; padding: clamp(28px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.afrix-panel h3 { font-size: 24px; line-height: 1.3; color: var(--cream); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.ticks svg { flex: 0 0 auto; margin-top: 2px; }

.cta { padding-block: clamp(80px, 9vw, 120px); }
.cta .inner { max-width: 820px; gap: 20px; }
.cta h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.15; }
.cta .sub { max-width: 560px; }

/* Footer */
.site-footer { background: var(--night); color: var(--cream); padding: 52px var(--gutter) 32px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 50px; width: auto; align-self: flex-start; display: block; }
.footer-brand p, .footer-col p:not(.footer-title) { font-size: 15px; line-height: 1.6; color: #C5CDD3; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col a, .footer-col p { padding: 6px 0; }
.footer-col a { font-size: 15px; color: var(--cream); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-title { padding: 0 !important; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #A9B4BC; }
.footer-bottom { border-top: 1px solid rgba(251, 247, 237, .12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: #A9B4BC; }

/* Contact page */
.contact-hero { padding-block: clamp(72px, 8vw, 112px) clamp(130px, 12vw, 170px); }
.contact-hero .inner { max-width: 820px; gap: 22px; }
.contact-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.12; letter-spacing: -0.01em; }
.contact-hero .sub { max-width: 600px; }
.contact-body { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(64px, 8vw, 112px); }
.contact-body .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 4vw, 56px); }
.form-card { flex: 3 1 560px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3.6vw, 48px); }
.form-card form, .sent { display: flex; flex-direction: column; gap: 24px; }
.form-card h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; }
.note { font-size: 15px; line-height: 1.6; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, legend { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid #D9D1BE; background: #fff; font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 160px; line-height: 1.6; resize: vertical; }
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(120, 134, 102, .28); }
.field [aria-invalid="true"] { border-color: #B4483A; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 72, 58, .16); }
.field .err { font-size: 14px; color: #A23B2E; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 12px; }
.types { display: flex; flex-wrap: wrap; gap: 10px; }
.types button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid #D9D1BE; background: #fff; color: var(--navy-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.types button:hover { background: #EEF1E6; border-color: var(--accent); transform: translateY(-2px); }
.types button[aria-pressed="true"] { background: var(--navy-2); border-color: var(--navy-2); color: var(--cream); transform: none; }
.alert { padding: 12px 16px; border-radius: 12px; background: #F8E9E5; font-size: 15px; color: #8E3327; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.form-foot p { flex: 1 1 240px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.form-foot .btn, .sent .btn { font-size: 17px; padding: 14px 28px; min-height: 50px; }
.sent { align-items: flex-start; gap: 18px; padding: clamp(8px, 2vw, 24px) 0; }
.sent .check { width: 60px; height: 60px; border-radius: 999px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.sent h2 { font-size: clamp(26px, 2.8vw, 34px); }
.sent p { font-size: 17px; line-height: 1.65; color: var(--body); }
.sent .buttons { justify-content: flex-start; gap: 12px; margin-top: 4px; }
.sent .btn { font-size: 16px; padding: 13px 24px; min-height: 48px; }
.aside { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.aside .stack { gap: 18px; }
.aside .steps { width: 100%; }
.aside .steps li { gap: 18px; padding: 18px 0; border-color: var(--line); }
.aside .steps li:first-child { padding-top: 0; }
.aside .steps li:last-child { padding-bottom: 0; }
.aside .steps .num { font-size: 26px; }
.aside .steps h3 { font-size: 18px; }
.profile { background: var(--sand); border-radius: 22px; padding: 22px; display: flex; gap: 16px; align-items: center; }
.profile img { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 999px; object-fit: cover; object-position: 50% 40%; display: block; }
.profile .name { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.profile p:not(.name) { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.aside .note a { color: var(--navy-2); font-weight: 600; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .btn:hover, .card:hover, .types button:hover { transform: none !important; }
  .photos figure:hover img, .link-arrow:hover .arrow, .btn:hover .arrow { transform: none !important; }
}
