/* ==========================================================================
   IAHV India: landing page concept prototype, v2 "Rekindled"
   style.css

   The idea: the page starts quiet (warm black-and-white photographs on
   off-white paper) and comes alive with attention. Photographs return to
   colour, and a crimson thread, the mauli tied for protection and connection,
   draws itself between people, places and numbers.

   Contents
     1.  Tokens
     2.  Base, browser surfaces, texture
     3.  Layout and type helpers
     4.  Buttons and links
     5.  Photo treatments (tone, grain, frames, thread)
     6.  Header and mobile menu
     7.  Hero
     8.  Who we are
     9.  Impact
     (later sections follow in page order)
     90. Donate button on phones
     99. Reduced motion
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */
:root {
  /* Colour: warm neutrals and one accent, IAHV's own crimson */
  --paper: #fbf8f4;        /* page ground: warm off-white, lighter than cream */
  --white: #ffffff;        /* raised surfaces: donate panel, cards */
  --ash: #e7e1da;          /* hairlines, fields, quiet fills */
  --stone: #6b625c;        /* secondary text, 5.6:1 on paper */
  --kohl: #2a2522;         /* body text and the footer: deep warm neutral, 14:1 on paper */
  --crimson: #ca0d30;      /* the only accent: giving, the thread, active states (5.5:1 on paper) */
  --crimson-deep: #a50a27; /* hover and pressed */
  --crimson-wash: #f7dde1; /* the lightest tint, for fills behind content */
  --edge: #958b83;         /* borders of fields and choices: 3.3:1 on white, 3.1:1 on paper */
  --on-dark: #f3eee8;      /* text on the kohl footer */
  --on-dark-soft: #c9c0b8; /* secondary text on the kohl footer, 8.4:1 */

  --ink: var(--kohl);
  --ink-soft: var(--stone);
  --line: var(--ash);
  --focus: var(--crimson);

  /* Type */
  --font-display: "Brygada 1918", "Iowan Old Style", Georgia, serif;
  --font-text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Hindi and other Devanagari pages: see the :lang(hi) rule below and the README */

  --step--1: 0.875rem;                                      /* 14 */
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);     /* 17–19 body */
  --step-1: clamp(1.1875rem, 1.08rem + 0.5vw, 1.4375rem);   /* 19–23 lead */
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);         /* 24–34 */
  --step-3: clamp(2.25rem, 1.45rem + 3vw, 4.25rem);         /* 36–68 section titles */
  --step-hero: clamp(2.75rem, 1.35rem + 5vw, 6rem);         /* 44–96 hero (display max 6rem) */

  /* Space */
  --gutter: clamp(1rem, 2vw, 2rem);
  --pad-inline: clamp(1.25rem, 5vw, 5rem);
  --space-section: clamp(4.5rem, 12vw, 11rem);
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-photo: 0 22px 40px -24px rgb(42 37 34 / 0.55);

  /* Fine paper grain (SVG noise), used very lightly */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.13 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Devanagari companions from Indian foundries, ready for Hindi pages
   (add both families to the Google Fonts link when the first Hindi page ships) */
:lang(hi) {
  --font-display: "Tiro Devanagari Hindi", "Brygada 1918", Georgia, serif;
  --font-text: "Mukta", "Hanken Grotesk", system-ui, sans-serif;
}
:where(:lang(hi)) { font-family: var(--font-text); }


/* 2. Base, browser surfaces, texture
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #c9bfb6 var(--paper);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--crimson);
}

/* The page sits on handmade paper: a grain so faint it is felt more than seen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.24em; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

::selection { background: var(--crimson); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c9bfb6; border: 3px solid var(--paper); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--kohl);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }


/* 3. Layout and type helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section-title {
  max-width: 15em;
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.section-intro {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* Section heads. Default: title and intro side by side on wide screens.
   --stack: intro under the title, left. --center: one centred column. */
