/* ==========================================================================
   Voices of Recovery Movement
   Design system for the public website
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0f2a35;
  --ink-2: #143642;
  --forest: #164759;
  --moss: #1a5b6e;
  --sage: #9fc7cf;
  --sage-light: #d2e6ea;
  --paper: #f7f3ec;
  --bone: #efe8dc;
  --sand: #e4d9c6;
  --clay: #b4532a;
  --clay-dark: #93401d;
  --clay-light: #e8b08c;
  --ochre: #d6a03f;
  --white: #fffdf9;

  --text: #16242a;
  --muted: #3c4a51;
  --line: rgba(15, 42, 53, .14);
  --line-strong: rgba(15, 42, 53, .28);

  --serif: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sans: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(5rem, 4rem + 6vw, 9.5rem);
  --radius: 4px;
  --radius-lg: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --fs-xs: .875rem;
  --fs-sm: .9375rem;
  --fs-base: clamp(1.0625rem, 1rem + .25vw, 1.125rem);
  --fs-lg: clamp(1.1875rem, 1.08rem + .45vw, 1.375rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
::selection { background: var(--clay); color: var(--white); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }
.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;
}

/* ---------- Typography ---------- */
.display-xl, .display-l, .display-m, .display-s, .h-card {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -.011em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.5rem, 1.55rem + 3.6vw, 4.75rem); line-height: 1.02; letter-spacing: -.025em; }
.display-l  { font-size: clamp(2rem, 1.45rem + 2.1vw, 3.25rem); line-height: 1.06; letter-spacing: -.02em; }
.display-m  { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.04; }
.display-s  { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.14; }
.h-card     { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.18; letter-spacing: -.012em; }
.display-xl em, .display-l em, .display-m em, .display-s em, .h-card em, .statement em {
  font-style: normal; color: var(--clay);
}

.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.measure { max-width: 62ch; }

.eyebrow {
  display: block; font-family: var(--sans); font-weight: 700;
  font-size: 1rem; line-height: 1.3; letter-spacing: .01em; color: var(--clay);
}
.eyebrow .num { display: none; }

