  :root {
    --green: #1EB53A;
    --green-deep: #0d6b26;
    --blue: #0072C6;
    --blue-deep: #0a3d6b;
    --ink: #13212e;
    --muted: #4f5d6b;
    --bg: #fbfaf6;
    --surface: #ffffff;
    --soft: #eef5ef;
    --line: #dfe5e0;
    --shadow: 0 1px 2px rgba(19,33,46,.06), 0 8px 24px rgba(19,33,46,.07);
    --radius: 18px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #eaf0ec; --muted: #a6b3ad; --bg: #0e1512; --surface: #16201b;
      --soft: #17271e; --line: #2a3a31; --green-deep: #5fd67b; --blue-deep: #7fbdf0;
      --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    }
  }
  :root[data-theme="dark"] {
    --ink: #eaf0ec; --muted: #a6b3ad; --bg: #0e1512; --surface: #16201b;
    --soft: #17271e; --line: #2a3a31; --green-deep: #5fd67b; --blue-deep: #7fbdf0;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 17px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 720px) { .wrap { padding: 0 32px; } }
  h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
  .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 10px; }

  /* flag stripe */
  .stripe { height: 6px; background: linear-gradient(90deg, var(--green) 0 33.3%, #fff 33.3% 66.6%, var(--blue) 66.6%); }

  /* nav */
  header.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: Fraunces, serif; font-size: 18px;
    background: linear-gradient(135deg, var(--green) 0 50%, var(--blue) 50%); }
  .nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 24px; font-size: 15px; font-weight: 500; }
  .nav ul a { text-decoration: none; color: var(--muted); }
  .nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); }
  @media (min-width: 900px) { .nav ul { display: flex; } }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0;
    font: 600 16px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
  .btn:hover { transform: translateY(-1px); }
  .btn:focus-visible, .amount:focus-visible, .share a:focus-visible, .share button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
  .btn-primary { background: var(--green); color: #06260f; box-shadow: 0 6px 16px rgba(30,181,58,.3); }
  .btn-primary:hover { background: #27c846; }
  .btn-blue { background: var(--blue); color: #fff; }
  .btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
  .btn-sm { padding: 10px 16px; font-size: 14px; }

  /* hero */
  .hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
  .hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--blue) 18%, transparent), transparent 70%); pointer-events: none; }
  .hero::after { content: ""; position: absolute; inset: auto auto -50% -15%; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--green) 18%, transparent), transparent 70%); pointer-events: none; }
  .hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
  @media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } .hero { padding: 96px 0 88px; } }
  .hero h1 { font-size: clamp(38px, 6vw, 62px); }
  .hero h1 em { font-style: normal; color: var(--green-deep); }
  .lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

  .motto { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--line); position: relative; }
  .motto::before { content: "\201C"; position: absolute; top: -18px; left: 22px; font: 700 80px/1 Fraunces, serif; color: var(--green); }
  .motto .krio { font: 600 24px/1.3 Fraunces, serif; margin: 12px 0 14px; }
  .motto .en { color: var(--muted); margin: 0; font-size: 16px; }
  .motto .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--green-deep); }

  section { padding: 72px 0; }
  .section-head { max-width: 640px; margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(30px, 4vw, 42px); }
  .section-head p { color: var(--muted); margin: 0; }

  /* give box */
  .give { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 32px; }
  @media (min-width: 900px) { .give { grid-template-columns: 1fr 1fr; padding: 44px; } }
  .amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
  @media (min-width: 520px) { .amounts { grid-template-columns: repeat(4, 1fr); } }
  .amount { padding: 16px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
    font: 700 20px/1 Inter, sans-serif; cursor: pointer; transition: border-color .15s, background .15s; }
  .amount:hover { border-color: var(--green); }
  .amount[aria-pressed="true"] { border-color: var(--green); background: var(--soft); color: var(--green-deep); }
  .custom { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); padding: 0 14px; margin-bottom: 18px; }
  .custom:focus-within { border-color: var(--blue); }
  .custom span { font-weight: 700; color: var(--muted); }
  .custom input { flex: 1; border: 0; background: transparent; color: var(--ink); font: 600 18px Inter, sans-serif; padding: 14px 8px; outline: none; min-width: 0; }
  .impact { min-height: 52px; padding: 14px 16px; border-radius: 12px; background: var(--soft); color: var(--green-deep); font-weight: 500; font-size: 15px; margin-bottom: 18px; }
  .give .btn { width: 100%; }
  .fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
  .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 20px 0; }
  .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

  .package { background: linear-gradient(160deg, var(--blue-deep), #072540); color: #eaf3fb; border-radius: 20px; padding: 28px; }
  :root[data-theme="dark"] .package { background: linear-gradient(160deg, #0f3a63, #0a2238); }
  .package h3 { font-size: 26px; color: #fff; }
  .package p { color: #b9d2e8; margin-top: 0; }
  .package ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .package li { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
  .package li svg { flex: none; color: var(--green); }

  /* ways */
  .ways { display: grid; gap: 20px; }
  @media (min-width: 820px) { .ways { grid-template-columns: repeat(3, 1fr); } }
  .way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
  .way .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--green-deep); margin-bottom: 6px; }
  .way:nth-child(2) .icon { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue-deep); }
  .way h3 { font-size: 22px; margin: 0; }
  .way p { color: var(--muted); margin: 0 0 12px; flex: 1; font-size: 16px; }
  .way .btn { align-self: flex-start; }

  /* steps */
  .band { background: var(--soft); }
  .steps { display: grid; gap: 24px; counter-reset: step; }
  @media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
  .step { position: relative; padding-top: 52px; }
  .step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: var(--green); color: #06260f; font: 700 18px Fraunces, serif; }
  .step h3 { font-size: 21px; }
  .step p { color: var(--muted); margin: 0; font-size: 16px; }

  /* share */
  .share-card { display: grid; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
  @media (min-width: 820px) { .share-card { grid-template-columns: 1.2fr 1fr; padding: 44px; } }
  .share-card h2 { font-size: clamp(28px, 3.5vw, 38px); }
  .share-card p { color: var(--muted); margin: 0; }
  .share { display: flex; flex-wrap: wrap; gap: 10px; }
  .share a, .share button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line);
    background: var(--bg); color: var(--ink); text-decoration: none; font: 600 14px Inter, sans-serif; cursor: pointer; }
  .share a:hover, .share button:hover { border-color: var(--blue); }

  footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
  footer .wrap { display: grid; gap: 24px; }
  @media (min-width: 820px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
  footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 15px; }
  footer p { margin: 0 0 6px; }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--ink); text-decoration: underline; }

  .sticky-give { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: none; }
  .sticky-give .btn { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
  @media (max-width: 719px) { .sticky-give.show { display: block; } }

  /* ---------- MOTION ---------- */

  /* flag stripe draws in */
  .stripe { transform-origin: left; animation: draw 1.1s cubic-bezier(.7,0,.2,1) both; }
  @keyframes draw { from { transform: scaleX(0); } }

  /* drifting colour blobs */
  .hero::before { animation: drift1 14s ease-in-out infinite alternate; }
  .hero::after { animation: drift2 18s ease-in-out infinite alternate; }
  @keyframes drift1 { to { transform: translate(-80px, 60px) scale(1.15); } }
  @keyframes drift2 { to { transform: translate(90px, -50px) scale(1.1); } }

  /* rising soap bubbles */
  .bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .bubble { position: absolute; bottom: -80px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 40%, color-mix(in srgb, var(--blue) 25%, transparent) 70%, color-mix(in srgb, var(--green) 35%, transparent));
    border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
    animation: rise linear infinite; opacity: .55; }
  @keyframes rise {
    0% { transform: translate(0, 0) scale(.8); opacity: 0; }
    10% { opacity: .6; }
    50% { transform: translate(var(--sway, 30px), -55vh) scale(1); }
    90% { opacity: .5; }
    100% { transform: translate(0, -110vh) scale(1.1); opacity: 0; }
  }

  /* headline word-by-word entrance */
  .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
  .hero h1 .w > span { display: inline-block; animation: wordUp .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms + 250ms); }
  @keyframes wordUp { from { transform: translateY(110%); } }
  .hero .eyebrow, .hero .lede, .hero-ctas { animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) both; }
  .hero .eyebrow { animation-delay: .1s; }
  .hero .lede { animation-delay: .75s; }
  .hero-ctas { animation-delay: .9s; }
  .motto { animation: fadeUp 1s 1s cubic-bezier(.2,.8,.2,1) both, float 6s 2s ease-in-out infinite; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
  @keyframes float { 50% { transform: translateY(-10px) rotate(-.6deg); } }

  /* shine sweep on primary buttons */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
    animation: shine 4s 2s ease-in-out infinite; }
  @keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

  /* scroll reveal (only hides when JS is running) */
  .js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 110ms); }
  .js [data-reveal="left"] { transform: translateX(-40px); }
  .js [data-reveal="right"] { transform: translateX(40px); }
  .js [data-reveal="zoom"] { transform: scale(.94); }
  .js [data-reveal].in { opacity: 1; transform: none; }

  /* package items pop in */
  .js .package li { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s, transform .5s cubic-bezier(.3,1.4,.5,1); transition-delay: calc(var(--d, 0) * 80ms + 200ms); }
  .js .package.in li { opacity: 1; transform: none; }
  .package li svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .5s ease-out; transition-delay: calc(var(--d, 0) * 80ms + 500ms); }
  .package.in li svg path, html:not(.js) .package li svg path { stroke-dashoffset: 0; }

  /* way cards lift + icon wiggle */
  .way { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, opacity .8s cubic-bezier(.2,.8,.2,1) !important; }
  .way:hover { transform: translateY(-8px) !important; box-shadow: 0 18px 40px rgba(19,33,46,.14); }
  .way:hover .icon { animation: wiggle .6s ease; }
  @keyframes wiggle { 25% { transform: rotate(-10deg) scale(1.08); } 75% { transform: rotate(8deg) scale(1.08); } }

  /* steps: line draws, numbers pulse */
  .steps { position: relative; }
  @media (min-width: 820px) {
    .steps::before { content: ""; position: absolute; top: 19px; left: 40px; right: 33%; height: 2px; background: var(--green);
      transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.6,0,.2,1) .3s; }
    .steps.in::before { transform: scaleX(1); }
  }
  html:not(.js) .steps::before { transform: scaleX(1); }
  .step::before { z-index: 1; }
  .steps.in .step::after { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--green); animation: pulse 2.4s ease-out infinite; animation-delay: calc(var(--d, 0) * 400ms + 600ms); opacity: 0; }
  @keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }

  /* motto ticker */
  .ticker { background: var(--green); color: #06260f; overflow: hidden; padding: 16px 0; border-block: 1px solid color-mix(in srgb, #000 10%, var(--green)); }
  .ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .ticker span { font: 600 22px/1 Fraunces, serif; white-space: nowrap; padding-right: 48px; display: inline-flex; align-items: center; gap: 48px; }
  .ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--blue); }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* impact text swap */
  .impact.swap { animation: swap .4s cubic-bezier(.2,.8,.2,1); }
  @keyframes swap { from { opacity: 0; transform: translateY(8px); } }
  .amount { transition: border-color .15s, background .15s, transform .2s cubic-bezier(.3,1.6,.5,1); }
  .amount:active { transform: scale(.94); }
  .amount[aria-pressed="true"] { transform: scale(1.04); }

  /* scroll progress */
  .progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 30; transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--green), var(--blue)); }

  .sticky-give.show { animation: fadeUp .4s cubic-bezier(.2,.8,.2,1); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js .package li { opacity: 1; transform: none; }
    .package li svg path { stroke-dashoffset: 0; }
    .steps::before { transform: scaleX(1) !important; }
    .bubbles { display: none; }
  }