.section-head {
  display: grid;
  gap: 1.25rem var(--gutter);
  align-items: end;
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .section-title { max-width: 14em; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .section-head--stack { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .section-head--stack > * { grid-column: 1; }
  .section-head--center { grid-template-columns: minmax(0, 1fr); }
}

/* Descender room inside SplitText masks, given back by the mask's margin, so a split heading is
   exactly as tall as the plain one and nothing below it moves when the split is undone */
.reveal-line { padding-bottom: 0.06em; }
.reveal-line-mask { margin-bottom: -0.06em; }


/* 4. Buttons and links
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.8em 1.7em;
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0.6em 1.3em; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0.95em 2.1em; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn--crimson { --btn-bg: var(--crimson); --btn-fg: #fff; }
.btn--crimson:hover { --btn-bg: var(--crimson-deep); }
.btn--line { --btn-border: rgb(42 37 34 / 0.45); }
.btn--line:hover { --btn-bg: var(--kohl); --btn-fg: #fff; --btn-border: var(--kohl); }

.link {
  position: relative;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(202 13 48 / 0.45);
  transition: text-decoration-color 0.25s;
}
.link:hover { text-decoration-color: var(--crimson); }
/* A larger hit area for touch, without moving the layout */
.link::after { content: ""; position: absolute; inset: -0.6rem -0.35rem; }

/* [TO CONFIRM]: a neutral margin note, visible but quiet. Crimson stays reserved for giving. */
.tbc {
  display: inline-flex;
  align-items: center;
  padding: 0.05em 0.5em;
  border: 1px dashed var(--stone);
  border-radius: 4px;
  background: transparent;
  color: var(--kohl);
  font-family: var(--font-text);
  font-size: max(0.78em, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: 0.08em;
}
/* A blank that IAHV fills in later (event dates and places) */
.slot {
  color: var(--ink-soft);
  font-style: italic;
  text-decoration: underline dotted var(--edge);
  text-underline-offset: 0.3em;
}


/* 5. Photo treatments
   ========================================================================== */

/* Warm black and white that returns to colour: when the pointer or keyboard focus reaches the
   whole story, card or person (and then stays in colour), or as it scrolls into view on touch screens */
.tone img,
.tone video {
  filter: grayscale(1) sepia(0.14) contrast(1.05) brightness(1.03);
  transition: filter 1.4s var(--ease), transform 1.4s var(--ease);
}
.tone:hover img,
.tone:focus-within img,
:is(.story, .project, .person, .founder):is(:hover, :focus-within) .tone :is(img, video),
.tone.is-colour img,
.tone.is-colour video {
  filter: grayscale(0) sepia(0) contrast(1) brightness(1);
}

/* Grain unifies photographs of different ages and cameras */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: multiply;
}

/* The red thread */
.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.thread__path {
  fill: none;
  stroke: var(--crimson);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thread__bead { fill: var(--crimson); transition: opacity 0.4s var(--ease); }


/* 6. Header and mobile menu
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgb(251 248 244 / 0.92);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}
.brand { flex: none; display: block; border-radius: 4px; }
.brand__logo { width: auto; height: 44px; }

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  gap: clamp(1rem, 1.6vw, 1.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding-block: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.4em;
  transition: text-decoration-color 0.25s;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { text-decoration-color: var(--crimson); }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.25rem 0 0.75rem;
  border: 0;
  background: none;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 10px; }
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8px; }
.menu-open .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }
.menu-open .site-header { background: var(--paper); box-shadow: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--pad-inline) 3rem;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__list { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.mobile-menu__list a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.15;
  text-decoration: none;
}

@media (max-width: 1099px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 479px) {
  .brand__logo { height: 38px; }
}


/* 7. Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow-x: clip;   /* the thread may curve past the edge on small screens */
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vh, 3.5rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.hero__inner {
  display: grid;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  max-width: 9.6em;
  font-size: var(--step-hero);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.028em;
}
.hero__support {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}
.hero__lede {
  max-width: 42ch;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2.25rem;
}

/* The art: India's outline holds the hero video; people orbit it on the thread */
.hero__art {
  position: relative;
  justify-self: center;
  width: min(100%, 34rem);
  margin: 0;
  aspect-ratio: 1000 / 1150;
}
.hero__map {
  position: absolute;
  inset: 0;
  -webkit-clip-path: url(#india-clip);
  clip-path: url(#india-clip);
  background: var(--ash);
}
/* The poster's white sacks fill the Northeast: a warm tint, like her sari, lets them recede
   while the outline of India stays whole */
.hero__map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 50%, rgb(233 160 172 / 0.55) 72%, rgb(214 120 138 / 0.7) 95%);
  mix-blend-mode: multiply;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 18%;
  transform-origin: 40% 30%;
}

.hero__bead {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 1;
  border: 6px solid var(--paper);
  border-radius: 50%;
  background: var(--ash);
  box-shadow: var(--shadow-photo);
}
.hero__bead img { width: 100%; height: 100%; object-fit: cover; }
.hero__bead--a { width: 40%; left: -24%; top: 50%; }
.hero__bead--a img { object-position: 70% 78%; }
.hero__bead--b { width: 25%; right: -10%; top: 4%; }
.hero__bead--b img { object-position: 77% 32%; }
.hero__bead--c { width: 21%; right: -4%; bottom: 8%; }
.hero__bead--c img { object-position: 52% 40%; }

.hero__thread { z-index: 1; }

.hero__dot {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crimson);
}
.hero__dot--1 { left: 6%; top: 8%; width: 8px; height: 8px; }
.hero__dot--2 { right: 22%; top: 44%; width: 12px; height: 12px; background: none; border: 2px solid var(--crimson); }
.hero__dot--3 { left: -10%; top: 30%; width: 6px; height: 6px; }
.hero__dot--4 { right: 6%; bottom: -2%; width: 9px; height: 9px; }

.hero__caption {
  position: absolute;
  right: 0;
  bottom: -2.25rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.video-toggle {
  position: absolute;
  right: var(--pad-inline);
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.video-toggle__icon { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--kohl); }
.video-toggle__icon::before,
.video-toggle__icon::after { content: ""; position: absolute; top: 7px; width: 2.5px; height: 8px; background: #fff; }
.video-toggle__icon::before { left: 8px; }
.video-toggle__icon::after { left: 11.5px; }
.video-toggle[aria-pressed="true"] .video-toggle__icon::before {
  left: 9px; top: 6.5px; width: 0; height: 0;
  border-style: solid; border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent #fff;
  background: none;
}
.video-toggle[aria-pressed="true"] .video-toggle__icon::after { display: none; }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero__art { margin-right: 4%; }
}
@media (max-width: 959px) {
  /* Phones and tablets: headline, then her face in the map, then the rest of the copy,
     so the first screen holds a person as well as a promise */
  .hero { min-height: 0; padding-bottom: 1rem; }
  .hero__inner { gap: 0; }
  .hero__copy { display: contents; }
  .hero__title { order: 1; }
  .hero__art { order: 2; width: min(76%, 26rem); margin-top: 1.75rem; margin-bottom: 3.25rem; }
  .hero__support { order: 3; margin-top: 0; }
  .hero__lede { order: 4; }
  .hero__actions { order: 5; margin-top: 1.75rem; }
  .hero__bead { border-width: 4px; }
  .hero__bead--a { left: -12%; }
  .hero__dot--3 { left: -4%; }
  .hero__caption { right: auto; left: 0; }
}

/* Load sequence: hidden until main.js prepares it (the timer in <head> is the fallback) */
.js-loading [data-hero-title],
.js-loading [data-hero-fade],
.js-loading [data-hero-art] { opacity: 0; }


/* 8. Who we are
   ========================================================================== */
.who { padding-block: var(--space-section); }
.who__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

/* Three pill slices of one photograph, offset like steps; together they still read as one picture */
.who__slices {
  --gap: 3%;
  position: relative;
  display: flex;
  gap: var(--gap);
  aspect-ratio: 1 / 1.08;
}
.who__slice {
  position: relative;
  flex: 1 1 0;
  height: 80%;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ash);
}
.who__slice:nth-child(2) { transform: translateY(12%); }
.who__slice:nth-child(3) { transform: translateY(24%); }
.who__slice img {
  position: absolute;
  top: 0;
  left: 0;
  width: 319.15%;   /* container width ÷ slice width */
  height: 124%;     /* covers the deepest offset */
  max-width: none;
  object-fit: cover;
  object-position: 30% 40%;
}
.who__slice:nth-child(2) img { left: -109.575%; top: -12%; }
.who__slice:nth-child(3) img { left: -219.15%; top: -24%; }

.who__lead {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
}
.who__text {
  max-width: 54ch;
  margin-top: 1.25rem;
  color: var(--ink-soft);
}
/* Vision and mission, in IAHV's own words, one click away */
.who__more { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.who__more summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding-top: 1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.who__more summary::-webkit-details-marker { display: none; }
.who__more summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(var(--crimson), var(--crimson)) center / 100% 2px no-repeat,
    linear-gradient(var(--crimson), var(--crimson)) center / 2px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.who__more[open] summary::after { transform: rotate(45deg); }
.who__more summary:hover { color: var(--crimson-deep); }
.who__vm { display: grid; gap: 1.5rem; margin: 1.25rem 0 0; }
.who__vm dt { font-weight: 600; }
.who__vm dd { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.96rem; }

@media (min-width: 960px) {
  .who__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .who__vm { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 959px) {
  .who__slices { width: min(100%, 30rem); }
}


/* 9. Impact: counters on the thread
   ========================================================================== */
.impact { padding-block: 0 clamp(1.5rem, 3vw, 3rem); }

.beads { position: relative; }
.beads__thread { z-index: 0; }
.beads__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bead { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bead:nth-child(even) { margin-top: 4.5rem; }
.bead__photo {
  display: block;
  overflow: hidden;
  width: min(100%, 9.5rem);
  aspect-ratio: 1;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--ash);
  box-shadow: var(--shadow-photo);
}
.bead__photo img { width: 100%; height: 100%; object-fit: cover; }
.bead__num {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.3em;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 1.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.bead__unit { font-size: 0.55em; font-weight: 500; letter-spacing: 0; }
.bead__photo--sewing img { object-position: 58% 30%; }
.num { display: inline-block; white-space: nowrap; }
.bead__label {
  max-width: 17ch;
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

@media (min-width: 960px) {
  .beads__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bead:nth-child(even) { margin-top: 6.5rem; }
}

/* 10. Our work: ten areas in three tiers
   ========================================================================== */
.work { position: relative; padding-block: clamp(4rem, 8vw, 7rem) 0; }

.tier {
  display: grid;
  gap: 1.5rem var(--gutter);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}
.tier__name { font-size: var(--step-2); }
.tier__text { max-width: 30ch; margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.96rem; }

.areas { margin: 0; padding: 0; list-style: none; }
.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1.5rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.area:first-child { padding-top: 0.2rem; }
.area:last-child { border-bottom: 0; }
.area__name {
  grid-column: 1;
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.6rem);
  line-height: 1.08;
  transition: color 0.35s var(--ease), transform 0.6s var(--ease);
}
.area__fact { grid-column: 1; color: var(--ink-soft); font-size: 0.96rem; }
.area__fact strong { color: var(--ink); font-weight: 600; }
.area__link { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.9375rem; }
.area__thumb { display: none; }

@media (hover: hover) and (pointer: fine) {
  .area:hover .area__name { color: var(--crimson); transform: translateX(0.4rem); }
}
.area:focus-within .area__name { color: var(--crimson); }

/* Each tier's photograph sits in the tier's own column and follows the row in focus */
.tier__photo {
  position: relative;
  display: none;
  width: min(100%, 14rem);
  margin: 2rem 0 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 6px solid var(--paper);
  border-radius: 50%;
  background: var(--ash);
  box-shadow: var(--shadow-photo);
}
.tier__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.tier__photo img.is-shown { opacity: 1; }

@media (min-width: 960px) {
  .tier { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
@media (min-width: 960px) and (hover: hover) {
  .tier__photo { display: block; }
}
@media (hover: none), (max-width: 959px) {
  .area { grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1rem; }
  .area__thumb {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    width: 4rem;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ash);
  }
  .area__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .area__name, .area__fact, .area__link { grid-column: 2; }
  .area__link { grid-row: auto; justify-self: start; margin-top: 0.25rem; }
}


/* 11. Projects: arch-topped cards with thread progress bars
   ========================================================================== */
.projects { padding-block: var(--space-section); }

.projects__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem var(--gutter);
  margin: 0 auto;
  list-style: none;
}
.projects__rail { position: relative; }   /* keeps absolutely positioned helpers inside the scroller */
.project { position: relative; display: flex; flex-direction: column; }

/* An arch, like a doorway or a jharokha window */
.project__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px;
  background: var(--ash);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .project:hover .project__media img { transform: scale(1.04); }
}

.project__body { display: grid; gap: 0.55rem; align-content: start; padding-top: 1.3rem; }
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.project__cause { color: var(--crimson); font-weight: 600; }
.project__title { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.12; }
.project__text { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }
.project__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.3rem; }
.project__link { font-size: 0.9375rem; }

/* One published outcome per card, as a plain figure */
.project__figure { margin-top: 0.35rem; font-size: 0.9375rem; line-height: 1.4; }
.project__figure strong {
  margin-right: 0.2em;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}

/* Funding: the thread, waiting to be pulled tight. Empty until IAHV sets goals [TO CONFIRM]. */
.fund { display: grid; gap: 0.45rem; margin-top: 0.5rem; }
.fund__track {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--edge) 0 7px, transparent 7px 11px);
}
.fund__track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--crimson);
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
}
.fund__label { color: var(--ink-soft); font-size: 0.875rem; }
.projects__note { max-width: 70ch; margin-top: 3.5rem; color: var(--ink-soft); font-size: var(--step--1); }
.projects__note .tbc { margin-right: 0.5rem; }

