/* ============================================================
   YKAI — Yayasan Kesejahteraan Arthropoda Indonesia
   Shared stylesheet. No build step, no preprocessor.
   ============================================================ */

/* ----- Reset / normalize ------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul[role='list'], ol[role='list'] { list-style: none; }
img, picture, svg, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 3px; }

/* ----- Design tokens ---------------------------------------- */
:root {
  /* Palette */
  --ink: #141414;
  --paper: #FAFAF7;
  --leaf: #1E8554;
  --leaf-dark: #176944;
  --amber: #E48D33;
  --amber-dark: #C8762A;
  --bronze: #A8752E;
  --gold: #F4BA64;
  --mist: #ECECE8;
  --warm-grey: #767670;
  --warm-grey-2: #4A4A45;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii */
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* Layout */
  --container-max: 1120px;
  --container-pad: 36px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.05);
  --shadow: 0 4px 16px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 20, 20, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ----- Base typography -------------------------------------- */
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 4.6vw, 46px); letter-spacing: -1px; }
h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.6px; }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }

p { font-size: 16px; line-height: 1.65; color: var(--warm-grey-2); }
p strong { color: var(--ink); }

a.link, .prose a {
  color: var(--leaf);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s var(--ease);
}
a.link:hover, .prose a:hover { color: var(--leaf-dark); }

em { font-style: italic; }
code { font-family: var(--font-mono); font-size: 0.92em; }

/* ----- Layout primitives ------------------------------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--wide { padding: 96px 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--photo-bg {
  background-color: var(--ink);
  background-image:
    linear-gradient(to bottom, rgba(10, 28, 18, 0.72) 0%, rgba(10, 28, 18, 0.55) 50%, rgba(10, 28, 18, 0.72) 100%),
    url('../images/placeholders/optimized/grasshopper-portrait.webp');
  background-size: cover;
  background-position: center top;
  color: var(--white);
}
.section--photo-bg h1,
.section--photo-bg h2,
.section--photo-bg h3,
.section--photo-bg h4 { color: var(--white); }
.section--photo-bg .kicker { color: rgba(255,255,255,0.65); }
.section--photo-bg .kicker--leaf { color: var(--leaf); }
.section--leaf { background: var(--leaf); color: var(--white); }
.section--mist { background: var(--mist); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-8); }

/* ----- Skip link -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ----- Site header ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--mist);
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px var(--container-pad);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__logo { height: 64px; width: auto; }
.brand__text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--bronze);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 2px;
  display: block;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  margin-left: auto;
  justify-content: flex-end;
}
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.primary-nav__link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--warm-grey-2);
  padding: 8px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s var(--ease);
}
.primary-nav__link:hover,
.primary-nav__link[aria-current='page'] { color: var(--ink); }
.primary-nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--leaf);
}
.primary-nav__caret { font-size: 9px; opacity: 0.6; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.dropdown.is-open .dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown__item {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--warm-grey-2);
  border-radius: var(--radius-sm);
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.dropdown__item:hover { background: var(--paper); color: var(--ink); }

/* Header right-side cluster */
.header-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warm-grey);
  letter-spacing: 1px;
}
.lang-toggle__btn {
  padding: 2px 4px;
  color: var(--warm-grey);
  transition: color 0.12s var(--ease);
}
.lang-toggle__btn.is-active { color: var(--ink); font-weight: 700; }
.lang-toggle__btn:hover { color: var(--ink); }
.lang-toggle__sep { color: var(--mist); }

/* Mobile menu trigger */
.menu-trigger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.menu-trigger__bar,
.menu-trigger__bar::before,
.menu-trigger__bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.15s var(--ease);
}
.menu-trigger__bar { position: relative; }
.menu-trigger__bar::before,
.menu-trigger__bar::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu-trigger__bar::before { top: -7px; }
.menu-trigger__bar::after { top: 7px; }
.menu-trigger[aria-expanded='true'] .menu-trigger__bar { background: transparent; }
.menu-trigger[aria-expanded='true'] .menu-trigger__bar::before { transform: translateY(7px) rotate(45deg); }
.menu-trigger[aria-expanded='true'] .menu-trigger__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ----- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: var(--radius-pill);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--leaf); color: var(--white); }
.btn--primary:hover { background: var(--leaf-dark); }
.btn--amber { background: var(--amber); color: var(--white); }
.btn--amber:hover { background: var(--amber-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn--small { padding: 8px 16px; font-size: 12px; }

/* ----- Common patterns -------------------------------------- */

/* Eyebrow / kicker label */
.kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bronze);
}
.kicker--leaf { color: var(--leaf); }
.kicker--gold { color: var(--gold); }

