/* ==========================================================================
   Paaneah Foundation — Design System
   Typeface: Montserrat (light-weight first). Palette inspired by adire,
   the indigo resist-dyed cloth of Ogun State.
   ========================================================================== */

:root {
  /* Colour */
  --indigo-950: #080c2b;
  --indigo-900: #0d1440;
  --indigo-800: #152063;
  --indigo-700: #1e2a78;
  --indigo-500: #3a4bb8;
  --indigo-200: #c9cff0;
  --indigo-100: #e7e9f8;
  --sun-500: #f4a51c;
  --sun-400: #f7b947;
  --sun-100: #fdf0d6;
  --clay-500: #c8553d;
  --cream: #f8f5ef;
  --sand: #efe9df;
  --white: #ffffff;
  --ink: #14161f;
  --ink-soft: #4a4d5c;
  --line: rgba(20, 22, 31, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  /* Type */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --fs-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem);

  /* Space & shape */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --max: 1240px;
  --radius: 4px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Adire-inspired pattern (inline SVG) */
  --adire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.2'%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Cpath d='M0 0l20 20M80 0L60 20M0 80l20-20M80 80L60 60'/%3E%3Ccircle cx='0' cy='0' r='8'/%3E%3Ccircle cx='80' cy='0' r='8'/%3E%3Ccircle cx='0' cy='80' r='8'/%3E%3Ccircle cx='80' cy='80' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 500; }
em { font-style: italic; font-weight: 300; }
::selection { background: var(--sun-400); color: var(--indigo-950); }
:focus-visible { outline: 2px solid var(--sun-500); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--sun-500); color: var(--indigo-950); padding: 0.75rem 1.25rem;
  font-weight: 500; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--dark { background: var(--indigo-900); color: var(--white); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.grid-5 .card { padding: 1.75rem 1.5rem; }
.grid-5 .card h3 { font-size: 1.15rem; }
@media (min-width: 1100px) { .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}
.stack > * + * { margin-top: 1.25rem; }
.center { text-align: center; margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--indigo-700); margin-bottom: 1.5rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sun-400); }
.display { font-size: var(--fs-3xl); font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-xl); }
.h4 { font-size: var(--fs-lg); font-weight: 400; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-soft); }
.section--dark .lead, .hero .lead, .page-hero .lead { color: rgba(255,255,255,0.78); }
.accent { color: var(--sun-500); font-weight: 400; }
.hl { font-weight: 500; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--indigo-900); --fg: var(--white); --bd: var(--indigo-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.75rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sun { --bg: var(--sun-500); --fg: var(--indigo-950); --bd: var(--sun-500); }
.btn--sun:hover { --bg: var(--sun-400); --bd: var(--sun-400); }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; }
.btn--ghost:hover { --bg: var(--white); --fg: var(--indigo-900); --bd: var(--white); }
.btn--outline { --bg: transparent; --fg: var(--indigo-900); --bd: var(--indigo-900); }
.btn--outline:hover { --bg: var(--indigo-900); --fg: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.04em; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(248, 245, 239, 0.94); color: var(--ink);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.brand-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: #c3d34a; }
.site-header.is-scrolled .brand-sub, .site-header.is-solid .brand-sub { color: #6b7a10; }
body.menu-open .site-header .brand-sub { color: #c3d34a; }
.brand svg { border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 0.5rem 0.95rem;
  font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0.02em; text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.2rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta .btn { min-height: 44px; padding: 0.6rem 1.35rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; color: inherit;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; content: "";
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--white); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--white); }

@media (max-width: 980px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-cta .btn { display: none; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
    padding: 6rem var(--gutter) 3rem;
    background: var(--indigo-950) var(--adire); color: var(--white);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .nav-links a { font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 300; padding: 0.35rem 0; letter-spacing: -0.02em; }
  .nav-links a::after { left: 0; right: 0; }
  .nav-menu .btn { display: inline-flex; align-self: flex-start; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
}
@media (min-width: 981px) {
  .nav-menu { display: flex; align-items: center; gap: 1.25rem; }
  .nav-menu > .btn { display: none; }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 9rem 0 clamp(3rem, 2rem + 4vw, 6rem);
  color: var(--white); background: var(--indigo-950); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(244,165,28,0.28), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(58,75,184,0.55), transparent 65%),
    linear-gradient(160deg, var(--indigo-800), var(--indigo-950) 65%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--adire); opacity: 0.9; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.hero-sun {
  position: absolute; z-index: -1; right: -12vw; top: 8vh;
  width: min(62vw, 760px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(244,165,28,0.35);
  pointer-events: none;
}
.hero-sun::before, .hero-sun::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(244,165,28,0.22); }
.hero-sun::before { inset: 12%; }
.hero-sun::after { inset: 26%; background: radial-gradient(circle, rgba(244,165,28,0.35), rgba(244,165,28,0) 70%); border-color: rgba(244,165,28,0.4); }
.hero-inner { display: grid; gap: 3rem; width: 100%; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.4fr 0.6fr; align-items: end; } }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 52ch; margin-top: 1.75rem; }
.hero-aside {
  border-left: 1px solid var(--line-light); padding-left: 1.75rem;
  font-size: var(--fs-sm); color: rgba(255,255,255,0.75);
}
.hero-aside blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.55; color: var(--white); font-weight: 300; }
.hero-aside cite { font-style: normal; font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--sun-400); font-weight: 500; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 1px; height: 48px; background: linear-gradient(var(--sun-400), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateX(-50%) scaleY(0); transform-origin: top; } 50% { transform: translateX(-50%) scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(10rem, 8rem + 6vw, 13rem) 0 clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--indigo-950); color: var(--white);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--adire), radial-gradient(70% 90% at 90% 0%, rgba(244,165,28,0.22), transparent 60%), linear-gradient(160deg, var(--indigo-800), var(--indigo-950) 70%);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 58ch; margin-top: 1.5rem; }
.breadcrumb { display: flex; gap: 0.5rem; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 2rem; list-style: none; padding: 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* --------------------------------------------------------------------------
   Media frames (photo-ready; falls back to adire art)
   Set a photo with: style="--img:url('assets/img/photos/file.jpg')"
   -------------------------------------------------------------------------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5; margin: 0;
  background:
    var(--img, none) center / cover no-repeat,
    var(--adire),
    radial-gradient(80% 60% at 70% 20%, rgba(244,165,28,0.45), transparent 60%),
    linear-gradient(150deg, var(--indigo-500), var(--indigo-900));
  color: var(--white);
}
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1; }
.media--sun { background: var(--img, none) center / cover no-repeat, var(--adire), radial-gradient(70% 70% at 30% 80%, rgba(255,255,255,0.25), transparent 60%), linear-gradient(150deg, var(--sun-400), var(--clay-500)); }
.media--clay { background: var(--img, none) center / cover no-repeat, var(--adire), linear-gradient(150deg, var(--clay-500), var(--indigo-900)); }
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media:hover .media-img { transform: scale(1.03); }
.media:has(.media-img) { background: var(--indigo-900); }
@media (min-width: 900px) { .sticky-media { position: sticky; top: 110px; } }
.media--banner { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .media--banner { aspect-ratio: 4 / 3; } }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery .media { aspect-ratio: 4 / 3; border-radius: 14px; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 20vw, 290px); }
  .gallery .media { aspect-ratio: auto; height: 100%; }
  .gallery .g-wide { grid-column: span 2; }
  .gallery .g-full { grid-column: 1 / -1; grid-row: span 2; }
}