/* ---------- multi-page additions ---------- */
.nav-links { display: none !important; }
@media (min-width: 900px) { .nav-links { display: flex !important; } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 70px 0 0; z-index: 9; background: var(--bg); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s cubic-bezier(.7,0,.2,1), visibility 0s .45s; }
.mobile-menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s cubic-bezier(.7,0,.2,1); }
.mobile-menu a { font: 600 30px/1.2 Fraunces, serif; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 60ms + 150ms); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu a[aria-current] { color: var(--green-deep); }
@media (min-width: 900px) { .mobile-menu { display: none; } }
.nav ul a { position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--green); border-radius: 2px;
  transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }
@media (max-width: 420px) { .brand-text { font-size: 14px; } }

/* page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 48px; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); max-width: 15em; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .eyebrow, .page-hero .lede, .page-hero .hero-ctas { animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) both; }
.page-hero .lede { animation-delay: .5s; }
.page-hero .hero-ctas { animation-delay: .65s; margin-top: 24px; }
.page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.page-hero h1 .w > span { display: inline-block; animation: wordUp .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -200px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 16%, transparent), transparent 70%); animation: drift1 14s ease-in-out infinite alternate; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; left: -160px; bottom: -260px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%); animation: drift2 18s ease-in-out infinite alternate; pointer-events: none; }

/* photo collage in home hero */
.collage { position: relative; height: 460px; }
.collage img { position: absolute; border-radius: 18px; object-fit: cover; box-shadow: 0 20px 50px rgba(19,33,46,.25); border: 6px solid var(--surface); }
.collage .c1 { width: 66%; height: 60%; top: 0; right: 0; --r: 3deg; }
.collage .c2 { width: 58%; height: 50%; bottom: 0; left: 0; --r: -4deg; }
.collage .c3 { width: 42%; height: 42%; bottom: 6%; right: 2%; --r: 5deg; }
.collage img { transform: rotate(var(--r)); animation: popIn 1s cubic-bezier(.2,.8,.2,1) both, sway 7s ease-in-out infinite; }
.collage .c1 { animation-delay: .6s, 2s; }
.collage .c2 { animation-delay: .85s, 2.6s; animation-duration: 1s, 8s; }
.collage .c3 { animation-delay: 1.1s, 3.2s; animation-duration: 1s, 6s; }
@keyframes popIn { from { opacity: 0; transform: translateY(40px) rotate(0deg) scale(.9); } }
@keyframes sway { 50% { transform: translateY(-10px) rotate(calc(var(--r) * -0.4)); } }
.collage .badge { position: absolute; top: 44%; left: 4%; background: var(--green); color: #06260f; font: 700 14px Inter, sans-serif; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(30,181,58,.35); animation: fadeUp 1s 1.3s both, bob 3s 2.5s ease-in-out infinite; z-index: 2; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 899px) { .collage { height: 360px; } }

/* split section */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.split p { color: var(--muted); }
.split h2 { font-size: clamp(30px, 4vw, 42px); }
.photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); position: relative; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.photo:hover img { transform: scale(1.05); }
.js .photo[data-reveal] { opacity: 1; transform: none; }
.js .photo[data-reveal] img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), scale 1.6s cubic-bezier(.2,.8,.2,1), transform 1.2s cubic-bezier(.2,.8,.2,1); }
.js .photo[data-reveal].in img { clip-path: inset(0 0 0 0); scale: 1; }