/* Page header (used on inner pages) */
.page-header {
  padding: 56px 0 28px;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}
.page-header__title { margin-top: 8px; }
.page-header__lede {
  margin-top: 14px;
  font-size: 15px;
  color: var(--warm-grey-2);
  max-width: 600px;
  line-height: 1.65;
}

/* Section heading row */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head__title { margin-top: 6px; }
.section-head__link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--leaf);
}
.section-head__link:hover { color: var(--leaf-dark); }

/* Stat block (used in stat bands) */
.stat__value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  color: var(--amber);
}
.stat__label {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  opacity: 0.85;
}

/* Card grid — fixed 330px columns, left-aligned */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 330px);
  gap: 24px;
  justify-content: start;
}

/* Card base */
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(168,117,46,0.3);
}
.card__media {
  height: 260px;
  background: linear-gradient(135deg, var(--bronze), var(--amber));
  position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px 24px 30px; flex: 1; display: flex; flex-direction: column; }
.card__summary + .card__cta { margin-top: auto; padding-top: 18px; }
.card__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--bronze);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warm-grey);
  margin-top: 4px;
}
.card__summary {
  font-size: 14px;
  color: var(--warm-grey-2);
  margin-top: 10px;
  line-height: 1.6;
}

/* Card top-border accent variants (programs) */
.card--accent-leaf { border-top: 3px solid var(--leaf); }
.card--accent-amber { border-top: 3px solid var(--amber); }
.card--accent-bronze { border-top: 3px solid var(--bronze); }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-pill);
}
.badge--amber { background: var(--amber); color: var(--white); }
.badge--ink { background: var(--ink); color: var(--gold); }
.badge--leaf { background: var(--leaf); color: var(--white); }
.badge--bronze { background: var(--bronze); color: var(--white); }

/* Filter chips */
.chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: var(--warm-grey-2);
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease), border-color 0.12s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--warm-grey); }
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 500; }
.chip--amber-outline { color: var(--bronze); border-color: var(--amber); }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--warm-grey);
  font-weight: 600;
}
.input, .select, .textarea {
  padding: 10px 14px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--leaf); outline: none; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

/* ----- Site footer ------------------------------------------ */
.site-footer { background: var(--ink); color: var(--mist); padding: 48px 0 28px; margin-top: 0; }
.site-footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__logo { height: 56px; width: auto; filter: brightness(1.15); }
.site-footer__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}
.site-footer__tagline {
  font-size: 12px;
  color: var(--warm-grey);
  line-height: 1.6;
  margin-top: 12px;
}
.site-footer__col-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 10px;
  font-weight: 600;
}
.site-footer__list { list-style: none; line-height: 2; font-size: 12.5px; }
.site-footer__list a:hover { color: var(--gold); }
.site-footer__bottom {
  max-width: var(--container-max);
  margin: 36px auto 0;
  padding: 18px var(--container-pad) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--warm-grey);
  letter-spacing: 0.5px;
}

/* ----- Hero — editorial split ------------------------------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}
.hero-split__text {
  padding: 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}
.hero-split__kicker { margin-bottom: 14px; }
.hero-split__title { letter-spacing: -1px; }
.hero-split__lede {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--warm-grey-2);
  max-width: 480px;
}
.hero-split__cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-split__media {
  background: linear-gradient(135deg, #1a3329 0%, var(--bronze) 50%, var(--amber) 100%);
  position: relative;
  min-height: 460px;
}
.hero-split__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ----- Donate band ------------------------------------------ */
.donate-band {
  padding: 72px 0;
  text-align: center;
  background: var(--leaf);
  color: var(--white);
}
.donate-band__title {
  margin: 12px auto 0;
  max-width: 580px;
  color: var(--white);
}
.donate-band__cta { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.donate-band__subtitle {
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin: 12px auto 0;
}

/* ----- Utilities -------------------------------------------- */
.muted { color: var(--warm-grey); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 40px; }
.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;
}

