:root {
  --ink: #2c2824;
  --ink-soft: #6e665d;
  --paper: #fffdf9;
  --red: #d8434b;
  --red-wash: #fdf0ee;
  --green: #3f9142;
  --green-wash: #eef7ee;
  --blue: #2e5aa8;
  --blue-wash: #eef2fa;
  --gold: #e0a63e;
  --gold-wash: #fdf5e6;
  --border: #ece4d8;
  --radius: 26px;
  --max: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
.hero, .section, .site-footer { scroll-margin-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark { display: block; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.nav a:hover { color: var(--red); }

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 100px;
}
.nav-cta:hover { background: #b9333a; }

.hero { position: relative; overflow: hidden; padding: 110px 0 90px; }

.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 46vw; min-width: 340px; max-width: 620px; opacity: 0.22; }
.blob-a { top: -16%; right: -10%; color: var(--gold); animation: drift-a 7.3s ease-in-out infinite; }
.blob-b { bottom: -22%; left: -14%; color: var(--green); animation: drift-b 8.7s ease-in-out infinite; }

@keyframes drift-a { 0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); } 50% { transform: translate(-3%,4%) rotate(8deg) scale(1.05); } }
@keyframes drift-b { 0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); } 50% { transform: translate(4%,-3%) rotate(-6deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .blob-a, .blob-b { animation: none; } }

.hero-inner { position: relative; z-index: 1; max-width: 700px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 18px;
}

.hero h1 { font-size: clamp(2.3rem, 5.8vw, 3.8rem); line-height: 1.12; margin: 0 0 22px; letter-spacing: -0.01em; font-weight: 800; }
.highlight { color: var(--red); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 580px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b9333a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.section { padding: 84px 0; }
.section-wash-blue { background: var(--blue-wash); }
.section-wash-green { background: var(--green-wash); }
.section-wash-gold { background: var(--gold-wash); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 100px;
  padding: 7px 18px 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(44, 40, 36, 0.08);
  margin-bottom: 16px;
}
.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 18px; letter-spacing: -0.01em; }
.section-lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 700px; margin: 0 0 30px; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(44,40,36,0.05);
}

