/* ============================================================
   FUNDACIÓN MA SEMIA ASINA GUE — Design System
   v1 · May 2026
   Spine: Charity Water (restraint) + National Geographic (editorial)
   Palette: Keiner's stated brown/green/red on warm cream
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Color — earth (Caribbean light, not Brooklyn coffee shop) */
  --ink:        #1a1410;     /* warm near-black for body text */
  --ink-soft:   #4a3a30;     /* secondary text */
  --ink-mute:   #76665a;     /* tertiary / captions */
  --paper:      #f3e9d2;     /* warm cream, Caribbean afternoon light */
  --paper-soft: #ede1c4;     /* section break / cards */
  --paper-deep: #e3d3a8;     /* deeper card / hover */
  --page-outer: #faf5ec;     /* v12 — outer "page" color: SLIGHTLY LIGHTER cream (NOT darker) */

  /* Color — brand (Keiner's stated palette + Palenque turquoise accent) */
  --brown:      #6b3e1e;     /* Keiner's logo brown — primary */
  --brown-deep: #3d2410;     /* deep brown — display headings */
  --leaf:       #6ba43a;     /* Keiner's logo green — accent */
  --leaf-deep:  #4d7a2a;     /* deep green — hover/emphasis */
  --red:        #b9342a;     /* brick red — primary CTA */
  --red-deep:   #8a2520;     /* deep red — hover */
  --turquoise:  #1ea7a0;     /* the actual color of Palenque house walls */
  --turquoise-deep: #157570;
  --clay:       #c89169;     /* soft warm tan — tertiary */

  /* Color — UI */
  --border:        rgba(26, 20, 16, 0.10);
  --border-strong: rgba(26, 20, 16, 0.20);
  --overlay:       rgba(15, 10, 6, 0.45);     /* hero text overlay */
  --overlay-soft:  rgba(15, 10, 6, 0.25);
  --shadow-sm:  0 1px 2px rgba(15, 10, 6, 0.06), 0 1px 3px rgba(15, 10, 6, 0.08);
  --shadow-md:  0 4px 12px rgba(15, 10, 6, 0.08), 0 2px 4px rgba(15, 10, 6, 0.06);
  --shadow-lg:  0 12px 32px rgba(15, 10, 6, 0.12), 0 4px 8px rgba(15, 10, 6, 0.06);

  /* Type families
     v5 swap: DM Serif Display for editorial weight (charity:water-aligned).
     Fraunces only kept for Palenquero interludes where WONK axis carries identity. */
  --font-serif:      "DM Serif Display", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --font-palenquero: "Fraunces", "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font-sans:       "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Type scale — fluid via clamp() */
  /* v13 type scale — matched to charity:water (June 2026).
     Body 16→18px desktop. Headlines tightened: H1 hero 56px, H2 35px.
     Mobile values shrink proportionally via clamp(). */
  --text-xs:   0.875rem;                                             /* 14 (caption / eyebrow) */
  --text-sm:   1rem;                                                 /* 16 (small body) */
  --text-base: clamp(1rem,      0.95rem + 0.25vw,  1.125rem);        /* 16→18 (body) */
  --text-lg:   clamp(1.0625rem, 1rem + 0.35vw,     1.1875rem);       /* 17→19 (h5) */
  --text-xl:   clamp(1.125rem,  1.05rem + 0.42vw,  1.3125rem);       /* 18→21 (lead, h4) */
  --text-2xl:  clamp(1.375rem,  1.25rem + 0.6vw,   1.75rem);         /* 22→28 (h3) */
  --text-3xl:  clamp(1.5rem,    1.35rem + 0.8vw,   1.95rem);         /* 24→31 */
  --text-4xl:  clamp(1.75rem,   1.5rem + 1.2vw,    2.1875rem);       /* 28→35 (h2) */
  --text-5xl:  clamp(2rem,      1.7rem + 1.6vw,    2.6rem);          /* 32→41.6 */
  --text-6xl:  clamp(2.5rem,    2.05rem + 2vw,     3.5rem);          /* 40→56 (h1 hero) */

  /* Line heights */
  --lh-tight:  1.1;
  --lh-snug:   1.25;
  --lh-normal: 1.5;
  --lh-relaxed:1.65;
  --lh-loose:  1.8;

  /* Spacing — modular, 4px base */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-40: 10rem;

  /* Layout */
  --container:        1240px;
  --container-narrow:  760px;
  --container-wide:   1440px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-full: 999px;

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:    160ms;
  --dur:         240ms;
  --dur-slow:    420ms;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--page-outer);   /* v12 — light cream outside the body container */
}
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* v12 · page container — charity:water-style subtle margins.
     body is the inner cream surface; html shows on either side at wide viewports. */
  max-width: 1280px;
  margin-inline: auto;
  position: relative;
  box-shadow: 0 0 1px rgba(43,30,18,0.08);
}

/* Selection */
::selection { background: var(--leaf); color: var(--paper); }

/* Focus rings — WCAG AA, brand-colored */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  z-index: 1000;
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- TYPOGRAPHY ----------
   Fraunces variable axes:
     opsz 9-144 (optical size — bigger = more display-tuned)
     SOFT 0-100 (terminal softness — higher = more humanist)
     WONK 0/1 (alternates — 1 = quirky Fraunces character set)
   At display sizes we go opsz 144 (display tuning) + heavy weight + tight tracking
   to push Fraunces away from the AI-default "Fraunces Bold at 32px" look. */
.display, h1, h2, h3, .h-display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--brown-deep);
  line-height: var(--lh-tight);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}

h1 {
  font-size: var(--text-6xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 0;
}
h2 {
  font-size: var(--text-4xl);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.0;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
}
h3 {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 0;
}
h4 { font-size: var(--text-xl); font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.005em; }
h5 { font-size: var(--text-lg); font-weight: 600; font-family: var(--font-sans); }
h6 {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* Display moment — a single sentence per page, no chrome around it.
   This is the "typographic moment" pattern that breaks editorial monotony. */
.display-moment {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--brown-deep);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 0;
  max-width: 18ch;
  text-wrap: balance;
}
.display-moment em {
  font-style: italic;
  color: var(--turquoise-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

p { line-height: var(--lh-relaxed); color: var(--ink); max-width: 64ch; }
p + p { margin-top: var(--s-4); }

.lead {
  font-size: var(--text-xl);
  line-height: var(--lh-snug);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 56ch;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s-4);
  display: inline-block;
}

.eyebrow.is-leaf      { color: var(--leaf-deep); }
.eyebrow.is-brown     { color: var(--brown); }
.eyebrow.is-turquoise { color: var(--turquoise-deep); }
.eyebrow .mark-inline { vertical-align: -3px; margin-right: var(--s-2); opacity: 0.85; }

em.palenquero {
  font-family: var(--font-palenquero);
  font-style: italic;
  color: var(--leaf-deep);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "WONK" 1;
}

.caption {
  font-size: var(--text-sm);
  color: var(--ink-mute);
  line-height: var(--lh-snug);
  font-style: italic;
}

a.link {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
a.link:hover { color: var(--red); }

/* ---------- LAYOUT ---------- */
.container        { width: 100%; max-width: var(--container);        margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide   { width: 100%; max-width: var(--container-wide);   margin-inline: auto; padding-inline: var(--gutter); }

/* v13 section padding — matched to charity:water rhythm (~50-95px) */
.section    { padding-block: clamp(var(--s-12), 6vw, var(--s-20)); }   /* 48→80 */
.section-sm { padding-block: clamp(var(--s-8),  4vw, var(--s-12)); }   /* 32→48 */
.section-lg { padding-block: clamp(var(--s-16), 8vw, var(--s-24)); }   /* 64→96 */

.section.is-paper-soft { background: var(--paper-soft); }
.section.is-paper-deep { background: var(--paper-deep); }
.section.is-ink        { background: var(--ink); color: var(--paper); }
.section.is-ink h1, .section.is-ink h2, .section.is-ink h3 { color: var(--paper); }
.section.is-brown      { background: var(--brown-deep); color: var(--paper); }
.section.is-brown h1, .section.is-brown h2, .section.is-brown h3 { color: var(--paper); }

.grid { display: grid; gap: var(--s-8); }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 245, 236, 0.96);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding-block: var(--s-4);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--brown-deep);
  letter-spacing: 0.02em;
  line-height: 1;
}
/* Legacy M-disc kept for fallback only — new pages use .brand-seed instead */
.nav-brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--paper-soft);
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  color: var(--leaf-deep);
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-brand-text span:first-child { font-size: var(--text-base); }
.nav-brand-text span:last-child {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.nav-links {
  display: none;
  gap: var(--s-2);
  align-items: center;
}
.nav-links a {
  padding: var(--s-2) var(--s-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--brown-deep); }
.nav-links a[aria-current="page"] { color: var(--brown-deep); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-tail {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
@media (min-width: 980px) {
  .nav-links { display: flex; }
}
.nav-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  color: var(--brown-deep);
}
.nav-toggle:hover { background: var(--paper-soft); }
@media (min-width: 980px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.nav-drawer.is-open { transform: translateY(0); pointer-events: auto; }
.nav-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
}
.nav-drawer-links { display: flex; flex-direction: column; gap: var(--s-2); }
.nav-drawer-links a {
  padding: var(--s-4);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--brown-deep);
  border-bottom: 1px solid var(--border);
}

/* Lang toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: var(--s-1);
  background: var(--paper-soft);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-toggle button {
  padding: 4px 10px;
  border-radius: var(--r-full);
  color: var(--ink-mute);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 22px;                            /* v17 — slimmer, charity:water-style nav button */
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;                            /* v16 — charity:water rectangular buttons */
  transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

/* v16 — small inline graphic inside primary CTAs (charity:water uses a water drop;
   ours uses the seed mark for "ma semia"). Auto-rendered as ::before pseudo. */
.btn.btn-primary.btn-with-mark::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><ellipse cx='16' cy='27' rx='4' ry='2.2' fill='black'/><path d='M16 25 C 16 19 16 14 16 10' stroke='black' stroke-width='2.5' stroke-linecap='round' fill='none'/><path d='M16 12 C 11 11 7 12 6 16 C 11 16 15 14 16 12 Z' fill='black'/><path d='M16 12 C 21 11 25 12 26 16 C 21 16 17 14 16 12 Z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><ellipse cx='16' cy='27' rx='4' ry='2.2' fill='black'/><path d='M16 25 C 16 19 16 14 16 10' stroke='black' stroke-width='2.5' stroke-linecap='round' fill='none'/><path d='M16 12 C 11 11 7 12 6 16 C 11 16 15 14 16 12 Z' fill='black'/><path d='M16 12 C 21 11 25 12 26 16 C 21 16 17 14 16 12 Z' fill='black'/></svg>");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--red-deep); box-shadow: var(--shadow-md); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--brown-deep); }

.btn-ghost {
  background: transparent;
  color: var(--brown-deep);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--paper-soft); border-color: var(--ink-soft); }