/* ----- Mobile menu panel ------------------------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--paper);
  padding: 84px 24px 24px;
  border-bottom: 1px solid var(--mist);
  box-shadow: var(--shadow);
  z-index: 90;
  max-height: 100vh;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__list { list-style: none; }
.mobile-menu__item { border-bottom: 1px solid var(--mist); }
.mobile-menu__link {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-menu__sub { padding-left: 16px; padding-bottom: 8px; }
.mobile-menu__sublink {
  display: block;
  padding: 8px 4px;
  font-size: 14px;
  color: var(--warm-grey-2);
}
.mobile-menu__bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ----- Responsive ------------------------------------------- */
@media (max-width: 1023px) {
  .primary-nav { display: none; }
  .menu-trigger { display: inline-flex; }
  .header-end { gap: 10px; }
  .brand__text { display: none; }
}

@media (max-width: 768px) {
  :root { --container-pad: 22px; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__text { padding: 56px 24px; }
  .hero-split__media { min-height: 280px; order: -1; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; gap: 10px; }
  .section { padding: 48px 0; }
  .section--wide { padding: 64px 0; }
}

@media (min-width: 640px) and (max-width: 1119px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Homepage components
   ============================================================ */

/* Stat band on dark background */
.stat-band { padding: 56px 0; }
.stat-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat-band .stat__label { color: rgba(245, 241, 232, 0.78); }

/* Where-we-work preview */
.wherework {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.wherework__text { padding: 8px 0; }
.wherework__title { margin-top: 10px; }
.wherework__lede { margin-top: 14px; font-size: 15px; color: var(--warm-grey-2); line-height: 1.65; }
.wherework__highlights {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.wherework__highlight {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--warm-grey-2);
}
.wherework__highlight strong { color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.wherework__cta { margin-top: 24px; }

/* Mini map (Leaflet preview) */
.mini-map-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist);
}
.mini-map.project-map {
  width: 100%;
  height: 100%;
  min-height: auto;
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.mini-map__legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ccc;
  z-index: 10;
  line-height: 1.7;
}
.mini-map__legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Mission split */
.mission-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.mission-split__title { margin-top: 10px; }
.mission-split__body { font-size: 15px; line-height: 1.75; color: var(--warm-grey-2); }
.mission-split__body p + p { margin-top: 14px; }

/* Publication row (compact, used on homepage + research page) */
.pub-rows { display: flex; flex-direction: column; }
.pub-row {
  position: relative;
  padding: 22px 24px;
  margin: 0 -24px;
  border-bottom: 1px solid var(--mist);
  border-radius: 6px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pub-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--leaf);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: height 0.3s ease;
}
.pub-row:hover {
  background-color: rgba(30, 133, 84, 0.04);
  transform: translateX(4px);
}
.pub-row:hover::before { height: 60%; }
.pub-row:hover .pub-row__title { color: var(--leaf); }
.pub-row__title { transition: color 0.25s ease; }
.pub-row:hover .pub-row__actions .link {
  letter-spacing: 0.3px;
}
.pub-row:last-child { border-bottom: none; }
.pub-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pub-row__citation {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--warm-grey);
  letter-spacing: 0.3px;
}
.pub-row__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.pub-row__authors {
  font-size: 13px;
  color: var(--warm-grey-2);
  margin-top: 4px;
}
.pub-row__abstract {
  font-size: 13.5px;
  color: var(--warm-grey-2);
  margin-top: 10px;
  line-height: 1.6;
  max-width: 760px;
}
.pub-row__actions { margin-top: 12px; }
.pub-row__actions .link { font-size: 12px; font-weight: 600; }

/* Story card as anchor — reset link styling */
.story-card { color: inherit; }
.story-card:hover .card__title { color: var(--leaf); }

/* ----- Programs showcase — photo-immersive mosaic ----------- */
.programs-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 22px;
  min-height: 620px;
}
.programs-showcase__feature {
  grid-row: 1 / span 2;
  grid-column: 1;
}

