/* =====================================================================
   ONE HAND LIFTS ALL — styles.css
   Layout concept: asymmetric editorial grid. Landscape bands bleed edge to
   edge; text sits off-centre on a 12-column track, like captions in a
   documentary film.

   HOW TO EDIT
   - Colours, fonts, spacing and the type scale live in the :root tokens
     below. Change a token and the whole site follows.
   - Dark mode redefines the same tokens further down. Keep both in step.
   - Every visible "[PLACEHOLDER: ...]" uses the .ph class. Remove the class
     and the brackets when the real content arrives.
   ===================================================================== */

@view-transition { navigation: auto; }   /* smooth page transitions (Chrome / Edge / Android) */

:root {
  /* ---- Colour: earth tones + one confident accent (jacaranda) ---- */
  --cream: #F6EFE1;        /* page background (soft cream) */
  --paper: #FCF8EF;        /* raised surfaces */
  --sand: #EADFC8;         /* quiet fills, map land */
  --ink: #262619;          /* body text, olive-black */
  --ink-soft: #55543F;     /* secondary text */
  --olive: #3D4A28;        /* deep olive: headings, dark bands */
  --olive-soft: #7D8A5B;
  --terracotta: #A3471F;   /* text-safe terracotta (5.3:1 on cream) */
  --clay: #C9673E;         /* decorative terracotta */
  --gold: #E2A93B;         /* sun-gold: fills only, never small text */
  --gold-soft: #F1D08A;
  --accent: #5A3FA8;       /* jacaranda: the one confident accent (donate, focus) */
  --accent-ink: #FFFFFF;
  --water: #7FA6A0;
  --on-dark: #F6EFE1;      /* text on olive bands */
  --line: rgba(38, 38, 25, .14);
  --glass: rgba(252, 248, 239, .8);
  --ph-bg: #FFF1B8; --ph-fg: #5B4300; --ph-line: #C99A00;
  --ok: #24592E; --ok-bg: #DCEBD7;
  --pend: #7A4F00; --pend-bg: #F8E7C2;

  /* Landscape (hero + chapters) */
  --sky-top: #F1D08A; --sky-bottom: #F6EFE1;
  --sun: #E2A93B;
  --hill-far: #CDBE93; --hill-mid: #8E9A63; --hill-near: #3D4A28;

  /* ---- Type ---- */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Fluid type scale (~1.25 on phones → ~1.4 on desktop) */
  --step--1: clamp(.84rem, .81rem + .15vw, .92rem);
  --step-0: clamp(1rem, .97rem + .18vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.1rem + .4vw, 1.42rem);
  --step-2: clamp(1.42rem, 1.25rem + .9vw, 2rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.8vw, 2.95rem);
  --step-4: clamp(2.25rem, 1.6rem + 3.2vw, 4.4rem);
  --step-5: clamp(2.7rem, 1.7rem + 5.2vw, 6.4rem);

  /* ---- Space & shape ---- */
  --s1: .5rem; --s2: .75rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.25rem;
  --s6: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --s7: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radius: 6px; --radius-lg: 22px; --pill: 999px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --shadow: 0 1px 2px rgba(38, 38, 25, .06), 0 10px 30px -12px rgba(38, 38, 25, .22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #16170F; --paper: #1F2116; --sand: #2B2D20;
    --ink: #EFE7D3; --ink-soft: #BAB49D;
    --olive: #B9C795; --olive-soft: #8C9A69;
    --terracotta: #E8916A; --clay: #D9774D;
    --gold: #EDBB52; --gold-soft: #5A4720;
    --accent: #BBA8F4; --accent-ink: #1A1430;
    --water: #4F7A74; --on-dark: #F6EFE1;
    --line: rgba(239, 231, 211, .14); --glass: rgba(22, 23, 15, .78);
    --ph-bg: #493A07; --ph-fg: #FFE48A; --ph-line: #B58C10;
    --ok: #A6DBA9; --ok-bg: #1E3A23; --pend: #F3C56C; --pend-bg: #3E2E08;
    --sky-top: #2E2445; --sky-bottom: #16170F; --sun: #EDBB52;
    --hill-far: #3A3A2B; --hill-mid: #2B3620; --hill-near: #1A2212;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #16170F; --paper: #1F2116; --sand: #2B2D20;
  --ink: #EFE7D3; --ink-soft: #BAB49D;
  --olive: #B9C795; --olive-soft: #8C9A69;
  --terracotta: #E8916A; --clay: #D9774D;
  --gold: #EDBB52; --gold-soft: #5A4720;
  --accent: #BBA8F4; --accent-ink: #1A1430;
  --water: #4F7A74; --on-dark: #F6EFE1;
  --line: rgba(239, 231, 211, .14); --glass: rgba(22, 23, 15, .78);
  --ph-bg: #493A07; --ph-fg: #FFE48A; --ph-line: #B58C10;
  --ok: #A6DBA9; --ok-bg: #1E3A23; --pend: #F3C56C; --pend-bg: #3E2E08;
  --sky-top: #2E2445; --sky-bottom: #16170F; --sun: #EDBB52;
  --hill-far: #3A3A2B; --hill-mid: #2B3620; --hill-near: #1A2212;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* =========================== Base =================================== */
*, *::before, *::after { box-sizing: border-box; }
/* Author display rules (e.g. .cookie, .step) override the UA [hidden] stylesheet
   unless we restate it here with !important. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::before { /* paints the phone's status-bar band above the sticky header */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--cream);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 500; line-height: 1.08;
  letter-spacing: -.012em; color: var(--olive); margin: 0; text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); }