.btn-on-photo {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-on-photo:hover { background: var(--paper); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 18px 28px; font-size: var(--text-base); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: var(--s-1);
  transition: transform var(--dur) var(--ease);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 820px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,10,6,0.35) 0%, rgba(15,10,6,0.10) 30%, rgba(15,10,6,0.65) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: clamp(560px, 80vh, 820px);
  display: flex;
  align-items: flex-end;
  padding-block: var(--s-16);
}
.hero-body { max-width: 720px; }
.hero h1 {
  color: var(--paper);
  font-size: var(--text-6xl);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-6);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero .lead {
  color: rgba(250, 245, 236, 0.92);
  font-size: var(--text-xl);
  max-width: 56ch;
  margin-bottom: var(--s-8);
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(250, 245, 236, 0.85);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.hero-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--leaf);
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
}

/* Hero scroll cue */
.hero-scroll {
  position: absolute;
  bottom: var(--s-6);
  right: var(--gutter);
  z-index: 3;
  display: none;
  align-items: center;
  gap: var(--s-3);
  color: rgba(250, 245, 236, 0.7);
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(250,245,236,0.6), transparent);
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@media (min-width: 1024px) { .hero-scroll { display: flex; } }

/* ---------- EDITORIAL SPREAD (NatGeo style) ---------- */
.spread {
  display: grid;
  gap: var(--s-12);
  align-items: center;
}
@media (min-width: 900px) {
  .spread { grid-template-columns: 1fr 1fr; gap: clamp(var(--s-12), 6vw, var(--s-24)); }
  .spread.is-reverse > :first-child { order: 2; }
}
.spread-img {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
}
.spread-img.is-landscape { aspect-ratio: 5 / 4; }
.spread-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 6s var(--ease-out);
}
.spread:hover .spread-img img { transform: scale(1.03); }
.spread-body h2 { margin-bottom: var(--s-6); text-wrap: balance; }
.spread-body p { margin-bottom: var(--s-4); }
.spread-body .eyebrow { margin-bottom: var(--s-4); }

/* ---------- FULL-BLEED IMAGE ---------- */
.fullbleed {
  position: relative;
  height: clamp(420px, 70vh, 640px);
  overflow: hidden;
}
.fullbleed img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.fullbleed-caption {
  position: absolute;
  bottom: var(--s-6);
  left: var(--gutter);
  right: var(--gutter);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  max-width: 600px;
}

/* ---------- PROGRAM CARDS ---------- */
.programs {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 720px) { .programs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .programs { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.program-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.program-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-soft);
}
.program-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 4s var(--ease-out);
}
.program-card:hover .program-card-img img { transform: scale(1.06); }
.program-card-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.program-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}
.program-card h3 {
  font-size: var(--text-xl);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--brown-deep);
}
.program-card p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  gap: var(--s-8);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  border-top: 2px solid var(--brown);
  padding-top: var(--s-4);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 400;
  color: var(--brown-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: var(--lh-snug);
  max-width: 28ch;
}

/* ---------- QUOTE / TESTIMONIAL ---------- */
.quote {
  display: grid;
  gap: var(--s-6);
}
.quote blockquote {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
  color: var(--brown-deep);
  text-wrap: balance;
}
.quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--leaf);
  line-height: 0.6;
  margin-bottom: var(--s-4);
}
.quote cite {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  display: block;
  margin-top: var(--s-4);
}
.quote cite::before {
  content: "— ";
  color: var(--ink-mute);
}

/* Big editorial quote (page-wide) */
.quote-feature {
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}
.quote-feature blockquote {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: var(--lh-snug);
}

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative;
  background: var(--brown-deep);
  color: var(--paper);
  padding-block: clamp(var(--s-16), 8vw, var(--s-24));
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px at 70% 30%, rgba(107, 164, 58, 0.18), transparent 60%),
    radial-gradient(600px at 20% 80%, rgba(185, 52, 42, 0.16), transparent 60%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  display: grid;
  gap: var(--s-8);
  align-items: end;
}
@media (min-width: 900px) {
  .cta-band-inner { grid-template-columns: 1.6fr 1fr; }
}
.cta-band h2 {
  color: var(--paper);
  font-size: var(--text-4xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta-band p {
  color: rgba(250, 245, 236, 0.82);
  max-width: 52ch;
  margin-top: var(--s-4);
}
.cta-band-actions {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  justify-content: flex-start;
}
@media (min-width: 900px) { .cta-band-actions { justify-content: flex-end; } }

/* ---------- DONATION TIERS ---------- */
.tiers {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-6);
  display: flex; flex-direction: column;
  gap: var(--s-3);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.tier:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tier.is-featured {
  border-color: var(--red);
  position: relative;
}
.tier.is-featured::before {
  content: "Más elegido";
  position: absolute;
  top: -10px;
  left: var(--s-6);
  background: var(--red);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.tier-amount {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--brown-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier-cop { font-size: 0.5em; color: var(--ink-mute); letter-spacing: 0; font-weight: 500; }
.tier-impact {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: var(--lh-relaxed);
  flex: 1;
}

/* Payment chips */
.pay-methods {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-6);
}
.pay-chip {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-soft);
}

/* ---------- MASONRY GALLERY ---------- */
.masonry {
  column-count: 1;
  column-gap: var(--s-3);
}
@media (min-width: 600px)  { .masonry { column-count: 2; } }
@media (min-width: 1000px) { .masonry { column-count: 3; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--s-3);
  border-radius: var(--r-md);
  overflow: hidden;
  display: block;
  cursor: zoom-in;
  background: var(--paper-soft);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 3s var(--ease-out), filter var(--dur) var(--ease);
}
.masonry-item:hover img { transform: scale(1.04); filter: brightness(1.04); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 10, 6, 0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: min(96vw, 1400px);
  max-height: 85vh;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  position: absolute;
  bottom: var(--s-6);
  left: 0; right: 0;
  text-align: center;
  color: var(--paper);
  font-size: var(--text-sm);
  font-style: italic;
  padding-inline: var(--gutter);
}
.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: rgba(250, 245, 236, 0.12);
  color: var(--paper);
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease);
}
.lightbox-btn:hover { background: rgba(250, 245, 236, 0.24); }
.lightbox-prev { left: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox-close { top: var(--s-4); right: var(--s-4); }

/* ---------- TEAM PORTRAITS ---------- */
.team {
  display: grid;
  gap: var(--s-8);
}
@media (min-width: 720px) { .team { grid-template-columns: 1fr 1fr; gap: var(--s-12); } }
.team-card { display: flex; flex-direction: column; gap: var(--s-5); }
.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-soft);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
}
.team-role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-top: var(--s-1);
}
.team-bio {
  margin-top: var(--s-3);
  color: var(--ink-soft);
  font-size: var(--text-base);
}

/* ---------- ALLIES STRIP ---------- */
.allies {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 720px) { .allies { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .allies { grid-template-columns: repeat(4, 1fr); } }
.ally {
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brown-deep);
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: 100px;
  line-height: var(--lh-snug);
}

/* ---------- FORM ---------- */
.form { display: grid; gap: var(--s-5); }
.form-field { display: flex; flex-direction: column; gap: var(--s-2); }
.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185, 52, 42, 0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; line-height: var(--lh-normal); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 245, 236, 0.82);
  padding-block: var(--s-16) var(--s-8);
}
.site-footer h6 { color: var(--paper); opacity: 0.7; margin-bottom: var(--s-4); }
.site-footer a { color: rgba(250, 245, 236, 0.82); transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--leaf); }