.program-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.program-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.82) 0%, rgba(20,20,20,0.45) 42%, rgba(20,20,20,0.05) 78%);
  z-index: 1;
}
.program-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 3;
}
.program-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20,20,20,0.18);
}
.program-tile:hover .program-tile__cta { color: var(--white); }
.program-tile__inner {
  position: relative;
  z-index: 2;
  padding: 28px 30px;
  max-width: 540px;
}
.program-tile__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}
.program-tile__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.3px;
  margin: 0;
}
.program-tile__summary {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 12px;
}
.program-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--gold);
  margin-top: 18px;
  transition: color 0.2s var(--ease);
}

/* Featured (left) tile — larger type, more padding */
.program-tile--lg .program-tile__inner { padding: 36px 40px; max-width: 600px; }
.program-tile--lg .program-tile__title { font-size: 34px; letter-spacing: -0.5px; }
.program-tile--lg .program-tile__summary { font-size: 15px; margin-top: 14px; max-width: 460px; }

/* Small (side) tiles — hide summary on desktop to keep them tight */
.program-tile--sm .program-tile__inner { padding: 22px 26px; }
.program-tile--sm .program-tile__title { font-size: 22px; }
.program-tile--sm .program-tile__summary { display: none; }
.program-tile--sm .program-tile__cta { margin-top: 12px; }

@media (max-width: 1119px) {
  .programs-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    gap: 18px;
  }
  .programs-showcase__feature { grid-row: auto; grid-column: 1; }
  .program-tile { min-height: 320px; }
  .program-tile--lg .program-tile__title { font-size: 28px; }
  .program-tile--sm .program-tile__summary { display: block; }
}

@media (max-width: 640px) {
  .program-tile { min-height: 260px; }
  .program-tile--lg .program-tile__title,
  .program-tile--sm .program-tile__title { font-size: 22px; }
  .program-tile__inner,
  .program-tile--lg .program-tile__inner { padding: 24px; }
}

/* ----- Programs slider (full-width, Swiper-based) ----------- */
.section--no-pad-bottom { padding-bottom: 0; }

.programs-slider-wrap {
  margin-top: 40px;
  background: var(--ink);
}
.programs-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.programs-slide {
  position: relative;
  min-height: 640px;
  display: flex !important;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  color: var(--white);
  isolation: isolate;
}
.programs-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20,20,20,0.86) 0%, rgba(20,20,20,0.62) 35%, rgba(20,20,20,0.18) 70%, rgba(20,20,20,0.06) 100%),
    linear-gradient(to top, rgba(20,20,20,0.6) 0%, rgba(20,20,20,0) 40%);
  z-index: 1;
}
.programs-slide__inner {
  position: relative;
  z-index: 2;
  padding: 80px var(--container-pad) 96px;
  max-width: 720px;
}
.programs-slide__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.programs-slide__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--white);
  margin: 12px 0 0;
}
.programs-slide__summary {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin-top: 16px;
}
.programs-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 13px 24px;
  background: var(--amber);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.programs-slide__cta:hover { background: var(--amber-dark); transform: translateX(2px); }