.statement {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.005em;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.2; text-wrap: balance;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.container--text { max-width: calc(720px + var(--gutter) * 2); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.theme-paper { background: var(--paper); }
.theme-bone { background: var(--bone); }
.theme-white { background: var(--white); }
.theme-ink, .theme-forest, .theme-clay { color: var(--paper); }
.theme-ink { background: var(--ink); }
.theme-forest { background: var(--forest); }
.theme-clay { background: var(--clay); }
.theme-ink .lede, .theme-forest .lede, .theme-clay .lede,
.theme-ink .muted, .theme-forest .muted { color: rgba(247, 243, 236, 0.86); }
.theme-clay .lede, .theme-clay .muted { color: rgba(255, 253, 249, 0.86); }
.theme-ink .eyebrow, .theme-forest .eyebrow { color: var(--sage); }
.theme-clay .eyebrow { color: var(--white); }
.theme-ink em, .theme-forest em { color: var(--clay-light) !important; }
.theme-clay em { color: var(--white) !important; }

/* Subtle film grain on dark surfaces */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-head {
  display: grid; gap: 1.5rem 4rem; align-items: end;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.section-head > div { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.section-head--center { text-align: center; justify-items: center; }
.section-head p { text-wrap: pretty; }

.split { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 6rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .split--wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .split--top { align-items: start; }
  .split--reverse > :first-child { order: 2; }
}

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack { display: grid; gap: var(--stack, 1.25rem); align-content: start; }
.stack--lg { --stack: 2rem; }
.stack--sm { --stack: .75rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.theme-ink .rule, .theme-forest .rule { background: rgba(247, 243, 236, 0.16); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4.5rem; }

/* ---------- Buttons and links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-size: 1rem; font-weight: 500; letter-spacing: .005em; line-height: 1.2; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-hover, var(--clay)); transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg, var(--white)); border-color: var(--btn-hover, var(--clay)); }
.btn .bi { font-size: 1.05em; }
.btn__arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: .55rem 1.2rem; font-size: 0.9375rem; }
.btn--lg { min-height: 60px; padding: 1rem 2rem; font-size: 1rem; }
.btn--clay { --btn-bg: var(--clay); --btn-bd: var(--clay); --btn-fg: var(--white); --btn-hover: var(--ink); }
.btn--light { --btn-bg: var(--paper); --btn-bd: var(--paper); --btn-fg: var(--ink); --btn-hover: var(--clay); }
.btn--ghost { --btn-bg: transparent; --btn-bd: var(--line-strong); --btn-fg: var(--ink); --btn-hover: var(--ink); --btn-hover-fg: var(--paper); }
.theme-ink .btn--ghost, .theme-forest .btn--ghost, .theme-clay .btn--ghost, .has-dark-hero .hero .btn--ghost, .cine .btn--ghost {
  --btn-bd: rgba(247, 243, 236, 0.38); --btn-fg: var(--paper); --btn-hover: var(--paper); --btn-hover-fg: var(--ink);
}
.theme-clay .btn--light { --btn-hover: var(--ink); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: 1rem;
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--clay); }
.theme-ink .link-arrow:hover, .theme-forest .link-arrow:hover { color: var(--clay-light); }
.link-arrow .bi { transition: transform .4s var(--ease); }
.link-arrow:hover .bi { transform: translate(3px, -3px); }

.text-link { color: var(--clay); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: var(--clay-dark); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(247, 243, 236, 0.86); font-size: 0.875rem; position: relative; z-index: 60; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__note { display: flex; align-items: center; gap: .6rem; margin: 0; }
.topbar__links { display: flex; gap: 1.5rem; }
.topbar__links a { display: inline-flex; gap: .45rem; align-items: center; color: var(--paper); font-weight: 500; }
.topbar__links a:hover { color: var(--clay-light); }
@media (max-width: 720px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
}


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 243, 236, 0.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .45s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.has-dark-hero .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--paper); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; flex: none; }
.brand__mark { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.28rem; line-height: 1; letter-spacing: -.005em; font-weight: 600; display: grid; gap: 3px; }
.brand__name small { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; opacity: .62; }

.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__help {
  position: relative; display: inline-block; padding: .5rem .8rem; font-size: 0.9375rem; font-weight: 500;
}
.nav__link::after, .nav__help::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current]::after, .nav__help:hover::after, .nav__help[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.nav__help { color: var(--clay); }
.has-dark-hero .site-header:not(.is-scrolled) .nav__help { color: var(--clay-light); }
.has-dark-hero .site-header:not(.is-scrolled) .brand__mark { box-shadow: none; }

.menu-toggle { display: none; align-items: center; gap: .7rem; height: 44px; padding: 0 .4rem 0 1rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; }
.menu-toggle__lines { display: grid; gap: 6px; width: 22px; }
.menu-toggle__lines span { height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .menu-toggle__lines span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-toggle__lines span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav, .nav__help { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .brand__name { font-size: 1.1rem; }
  .site-header__actions .btn { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper);
  padding-top: calc(var(--header-h) + 72px); overflow-y: auto;
  opacity: 0; transition: opacity .4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--ink) !important; color: var(--paper); border-color: rgba(247,243,236,0.12); }
.mobile-menu__inner { display: grid; gap: 3rem; padding-bottom: 3rem; min-height: calc(100% - 40px); align-content: space-between; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(247,243,236,0.1);
  font-family: var(--serif); font-size: clamp(1.9rem, 1.3rem + 3vw, 3rem); font-weight: 600; letter-spacing: -.005em; line-height: 1.15;
  transform: translateY(18px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), color .3s;
}
.mobile-menu__list a span { font-family: var(--sans); font-size: 0.875rem; letter-spacing: .1em; color: var(--clay-light); width: 2rem; }
.mobile-menu__list a:hover, .mobile-menu__list a[aria-current] { color: var(--clay-light); }
.mobile-menu.is-open .mobile-menu__list a { transform: none; opacity: 1; }
.mobile-menu__list li:nth-child(n) a { transition-delay: calc(var(--i, 0) * 40ms); }
.mobile-menu__foot { display: grid; gap: .35rem; font-size: 1rem; }
.mobile-menu__foot p { color: var(--sage); font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: .5rem; }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
/* Portrait prints: square crop with a fine clay outline offset behind, like a mounted print */
.arch { position: relative; overflow: hidden; background: var(--sand); --mount: clamp(10px, .6rem + .6vw, 18px);
  box-shadow: var(--mount) var(--mount) 0 -1px var(--curtain, var(--paper)), var(--mount) var(--mount) 0 0 var(--clay); }
.hero, .page-hero--dark { --curtain: var(--ink); }
.theme-ink .arch, .theme-forest .arch, .hero .arch, .page-hero--dark .arch { box-shadow: var(--mount) var(--mount) 0 -1px var(--curtain), var(--mount) var(--mount) 0 0 var(--clay-light); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-tall { aspect-ratio: 3 / 4.2; }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-cinema { aspect-ratio: 21 / 9; }
.ratio-square { aspect-ratio: 1; }
@media (max-width: 640px) { .ratio-cinema { aspect-ratio: 4 / 3; } }

.caption {
  display: flex; gap: .75rem; align-items: baseline; margin-top: 1rem;
  font-size: var(--fs-sm); color: var(--muted);
}
.caption b { font-weight: 600; color: var(--text); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.theme-ink .caption, .theme-forest .caption { color: rgba(247,243,236,0.86); }
.theme-ink .caption b, .theme-forest .caption b { color: var(--paper); }

/* Parallax image inside a frame */
[data-parallax] { overflow: hidden; }
[data-parallax] img { transform: translate3d(0, var(--py, 0), 0) scale(1.12); will-change: transform; }

/* ---------- Voiceprint (waveform motif) ---------- */
.voiceprint { display: flex; align-items: center; gap: clamp(2px, .4vw, 5px); height: var(--vp-h, 64px); width: 100%; }
.voiceprint span {
  flex: 1 1 0; min-width: 1px; height: 100%; border-radius: 2px; background: currentColor; opacity: .5;
  transform: scaleY(var(--h)); transform-origin: center;
  animation: vp 3.2s var(--ease) infinite alternate; animation-delay: calc(var(--i) * -90ms);
}
@keyframes vp {
  0% { transform: scaleY(calc(var(--h) * .35)); }
  100% { transform: scaleY(var(--h)); }
}
.voiceprint--clay { color: var(--clay); }
.voiceprint--sage { color: var(--sage); }
.voiceprint--sm { --vp-h: 34px; }
.voiceprint--lg { --vp-h: 120px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; color: var(--paper); background: var(--ink);
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem));
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); overflow: hidden;
}
.hero__grid { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); align-items: end; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); } }
.hero__copy { display: grid; gap: 2rem; }
.hero__title { color: var(--paper); }
.hero .eyebrow { color: var(--sage); }
.hero__title em { color: var(--clay-light); }
.hero .lede { color: rgba(247, 243, 236, 0.86); max-width: 52ch; }
.hero__media { position: relative; }
.hero__media .arch { aspect-ratio: 4 / 5.1; }
.hero__media .arch img { filter: saturate(.92) contrast(1.02); }
.hero__badge {
  position: absolute; left: -2.5rem; bottom: 2.5rem; max-width: 270px;
  display: grid; gap: .5rem; padding: 1.2rem 1.35rem; border-radius: 2px;
  background: var(--paper); color: var(--text); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.hero__badge p { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.005em; }
.hero__badge a { font-size: 0.9375rem; font-weight: 600; color: var(--clay); display: inline-flex; gap: .4rem; align-items: center; }
@media (max-width: 999px) { .hero__media { max-width: 520px; } .hero__badge { left: auto; right: 1rem; bottom: 1rem; } }
.hero__meta {
  display: grid; gap: 1.5rem; margin-top: clamp(3.5rem, 2.5rem + 3vw, 6rem); padding-top: 2rem;
  border-top: 1px solid rgba(247, 243, 236, 0.16);
}
.hero__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.hero__meta .voiceprint { grid-column: 1 / -1; }
@media (min-width: 800px) {
  .hero__meta { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); align-items: center; }
  .hero__meta .voiceprint { grid-column: auto; }
}
.hero-stat { display: grid; gap: .25rem; }
.hero-stat strong { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; letter-spacing: -.005em; }
.hero-stat > span { font-size: 0.875rem; color: rgba(247, 243, 236, 0.86); max-width: 22ch; line-height: 1.45; }
.hero .voiceprint { color: var(--clay-light); --vp-h: 56px; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(3.5rem, 2.5rem + 4vw, 7rem); padding-bottom: clamp(3rem, 2rem + 3vw, 5.5rem); position: relative; overflow: hidden; }
.page-hero--dark { background: var(--ink); color: var(--paper); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(3.5rem, 2.5rem + 4vw, 7rem)); }
.page-hero__grid { display: grid; gap: 2.5rem 5rem; align-items: end; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.page-hero__title { margin-top: 1.5rem; }
.page-hero .lede { margin-top: 0; }
.page-hero__aside { display: grid; gap: 1.5rem; padding-bottom: .5rem; }
.page-hero--dark .lede { color: rgba(247, 243, 236, 0.86); }
.page-hero--dark .eyebrow { color: var(--sage); }
.page-hero--dark em { color: var(--clay-light) !important; }
.page-hero__media { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a:hover { color: var(--clay); }
.page-hero--dark .crumbs { color: rgba(247, 243, 236, 0.86); }
.page-hero--dark .crumbs a:hover { color: var(--clay-light); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding-block: 1.4rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--serif); font-style: normal; font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  letter-spacing: -.007em; white-space: nowrap; padding-inline: 1.75rem; display: inline-flex; align-items: center; gap: 3.5rem;
}
/* A small three-bar voice mark between phrases, echoing the microphone in the logo */
.marquee__item::after { content: ""; flex: none; width: 14px; height: 22px; background: linear-gradient(var(--clay), var(--clay)) 0 50% / 2px 45% no-repeat, linear-gradient(var(--clay), var(--clay)) 6px 50% / 2px 100% no-repeat, linear-gradient(var(--clay), var(--clay)) 12px 50% / 2px 65% no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pathway steps ---------- */
.steps { display: grid; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; display: grid; gap: 1rem; align-content: start; padding: 2.25rem 2rem 2.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .step { padding-left: 2rem; border-left: 1px solid var(--line); }
  .step:nth-child(2n+1) { border-left: 0; padding-left: 0; }
}
@media (min-width: 1100px) {
  .step { border-bottom: 0; }
  .step:nth-child(2n+1) { border-left: 1px solid var(--line); padding-left: 2rem; }
  .step:first-child { border-left: 0; padding-left: 0; }
}
.step__num { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--clay); letter-spacing: -.005em; }
.step p { color: var(--muted); font-size: 1rem; }
.theme-ink .steps, .theme-ink .step, .theme-forest .steps, .theme-forest .step { border-color: rgba(247,243,236,0.14); }
.theme-ink .step p, .theme-forest .step p { color: rgba(247,243,236,0.86); }
.theme-ink .step__num, .theme-forest .step__num { color: var(--clay-light); }

/* ---------- Programme list with cursor preview ---------- */
.program-list { position: relative; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.program-row {
  position: relative; display: grid; gap: .75rem 2rem; align-items: center;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), color .35s;
}
@media (min-width: 900px) { .program-row { grid-template-columns: 4rem minmax(0, 1.05fr) minmax(0, 1fr) 3rem; padding: 2.4rem 0; } }
.program-row__num { font-size: 0.875rem; font-weight: 600; letter-spacing: .1em; color: var(--clay); font-variant-numeric: tabular-nums; }
.program-row__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.011em; }
.program-row__text { color: var(--muted); font-size: 1rem; max-width: 48ch; }
.program-row__icon {
  justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background-color .4s var(--ease), color .4s, border-color .4s, transform .5s var(--ease);
}
@media (hover: hover) and (min-width: 900px) {
  .program-row:hover { padding-left: 1.25rem; }
  .program-row:hover .program-row__title { font-style: normal; color: var(--clay); }
  .program-row:hover .program-row__icon { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
}
@media (max-width: 899px) { .program-row__icon { display: none; } }
.program-preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 5; pointer-events: none;
  overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
  box-shadow: 0 40px 70px -30px rgba(15,42,53,.55);
}
.program-preview.is-visible { opacity: 1; }
.program-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s var(--ease); }
.program-preview img.is-active { opacity: 1; }
@media (hover: none), (max-width: 899px) { .program-preview { display: none; } }

