/* ==========================================================================
   Watoto wa Nest e.V. — Design System v2 "Facet"
   Derived from the low-poly bird logo: flat facets, dark outlines, hard
   offset shadows, angled section edges, and the logo's seven colours.
   Plain CSS, no build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Logo palette */
  --black: #111111;
  --brown: #3f2828;
  --red: #9c0a0a;
  --red-bright: #e01b1b;
  --gold: #e8b048;
  --green: #1f8f26;
  --blue: #1368c8;
  --sky: #7ab8f5;

  /* Tints */
  --gold-soft: #fbefd3;
  --green-soft: #e1f3e2;
  --blue-soft: #e3effc;
  --red-soft: #fbe3e3;
  --sky-soft: #ecf5fe;

  /* Surfaces & text */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-sunken: #f4f2ee;
  --ink: #111111;
  --ink-2: #3a3333;
  --muted: #6c6464;
  --line: #e6e1dc;
  --line-strong: #111111;

  /* Semantic */
  --primary: var(--red);
  --primary-hover: #7d0808;
  --primary-ink: #ffffff;
  --accent: var(--blue);
  --focus: var(--blue);

  /* Type */
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  --step-5: clamp(3rem, 2rem + 5.5vw, 6.2rem);

  /* Space */
  --space-xs: 0.5rem; --space-s: 0.75rem; --space-m: 1.25rem; --space-l: 2rem; --space-xl: 3.5rem;
  --space-2xl: clamp(4rem, 3rem + 5vw, 8rem);

  /* Shape & effects: hard, faceted */
  --radius-s: 4px; --radius-m: 6px; --radius-l: 10px; --radius-pill: 999px;
  --bd: 2px;
  --shadow-s: 3px 3px 0 var(--black);
  --shadow-m: 6px 6px 0 var(--black);
  --shadow-l: 10px 10px 0 var(--black);
  --shadow-gold: 6px 6px 0 var(--gold);

  --container: 72rem; --container-narrow: 46rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --cut: clamp(1.5rem, 4vw, 3.5rem); /* angled edge depth */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141111; --bg-elev: #1d1818; --bg-sunken: #0d0b0b;
    --ink: #f4efe9; --ink-2: #d6cdc6; --muted: #a2978f;
    --line: #332a2a; --line-strong: #f4efe9; --black: #f4efe9;
    --gold-soft: #3a2d12; --green-soft: #15301a; --blue-soft: #122540; --red-soft: #3a1414; --sky-soft: #142433;
    --primary: #d4262c; --primary-hover: #ee3a40; --accent: var(--sky); --focus: var(--sky);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141111; --bg-elev: #1d1818; --bg-sunken: #0d0b0b;
  --ink: #f4efe9; --ink-2: #d6cdc6; --muted: #a2978f;
  --line: #332a2a; --line-strong: #f4efe9; --black: #f4efe9;
  --gold-soft: #3a2d12; --green-soft: #15301a; --blue-soft: #122540; --red-soft: #3a1414; --sky-soft: #142433;
  --primary: #d4262c; --primary-hover: #ee3a40; --accent: var(--sky); --focus: var(--sky);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); } h2 { font-size: var(--step-3); } h3 { font-size: var(--step-2); } h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.25em; } li + li { margin-top: 0.35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: var(--bd) solid var(--line-strong); margin: var(--space-l) 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--gold); color: #111; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--black); color: var(--bg); padding: 0.6rem 1rem; transition: top 0.2s; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout primitives ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--space-2xl); position: relative; }
.section--tight { padding-block: var(--space-xl); }
.section--sunken { background: var(--bg-sunken); clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); padding-block: calc(var(--space-2xl) + var(--cut)); }
.section--forest { background: var(--brown); color: #f4efe9; clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 100% 100%, 0 100%); padding-block: calc(var(--space-2xl) + var(--cut)) var(--space-2xl); }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest a { color: var(--gold); }
.section--forest .btn--ghost-light { --_bd: var(--gold); --_ink: #fff; }
.section-head { max-width: 48rem; margin-bottom: var(--space-xl); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 0.9rem; height: 0.9rem; background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.section--forest .eyebrow { color: var(--gold); }
.grid { display: grid; gap: var(--space-m); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split--wide-media { grid-template-columns: 1.15fr 1fr; } .split--reverse > :first-child { order: 2; } }
.flow > * + * { margin-top: var(--space-m); }
.prose h2 { font-size: var(--step-2); margin-top: 2em; } .prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; } .prose p, .prose li { color: var(--ink-2); } .prose strong { color: var(--ink); }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); }
.small { font-size: var(--step--1); color: var(--muted); }