@media (min-width: 1100px) {
  .projects__list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 5rem; }
  .project:nth-child(4n + 2),
  .project:nth-child(4n + 4) { margin-top: 4.5rem; }
}
@media (max-width: 699px) {
  /* A swipe rail on phones */
  .projects__rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-inline);
    scrollbar-width: none;
  }
  .projects__rail::-webkit-scrollbar { display: none; }
  .projects__list { display: flex; gap: 1.25rem; width: max-content; max-width: none; }
  .project { width: 76vw; scroll-snap-align: start; }
}


/* 12. Where we work: the map
   ========================================================================== */
.where { padding-block: var(--space-section); }
.where__head .section-intro { margin-top: 1.25rem; }
.where__note { margin-top: 0.9rem; color: var(--ink-soft); font-size: var(--step--1); }
.where__note .tbc { margin-right: 0.5rem; }

/* Phones: heading, map, state list, panel (the panel sits right below what you tap).
   Wide screens: map and list on the left; heading and a sticky panel on the right.
   The left column is always the taller one, so choosing a state never changes the page height. */
.where__grid {
  display: grid;
  gap: 2.5rem var(--gutter);
  grid-template-areas: "head" "map" "states" "panel";
}
.where__head { grid-area: head; }
.where__figure { grid-area: map; margin: 0; }
.where__states { grid-area: states; }
.where__panel { grid-area: panel; }
.india {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  overflow: visible;
}
/* States with documented work are outlined in crimson: the outline carries the difference
   (4.8:1 against the neutral states), so the fill can stay soft */