.footer-grid {
  display: grid;
  gap: var(--s-10);
  padding-bottom: var(--s-10);
  border-bottom: 1px solid rgba(250, 245, 236, 0.10);
}
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand {
  display: flex; flex-direction: column; gap: var(--s-3); max-width: 36ch;
}
.footer-brand .nav-brand-mark { background: var(--leaf); }
.footer-brand p { color: rgba(250, 245, 236, 0.7); font-size: var(--text-sm); }

.footer-col { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { font-size: var(--text-sm); display: block; }

.footer-newsletter input {
  background: rgba(250, 245, 236, 0.08);
  border-color: rgba(250, 245, 236, 0.18);
  color: var(--paper);
}
.footer-newsletter input::placeholder { color: rgba(250, 245, 236, 0.5); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  justify-content: space-between; align-items: center;
  padding-top: var(--s-8);
  font-size: var(--text-xs);
  color: rgba(250, 245, 236, 0.55);
  letter-spacing: 0.02em;
}
.footer-bottom-meta { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-6);
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  background: #25D366;
  color: white;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
/* Default: visible. If JS loads and adds .js-reveal to <html>, only THEN hide and let IO animate in. */
.reveal {
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- UNSPLASH ATMOSPHERIC IMAGES ----------
   Photos hot-linked from images.unsplash.com. Filter brings their saturation/warmth
   in line with Keiner's gently-graded photos so they don't read as "stock". */
.fullbleed-unsplash img,
.unsplash-treat {
  filter: saturate(0.92) sepia(0.04) brightness(0.98);
}

/* ---------- BRAND MARKS ---------- */
.mark {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentColor;
}
.mark-seed    { color: var(--leaf-deep); }
.mark-kuagro  { color: var(--turquoise); }
.mark-tambor  { color: var(--brown); }

/* Mark used as section divider — a horizontal rule with the mark centered on it */
.mark-divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-12) 0;
  color: var(--ink-mute);
}
.mark-divider::before,
.mark-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.mark-divider svg { opacity: 0.7; }

/* Mark cluster — three marks in a row used as a chapter break */
.mark-cluster {
  display: flex;
  gap: var(--s-6);
  justify-content: center;
  margin: var(--s-12) 0;
  opacity: 0.85;
}

/* List using kuagro dot bullets */
.list-kuagro { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.list-kuagro li {
  display: flex; gap: var(--s-3); align-items: flex-start;
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
}
.list-kuagro li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 9px;
  background: var(--turquoise);
  border-radius: 50%;
  box-shadow: 0 0 0 4px transparent, 0 0 0 5px rgba(30, 167, 160, 0.25);
}

/* Brand mark in nav — uses Keiner's actual logo (seed + leaf + hand) */
.brand-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.brand-seed img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-footer .brand-seed { filter: brightness(1.05); }

/* Full-lockup logo (icon + wordmark) — used in footer hero spot or about page */
.logo-full { display: inline-block; max-width: 240px; height: auto; }
.site-footer .logo-full { filter: brightness(1) drop-shadow(0 0 0 transparent); }

/* ---------- TYPOGRAPHIC MOMENT SECTION ---------- */
.section-display {
  padding-block: clamp(var(--s-20), 14vw, var(--s-32));
  position: relative;
}
.section-display .display-moment { margin-inline: 0; }
.section-display .display-attribution {
  margin-top: var(--s-8);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.section-display .display-attribution::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--turquoise);
}

/* ---------- PALENQUERO LANGUAGE INTERLUDE ---------- */
.interlude {
  padding-block: clamp(var(--s-16), 10vw, var(--s-24));
  text-align: center;
  background: var(--brown-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px at 30% 30%, rgba(30, 167, 160, 0.18), transparent 60%),
    radial-gradient(500px at 75% 80%, rgba(107, 164, 58, 0.14), transparent 60%);
  pointer-events: none;
}
.interlude-inner {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-6);
  align-items: center;
}
.interlude-lang {
  font-family: var(--font-palenquero);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  line-height: 1.0;
  text-wrap: balance;
}
.interlude-trans {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--turquoise);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.interlude-trans::before,
.interlude-trans::after {
  content: "";
  width: 24px; height: 1px;
  background: var(--turquoise);
  opacity: 0.6;
}

/* ---------- ASYMMETRIC PHOTO CLUSTER ---------- */
.cluster {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
}
.cluster figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--paper-soft); }
.cluster figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 4s var(--ease-out); }
.cluster figure:hover img { transform: scale(1.04); }
.cluster figcaption {
  font-size: var(--text-xs);
  color: var(--ink-mute);
  font-style: italic;
  padding-top: var(--s-2);
  line-height: var(--lh-snug);
}

/* Specific cluster layouts — used per page, intentionally not symmetric */
.cluster-a > :nth-child(1) { grid-column: 1 / 7;  grid-row: 1 / 5; }
.cluster-a > :nth-child(2) { grid-column: 7 / 13; grid-row: 1 / 3; }
.cluster-a > :nth-child(3) { grid-column: 7 / 10; grid-row: 3 / 5; }
.cluster-a > :nth-child(4) { grid-column: 10 / 13; grid-row: 3 / 5; }
.cluster-a > :nth-child(5) { grid-column: 1 / 5;  grid-row: 5 / 7; padding-top: var(--s-2); background: transparent; }

@media (max-width: 700px) {
  .cluster { grid-template-columns: 1fr; }
  .cluster > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

/* Hanging marginalia — captions that sit OUTSIDE the photo, in the margin */
.figure-margin {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 980px) {
  .figure-margin { grid-template-columns: 1fr 240px; gap: var(--s-6); align-items: end; }
  .figure-margin figcaption { padding-bottom: var(--s-2); }
}

/* ---------- UTILITIES ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
.mt-16 { margin-top: var(--s-16); }

/* Decorative rule */
.rule {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin: var(--s-6) 0;
}
.rule.is-center { margin-inline: auto; }
.rule.is-leaf { background: var(--leaf); }
.rule.is-brown { background: var(--brown); }

/* ============================================================
   v2 · CONVERSION-ENGINE COMPONENTS · added 2026-05-24
   For the charity:water-style home, /keiner, /transparencia, and
   /donar restructure. Keeps the editorial DNA (Fraunces, paper,
   turquoise, brand marks) while adding the directive proof-and-action
   pattern.
   ============================================================ */

/* ---------- CLAIM BAND — the "100% claim" slot ----------
   One promise, centered, on paper-soft. Fraunces display weight.
   Subtle reference link to /transparencia underneath. Sits directly
   beneath the hero on /index. */
.claim-band {
  padding-block: clamp(var(--s-16), 9vw, var(--s-24));
  background: var(--paper-soft);
  text-align: center;
  position: relative;
}
.claim-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--turquoise);
}
.claim-band-inner {
  max-width: 920px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
}
.claim-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.claim-eyebrow::before,
.claim-eyebrow::after {
  content: "";
  width: 18px; height: 1px;
  background: var(--turquoise);
  opacity: 0.7;
}
.claim-statement {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--brown-deep);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 0;
  text-wrap: balance;
  max-width: 22ch;
  margin-inline: auto;
}
.claim-statement em {
  font-style: italic;
  color: var(--turquoise-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.claim-evidence-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--turquoise);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.claim-evidence-link:hover {
  color: var(--brown-deep);
  text-decoration-color: var(--brown);
}
.claim-evidence-link::after {
  content: " →";
  text-decoration: none;
}

/* ---------- PROOF TRIO — "cómo lo comprobamos" ----------
   Three short evidence lines under the claim, each with a brand-mark icon.
   Intentionally NOT three identical columns: asymmetric vertical rhythm via
   slightly different spacing, and the icons are different marks. */
.proof-trio {
  display: grid;
  gap: var(--s-8);
  margin-top: var(--s-16);
}
@media (min-width: 900px) {
  .proof-trio { grid-template-columns: 1fr 1fr 1fr; gap: var(--s-12); }
}

/* v11 · proof-spread restructure was reverted — bad photo choice + layout
   didn't deliver the intended editorial feel. Original .proof-trio kept. */
.proof-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.proof-item-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: var(--r-full);
  margin-bottom: var(--s-2);
}
.proof-item-head {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.proof-item-body {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: var(--lh-relaxed);
  max-width: 38ch;
}

/* ---------- STAT WALL — full-screen architectural stats ----------
   Four bands stacked vertically, each with a single oversized Fraunces
   number and a one-line label. Dark background to break the page rhythm
   (the way charity:water's stat sections do). */
.stat-wall {
  background: var(--brown-deep);
  color: var(--paper);
  padding-block: clamp(var(--s-16), 6vw, var(--s-20));
  position: relative;
  overflow: hidden;
}
.stat-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px at 80% 20%, rgba(30, 167, 160, 0.13), transparent 60%),
    radial-gradient(600px at 15% 75%, rgba(107, 164, 58, 0.12), transparent 60%);
  pointer-events: none;
}
.stat-wall-inner {
  position: relative;
  display: grid;
  gap: 0;
}
.stat-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding-block: clamp(var(--s-8), 4vw, var(--s-12));
  border-top: 1px solid rgba(250, 245, 236, 0.12);
  align-items: baseline;
}
.stat-band:first-child { border-top: 0; }
@media (min-width: 720px) {
  .stat-band { grid-template-columns: minmax(280px, 0.55fr) 1fr; gap: var(--s-10); align-items: baseline; }
}
.stat-band-num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
}
.stat-band-num-suffix {
  font-size: 0.35em;
  color: var(--turquoise);
  font-weight: 400;
  margin-left: 0.1em;
  letter-spacing: 0;
  vertical-align: 0.55em;
}
.stat-band-label {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--lh-snug);
  color: rgba(250, 245, 236, 0.82);
  max-width: 38ch;
}
.stat-band-label strong {
  color: var(--paper);
  font-weight: 600;
}
.stat-wall-foot {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(250, 245, 236, 0.12);
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  color: rgba(250, 245, 236, 0.55);
  letter-spacing: 0.06em;
}