/* Nav arrows — circular, floating in the gutter */
.programs-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.45);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.programs-slider__nav:hover {
  background: rgba(20, 20, 20, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}
.programs-slider__nav--prev { left: 24px; }
.programs-slider__nav--next { right: 24px; }
.programs-slider__nav.swiper-button-disabled { opacity: 0.4; pointer-events: none; }

/* Pagination dots — bottom center */
.programs-slider__pagination {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.programs-slider__bullet {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), width 0.2s var(--ease);
  display: block;
}
.programs-slider__bullet.is-active {
  background: var(--amber);
  width: 48px;
}
.programs-slider__bullet:hover { background: rgba(255, 255, 255, 0.5); }

/* Counter — bottom right */
.programs-slider__counter {
  position: absolute;
  bottom: 22px;
  right: 28px;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1023px) {
  .programs-slide { min-height: 560px; }
  .programs-slide__inner { padding: 72px var(--container-pad) 96px; }
  .programs-slider__nav { width: 42px; height: 42px; }
  .programs-slider__nav--prev { left: 12px; }
  .programs-slider__nav--next { right: 12px; }
}

@media (max-width: 640px) {
  .programs-slide { min-height: 500px; }
  .programs-slide__inner { padding: 60px var(--container-pad) 92px; }
  .programs-slide__summary { font-size: 14.5px; }
  .programs-slider__nav { display: none; }
  .programs-slider__pagination { bottom: 18px; }
  .programs-slider__bullet { width: 24px; }
  .programs-slider__bullet.is-active { width: 36px; }
  .programs-slider__counter { bottom: 18px; right: 18px; font-size: 10px; }
}

/* Responsive overrides for homepage components */
@media (max-width: 768px) {
  .stat-band__grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-band .stat { text-align: center; }
  .wherework { grid-template-columns: 1fr; gap: 32px; }
  .wherework__highlights { grid-template-columns: 1fr; }
  .mission-split { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Phase 3 — Inner page components
   ============================================================ */

/* ----- About page ------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.about-block h2 { margin-top: 10px; }
.about-block p { margin-top: 14px; font-size: 15px; line-height: 1.75; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.value-card h3 { margin-top: 14px; font-size: 20px; }
.value-card p { margin-top: 8px; font-size: 14px; }
.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  margin-top: 40px;
}
.team-member {
  text-align: center;
}
.team-member__photo {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--leaf), var(--bronze));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-member__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-member__initials {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  user-select: none;
  line-height: 1;
}
.team-member__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-top: 14px;
  color: var(--ink);
}
.team-member__role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 4px;
  font-weight: 600;
}
.team-member__bio {
  font-size: 13px;
  color: var(--warm-grey-2);
  margin-top: 10px;
  line-height: 1.6;
}

/* Partner strip */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.partner-logo-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--warm-grey-2);
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border: 1px solid #d4d4ce;
  border-radius: var(--radius);
  background: var(--white);
}

/* ----- Resources page --------------------------------------- */
.resource-cat__title {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 40px;
}
.resource-list {
  display: flex;
  flex-direction: column;
}
.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--mist);
}
.resource-item:last-child { border-bottom: none; }
.resource-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--leaf);
}
.resource-item__body { flex: 1; }
.resource-item__body h3 {
  font-size: 18px;
  font-weight: 500;
}
.resource-item__body p {
  font-size: 13.5px;
  color: var(--warm-grey-2);
  margin-top: 6px;
  line-height: 1.6;
}
.resource-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.resource-item__size,
.resource-item__lang {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--warm-grey);
  letter-spacing: 0.5px;
}
.resource-item > .btn { flex-shrink: 0; align-self: center; }

/* ----- Get Involved page ------------------------------------ */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pathway-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pathway-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pathway-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pathway-card h3 {
  font-size: 20px;
  margin-top: 16px;
}
.pathway-card p {
  font-size: 13.5px;
  color: var(--warm-grey-2);
  margin-top: 8px;
  line-height: 1.6;
  flex: 1;
}

/* Form split (get-involved, contact) */
.form-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 22px; }

/* ----- Donate page ------------------------------------------ */
.donate-hero {
  padding: 56px 0 28px;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.donate-hero__title {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--white);
  margin-top: 8px;
}
.donate-hero__lede {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  line-height: 1.65;
}

.donate-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.donate-form-col {}
.donate-form__heading {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 20px;
}
.donate-frequency {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.donate-amount-btn {
  padding: 14px 10px;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.donate-amount-btn:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}
.donate-amount-btn.is-active {
  background: var(--leaf);
  color: var(--white);
  border-color: var(--leaf);
}

.donate-custom { margin-top: 16px; }

.donate-impact { margin-top: 32px; }
.donate-impact h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.donate-impact__list {
  list-style: none;
}
.donate-impact__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--mist);
  font-size: 14px;
  color: var(--warm-grey-2);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.donate-impact__list li:last-child { border-bottom: none; }
.donate-impact__list strong {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}