p { margin: 0; max-width: 65ch; text-wrap: pretty; }
em { font-style: italic; }
.serif-it { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--terracotta); }
ul { margin: 0; padding: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .7rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* Visible placeholder marker: grep the code for "PLACEHOLDER" to find all */
.ph {
  background: var(--ph-bg); color: var(--ph-fg); border: 1px dashed var(--ph-line);
  border-radius: 4px; padding: .05em .35em; font-family: var(--font-body);
  font-size: .86em; font-style: normal; font-weight: 700; letter-spacing: 0;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ph-block {
  display: grid; place-items: center; text-align: center; padding: var(--s4);
  background: repeating-linear-gradient(-45deg, var(--sand) 0 10px, transparent 10px 20px);
  border: 1px dashed var(--ph-line); border-radius: var(--radius-lg); color: var(--ink-soft);
}
.director-photo {
  aspect-ratio: 1; width: 100%; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--sand);
}
.director-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* ============================ Layout ================================= */
.wrap {
  width: 100%; max-width: calc(var(--max) + 2 * 16px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s6); }
.band-olive { background: var(--hill-near); color: var(--on-dark); }
.band-olive h2, .band-olive h3 { color: var(--on-dark); }
.band-sand { background: var(--sand); }
.eyebrow {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.band-olive .eyebrow { color: var(--gold); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.band-olive .lede { color: rgba(246, 239, 225, .82); }
.stack { display: grid; gap: var(--s3); align-content: start; }
.stack-lg { display: grid; gap: var(--s5); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.split { display: grid; gap: var(--s5); }
@media (min-width: 860px) {
  .split { grid-template-columns: repeat(12, 1fr); }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 7 / span 6; }
  .split--wide-right > :first-child { grid-column: 1 / span 4; }
  .split--wide-right > :last-child { grid-column: 6 / span 7; }
  .split--flip > :first-child { grid-column: 8 / span 5; order: 2; }
  .split--flip > :last-child { grid-column: 1 / span 6; order: 1; }
}
.split > * { min-width: 0; }
.grid-cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

/* ============================ Header ================================= */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--olive); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin-top: .3rem; }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; gap: .2rem; }
.nav-desktop a {
  display: inline-block; padding: .55rem .7rem; text-decoration: none; font-size: .95rem; border-radius: var(--pill);
  color: var(--ink); position: relative;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .35rem; height: 2px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); border-radius: var(--pill); padding: .55rem .9rem; font: inherit; font-size: .95rem; cursor: pointer;
  min-height: 44px;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease);
}
.menu-toggle .bars::before { top: 1px; } .menu-toggle .bars::after { bottom: 1px; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 420px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .brand svg { width: 34px; height: 34px; }
  .brand-name { font-size: 1.02rem; }
  .brand-name small { display: none; }
  .header-actions .btn--sm { padding-inline: .8rem; }
}
@media (min-width: 1180px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
}