/* ---------- NAMED STORIES — replace the abstract program grid ----------
   Editorial cards. Photo + person name in Fraunces + pillar tag + 1 line
   + arrow link. Three cards in a row on desktop, but each is built around
   a different human face, so the "three identical columns" anti-pattern
   doesn't apply — the content carries the differentiation. */
.named-stories {
  display: grid;
  gap: var(--s-8);
}
@media (min-width: 800px) {
  .named-stories { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
}
.named-story {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease);
}
.named-story:hover { transform: translateY(-4px); }
.named-story-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-soft);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.named-story-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 5s var(--ease-out), filter var(--dur) var(--ease);
}
.named-story:hover .named-story-photo img { transform: scale(1.04); }
.named-story-pillar {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  margin-bottom: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.named-story-pillar .mark { opacity: 0.85; }
.named-story-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brown-deep);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 0;
  margin-bottom: var(--s-3);
  text-wrap: balance;
}
.named-story-blurb {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
  max-width: 36ch;
}
.named-story-cta {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.named-story:hover .named-story-cta {
  color: var(--red-deep);
  gap: var(--s-3);
}
.named-story-cta::after { content: "→"; }

/* ---------- WAYS TO GIVE GRID — seven action paths ----------
   Mensual is featured (wider, accented). Six others fit a 2x3 grid below
   on desktop, or stack on mobile. Asymmetry from the featured card breaks
   the symmetric-grid anti-pattern. */
.ways-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ways-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--s-5);
  }
  .way-card { grid-column: span 3; }
  .way-card.is-featured { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .ways-grid { grid-template-columns: repeat(6, 1fr); }
  .way-card { grid-column: span 2; }
  .way-card.is-featured { grid-column: span 6; }
}
.way-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  cursor: pointer;
}
.way-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.way-card.is-featured {
  background: var(--brown-deep);
  color: var(--paper);
  border-color: var(--brown-deep);
  padding: clamp(var(--s-8), 4vw, var(--s-12));
}
.way-card.is-featured:hover {
  background: var(--brown-deep);
  border-color: var(--turquoise);
  box-shadow: var(--shadow-lg);
}
.way-card.is-featured::before {
  content: "★ Más impacto";
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  background: var(--turquoise);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
}
.way-num {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--turquoise-deep);
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 72;
}
.way-card.is-featured .way-num { color: var(--turquoise); }
.way-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72, "SOFT" 60;
  line-height: 1.15;
}
.way-card.is-featured .way-name {
  color: var(--paper);
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  text-wrap: balance;
}
.way-blurb {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  flex: 1;
}
.way-card.is-featured .way-blurb {
  color: rgba(250, 245, 236, 0.82);
  font-size: var(--text-base);
  max-width: 52ch;
}
.way-cta {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
  transition: gap var(--dur) var(--ease);
}
.way-card:hover .way-cta { gap: var(--s-3); }
.way-cta::after { content: "→"; }
.way-card.is-featured .way-cta {
  color: var(--paper);
  font-size: var(--text-base);
  background: var(--red);
  padding: 12px 20px;
  border-radius: var(--r-full);
  align-self: flex-start;
  margin-top: var(--s-4);
}
.way-card.is-featured .way-cta:hover { background: var(--red-deep); }

/* ---------- TRUST BADGES ROW — above footer-bottom ----------
   NIT + founding date + church/audit affiliations. Small, restrained,
   not a visual centerpiece. Sits at the top of the footer-bottom. */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-block: var(--s-6);
  border-top: 1px solid rgba(250, 245, 236, 0.10);
  border-bottom: 1px solid rgba(250, 245, 236, 0.10);
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(250, 245, 236, 0.68);
  padding: 7px 12px;
  background: rgba(250, 245, 236, 0.06);
  border: 1px solid rgba(250, 245, 236, 0.12);
  border-radius: var(--r-full);
}
.trust-badge .mark { opacity: 0.7; }
.trust-badge strong { color: var(--paper); font-weight: 700; }

/* ---------- FOUNDER HERO — for /keiner.html ----------
   Big portrait left, name + role + 2-line intro right. Fraunces display
   on the name. Asymmetric: image is 4:5 portrait, body has lots of breath. */
.founder-hero {
  display: grid;
  gap: var(--s-12);
  align-items: end;
  padding-block: clamp(var(--s-16), 7vw, var(--s-24));
}
@media (min-width: 900px) {
  .founder-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: clamp(var(--s-12), 6vw, var(--s-20)); }
}
.founder-portrait {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
}
.founder-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.founder-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.founder-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.founder-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--turquoise);
}
.founder-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: var(--brown-deep);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 0;
  text-wrap: balance;
}
.founder-role {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}
.founder-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: var(--lh-snug);
  color: var(--ink);
  max-width: 42ch;
  font-variation-settings: "opsz" 72, "SOFT" 80;
}

/* ---------- FUND-FLOW — for /transparencia ----------
   Single horizontal stacked bar showing % allocation, with a list below
   for accessibility and detail. Restrained, no chart libraries. */
.fund-flow {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.fund-bar {
  display: flex;
  width: 100%;
  height: 56px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--border);
}
.fund-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline: var(--s-3);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: filter var(--dur) var(--ease);
  position: relative;
}
.fund-segment:hover { filter: brightness(1.08); }
.fund-segment.is-programs    { background: var(--brown); }
.fund-segment.is-jornadas    { background: var(--leaf-deep); }
.fund-segment.is-materiales  { background: var(--turquoise-deep); }
.fund-segment.is-otros       { background: var(--clay); color: var(--brown-deep); }
.fund-list {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.fund-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.fund-row:last-child { border-bottom: 0; }
.fund-swatch {
  width: 12px; height: 12px;
  border-radius: var(--r-sm);
}
.fund-row strong { font-weight: 600; color: var(--brown-deep); }
.fund-row span:last-child {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
}
.fund-disclaimer {
  font-size: var(--text-xs);
  color: var(--ink-mute);
  font-style: italic;
  line-height: var(--lh-snug);
  max-width: 60ch;
  margin-top: var(--s-4);
}

/* ---------- HISTORIA INDEX CARDS — for /voices (the historias list) ----------
   Editorial list-row: thumbnail left, name + body right. Each row links to
   the slug page. Wider and more readable than a tight grid. */
.historia-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.historia-row {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (min-width: 720px) {
  .historia-row {
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-5) var(--s-6);
  }
}
.historia-row:hover {
  border-color: var(--brown);
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
}
.historia-thumb {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--paper-soft);
}
.historia-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 3s var(--ease-out);
}
.historia-row:hover .historia-thumb img { transform: scale(1.04); }
.historia-meta { display: flex; flex-direction: column; gap: var(--s-2); }
.historia-pillar {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.historia-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--brown-deep);
  line-height: 1.1;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.historia-blurb {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: var(--lh-relaxed);
  max-width: 52ch;
  margin-top: var(--s-1);
}
.historia-arrow {
  color: var(--red);
  font-size: var(--text-2xl);
  font-family: var(--font-serif);
  align-self: end;
  justify-self: end;
  transition: transform var(--dur) var(--ease);
}
.historia-row:hover .historia-arrow { transform: translateX(4px); }

/* ---------- HISTORIA SLUG PAGE — for /historias/[slug].html ----------
   Full-bleed hero photo with overlay of pillar + name. Long-form body
   below, single column. */
.historia-hero {
  position: relative;
  height: clamp(440px, 70vh, 680px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
/* v17 — shorter, more landscape ratio for sources that are 4:3 landscape (e.g. q09);
   prevents extreme crop / "too zoomed" feeling on group photos */
.historia-hero.is-landscape-source {
  height: clamp(360px, 50vh, 520px);
}
.historia-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.historia-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,10,6,0.20) 0%, rgba(15,10,6,0.10) 40%, rgba(15,10,6,0.78) 100%);
  pointer-events: none;
}
.historia-hero-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: var(--s-12);
}
.historia-hero h1 {
  font-family: var(--font-serif);
  color: var(--paper);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: var(--s-4);
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  text-wrap: balance;
  max-width: 18ch;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 0;
}
.historia-hero-pillar {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.85);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.historia-hero-pillar::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--leaf);
}
.historia-body {
  max-width: 680px;
  margin-inline: auto;
  padding-block: clamp(var(--s-16), 7vw, var(--s-24));
  padding-inline: var(--gutter);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.historia-body p { max-width: none; margin-bottom: var(--s-6); }
.historia-body p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 4em;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 0.12em 0.08em 0 0;
  color: var(--turquoise-deep);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.historia-related {
  background: var(--paper-soft);
  padding-block: clamp(var(--s-16), 6vw, var(--s-20));
}
.historia-related h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-6);
  color: var(--brown-deep);
}