/* ---------- Impact numbers ---------- */
.impact { display: grid; gap: 0; border-top: 1px solid rgba(247,243,236,0.16); }
@media (min-width: 860px) { .impact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.impact__item { display: grid; gap: 1rem; padding: 2.5rem 0; border-bottom: 1px solid rgba(247,243,236,0.16); }
@media (min-width: 860px) {
  .impact__item { padding: 3rem 2.5rem; border-bottom: 0; border-left: 1px solid rgba(247,243,236,0.16); }
  .impact__item:first-child { border-left: 0; padding-left: 0; }
}
.impact__num { font-family: var(--serif); font-weight: 600; font-size: clamp(4rem, 2.6rem + 5vw, 7.5rem); line-height: .9; letter-spacing: -.005em; color: var(--paper); }
.impact__num sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; color: var(--clay-light); margin-left: .05em; }
.impact__label { color: rgba(247,243,236,0.86); max-width: 28ch; }
.theme-paper .impact, .theme-bone .impact, .theme-paper .impact__item, .theme-bone .impact__item { border-color: var(--line); }
.theme-paper .impact__num, .theme-bone .impact__num { color: var(--ink); }
.theme-paper .impact__num sup, .theme-bone .impact__num sup { color: var(--clay); }
.theme-paper .impact__label, .theme-bone .impact__label { color: var(--muted); }

/* ---------- Quote / feature ---------- */
.quote { display: grid; gap: 2rem; }
.quote__mark { font-family: var(--serif); font-weight: 600; font-size: 6rem; line-height: .6; color: var(--clay); height: 2.6rem; }
.quote blockquote p {
  font-family: var(--serif); font-weight: 600; font-style: normal; letter-spacing: -.005em;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.12; text-wrap: balance;
}
.quote figcaption { display: flex; gap: 1rem; align-items: center; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption span { font-size: 0.9375rem; color: var(--muted); }
.quote figcaption::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.theme-ink .quote figcaption span, .theme-forest .quote figcaption span { color: rgba(247,243,236,0.86); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: grid; gap: 1rem; align-content: start; padding: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card p { color: var(--muted); }
.card--link:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -35px rgba(15,42,53,.45); border-color: var(--line-strong); }
.card--plain { background: transparent; }
.card--bone { background: var(--bone); border-color: transparent; }
.card__icon { display: block; font-size: 1.6rem; line-height: 1; color: var(--clay); }
.card__foot { margin-top: auto; padding-top: 1rem; }
.theme-ink .card, .theme-forest .card { background: rgba(247,243,236,0.04); border-color: rgba(247,243,236,0.14); }
.theme-ink .card p, .theme-forest .card p { color: rgba(247,243,236,0.86); }
.theme-ink .card__icon, .theme-forest .card__icon { color: var(--clay-light); }
.theme-ink .card--link:hover, .theme-forest .card--link:hover { border-color: rgba(247,243,236,0.35); box-shadow: none; }

.tag { display: inline-block; width: fit-content; font-size: 0.875rem; font-weight: 500; color: var(--moss); }
.tag .bi { display: none; }
.tag--clay { color: var(--clay-dark); }
.tag--solid { padding: .35rem .6rem; border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 0.875rem; }

/* Numbered feature list (values, principles) */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.feature-list li { display: grid; gap: .5rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .feature-list li { grid-template-columns: 3.5rem minmax(0, .8fr) minmax(0, 1.2fr); align-items: baseline; } }
.feature-list__num { font-size: 0.875rem; font-weight: 600; color: var(--clay); letter-spacing: .1em; }
.feature-list h3 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: -.007em; line-height: 1.2; }
.feature-list p { color: var(--muted); }
.theme-ink .feature-list, .theme-ink .feature-list li, .theme-forest .feature-list, .theme-forest .feature-list li { border-color: rgba(247,243,236,0.14); }
.theme-ink .feature-list p, .theme-forest .feature-list p { color: rgba(247,243,236,0.86); }
.theme-ink .feature-list__num, .theme-forest .feature-list__num { color: var(--clay-light); }

/* Ruled list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.checklist li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.theme-ink .checklist, .theme-ink .checklist li, .theme-forest .checklist, .theme-forest .checklist li,
.theme-clay .checklist, .theme-clay .checklist li { border-color: rgba(247,243,236,0.18); }

/* ---------- Stories ---------- */
.story-grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
@media (min-width: 700px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story-card {
  position: relative; display: flex; flex-direction: column; min-height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.story-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(15,42,53,.5); }
.story-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.story-card:hover .story-card__media img { transform: scale(1.05); }
.story-card__body { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); flex: 1; }
.story-card__meta { display: flex; gap: .75rem; align-items: center; font-size: 0.875rem; color: var(--muted); }
.story-card__meta .dot { width: 1px; height: .9em; background: currentColor; opacity: .35; }
.story-card__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 1.25rem + .7vw, 1.85rem); line-height: 1.15; letter-spacing: -.007em; }
.story-card__excerpt { color: var(--muted); font-size: 1rem; }
.story-card__foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 0.9375rem; font-weight: 500; }
.story-card__foot .bi { transition: transform .4s var(--ease); }
.story-card:hover .story-card__foot .bi { transform: translateX(4px); color: var(--clay); }
.story-card__link::after { content: ""; position: absolute; inset: 0; }

/* Pull quote on story cards */
.story-card__pull { margin: 0; padding-left: 1rem; border-left: 2px solid var(--clay); font-size: 1.02rem; line-height: 1.5; color: var(--text); text-wrap: pretty; }

/* ---------- Outreaches ---------- */
.outreach-card { position: relative; display: grid; gap: 1.4rem; align-content: start; }
.outreach-card__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--sand); }
.outreach-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.outreach-card:hover .outreach-card__media img { transform: scale(1.05); }
.date-chip {
  position: absolute; left: 1rem; top: 1rem; display: grid; justify-items: center; min-width: 64px; padding: .6rem .7rem;
  background: var(--paper); color: var(--ink); border-radius: 2px; line-height: 1;
}
.date-chip strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; letter-spacing: -.005em; }
.date-chip span { font-size: 0.8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; }
.outreach-card__status { position: absolute; right: 1rem; top: 1rem; }
.outreach-card__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); line-height: 1.15; letter-spacing: -.007em; transition: color .3s; }
.outreach-card:hover .outreach-card__title { color: var(--clay); }
.outreach-card p { color: var(--muted); font-size: 1rem; }
.outreach-card__link::after { content: ""; position: absolute; inset: 0; }