/* Full-screen mobile menu — solid overlay (clip-path circle failed to cover tall phones) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--hill-near); color: var(--on-dark);
  padding: calc(env(safe-area-inset-top, 0px) + 88px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 32px) max(24px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5); overflow-y: auto;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu.is-open {
  visibility: visible; opacity: 1; pointer-events: auto;
  transition: opacity .35s var(--ease);
}
.mobile-menu ul { list-style: none; display: grid; gap: .2rem; }
.mobile-menu a { color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.15; }
@media (max-width: 420px) {
  .mobile-menu a { font-size: clamp(1.65rem, 7vw, 2.2rem); line-height: 1.2; }
}
.mobile-menu a[aria-current="page"] { color: var(--gold); font-style: italic; }
.mobile-menu .menu-foot { font-size: var(--step--1); opacity: .8; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; }
body.menu-open .site-header .brand { color: var(--on-dark); }
body.menu-open .site-header .brand-name small { color: rgba(246,239,225,.7); }
body.menu-open .header-actions .btn--primary { display: none; }
body.menu-open .cookie { visibility: hidden; pointer-events: none; }

/* ============================ Buttons ================================ */
.btn {
  --bg: var(--paper); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background .25s, box-shadow .3s; will-change: transform;
}
.btn:hover { text-decoration: none; box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --bg: var(--accent); --fg: var(--accent-ink); --bd: var(--accent); }
.btn--olive { --bg: var(--olive); --fg: var(--cream); --bd: var(--olive); }
.band-olive .btn { --bg: transparent; --fg: var(--on-dark); --bd: rgba(246,239,225,.5); }
.band-olive .btn--primary { --bg: var(--gold); --fg: #2A1F05; --bd: var(--gold); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--terracotta); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================ Logo mark ============================== */
.mark .palm { fill: none; stroke: var(--olive); stroke-width: 4.5; stroke-linecap: round; }
.mark .p1, .mark .p5 { fill: var(--olive-soft); }
.mark .p2, .mark .p4 { fill: var(--clay); }
.mark .p3 { fill: var(--gold); }
.mark--anim .palm { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.1s var(--ease) .1s forwards; }
.mark--anim circle { transform-box: fill-box; transform-origin: center; animation: rise .9s var(--ease) both; }
.mark--anim .p1 { animation-delay: .55s; } .mark--anim .p2 { animation-delay: .65s; }
.mark--anim .p3 { animation-delay: .75s; } .mark--anim .p4 { animation-delay: .85s; } .mark--anim .p5 { animation-delay: .95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { transform: translateY(14px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.brand:hover .mark circle { animation: bob .8s var(--ease); }
.brand:hover .mark .p2 { animation-delay: .05s; } .brand:hover .mark .p3 { animation-delay: .1s; }
.brand:hover .mark .p4 { animation-delay: .15s; } .brand:hover .mark .p5 { animation-delay: .2s; }
@keyframes bob { 40% { transform: translateY(-4px); } }

/* ============================ Hero =================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - 68px), 900px); display: grid; align-items: start;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 70%);
}
.hero-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-scene .layer { position: absolute; inset: 0; will-change: transform; }
.hero-scene svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.kenburns { animation: kenburns 38s ease-in-out infinite alternate; transform-origin: 60% 80%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
.sun { fill: var(--sun); }
.sun-glow { fill: var(--sun); opacity: .25; }
.hill-far { fill: var(--hill-far); } .hill-mid { fill: var(--hill-mid); } .hill-near { fill: var(--hill-near); }
.silhouette { fill: var(--hill-near); }
.hero-copy { padding-block: clamp(2.5rem, 7vh, 6rem) clamp(9rem, 24vh, 15rem); display: grid; gap: var(--s4); max-width: 980px; }
.hero h1 { font-size: var(--step-5); color: var(--ink); font-weight: 400; line-height: 1.02; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.hero h1 .line:nth-last-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-last-child(1) > span { animation-delay: .24s; }
.hero h1 em { color: var(--terracotta); }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
.hero .lede { color: var(--ink); max-width: 46ch; animation: fade-up 1s var(--ease) .5s both; }
.hero .cluster { animation: fade-up 1s var(--ease) .65s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-note {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; z-index: 2;
  font-size: .78rem; color: var(--on-dark); opacity: .9; max-width: 60%; text-align: right;
}
.scroll-cue {
  position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem; color: var(--on-dark); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-weight: 700;
}
.scroll-cue span { width: 1px; height: 34px; background: currentColor; position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* Page hero (inner pages) */
.page-hero { padding-block: var(--s6) var(--s5); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: var(--s3); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero .lede { max-width: 58ch; }
.page-hero::after { /* thin horizon line that grows on load */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
  transform-origin: left; animation: horizon 1.2s var(--ease) both;
}
@keyframes horizon { from { transform: scaleX(0); } }
.ridge { display: block; width: 100%; height: 56px; }
.ridge path { fill: var(--sand); }

/* ============================ Manifesto ============================== */
.manifesto { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 860px) { .manifesto { grid-template-columns: 220px 1fr; } }
.manifesto .mark { width: clamp(120px, 22vw, 200px); height: auto; }
.manifesto p.big { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.18; color: var(--ink); max-width: 26ch; font-weight: 400; }
.manifesto p.big em { color: var(--terracotta); }

/* ============================ Chapters =============================== */
.chapter { position: relative; padding-block: var(--s7); border-top: 1px solid var(--line); }
.chapter-head { display: grid; gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
@media (min-width: 860px) { .chapter-head { grid-template-columns: 1.1fr 1fr; } }
.chapter-num {
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--terracotta);
}
.chapter h2 { font-size: var(--step-5); font-weight: 400; }
.chapter-lens {
  aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  margin-bottom: var(--s5);
}
@media (min-width: 860px) { .chapter-lens { aspect-ratio: 21 / 8; } }
.chapter-lens svg { width: 100%; height: 100%; }
.chapter-lens .zoom { transform-origin: 50% 70%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chapter-lens .zoom { animation: lens-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
  }
}
@keyframes lens-zoom { from { transform: scale(1); } to { transform: scale(1.22); } }
.lens-caption {
  position: absolute; left: 16px; bottom: 14px; right: 16px; color: var(--on-dark);
  font-size: .82rem; display: flex; gap: .5rem; flex-wrap: wrap;
}
.lens-caption span { background: rgba(26, 34, 18, .7); padding: .25rem .6rem; border-radius: var(--pill); }

/* ============================ Programme cards ======================== */
.p-card {
  position: relative; display: grid; gap: var(--s2); align-content: start;
  padding: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  overflow: hidden;
}
.p-card::before { /* sunrise wash on hover */
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, var(--gold-soft), transparent); opacity: 0; transition: opacity .5s, transform .6s var(--ease);
  transform: translateY(20%); z-index: 0; pointer-events: none;
}
.p-card > * { position: relative; z-index: 1; }
.p-card:hover, .p-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.p-card:hover::before, .p-card:focus-visible::before { opacity: .6; transform: none; }
.p-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); color: var(--olive); transition: transform .5s var(--ease), background .3s;
}
.p-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.p-card:hover .p-icon { transform: translateY(-4px) rotate(-6deg); background: var(--gold-soft); }
.p-card h3 { font-size: var(--step-1); }
.p-card p { color: var(--ink-soft); font-size: .98rem; }
.p-card .link-arrow { margin-top: auto; padding-top: var(--s2); }
.tag {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: var(--pill); background: var(--sand); color: var(--ink-soft);
  width: fit-content;
}

/* ============================ Farm map =============================== */
.farm-map-wrap { display: grid; gap: var(--s4); }
.farm-map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand);
  aspect-ratio: 1000 / 640; max-width: 100%; border: 1px solid var(--line);
}
.farm-map svg { width: 100%; height: 100%; }
.map-land { fill: var(--cream); }
.map-zone { fill: var(--sand); stroke: var(--olive-soft); stroke-width: 1.5; stroke-dasharray: 5 5; }
.map-field { fill: var(--olive-soft); opacity: .35; }
.map-water { fill: var(--water); }
.map-road { fill: none; stroke: var(--ink-soft); stroke-width: 3; stroke-dasharray: 10 9; opacity: .5; }
.map-river { fill: none; stroke: var(--water); stroke-width: 9; stroke-linecap: round; opacity: .8; }
.map-tree { fill: var(--olive-soft); opacity: .8; }
.map-contour { fill: none; stroke: var(--olive-soft); stroke-width: 1; opacity: .35; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .4rem;
  border: 0; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; padding: 0; background: none; color: var(--ink);
}
.hotspot .dot {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--paper); color: var(--olive); box-shadow: var(--shadow); border: 2px solid var(--olive);
  transition: transform .35s var(--ease), background .25s, color .25s;
}
.hotspot .dot svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hotspot .dot::after { /* pulse ring */
  content: ""; position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--clay);
  animation: pulse 2.6s var(--ease) infinite; pointer-events: none;
}
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.hotspot .label {
  background: var(--paper); padding: .2rem .55rem; border-radius: var(--pill); box-shadow: var(--shadow);
  white-space: nowrap; display: none;
}
.hotspot:hover .dot, .hotspot:focus-visible .dot { transform: scale(1.12); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (min-width: 760px) { .hotspot .label { display: inline-block; } }
.map-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.map-list button {
  font: inherit; font-size: .9rem; cursor: pointer; border-radius: var(--pill); padding: .5rem .9rem; min-height: 44px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); display: inline-flex; gap: .45rem; align-items: center;
}
.map-list button:hover { border-color: var(--olive); }
.map-list svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Detail panel (native <dialog>) */
.panel {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(460px, 100%);
  background: var(--paper); color: var(--ink); box-shadow: -20px 0 60px -20px rgba(0,0,0,.4);
}
.panel::backdrop { background: rgba(20, 22, 12, .55); backdrop-filter: blur(3px); }
.panel[open] { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { transform: translateX(40px); opacity: 0; } }
.panel-inner {
  display: grid; gap: var(--s3); align-content: start;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) 24px;
}
.panel-close {
  justify-self: end; border: 1px solid var(--line); background: var(--cream); color: var(--ink); border-radius: var(--pill);
  min-height: 44px; padding: .4rem 1rem; font: inherit; cursor: pointer;
}
.panel .p-icon { width: 64px; height: 64px; }
.panel .p-icon svg { width: 32px; height: 32px; }