/* ---------- Buttons: flat facet + hard shadow ---------- */
.btn {
  --_bg: var(--primary); --_ink: var(--primary-ink); --_bd: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  color: var(--_ink); background: var(--_bg); border: var(--bd) solid var(--_bd); border-radius: var(--radius-s);
  box-shadow: var(--shadow-s); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
}
.btn:hover { background: var(--primary-hover); color: var(--_ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--black); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--lg { min-height: 3.5rem; padding: 0.95rem 1.8rem; font-size: 1.15rem; }
.btn--secondary { --_bg: var(--bg-elev); --_ink: var(--ink); }
.btn--secondary:hover { background: var(--gold); color: #111; }
.btn--ghost-light { --_bg: transparent; --_ink: #fff; --_bd: #fff; box-shadow: 3px 3px 0 rgb(255 255 255 / 0.5); }
.btn--ghost-light:hover { background: #fff; color: #111; box-shadow: 6px 6px 0 var(--gold); }
.btn--forest { --_bg: var(--green); } .btn--forest:hover { background: #166b1c; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-m) var(--space-m); }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--bd) solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--black); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 2.3rem; height: auto; aspect-ratio: 408 / 544; }
.brand small { display: none; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.1; margin-top: 2px; }
@media (min-width: 40rem) { .brand small { display: block; } }
.nav { display: none; align-items: center; gap: 0.15rem; }
.nav a { white-space: nowrap; padding: 0.5rem 0.8rem; color: var(--ink-2); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-actions .btn { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
@media (max-width: 40rem) {
  .header-actions .btn { width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0; }
  .header-actions .btn svg { width: 1.25rem; height: 1.25rem; }
  .header-actions .btn .btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { font-size: 1.05rem; }
}
.nav-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: var(--bd) solid var(--black); border-radius: var(--radius-s); background: var(--bg-elev); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-s); }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 64rem) { .nav { display: flex; } .nav-toggle { display: none; } }
.mobile-nav { display: none; border-top: var(--bd) solid var(--black); background: var(--bg-elev); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--space-s) 0 var(--space-m); }
.mobile-nav li { margin: 0; }
.mobile-nav a { display: block; padding: 0.85rem var(--gutter); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--red); }
.mobile-nav .btn { margin: var(--space-s) var(--gutter) var(--space-s); display: flex; }
@media (min-width: 64rem) { .mobile-nav { display: none !important; } }

/* ---------- Hero: photo, dark overlay, angled bottom, facet accents ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(90vh, 54rem); display: grid; align-items: end; padding-block: clamp(6rem, 12vw, 9rem) clamp(4rem, 8vw, 7rem); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(17 17 17 / 0.94) 0%, rgb(17 17 17 / 0.6) 45%, rgb(17 17 17 / 0.2) 100%); }
.hero::before { content: ""; position: absolute; right: -3rem; top: 1.5rem; width: clamp(8rem, 18vw, 16rem); aspect-ratio: 1; z-index: 0; pointer-events: none; display: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 55% 55% no-repeat,
    linear-gradient(var(--green), var(--green)) 100% 0 / 45% 45% no-repeat,
    linear-gradient(var(--sky), var(--sky)) 100% 100% / 40% 40% no-repeat;
  clip-path: polygon(30% 0, 100% 10%, 85% 100%, 0 70%); opacity: 0.85; }
@media (min-width: 64rem) { .hero::before { display: block; } }
.hero__content { position: relative; z-index: 1; max-width: 50rem; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.6rem); color: #fff; margin-bottom: 0.35em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: var(--step-1); line-height: 1.45; color: rgb(255 255 255 / 0.9); max-width: 36rem; margin-bottom: 1.6em; }
.hero .eyebrow { color: var(--gold); } .hero .eyebrow::before { background: var(--red-bright); }
.hero .btn-row { margin-bottom: var(--space-l); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--space-s); }
.stat { background: var(--bg-elev); border: var(--bd) solid var(--black); box-shadow: var(--shadow-s); padding: var(--space-m); position: relative; }
.stat::before { content: ""; position: absolute; top: -2px; left: -2px; width: 1rem; height: 1rem; background: var(--gold); clip-path: polygon(0 0, 100% 0, 0 100%); }
.stat:nth-child(2)::before { background: var(--green); } .stat:nth-child(3)::before { background: var(--sky); }
.stat__value { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat__value small { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; opacity: 0.9; }
.stat__label { margin-top: 0.4rem; font-size: var(--step--1); color: var(--muted); }
.hero .stats { max-width: 48rem; }
.hero .stat { background: rgb(17 17 17 / 0.72); border-color: #fff; box-shadow: 3px 3px 0 var(--gold); backdrop-filter: blur(6px); }
.hero .stat__value { color: #fff; } .hero .stat__value small { color: var(--gold); } .hero .stat__label { color: rgb(255 255 255 / 0.78); }

/* ---------- Cards ---------- */
.card { background: var(--bg-elev); border: var(--bd) solid var(--black); border-radius: var(--radius-s); padding: var(--space-l); box-shadow: var(--shadow-s); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); position: relative; }
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-m); }
.card h3 { font-size: var(--step-1); margin-bottom: 0.5em; }
.card p { color: var(--ink-2); }
.card__icon { width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--gold); border: var(--bd) solid var(--black); color: #111; margin-bottom: var(--space-m); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.card__icon svg { width: 1.4rem; height: 1.4rem; }
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: var(--bd) solid var(--black); }
.card--media .card__body { padding: var(--space-l); }
.grid--3 .card--media:nth-child(1) .card__body { border-top: 6px solid var(--gold); }
.grid--3 .card--media:nth-child(2) .card__body { border-top: 6px solid var(--sky); }
.grid--3 .card--media:nth-child(3) .card__body { border-top: 6px solid var(--green); }