/* ---------- PAGE-HERO (compact, reusable on interior pages) ---------- */
.page-hero {
  padding-block: clamp(var(--s-16), 7vw, var(--s-24)) var(--s-12);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
  max-width: 22ch;
  margin-inline: auto;
}
.page-hero .lead { margin-top: var(--s-6); margin-inline: auto; }

/* ============================================================
   v4 · MOBILE POLISH — applied 2026-06-21
   Six surgical fixes to take the mobile experience from 6→8.
   ============================================================ */

/* --- 1 · Mobile nav cleanup --------------------------------- */
/* Hide brand subtitle below desktop breakpoint */
@media (max-width: 979px) {
  .nav-brand-text span:last-child { display: none; }
  /* Scope the hide to the header lang toggle so the drawer copy still shows */
  .nav-tail .lang-toggle { display: none; }
  /* Smaller logo + brand on mobile so the nav can breathe */
  .nav-brand .brand-seed { width: 36px; height: 36px; }
  .nav-brand .brand-seed img { width: 36px; height: 36px; }
  .nav-brand-text span:first-child { font-size: var(--text-sm); }
  /* Slimmer Donar button on mobile */
  .nav-tail .btn-primary { padding: 10px 16px; font-size: var(--text-xs); }
  /* Tighter overall nav padding on mobile */
  .nav-inner { gap: var(--s-3); padding-block: var(--s-3); }
}
@media (max-width: 420px) {
  /* Hide brand text entirely on very narrow phones — logo carries the brand */
  .nav-brand-text { display: none; }
}

/* Drawer lang toggle (the .lang-toggle inside .nav-drawer always shows when drawer open) */
.nav-drawer-lang {
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
.nav-drawer-lang .lang-toggle { display: inline-flex; }

/* DEFENSIVE: guarantee the closed drawer can't render its children visibly.
   Without this, edge cases (transform glitch, content larger than viewport, etc.)
   could leak the drawer-lang toggle into the page producing a phantom 2nd toggle. */
.nav-drawer { visibility: hidden; }
.nav-drawer.is-open { visibility: visible; }

/* --- Joy strip: keep faces in frame when 4:5 portrait photos crop to 1:1 --- */
.joy-strip figure img { object-position: center top; }

/* --- v4 ANIMATIONS — more visible motion --- */

/* Hero staggered entrance: each element fades up from 20px below */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow,
.hero h1,
.hero .lead,
.hero-cta {
  animation: heroFadeUp 700ms var(--ease-out) both;
}
.hero-eyebrow { animation-delay: 100ms; }
.hero h1     { animation-delay: 250ms; }
.hero .lead  { animation-delay: 400ms; }
.hero-cta    { animation-delay: 550ms; }

/* Named-story cards: stronger hover lift with soft shadow */
.named-story {
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.named-story:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -16px rgba(15, 10, 6, 0.18), 0 4px 12px -2px rgba(15, 10, 6, 0.08);
}

/* Body link underline animation: sliding underline on hover */
a.link, .historia-body a {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  text-decoration: none;
  transition: background-size var(--dur) var(--ease-out), color var(--dur) var(--ease);
}
a.link:hover, .historia-body a:hover {
  background-size: 100% 1.5px;
}

/* Way-card featured: subtle scale on hover beyond the base translateY */
.way-card.is-featured {
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.way-card.is-featured:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 24px 50px -20px rgba(15, 10, 6, 0.30);
}

/* Stat-wall numbers: subtle scale-in when scrolled into view via .reveal */
.js-reveal .stat-band .stat-band-num {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.js-reveal .stat-band.is-visible .stat-band-num {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Reduce motion: turn off all the new entrance/hover animations */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero .lead, .hero-cta,
  .js-reveal .stat-band .stat-band-num {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   v5 · OFFICIAL-FEEL POLISH — applied 2026-06-21
   Counters the "AI-template" look with material details:
   - subtle paper-grain texture on the cream background
   - upgraded ally card styling (logo-mark feel)
   - inline accent photo float for editorial body copy
   - photo-bleed spread (charity:water-style image integration)
   ============================================================ */

/* --- Subtle paper-grain texture on body bg --------------------- */
/* SVG noise overlay, multiply blend, very low opacity — gives the cream
   bg a material/printed feel rather than flat digital color */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.32 0 0 0 0 0.22 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.08;
}
body > * { position: relative; z-index: 1; }

/* --- Upgraded ally cards (logo-mark feel) ---------------------- */
/* Still text-based until real logos arrive, but with brand-card weight */
.ally {
  padding: var(--s-8) var(--s-6);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--brown-deep);
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
  line-height: var(--lh-snug);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
  text-wrap: balance;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ally:hover {
  border-color: var(--brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ally::before {
  content: '';
  position: absolute;
  top: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 2px;
  background: var(--leaf);
}

/* --- Inline accent photo float (for body copy) ---------------- */
/* Use on long-form pages: <img class="accent-photo accent-right"> */
.accent-photo {
  display: block;
  border-radius: var(--r-md);
  background: var(--paper-soft);
  overflow: hidden;
  margin: var(--s-6) 0;
}
.accent-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.accent-photo figcaption {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-mute);
  font-style: italic;
  padding-top: var(--s-2);
  line-height: var(--lh-snug);
  text-align: center;
}
@media (min-width: 760px) {
  .accent-photo.accent-right {
    float: right;
    width: 280px;
    margin: var(--s-4) 0 var(--s-4) var(--s-6);
    shape-outside: margin-box;
  }
  .accent-photo.accent-left {
    float: left;
    width: 280px;
    margin: var(--s-4) var(--s-6) var(--s-4) 0;
    shape-outside: margin-box;
  }
}

/* --- Photo-bleed spread (image feels embedded, not appended) -- */
/* charity:water-style: cream copy block partially overlaps the photo,
   so the image bleeds into the background rather than sitting in a box */
.bleed-spread {
  display: grid;
  gap: var(--s-8);
  align-items: stretch;
  position: relative;
}
@media (min-width: 900px) {
  .bleed-spread {
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
  }
  .bleed-spread.is-reverse > :first-child { order: 2; }
}
.bleed-spread-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
}
.bleed-spread-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bleed-spread-body {
  background: var(--paper);
  padding: clamp(var(--s-8), 5vw, var(--s-16));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-4);
  border-radius: var(--r-md);
}
@media (min-width: 900px) {
  .bleed-spread-body {
    margin-left: -64px;
    margin-block: var(--s-12);
    z-index: 2;
    box-shadow: var(--shadow-lg);
  }
  .bleed-spread.is-reverse .bleed-spread-body {
    margin-left: 0;
    margin-right: -64px;
  }
}
.bleed-spread-body h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* --- 5 · Darken hero-shade bottom stop ---------------------- */
.hero-shade {
  background:
    linear-gradient(180deg, rgba(15,10,6,0.40) 0%, rgba(15,10,6,0.15) 30%, rgba(15,10,6,0.82) 100%);
}

/* --- 4 · Warm-tint filter on masonry gallery ---------------- */
/* Pulls the raw saturated Palenque-wall photos into the same visual register
   as the rest of the site (which already uses pre-graded jpgs).
   Saturation knocked down 5%, slight warm sepia overlay. */
.masonry-item img {
  filter: saturate(0.95) sepia(0.05) brightness(0.99);
}
/* hover still bumps brightness a touch */
.masonry-item:hover img { filter: saturate(1.0) sepia(0.03) brightness(1.03); }

/* ============================================================
   v3 · CALIBRATION MERGE — applied 2026-06-14
   Merged from former assets/css/calibrated.css preview overlay.
   Calibrates: Fraunces SOFT 70→30 with WONK off on display
   headings (Palenquero interludes preserve their warm settings),
   turquoise→leaf-deep on non-Palenquero accents, stat-wall
   lightened from brown-deep to paper-soft, plus a joy-strip
   section for alegre tone. These rules override the v1/v2 rules
   above by source order — same specificity, later wins.
   ============================================================ */
h1 {
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h2 {
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h3 {
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0;
}
.display, .h-display {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}

/* Hero h1 on dark — still serious, slightly tighter */
.hero h1 {
  letter-spacing: -0.038em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}

/* Display moment — keep some warmth, but pull SOFT back from 80 to 50 */
.display-moment {
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  letter-spacing: -0.038em;
}
.display-moment em {
  color: var(--leaf-deep);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
}

/* Claim band statement — the 100% claim */
.claim-statement {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.032em;
}
.claim-statement em {
  color: var(--leaf-deep);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}

/* Named-story names */
.named-story-name {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.025em;
}

/* Way-card featured headline */
.way-card.is-featured .way-name {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}

/* Founder name */
.founder-name {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.04em;
}

/* Historia */
.historia-name {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.historia-hero h1 {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.038em;
}

/* Stat-band numerals — slightly tighter for editorial gravitas */
.stat-band-num {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.045em;
}

/* Tier amount — donor page */
.tier-amount {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}

/* PALENQUERO INTERLUDES — UNTOUCHED.
   .interlude-lang stays at SOFT 100, WONK 1.
   This is the only place the round, alegre Fraunces
   should live, because it IS the Palenquero identity. */


/* ---------- 2 · Turquoise → leaf-deep on non-Palenquero accents ---------- */

/* Claim band */
.claim-band::before                  { background: var(--leaf); }
.claim-eyebrow                       { color: var(--leaf-deep); }
.claim-eyebrow::before,
.claim-eyebrow::after                { background: var(--leaf); }
.claim-evidence-link {
  text-decoration-color: var(--leaf);
}
.claim-evidence-link:hover {
  color: var(--brown-deep);
  text-decoration-color: var(--leaf-deep);
}

/* Named-story pillar tags */
.named-story-pillar                  { color: var(--leaf-deep); }

/* Way-card numbers — featured stays accented */
.way-num                             { color: var(--leaf-deep); }
.way-card.is-featured .way-num       { color: var(--leaf); }

/* Featured way badge "Más impacto" */
.way-card.is-featured::before        { background: var(--leaf); }
.way-card.is-featured:hover          { border-color: var(--leaf); }

/* Founder hero */
.founder-eyebrow                     { color: var(--leaf-deep); }
.founder-eyebrow::before             { background: var(--leaf); }

/* Historia list rows */
.historia-pillar                     { color: var(--leaf-deep); }

/* Stat-wall numeric suffix */
.stat-band-num-suffix                { color: var(--leaf-deep); }

/* Eyebrow is-turquoise → use leaf instead */
.eyebrow.is-turquoise                { color: var(--leaf-deep); }

/* Transparencia mark on page hero */
.page-hero .eyebrow.is-turquoise     { color: var(--leaf-deep); }

/* Display attribution on display-moment */
.section-display .display-attribution        { color: var(--leaf-deep); }
.section-display .display-attribution::before{ background: var(--leaf); }

/* Section-display display-moment em — was turquoise */
.section-display .display-moment em  { color: var(--leaf-deep); }

/* List kuagro bullets — these are kuagro marks (Palenquero), keep turquoise */
/* .list-kuagro li::before — UNTOUCHED, identity moment */

/* Interlude trans — UNTOUCHED, identity moment */
/* .interlude-trans color stays --turquoise */
/* .interlude-trans::before/::after stay --turquoise */

/* Brand mark default colors — kuagro mark in markup stays turquoise
   because it's a Palenque-specific cultural symbol. seed = leaf, tambor = brown. */


/* ---------- 3 · Stat-wall: dark brown → light cream ---------- */

.stat-wall {
  background: var(--paper-soft);
  color: var(--ink);
}
.stat-wall::before {
  background:
    radial-gradient(800px at 80% 20%, rgba(107, 164, 58, 0.10), transparent 60%),
    radial-gradient(600px at 15% 75%, rgba(185, 52, 42, 0.06), transparent 60%);
}
.stat-band {
  border-top: 1px solid rgba(26, 20, 16, 0.10);
}
.stat-band-num {
  color: var(--brown-deep);
}
.stat-band-label {
  color: var(--ink-soft);
}
.stat-band-label strong {
  color: var(--brown-deep);
  font-weight: 600;
}
.stat-wall-foot {
  border-top: 1px solid rgba(26, 20, 16, 0.10);
  color: var(--ink-mute);
}


/* ---------- 5 · Alegre photo strip (styling for the new HTML block) ---------- */

.joy-strip {
  padding-block: clamp(var(--s-12), 5vw, var(--s-16));
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.joy-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 720px) {
  .joy-strip-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
}
@media (min-width: 1100px) {
  .joy-strip-grid { grid-template-columns: repeat(6, 1fr); gap: var(--s-3); }
}
.joy-strip figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--paper-soft);
  position: relative;
}
.joy-strip figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 3s var(--ease-out), filter var(--dur) var(--ease);
  filter: saturate(1.05);
}
.joy-strip figure:hover img {
  transform: scale(1.05);
  filter: saturate(1.12) brightness(1.04);
}
.joy-strip-caption {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s-8);
  padding-inline: var(--gutter);
}
.joy-strip-caption .eyebrow { color: var(--leaf-deep); }

/* ============================================================
   v6 · CAMPAIGN PAGE (proyecto-escuela)
   charity:water "Football Takes Water" inspired single-project pitch.
   ============================================================ */

.campaign-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem);
}
@media (max-width: 900px) {
  .campaign-hero { grid-template-columns: 1fr; gap: var(--s-8); }
}
.campaign-hero-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-warm);
  box-shadow: 0 30px 60px -30px rgba(43,30,18,0.35);
}
.campaign-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.campaign-hero-badge {
  position: absolute;
  top: var(--s-4); left: var(--s-4);
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  border-radius: 2px;
}
.campaign-hero-body { display: flex; flex-direction: column; justify-content: center; }
.campaign-hero-body .eyebrow { color: var(--leaf-deep); }
.campaign-hero-body h1 {
  margin-top: var(--s-4);
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.campaign-hero-body .lead { margin-top: var(--s-6); max-width: 38ch; }

.progress-meter {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(43,30,18,0.12);
}
.progress-stats {
  display: flex; flex-wrap: wrap;
  gap: var(--s-6) var(--s-8);
  align-items: baseline;
  margin-bottom: var(--s-4);
}
.progress-stat .progress-num {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.progress-stat .progress-label {
  display: block; margin-top: 4px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 500;
}
.progress-bar {
  position: relative;
  height: 10px;
  background: rgba(43,30,18,0.10);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  border-radius: 999px;
  transition: width 1.4s ease-out;
}
.progress-pct {
  display: block; margin-top: var(--s-3);
  font-family: var(--font-sans); font-size: var(--text-sm);
  color: var(--ink-soft);
}
.campaign-cta-row { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); }

.build-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-8);
}
.build-item {
  padding: var(--s-6);
  background: var(--paper-warm);
  border-left: 3px solid var(--leaf);
  border-radius: 0 4px 4px 0;
}
.build-item .build-cost {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.build-item .build-thing {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.5;
}

.timeline-list { margin-top: var(--s-8); display: grid; gap: 0; max-width: 720px; }
.timeline-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid rgba(43,30,18,0.10);
  align-items: baseline;
}
.timeline-row:last-child { border-bottom: 1px solid rgba(43,30,18,0.10); }
@media (max-width: 640px) { .timeline-row { grid-template-columns: 1fr; gap: var(--s-1); } }
.timeline-date {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--leaf-deep);
}
.timeline-item {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.5;
}
.timeline-row.is-done .timeline-date,
.timeline-row.is-done .timeline-item { color: var(--ink-soft); }