.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
.program-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 4px 18px rgba(44,40,36,0.06);
  border-top: 5px solid transparent;
  border-left: none; border-right: none; border-bottom: none;
  font: inherit;
  text-align: left;
  display: block;
  width: 100%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.program-card:hover, .program-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,40,36,0.12);
}
.program-card--red { border-top-color: var(--red); }
.program-card--blue { border-top-color: var(--blue); }
.program-card--green { border-top-color: var(--green); }
.program-card--gold { border-top-color: var(--gold); }
.program-icon { width: 42px; height: 42px; color: var(--ink); margin-bottom: 16px; }
.program-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.program-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.initiative-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
.initiative-card {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 4px 18px rgba(44,40,36,0.06);
  font: inherit;
  text-align: left;
  display: block;
  width: 100%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.initiative-card:hover, .initiative-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,40,36,0.12);
}
.initiative-card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--gold); }
.initiative-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.sdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.sdg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
}
.sdg-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  color: #fff; font-weight: 800; font-size: 0.95rem; flex-shrink: 0;
}
.sdg-title { font-weight: 700; color: var(--ink); min-width: 0; }
.sdg-detail {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 4px;
}
.sdg-card:hover, .sdg-card:focus-visible { border-color: var(--gold); }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.story-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 4px 18px rgba(44,40,36,0.06); }
.story-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.story-avatar--a { background: var(--red); }
.story-avatar--b { background: var(--green); }
.story-avatar--c { background: var(--blue); }
.story-card h3 { margin: 0 0 10px; font-size: 1.02rem; }
.story-role { font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; }
.story-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; font-style: italic; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.metric {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border-radius: var(--radius); padding: 26px 16px;
  box-shadow: 0 4px 18px rgba(44,40,36,0.06);
}
.metric-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--green); line-height: 1; }
.metric-suffix { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--green); line-height: 1; display: inline; }
.metric-num + .metric-suffix { margin-left: -2px; }
.metric-label { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

.justice-wrap { max-width: 760px; text-align: center; margin: 0 auto; }
.justice-wrap .chip-row { justify-content: center; }
.justice-cta { margin-top: 14px; }
.link-arrow { color: var(--blue); font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.involved-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; align-items: stretch; }
.involved-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 18px rgba(44,40,36,0.06); }
.involved-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.involved-card p { flex: 1; margin: 0 0 18px; color: var(--ink-soft); font-size: 0.9rem; }
.involved-card--featured { background: var(--red); color: #fff; }
.involved-card--featured p { color: rgba(255,255,255,0.85); }
.involved-card--featured .btn-primary { background: #fff; color: var(--red); }
.involved-card--featured .btn-primary:hover { background: #f5f5f5; }

.contact-inner { max-width: 660px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row input { flex: 1 1 220px; }

.contact-form input,
.contact-form textarea {
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.contact-form textarea { resize: vertical; border-radius: var(--radius); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { margin-top: 4px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { background: var(--red); }

.cookie-required-notice { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.cookie-required-notice[hidden] { display: none; }
.cookie-reopen-link {
  background: none; border: none; padding: 0; margin-left: 4px;
  color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit;
}

.form-message { margin-top: 14px; font-size: 0.9rem; color: var(--green); min-height: 1.2em; }

.site-footer { background: #fff; border-top: 1px solid var(--border); color: var(--ink-soft); padding: 26px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 0.85rem; }
.footer-inner p { margin: 0; }
.footer-link {
  background: none; border: none; padding: 0; margin: 0; color: inherit;
  font: inherit; text-decoration: underline; cursor: pointer;
}
.footer-legal a.modal-trigger { color: inherit; text-decoration: underline; cursor: pointer; }
.footer-legal strong { font-weight: 700; margin-right: 4px; }

.site-modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 760px;
  width: 90vw;
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.site-modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.modal-inner { padding: 44px; overflow-y: auto; max-height: 90vh; position: relative; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.modal-inner::-webkit-scrollbar { width: 8px; }
.modal-inner::-webkit-scrollbar-track { background: transparent; }
.modal-inner::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 100px; }
.modal-inner::-webkit-scrollbar-thumb:hover { background: var(--red); }
@media (max-width: 600px) {
  .site-modal { width: 94vw; max-height: 92vh; }
  .modal-inner { padding: 28px 22px; max-height: 92vh; }
}
.modal-inner h2 { margin: 0 0 16px; }
.modal-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0 0 20px; }
.modal-gallery img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.modal-gallery--tall img { height: 190px; }
.modal-icon-row { display: flex; gap: 14px; margin: 0 0 16px; }
.modal-icon-row img { width: 42px; height: 42px; object-fit: contain; }
.sdg-icon { width: 26px; height: 26px; flex-shrink: 0; }
.modal-meta { font-size: 0.85rem; font-style: italic; }
.modal-credit { font-size: 0.85rem; font-style: italic; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 18px !important; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--red-wash, #f5f5f5); }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--ink); color: #fff; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; box-shadow: 0 -6px 24px rgba(0,0,0,0.15);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 640px; font-size: 0.92rem; color: #eee; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.88rem; }
.cookie-actions .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }

@media (min-width: 821px) and (max-width: 1024px) {
  .program-grid, .initiative-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .involved-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .program-grid, .initiative-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .involved-grid { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta) { display: none; }
}

.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-inner { max-width: 560px; margin: 0 auto; text-align: center; padding: 48px 0; }
.error-label {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 700; color: var(--red); margin: 0 0 18px;
}
.error-code { font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; color: var(--ink); margin: 0 0 18px; line-height: 1; }
.error-message { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 32px; }
.error-home-link {
  display: inline-block; padding: 14px 30px; border-radius: 100px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem;
}
.error-home-link:hover { background: var(--red-wash); color: var(--red); }