/* stats */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat b { display: block; font: 700 clamp(34px, 5vw, 48px)/1 Fraunces, serif; color: var(--green-deep); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 15px; }

/* photo marquee */
.marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 260px; width: auto; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 719px) { .marquee img { height: 180px; } }

/* CTA band */
.cta { background: linear-gradient(135deg, #0d6b26, #0a4a1c 50%, #0a3d6b); color: #fff; border-radius: 28px; padding: 56px 28px; text-align: center; position: relative; overflow: hidden; }
.cta > :not(.bubbles) { position: relative; }
.cta h2 { font-size: clamp(30px, 4.5vw, 46px); color: #fff; }
.cta p { color: #d6e9dc; max-width: 36em; margin: 0 auto 26px; }
.cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }

/* people */
.people { display: grid; gap: 24px; }
@media (min-width: 820px) { .people { grid-template-columns: 1fr 1fr; } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 20px; align-items: start; }
@media (min-width: 520px) { .person { grid-template-columns: 140px 1fr; } }
.person img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--soft); transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.person:hover img { transform: scale(1.06) rotate(-3deg); }
.person .role { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); }
.person h3 { font-size: 26px; margin: 4px 0 10px; }
.person p { color: var(--muted); margin: 0; font-size: 16px; }

/* gallery */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px Inter, sans-serif; cursor: pointer; transition: all .2s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery { columns: 2 220px; column-gap: 14px; }
@media (min-width: 900px) { .gallery { columns: 3; } }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 16px; overflow: hidden; position: relative; cursor: zoom-in; box-shadow: var(--shadow); animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 60ms); }
.gallery figure.hide { display: none; }
.gallery img { width: 100%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: #fff; font-size: 14px; font-weight: 500;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { transform: none; }
.gallery figure:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(5,12,9,.88); }
dialog.lightbox[open] { animation: zoomIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 14px; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; }
.lightbox button { position: fixed; top: 50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; cursor: pointer; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lightbox [data-prev] { left: 16px; } .lightbox [data-next] { right: 16px; }
.lightbox [data-close] { top: 16px; right: 16px; transform: none; }

/* forms + contact */
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.info-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  text-decoration: none; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .2s, opacity .8s !important; margin-bottom: 14px; }
a.info-card:hover { transform: translateX(6px) !important; border-color: var(--green); }
.info-card .icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--green-deep); }
.info-card small { display: block; color: var(--muted); font-size: 13px; }
.info-card strong { font-weight: 600; word-break: break-word; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form .two { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea { font: 16px Inter, sans-serif; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.form textarea { min-height: 150px; resize: vertical; }
#formNote { color: var(--green-deep); font-size: 14px; margin: 0; min-height: 1em; }

/* checklist */
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306260f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.package .photo { margin-top: 20px; box-shadow: none; border-radius: 14px; }
.package .photo img { aspect-ratio: 16 / 10; }

@media (prefers-reduced-motion: reduce) {
  .js .photo[data-reveal] img { clip-path: none; scale: 1; }
  .mobile-menu a { opacity: 1; transform: none; }
}

@media (max-width: 420px) { .info-card strong { font-size: 14px; } .info-card { padding: 16px; gap: 12px; } }
html, body { overflow-x: clip; }

/* ---------- image layouts ---------- */
/* main photo with a smaller overlapping photo */
.photo-pair { position: relative; padding: 0 0 40px 0; }
.photo-pair .inset { position: absolute; right: -16px; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 18px;
  border: 6px solid var(--surface); box-shadow: 0 18px 40px rgba(19,33,46,.22); z-index: 2; }
.js .photo-pair .inset[data-reveal] { transform: scale(.6) rotate(-8deg); }
.js .photo-pair .inset[data-reveal].in { transform: rotate(4deg); animation: insetFloat 6s 1.2s ease-in-out infinite; }
@keyframes insetFloat { 50% { transform: translateY(-10px) rotate(2deg); } }
.split.flip .photo-pair .inset { right: auto; left: -16px; }
@media (max-width: 719px) { .photo-pair .inset { right: 8px; } .split.flip .photo-pair .inset { left: 8px; } }

/* image tops on cards */
.way { overflow: hidden; }
.way .cover { margin: -28px -28px 14px; width: calc(100% + 56px); max-width: none; height: 190px; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.way:hover .cover { transform: scale(1.07); }
.way .cover + .icon { margin-top: -44px; position: relative; z-index: 1; border: 4px solid var(--surface); background: var(--surface); }
.way .cover + .icon::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background: var(--soft); z-index: -1; }
.way:nth-child(2) .cover + .icon::before { background: color-mix(in srgb, var(--blue) 14%, var(--surface)); }

/* photos under each step */
.step-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-top: 18px; box-shadow: var(--shadow);
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.step:hover .step-img { transform: translateY(-6px) rotate(-1deg); }

/* full-width banner with parallax photo */
.banner { position: relative; overflow: hidden; min-height: 540px; display: grid; align-items: end; color: #fff; padding: 72px 0; }
.banner > img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,20,12,.05) 20%, rgba(5,20,12,.8)); }
.banner .wrap { position: relative; z-index: 1; width: 100%; }
.banner h2 { font-size: clamp(36px, 6vw, 64px); color: #fff; }
.banner p { color: #e3efe7; max-width: 32em; font-size: 18px; margin: 0 0 24px; }

/* wide photo under page heroes */
.photo.wide img { aspect-ratio: 21 / 8; }
@media (max-width: 719px) { .photo.wide img { aspect-ratio: 16 / 10; } }

/* donate hero: photo with the motto card overlapping */
.hero-visual { position: relative; }
.hero-img { animation: popIn 1s .7s cubic-bezier(.2,.8,.2,1) both; --r: -2deg; }
.hero-img img { aspect-ratio: 4 / 3; }
.hero-visual .motto { margin: -70px 0 0 28px; }
@media (min-width: 900px) { .hero-visual .motto { margin: -90px -12px 0 48px; } }

@media (prefers-reduced-motion: reduce) {
  .js .photo-pair .inset[data-reveal] { transform: rotate(4deg); opacity: 1; }
  .banner > img { transform: none !important; }
}