/* ============================ Ways to help =========================== */
.ways { display: grid; gap: var(--s4); }
@media (min-width: 860px) { .ways { grid-template-columns: 1.3fr 1fr 1fr; } }
.way {
  display: grid; gap: var(--s3); align-content: start; padding: var(--s5) var(--s4);
  border-radius: var(--radius-lg); border: 1px solid rgba(246,239,225,.22);
  transition: background .35s, transform .45s var(--ease);
}
.way:hover { background: rgba(246, 239, 225, .06); transform: translateY(-4px); }
.way:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.way:first-child h3, .way:first-child p { color: var(--accent-ink); }
.way:first-child .btn { --bg: var(--accent-ink); --fg: var(--accent); --bd: var(--accent-ink); }
.way h3 { font-size: var(--step-2); }
.way p { color: rgba(246, 239, 225, .82); }
.way .btn { margin-top: var(--s2); width: fit-content; }

/* ============================ Status strip / badges ================== */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: .3rem .7rem; border-radius: var(--pill); white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badge--verified { background: var(--ok-bg); color: var(--ok); }
.badge--pending { background: var(--pend-bg); color: var(--pend); }
.status-strip { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.status-item { display: grid; gap: .4rem; padding: var(--s3) 0; border-top: 2px solid var(--olive); }
.status-item strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--olive); }
.status-item .ref { font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--ink-soft); }