/* Event row (compact list of upcoming dates) */
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.event-row__date { font-family: var(--serif); font-weight: 600; line-height: 1; }
.event-row__date strong { display: block; font-size: 2.6rem; font-weight: 350; letter-spacing: -.04em; }
.event-row__date span { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.event-row__title { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; }
.event-row__title a::after { content: ""; position: absolute; inset: 0; }
.event-row:hover .event-row__title { color: var(--clay); }
.event-row .bi { font-size: 1.2rem; transition: transform .4s var(--ease); }
.event-row:hover .bi { transform: translate(3px, -3px); color: var(--clay); }

/* ---------- Paths (get involved tiles) ---------- */
.paths { display: grid; gap: 1px; background: rgba(247,243,236,0.14); border: 1px solid rgba(247,243,236,0.14); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path {
  position: relative; display: grid; gap: 1.25rem; align-content: start; min-height: 360px;
  padding: clamp(2rem, 1.6rem + 1.5vw, 3rem); background: var(--ink); transition: background-color .5s var(--ease);
}
.path:hover { background: var(--forest); }
.path__num { font-size: 0.875rem; font-weight: 600; letter-spacing: .12em; color: var(--clay-light); }
.path h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.15; letter-spacing: -.012em; }
.path p { color: rgba(247,243,236,0.86); max-width: 34ch; }
.path__cta { margin-top: auto; display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; }
.path__cta .bi { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247,243,236,0.35); display: grid; place-items: center; transition: background-color .4s, color .4s, transform .5s var(--ease); }
.path:hover .path__cta .bi { background: var(--clay); border-color: var(--clay); transform: rotate(-45deg); }
.path a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Call to action band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.cta-band__actions { display: grid; gap: 1rem; justify-items: start; }
.cta-band .voiceprint { position: absolute; left: 0; right: 0; bottom: 0; --vp-h: 140px; opacity: .14; color: var(--white); pointer-events: none; }
.contact-line { display: grid; gap: .25rem; }
.contact-line span { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.contact-line a { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 600; letter-spacing: -.005em; line-height: 1.1; }
.contact-line a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- Team ---------- */
.person { display: grid; gap: 1.1rem; }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); display: grid; place-items: center;
  background: var(--bone); color: var(--moss); font-family: var(--serif); font-size: 4rem; font-weight: 600; letter-spacing: -.005em;
}
.person h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.006em; line-height: 1.2; }
.person p { color: var(--muted); font-size: 1rem; }
.person__role { font-size: 0.8125rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay) !important; }

/* ---------- Donation tiers ---------- */
.tiers { display: grid; gap: 1rem; }
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier {
  position: relative; display: grid; gap: 1rem; align-content: start; padding: 2rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -35px rgba(15,42,53,.45); }
.tier__amount { font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 2.2rem + 2vw, 4rem); line-height: 1; letter-spacing: -.005em; }
.tier__amount small { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: .25rem; }
.tier p { color: var(--muted); }
.tier--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tier--featured p, .tier--featured .tier__amount small { color: rgba(247,243,236,0.86); }
.tier--featured .tag { border-color: transparent; background: var(--clay); color: var(--white); }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.6rem 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.3; letter-spacing: -.005em;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay); }
.faq summary::after {
  content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--sans); font-size: 1.2rem; font-weight: 300; transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq__answer { padding: 0 4rem 1.8rem 0; color: var(--muted); max-width: 72ch; display: grid; gap: 1rem; }
.faq__answer a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.theme-ink .faq, .theme-ink .faq details { border-color: rgba(247,243,236,0.14); }
.theme-ink .faq__answer { color: rgba(247,243,236,0.86); }

/* ---------- Long-form prose (stories, legal pages) ---------- */
.prose { font-size: 1.1rem; line-height: 1.78; color: #26302b; max-width: 68ch; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); line-height: 1.2; letter-spacing: -.007em; margin-top: 2.4em; color: var(--text); }
.prose h3 { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-top: 2em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose--story > p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-size: 4.6em; line-height: .82; font-weight: 600; padding: .08em .12em 0 0; color: var(--clay);
}
.prose blockquote { border-left: 2px solid var(--clay); padding-left: 1.5rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--text); }

.toc { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: .25rem; font-size: 0.9375rem; }
.toc p { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: .75rem; }
.toc a { padding: .35rem 0 .35rem 1rem; border-left: 1px solid var(--line); color: var(--muted); transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--clay); border-color: var(--clay); }
.legal-layout { display: grid; gap: 3rem; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 6rem; } }
@media (max-width: 959px) { .toc { position: static; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .5rem; }
.field label, .field legend { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: .9rem 1.05rem; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line-strong);
  font-size: 1rem; line-height: 1.4; color: var(--text);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 160px; resize: vertical; }
.select { padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231b2420' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; }
.input::placeholder, .textarea::placeholder { color: #8b948f; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--moss); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(47, 93, 74, .14); }
.file-input { font-size: 0.9375rem; color: var(--muted); }
.file-input::file-selector-button { margin-right: 1rem; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--text); font-weight: 500; cursor: pointer; }
.form-note { font-size: 0.875rem; color: var(--muted); display: flex; gap: .6rem; align-items: start; }
.form-note .bi { color: var(--moss); margin-top: .1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice-group { display: grid; gap: .75rem; border: 0; padding: 0; margin: 0; }
@media (min-width: 640px) { .choice-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice-group legend { margin-bottom: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white);
  font-size: 1rem; transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.choice span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: border .3s, background .3s; }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + span::before { border: 5px solid var(--clay); }
.choice input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

.alert { display: flex; gap: 1rem; align-items: start; padding: 1.2rem 1.4rem; border-radius: 12px; font-size: 1rem; }
.alert .bi { font-size: 1.3rem; line-height: 1.2; }
.alert strong { display: block; font-weight: 600; margin-bottom: .15rem; }
.alert--success { background: #e6efe5; color: #1f4532; border: 1px solid #c6d9c4; }
.alert--error { background: #f6e3da; color: #7a2f12; border: 1px solid #ebc4b1; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius-lg) + 4px); padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem); }
.panel--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-list .bi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bone); color: var(--clay); font-size: 1.1rem; }
.contact-list span { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-list a, .contact-list p { font-size: 1.05rem; }
.contact-list a:hover { color: var(--clay); }
.theme-ink .contact-list, .theme-ink .contact-list li { border-color: rgba(247,243,236,0.14); }
.theme-ink .contact-list .bi { background: rgba(247,243,236,0.08); color: var(--clay-light); }
.theme-ink .contact-list span { color: rgba(247,243,236,0.86); }

.map { overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) sepia(.15); }

/* ---------- Emergency notice ---------- */
.notice {
  display: grid; gap: 1rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--clay);
}
@media (min-width: 760px) { .notice { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; } }
.notice__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(180, 83, 42, .1); color: var(--clay); font-size: 1.25rem; }
.notice p { color: var(--muted); font-size: 1rem; }
.notice strong { color: var(--text); font-weight: 600; display: block; }