.india .state {
  fill: #efe9e2;
  stroke: var(--paper);
  stroke-width: 0.9;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.9s var(--ease), stroke 0.9s var(--ease);
}
.india .state.has-work { cursor: pointer; }
.india .state.has-work.is-lit { fill: #f7d9de; stroke: var(--crimson); stroke-width: 1.1; }
.india .state.has-work:hover { fill: #efb2bc; }
.india .state.has-work.is-selected,
.india .state.has-work.is-selected:hover { fill: var(--crimson); stroke: var(--crimson-deep); }

.india .marker { pointer-events: none; opacity: 0; transition: opacity 0.6s; }
.india .marker.is-lit { opacity: 1; }
.india .marker__dot { fill: var(--white); stroke: var(--kohl); stroke-width: 1.4; }
.india .marker__pulse {
  fill: none;
  stroke: var(--crimson);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: marker-pulse 2.8s var(--ease) infinite;
}
@keyframes marker-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3); opacity: 0; }
}
.where__credit { max-width: 62ch; margin-top: 1rem; color: var(--ink-soft); font-size: 0.875rem; }

.where__panel {
  min-height: 21rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.where__hint { color: var(--ink-soft); }
.map-panel__count { color: var(--crimson); font-size: var(--step--1); font-weight: 600; }
.map-panel__state { margin-top: 0.3rem; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1; }
.map-panel__list { display: grid; gap: 1rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.map-panel__list li { padding-top: 1rem; border-top: 1px solid var(--line); }
.map-panel__area { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }
.map-panel__title { margin-top: 0.15rem; font-weight: 600; line-height: 1.35; }
.map-panel__text { margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }

.where__states-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}
.state-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.state-chip {
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.state-chip:hover { border-color: var(--kohl); }
.state-chip[aria-pressed="true"] { border-color: var(--crimson); background: var(--crimson); color: #fff; }

@media (min-width: 1000px) {
  .where__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "map head"
      "map panel"
      "states panel";
    grid-template-rows: auto 1fr auto;
    align-items: start;
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
  .where__panel { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* 13. Stories of change: a band of handmade paper
   ========================================================================== */
.stories {
  position: relative;
  margin-block: 28px;   /* room for the deckled edges */
  padding-block: var(--space-section);
  background: var(--white);
}
.deckle {
  position: absolute;
  left: 0;
  width: 100%;
  height: 28px;
  fill: var(--white);
  pointer-events: none;
}
/* A faint shadow under the torn edge, as where one sheet of paper lies on another */
.deckle--top,
.deckle--bottom { filter: drop-shadow(0 -1.5px 1.5px rgb(42 37 34 / 0.12)); }
.deckle--top { top: -27px; }
.deckle--bottom { bottom: -27px; transform: scaleY(-1); }

.story {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
.story + .story { margin-top: clamp(5rem, 11vw, 9.5rem); }
.story__figure { margin: 0; }
.story__figure--circle { justify-self: center; width: min(100%, 32rem); }
.story__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  border-radius: 8px;
  background: var(--ash);
}
.story__media img,
.story__video {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
}
.story__media--circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}
/* A print laid on the page: white border, slight tilt */
.story__media--print {
  border: 12px solid var(--white);
  border-radius: 3px;
  box-shadow: 0 28px 50px -30px rgb(42 37 34 / 0.6), 0 2px 6px rgb(42 37 34 / 0.08);
  transform: rotate(-1.4deg);
}
/* Said once, under the photograph, not printed across it */
.story__caption {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.45;
}
.story__figure--circle .story__caption { text-align: center; }
.story__media--print + .story__caption { margin-top: 1.25rem; }
.story--woman .story__video { object-position: 76% 30%; }

/* The person's own words. Placeholders until IAHV records them [TO CONFIRM]. */
.voice { margin: 1.75rem 0 0; }
.voice__quote { margin: 0; }
.voice__quote p {
  max-width: 34ch;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.4;
}
.voice__quote .tbc { margin-right: 0.45rem; font-size: 0.8125rem; font-style: normal; vertical-align: 0.2em; }
.voice__by { margin-top: 0.6rem; font-size: 0.875rem; font-weight: 600; }

.story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.story__tier { color: var(--crimson); font-weight: 600; }
.story__title {
  margin-top: 0.9rem;
  font-size: clamp(1.9rem, 1.35rem + 2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.story__text { max-width: 54ch; margin-top: 1.25rem; color: var(--ink-soft); }
.story__fig {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
  margin: 1.75rem 0 1.1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.story__fig strong {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
}

@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); }
  .story--woman { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .story--woman .story__figure { order: 2; }
  .story--river { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}


/* 14. How a river comes back
   ========================================================================== */
.river__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
/* The photograph is set by main.js as the section approaches, so it never loads at page start */
.river__media {
  position: absolute;
  inset: 0;
  background: var(--ash) center / cover no-repeat;
  transform-origin: 50% 70%;
  will-change: filter, transform;
}
.river__video { width: 100%; height: 100%; object-fit: cover; }

/* A paper card on the photograph keeps the section light */
.river__card {
  position: absolute;
  left: var(--pad-inline);
  bottom: clamp(1.5rem, 6vh, 4rem);
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  width: min(31rem, calc(100% - 2 * var(--pad-inline)));
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 18px;
  background: rgb(251 248 244 / 0.96);
  box-shadow: 0 28px 60px -30px rgb(42 37 34 / 0.55);
}
.river__label { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.river__steps { display: grid; margin: 0; padding: 0; list-style: none; }
.river__step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.river__step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.river__title { font-family: var(--font-text); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.river__text { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.96rem; }
.river__step .btn { margin-top: 1.1rem; }
.river__progress { display: flex; gap: 0.4rem; }
.river__progress span { width: 2.5rem; height: 3px; border-radius: 3px; background: var(--ash); transition: background-color 0.4s; }
.river__progress span.is-active { background: var(--crimson); }

.reduced-motion .river__pin { height: auto; min-height: 100vh; display: flex; align-items: flex-end; padding: 30vh var(--pad-inline) 3rem; }
.reduced-motion .river__card { position: relative; left: auto; bottom: auto; }
.reduced-motion .river__steps { gap: 1.5rem; }
.reduced-motion .river__step { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
.reduced-motion .river__progress { display: none; }


/* 15. Donate
   ========================================================================== */
.donate { padding-block: var(--space-section); }
.donate__grid { display: grid; gap: 3.5rem var(--gutter); }
.donate__intro .section-intro { margin-top: 1.5rem; }

/* The photograph, with the red thread tied around it as you arrive */
.donate__frame { position: relative; margin: 2.5rem 0 0; }
.donate__photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border-radius: 999px;
  background: var(--ash);
}
.donate__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.donate__thread { z-index: 2; }

.stamps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 7.5rem));
  gap: 1rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.stamp { display: grid; justify-items: center; align-content: start; gap: 0.55rem; text-align: center; }
.stamp svg { width: min(100%, 6.25rem); color: var(--crimson); transform: rotate(var(--tilt)); opacity: 0.92; }
.stamp__ring { fill: none; stroke: currentColor; stroke-width: 2.4; }
.stamp__ring--thin { stroke-width: 1.1; }
.stamp__arc { font-family: var(--font-text); font-size: 8.6px; font-weight: 700; letter-spacing: 0.08em; fill: currentColor; }
.stamp__big { font-family: var(--font-display); font-size: 27px; font-weight: 600; fill: currentColor; }
.stamp__label { color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.35; }
.donate__fine { max-width: 60ch; margin-top: 1.5rem; color: var(--ink-soft); font-size: var(--step--1); }
.donate__fine .link { color: var(--ink); }

.give {
  display: grid;
  gap: 1.9rem;
  align-self: start;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 30px 60px -40px rgb(42 37 34 / 0.35);
}
.give__field { min-width: 0; margin: 0; padding: 0; border: 0; }
.give__legend { margin-bottom: 0.8rem; padding: 0; font-weight: 600; }

/* Radios stay in the DOM for keyboards and screen readers; labels carry the look */
.segmented input,
.choice-chips input,
.amounts input { position: absolute; width: 1px; height: 1px; opacity: 0; }
input:focus-visible + label { outline: 2.5px solid var(--focus); outline-offset: 2px; }

.segmented { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.segmented label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.segmented input:checked + label { background: var(--kohl); color: #fff; }

.choice-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice-chips label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.choice-chips label:hover { border-color: var(--kohl); }
.choice-chips input:checked + label { border-color: var(--crimson); background: var(--crimson-wash); color: var(--crimson-deep); }

.amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.amounts label {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1.5px solid var(--edge);
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.amounts label:hover { border-color: var(--kohl); }
.amounts input:checked + label { border-color: var(--crimson); background: var(--crimson-wash); color: var(--crimson-deep); }
.amount-other { display: grid; gap: 0.4rem; max-width: 20rem; margin-top: 1rem; }

.give__impact {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.give__impact-head strong { font-weight: 700; }
.give__impact-text { color: var(--ink-soft); }
.give__impact-tbc { color: var(--ink-soft); font-size: 0.875rem; }
.give__impact-tbc .tbc { margin-right: 0.4rem; }
.give__note { margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.9375rem; }

/* What happens next, said before the click */
.give__promises {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.give__promises li { position: relative; padding-left: 1.25rem; }
.give__promises li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
}
.give__promises .tbc { margin-left: 0.3rem; }
.give__fine { color: var(--ink-soft); font-size: 0.875rem; }

@media (min-width: 1000px) {
  .donate__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
}
@media (max-width: 599px) {
  .amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stamps { gap: 0.75rem; }
}


/* 16. Form fields
   ========================================================================== */
.field { display: grid; gap: 0.4rem; align-content: start; }
.field__label { font-size: 0.9375rem; font-weight: 600; }
.field__optional { color: var(--ink-soft); font-weight: 400; }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--edge);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: #766c65; }   /* 5:1 on white */
.field__input:hover { border-color: var(--kohl); }
.field__input:focus { outline: none; border-color: var(--kohl); }
.field__input:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.field__input[aria-invalid="true"] { border-color: var(--crimson); }
.field__hint { color: var(--ink-soft); font-size: 0.875rem; }
textarea.field__input { min-height: 124px; resize: vertical; }
select.field__input {
  padding-right: 2.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232A2522' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
}
.field__affix { position: relative; }
.field__affix > span { position: absolute; top: 50%; left: 1rem; font-weight: 600; transform: translateY(-50%); }
.field__affix .field__input { padding-left: 2.1rem; }
.field__error { color: var(--crimson-deep); font-size: 0.875rem; font-weight: 500; }
.field__error:empty { display: none; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 1rem 1.15rem; border-radius: 12px; background: #eaf3ec; color: #1f5a35; }
.site-footer .form-status.is-success { background: rgb(243 238 232 / 0.1); color: var(--on-dark); }


/* 17. For CSR teams and institutions
   ========================================================================== */
.csr { padding-block: var(--space-section); background: var(--white); }
.csr__grid { display: grid; gap: 3.5rem; }
.csr__photo {
  margin: 0 0 3rem;
  overflow: hidden;
  aspect-ratio: 16 / 6.5;
  border-radius: 10px;
  background: var(--ash);
}
.csr__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.csr__sub {
  margin-bottom: 1.1rem;
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.3;
}
.routes { display: grid; margin-bottom: 3.25rem; border-top: 1px solid var(--line); }
.route { display: grid; gap: 0.5rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.route__title { font-size: var(--step-1); line-height: 1.2; }
.route p { color: var(--ink-soft); }
.csr__lists { display: grid; gap: 2.5rem; margin-bottom: 3.25rem; }
.ticks { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.8rem; line-height: 1.5; }
.ticks li::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0.1rem;
  width: 0.85rem;
  height: 0.45rem;
  border-bottom: 2px solid var(--crimson);
  border-left: 2px solid var(--crimson);
  transform: rotate(-45deg);
}
/* Partners as a quiet, grouped list: companies first, then international agencies */
.partners { display: grid; gap: 1.75rem; }
.partners__title {
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
}
.partners__list {
  columns: 2;
  column-gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.partners__list li { padding-block: 0.3rem; break-inside: avoid; font-weight: 500; }
.csr__jump { margin-top: 1.5rem; }
.enquiry {
  display: grid;
  gap: 1.15rem;
  align-self: start;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.enquiry__title { font-size: var(--step-2); }
.enquiry__lede { margin-top: -0.4rem; color: var(--ink-soft); }
.enquiry__contact { margin-top: -0.4rem; color: var(--ink-soft); font-size: 0.9375rem; }
.enquiry__lede .tbc,
.enquiry__contact .tbc { margin-left: 0.25rem; }
.enquiry .btn { justify-self: start; }

@media (min-width: 700px) {
  .route { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; align-items: baseline; }
  .csr__lists { grid-template-columns: 1fr 1fr; }
  .partners__list { columns: 4; }
}
@media (min-width: 1000px) {
  .csr__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .csr__jump { display: none; }
}
/* The form only stays in view while scrolling when the whole form fits on the screen */
@media (min-width: 1000px) and (min-height: 1000px) {
  .enquiry { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* 18. Leadership and governance
   ========================================================================== */
.leaders { padding-block: var(--space-section); }

.founder {
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
}
.founder__photo {
  justify-self: start;
  width: min(100%, 17rem);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ash);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.founder__quote { margin: 0; }
.founder__quote p {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.founder__quote footer { max-width: 52ch; margin-top: 1.4rem; color: var(--ink-soft); }
.founder__quote footer strong { color: var(--ink); font-weight: 600; }

.board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.person { display: grid; gap: 1.1rem; align-content: start; }
.person__photo {
  display: block;
  width: min(100%, 11rem);
  overflow: hidden;
  aspect-ratio: 1;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--ash);
  box-shadow: var(--shadow-photo);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__role { color: var(--crimson); font-size: var(--step--1); font-weight: 600; }
.person__name { margin-top: 0.2rem; font-size: var(--step-1); line-height: 1.15; }
.person__bio { margin-top: 0.45rem; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }
.person--chair { grid-column: 1 / -1; }
.person--chair .person__photo { width: min(100%, 13rem); }
.person--chair .person__name { font-size: var(--step-2); }
.person--chair .person__bio { max-width: 52ch; font-size: var(--step-0); }

.governance { margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.governance__title { font-size: var(--step-2); }
.governance__text { max-width: 62ch; margin-top: 1rem; color: var(--ink-soft); }
.governance__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.governance__links .btn { white-space: normal; text-align: center; line-height: 1.25; }
.governance__note { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step--1); }

@media (min-width: 760px) {
  /* fixed first columns: an auto column would size itself to the photo's intrinsic width */
  .founder { grid-template-columns: 17rem minmax(0, 1fr); }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .person--chair { grid-template-columns: 13rem minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
}


/* 19. Get involved
   ========================================================================== */
.involved { padding-block: var(--space-section) clamp(5rem, 9vw, 8rem); }
.involved__grid { display: grid; gap: 3.5rem var(--gutter); }
.involved__main .section-intro { margin-top: 1.5rem; }
.involved__photo {
  margin: 2.5rem 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border-radius: 999px;
  background: var(--ash);
}
.involved__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.involved__facts { display: grid; gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.involved__facts li { display: grid; gap: 0.15rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.involved__facts strong { color: var(--ink); font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.1; }

.involved__side { display: grid; gap: 3.5rem; align-content: start; }
/* Left open on the page: the donate form is the one raised panel */
.volunteer {
  display: grid;
  gap: 1.15rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.volunteer__title { font-size: var(--step-2); }
.volunteer .btn { justify-self: start; }

.events__title { font-size: var(--step-2); }
.events__note { max-width: 60ch; margin-top: 0.75rem; color: var(--ink-soft); font-size: var(--step--1); }
.events__note .tbc { margin-right: 0.4rem; }
.events__list { display: grid; margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.event {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.event__name { font-size: var(--step-1); line-height: 1.2; }
.event__place { margin-top: 0.3rem; }

@media (min-width: 1000px) {
  .involved__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}


/* 20. Footer: warm kohl with a torn-paper top edge
   ========================================================================== */
.site-footer {
  --focus: #fff;
  position: relative;
  background: var(--kohl);
  color: var(--on-dark);
  font-size: 0.9375rem;
}
.deckle--footer { top: -27px; fill: var(--kohl); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--crimson); }

.footer__grid {
  display: grid;
  gap: 3rem var(--gutter);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: 3.5rem;
}
.footer__logo { width: auto; height: 60px; }
.footer__name { max-width: 22ch; margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.25; }
.footer__tagline { margin-top: 0.5rem; color: var(--on-dark-soft); }
.footer__reg { max-width: 46ch; margin-top: 1rem; color: var(--on-dark-soft); font-size: 0.875rem; line-height: 1.6; }
.footer__reg .tbc { margin-left: 0.25rem; }
.newsletter { display: grid; gap: 0.5rem; max-width: 28rem; margin-top: 2rem; }
.newsletter__row { display: flex; gap: 0.5rem; }
.newsletter__row .field__input { flex: 1; min-width: 0; border-color: transparent; }
.site-footer .field__error { color: #ffb2a6; }

.footer__heading { margin: 0 0 0.8rem; color: var(--on-dark-soft); font-family: var(--font-text); font-size: var(--step--1); font-weight: 600; }
.footer__heading:not(:first-child) { margin-top: 2rem; }
.footer__contact { line-height: 1.9; }
.footer__office { display: grid; gap: 0.1rem; margin-bottom: 1rem; color: var(--on-dark-soft); font-style: normal; line-height: 1.5; }
.footer__office strong { color: var(--on-dark); font-weight: 600; }
.site-footer .tbc { color: var(--on-dark); border-color: #a0968e; }
.footer__links { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-block; padding-block: 0.15rem; }

/* The rule runs along the content edge, like every other rule on the page */
.footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.25rem;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
}
.footer__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad-inline);
  right: var(--pad-inline);
  border-top: 1px solid rgb(243 238 232 / 0.14);
}
.footer__legal { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer__legal a { display: inline-block; padding-block: 0.2rem; }
.footer__proto { width: 100%; max-width: 70ch; }

@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }
  .footer__proto { width: auto; }
}


/* 90. Donate within thumb reach on phones
   ========================================================================== */
.donate-fab { display: none; }
@media (max-width: 699px) {
  .donate-fab {
    position: fixed;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 50;
    display: inline-flex;
    min-height: 52px;
    padding-inline: 1.6rem;
    box-shadow: 0 16px 32px -14px rgb(42 37 34 / 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .donate-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
  }
  .menu-open .donate-fab { opacity: 0; visibility: hidden; }
}


/* 99. Reduced motion: no movement, photographs shown in colour
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .tone img,
  .tone video { filter: none; }
  .js-loading [data-hero-title],
  .js-loading [data-hero-fade],
  .js-loading [data-hero-art] { opacity: 1; }
}