.donate-pay-col {}
.donate-pay-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.donate-pay-card h3 { font-size: 22px; margin-bottom: 24px; }
.donate-methods { display: flex; flex-direction: column; gap: 24px; }
.donate-method h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--warm-grey);
  font-weight: 600;
  margin-bottom: 10px;
}
.donate-bank {}
.donate-bank__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--mist);
}
.donate-bank__name {
  font-weight: 600;
  font-size: 14px;
}
.donate-bank__number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--leaf);
  letter-spacing: 0.5px;
}
.donate-bank__holder {
  font-size: 12px;
  color: var(--warm-grey);
  margin-top: 8px;
}
.donate-ewallet {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.donate-ewallet__note {
  font-size: 13px;
  color: var(--warm-grey-2);
  margin-top: 8px;
}
.donate-method p {
  font-size: 13.5px;
  color: var(--warm-grey-2);
  line-height: 1.6;
}
.donate-method p a { color: var(--leaf); border-bottom: 1px solid currentColor; }

/* Transparency */
.transparency-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.transparency-grid h2 { margin-bottom: 14px; }
.transparency-grid p { font-size: 15px; line-height: 1.75; }
.transparency-stats {
  display: flex;
  gap: 24px;
}
.transparency-stat {
  text-align: center;
  flex: 1;
}
.transparency-stat__number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--leaf);
  line-height: 1;
}
.transparency-stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-top: 6px;
}

/* ----- Contact page ----------------------------------------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-block h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.contact-address {
  font-style: normal;
  font-size: 14px;
  color: var(--warm-grey-2);
  line-height: 1.8;
}
.contact-channels {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-channels li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--warm-grey-2);
}
.contact-channels li svg { color: var(--leaf); flex-shrink: 0; }
.contact-channels a { color: var(--leaf); border-bottom: 1px solid currentColor; }
.contact-social {
  list-style: none;
  display: flex;
  gap: 16px;
}
.contact-social a {
  font-size: 14px;
  color: var(--leaf);
  border-bottom: 1px solid currentColor;
}
.contact-block p {
  font-size: 14px;
  color: var(--warm-grey-2);
  line-height: 1.6;
}
.contact-block p a { color: var(--leaf); border-bottom: 1px solid currentColor; }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ----- Story detail page ------------------------------------ */
.story-article {}
.story-hero {
  height: 360px;
  background: linear-gradient(135deg, #1a3329 0%, var(--bronze) 50%, var(--amber) 100%);
  background-size: cover;
  background-position: center;
}
.story-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--leaf);
  margin: 24px 0 20px;
  transition: color 0.15s var(--ease);
}
.story-back:hover { color: var(--leaf-dark); }
.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.story-article__title {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.8px;
  margin-bottom: 24px;
}
.story-article__body.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--warm-grey-2);
  padding-bottom: 48px;
}
.story-article__body.prose p + p { margin-top: 18px; }
.story-article__body.prose h2 {
  font-size: 24px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--ink);
}
.story-article__body.prose h3 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}
.story-article__body.prose ul,
.story-article__body.prose ol {
  margin-top: 12px;
  margin-bottom: 12px;
  padding-left: 24px;
}
.story-article__body.prose li { margin-top: 6px; }
.story-article__body.prose blockquote {
  border-left: 3px solid var(--leaf);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--warm-grey);
}

/* Publication list with filter (research page) */
.pub-list { display: flex; flex-direction: column; }

/* ----- Phase 3 responsive ----------------------------------- */
@media (max-width: 1023px) {
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .pathway-grid { grid-template-columns: 1fr; }
  .form-split { grid-template-columns: 1fr; gap: 32px; }
  .donate-split { grid-template-columns: 1fr; gap: 32px; }
  .donate-amounts { grid-template-columns: repeat(2, 1fr); }
  .transparency-grid { grid-template-columns: 1fr; gap: 28px; }
  .transparency-stats { gap: 16px; }
  .contact-split { grid-template-columns: 1fr; gap: 32px; }
  .story-hero { height: 240px; }
  .resource-item { flex-direction: column; gap: 14px; }
  .resource-item > .btn { align-self: flex-start; }
}

/* ============================================================
   PHASE 4 — Impact stats, charts, project map, project table
   ============================================================ */

/* ----- Impact stat tiles ------------------------------------ */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.impact-stat {
  background: var(--mist);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}
.impact-stat__value {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.impact-stat__label {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.impact-stat__delta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--leaf);
}