/* ---------- Dialog ---------- */
.dialog {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 6px;
  background: var(--paper); color: var(--text); box-shadow: 0 50px 100px -30px rgba(0,0,0,.5);
}
.dialog::backdrop { background: rgba(15, 42, 53, .6); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in .5s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.dialog__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 2rem 2rem 0; }
.dialog__body { padding: 1.5rem 2rem 2rem; }
.dialog__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: background-color .3s, color .3s; }
.dialog__close:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(4.5rem, 3.5rem + 4vw, 8rem); overflow: hidden; }
.site-footer__top { display: grid; gap: 3.5rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(247,243,236,0.14); }
@media (min-width: 1080px) { .site-footer__top { grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 6rem; } }
.site-footer__intro { display: grid; gap: 1.5rem; justify-items: start; align-content: start; }
.site-footer__lead { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); line-height: 1.3; letter-spacing: -.006em; max-width: 30ch; }
.site-footer__cols { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .site-footer__cols { grid-template-columns: repeat(3, minmax(0, .8fr)) minmax(0, 1.7fr); } }
.site-footer__heading { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.site-footer__cols a, .site-footer address { color: rgba(247,243,236,0.82); font-size: 1rem; transition: color .3s; }
.site-footer__cols a:hover { color: var(--clay-light); }
.site-footer__contact { display: grid; gap: .65rem; align-content: start; grid-column: 1 / -1; }
@media (min-width: 760px) { .site-footer__contact { grid-column: auto; } }
.site-footer__contact .site-footer__heading { margin-bottom: .6rem; }
.social { display: flex !important; gap: .5rem !important; margin-top: .75rem !important; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247,243,236,0.22); display: grid; place-items: center; transition: background-color .3s, border-color .3s, color .3s; }
.social a:hover { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.site-footer__wordmark {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.027em; line-height: .85; white-space: nowrap;
  font-size: clamp(2rem, 10.2vw, 12rem); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  color: rgba(247,243,236,0.92); text-align: center;
}
.site-footer__wordmark em { font-style: normal; color: var(--clay-light); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.75rem; border-top: 1px solid rgba(247,243,236,0.14); font-size: 0.875rem; color: rgba(247,243,236,0.86); }
.site-footer__bottom ul { display: flex; gap: 1.5rem; }
.site-footer__bottom a:hover { color: var(--paper); }
.site-footer__crisis a { color: var(--clay-light); font-weight: 600; }

/* ---------- WhatsApp chat ---------- */
.chat { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 40; display: grid; justify-items: end; gap: .9rem; }
.chat__avatar { position: relative; flex: none; width: 40px; height: 40px; }
.chat__avatar img { width: 100%; height: 100%; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; }
.chat__avatar .bi { position: absolute; right: -4px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.875rem; background: #25d366; color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.chat__toggle {
  display: inline-flex; align-items: center; gap: .8rem; padding: .45rem 1.15rem .45rem .5rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-align: left; box-shadow: 0 22px 44px -18px rgba(15,42,53,.65), inset 0 0 0 1px rgba(247,243,236,0.1);
  transition: transform .4s var(--ease), background-color .3s;
}
.chat__toggle:hover { transform: translateY(-2px); background: var(--forest); }
.chat__label { display: grid; line-height: 1.2; }
.chat__label b { font-size: 1rem; font-weight: 700; }
.chat__label small { font-size: 0.875rem; color: rgba(247,243,236,0.86); }
/* A small talking waveform, the same voice mark used across the site */
.chat__wave, .chat__typing { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.chat__wave span, .chat__typing span { width: 3px; height: 100%; border-radius: 2px; background: var(--clay-light); transform: scaleY(.35); animation: chat-talk 1.1s var(--ease) infinite; }
.chat__wave span:nth-child(2), .chat__typing span:nth-child(2) { animation-delay: -.25s; }
.chat__wave span:nth-child(3), .chat__typing span:nth-child(3) { animation-delay: -.5s; }
.chat__wave span:nth-child(4), .chat__typing span:nth-child(4) { animation-delay: -.75s; }
@keyframes chat-talk { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.chat__toggle[aria-expanded="true"] .chat__wave span { animation-play-state: paused; }

.chat__panel { width: min(360px, calc(100vw - 28px)); background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(15,42,53,.6); border: 1px solid var(--line); animation: dialog-in .45s var(--ease-out); }
.chat__head { display: flex; gap: .85rem; align-items: center; padding: 1rem 1rem 1rem 1.1rem; background: var(--ink); color: var(--paper); }
.chat__head .chat__avatar { width: 44px; height: 44px; }
.chat__who { min-width: 0; }
.chat__title { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.chat__status { font-size: 0.875rem; color: rgba(247,243,236,0.86); }
.chat__close { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); }
.chat__close:hover { background: rgba(247,243,236,0.1); }
.chat__body {
  display: grid; gap: .55rem; justify-items: start; padding: 1rem 1rem 1.1rem; max-height: min(60vh, 440px); overflow-y: auto;
  background: var(--bone);
}
.chat__day { justify-self: center; font-size: 0.875rem; font-weight: 600; color: var(--muted); background: rgba(247,243,236,0.85); padding: .2rem .6rem; border-radius: 4px; }
.chat__bubble { max-width: 88%; background: var(--white); border-radius: 2px 12px 12px 12px; padding: .7rem .9rem; font-size: 0.9375rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(15,42,53,.08); }
.chat__typing { padding: .75rem .9rem; background: var(--white); border-radius: 2px 12px 12px 12px; height: auto; box-shadow: 0 1px 1px rgba(15,42,53,.08); }
.chat__typing span { height: 14px; background: var(--moss); }
.chat__bubble--later, .chat__replies { display: none; }
.chat__panel.is-ready .chat__typing { display: none; }
.chat__panel.is-ready .chat__bubble--later { display: block; animation: chat-in .45s var(--ease-out) both; }
.chat__panel.is-ready .chat__replies { display: grid; animation: chat-in .45s var(--ease-out) .25s both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } }
.chat__replies { justify-self: stretch; gap: .45rem; margin-top: .5rem; }
.chat__replies a {
  display: flex; gap: .7rem; align-items: center; justify-self: end; max-width: 92%; padding: .6rem .9rem;
  border-radius: 12px 2px 12px 12px; background: #dff3e4; color: var(--ink); font-size: 0.9375rem; font-weight: 600;
  box-shadow: 0 1px 1px rgba(15,42,53,.08); transition: background-color .25s, transform .3s var(--ease);
}
.chat__replies a .bi { color: var(--moss); }
.chat__replies a:hover { background: var(--ink); color: var(--paper); transform: translateX(-3px); }
.chat__replies a:hover .bi { color: var(--clay-light); }
.chat__foot { display: flex; gap: .5rem; align-items: center; padding: .75rem 1rem; font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--line); }
.chat__foot a { color: var(--clay); font-weight: 700; }
@media (max-width: 560px) {
  .chat__label, .chat__wave { display: none; }
  .chat__toggle { padding: .35rem; }
  .chat__toggle .chat__avatar { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .chat__wave span, .chat__typing span { animation: none; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"]::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--curtain, var(--paper));
  transform-origin: 50% 0; transition: transform 1.3s var(--ease-out); transition-delay: var(--delay, 0s);
}
.js [data-reveal="clip"].is-in::before { transform: scaleY(0); }
.theme-bone { --curtain: var(--bone); } .theme-ink { --curtain: var(--ink); } .theme-forest { --curtain: var(--forest); } .theme-white { --curtain: var(--white); }
.js [data-reveal="clip"] img { transform: scale(1.15); transition: transform 1.8s var(--ease-out); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }
.js .hero [data-reveal] { transition-duration: 1.2s; }

/* Headline words rising into place */
.js [data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .word > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--w) * 55ms + var(--delay, 0s)); }
.js [data-split].is-in .word > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="clip"], .js [data-split] .word > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal="clip"]::before { display: none; }
  [data-parallax] img { transform: none !important; }
  .marquee__track { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .chat, .site-footer, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
@media (max-width: 799px) { .hero-stat > span { font-size: 0.875rem; } }
.site-footer__contact a { overflow-wrap: anywhere; }
@media (min-width: 1080px) { .site-footer__contact a { overflow-wrap: normal; white-space: nowrap; } }
.btn--ink { --btn-bg: var(--ink); --btn-bd: var(--ink); --btn-fg: var(--paper); --btn-hover: var(--clay); }

/* ==========================================================================
   Page-level components
   ========================================================================== */

/* Ghost buttons on any dark surface; inline arrow links keep their natural width */
.page-hero--dark .btn--ghost, .featured-story .btn--ghost { --btn-bd: rgba(247, 243, 236, 0.38); --btn-fg: var(--paper); --btn-hover: var(--paper); --btn-hover-fg: var(--ink); }
.stack > .link-arrow, .card .link-arrow, .outreach-card .link-arrow, .section-head .link-arrow { justify-self: start; }
.contact-list a { overflow-wrap: anywhere; }


/* Table of contents should hug its links rather than stretch down the column */
.legal-layout > .toc { align-self: start; align-content: start; }

/* Section heading that stays in view while long text scrolls beside it */
@media (min-width: 900px) {
  .sticky-head { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
}

/* Outline tag for dark backgrounds */
.tag--light { border-color: rgba(247, 243, 236, 0.28); color: var(--paper); transition: background-color .3s, color .3s; }
.tag--light:hover { background: var(--paper); color: var(--ink); }

/* Outreaches, stories and article pages */

.meta-row { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; list-style: none; padding: 0; margin: 0; font-size: 0.9375rem; color: var(--muted); }
.meta-row li { display: inline-flex; align-items: center; gap: .55rem; }
.meta-row .bi { color: var(--clay); }

.outreach-feature__media { position: relative; }
.outreach-feature__media .date-chip { left: 1.25rem; top: 1.25rem; min-width: 76px; padding: .8rem .9rem; }
.outreach-feature__media .date-chip strong { font-size: 2.4rem; }

/* Featured story banner */
.featured-story {
  display: grid; overflow: hidden; border-radius: calc(var(--radius-lg) + 6px);
  background: var(--ink); color: var(--paper);
}
@media (min-width: 960px) { .featured-story { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.featured-story__body { display: grid; gap: 2rem; align-content: center; padding: clamp(2rem, 1.4rem + 3vw, 4.5rem); }
.featured-story .eyebrow { color: var(--sage); }
.featured-story .quote blockquote p { color: var(--paper); }
.featured-story .quote figcaption span { color: rgba(247, 243, 236, 0.86); }
.featured-story__media { min-height: 320px; }
.featured-story__media img { width: 100%; height: 100%; object-fit: cover; }
.featured-story__voice { display: grid; align-items: center; padding: clamp(2rem, 1.4rem + 3vw, 4.5rem); color: var(--clay-light); border-left: 1px solid rgba(247, 243, 236, 0.12); }
.featured-story__voice .voiceprint { --vp-h: 220px; }
@media (max-width: 959px) {
  .featured-story__voice { border-left: 0; border-top: 1px solid rgba(247, 243, 236, 0.12); padding-block: 2rem; }
  .featured-story__voice .voiceprint { --vp-h: 90px; }
}

/* Outreach detail aside */
.detail-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.detail-list { display: grid; margin: 0; }
.detail-list div { display: grid; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.detail-list div:first-child { padding-top: 0; }
.detail-list dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.detail-list dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
@media (max-width: 899px) { .detail-aside { position: static; } }

/* Story article */
.article-hero { padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.story-pull { margin: 2.6em 0; padding: 2rem 0; border-block: 1px solid var(--line); }
.story-pull blockquote p { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); color: var(--clay); }
.story-footer { display: grid; gap: 1.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.share-row span { margin-right: .5rem; font-weight: 500; }
.share-row a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s;
}
.share-row a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Consent checkbox */
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .85rem; align-items: start; font-size: 0.9375rem; color: var(--muted); line-height: 1.55; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--clay); cursor: pointer; }

/* Outreach detail: the hero image already separates hero and body */
.detail-body { padding-top: clamp(3rem, 2.5rem + 3vw, 5.5rem); }

/* Story opening line and pull quote */
.story-intro { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.35; letter-spacing: -.006em; color: var(--text); }
.story-pull blockquote { border-left: 0; padding-left: 0; }
.story-footer { max-width: 68ch; font-size: 1.1rem; }

/* Let form columns shrink on small screens */
#share .split > * { min-width: 0; }
.file-input { max-width: 100%; }

/* Donation tiers: amounts in ink, buttons aligned to the bottom */
.tier { display: flex; flex-direction: column; }
.tier .tier__amount { color: var(--ink); }
.tier--featured .tier__amount { color: var(--paper); }
.tier--featured .tag { position: absolute; top: 1.5rem; right: 1.5rem; }
.tier .btn { margin-top: auto; }
.tier p:last-of-type { margin-bottom: .75rem; }

/* Donate: large online giving panel */
.donate-cta { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .donate-cta { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.donate-cta__copy { display: grid; gap: 1.25rem; }
.donate-cta .eyebrow { color: var(--sage); }
.donate-cta__action { display: grid; gap: .75rem; justify-items: start; }
.donate-cta .muted { color: rgba(247, 243, 236, 0.86); }

/* Legal pages: first heading aligns with the table of contents */
.legal-layout .prose > h2:first-child { margin-top: 0; }

/* Small screens: thinner voiceprint in the donate hero, long emails wrap */
@media (max-width: 640px) { .page-hero--dark .voiceprint span:nth-child(n+71) { display: none; } }

/* ---------- Editorial components (round two) ---------- */
.label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.theme-ink .label, .theme-forest .label { color: var(--paper); }

/* Contents-style index of links, used under page heroes */
.index-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); border-top: 1px solid rgba(247,243,236,0.16); }
.index-links li { border-bottom: 1px solid rgba(247,243,236,0.16); }
.index-links a { display: flex; gap: 1rem; align-items: baseline; padding: 1rem 1.5rem 1rem 0; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--paper); transition: color .3s, padding .4s var(--ease); }
.index-links a span { font-family: var(--sans); font-size: 0.875rem; color: var(--sage); font-variant-numeric: tabular-nums; min-width: 1.2rem; }
.index-links a:hover { color: var(--clay-light); padding-left: .4rem; }

/* Monogram in place of generic icons */
.monogram { font-family: var(--serif); font-weight: 600; font-style: normal; font-size: 2.6rem; line-height: 1; letter-spacing: -.005em; color: var(--clay); }
.theme-ink .monogram, .theme-forest .monogram { color: var(--clay-light); }

/* Photo-led cards */
.photo-cards { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) clamp(1.25rem, 1rem + 1vw, 2rem); }
@media (min-width: 640px) { .photo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .photo-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .photo-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo-card { display: grid; gap: .75rem; align-content: start; }
.photo-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); margin-bottom: .5rem; }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.photo-card:hover .photo-card__media img { transform: scale(1.04); }
.photo-card p { color: var(--muted); }
.theme-ink .photo-card p, .theme-forest .photo-card p { color: rgba(247,243,236,0.86); }

