/* =====================================================================
   HopeAid Network: public website styles
   1. Fonts and design tokens   2. Base   3. Layout and type   4. Buttons
   5. Header and menu   6. Brand shapes   7. Home sections   8. Inner pages
   9. Forms   10. Gallery and lightbox   11. Footer   12. Accessibility panel
   13. Error and trap pages   14. Motion   15. Accessibility modes   16. Print
   Colours: Deep Lagoon #0E3A48, Healing Teal #1E6C7A, Renewal Sage #469E8A,
   Sunrise Amber #FBBE4C, Hope Coral #EC6046, Warm Cream #FAF6EE.
   Coral is for giving only (Donate buttons); its text-safe shade is --coral-ink.
   ===================================================================== */

/* 1. Fonts and tokens ------------------------------------------------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 500 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic-var.woff2") format("woff2"); font-weight: 500 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --lagoon: #0E3A48;
  --lagoon-2: #0A2C37;
  --teal: #1E6C7A;
  --sage: #469E8A;
  --mint: #BCE0D4;
  --amber: #FBBE4C;
  --coral: #EC6046;
  --coral-ink: #C9472A;   /* 4.6:1 with white: Donate buttons */
  --coral-ink-2: #AE3B21;
  --cream: #FAF6EE;
  --cream-2: #F3EBDC;
  --white: #FFFFFF;
  --ink: #12323D;
  --ink-soft: #3F5A63;
  --line: #E3D9C6;
  --sage-tint: #E5F0EC;
  --teal-tint: #E2EEF0;
  --amber-tint: #FEF3DA;
  --coral-tint: #FCE6E0;
  --sun: linear-gradient(180deg, #FBBE4C 0%, #EC6046 100%);
  --deep: linear-gradient(160deg, #1E6C7A 0%, #0E3A48 70%);

  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-base: 1.0625rem;
  --lh: 1.7;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgb(14 58 72 / .06), 0 8px 24px -8px rgb(14 58 72 / .18);
  --shadow-lg: 0 2px 4px rgb(14 58 72 / .06), 0 24px 60px -18px rgb(14 58 72 / .35);
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-body); font-size: var(--fs-base); line-height: var(--lh); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--lagoon); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.section--lagoon :focus-visible, .site-footer :focus-visible, .partner :focus-visible { outline-color: var(--amber); }
::selection { background: var(--amber); color: var(--lagoon); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--lagoon); color: #fff; padding: .75rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; transition: top .2s; }
.skip:focus { top: 1rem; color: #fff; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.i-sm { width: 1.05em; height: 1.05em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; }
main { display: block; }
main:focus { outline: none; }

/* 3. Layout and type -------------------------------------------------- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: var(--section); position: relative; }
.section--sage { background: var(--sage-tint); }
.section--cream-deep { background: var(--cream-2); }
.section--lagoon { background: var(--lagoon); color: #E8F1EF; overflow: hidden; }
.section--lagoon .h2, .section--lagoon h2, .section--lagoon h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.section-head--split .lead { max-width: 30rem; margin: 0; }

h1, h2, h3, .h1, .h2, .h3 { font-family: var(--f-head); color: var(--lagoon); font-weight: 750; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
.h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 800; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
.lead-sm { font-size: 1.125rem; }
.section--lagoon .lead { color: #CFE3DF; }
.eyebrow { font-family: var(--f-body); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin: 0 0 1rem; }
.eyebrow a { color: inherit; }
.eyebrow--amber { color: var(--amber); }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--teal); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.text-link:hover .i { transform: translateX(3px); }
.text-link .i { transition: transform .2s var(--ease); }
.t-coral { color: var(--coral); }

/* 4. Buttons ---------------------------------------------------------- */
.btn { --bg: var(--teal); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s, background-color .18s, color .18s; }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(14 58 72 / .55); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--lagoon); }
.btn--primary:hover { --bg: var(--teal); }
.btn--donate { --bg: var(--coral-ink); }
.btn--donate:hover { --bg: var(--coral-ink-2); }
.btn--amber { --bg: var(--amber); --fg: var(--lagoon); }
.btn--amber:hover { --bg: #FFCB67; }
.btn--light { --bg: var(--cream); --fg: var(--lagoon); }
.btn--ghost { --bg: transparent; --fg: var(--lagoon); border-color: currentColor; }
.btn--ghost:hover { --bg: var(--lagoon); --fg: #fff; border-color: var(--lagoon); }
.btn--lg { min-height: 56px; padding: .85em 1.7em; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: .45em 1em; font-size: .9rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: rgb(14 58 72 / .08); }
.icon-btn--round { border-radius: 50%; border: 2px solid var(--lagoon); color: var(--lagoon); width: 52px; height: 52px; }
.icon-btn--round:hover { background: var(--lagoon); color: #fff; }
.link-btn { background: none; border: 0; padding: .3rem 0; color: inherit; cursor: pointer; display: inline-flex; gap: .4em; align-items: center; text-decoration: underline; text-underline-offset: .2em; }

/* 5. Header and menu -------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(250 246 238 / .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgb(14 58 72 / .35); background: rgb(250 246 238 / .97); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--lagoon); margin-right: auto; }
.brand img { width: 34px; height: auto; }
.wordmark { display: grid; grid-template-columns: auto auto; line-height: .9; }
.wm-hope, .wm-aid { font-family: var(--f-head); font-weight: 900; font-size: 1.6rem; letter-spacing: -.01em; font-variation-settings: "opsz" 72; }
.wm-hope { color: var(--lagoon); }
.wm-aid { color: var(--coral); }
.wm-net { grid-column: 1 / -1; font-family: var(--f-body); font-weight: 600; font-size: .58rem; letter-spacing: .52em; color: var(--teal); text-transform: uppercase; margin-top: .3rem; padding-left: .1em; }
.brand--light .wm-hope { color: #fff; }
.brand--light .wm-net { color: var(--amber); }
.site-nav ul { list-style: none; display: flex; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .6rem .9rem; font-weight: 600; font-size: .98rem; color: var(--lagoon); text-decoration: none; border-radius: 999px; position: relative; }
.site-nav a:not(.btn):hover { background: rgb(14 58 72 / .06); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: .25rem; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--coral); }
.nav-donate { display: none; }
.menu-toggle { display: none; }
.menu-intro, .menu-foot, .nav-ic, .nav-arrow { display: none; }
.a11y-head-btn { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--lagoon); background: transparent; color: var(--lagoon); cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.a11y-head-btn:hover { background: var(--lagoon); color: #fff; transform: scale(1.06); }
.a11y-head-btn .i { width: 26px; height: 26px; }
.a11y-head-btn[aria-expanded="true"] { background: var(--lagoon); color: var(--amber); }

@media (min-width: 900px) {
  .site-nav { display: block !important; }
}
@media (max-width: 899px) {
  .header-inner { min-height: 66px; }
  /* backdrop-filter makes the header the frame for the fixed menu panel, which cut it to 66px: no blur on phones */
  .site-header, .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(250 246 238 / .98); }
  .header-donate { min-height: 42px; padding: .5em 1.05em; }
  .menu-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--lagoon); color: #fff; cursor: pointer; }
  .menu-icon { display: grid; gap: 5px; width: 22px; }
  .menu-icon span { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .a11y-head-btn { width: 44px; height: 44px; }
  .a11y-head-btn .i { width: 24px; height: 24px; }
  .header-inner { gap: .6rem; }
  .menu-toggle[aria-expanded="true"] { background: var(--coral-ink); }
  .site-nav { position: fixed; inset: 66px 0 0 0; display: none; overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem var(--gutter) 1.6rem; color: #E8F1EF;
    background: radial-gradient(120% 60% at 100% 0%, rgb(251 190 76 / .22), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgb(236 96 70 / .2), transparent 65%), linear-gradient(170deg, var(--lagoon) 0%, var(--lagoon-2) 100%); }
  .site-nav::before, .site-nav::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
  .site-nav::before { width: 230px; height: 230px; right: -90px; top: 140px; border: 34px solid rgb(251 190 76 / .13); }
  .site-nav::after { width: 150px; height: 150px; left: -60px; bottom: 90px; background: rgb(30 108 122 / .45); }
  .site-nav > * { position: relative; z-index: 1; }
  .site-nav.is-open { display: flex; flex-direction: column; animation: drop .28s var(--ease); }
  .menu-intro { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .15rem .9rem; padding-bottom: 1.25rem; margin-bottom: .5rem; border-bottom: 1px solid rgb(255 255 255 / .14); }
  .menu-intro img { grid-row: span 2; width: 46px; height: auto; }
  .menu-intro p { margin: 0; }
  .menu-intro .mi-hope, .menu-intro .mi-aid { font-family: var(--f-head); font-weight: 900; font-size: 1.55rem; letter-spacing: -.01em; }
  .menu-intro .mi-hope { color: #fff; }
  .menu-intro .mi-aid { color: var(--coral); }
  .menu-intro .mi-net { font-size: .62rem; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: var(--amber); margin-left: .35rem; }
  .menu-intro .mi-line { font-size: .92rem; font-style: italic; color: #B9D3CF; }
  .site-nav ul { flex-direction: column; gap: 0; margin: 0; padding: 0; }
  .site-nav li { counter-increment: nav; border-bottom: 1px solid rgb(255 255 255 / .1); }
  .site-nav.is-open li { animation: rise .45s var(--ease) both; }
  .site-nav.is-open li:nth-child(2) { animation-delay: .05s; } .site-nav.is-open li:nth-child(3) { animation-delay: .1s; } .site-nav.is-open li:nth-child(4) { animation-delay: .15s; } .site-nav.is-open li:nth-child(5) { animation-delay: .2s; }
  .site-nav a:not(.btn):not(.mf-link) { display: flex; align-items: center; gap: 1rem; color: #fff; font-family: var(--f-head); font-size: 1.7rem; font-weight: 750; line-height: 1.1; padding: .7rem 0; border-radius: 0; min-height: 58px; transition: color .2s, padding-left .25s var(--ease); }
  .nav-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgb(255 255 255 / .09); color: var(--amber); transition: background-color .2s, color .2s; }
  .nav-ic .i { width: 22px; height: 22px; }
  .nav-lbl { flex: 1; }
  .nav-arrow { display: grid; color: rgb(255 255 255 / .4); transition: transform .25s var(--ease), color .2s; }
  .nav-arrow .i { width: 22px; height: 22px; }
  .site-nav a:not(.btn):hover, .site-nav a:not(.btn):focus-visible { background: none; color: var(--amber); padding-left: .35rem; }
  .site-nav a:not(.btn):hover .nav-arrow { transform: translateX(4px); color: var(--amber); }
  .site-nav a[aria-current="page"] { color: var(--amber); }
  .site-nav a[aria-current="page"] .nav-ic { background: var(--amber); color: var(--lagoon); }
  .site-nav a[aria-current="page"] .nav-arrow { color: var(--amber); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .nav-donate { display: inline-flex; justify-content: center; width: 100%; margin-top: 1.25rem; min-height: 56px; font-size: 1.15rem; box-shadow: 0 14px 30px -12px rgb(236 96 70 / .7); }
  .brand { margin-right: auto; min-width: 0; }
}
@media (max-width: 480px) {
  .header-inner { gap: .4rem; }
  .brand { gap: .45rem; }
  .brand img { width: 28px; }
  .wm-hope, .wm-aid { font-size: 1.32rem; }
  .wm-net { font-size: .5rem; letter-spacing: .44em; }
  .header-donate { min-height: 40px; padding: .4em .8em; font-size: .92rem; }
  .a11y-head-btn { width: 42px; height: 42px; }
  .menu-toggle { width: 44px; height: 44px; }
}
@media (max-width: 899px) {
  .menu-foot { display: grid; gap: .5rem; margin-top: auto; padding-top: 1.25rem; }
  .menu-foot .mf-areas { margin: 0 0 .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
  .menu-foot .mf-link { display: inline-flex; align-items: center; gap: .6rem; color: #CFE3DF; font-size: 1rem; text-decoration: none; padding: .35rem 0; }
  .menu-foot .mf-link .i { width: 20px; height: 20px; color: var(--amber); }
  .menu-foot .mf-link:hover { color: #fff; }
  body.menu-open { overflow: hidden; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* 6. Brand shapes ----------------------------------------------------- */
.sun { border-radius: 50%; background: var(--sun); }
.sun--hero { position: absolute; width: 34%; aspect-ratio: 1; left: -6%; top: 6%; z-index: 0; box-shadow: 0 30px 60px -20px rgb(236 96 70 / .5); }
.sun--sm { width: 64px; height: 64px; }
.sun--xs { width: 30px; height: 30px; display: block; }
.sun--page { position: absolute; width: 120px; height: 120px; right: 8%; top: -18px; }
.sun--card { position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; opacity: .95; }
.pill { position: absolute; border-radius: 999px; }
.pill--sage { width: 34px; height: 120px; background: linear-gradient(180deg, var(--sage), #1E6C6C); }
.pill--teal { width: 26px; height: 90px; background: linear-gradient(180deg, var(--teal), var(--lagoon)); }
.arch, .arch-sm, .arch-wide, .pill-frame { overflow: hidden; position: relative; background: var(--cream-2); }
.arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.arch-sm { border-radius: 220px 220px var(--r) var(--r); }
.arch-wide { border-radius: 400px 400px var(--r-lg) var(--r-lg); }
.pill-frame { border-radius: 999px; }
.arch img, .arch-sm img, .arch-wide img, .pill-frame img, .arch picture, .arch-sm picture, .arch-wide picture, .pill-frame picture { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; min-height: 160px; background: radial-gradient(circle at 70% 30%, rgb(251 190 76 / .55) 0 18%, transparent 19%), linear-gradient(160deg, var(--sage-tint), var(--teal-tint)); }
.ph--sun { background: radial-gradient(circle at 50% 60%, var(--amber) 0 22%, transparent 23%), var(--deep); }
.tone-0 { --tone: var(--teal); --tone-bg: var(--teal-tint); }
.tone-1 { --tone: #B2771A; --tone-bg: var(--amber-tint); }
.tone-2 { --tone: var(--coral-ink); --tone-bg: var(--coral-tint); }
.tone-3 { --tone: #2F7A69; --tone-bg: var(--sage-tint); }
.tone-amber { --tone: #B2771A; --tone-bg: var(--amber-tint); }
.tone-coral { --tone: var(--coral-ink); --tone-bg: var(--coral-tint); }
.tone-sage { --tone: #2F7A69; --tone-bg: var(--sage-tint); }

/* 7. Home ------------------------------------------------------------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 70%; background: radial-gradient(closest-side, rgb(70 158 138 / .14), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero-title { font-size: clamp(3rem, 8.4vw, 6.4rem); font-weight: 900; line-height: .95; letter-spacing: -.025em; margin-bottom: .3em; font-variation-settings: "opsz" 144; }
.hero-title .t-net { display: block; font-family: var(--f-body); font-size: .2em; font-weight: 600; letter-spacing: .55em; color: var(--teal); margin-top: .55em; text-transform: uppercase; }
.hero-tagline { font-family: var(--f-head); font-style: italic; font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.95rem); color: var(--ink-soft); line-height: 1.3; margin-bottom: 1rem; }
.hero .lead { max-width: 34rem; }
.hero-art { position: relative; max-width: 520px; width: 100%; justify-self: center; padding: 6% 0 0 8%; }
.hero-arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.hero-round { position: absolute; z-index: 2; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; left: -4%; bottom: 6%; border: 6px solid var(--cream); box-shadow: var(--shadow); background: var(--cream-2); }
.hero-round img, .hero-round picture { width: 100%; height: 100%; object-fit: cover; }
.hero-art .pill--sage { right: -3%; top: 32%; z-index: 2; }

.places { background: var(--lagoon); color: #E8F1EF; }
.places-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 1.35rem; }
.places-h { margin: 0; display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.places-list { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.places-list li { font-family: var(--f-head); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; color: #fff; display: flex; align-items: center; gap: 1.5rem; }
.places-list li:not(:last-child)::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.places-note { margin: 0 0 0 auto; font-size: .92rem; color: #B9D3CD; }

.vm-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) { .vm-grid { grid-template-columns: 1.15fr .85fr; } }
.quote-xl { margin: 2.2rem 0 1.5rem; position: relative; isolation: isolate; }
.quote-xl p { font-family: var(--f-head); font-size: clamp(1.6rem, 3.3vw, 2.55rem); line-height: 1.25; font-weight: 650; color: var(--lagoon); margin: 0; }
.quote-xl::before { content: "\201C"; position: absolute; left: -.05em; top: -.42em; font-family: var(--f-head); font-size: 6rem; line-height: 1; color: var(--amber); z-index: -1; }
.mission { position: relative; }
.mission-img { aspect-ratio: 5 / 3; }
.mission-card { position: relative; margin: -2.5rem 1rem 0; background: #fff; border-radius: var(--r); padding: 1.6rem 1.6rem .6rem; box-shadow: var(--shadow); }
.mission-card p { color: var(--ink-soft); }
.goal-card { margin-top: clamp(3rem, 6vw, 5rem); background: var(--deep); color: #E3EFEC; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.goal-card .h2 { color: #fff; }
.goal-card .lead { color: #CFE3DF; margin: 0; }
.goal-card > .sun { position: absolute; width: 180px; height: 180px; right: -50px; bottom: -60px; opacity: .9; }
@media (min-width: 900px) { .goal-card { grid-template-columns: 1fr auto; } .goal-card > .btn { position: relative; z-index: 1; margin-right: 4rem; } }

.icon-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.icon-grid li { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: var(--r); padding: 1.1rem 1.25rem; font-weight: 600; color: var(--lagoon); line-height: 1.4; box-shadow: 0 1px 0 var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.icon-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-bubble, .value-ic { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--tone-bg, var(--teal-tint)); color: var(--tone, var(--teal)); }
.icon-bubble .i, .value-ic .i { width: 26px; height: 26px; }

.programmes .section-head { margin-bottom: 2rem; }
.scroller { position: relative; }
.scroller-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 1.5rem; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; }
.scroller-track:focus-visible { outline-offset: -3px; }
.prog-card { scroll-snap-align: start; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prog-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0 0 140px 140px / 0 0 60px 60px; }
.prog-img img, .prog-img picture { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prog-card:hover .prog-img img { transform: scale(1.05); }
.prog-card h3 { font-size: 1.15rem; padding: 1.1rem 1.25rem 1.4rem; margin: 0; }
.scroller-btns { display: flex; gap: .75rem; justify-content: flex-end; }
.pillars { display: grid; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--tone-bg); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.pillar-img { aspect-ratio: 16 / 10; margin: 1rem 1rem 0; }
.pillar-body { padding: 1.5rem 1.6rem 1.8rem; }
.pillar .eyebrow { color: var(--tone); margin-bottom: .5rem; }
.pillar .h3 { display: flex; gap: .6rem; align-items: flex-start; font-size: 1.4rem; }
.pillar-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; color: var(--tone); margin-top: -.15rem; }
.tick-list { list-style: none; display: grid; gap: .55rem; }
.tick-list li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.45; }
.tick-list .i { color: var(--tone, var(--teal)); margin-top: .15em; }

.impact-approach .rays { position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgb(251 190 76 / .07) 0 6deg, transparent 6deg 18deg); pointer-events: none; }
.ia-grid { display: grid; gap: clamp(3rem, 7vw, 6rem); position: relative; }
@media (min-width: 900px) { .ia-grid { grid-template-columns: 1fr 1.1fr; } }
.impact-list { list-style: none; display: grid; gap: 1rem; margin-bottom: 2rem; }
.impact-list li { display: flex; gap: 1rem; align-items: center; font-size: 1.15rem; font-weight: 500; color: #fff; }
.tick { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--lagoon); flex: none; }
.tick .i { width: 20px; height: 20px; stroke-width: 3; }
.path { list-style: none; position: relative; margin: 0 0 2rem; padding-left: 0; display: grid; gap: 1.1rem; }
.path::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 26px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--sage), var(--amber)); }
.path li { display: flex; gap: 1.1rem; align-items: center; position: relative; }
.path-no { display: inline-grid; place-items: center; width: 45px; height: 45px; flex: none; border-radius: 50%; background: var(--cream); color: var(--lagoon); font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; box-shadow: 0 0 0 5px var(--lagoon); position: relative; }
.path-text { font-size: 1.05rem; line-height: 1.45; color: #E8F1EF; }
.path-end { padding-left: 8px; }
.approach-photo { margin-top: clamp(3rem, 6vw, 5rem); aspect-ratio: 21 / 8; box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .approach-photo { aspect-ratio: 4 / 3; } }

.values { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.value { background: #fff; border-radius: var(--r-lg); padding: 1.8rem 1.6rem 1.4rem; position: relative; overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.value::after { content: ""; position: absolute; right: -36px; top: -36px; width: 100px; height: 100px; border-radius: 50%; background: var(--tone-bg); transition: transform .4s var(--ease); }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value:hover::after { transform: scale(1.35); }
.value h3 { margin: 1.1rem 0 .4rem; font-size: 1.35rem; }
.value p { color: var(--ink-soft); margin: 0; }
.value .value-ic { position: relative; z-index: 1; }

.news-cards { list-style: none; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.news-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; }
.news-img img, .news-img picture { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-body time { font-size: .82rem; font-weight: 600; color: var(--teal); letter-spacing: .05em; }
.news-body h3 { margin: .4rem 0 .5rem; font-size: 1.3rem; }
.news-body p { color: var(--ink-soft); font-size: .98rem; }
.news-body .text-link { margin-top: auto; align-self: flex-start; }

.partner { background: var(--deep); color: #E3EFEC; position: relative; overflow: hidden; }
.partner::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -170px; border-radius: 50%; background: var(--sun); opacity: .9; }
.partner-inner { position: relative; display: grid; gap: 2.5rem; padding-block: clamp(4rem, 8vw, 6.5rem); align-items: center; }
@media (min-width: 900px) { .partner-inner { grid-template-columns: 1.1fr .9fr; } }
.partner .h2 { color: #fff; }
.partner .lead { color: #CFE3DF; }
.partner-list p { font-weight: 600; color: #fff; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .6rem 1.1rem; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .25); color: #fff; font-weight: 500; }

/* 8. Inner pages ------------------------------------------------------ */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.3fr .7fr; } }
.page-hero .lead { max-width: 40rem; }
.page-hero-art { position: relative; max-width: 360px; justify-self: center; width: 100%; }
.page-hero-art .arch { aspect-ratio: 4 / 5; position: relative; z-index: 1; box-shadow: var(--shadow-lg); }
.page-hero-art .sun--page { right: -30px; top: -30px; z-index: 0; }
.page-hero-deco { position: relative; height: 200px; display: none; }
@media (min-width: 900px) { .page-hero-deco { display: block; } }
.page-hero-deco .sun--page { width: 150px; height: 150px; right: 30%; top: 10px; }
.page-hero-deco .pill--sage { right: 18%; top: 60px; height: 140px; width: 40px; }
.page-hero-deco .pill--teal { right: 42%; top: 90px; }
.page-hero--donate { background: linear-gradient(180deg, var(--cream) 0%, var(--amber-tint) 100%); }

.who-grid, .leader-grid, .contact-grid, .donate-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .who-grid { grid-template-columns: 1fr 1fr; }
  .leader-grid { grid-template-columns: .8fr 1.2fr; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .donate-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
}
.who-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.who-a { aspect-ratio: 9 / 16; }
.who-b { aspect-ratio: 3 / 4; margin-bottom: 3rem; }
.who-art .sun { position: absolute; left: 44%; top: 6%; }
.why-inner { max-width: 60rem; text-align: center; margin-inline: auto; }
.statement { font-family: var(--f-head); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; font-weight: 650; color: #fff; margin: 0; }
.leader-photo { position: relative; max-width: 380px; width: 100%; justify-self: center; }
.leader-arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.leader-photo .sun { position: absolute; right: -16px; bottom: 30px; width: 90px; height: 90px; }
.monogram { width: 100%; height: 100%; display: grid; place-items: center; background: var(--deep); }
.monogram span { font-family: var(--f-head); font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--amber); letter-spacing: .02em; }
.letter p { font-size: 1.08rem; color: var(--ink-soft); }
.letter p:first-child::first-letter { font-family: var(--f-head); float: left; font-size: 4.2rem; line-height: .85; padding: .3rem .6rem 0 0; color: var(--coral); font-weight: 800; }
.signature { display: flex; flex-direction: column; margin-top: 1.5rem; padding-left: 1.2rem; border-left: 4px solid var(--amber); }
.sig-name { font-family: var(--f-head); font-style: italic; font-size: 1.6rem; font-weight: 700; color: var(--lagoon); }
.sig-role { font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.giving-lead { text-align: center; font-family: var(--f-head); font-style: italic; font-size: 1.3rem; color: var(--lagoon); }
.provides { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0 2.5rem; }
.provides li { background: #fff; border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; font-weight: 600; color: var(--lagoon); line-height: 1.4; }
.provides-amt { font-family: var(--f-head); font-size: 1.6rem; color: var(--coral-ink); }

.contact-cards { list-style: none; display: grid; gap: .8rem; margin-bottom: 1.5rem; }
.contact-cards a, .contact-cards div { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border-radius: var(--r); background: #fff; text-decoration: none; color: var(--lagoon); box-shadow: 0 1px 0 var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.contact-cards a:hover { transform: translateX(4px); box-shadow: var(--shadow); color: var(--lagoon); }
.contact-cards small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-cards strong { font-weight: 600; word-break: break-word; }
.contact-img { aspect-ratio: 4 / 3; margin-top: 1.5rem; }
.contact-img:empty { display: none; }

.donate-card { position: relative; overflow: hidden; background: var(--deep); color: #E3EFEC; border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-lg); }
.donate-card .h2 { color: #fff; position: relative; }
.donate-label { margin: 1.5rem 0 .3rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--mint); }
.donate-number { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.donate-number .num { font-family: var(--f-head); font-size: clamp(2.3rem, 6vw, 3.4rem); font-weight: 800; color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.donate-name { color: var(--mint); }
.donate-name strong { color: #fff; }
.steps { list-style: none; counter-reset: s; display: grid; gap: .75rem; margin: 1.75rem 0; }
.steps li { counter-increment: s; display: flex; gap: .9rem; align-items: flex-start; line-height: 1.5; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--amber); color: var(--lagoon); font-weight: 700; font-size: .9rem; }
.donate-note { display: flex; gap: .6rem; align-items: flex-start; background: rgb(255 255 255 / .08); border-radius: var(--r-sm); padding: .9rem 1rem; font-size: .95rem; margin: 0; }
.donate-side { display: grid; gap: 1.5rem; }
.donate-poster { margin: 1.75rem 0 0; position: relative; }
.donate-poster a { display: block; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 12px 30px -14px rgb(0 0 0 / .5); transform: rotate(-1.2deg); transition: transform .3s var(--ease); }
.donate-poster a:hover { transform: rotate(0) scale(1.01); }
.donate-poster img { width: 100%; height: auto; }
.donate-poster figcaption { font-size: .88rem; color: var(--mint); margin-top: .75rem; text-align: center; }
.abroad { display: flex; gap: .9rem; align-items: flex-start; background: var(--teal-tint); border-radius: var(--r); padding: 1.1rem 1.25rem; }
.abroad p { margin: 0; }
.abroad .i { color: var(--teal); margin-top: .2em; }

.post-head { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.post-cover { margin: 0 auto 3rem; }
.post-cover .arch-wide { aspect-ratio: 16 / 8; }
.post-cover figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .75rem; text-align: center; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.9rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.4rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 2rem 0; padding: 1rem 0 1rem 1.5rem; border-left: 5px solid var(--amber); font-family: var(--f-head); font-size: 1.4rem; font-style: italic; color: var(--lagoon); }
.share { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding-block: 2rem 4rem; }
.share p { margin: 0; font-weight: 600; }
.share ul { list-style: none; display: flex; gap: .5rem; }
.share a, .share button { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--lagoon); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--lagoon); color: #fff; }
.preview-bar { background: var(--amber); color: var(--lagoon); text-align: center; padding: .7rem 1rem; font-weight: 600; display: flex; justify-content: center; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 3rem; }
.empty-state { text-align: center; padding: 3rem 1rem; display: grid; justify-items: center; gap: 1rem; }

.help-now { display: flex; gap: 1rem; align-items: center; background: var(--coral-tint); border-radius: var(--r); padding: 1.1rem 1.4rem; margin-bottom: 2rem; color: var(--lagoon); }
.help-now p { margin: 0; }
.help-now .i { color: var(--coral-ink); width: 28px; height: 28px; }
.help-now a { color: var(--coral-ink); font-weight: 700; }
.resource-list { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.resource-list a { display: flex; gap: 1.1rem; align-items: flex-start; height: 100%; padding: 1.4rem; background: #fff; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.resource-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.res-body { display: grid; gap: .3rem; }
.res-body strong { font-family: var(--f-head); font-size: 1.25rem; color: var(--lagoon); }
.res-body small { color: var(--teal); font-weight: 600; }
.credits-note { margin-top: 2rem; font-size: .9rem; color: var(--ink-soft); text-align: center; }

/* 9. Forms ------------------------------------------------------------ */
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; color: var(--lagoon); font-size: .98rem; }
.req, .opt { font-weight: 500; font-size: .78rem; color: var(--ink-soft); margin-left: .35rem; }
.req { color: var(--coral-ink); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], textarea, select {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border: 2px solid #D9CFBC; border-radius: 14px; background: var(--cream); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, background-color .15s; }
textarea { resize: vertical; min-height: 130px; }
input:hover, textarea:hover { border-color: #BDAF96; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgb(30 108 122 / .15); }
[aria-invalid="true"] { border-color: var(--coral-ink) !important; background: #FFF8F6; }
.field-error { display: flex; gap: .4rem; align-items: center; margin: 0; color: var(--coral-ink-2); font-weight: 600; font-size: .92rem; }
.form-note { display: flex; gap: .45rem; align-items: center; font-size: .9rem; color: var(--ink-soft); margin: 0; }
.notice { display: flex; gap: .8rem; align-items: flex-start; border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.notice p { margin: 0; }
.notice .i { margin-top: .15em; }
.notice--ok { background: var(--sage-tint); color: #1F5C4E; }
.notice--warn { background: var(--amber-tint); color: #6B4A0B; }
.notice:focus { outline: 3px solid var(--amber); }

/* 10. Gallery and lightbox ------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; color: var(--lagoon); cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.is-on { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.gallery-grid { list-style: none; columns: 2 170px; column-gap: 1rem; }
@media (min-width: 900px) { .gallery-grid { columns: 4 220px; } }
.gallery-grid li { break-inside: avoid; margin-bottom: 1rem; }
.gallery-grid li[hidden] { display: none; }
.gallery-grid a { display: block; border-radius: var(--r); overflow: hidden; position: relative; background: var(--cream-2); }
.gallery-grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgb(14 58 72 / .45)); opacity: 0; transition: opacity .25s; }
.gallery-grid a:hover::after, .gallery-grid a:focus-visible::after { opacity: 1; }
.gallery-grid img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid li:nth-child(5n+2) a { border-radius: 160px 160px var(--r) var(--r); }
.gallery-grid li:nth-child(7n+4) a { border-radius: var(--r) var(--r) 160px 160px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgb(8 30 38 / .94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem; color: #fff; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: .9rem; max-height: 100%; }
.lb-img { max-width: min(100%, 1400px); max-height: 80vh; border-radius: var(--r); object-fit: contain; }
.lb-cap { text-align: center; max-width: 50rem; font-size: .95rem; color: #DCE8E5; }
.lb-credit { color: var(--amber); }
.lb-count { opacity: .7; margin-left: .4rem; }
.lightbox .icon-btn { color: #fff; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.lightbox .icon-btn:hover { background: rgb(255 255 255 / .2); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lb-nav { position: absolute; bottom: 1rem; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; } }

/* 11. Footer --------------------------------------------------------- */
.site-footer { background: var(--lagoon-2); color: #BFD5D0; position: relative; overflow: hidden; padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-sun { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); left: 50%; margin-left: -110px; top: -150px; opacity: .85; }
.footer-grid { display: grid; gap: 2.5rem; position: relative; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .footer-grid { grid-template-columns: 1.5fr .8fr 1fr 1fr; } }
.footer-about p { margin-top: 1.2rem; max-width: 26rem; font-size: .95rem; }
.footer-h { font-family: var(--f-body); font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.footer-links ul, .contact-lines { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #E3EFEC; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--amber); text-decoration: underline; }
.contact-lines li { display: flex; gap: .6rem; align-items: center; }
.contact-lines .i { color: var(--sage); }
.footer-give { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--r-lg); padding: 1.4rem; align-self: start; }
.give-method { margin: 0; font-size: .9rem; color: var(--mint); }
.give-number { font-family: var(--f-head); font-size: 1.85rem; font-weight: 800; color: #fff; margin: .1rem 0 1rem; font-variant-numeric: tabular-nums; }
.socials { list-style: none; display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .08); }
.socials a:hover { background: var(--amber); color: var(--lagoon) !important; }
.socials--dark a { background: #fff; color: var(--lagoon); box-shadow: 0 1px 0 var(--line); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-block: 1.5rem 5.5rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .88rem; position: relative; }
.footer-base p { margin: 0; }
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.footer-base .credit { width: 100%; font-size: .75rem; opacity: .55; letter-spacing: .02em; }
.footer-base .credit a { color: inherit; }
.footer-base .credit:hover { opacity: .9; }

/* 12. Accessibility panel -------------------------------------------- */
.a11y-panel { position: fixed; right: 1rem; top: 5rem; z-index: 95; width: min(380px, calc(100vw - 2rem)); max-height: calc(100vh - 6.5rem); max-height: calc(100dvh - 6.5rem); overflow-y: auto; background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.25rem; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.a11y-head h2 { font-size: 1.25rem; margin: 0; }
.a11y-note { font-size: .88rem; color: var(--ink-soft); }
.a11y-group { border: 0; padding: 0; margin: 0 0 1rem; }
.a11y-group legend { font-weight: 600; margin-bottom: .5rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.seg button { min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--cream); cursor: pointer; font-family: var(--f-head); font-weight: 700; font-size: 1rem; }
.seg .seg-md { font-size: 1.25rem; }
.seg .seg-lg { font-size: 1.5rem; }
.seg [aria-pressed="true"] { border-color: var(--lagoon); background: var(--lagoon); color: #fff; }
.a11y-toggles { display: grid; gap: .5rem; margin-bottom: 1rem; }
.a11y-toggle { display: flex; gap: .8rem; align-items: center; text-align: left; width: 100%; min-height: 56px; padding: .6rem .85rem; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); cursor: pointer; }
.a11y-toggle span { display: grid; }
.a11y-toggle small { font-size: .8rem; color: var(--ink-soft); }
.a11y-toggle[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); }
.a11y-toggle[aria-pressed="true"]::after { content: "On"; margin-left: auto; font-size: .78rem; font-weight: 700; color: #fff; background: var(--teal); border-radius: 999px; padding: .15rem .55rem; }
.reading-guide { position: fixed; left: 0; right: 0; height: 3.2em; top: 0; z-index: 80; pointer-events: none; display: none; background: rgb(251 190 76 / .16); border-block: 2px solid rgb(251 190 76 / .8); }

/* 13. Error and trap pages ------------------------------------------- */
.error-page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 85% 10%, rgb(251 190 76 / .22), transparent 35%), radial-gradient(circle at 10% 90%, rgb(70 158 138 / .16), transparent 40%), var(--cream); }
.error-top { padding-block: 1.25rem; }
.error-main { flex: 1; display: grid; gap: 2rem; align-items: center; padding-block: 2rem 4rem; }
@media (min-width: 900px) { .error-main { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.error-art { max-width: 520px; width: 100%; justify-self: center; }
.error-copy .h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.error-small { font-size: .92rem; color: var(--ink-soft); margin-top: 1.5rem; }
.error-links { margin-top: 2rem; }
.error-links p { font-weight: 600; margin-bottom: .5rem; }
.error-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.error-links a { display: inline-block; padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.error-foot { padding-block: 1.25rem 2rem; font-size: .85rem; color: var(--ink-soft); }
.error-foot p { margin: 0; }
.ea { width: 100%; height: auto; overflow: visible; }
.ea-num { font-family: var(--f-head); font-weight: 900; font-size: 260px; fill: var(--lagoon); }
.ea-q { font-family: var(--f-head); font-weight: 900; font-size: 90px; fill: #fff; text-anchor: middle; }
.ea-small { font-family: var(--f-head); font-style: italic; font-weight: 700; font-size: 24px; fill: var(--teal); }
.ea-jar { font-family: var(--f-body); font-weight: 700; font-size: 30px; letter-spacing: .12em; fill: var(--lagoon); }
.ea-jar--sm { font-size: 24px; fill: #fff; }
.ea-float { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ea-lock { animation: wiggle 3.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.ea-bee { animation: buzz 7s linear infinite; }
.ea-bee.b1 { offset-path: path("M60 90 C 120 20, 200 120, 250 60 S 400 40, 460 100"); }
.ea-bee.b2 { offset-path: path("M460 120 C 400 60, 330 140, 260 90 S 120 70, 70 130"); animation-duration: 9s; }
.ea-bee.b3 { offset-path: path("M100 60 C 200 0, 320 100, 420 40"); animation-duration: 5.5s; animation-direction: alternate; }
.ea-steam path { animation: steam 3s ease-in-out infinite; }
.ea-steam path:nth-child(2) { animation-delay: .6s; }
.ea-steam path:nth-child(3) { animation-delay: 1.2s; }
.ea-sink { animation: sink 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ea-leaf { animation: sway 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 100% 100%; }
.ea-leaf.l2 { transform-origin: 0 100%; animation-delay: .5s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(7deg); } 95% { transform: rotate(-4deg); } }
@keyframes buzz { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: .6; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes sink { 50% { transform: translateY(8px) scale(.94); } }
@keyframes sway { 50% { transform: rotate(-6deg); } }
.decoy { display: grid; gap: .75rem; max-width: 22rem; margin: 1.5rem 0; padding: 1.25rem; border-radius: var(--r); background: #fff; border: 2px dashed var(--amber); }
.decoy label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.decoy-note { display: flex; gap: .4rem; align-items: center; margin: 0; font-size: .9rem; color: var(--coral-ink); font-weight: 600; }
.error-honeypot .error-main { --x: 1; }

/* 14. Motion ---------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 15. Accessibility modes (set by the panel) -------------------------- */
html.a11y-size-1 { font-size: 112.5%; }
html.a11y-size-2 { font-size: 128%; }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable textarea { font-family: "Atkinson Hyperlegible", var(--f-body); }
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable .h1, html.a11y-readable .h2, html.a11y-readable .h3, html.a11y-readable .quote-xl p, html.a11y-readable .statement, html.a11y-readable .hero-title, html.a11y-readable .hero-tagline { font-family: "Atkinson Hyperlegible", var(--f-body); font-style: normal; }
html.a11y-spacing body { --lh: 2; letter-spacing: .03em; word-spacing: .12em; }
html.a11y-spacing p { margin-bottom: 1.4em; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-contrast { --ink: #000; --ink-soft: #1d2a2e; --teal: #0B4F5B; --line: #6d6250; --cream: #fff; --cream-2: #f1f1f1; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .section--lagoon, html.a11y-contrast .partner, html.a11y-contrast .goal-card, html.a11y-contrast .donate-card, html.a11y-contrast .site-footer, html.a11y-contrast .places { background: #04161C; color: #fff; }
html.a11y-contrast .lead, html.a11y-contrast .path-text, html.a11y-contrast .site-footer { color: inherit; }
html.a11y-contrast .value, html.a11y-contrast .icon-grid li, html.a11y-contrast .news-card a, html.a11y-contrast .form-card, html.a11y-contrast .contact-cards a, html.a11y-contrast .resource-list a { border: 2px solid #000; }
html.a11y-calm *, html.a11y-calm *::before, html.a11y-calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-calm .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-guide .reading-guide { display: block; }

/* 16. Print ----------------------------------------------------------- */
@media print {
  .site-header, .a11y-head-btn, .a11y-panel, .site-footer .footer-give, .scroller-btns, .share, .actions .btn--ghost { display: none !important; }
  body { background: #fff; }
  .section--lagoon, .partner, .goal-card, .donate-card { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