/* ============================ Doc hub ================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s4); }
.chip {
  font: inherit; font-size: .92rem; cursor: pointer; min-height: 44px; padding: .45rem 1rem; border-radius: var(--pill);
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.chip[aria-pressed="true"] { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.doc-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.doc {
  display: grid; gap: .5rem var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr; align-items: center; transition: background .3s;
}
.doc:hover { background: linear-gradient(90deg, transparent, var(--paper), transparent); }
@media (min-width: 760px) { .doc { grid-template-columns: 2.2fr 1.4fr auto auto; } }
.doc h3 { font-size: var(--step-1); }
.doc p { font-size: .95rem; color: var(--ink-soft); }
.doc .ref { font-variant-numeric: tabular-nums; font-size: .92rem; }
.doc .ref b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.doc > * { min-width: 0; }

/* ============================ Donate ================================= */
.give { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) { .give { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.give-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid; gap: var(--s4); box-shadow: var(--shadow);
}
@media (min-width: 960px) { .give-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); } }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: var(--pill); padding: 4px; gap: 4px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  text-align: center; padding: .7rem 1rem; border-radius: var(--pill); cursor: pointer; font-weight: 700; min-height: 44px;
  display: grid; place-items: center; transition: background .3s, color .3s;
}
.segmented input:checked + label { background: var(--olive); color: var(--cream); }
.segmented input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .6rem; }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts label {
  display: grid; place-items: center; min-height: 58px; border-radius: var(--radius); border: 1.5px solid var(--line);
  font-family: var(--font-display); font-size: var(--step-1); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color .25s, background .25s, transform .3s var(--ease);
}
.amounts label:hover { transform: translateY(-2px); border-color: var(--olive-soft); }
.amounts input:checked + label { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.amounts input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.give-summary { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; color: var(--olive); }
.give-summary b { color: var(--terracotta); font-weight: 600; }
.give-notice { padding: var(--s3); border-radius: var(--radius); background: var(--pend-bg); color: var(--pend); font-size: .95rem; }
.builds { display: grid; gap: var(--s3); }
.build {
  display: grid; grid-template-columns: 52px 1fr; gap: var(--s3); align-items: start; padding: var(--s3);
  border-radius: var(--radius-lg); transition: background .3s;
}
.build.is-active { background: var(--paper); box-shadow: var(--shadow); }
.build h3 { font-size: var(--step-1); }
.build p { font-size: .96rem; color: var(--ink-soft); }

/* ============================ Impact ================================= */
.goal-banner {
  display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border-radius: var(--radius-lg);
  background: var(--paper); border: 1.5px solid var(--olive); margin-bottom: var(--s5);
}
.goal-banner svg { width: 28px; height: 28px; flex: none; stroke: var(--olive); fill: none; stroke-width: 1.8; }
.phases { list-style: none; display: grid; gap: 0; counter-reset: none; }
@media (min-width: 860px) { .phases { grid-template-columns: repeat(5, 1fr); } }
.phase { position: relative; padding: var(--s4) var(--s3) var(--s4) 2.6rem; border-left: 2px solid var(--line); display: grid; gap: .4rem; }
@media (min-width: 860px) { .phase { border-left: 0; border-top: 2px solid var(--line); padding: 2.2rem var(--s3) 0 0; } }
.phase::before {
  content: ""; position: absolute; left: -9px; top: 1.7rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--olive-soft);
}
@media (min-width: 860px) { .phase::before { left: 0; top: -9px; } }
.phase.is-done { border-color: var(--olive); }
.phase.is-done::before { background: var(--olive); border-color: var(--olive); }
.phase h3 { font-size: var(--step-1); }
.phase p { font-size: .95rem; color: var(--ink-soft); }
.goals { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.goal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s4); display: grid; gap: var(--s3); align-content: start; }
.goal-top { display: flex; justify-content: space-between; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.goal-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.goal h3 { font-size: var(--step-1); }
.meter { height: 12px; border-radius: var(--pill); background: repeating-linear-gradient(-45deg, var(--sand) 0 6px, var(--cream) 6px 12px); overflow: hidden; border: 1px solid var(--line); }
.meter > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--olive), var(--gold)); border-radius: inherit; transition: width 1.6s var(--ease); }
.goal-meta { display: flex; justify-content: space-between; gap: var(--s2); font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; flex-wrap: wrap; }