/* ----- Impact chart cards ----------------------------------- */
.impact-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.impact-chart-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 28px;
}
.impact-chart-card--wide {
  grid-column: 1 / -1;
}
.impact-chart-card__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 18px;
}
.impact-chart-card__canvas-wrap {
  position: relative;
  height: 280px;
}
.impact-chart-card__canvas-wrap--donut {
  height: 320px;
}

/* ----- Map split layout ------------------------------------- */
.section--flush { padding-left: 0; padding-right: 0; }
.section--flush .map-split { max-width: none; }
.map-split {
  position: relative;
  min-height: 600px;
}
.map-split__map {
  position: absolute;
  inset: 0;
}
.project-map {
  width: 100%;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  z-index: 1;
  background-color: #141414; /* Dark background before tiles load */
}
/* Override Leaflet styling for dark mode */
.project-marker { background: none !important; border: none !important; }
.project-marker svg { transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: center; overflow: visible; }
.project-marker:hover svg { transform: scale(1.3); }
.project-marker:hover { z-index: 1000 !important; }

/* Active marker pulse effect */
@keyframes markerPulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.project-marker--active svg {
  animation: markerPulse 2.5s infinite ease-in-out;
}
.project-marker--active:hover svg {
  animation: none; /* stop pulsing on hover so the scale transition takes over */
  transform: scale(1.3);
}

.leaflet-container { background: #141414 !important; font-family: 'Inter', sans-serif !important; }
.leaflet-bar a { background-color: rgba(20, 20, 20, 0.8) !important; color: #ECECE8 !important; border-color: #333 !important; backdrop-filter: blur(4px); }
.leaflet-bar a:hover { background-color: #000 !important; color: #fff !important; }
.leaflet-control-attribution { background: rgba(0, 0, 0, 0.5) !important; color: #aaa !important; backdrop-filter: blur(4px); }
.leaflet-control-attribution a { color: #ECECE8 !important; }

.map-split__panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 380px;
  max-height: calc(100% - 40px);
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 28px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  color: var(--mist);
}
.map-panel__placeholder {
  color: #888;
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
}
.map-panel__title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.2;
}
.map-panel__dl {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.map-panel__dl dt {
  font-weight: 600;
  color: #888;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: baseline;
}
.map-panel__dl dd {
  color: #ECECE8;
  margin: 0;
}
.map-panel__summary {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
}
.map-panel__links {
  margin-top: 24px;
}
.map-panel__links .link {
  color: #00ffa2;
}
.map-panel__links .link:hover {
  color: #fff;
}

/* ----- Project table ---------------------------------------- */
.project-table-wrap { overflow-x: auto; }
.project-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.project-table th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-grey);
  padding: 10px 14px;
  border-bottom: 2px solid var(--mist);
  white-space: nowrap;
}
.project-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--mist);
  vertical-align: top;
}
.project-table__year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  white-space: nowrap;
  color: var(--warm-grey);
}
.project-table__name {
  font-weight: 600;
  color: var(--ink);
}
.project-row { cursor: pointer; transition: background 0.15s; }
.project-row:hover { background: var(--mist); }
.project-row.is-active { background: rgba(30, 133, 84, 0.07); }

/* ----- Phase 4 responsive ----------------------------------- */
@media (max-width: 1023px) {
  .impact-stats { grid-template-columns: repeat(2, 1fr); }
  .impact-charts { grid-template-columns: 1fr; }
  .impact-chart-card--wide { grid-column: auto; }
  .map-split__panel { position: relative; top: auto; right: auto; width: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  .map-split__map { position: relative; }
  .project-map { min-height: 380px; }
}
@media (max-width: 767px) {
  .impact-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .impact-stat { padding: 20px 16px; }
  .impact-stat__value { font-size: 30px; }
  .impact-chart-card { padding: 20px; }
  .impact-chart-card__canvas-wrap { height: 220px; }
  .impact-chart-card__canvas-wrap--donut { height: 260px; }
  .project-map { min-height: 300px; }
  .map-split__panel { padding: 20px; }
  .project-table { font-size: 13px; }
  .project-table th, .project-table td { padding: 8px 10px; }
}

/* ----- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