.update-card {
  padding: var(--s-8);
  background: var(--paper-warm);
  border-radius: 6px;
  text-align: center;
  margin-top: var(--s-6);
  border: 1px dashed rgba(43,30,18,0.20);
}
.update-card .eyebrow { color: var(--leaf-deep); }

/* Date stamp markers — reusable across pages */
.date-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 600;
}
.date-stamp::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.date-stamp.is-future::before { background: var(--terra, #c46a3a); }

/* Placeholder marker — yellow highlight so you can spot what Keiner needs to confirm */
.is-placeholder {
  background: linear-gradient(transparent 62%, rgba(255,193,7,0.40) 62%);
  padding: 0 2px;
}

/* ============================================================
   v7 · DROPDOWN NAV (charity:water-inspired mega-menu)
   CSS-only hover/focus reveal — no JavaScript dependency.
   Mobile keeps the existing flat drawer; dropdowns hidden below 980px.
   ============================================================ */

/* nav-links is the row of top-level groups — DESKTOP ONLY.
   v17 fix: must be inside the media query, otherwise it overrides the
   mobile `display: none` from the base .nav-links rule and forces the
   full desktop nav to render on phones, breaking the mobile layout. */
@media (min-width: 980px) {
  .nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
  }
}

/* Each top group: trigger link + dropdown panel */
.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-block: 6px;
  text-decoration: none;
  color: inherit;
  font: inherit;
}

.nav-caret {
  opacity: 0.55;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 0.9;
  color: var(--leaf-deep);
}

/* Active SECTION underline — applied via .is-section-active modifier per page */
.nav-item.is-section-active .nav-trigger {
  color: var(--leaf-deep);
}
.nav-item.is-section-active .nav-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 18px;          /* leave space so caret isn't underlined */
  bottom: -2px;
  height: 2px;
  background: var(--leaf);
  border-radius: 1px;
}

/* The dropdown wrapper — provides the hover bridge above the visible panel */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 14px;     /* invisible hover bridge — keeps hover continuous */
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    visibility 0s linear var(--dur-fast);
  z-index: 100;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}

/* The visible panel inside the dropdown wrapper */
.nav-dropdown-panel {
  background: var(--paper);
  border: 1px solid rgba(43,30,18,0.10);
  border-radius: 4px;
  box-shadow: 0 24px 48px -24px rgba(43,30,18,0.30),
              0 4px 12px -4px rgba(43,30,18,0.08);
  padding: 6px 0;
  overflow: hidden;
}