/* Photo hero */
.hero-img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero--photo::before {
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(244,165,28,0.22), transparent 60%),
    linear-gradient(100deg, rgba(8,12,43,0.94) 0%, rgba(13,20,64,0.82) 45%, rgba(21,32,99,0.55) 100%),
    linear-gradient(to top, rgba(8,12,43,0.85), transparent 50%);
}
.hero--photo::after { opacity: 0.45; }
@media (max-width: 999px) { .hero--photo::before { background: linear-gradient(rgba(8,12,43,0.78), rgba(8,12,43,0.92)); } }

.media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem;
  font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  background: linear-gradient(transparent, rgba(8,12,43,0.65));
}
.media-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.media-icon svg { width: 34%; height: auto; opacity: 0.9; }
.media[style*="--img"] .media-icon { display: none; }

/* --------------------------------------------------------------------------
   Statement band
   -------------------------------------------------------------------------- */
.statement { font-size: var(--fs-2xl); font-weight: 300; line-height: 1.25; letter-spacing: -0.025em; max-width: 26ch; }
.statement .accent { font-weight: 400; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line); }
.section--dark .stats { border-color: var(--line-light); }
.stat { padding: 2rem 1.5rem 0 0; }
.stat-num { display: block; font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); font-weight: 200; letter-spacing: -0.04em; line-height: 1; color: var(--indigo-700); }
.section--dark .stat-num { color: var(--sun-400); }
.stat-label { display: block; margin-top: 0.75rem; font-size: var(--fs-sm); color: var(--ink-soft); max-width: 26ch; }
.section--dark .stat-label { color: rgba(255,255,255,0.7); }
.source { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 2rem; }
.section--dark .source { color: rgba(255,255,255,0.5); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
a.card { text-decoration: none; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(13,20,64,0.35); border-color: transparent; }
.card-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-100); color: var(--indigo-700); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: -0.015em; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .link-arrow { margin-top: auto; align-self: flex-start; color: var(--indigo-700); }
.card-num { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; color: var(--sun-500); }
.section--dark .card { background: rgba(255,255,255,0.04); border-color: var(--line-light); color: var(--white); }
.section--dark .card p { color: rgba(255,255,255,0.7); }
.section--dark .card-icon { background: rgba(244,165,28,0.14); color: var(--sun-400); }
.section--dark .card .link-arrow { color: var(--sun-400); }

