/* =============================================================================
   Yimberzol Foundation — home
   Design copied from metacci.com: monochrome, Silka medium (500) throughout,
   tight tracking, light-chip numbers, white 8px CTA. Orange added later.
   ============================================================================= */

/* ---------- Silka (self-hosted, Atipo pay-what-you-want) --------------- */
@font-face {
  font-family: "Silka"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/silka/silka-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Silka"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/silka/silka-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Silka"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/silka/silka-semibold.woff2") format("woff2");
}

/* ---------- Tokens (metacci palette) --------------------------------- */
:root {
  --bg:          #070808;
  --surface:     #202124;   /* cards */
  --surface-2:   #121215;
  --line:        #26272b;   /* hairline */
  --line-strong: #48484d;   /* visible divider */

  --fg:          #e9e9eb;    /* headings / near-white */
  --fg-body:     #b4b4b8;    /* body */
  --fg-faint:    #6b6b70;    /* kickers / labels */

  --font-sans:     "Silka", -apple-system, "system-ui", "Helvetica Neue", Arial, sans-serif;
  --font-nastaliq: "Noto Nastaliq Urdu", serif;

  --t: 200ms cubic-bezier(0.25, 0, 0, 1);
  /* No imagery on this site, so the column stays readable rather than
     stretching to metacci's 1600px (which its photos fill). */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color var(--t); }
p { margin: 0; }
em { font-style: normal; }
::selection { background: var(--fg); color: var(--bg); }

.nastaliq { font-family: var(--font-nastaliq); font-weight: 400; letter-spacing: 0; line-height: 1; }

/* ---------- Type ----------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 20ch; }
h3 { font-size: 1.25rem; line-height: 1.2; }

/* small uppercase kicker above headings (metacci) */
.kicker,
.section-num,
.tile-kicker,
.stat .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- Layout scaffolding --------------------------------------- */
.nav, main > section, .site-footer { padding-inline: var(--gutter); }
main > section, .site-footer > * { max-width: var(--container); margin-inline: auto; }