.nav-dropdown-panel a {
  display: block;
  padding: 14px 22px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid rgba(43,30,18,0.06);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              padding-left var(--dur-fast) var(--ease);
  position: relative;
}

.nav-dropdown-panel a:last-child {
  border-bottom: none;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  background: var(--paper-soft);
  color: var(--leaf-deep);
  padding-left: 26px;       /* tiny rightward nudge on hover */
  outline: none;
}

.nav-dropdown-panel a[aria-current="page"] {
  color: var(--leaf-deep);
  font-weight: 600;
}
.nav-dropdown-panel a[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--leaf);
}

/* Mobile: hide dropdowns entirely. The hamburger drawer handles all navigation. */
@media (max-width: 980px) {
  .nav-dropdown,
  .nav-caret { display: none !important; }
  .nav-trigger::after { display: none !important; }
}

/* ============================================================
   v8 · LANG TOGGLE — subtler treatment
   Removes the heavy black pill so the red Donar button reads as
   the only primary CTA on the right side of the nav.
   ============================================================ */

.lang-toggle {
  background: transparent;
  padding: 0;
  border-radius: 0;
  gap: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  /* Thin vertical divider separating toggle from the Donar button */
  margin-right: var(--s-2);
  padding-right: var(--s-4);
  border-right: 1px solid rgba(43,30,18,0.18);
}

.lang-toggle button {
  padding: 4px 6px;
  background: transparent !important;
  color: var(--ink-soft);
  border-radius: 0;
  border: 0;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.lang-toggle button + button {
  margin-left: 2px;
}

.lang-toggle button[aria-pressed="true"] {
  background: transparent !important;
  color: var(--ink);
}

.lang-toggle button[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 1.5px;
  background: var(--leaf);
  border-radius: 1px;
}

.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

/* Inside the drawer the toggle stands alone — drop the divider */
.nav-drawer-lang .lang-toggle {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

/* v9 · FEATURED WAY-CARD — reverted to original single-column layout.
   (Earlier attempt at 2-col grid with right-side photo broke layout cascades.) */

/* ============================================================
   v10 · CONTAINER CARD — charity:water-style boxed content
   Subtle treatment: hairline border + soft shadow + paper-cream.
   Use to give conversion-focused content a "designed object" feel
   without competing with the editorial type around it.
   ============================================================ */

.content-card {
  background: var(--paper);
  border: 1px solid rgba(43,30,18,0.10);
  border-radius: 8px;
  box-shadow: 0 14px 36px -20px rgba(43,30,18,0.18),
              0 2px 8px -4px rgba(43,30,18,0.06);
  padding: clamp(var(--s-8), 5vw, var(--s-12));
  max-width: 720px;
  margin-inline: auto;
  position: relative;
}

/* When a card sits inside a section that already has cream background,
   slight elevation against page background makes the box pop without
   needing a louder shadow */
.content-card.on-paper-soft {
  background: var(--paper);
}

/* When a card lives on a dark/colored band, invert the surface */
.content-card.is-inverted {
  background: rgba(255,255,255,0.04);
  border-color: rgba(250,245,236,0.12);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.4);
}

/* Dark filled card — paper background section, brown-deep card with light text.
   Used on the closing CTA band to create a strong "final action" object. */
.content-card.is-dark {
  background: var(--brown-deep);
  border-color: rgba(250,245,236,0.10);
  color: var(--paper);
  box-shadow:
    0 24px 48px -24px rgba(43,30,18,0.45),
    0 4px 16px -4px rgba(43,30,18,0.20);
}
.content-card.is-dark a:not(.btn) { color: var(--leaf); }

/* When .content-card is applied to an existing 2-column layout,
   it needs more width than the default 720px. */
.content-card.is-wide {
  max-width: 1024px;
}

/* Footer newsletter band — self-contained styling, no .content-card cascade.
   Sits above the footer-grid as a dedicated email signup invitation. */
.footer-newsletter {
  padding-block: clamp(var(--s-10), 6vw, var(--s-14));
  border-bottom: 1px solid rgba(250,245,236,0.10);
  margin-bottom: clamp(var(--s-10), 5vw, var(--s-12));
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 720px) {
  .footer-newsletter {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-10);
  }
}
.footer-newsletter .footer-newsletter-copy h6 {
  margin: 0 0 10px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--paper);
  opacity: 1;
  text-transform: none;
}
.footer-newsletter .footer-newsletter-copy p {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(250,245,236,0.72);
  max-width: 44ch;
}
.footer-newsletter .form { gap: var(--s-3); margin: 0; }

/* Smaller card variant for footer signups, etc. */
.content-card.is-compact {
  padding: clamp(var(--s-6), 3.5vw, var(--s-8));
  max-width: 560px;
}

/* ============================================================
   v14 · CAMPAIGN-SPLIT (FOOTBALL TAKES WATER pattern)
   Used on /proyecto-escuela hero.
   ============================================================ */

.campaign-split {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  min-height: clamp(520px, 75vh, 760px);
  position: relative;
  overflow: hidden;
}
@media (min-width: 820px) {
  .campaign-split { grid-template-columns: 1.05fr 1fr; }
}