/* Pillars (numbered list style) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: 2.25rem 2rem 2.25rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .pillar { padding-right: 2.5rem; } }
.pillar .card-num { display: block; margin-bottom: 2.5rem; }
.pillar h3 { font-size: 1.45rem; font-weight: 400; margin-bottom: 0.85rem; letter-spacing: -0.015em; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }

/* Skill chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.75rem 0 0; }
.chips li { padding: 0.5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); background: var(--white); }
.section--dark .chips li { border-color: var(--line-light); background: transparent; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sun-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c47f00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* --------------------------------------------------------------------------
   Feature (programme highlight)
   -------------------------------------------------------------------------- */
.feature-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line-light); }
.feature-meta dt { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--sun-400); font-weight: 500; margin-bottom: 0.35rem; }
.feature-meta dd { margin: 0; font-size: 1.05rem; }
.section:not(.section--dark) .feature-meta { border-color: var(--line); }
.section:not(.section--dark) .feature-meta dt { color: var(--indigo-700); }

/* --------------------------------------------------------------------------
   Leader / profile
   -------------------------------------------------------------------------- */
.profile-badge {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  border-radius: 999px; background: var(--sun-100); color: var(--indigo-900); font-size: var(--fs-sm); font-weight: 500;
}
.profile-badge span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sun-500); }
.profile-badge svg { width: 16px; height: 16px; }
.credentials { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.credentials li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.5rem; font-size: 0.98rem; }
.credentials li::before { content: "—"; color: var(--sun-500); }
.monogram {
  display: grid; place-items: center; height: 100%;
  font-size: clamp(5rem, 4rem + 6vw, 10rem); font-weight: 200; letter-spacing: -0.05em; color: rgba(255,255,255,0.92);
}