/* ============================ Forms ================================== */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 700; font-size: .98rem; }
.field .hint { font-size: .88rem; color: var(--ink-soft); }
.req { color: var(--terracotta); }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: .75rem .9rem; min-height: 48px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90, 63, 168, .25); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B3261E; }
.error { color: #B3261E; font-size: .9rem; font-weight: 700; }
:root[data-theme="dark"] .error { color: #FFB4AB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error { color: #FFB4AB; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.choice {
  display: flex; gap: .65rem; align-items: flex-start; padding: .8rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s;
}
.choice:has(input:checked) { border-color: var(--olive); background: var(--sand); }
.choice input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--olive); flex: none; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.consent input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--olive); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam honeypot */
.form-status { padding: var(--s3); border-radius: var(--radius); font-weight: 700; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.warn { background: var(--pend-bg); color: var(--pend); }
.form-status a { color: inherit; text-decoration: underline; }
#bank-transfer { scroll-margin-top: 90px; }

/* Multi-step */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: var(--s4); }
.stepper li { display: grid; gap: .4rem; font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.stepper li::before { content: ""; height: 6px; border-radius: var(--pill); background: var(--sand); transition: background .4s; }
.stepper li.is-current, .stepper li.is-done { color: var(--olive); }
.stepper li.is-current::before { background: var(--accent); }
.stepper li.is-done::before { background: var(--olive); }
.step { display: grid; gap: var(--s4); }
.step-nav { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.review { display: grid; gap: .5rem; padding: var(--s3); background: var(--sand); border-radius: var(--radius); font-size: .95rem; }
.review dt { font-weight: 700; } .review dd { margin: 0 0 .4rem; color: var(--ink-soft); overflow-wrap: anywhere; }

/* Role cards */
.role { cursor: default; }
.role ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.role .btn { margin-top: auto; width: fit-content; }

/* ============================ News =================================== */
.news-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16/10; max-width: 100%; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); overflow: hidden; }
.news-card .thumb svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.news-card:hover .thumb svg { transform: scale(1.06); }
.news-card .body { display: grid; gap: .6rem; padding: var(--s4); align-content: start; }
.news-card h3 { font-size: var(--step-1); }
.news-card h3 a { text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-card time, .news-card .meta { font-size: .86rem; color: var(--ink-soft); }

/* ============================ Prose (policy) ========================= */
.prose { display: grid; gap: var(--s3); max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s4); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.prose li { max-width: 65ch; }
.toc { list-style: none; display: grid; gap: .3rem; padding: var(--s4); background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
@media (min-width: 960px) { .policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--s6); align-items: start; } .toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); } }