/* ---------- Donation amounts ---------- */
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--space-s); }
.amount { display: grid; gap: 0.25rem; text-align: left; padding: 1rem 1.1rem; cursor: pointer; background: var(--bg-elev); border: var(--bd) solid var(--black); border-radius: var(--radius-s); color: inherit; font: inherit; box-shadow: var(--shadow-s); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s; }
.amount:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-m); }
.amount[aria-pressed="true"] { background: var(--gold); box-shadow: var(--shadow-m); }
.amount__value { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; line-height: 1; color: var(--red); }
.amount[aria-pressed="true"] .amount__value { color: #111; }
.amount__label { font-size: var(--step--1); color: var(--ink-2); font-weight: 600; }
.amount[aria-pressed="true"] .amount__label, .amount[aria-pressed="true"] .amount__sub { color: #2a1b1b; }
.amount__sub { font-size: 0.78rem; color: var(--muted); }

/* ---------- Bank box / copy ---------- */
.bank { background: var(--bg-elev); border: var(--bd) solid var(--black); box-shadow: var(--shadow-gold); padding: var(--space-l); }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.25rem; margin: 0; align-items: center; }
.bank dt { font-size: var(--step--1); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.bank dd { margin: 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.copy-btn { display: inline-flex; align-items: center; gap: 0.35rem; font: inherit; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border: 1.5px solid var(--black); background: var(--bg-elev); color: var(--ink); cursor: pointer; transition: background 0.15s; }
.copy-btn:hover { background: var(--gold); }
.copy-btn svg { width: 0.85rem; height: 0.85rem; }
.copy-btn.is-copied { background: var(--green); color: #fff; border-color: var(--green); }
@media (max-width: 30rem) { .bank dl { grid-template-columns: 1fr; gap: 0.2rem 0; } .bank dt { margin-top: 0.6rem; } }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-l) var(--space-m); }
.trust__item { display: flex; gap: 0.9rem; align-items: flex-start; }
.trust__item svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--green); margin-top: 0.1rem; }
.trust__item:nth-child(2) svg { color: var(--blue); } .trust__item:nth-child(3) svg { color: var(--gold); } .trust__item:nth-child(4) svg { color: var(--red-bright); }
.section--forest .trust__item svg { color: var(--gold); }
.section--forest .trust__item:nth-child(2) svg { color: var(--sky); } .section--forest .trust__item:nth-child(3) svg { color: #5fc36a; } .section--forest .trust__item:nth-child(4) svg { color: #ff6b6b; }
.trust__item strong { display: block; margin-bottom: 0.15rem; font-family: var(--font-display); font-size: 1.05rem; }
.trust__item p { font-size: var(--step--1); color: var(--ink-2); }
.section--forest .trust__item p { color: rgb(255 255 255 / 0.8); }

/* ---------- Media ---------- */
.media { border: var(--bd) solid var(--black); box-shadow: var(--shadow-l); overflow: hidden; background: var(--bg-elev); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--portrait img { aspect-ratio: 4 / 5; } .media--landscape img { aspect-ratio: 4 / 3; } .media--wide img { aspect-ratio: 16 / 9; }
.media-stack { position: relative; }
.media-stack .media + .media { position: absolute; width: 42%; right: -4%; bottom: -8%; box-shadow: var(--shadow-gold); }
@media (max-width: 56rem) { .media-stack .media + .media { display: none; } }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-s); }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 14rem; } .gallery > :first-child { grid-column: span 2; grid-row: span 2; } }
.gallery figure { margin: 0; overflow: hidden; border: var(--bd) solid var(--black); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 0.5s var(--ease); }
@media (min-width: 48rem) { .gallery img { aspect-ratio: auto; } }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-m); counter-reset: step; }
.steps li { position: relative; padding-left: 3.5rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; background: var(--gold); border: var(--bd) solid var(--black); box-shadow: 2px 2px 0 var(--black); color: #111; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%); }
.steps li:nth-child(2)::before { background: var(--sky); } .steps li:nth-child(3)::before { background: var(--green); color: #fff; }
.steps strong { display: block; font-size: var(--step-1); font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; }
.steps p { color: var(--ink-2); }

/* ---------- Quote ---------- */
.quote { position: relative; font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.3; text-wrap: balance; max-width: 36ch; margin: 0; padding: var(--space-l); border: var(--bd) solid var(--black); box-shadow: var(--shadow-gold); background: var(--bg-elev); }
.quote::before { content: ""; position: absolute; top: -2px; right: -2px; width: 2rem; height: 2rem; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.quote cite { display: block; font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--black); color: #fff; padding: clamp(2rem, 5vw, 4rem); display: grid; gap: var(--space-l); align-items: center; isolation: isolate; border: var(--bd) solid var(--black); box-shadow: var(--shadow-gold); }
:root[data-theme="dark"] .cta-band { color: #111; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { color: #111; } }
.cta-band::before { content: ""; position: absolute; right: -3rem; top: -3rem; width: 16rem; height: 16rem; z-index: -1; opacity: 0.95;
  background: linear-gradient(var(--red), var(--red)) 0 0 / 50% 50% no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 0 / 50% 50% no-repeat, linear-gradient(var(--blue), var(--blue)) 100% 100% / 50% 50% no-repeat, linear-gradient(var(--green), var(--green)) 0 100% / 50% 50% no-repeat;
  clip-path: polygon(40% 0, 100% 20%, 90% 100%, 0 60%); }
.cta-band h2 { color: inherit; margin-bottom: 0.3em; }
.cta-band p { color: inherit; opacity: 0.85; }
.cta-band .eyebrow { color: var(--gold); }
@media (min-width: 56rem) { .cta-band { grid-template-columns: 1.3fr 1fr; } .cta-band .btn-row { justify-content: flex-end; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-m); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: var(--step--1); font-family: var(--font-display); }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: var(--bg-elev); border: var(--bd) solid var(--black); border-radius: var(--radius-s); padding: 0.8rem 0.95rem; width: 100%; transition: box-shadow 0.15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 3px 3px 0 var(--gold); }
.field textarea { min-height: 9rem; resize: vertical; }
.field__hint { font-size: 0.8rem; color: var(--muted); }
.form__row { display: grid; gap: var(--space-m); } @media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__status { font-size: var(--step--1); color: var(--green); min-height: 1.5em; font-weight: 600; }
.form__status[data-state="error"] { color: var(--red); }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); }
.checkbox input { margin-top: 0.3rem; accent-color: var(--green); width: 1.1rem; height: 1.1rem; flex: none; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Info list (transparency) ---------- */
.info-list { list-style: none; padding: 0; margin: 0; border-top: var(--bd) solid var(--black); }
.info-list > li { padding: var(--space-l) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--space-s); }
@media (min-width: 48rem) { .info-list > li { grid-template-columns: 3.5rem 1fr; gap: var(--space-m); } }
.info-list .num { font-family: var(--font-display); font-size: var(--step-2); color: var(--red); line-height: 1; font-weight: 800; }
.info-list h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.info-list p, .info-list li li { color: var(--ink-2); }
.info-list ul { margin: 0.5rem 0 0; }
.info-list ul li { padding: 0; border: 0; display: list-item; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 6rem) var(--space-xl); position: relative; }
.page-head h1 { margin-bottom: 0.3em; }
.page-head .lead { max-width: 40rem; }
.page-head--image { position: relative; isolation: isolate; color: #fff; min-height: 24rem; display: grid; align-items: end; padding-block: 6rem calc(var(--space-xl) + var(--cut)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.page-head--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(17 17 17 / 0.92), rgb(17 17 17 / 0.35) 70%, rgb(17 17 17 / 0.1)); }
.page-head--image h1 { color: #fff; } .page-head--image .lead { color: rgb(255 255 255 / 0.88); } .page-head--image .eyebrow { color: var(--gold); } .page-head--image .eyebrow::before { background: var(--red-bright); }
.page-head:not(.page-head--image) h1::after { content: ""; display: block; width: 4rem; height: 0.6rem; margin-top: 0.4em; background: linear-gradient(90deg, var(--red) 0 25%, var(--gold) 25% 50%, var(--green) 50% 75%, var(--blue) 75%); clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #d9d2cc; padding-block: var(--space-2xl) var(--space-l); margin-top: var(--space-2xl); position: relative; --footer-muted: #9a918b; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--red) 0 20%, var(--gold) 20% 40%, var(--green) 40% 60%, var(--blue) 60% 80%, var(--sky) 80%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #0b0909; color: #d9d2cc; } }
:root[data-theme="dark"] .site-footer { background: #0b0909; color: #d9d2cc; }
.site-footer a { color: inherit; text-decoration: none; } .site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; } .site-footer .brand small { color: var(--footer-muted); }
.site-footer h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li + li { margin-top: 0.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-m); justify-content: space-between; align-items: center; margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid rgb(255 255 255 / 0.15); font-size: var(--step--1); color: var(--footer-muted); }
.social { display: flex; gap: 0.5rem; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid #fff; color: #fff; transition: background 0.15s, color 0.15s; }
.social a:hover { background: var(--gold); color: #111; border-color: var(--gold); text-decoration: none; }
.social svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Scroll reveal: CSS scroll-driven, no JS. Unsupported browsers simply show content. ---------- */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0 entry 160px; }
    .reveal[data-delay="1"] { animation-range: entry 40px entry 200px; }
    .reveal[data-delay="2"] { animation-range: entry 80px entry 240px; }
    .reveal[data-delay="3"] { animation-range: entry 120px entry 280px; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ---------- Sticky donate (mobile) ---------- */
.sticky-donate { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: var(--bd) solid var(--black); transform: translateY(110%); transition: transform 0.3s var(--ease); }
.sticky-donate.is-visible { transform: none; }
.sticky-donate .btn { width: 100%; }
@media (min-width: 64rem) { .sticky-donate { display: none; } }
body.has-sticky { padding-bottom: 4.5rem; } @media (min-width: 64rem) { body.has-sticky { padding-bottom: 0; } }

/* ---------- Utilities ---------- */
.mt-l { margin-top: var(--space-l); } .mt-xl { margin-top: var(--space-xl); } .mb-l { margin-bottom: var(--space-l); }
.text-center { text-align: center; } .text-center p { margin-inline: auto; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; padding: 0.35rem 0.75rem; background: var(--green); color: #fff; border: 1.5px solid var(--black); }
.badge--sun { background: var(--gold); color: #111; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-display); font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--gold); }
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover { border-bottom-color: var(--red); } .link-arrow:hover::after { transform: translateX(3px); }
.wrap-anywhere { overflow-wrap: anywhere; }
@media print { .site-header, .site-footer, .sticky-donate, .nav-toggle, .btn { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Cookie consent banner ---------- */
.consent { position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); max-width: 34rem; margin-inline: auto; background: var(--bg-elev); color: var(--ink); border: var(--bd) solid var(--black); box-shadow: var(--shadow-gold); padding: var(--space-m) var(--space-l); }
.consent[hidden] { display: none; }
.consent h2 { font-size: var(--step-1); margin-bottom: 0.3em; }
.consent p { font-size: var(--step--1); color: var(--ink-2); margin-bottom: var(--space-m); }
.consent .btn-row { gap: var(--space-s); }
.consent .btn { min-height: 2.6rem; padding: 0.55rem 1rem; font-size: 0.95rem; }
@media (min-width: 64rem) { .consent { left: auto; right: var(--gutter); } }
body.has-sticky .consent { bottom: calc(4.5rem + var(--gutter)); } @media (min-width: 64rem) { body.has-sticky .consent { bottom: var(--gutter); } }

/* ---------- Language menu (desktop) ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; height: 2.6rem; padding: 0 0.7rem 0 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink); background: var(--bg-elev); border: var(--bd) solid var(--black); border-radius: var(--radius-s); box-shadow: var(--shadow-s); cursor: pointer; user-select: none; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--gold); transform: translate(-1px, -1px); box-shadow: var(--shadow-m); }
.lang-menu summary svg { width: 1.1rem; height: 1.1rem; }
.lang-menu__chevron { width: 0.85rem !important; height: 0.85rem !important; transition: transform 0.2s var(--ease); }
.lang-menu[open] summary { background: var(--black); color: var(--bg); }
.lang-menu[open] .lang-menu__chevron { transform: rotate(180deg); }
.lang-menu__panel { position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 60; min-width: 13rem; margin: 0; padding: 0.4rem; list-style: none; background: var(--bg-elev); border: var(--bd) solid var(--black); border-radius: var(--radius-s); box-shadow: var(--shadow-gold); }
.lang-menu__panel::before { content: ""; position: absolute; right: 1rem; top: -0.55rem; width: 0.9rem; height: 0.9rem; background: var(--bg-elev); border-left: var(--bd) solid var(--black); border-top: var(--bd) solid var(--black); transform: rotate(45deg); }
.lang-menu__panel li { margin: 0; }
.lang-menu__panel a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.lang-menu__panel a small { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }
.lang-menu__panel a svg { width: 1rem; height: 1rem; color: var(--green); }
.lang-menu__panel a:hover { background: var(--gold); color: #111; } .lang-menu__panel a:hover small { color: #3a2d12; }
.lang-menu__panel a[aria-current="true"] { background: var(--bg-sunken); }
@media (max-width: 40rem) { .header-actions .lang-menu { display: none; } }
.header-actions .btn { white-space: nowrap; }

/* ---------- Language list (mobile menu) ---------- */
.lang-list { margin: var(--space-s) var(--gutter) var(--space-m); padding: var(--space-m); border: var(--bd) solid var(--black); background: var(--bg-sunken); }
.lang-list__title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.lang-list__title svg { width: 1rem; height: 1rem; }
.lang-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.lang-list li { margin: 0; }
.lang-list a { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; background: var(--bg-elev); border: var(--bd) solid var(--black); color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-list a[aria-current="true"] { background: var(--gold); }
.lang-list a svg { width: 1.1rem; height: 1.1rem; }
.legal-note { border-left: 6px solid var(--gold); padding: 0.75rem 1rem; background: var(--bg-sunken); font-size: var(--step--1); color: var(--ink-2); margin-bottom: var(--space-l); }

/* ---------- Footer refinements ---------- */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.site-footer .footer-legal li + li { margin-top: 0; }
.footer-online { margin-top: 0.9rem !important; }
.footer-link { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.45rem 0.7rem; border: 1.5px solid rgb(255 255 255 / 0.35); color: #fff !important; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-decoration: none !important; transition: border-color 0.15s, background 0.15s; }
.footer-link__label { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.footer-link svg { width: 0.9em; height: 0.9em; color: var(--gold); }
.footer-link small { font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--footer-muted); }
.footer-link:hover { border-color: var(--gold); background: rgb(255 255 255 / 0.06); }