/* ---------- Nav ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  padding-inline: clamp(2.5rem, calc(2.8125vw + 1.25rem), 3.59375rem);
}
.nav > div {
  max-width: none; margin-inline: 0; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; color: var(--fg); }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-mark {
  width: 1.375em;
  height: auto;
  flex: none;
  opacity: 0.95;
}
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--fg-faint); }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex; align-items: center; height: 2.25rem; padding: 0 0.9rem;
  border-radius: 8px; background: var(--fg); color: var(--bg);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.01em;
  transition: background var(--t);
}
.nav-cta:hover { background: #fff; color: var(--bg); }

/* ---------- Buttons (metacci: white 8px, or ghost) ------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 3rem; padding: 0 1.5rem;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 1rem; font-weight: 500; color: var(--fg);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.btn:hover { border-color: var(--fg); }
.btn-primary {
  background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600;
}
.btn-primary:hover { background: #fff; border-color: #fff; }

/* ---------- Hero (single column, left) ------------------------------- */
/* Full-height first screen, content vertically centred (metacci). */
main > section.hero {
  position: relative;
  overflow: hidden;   /* the globe overhangs; don't let it widen the page */
  min-height: calc(100svh - 66px);
  display: flex; flex-direction: column; justify-content: flex-start;
  max-width: none;
  margin-inline: 0;
  padding-top: 220px; padding-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-inline: clamp(2.5rem, calc(2.8125vw + 1.25rem), 3.59375rem);
}
.hero-eyebrow { margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.hero-grid { position: relative; z-index: 2; display: block; max-width: none; }

/* Rotating sphere of words behind the hero copy (metacci's globe). */
.hero-globe {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: clamp(520px, 54vw, 920px);
  aspect-ratio: 1 / 1;
  z-index: 0;
  pointer-events: none;
}
.hero-globe canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 1024px) {
  .hero-globe { width: min(88vw, 620px); right: -12%; opacity: 0.55; }
}
@media (max-width: 640px) {
  /* Sit behind the headline and lead rather than trailing off the bottom. */
  .hero-globe {
    top: 150px;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(125vw, 560px);
    opacity: 0.32;
  }
}
.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.75rem, calc((100vw - 7.1875rem) / 13.5), 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 .h1-line {
  display: block;
  white-space: nowrap;
}
.accent-word { color: var(--fg); }   /* no colour yet — orange added later */
.hero-meta { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.75rem; }
.hero-lead { font-size: 1.1875rem; line-height: 1.45; color: var(--fg-body); max-width: 42ch; }
.hero-lead .nastaliq { font-size: 1.35em; vertical-align: -0.08em; color: var(--fg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Section / panel ------------------------------------------ */
/* Each section fills a screen, content vertically centred; no dividers. */
.panel {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

/* Wider side padding on the panels (hero stays at the base gutter); the boxed
   sections (cards + Zoon block) get the most. */
.panel { padding-inline: calc(var(--gutter) * 1.5); }
#programs { padding-inline: calc(var(--gutter) * 2); }
.section-num { display: block; margin-bottom: 0.9rem; }
.section-num .nastaliq { font-size: 1.3em; vertical-align: -0.08em; letter-spacing: 0; }
.section-lead { font-size: 1.1875rem; line-height: 1.6; color: var(--fg-body); max-width: 52ch; margin-top: 1.15rem; }

/* Where a section has a lead, run heading left / lead right so the full width
   is used — metacci fills that side with photography, which we don't have. */
.section-head:has(.section-lead) {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.section-head:has(.section-lead) .section-num { grid-column: 1; grid-row: 1; }
.section-head:has(.section-lead) h2 { grid-column: 1; grid-row: 2; }
.section-head:has(.section-lead) .section-lead { grid-column: 2; grid-row: 2; margin-top: 0.5rem; }

/* ---------- Tiles / cards -------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
/* 2x2, not 4-across — four narrow columns crushed the text. */
.tiles--4 { grid-template-columns: repeat(2, 1fr); }
.tile {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color var(--t), transform var(--t);
}
a.tile:hover { border-color: var(--line-strong); }
.tile h3 { color: var(--fg); font-size: 1.375rem; }
.tile p { font-size: 1rem; line-height: 1.6; color: var(--fg-body); max-width: 42ch; }
.tile-more { margin-top: auto; padding-top: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--fg); }
a.tile:hover .tile-more { color: #fff; }

/* ---------- Centred sections (metacci alternates left / centre) ------ */
#how, #faq { text-align: center; }
#how .section-head, #faq .section-head { max-width: 28ch; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
#how h2, #faq h2 { text-wrap: balance; max-width: none; }
#how .section-head .section-num, #faq .section-head .section-num { text-align: center; }

/* ---------- Numbered "how it works" phases (metacci cards) ----------- */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  text-align: left;
}
.phase {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent;
}
.phase h3 {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0; font-size: 1.25rem; line-height: 1.25;
}
.phase .n {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.85rem; height: 1.5rem; padding: 0 0.4rem;
  background: var(--fg); color: var(--bg);
  font-size: 0.75rem; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; border-radius: 6px;
}
.phase p {
  margin-top: 1.1rem;
  color: var(--fg-body); line-height: 1.55; font-size: 1rem;
}

/* ---------- Feature block (Project Zoon) ----------------------------- */
#zoon.panel {
  min-height: 100svh;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-inline: calc(var(--gutter) * 1.5);
}
.zoon-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
}
.zoon-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 34rem;
}
.zoon-block .section-num { margin-bottom: 0.25rem; }
.zoon-block .zoon-title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}
.zoon-block .zoon-line {
  display: block;
  white-space: nowrap;
}
.zoon-block .zoon-sub {
  margin: 0.35rem 0 0;
  max-width: 38ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--fg-body);
}
.zoon-block .btn-primary { margin-top: 0.75rem; }
.zoon-moon {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.zoon-moon img {
  width: clamp(280px, 32vw, 440px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.45));
}
@media (max-width: 860px) {
  .zoon-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .zoon-moon { order: -1; }
  .zoon-moon img { width: min(56vw, 240px); }
  .zoon-block .zoon-title {
    font-size: clamp(1.6rem, calc((100vw - 4rem) / 16), 2.4rem);
  }
}
@media (max-width: 640px) {
  .zoon-moon { display: none; }
  .zoon-layout { gap: 0; }
  /* The forced line breaks are a desktop composition; let them wrap here. */
  .zoon-block .zoon-line { display: inline; white-space: normal; }
}