/* ---------- Collage: layered photographs and a note ---------- */
.collage { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collage > figure { margin: 0; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.collage__b, .collage__c { aspect-ratio: 4 / 5; }
.collage__note { grid-column: 1 / -1; margin: 0; padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); display: grid; gap: 1.5rem; align-content: end; }
.collage__note p { font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.collage__note footer { font-size: 0.9375rem; color: rgba(255,253,249,0.82); }
@media (min-width: 900px) {
  .collage { gap: 0; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(10, clamp(46px, 4.6vw, 70px)); }
  .collage > * { aspect-ratio: auto; }
  .collage__a { grid-column: 1 / 8; grid-row: 1 / 10; }
  .collage__b { grid-column: 8 / 12; grid-row: 2 / 7; margin-left: clamp(1rem, 2vw, 2rem); }
  .collage__c { grid-column: 11 / 13; grid-row: 1 / 4; z-index: 2; box-shadow: 0 0 0 8px var(--curtain, var(--paper)); }
  .collage__note { grid-column: 7 / 13; grid-row: 6 / 11; z-index: 3; margin-left: clamp(-3rem, -3vw, -1rem); }
}

/* Duotone print: photograph reduced to two brand colours */
.duotone { position: relative; overflow: hidden; background: var(--tone, var(--clay)); }
.duotone img { filter: grayscale(1) contrast(1.1) brightness(1.25); mix-blend-mode: multiply; }
.duotone::after { content: ""; position: absolute; inset: 0; background: var(--forest); mix-blend-mode: lighten; pointer-events: none; }
.duotone--sage { --tone: var(--sage); }
.duotone--clay { --tone: var(--clay-light); }

/* Hand-drawn loop around a word */
.scribble { position: relative; white-space: nowrap; display: inline-block; }
.scribble__mark { position: absolute; left: -7%; top: -20%; width: 114%; height: 145%; overflow: visible; pointer-events: none; }
.scribble__mark path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) .5s; }
.is-in .scribble__mark path, html:not(.js) .scribble__mark path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .scribble__mark path { stroke-dashoffset: 0; transition: none; } }