blockquote.pull {
  margin: 0; padding: 0 0 0 1.75rem; border-left: 2px solid var(--sun-500);
  font-size: var(--fs-xl); line-height: 1.4; font-weight: 300; letter-spacing: -0.015em;
}
blockquote.pull footer { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--ink-soft); letter-spacing: 0; }
.section--dark blockquote.pull footer { color: rgba(255,255,255,0.65); }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line-light); }
.section:not(.section--dark) .timeline::before { background: var(--line); }
.timeline li { position: relative; padding: 0 0 2.75rem 3rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--sun-500); background: var(--indigo-900); }
.section:not(.section--dark) .timeline li::before { background: var(--cream); }
.timeline li.is-highlight::before { background: var(--sun-500); box-shadow: 0 0 0 6px rgba(244,165,28,0.18); }
.timeline-year { display: block; font-size: var(--fs-xs); letter-spacing: 0.2em; font-weight: 600; color: var(--sun-400); margin-bottom: 0.4rem; }
.section:not(.section--dark) .timeline-year { color: var(--clay-500); }
.timeline h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.timeline p { color: rgba(255,255,255,0.7); font-size: 0.98rem; max-width: 56ch; }
.section:not(.section--dark) .timeline p { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Involve band / CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: calc(var(--radius-lg) * 1.5);
  padding: clamp(2.5rem, 1.5rem + 5vw, 6rem);
  background: var(--indigo-900); color: var(--white);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--adire), radial-gradient(60% 90% at 100% 100%, rgba(244,165,28,0.35), transparent 60%);
}
.cta-band h2 { max-width: 18ch; }
.cta-band .lead { color: rgba(255,255,255,0.78); max-width: 52ch; margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   Donate widget
   -------------------------------------------------------------------------- */
.donate {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: 0 40px 80px -40px rgba(8,12,43,0.5);
}
.donate h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 1.5rem; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--sand); margin-bottom: 1.25rem; }
.segmented button {
  min-height: 42px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); transition: background 0.3s, color 0.3s;
}
.segmented button[aria-pressed="true"] { background: var(--indigo-900); color: var(--white); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.amounts button {
  min-height: 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer;
  font-size: 1.05rem; font-weight: 400; transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.amounts button:hover { border-color: var(--indigo-700); }
.amounts button[aria-pressed="true"] { background: var(--indigo-100); border-color: var(--indigo-700); color: var(--indigo-900); font-weight: 500; }
.currency { display: flex; justify-content: flex-end; gap: 0.25rem; margin-bottom: 1rem; }
.currency button { border: 0; background: none; cursor: pointer; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; padding: 0.35rem 0.6rem; border-radius: 999px; color: var(--ink-soft); }
.currency button[aria-pressed="true"] { background: var(--sun-100); color: var(--indigo-900); }
.donate-custom { margin-top: 0.6rem; }
.donate-impact { min-height: 3.2em; margin: 1.25rem 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.donate-note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--ink-soft); text-align: center; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field .req { color: var(--clay-500); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 0.85rem 1.1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 300; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo-700); box-shadow: 0 0 0 4px rgba(58,75,184,0.15);
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--clay-500); }
.field-hint { font-size: var(--fs-xs); color: var(--ink-soft); }
.form-status { font-size: var(--fs-sm); padding: 1rem 1.25rem; border-radius: 12px; display: none; }
.form-status.is-success { display: block; background: #e8f4ec; color: #1f5f35; }
.form-status.is-error { display: block; background: #fbe9e5; color: #8a2f1e; }
.checkbox { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-sm); }
.checkbox input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--indigo-700); flex: none; }

/* Newsletter */
.newsletter { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.newsletter input {
  flex: 1 1 220px; min-height: 52px; padding: 0.75rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--line-light); background: rgba(255,255,255,0.06); color: var(--white); font-weight: 300;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter input:focus { outline: none; border-color: var(--sun-400); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.contact-list h3 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--indigo-700); margin-bottom: 0.5rem; }
.contact-list p, .contact-list a { font-size: 1.1rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.5rem 3rem 1.5rem 0; position: relative;
  font-size: 1.15rem; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 3rem 1.75rem 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--indigo-950); color: rgba(255,255,255,0.72); padding: clamp(4rem, 3rem + 4vw, 7rem) 0 2rem; font-size: var(--fs-sm); position: relative; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--adire); opacity: 0.5; }