/* ---------- Stats ---------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.stat { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.stat .value { font-size: clamp(3rem, 5.5vw, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.stat .sub { font-size: 0.9375rem; line-height: 1.45; color: var(--fg-body); max-width: 22ch; }

/* ---------- FAQ (native details) — narrow centred column, rows left -- */
.faq { border-top: 1px solid var(--line); width: 100%; max-width: 760px; margin-inline: auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  font-size: 1.125rem; font-weight: 500; color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-faint); font-weight: 500; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--fg); }
.faq p { padding: 0 0 1.5rem; max-width: 62ch; color: var(--fg-body); line-height: 1.65; }

/* ---------- Final CTA (two columns: heading left, text+actions right) - */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cta-left h2 { max-width: 12ch; margin-top: 0.9rem; }
.cta-right { display: flex; flex-direction: column; gap: 1.75rem; }
.cta-right .section-lead { margin-top: 0; max-width: 46ch; }
@media (max-width: 700px) { .cta-split { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Manifesto (kept, plain) ---------------------------------- */
.manifesto { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg); max-width: 20ch; }

/* ---------- Footer --------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  padding-inline: calc(var(--gutter) * 1.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.5fr) repeat(3, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 2.75rem;
  align-items: start;
}
.footer-logo,
.footer-col h3 {
  display: block;
  margin: 0 0 1.15rem;
  min-height: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25rem;
  color: var(--fg-faint);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1rem;
  font-weight: 600;
}
.footer-brand p,
.footer-col p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-body);
  max-width: 28ch;
}
.footer-col p { margin-bottom: 0.75rem; }
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a,
.footer-more {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-body);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.footer-col a:hover,
.footer-more:hover { color: var(--fg); }
.footer-more { display: inline-block; color: var(--fg); }
.footer-copy {
  margin: clamp(2.75rem, 5vw, 4rem) 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--fg-faint);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 2.5rem;
  }
  .footer-brand { grid-column: 1 / -1; max-width: 42ch; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Compact panel (forms / short sections) ------------------- */
.panel--compact { min-height: auto; justify-content: flex-start; padding-top: 0; }

/* Why: centred kicker; title left, grey line, copy right */
#why.panel {
  min-height: 100svh;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-inline: calc(var(--gutter) * 1.5);
}
.why-kicker {
  display: block;
  text-align: center;
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  width: 100%;
}
.why-title h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.why-string {
  width: 1px;
  align-self: stretch;
  min-height: 8rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--line-strong) 12%,
    var(--fg-faint) 50%,
    var(--line-strong) 88%,
    transparent 100%
  );
  opacity: 0.85;
}
.why-copy {
  max-width: 38rem;
}
.why-copy .why-sub {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--fg-body);
  max-width: 42ch;
}
.why-copy .why-sub:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .why-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .why-string {
    width: 100%;
    height: 1px;
    min-height: 0;
    background: linear-gradient(
      to right,
      transparent 0%,
      var(--line-strong) 12%,
      var(--fg-faint) 50%,
      var(--line-strong) 88%,
      transparent 100%
    );
  }
  .why-title h2 { max-width: 14ch; }
}

/* ---------- Inner page hero (not full-bleed; same type language) ----- */
.page-hero {
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 5.5vw, 3.75rem); }
.page-hero .hero-lead { margin-top: 1.5rem; }
.page-hero .hero-actions { margin-top: 1.75rem; }
.nav-links a[aria-current="page"] { color: var(--fg); }