/* ---------- Cinematic home hero ---------- */
.cine {
  position: relative; isolation: isolate; overflow: hidden; color: var(--paper); background: var(--ink);
  margin-top: calc(var(--header-h) * -1); min-height: max(680px, min(100svh, 1040px));
  display: grid; grid-template-rows: 1fr auto; --curtain: var(--ink);
}
.cine__stage, .cine__slide, .cine__shade { position: absolute; inset: 0; }
.cine__stage { z-index: -3; }
.cine__slide { margin: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.cine__slide.is-active { opacity: 1; }
.cine__slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--origin, 50% 50%); animation: cine-push 18s ease-in-out infinite alternate; filter: saturate(.9) contrast(1.04); }
@keyframes cine-push { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.cine__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 26, 33, .72) 0, rgba(8, 26, 33, 0) 26%),
    linear-gradient(0deg, rgba(8, 26, 33, .96) 0, rgba(8, 26, 33, .55) 32%, rgba(8, 26, 33, 0) 62%),
    linear-gradient(90deg, rgba(8, 26, 33, .88) 0, rgba(8, 26, 33, .55) 45%, rgba(8, 26, 33, .1) 80%);
}
.cine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cine__voice { position: absolute; z-index: -1; inset-inline: 0; bottom: 0; height: 170px; color: var(--clay-light); opacity: .2; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.cine__voice .voiceprint { --vp-h: 170px; }

.cine__inner { align-self: end; display: grid; gap: 2.5rem; align-items: end; padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
@media (min-width: 1000px) { .cine__inner { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; } }
.cine__copy { display: grid; gap: 1.75rem; }
.cine .eyebrow { color: var(--clay-light); }
.cine__title { font-weight: 700; font-size: clamp(2.6rem, 1.45rem + 4.6vw, 5.75rem); line-height: .98; letter-spacing: -.03em; max-width: 12.5ch; color: var(--paper); text-wrap: balance; }
.cine__title em { font-style: normal; color: var(--clay-light); }
.cine__lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: rgba(247, 243, 236, 0.84); max-width: 46ch; }
.cine__card {
  display: grid; gap: .6rem; padding: 1.5rem; color: var(--paper);
  background: rgba(15, 42, 53, .42); border: 1px solid rgba(247, 243, 236, 0.2); border-radius: 4px;
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.cine__card-title { font-weight: 700; font-size: 1.15rem; }
.cine__card p:not(.cine__card-title) { font-size: 1rem; color: rgba(247, 243, 236, 0.86); }
.cine__card a { display: inline-flex; gap: .55rem; align-items: center; margin-top: .4rem; font-weight: 700; font-size: 1.3rem; color: var(--clay-light); }
.cine__card a:hover { color: var(--white); }

.cine__foot { position: relative; display: grid; gap: 1.75rem; padding-block: 1.6rem clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); border-top: 1px solid rgba(247, 243, 236, 0.18); }
@media (min-width: 1000px) { .cine__foot { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.cine__reel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cine__reel button { display: grid; gap: .7rem; width: 100%; padding: .4rem 0; text-align: left; color: rgba(247, 243, 236, 0.86); font-size: 0.875rem; line-height: 1.35; transition: color .3s; cursor: pointer; }
.cine__reel button:hover, .cine__reel button[aria-current] { color: var(--paper); }
.cine__bar { position: relative; display: block; height: 2px; background: rgba(247, 243, 236, 0.22); overflow: hidden; }
.cine__bar i { position: absolute; inset: 0; background: var(--clay-light); transform: scaleX(0); transform-origin: 0 50%; }
.cine__reel button[aria-current] .cine__bar i { animation: cine-bar var(--cine-dur, 7s) linear forwards; }
.cine.is-paused .cine__reel button[aria-current] .cine__bar i { animation-play-state: paused; }
@keyframes cine-bar { to { transform: scaleX(1); } }
.cine__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cine__stats .hero-stat strong { font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.5rem); }
.cine__stats .hero-stat > span { font-size: 0.875rem; color: rgba(247, 243, 236, 0.86); }
@media (max-width: 699px) {
  .cine { min-height: 100svh; }
  .cine__slide img { filter: blur(3px) brightness(.62) saturate(.85); transform-origin: 50% 50%; }
  .cine__title, .cine__lede, .cine .eyebrow { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
  .cine__cap { display: none; }
  .cine__reel { gap: .5rem; }
  .cine__card { display: none; }
  .cine__shade { background: linear-gradient(180deg, rgba(8, 26, 33, .75) 0, rgba(8, 26, 33, .5) 30%, rgba(8, 26, 33, .72) 60%, rgba(8, 26, 33, .97) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .cine__slide img { animation: none; }
  .cine__reel button[aria-current] .cine__bar i { animation: none; transform: scaleX(1); }
}

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed; z-index: 90; left: var(--gutter); bottom: var(--gutter); width: min(560px, calc(100vw - var(--gutter) * 2));
  display: grid; gap: 1.1rem; padding: 1.4rem 1.5rem; background: var(--ink); color: var(--paper); border-radius: 4px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.cookie.is-open { opacity: 1; transform: none; }
.cookie__title { font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.cookie__text p:not(.cookie__title) { font-size: 0.9375rem; line-height: 1.55; color: rgba(247, 243, 236, 0.86); }
.cookie__text a { color: var(--clay-light); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie .btn--ghost { --btn-bd: rgba(247, 243, 236, 0.38); --btn-fg: var(--paper); --btn-hover: var(--paper); --btn-hover-fg: var(--ink); }

/* Footer icons */
.site-footer__heading { display: flex; gap: .55rem; align-items: center; }
.site-footer__heading .bi { font-size: 1rem; color: var(--clay-light); letter-spacing: 0; }
.site-footer__item { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .6rem; align-items: start; font-style: normal; }
.site-footer__item .bi { color: var(--clay-light); line-height: 1.5; }
.site-footer__crisis .bi { color: var(--clay-light); }

/* ---------- Partners ---------- */
.partners { border-top: 1px solid var(--line); }
.partners__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .partners__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 4rem; } }
.partners__intro { display: grid; gap: 1rem; }
.partners__logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.partner { display: grid; grid-template-rows: 150px 1fr; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease); }
a.partner:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(15,42,53,.45); }
.partner__logo { display: grid; place-items: center; padding: 1.25rem 1.5rem; }
.partner__logo { min-height: 0; overflow: hidden; }
.partner__logo img { width: auto; height: auto; max-width: 100%; max-height: 112px; object-fit: contain; }
.partner__name { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.partner__name .bi { color: var(--clay); flex: none; }
.partner--invite { background: transparent; border-style: solid; border-color: var(--line-strong); }
.partner--invite .partner__logo .bi { font-size: 2rem; color: var(--clay); }
.partner--invite:hover { background: var(--ink); color: var(--paper); }
.partner--invite:hover .partner__name { color: var(--paper); border-color: rgba(247,243,236,0.16); }

/* ---------- From the field: a mosaic of our own photographs ---------- */
.field__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
@media (min-width: 1000px) { .field__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); align-items: start; } .field__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.field__intro { display: grid; gap: 1.5rem; align-content: start; }
.field__credit { display: flex; gap: 1rem; align-items: center; font-size: 0.875rem; color: rgba(247,243,236,0.86); }
.field__logo { display: grid; place-items: center; width: 92px; height: 86px; padding: .5rem; background: var(--white); border-radius: 4px; }
.field__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.field__mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field__shot { position: relative; margin: 0; }
.field__media { position: relative; height: 100%; overflow: hidden; background: rgba(247,243,236,0.06); }
.field__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.field__shot:hover .field__media img { transform: scale(1.04); }
.field__shot figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px; z-index: 3; display: flex; gap: .5rem; align-items: center; width: fit-content; max-width: calc(100% - 20px);
  padding: .45rem .7rem; background: rgba(15,42,53,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--paper); font-size: 0.875rem; font-weight: 600; line-height: 1.35; border-radius: 3px;
}
.field__shot figcaption .bi { color: var(--clay-light); flex: none; }
.field__shot--a, .field__shot--c { aspect-ratio: 3 / 4; }
.field__shot--b { aspect-ratio: 1; }
.field__shot--d { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.field__shot--d img { object-position: 50% 30%; }
@media (min-width: 700px) {
  .field__mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(56px, 6.2vw, 92px); gap: 14px; }
  .field__shot { aspect-ratio: auto !important; }
  .field__shot--a { grid-column: 1 / 4; grid-row: 1 / 6; }
  .field__shot--b { grid-column: 4 / 7; grid-row: 1 / 4; }
  .field__shot--c { grid-column: 4 / 7; grid-row: 4 / 9; }
  .field__shot--d { grid-column: 1 / 4; grid-row: 6 / 9; }
}
.field__shot--a img { object-position: 50% 78%; }
@media (min-width: 1000px) { .cine__card { margin-bottom: 4.5rem; } }

/* ==========================================================================
   Refinements: fewer rules and dividers, calmer structure
   ========================================================================== */
/* Steps and impact figures: separated by space, not vertical rules */
.step, .step:nth-child(2n+1), .step:first-child { border-left: 0 !important; padding-left: 0 !important; }
.steps, .step { border-bottom: 0; border-top: 0; }
.step { padding-right: 1.5rem; }
.impact__item, .impact__item:first-child { border-left: 0 !important; border-bottom: 0 !important; border-top: 0 !important; }
.impact { border: 0 !important; gap: 2.5rem; }
.theme-paper .impact, .theme-bone .impact, .theme-paper .impact__item, .theme-bone .impact__item { border-color: transparent; }

/* Pull quotes: no side rules */
.story-card__pull { border-left: 0; padding-left: 0; color: var(--muted); font-style: italic; }
.prose blockquote { border-left: 0; padding-left: 0; font-style: normal; font-weight: 600; color: var(--ink); }
.founder-quote { border-left: 0 !important; padding-left: 0 !important; }
.toc a { border-left: 0; padding-left: 0; }
.featured-story__voice { border-left: 0 !important; border-top: 0 !important; }
.story-card__meta .dot { display: none; }
.story-card__meta { gap: 1rem; }
.story-card__foot { border-top: 0; padding-top: .5rem; color: var(--clay); }

/* Paths on the home page: separate cards instead of a ruled grid */
.paths { gap: 1rem; background: transparent; border: 0; overflow: visible; }
.paths > * { background: rgba(247, 243, 236, 0.05); border-radius: 6px; }

/* Lists that read better with space than with rules */
.checklist, .checklist li { border: 0 !important; }
.checklist { gap: .65rem; }
.checklist li { padding: 0; }
.visit__facts div { border-top: 0; padding-top: 0; }
.cine__foot { border-top: 0; }
.partner__name { border-top: 0; background: var(--bone); }
.marquee { border-block: 0; background: var(--bone); }
.hero__meta { border-top: 0; }
.index-links, .index-links li { border: 0; }
.index-links { gap: .25rem 1.5rem; }
.index-links a { padding-block: .6rem; }
.contact-list, .contact-list li { border: 0; }
.contact-list li { padding-block: .9rem; }

/* ---------- Footer: logo badge in place of the wordmark ---------- */
.site-footer__badge { width: clamp(96px, 9vw, 128px); height: auto; margin-bottom: 1.5rem; }

/* ---------- Field mosaic on phones: two portraits side by side, captions below ---------- */
@media (max-width: 699px) {
  .field__mosaic { gap: 1.25rem .75rem; }
  .field__shot--a, .field__shot--c { aspect-ratio: auto; }
  .field__shot--a .field__media, .field__shot--c .field__media { aspect-ratio: 3 / 4; height: auto; }
  .field__shot--b { grid-column: 1 / -1; order: 3; aspect-ratio: auto; }
  .field__shot--b .field__media { aspect-ratio: 4 / 3; height: auto; }
  .field__shot--c { order: 2; }
  .field__shot--d { order: 4; aspect-ratio: auto; }
  .field__shot--d .field__media { aspect-ratio: 16 / 11; height: auto; }
  .field__shot figcaption { position: static; width: auto; max-width: none; margin-top: .6rem; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: rgba(247, 243, 236, 0.86); font-size: .875rem; font-weight: 500; align-items: flex-start; }
}

/* The logo always sits on a white disc so its colours read on dark backgrounds */
.brand__mark { background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 0 0 1px rgba(15, 42, 53, .12); }
.site-footer__badge { background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.chat { transition: transform .45s var(--ease), opacity .3s; }
.chat.is-tucked { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 899px) {
  .impact { gap: 0; }
  .impact__item { padding: 1.5rem 0 !important; }
}

/* ---------- Mobile menu: compact, icon-led, actions within reach ---------- */
.mobile-menu { padding-top: calc(var(--menu-top, var(--header-h)) + 1rem); }
.mobile-menu__inner { gap: 1.5rem; min-height: 0; align-content: start; padding-bottom: 2rem; }
.mobile-menu__list { display: grid; gap: .25rem; }
.mobile-menu__list a {
  display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; border: 0; border-radius: 8px;
  font-size: 1.25rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--paper);
}
.mobile-menu__list a > .bi:first-child { width: 1.4rem; font-size: 1.15rem; color: var(--clay-light); flex: none; }
.mobile-menu__list a > span { flex: 1; }
.mobile-menu__chev { font-size: .85rem; color: rgba(247, 243, 236, .4); }
.mobile-menu__list a:hover, .mobile-menu__list a:focus-visible { background: rgba(247, 243, 236, .06); color: var(--paper); }
.mobile-menu__list a[aria-current] { background: rgba(247, 243, 236, .1); color: var(--paper); }
.mobile-menu__list a[aria-current] .mobile-menu__chev { color: var(--clay-light); }
.mobile-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mobile-menu__actions .btn { min-height: 52px; justify-content: center; gap: .5rem; }
.mobile-menu__foot { gap: .75rem; padding: 1.25rem; border-radius: 10px; background: rgba(247, 243, 236, .05); }
.mobile-menu__foot p { margin: 0; font-size: .8125rem; color: var(--sage); }
.mobile-menu__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mobile-menu__contact a { display: grid; justify-items: center; gap: .35rem; padding: .8rem .5rem; border-radius: 8px; background: rgba(247, 243, 236, .07); font-size: .875rem; font-weight: 600; color: var(--paper); }
.mobile-menu__contact a .bi { font-size: 1.2rem; color: var(--clay-light); }
.mobile-menu__contact a:hover { background: rgba(247, 243, 236, .14); }
.mobile-menu__list a > span { font-family: inherit; font-size: inherit; letter-spacing: 0; width: auto; color: inherit; }
.menu-open .cookie { visibility: hidden; }

/* ---------- Chat on phones: a bottom sheet above everything, never under the header ---------- */
.chat.is-open { z-index: 80; }
@media (max-width: 560px) {
  .chat.is-open::before { content: ""; position: fixed; inset: 0; background: rgba(8, 26, 33, .55); pointer-events: none; animation: chat-in .3s var(--ease-out) both; }
  .chat__panel {
    position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-height: min(86dvh, 640px);
    display: flex; flex-direction: column; border-radius: 14px 14px 0 0; border: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .chat__panel[hidden] { display: none; }
  .chat__body { flex: 1 1 auto; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
  .chat__head, .chat__foot { flex: none; }
  .chat.is-open .chat__toggle { display: none; }
}

/* ---------- Chat on larger screens: always fits between the header and the launcher ---------- */
@media (min-width: 561px) {
  .chat__panel:not([hidden]) { display: flex; flex-direction: column; max-height: calc(100dvh - 7.5rem); }
  .chat__head, .chat__foot { flex: none; }
  .chat__body { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
}
.mobile-menu .btn--ghost { --btn-bd: rgba(247, 243, 236, .4); --btn-fg: var(--paper); --btn-hover: var(--paper); --btn-hover-fg: var(--ink); }
.mobile-menu__foot p { text-transform: none; letter-spacing: 0; font-size: .875rem; font-weight: 600; }