.campaign-split-body {
  padding: clamp(var(--s-8), 5vw, var(--s-16));
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  margin-left: auto;   /* hug the right edge of its column so it visually pairs with the photo */
  width: 100%;
}
.campaign-split-body .eyebrow {
  color: var(--leaf-deep);
  margin-bottom: var(--s-4);
}
.campaign-split-body h1 {
  margin: 0 0 var(--s-5);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.campaign-split-lead {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 var(--s-7);
  max-width: 42ch;
}

/* Inline funding meter */
.campaign-split-meter {
  background: var(--paper-soft);
  border-radius: 6px;
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-7);
}
.campaign-split-meter-head {
  margin-bottom: var(--s-3);
}
.campaign-split-meter-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}
.campaign-split-meter .progress-bar {
  margin-bottom: var(--s-3);
}
.campaign-split-meter-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
}
.campaign-split-meter-num {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.5vw, 1.625rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.campaign-split-meter-sub {
  display: block;
  margin-top: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Right-side photo — true full-bleed within its grid cell */
.campaign-split-photo {
  position: relative;
  background: var(--brown-deep);
  overflow: hidden;
  min-height: 320px;
}
.campaign-split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Soft cream gradient on the left edge so text doesn't fight the photo at the seam */
.campaign-split-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, transparent 14%);
  z-index: 1;
  pointer-events: none;
}
.campaign-split-badge {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Mobile: stack body above photo */
@media (max-width: 819px) {
  .campaign-split-body { max-width: none; margin-left: 0; padding-block: var(--s-12); }
  .campaign-split-photo { aspect-ratio: 4/3; min-height: 280px; }
}

/* ============================================================
   v14b · WAVY-SPLIT — photo with soft curved boundary
   Pattern variation: same split idea but the photo edge undulates
   into the paper area instead of cutting it with a hard line.
   Used on /keiner hero. SVG mask creates the curve responsively.
   ============================================================ */

.wavy-split {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  min-height: clamp(520px, 75vh, 760px);
  position: relative;
  overflow: hidden;
}
@media (min-width: 820px) {
  .wavy-split.wavy-split-photo-left { grid-template-columns: 1fr 1fr; }
  .wavy-split.wavy-split-photo-right { grid-template-columns: 1fr 1fr; }
  .wavy-split.wavy-split-photo-right .wavy-split-photo { order: 2; }
  .wavy-split.wavy-split-photo-right .wavy-split-body { order: 1; }
}

.wavy-split-photo {
  position: relative;
  background: var(--brown-deep);
  overflow: hidden;
  min-height: 360px;
}
.wavy-split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Wavy right edge — photo on left, paper on right */
@media (min-width: 820px) {
  .wavy-split.wavy-split-photo-left .wavy-split-photo {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 0 0 L 92 0 C 86 25 96 50 90 75 C 84 95 96 100 92 100 L 0 100 Z' fill='black'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 0 0 L 92 0 C 86 25 96 50 90 75 C 84 95 96 100 92 100 L 0 100 Z' fill='black'/></svg>");
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
  }
  /* Wavy left edge — photo on right, paper on left */
  .wavy-split.wavy-split-photo-right .wavy-split-photo {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 8 0 L 100 0 L 100 100 L 8 100 C 16 95 4 75 10 50 C 14 25 4 5 8 0 Z' fill='black'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 8 0 L 100 0 L 100 100 L 8 100 C 16 95 4 75 10 50 C 14 25 4 5 8 0 Z' fill='black'/></svg>");
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
  }
}

.wavy-split-body {
  padding: clamp(var(--s-8), 5vw, var(--s-16));
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  width: 100%;
}
.wavy-split.wavy-split-photo-left .wavy-split-body { margin-left: 0; margin-right: auto; }
.wavy-split.wavy-split-photo-right .wavy-split-body { margin-left: auto; margin-right: 0; }

/* On mobile the layout stacks and the wavy mask is removed for cleanliness */
@media (max-width: 819px) {
  .wavy-split-photo { aspect-ratio: 4/3; min-height: 280px; }
  .wavy-split-body { max-width: none; padding-block: var(--s-12); }
}

/* ============================================================
   v14c · FULLBLEED-HERO — photo as full background, content card overlay
   Pattern variation: like charity:water's "696 million people" hero.
   Used on /programs.
   ============================================================ */

.fullbleed-hero {
  position: relative;
  min-height: clamp(560px, 75vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brown-deep);
}
.fullbleed-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fullbleed-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Subtle dark overlay so the floating card stays legible against any photo */
.fullbleed-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,10,6,0.42) 0%, rgba(15,10,6,0.18) 50%, rgba(15,10,6,0.30) 100%);
}
.fullbleed-hero-card {
  position: relative;
  z-index: 1;
  /* v17 — more transparent paper, stronger blur (per Al's spec) */
  background: rgba(243,233,210,0.62);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
          backdrop-filter: blur(16px) saturate(125%);
  padding: clamp(var(--s-8), 4vw, var(--s-12));
  max-width: 560px;
  margin-left: clamp(var(--s-5), 6vw, var(--s-16));
  margin-right: auto;
  border-radius: 4px;
  border: 1px solid rgba(243,233,210,0.35);
  box-shadow: 0 30px 60px -30px rgba(15,10,6,0.55),
              0 4px 16px -4px rgba(15,10,6,0.25);
}
.fullbleed-hero-card .eyebrow {
  color: var(--leaf-deep);
  margin-bottom: var(--s-3);
}
.fullbleed-hero-card h1 {
  margin: 0 0 var(--s-5);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.fullbleed-hero-card .lead {
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Mobile: card centers, photo is shorter */
@media (max-width: 760px) {
  .fullbleed-hero { min-height: 540px; }
  .fullbleed-hero-card {
    margin-inline: var(--s-4);
    max-width: none;
  }
}

/* ============================================================
   v15 · NEW PHOTO VARIATION PATTERNS
   1. Ken Burns slow zoom on hero photos
   2. Pull-quote overlay (photo + serif quote overlaid)
   3. Brand-mark overlay (giant faded seed mark over a photo)
   4. Circular medallion framing
   ============================================================ */

/* --- 1. KEN BURNS — slow continuous zoom on hero photos --- */
@keyframes ken-burns-zoom {
  0%   { transform: scale(1.0) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1%, -1%, 0); }
}
.is-ken-burns {
  animation: ken-burns-zoom 28s ease-out forwards;
  transform-origin: center center;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .is-ken-burns { animation: none; }
}

/* --- 2. PULL-QUOTE OVERLAY — photo with quote card overlaid --- */
.quote-photo-overlay {
  position: relative;
  min-height: clamp(440px, 60vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brown-deep);
}
.quote-photo-overlay-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.quote-photo-overlay-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.quote-photo-overlay-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15,10,6,0.50) 0%, rgba(15,10,6,0.15) 60%, rgba(15,10,6,0.40) 100%);
}
.quote-photo-overlay-card {
  position: relative;
  z-index: 1;
  /* v17 — semi-transparent paper + backdrop blur (matches fullbleed-hero-card) */
  background: rgba(243,233,210,0.62);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
          backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid rgba(243,233,210,0.35);
  padding: clamp(var(--s-8), 4vw, var(--s-12));
  max-width: 580px;
  margin-left: clamp(var(--s-5), 6vw, var(--s-16));
  margin-right: auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(15,10,6,0.55),
              0 4px 16px -4px rgba(15,10,6,0.25);
}
.quote-photo-overlay-card blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  quotes: "\201C" "\201D";
}
.quote-photo-overlay-card blockquote::before { content: open-quote; color: var(--leaf-deep); }
.quote-photo-overlay-card blockquote::after  { content: close-quote; color: var(--leaf-deep); }
.quote-photo-overlay-card cite {
  display: block;
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .quote-photo-overlay { min-height: 480px; }
  .quote-photo-overlay-card { margin-inline: var(--s-4); max-width: none; }
}

/* --- 3. BRAND-MARK OVERLAY — giant faded SVG mark on a photo --- */
.has-mark-overlay {
  position: relative;
  overflow: hidden;
}
.has-mark-overlay .mark-overlay {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.14;
  /* Size and position set by caller — defaults: bottom-right corner, 38% width */
  right: -8%;
  bottom: -12%;
  width: 55%;
  height: auto;
  color: var(--paper);
}

/* --- 4. CIRCULAR MEDALLION — photo masked to a perfect circle --- */
.medallion-spread {
  display: grid;
  gap: clamp(var(--s-8), 5vw, var(--s-12));
  align-items: center;
  padding-block: clamp(var(--s-12), 7vw, var(--s-20));
}
@media (min-width: 760px) {
  .medallion-spread {
    grid-template-columns: minmax(280px, 0.85fr) 1fr;
    gap: clamp(var(--s-10), 6vw, var(--s-16));
  }
}
.medallion-photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-soft);
  position: relative;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
  box-shadow: 0 40px 80px -40px rgba(43,30,18,0.40);
}
.medallion-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.medallion-body {
  max-width: 38ch;
}
.medallion-body .eyebrow { color: var(--leaf-deep); margin-bottom: var(--s-3); }
.medallion-body h2 {
  margin: 0 0 var(--s-4);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.medallion-body p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink-soft);
}

/* ============================================================
   v18 · VIDEO + PHOTO ADDITIONS (Jul 27 batch)
   - .spread-video: video inside an existing .spread-img slot
   - .moment-video: silent auto-loop "moment" between sections (home)
   - .founder-video-section: click-to-play primary video on /keiner
   - .leadership-photo, .founder-candid: figure+caption photo blocks
   ============================================================ */

/* Video inside a .spread-img slot — same aspect box, same border-radius */
.spread-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: var(--brown-deep);
}

/* Silent auto-loop moment between sections (home page) */
.moment-video {
  padding-block: clamp(var(--s-8), 4vw, var(--s-12));
}
.moment-video-frame {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(15,10,6,0.28);
  background: var(--brown-deep);
}
.moment-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.moment-video-caption {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-4);
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
  letter-spacing: 0.01em;
}

/* Founder page — primary click-to-play video */
.founder-video-section {
  padding-block: clamp(var(--s-10), 5vw, var(--s-16));
}
.founder-video {
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15,10,6,0.45),
              0 4px 16px -4px rgba(15,10,6,0.20);
  background: var(--brown-deep);
}
.founder-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.founder-video-caption {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--ink-soft);
  border-top: 1px solid rgba(43,30,18,0.08);
}

/* Leadership photo (story.html) — group shot above the team cards */
.leadership-photo {
  max-width: 1100px;
  margin-inline: auto;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 48px -24px rgba(15,10,6,0.28);
}
.leadership-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 35%;
}
.leadership-photo-caption {
  padding: var(--s-4) var(--s-5);
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid rgba(43,30,18,0.08);
}

/* Candid founder photo (keiner.html) — offset caption on paper */
.founder-candid {
  padding-block: clamp(var(--s-10), 5vw, var(--s-16));
}
.founder-candid-figure {
  max-width: 1000px;
  margin-inline: auto;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 48px -24px rgba(15,10,6,0.28);
}
.founder-candid-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.founder-candid-caption {
  padding: var(--s-4) var(--s-5);
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid rgba(43,30,18,0.08);
}
.founder-candid-caption em {
  font-style: normal;
  color: var(--brown-deep);
  font-weight: 500;
}

/* ============================================================
   v19 · GET-INVOLVED consolidation (3 primary paths + secondary)
   + FAITH FEATURE spread on home
   ============================================================ */

/* 3-column ways grid override (base .ways-grid uses auto-fit) */
.ways-grid.ways-grid-3 {
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 720px) {
  .ways-grid.ways-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Secondary "otras formas" — quieter, single-line links */
.ways-secondary {
  margin-top: var(--s-10);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(43,30,18,0.10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: baseline;
}
.ways-secondary-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex: 0 0 auto;
}
.ways-secondary-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
}
.ways-secondary-list a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(43,30,18,0.25);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.ways-secondary-list a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Faith & culture feature row on home — portrait photo + text */
.faith-feature {
  padding-block: clamp(var(--s-12), 6vw, var(--s-16));
}
.faith-feature .spread {
  align-items: center;
}
.faith-feature .spread-img.is-portrait {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: 0 24px 48px -24px rgba(15,10,6,0.28);
}
.faith-feature .spread-img.is-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.faith-feature .spread-body p em {
  font-style: italic;
  color: var(--brown-deep);
}

/* Contact form status feedback */
.form-status {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.form-status.is-pending {
  background: var(--paper-soft);
  color: var(--ink-soft);
  border: 1px solid rgba(43,30,18,0.10);
}
.form-status.is-success {
  background: color-mix(in oklab, var(--leaf) 12%, var(--paper));
  color: var(--leaf-deep);
  border: 1px solid color-mix(in oklab, var(--leaf) 30%, transparent);
}
.form-status.is-error {
  background: color-mix(in oklab, var(--red) 10%, var(--paper));
  color: var(--red);
  border: 1px solid color-mix(in oklab, var(--red) 30%, transparent);
}