.footer-top { display: grid; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-light); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer .brand { color: var(--white); margin-bottom: 1.5rem; }
.footer-mission { max-width: 34ch; line-height: 1.7; }
.site-footer h4 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-links a { text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--sun-400); }
.social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--white); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.social a:hover { background: var(--sun-500); border-color: var(--sun-500); color: var(--indigo-950); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: var(--fs-xs); color: rgba(255,255,255,0.5); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Marquee (SDG / values)
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.5rem 0; background: var(--white); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 300; letter-spacing: -0.01em; white-space: nowrap; color: var(--indigo-900); display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-500); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem); }
.section-head > div { max-width: 640px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(13,20,64,0.35); border-color: transparent; }
.post-card[hidden] { display: none; }
.post-card .media { border-radius: 0; aspect-ratio: 16 / 10; }
.post-card-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem 1.75rem 1.75rem; flex: 1; }
.post-card h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; }
.post-card p { color: var(--ink-soft); font-size: 0.95rem; }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; color: var(--indigo-700); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--ink-soft); margin: 0; }
.post-meta--light { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.post-cat { font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay-500); }
.post-meta--light .post-cat { color: var(--sun-400); }
.post-feature { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; text-decoration: none; }
@media (min-width: 900px) { .post-feature { grid-template-columns: 1.2fr 1fr; } }
.post-feature:hover .media-img { transform: scale(1.03); }
.post-feature .link-arrow { color: var(--indigo-700); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.blog-filters button {
  min-height: 42px; padding: 0.5rem 1.15rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  cursor: pointer; font-size: var(--fs-sm); font-weight: 400; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.blog-filters button:hover { border-color: var(--indigo-700); }
.blog-filters button[aria-pressed="true"] { background: var(--indigo-900); border-color: var(--indigo-900); color: var(--white); }

.post-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem); }
.post-byline { margin-top: 1.5rem; font-size: var(--fs-sm); color: rgba(255,255,255,0.7); }
.post { padding-top: clamp(2.5rem, 2rem + 3vw, 5rem); }
.post-container { max-width: 860px; }
.post-container { max-width: 1000px; }
.post-cover { margin: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem); border-radius: var(--radius-lg); overflow: hidden; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; max-height: 620px; object-fit: cover; }

.prose { font-size: 1.125rem; line-height: 1.85; max-width: 68ch; margin-inline: auto; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.35rem; font-weight: 400; margin-top: 2em; }
.prose h4 { font-size: 1.1rem; font-weight: 500; margin-top: 1.8em; }
.prose a { color: var(--indigo-700); }
.prose a:hover { color: var(--clay-500); }
.prose strong { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--sun-500); }
.prose blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 2px solid var(--sun-500); font-size: 1.3rem; line-height: 1.55; letter-spacing: -0.01em; }
.prose blockquote p:last-child:not(:first-child) { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 0.75rem; }
/* Photos in posts: slightly wider than the text, consistent landscape crop */
.prose figure { margin: 0; }
.prose > .post-figure, .prose > .post-gallery {
  width: min(calc(100vw - 2 * var(--gutter)), 920px);
  margin-left: 50%; transform: translateX(-50%);
  margin-top: 2.5rem; margin-bottom: 0.5rem;
}
.prose > .post-figure + *, .prose > .post-gallery + * { margin-top: 2.25rem; }
.prose .post-figure img, .prose .post-gallery img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 16px; background: var(--sand);
}
.prose .post-figure img { aspect-ratio: 16 / 10; max-height: 560px; }
.prose .post-gallery { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .prose .post-gallery--2 { grid-template-columns: 1fr 1fr; }
  .prose .post-gallery--3 { grid-template-columns: repeat(3, 1fr); }
  .prose .post-gallery img { aspect-ratio: 4 / 3; }
}
.prose figcaption {
  display: flex; gap: 0.6rem; align-items: baseline;
  margin-top: 0.8rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-soft);
}
.prose figcaption::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--sun-500); transform: translateY(-0.3em); }
.prose > p > img { width: 100%; border-radius: 14px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose code { font-size: 0.9em; background: var(--sand); padding: 0.1em 0.4em; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--indigo-950); color: #e7e9f8; padding: 1.25rem; border-radius: 12px; }
.prose pre code { background: none; padding: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; max-width: 68ch; margin: 3.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.share span { font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: var(--fs-xs); margin-right: 0.5rem; }
.share a, .share button {
  min-height: 40px; display: inline-flex; align-items: center; padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); text-decoration: none; cursor: pointer; font-size: var(--fs-sm); transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.share a:hover, .share button:hover { border-color: var(--indigo-900); background: var(--indigo-900); color: var(--white); }

@media print {
  .site-header, .site-footer, .scroll-cue, .nav-toggle { display: none !important; }
  .hero, .page-hero { min-height: auto; padding: 2rem 0; background: none; color: #000; }
  body { background: #fff; }
}