/* ============================ Programme detail ======================= */
.jump { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; padding: .45rem .9rem; border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); min-height: 44px; font-size: .92rem; }
.jump a:hover { border-color: var(--olive); }
.jump svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.programme { padding-block: var(--s6); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.programme-art {
  aspect-ratio: 4/3; max-width: 100%; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--sky-top), var(--sky-bottom) 75%);
  display: grid; place-items: center;
}
.programme-art .big-icon { width: 38%; color: var(--olive); }
.programme-art .big-icon svg { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.programme-art .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; }
.programme-art .ph { position: absolute; left: 12px; top: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); }
.programme ul.points { list-style: none; display: grid; gap: .55rem; }
.programme ul.points li { display: flex; gap: .6rem; }
.programme ul.points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); margin-top: .6em; flex: none; }
.trades { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); list-style: none; }
.trades li { padding: var(--s3); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: grid; gap: .3rem; }
.trades strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--olive); }
.trades span { font-size: .9rem; color: var(--ink-soft); }

/* ============================ Closing CTA ============================ */
.closing { text-align: left; display: grid; gap: var(--s4); justify-items: start; }
.closing h2 { font-size: var(--step-5); font-weight: 400; max-width: 14ch; }

/* ============================ Footer ================================= */
.site-footer { background: var(--hill-near); color: var(--on-dark); padding-block: var(--s6) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid > * { min-width: 0; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-name small { color: rgba(246,239,225,.7); }
.site-footer .mark .palm { stroke: var(--on-dark); }
.footer-grid h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: var(--s2); }
.footer-grid ul { list-style: none; display: grid; gap: .45rem; }
.footer-grid a { text-decoration: none; opacity: .9; }
.footer-grid a:hover { text-decoration: underline; opacity: 1; }
.footer-legal { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid rgba(246,239,225,.18); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; font-size: .86rem; opacity: .85; }
.footer-legal .num { font-variant-numeric: tabular-nums; }

/* ============================ Cookie notice ========================== */
.cookie {
  position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 440px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: var(--s3) var(--s4); display: grid; gap: var(--s2);
  animation: fade-up .6s var(--ease);
}
.cookie p { font-size: .9rem; line-height: 1.45; }
@media (max-width: 640px) {
  .cookie { max-width: none; padding: .55rem .75rem .65rem; gap: .4rem; border-radius: 14px; }
  .cookie p { font-size: .78rem; line-height: 1.35; }
  .cookie .btn { min-height: 36px; padding: .35rem .9rem; font-size: .85rem; }
}
/* Let the last page content scroll above the fixed banner while it is visible */
body:has(#cookie-notice:not([hidden])) .site-footer { padding-bottom: 8rem; }
@media (max-width: 640px) {
  body:has(#cookie-notice:not([hidden])) .site-footer { padding-bottom: 6.25rem; }
}

/* ============================ Reveal on scroll ======================= */
/* Only elements BELOW the fold at load get hidden by JS (.will-reveal), so
   every page is complete at rest and in thumbnails. */
.will-reveal { opacity: 0; transform: translateY(28px); }
.revealed { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }

/* ============================ Reduced motion ========================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .kenburns, .scroll-cue span::after, .hotspot .dot::after { animation: none !important; }
  .will-reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}


/* ---- SEO pass: brand kicker inside the H1, and the FAQ list ---- */
h1 .h1-kicker { display: flex; font-family: var(--font-body); font-size: var(--step--1); line-height: 1.4; margin-bottom: var(--s3); max-width: none; }
.hero h1 .h1-kicker { animation: fade-up 1s var(--ease) both; }
.faq { display: grid; gap: var(--s2); max-width: 780px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq-item summary { cursor: pointer; padding: var(--s3) var(--s4); font-weight: 700; color: var(--olive); list-style: none; display: flex; justify-content: space-between; gap: var(--s3); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3em; line-height: 1; color: var(--terracotta); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq-body { padding: 0 var(--s4) var(--s3); color: var(--ink-soft); }
.faq-body a { color: var(--olive); text-decoration: underline; }