/* ---------- Ways list (get-involved) --------------------------------- */
.ways { display: grid; gap: 0; border-top: 1px solid var(--line); }
.way {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: color var(--t);
}
a.way:hover h3 { color: #fff; }
.way .n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.75rem; height: 1.75rem; padding: 0 0.5rem;
  background: var(--fg); color: var(--bg);
  font-size: 0.8125rem; font-weight: 600; border-radius: 6px;
}
.way-body { display: flex; flex-direction: column; gap: 0.4rem; max-width: 48ch; }
.way h3 { font-size: 1.25rem; }
.way p { color: var(--fg-body); line-height: 1.55; }
.way-arrow { color: var(--fg-faint); font-size: 1.25rem; padding-top: 0.15rem; }
a.way:hover .way-arrow { color: var(--fg); }

/* ---------- Forms (class registration) ------------------------------- */
.form-panel {
  max-width: 560px;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.form-panel .section-num { margin-bottom: 0.5rem; }
.form-panel .form-lead { color: var(--fg-body); line-height: 1.55; margin-bottom: 1.5rem; }
.fields { display: grid; gap: 1rem; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > span { font-size: 0.8125rem; font-weight: 500; color: var(--fg-faint); }
.field input {
  width: 100%; height: 3rem; padding: 0 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 500;
  outline: none; transition: border-color var(--t);
}
.field input::placeholder { color: var(--fg-faint); }
.field input:focus { border-color: var(--fg); }
.form-error { margin-top: 1rem; color: #f0a8a0; font-size: 0.875rem; }
.form-panel .btn { margin-top: 1.35rem; }
.form-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--fg-faint); line-height: 1.5; }
.is-hidden { display: none !important; }
.form-thanks { text-align: left; }
.form-thanks h2 { margin-bottom: 0.75rem; max-width: none; font-size: clamp(1.5rem, 3vw, 2rem); }
.form-thanks .btn { margin-top: 1.5rem; }

/* ---------- Donate --------------------------------------------------- */
/* Edge-aligned with the nav rather than boxed into the container. */
.page-donate main > section {
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(1.25rem, calc(2.8125vw + 1.25rem), 3.59375rem);
}
.donate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.donate-copy h1 { max-width: 15ch; font-size: clamp(2.25rem, 4.4vw, 3.4rem); }
.donate-copy .hero-lead { margin-top: 1.5rem; max-width: 40ch; }
.donate-panel { margin-top: 0; max-width: none; }
.donate-panel .fields { margin-top: 1.25rem; grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .donate-hero { grid-template-columns: 1fr; align-items: start; }
  .donate-copy h1 { max-width: 18ch; }
  .donate-panel { max-width: 560px; }
}
.amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.25rem, 1fr));
  gap: 0.6rem;
}
.amount-chip {
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.amount-chip:hover { background: rgba(255, 255, 255, 0.05); }
.amount-chip[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.amount-custom { margin-top: 1rem; }
.amount-input { position: relative; }
.amount-input .rupee {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--fg-faint); font-weight: 500; pointer-events: none;
}
.amount-input input { padding-left: 2rem; }
.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.donate-actions .btn { margin-top: 0; flex: 1 1 10rem; justify-content: center; }
.upi-id {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.upi-id-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  flex: none;
}
.upi-id-value {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
}
.upi-copy {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-body);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.upi-copy:hover { color: var(--fg); }
.donate-methods {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--fg-faint);
}
.donate-methods a { color: var(--fg-body); text-decoration: underline; text-underline-offset: 2px; }
.donate-methods a:hover { color: var(--fg); }

/* ---------- Reveal (subtle, Metacci-like) ---------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ----------------------------------------------- */
@media (max-width: 860px) {
  .tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .section-head:has(.section-lead) { grid-template-columns: 1fr; }
  .section-head:has(.section-lead) .section-lead { grid-column: 1; grid-row: auto; margin-top: 1rem; }
  .way { grid-template-columns: auto 1fr; }
  .way-arrow { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  /* The forced line breaks are a desktop composition; let them wrap here. */
  .hero h1 .h1-line { white-space: normal; }
}
@media (max-width: 560px) {
  .tiles, .tiles--4 { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  #programs { padding-inline: calc(var(--gutter) * 1.25); }
}
