/* =========================================================
   Kiran Foundation — A Ray of Hope, A Life of Dignity
   Design system + homepage styles
   ========================================================= */

/* ---------- 1. Tokens ---------- */
/* Palette sampled directly from the Kiran Foundation logo:
   KIRAN wordmark blue, cradling-hands blue, bright figure blue,
   FOUNDATION green, bright figure green, sun gold, centre figure orange. */
:root{
  /* blues — the wordmark + the hands */
  --navy:#1B4E9E;        /* "KIRAN" royal blue — headings, nav, brand */
  --navy-700:#123A78;    /* deeper — dark bars, footer, button hover */
  --navy-900:#0C2A5C;    /* deepest — overlays, lightbox */
  --navy-500:#2E6FC4;    /* mid blue — gradients */
  --blue-bright:#2196F3; /* right-hand figure */
  --blue-hand:#1565C0;   /* cradling hands */

  /* greens — the wordmark + the left figure */
  --green:#2E7D32;       /* "FOUNDATION" green */
  --green-600:#2E7D32;   /* emphasis, eyebrows, links */
  --green-700:#1F5C24;   /* deep green sections */
  --green-400:#4CAF50;   /* left figure bright green */

  /* sun + centre figure */
  --gold:#FFB300;        /* rays and gold rules */
  --gold-600:#E89000;
  --gold-200:#FFD980;
  --orange:#FF8A00;      /* centre figure — primary CTA */
  --orange-600:#EE7A00;

  --cream:#F8F6F0;
  --cream-200:#F2EFE6;
  --white:#FFFFFF;

  /* text */
  --ink:#123A78;
  --ink-soft:#4A5B75;
  --ink-mute:#5E6C82;    /* was #697A93 — measured 4.37:1, just under AA */
  --ink-invert:#FFFFFF;
  --ink-invert-soft:rgba(255,255,255,.78);

  /* lines & surfaces */
  --line:rgba(16,52,110,.10);
  --line-strong:rgba(16,52,110,.16);
  --surface:#FFFFFF;

  /* shadows */
  --sh-sm:0 2px 8px rgba(16,52,110,.06);
  --sh-md:0 10px 30px rgba(16,52,110,.09);
  --sh-lg:0 24px 60px rgba(16,52,110,.14);
  --sh-gold:0 12px 28px rgba(255,138,0,.30);

  /* type — Fraunces (warm variable serif) over Poppins */
  --f-display:"Fraunces",Georgia,"Times New Roman",serif;
  --f-body:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;

  /* fluid type scale (major third, fluid between 380px and 1240px) */
  --t-xs:clamp(.72rem,.70rem + .09vw,.78rem);
  --t-sm:clamp(.84rem,.81rem + .13vw,.92rem);
  --t-base:clamp(.96rem,.93rem + .17vw,1.04rem);   /* Poppins runs large — trimmed */
  --t-lg:clamp(1.05rem,.99rem + .30vw,1.22rem);
  --t-xl:clamp(1.32rem,1.16rem + .70vw,1.75rem);
  --t-2xl:clamp(1.62rem,1.32rem + 1.30vw,2.45rem);
  --t-3xl:clamp(2.05rem,1.50rem + 2.35vw,3.45rem);
  --t-4xl:clamp(2.60rem,1.55rem + 4.50vw,5.20rem);
  --t-5xl:clamp(3.10rem,1.30rem + 7.70vw,6.40rem);

  /* rhythm */
  --r-sm:10px;
  --r-md:16px;
  --r-lg:24px;
  --r-xl:34px;
  --pad:clamp(1.25rem,4vw,2.5rem);
  --section-y:clamp(3rem,5.6vw,4.9rem);
  --maxw:1240px;

  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html{-webkit-text-size-adjust:100%}
html:focus-within{scroll-behavior:smooth}
body{
  font-family:var(--f-body);
  font-size:var(--t-base);
  line-height:1.78;          /* Poppins needs more air than a humanist sans */
  letter-spacing:0;          /* geometric — tightening muddies it */
  color:var(--ink-soft);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-optical-sizing:auto;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
p{text-wrap:pretty}
::selection{background:var(--gold);color:#fff}
img,svg,video{display:block;max-width:100%}
img{height:auto}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{
  font-family:var(--f-display);
  color:var(--ink);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-.022em;
  text-wrap:balance;
  font-optical-sizing:auto;
  font-variation-settings:"SOFT" 24,"WONK" 0;
}
h3{line-height:1.22;letter-spacing:-.016em}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}

.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;
}
.skip-link{
  position:absolute;left:1rem;top:-100px;z-index:200;
  background:var(--navy);color:#fff;padding:.75rem 1.25rem;border-radius:0 0 var(--r-sm) var(--r-sm);
  transition:top .2s var(--ease);
}
.skip-link:focus{top:0}
.sprite{position:absolute;width:0;height:0;overflow:hidden}

/* ---------- 3. Layout helpers ---------- */
.container{width:min(100% - (var(--pad) * 2),var(--maxw));margin-inline:auto}

/* Eyebrow as a soft pill with a pulsing dot */
.eyebrow{
  font-size:var(--t-xs);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--green-600);margin-bottom:1.1rem;
  display:inline-flex;align-items:center;gap:.55rem;
  padding:.45rem .95rem .45rem .8rem;border-radius:999px;
  background:rgba(46,125,50,.09);
  border:1px solid rgba(46,125,50,.16);
}
.eyebrow::before{
  content:"";width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none;
  box-shadow:0 0 0 3px rgba(255,179,0,.22);
}
/* for dark bands only — pale gold on a light panel measures about 1.2:1 */
.eyebrow--gold{
  color:var(--gold-200);background:rgba(255,179,0,.13);border-color:rgba(255,179,0,.28);
}
/* the same gold accent for light panels (the donation modal), with the ink
   dark enough to clear AA against the pill behind it */
.eyebrow--gold-light{
  color:#8A5300;background:rgba(255,179,0,.18);border-color:rgba(255,179,0,.45);
}
/* the eyebrow is inline-flex, so text-align:center on the parent centres it */

.section-title{
  font-size:var(--t-3xl);
  margin-bottom:1rem;
}
.section-title em{
  font-style:italic;color:var(--green-600);
  font-variation-settings:"SOFT" 40,"WONK" 1;
}
.section-head{margin-bottom:clamp(1.9rem,3.6vw,2.75rem)}
.section-head--center{text-align:center;max-width:58ch;margin-inline:auto}
.section-head--split{
  display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;flex-wrap:wrap;
}
.section-lead{color:var(--ink-mute);font-size:var(--t-lg);line-height:1.62;text-wrap:pretty}
.section-head--invert .section-title,
.section-head--invert h2{color:#fff}
.section-head--invert .section-title em{color:var(--gold-200)}
.section-head--invert .section-lead{color:var(--ink-invert-soft)}

/* ---------- 4. Icons ---------- */
.ico{
  width:1.25em;height:1.25em;flex:none;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.ico--sm{width:1em;height:1em}
.ico--lg{width:1.7em;height:1.7em}
.ico--fill{fill:currentColor;stroke:none}
.ico--quote{fill:currentColor;stroke:none}

/* ---------- 5. Buttons ---------- */
.btn{
  --btn-bg:var(--gold);--btn-fg:#fff;--btn-bd:transparent;
  position:relative;overflow:hidden;isolation:isolate;
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  padding:1rem 1.75rem;border-radius:999px;
  background:var(--btn-bg);color:var(--btn-fg);
  border:1.5px solid var(--btn-bd);
  font-family:var(--f-body);
  font-size:var(--t-xs);font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  line-height:1;white-space:nowrap;
  transition:transform .32s var(--ease),box-shadow .32s var(--ease),background-color .32s var(--ease),color .32s var(--ease),border-color .32s var(--ease);
}
/* light sweeps across the button on hover */
.btn::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.32) 50%,transparent 80%);
  transform:translateX(-110%);
  transition:transform .7s var(--ease);
}
.btn:hover::after{transform:translateX(110%)}
.btn .ico{width:1.1em;height:1.1em;transition:transform .28s var(--ease)}
.btn:hover{transform:translateY(-3px)}
.btn:hover .ico:not(.ico--fill){transform:translateX(3px)}
.btn:active{transform:translateY(0)}

/* Primary CTA = the orange of the centre figure in the logo */
.btn--primary{--btn-bg:var(--orange);box-shadow:var(--sh-gold)}
.btn--primary:hover{--btn-bg:var(--orange-600);box-shadow:0 16px 34px rgba(255,138,0,.38)}
.btn--dark{--btn-bg:var(--navy);box-shadow:0 10px 26px rgba(16,52,110,.22)}
.btn--dark:hover{--btn-bg:var(--navy-700)}
.btn--ghost{--btn-bg:transparent;--btn-fg:var(--navy);--btn-bd:var(--line-strong)}
.btn--ghost:hover{--btn-bg:var(--navy);--btn-fg:#fff;--btn-bd:var(--navy)}
.btn--ghost-light{--btn-bg:rgba(255,255,255,.08);--btn-fg:#fff;--btn-bd:rgba(255,255,255,.45)}
.btn--ghost-light:hover{--btn-bg:#fff;--btn-fg:var(--navy);--btn-bd:#fff}
.btn--outline{--btn-bg:transparent;--btn-fg:var(--navy);--btn-bd:var(--line-strong)}
.btn--outline:hover{--btn-bg:var(--cream-200);--btn-bd:var(--navy)}
.btn--lg{padding:1.05rem 2.1rem;font-size:.85rem}
.btn--block{width:100%}

.link-arrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.8125rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--green-600);
  transition:gap .28s var(--ease),color .28s var(--ease);
}
.link-arrow .ico{width:1.05em;height:1.05em}
.link-arrow:hover{gap:.85rem;color:var(--gold-600)}

/* ---------- 6. Media placeholders ---------- */
/* Every photo slot degrades to a branded gradient (with a note of what
   photograph belongs there) if the image file is missing. */
.media{
  position:relative;overflow:hidden;border-radius:var(--r-lg);
  background:
    radial-gradient(120% 100% at 20% 0%,rgba(255,179,0,.28),transparent 60%),
    radial-gradient(120% 110% at 90% 100%,rgba(46,125,50,.35),transparent 62%),
    linear-gradient(140deg,#2E6FC4,#1B4E9E 55%,#0C2A5C);
  isolation:isolate;
}
.media::after{
  content:attr(data-ph);
  position:absolute;inset:auto 1.25rem 1.25rem;z-index:0;
  font-size:.75rem;line-height:1.5;letter-spacing:.05em;
  color:rgba(255,255,255,.62);
  font-weight:500;
}
.media > img{
  position:relative;z-index:1;
  width:100%;height:100%;object-fit:cover;
  transition:transform .8s var(--ease);
}
.media > img[src=""],.media > img:not([src]){display:none}

/* ---------- 7. Header ---------- */
.site-header{position:sticky;top:0;z-index:80}
.header-top{background:var(--navy-700);color:rgba(255,255,255,.82);font-size:.8rem}
.header-top__in{
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  min-height:38px;flex-wrap:wrap;
}
.header-top__memorial{display:flex;align-items:center;gap:.45rem;letter-spacing:.04em}
.header-top__memorial .ico{color:var(--gold)}
.header-top__memorial strong{color:#fff;font-weight:600}
.header-top__right{display:flex;align-items:center;gap:1.25rem}
.header-top__meta{display:flex;gap:1.5rem;list-style:none;padding:0}

/* ---- language switcher ---- */
.lang{position:relative;flex:none}
.lang__btn{
  display:flex;align-items:center;gap:.45rem;
  padding:.3rem .6rem;border-radius:999px;
  border:1px solid rgba(255,255,255,.24);
  color:rgba(255,255,255,.9);font-size:.78rem;font-weight:600;
  transition:background-color .25s var(--ease),border-color .25s var(--ease);
}
.lang__btn:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.4);color:#fff}
.lang__btn .ico{color:var(--gold)}
.lang__caret{transition:transform .25s var(--ease)}
.lang__btn[aria-expanded="true"] .lang__caret{transform:rotate(180deg)}
.lang__menu{
  position:absolute;right:0;top:calc(100% + .5rem);z-index:90;
  min-width:150px;list-style:none;padding:.35rem;margin:0;
  background:#fff;border-radius:var(--r-sm);
  box-shadow:0 18px 44px rgba(12,42,92,.28);
  border:1px solid var(--line);
}
.lang__menu[hidden]{display:none}
.lang__menu button{
  display:block;width:100%;text-align:left;
  padding:.55rem .75rem;border-radius:7px;
  font-size:.88rem;font-weight:600;color:var(--navy);
  transition:background-color .2s var(--ease),color .2s var(--ease);
}
.lang__menu button:hover{background:var(--cream)}
.lang__menu button[aria-selected="true"]{background:rgba(255,179,0,.16);color:var(--gold-600)}

/* ---- Hindi typography ----
   Fraunces has no Devanagari, so headings switch to Noto Serif Devanagari
   (loaded on demand). Poppins already ships a Devanagari subset for body copy. */
html[data-lang="hi"] h1,
html[data-lang="hi"] h2,
html[data-lang="hi"] h3,
html[data-lang="hi"] h4,
html[data-lang="hi"] .brand__name,
html[data-lang="hi"] .stat strong,
html[data-lang="hi"] .hero__trust strong,
html[data-lang="hi"] .cause-row__intro,
html[data-lang="hi"] .memorial__quote p,
html[data-lang="hi"] .mission__dedication,
html[data-lang="hi"] .footer__tagline,
html[data-lang="hi"] .donate__tiers strong{
  font-family:"Noto Serif Devanagari","Poppins",Georgia,serif;
  font-variation-settings:normal;
}
/* Devanagari sits taller — it needs a little more room than Latin */
html[data-lang="hi"] h1,
html[data-lang="hi"] h2,
html[data-lang="hi"] h3{line-height:1.35;letter-spacing:0}
html[data-lang="hi"] .hero__title{line-height:1.3;white-space:normal}
html[data-lang="hi"] body,
html[data-lang="hi"] p{line-height:1.85}
html[data-lang="hi"] .eyebrow,
html[data-lang="hi"] .btn,
html[data-lang="hi"] .link-arrow,
html[data-lang="hi"] .brand__sub,
html[data-lang="hi"] .footer__heading,
html[data-lang="hi"] .memorial__tag{letter-spacing:.04em;text-transform:none}
.header-top__meta li{display:flex;align-items:center;gap:.45rem}
.header-top__meta .ico{color:var(--gold)}
.header-top__meta a:hover{color:#fff}

.header-main{
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s var(--ease),background-color .3s var(--ease);
}
.site-header.is-stuck .header-main{background:rgba(255,255,255,.97);box-shadow:var(--sh-md)}
/* reading-progress hairline along the bottom of the header */
.header-main{position:relative}
.progress{position:absolute;left:0;right:0;bottom:-1px;height:2px;overflow:hidden}
.progress i{
  display:block;height:100%;width:100%;
  transform:scaleX(0);transform-origin:left;
  background:linear-gradient(90deg,var(--gold),var(--orange) 45%,var(--green-400));
}
.header-main__in{
  display:flex;align-items:center;gap:1.5rem;
  min-height:72px;padding-block:.4rem;
  transition:padding .3s var(--ease),min-height .3s var(--ease);
}
.site-header.is-stuck .header-main__in{min-height:64px;padding-block:.3rem}

.brand{display:flex;align-items:center;gap:.75rem;margin-right:auto}
/* Sized by height so the SVG fallback and the PNG emblem line up identically */
.brand__mark{height:54px;width:auto;transition:transform .5s var(--ease)}
.brand:hover .brand__mark{transform:scale(1.06) rotate(-2deg)}

/* Full lockup (assets/img/logo.png) — replaces the emblem + text wordmark. */
.brand--image .brand__mark,
.brand--image .brand__text{display:none}

/* HEADER: a horizontal lockup (emblem beside the wordmark, 4.4:1) so the bar
   stays shallow while "KIRAN FOUNDATION" still reads. */
.brand__logo{
  display:block;width:auto;height:56px;object-fit:contain;
  transition:height .3s var(--ease),transform .5s var(--ease);
}
.brand:hover .brand__logo{transform:scale(1.03)}
.site-header.is-stuck .brand__logo--wide{height:46px}

/* FOOTER: the artwork is dark navy and dark green, so on the deep-blue footer
   it sits on a light plate; without one, "KIRAN", "FOUNDATION" and the hands
   fall to ~1.1:1 contrast and effectively disappear. */
.brand--footer.brand--image{display:block;width:100%;max-width:196px;padding:0;background:none;box-shadow:none;transition:transform .4s var(--ease)}
.brand--footer.brand--image:hover{transform:translateY(-3px)}
.brand--footer .brand__logo{width:100%;height:auto}
.site-header.is-stuck .brand--footer .brand__logo{height:auto}
/* The lockup already carries the tagline and the memorial line — don't repeat them */
/* the logo is small here, so its baked-in text stays as live copy below */
.footer__col--brand.has-logo .footer__tagline{margin-top:.9rem}
.brand__text{display:flex;flex-direction:column;line-height:1}
.brand__name{
  font-family:var(--f-display);font-weight:700;font-size:1.6rem;
  color:var(--navy);letter-spacing:.02em;
}
.brand__sub{
  font-size:.62rem;font-weight:700;letter-spacing:.34em;text-transform:uppercase;
  color:var(--green-600);margin-top:.25rem;
}

.nav{display:flex;align-items:center;gap:1.75rem}
.nav__list{display:flex;align-items:center;gap:1.6rem;list-style:none;padding:0}
.nav__link{
  position:relative;font-size:.875rem;font-weight:600;color:var(--navy);
  padding:.4rem 0;transition:color .25s var(--ease);
}
.nav__link::after{
  content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;border-radius:2px;
  background:var(--gold);transition:width .3s var(--ease);
}
.nav__link:hover{color:var(--gold-600)}
.nav__link:hover::after,.nav__link.is-active::after{width:100%}
.nav__link.is-active{color:var(--gold-600)}
.nav__cta{display:none}

.nav-toggle{
  display:none;width:46px;height:46px;border-radius:var(--r-sm);
  border:1px solid var(--line-strong);color:var(--navy);
  align-items:center;justify-content:center;
}
.nav-toggle .ico{width:22px;height:22px}
.nav-toggle__close{display:none}
.nav-toggle[aria-expanded="true"] .nav-toggle__open{display:none}
.nav-toggle[aria-expanded="true"] .nav-toggle__close{display:block}
.nav-scrim{
  position:fixed;inset:0;z-index:70;background:rgba(12,42,92,.45);
  backdrop-filter:blur(2px);
}

/* ---------- 8. Hero ---------- */
/* Full-width photographic banner behind the hero. The overlay is deep enough
   that white text clears 7:1 against it, whatever the photograph underneath. */
.hero{
  position:relative;overflow:hidden;isolation:isolate;color:var(--ink-invert-soft);
  padding-block:clamp(2.5rem,4.6vw,4rem) clamp(3rem,5.2vw,4.5rem);
  background-image:
    linear-gradient(105deg,rgba(9,32,70,.94) 0%,rgba(12,42,92,.88) 42%,rgba(20,70,52,.78) 100%),
    url("../img/banner.jpg"),
    linear-gradient(140deg,#123A78,#0C2A5C 55%,#1F5C24);
  background-size:cover;
  background-position:center 32%;
  background-repeat:no-repeat;
}
/* warm sunrise wash from the top-right, echoing the logo */
.hero__glow{
  position:absolute;width:min(760px,90vw);aspect-ratio:1;right:-14%;top:-32%;border-radius:50%;
  background:radial-gradient(circle,rgba(255,179,0,.34),transparent 64%);
  pointer-events:none;z-index:-1;
}
/* (the brand lockup was removed from the banner — the header carries it) */
/* the logo's sun rays, radiating slowly behind the hero photograph */
.hero__visual::before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:158%;aspect-ratio:1;left:50%;top:45%;
  background:repeating-conic-gradient(from 0deg,
    rgba(255,179,0,.20) 0deg 1.5deg,transparent 1.5deg 9deg);
  border-radius:50%;
  -webkit-mask-image:radial-gradient(circle,#000 26%,transparent 66%);
  mask-image:radial-gradient(circle,#000 26%,transparent 66%);
  transform:translate(-50%,-50%);
  animation:kf-spin 110s linear infinite;
}
@keyframes kf-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.hero__in{
  position:relative;display:grid;gap:clamp(2.5rem,5vw,4.5rem);
  grid-template-columns:1.02fr .98fr;align-items:center;
}
.hero__copy{max-width:36rem}
/* "Change Lives" is kept on a single line; the size is viewport-driven so it
   always fits rather than wrapping or overflowing. */
.hero__title{
  font-size:clamp(2.3rem,6.6vw,5.1rem);
  font-weight:600;color:#fff;white-space:nowrap;
  line-height:1.02;letter-spacing:-.035em;margin-bottom:1.4rem;
  text-shadow:0 4px 30px rgba(0,0,0,.3);
}
/* Sunrise sweep: the logo's orange centre figure into its green figure */
.hero__title em{
  display:inline;font-style:italic;
  font-variation-settings:"SOFT" 46,"WONK" 1;
  background:linear-gradient(96deg,var(--orange) 4%,var(--gold) 34%,var(--green-400) 70%,var(--green) 96%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero__lead{font-size:var(--t-lg);line-height:1.66;color:rgba(255,255,255,.86);max-width:34rem}
.hero__actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:2.25rem}
.hero__trust{
  display:flex;flex-wrap:wrap;gap:clamp(1.5rem,4vw,3rem);
  list-style:none;padding:2.25rem 0 0;margin-top:2.5rem;
  border-top:1px solid rgba(255,255,255,.22);
}
.hero__trust li{display:flex;flex-direction:column;gap:.15rem}
.hero__trust strong{
  font-family:var(--f-display);font-size:1.75rem;color:#fff;line-height:1;
}
.hero__trust span{font-size:.8rem;color:rgba(255,255,255,.72);letter-spacing:.03em}

/* capped so the banner keeps its whole call to action above the fold */
.hero__visual{position:relative;width:100%;max-width:500px;margin-left:auto}
.media--hero{
  position:relative;z-index:1;
  aspect-ratio:1/1;border-radius:clamp(24px,4vw,40px) clamp(24px,4vw,40px) clamp(80px,14vw,150px) clamp(24px,4vw,40px);
  /* light ring so the photo reads as a card against the dark banner */
  box-shadow:0 34px 74px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.18);
}
.media--hero::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(190deg,rgba(255,179,0,.14) 0%,transparent 38%,rgba(16,52,110,.30) 100%);
}
.hero__badge{
  position:absolute;left:-1.25rem;bottom:2.25rem;z-index:3;
  display:flex;align-items:center;gap:.9rem;
  background:#fff;border-radius:var(--r-md);padding:1rem 1.35rem;
  box-shadow:var(--sh-lg);
}
.hero__badge .ico{color:var(--gold)}
.hero__badge strong{
  display:block;font-family:var(--f-display);font-size:1.1rem;color:var(--navy);line-height:1.2;
}
.hero__badge span{display:block;font-size:.78rem;color:var(--green-600);letter-spacing:.08em}

/* ---------- 8b. Our Missions ---------- */
.missions{
  position:relative;padding-block:var(--section-y);
  background:
    radial-gradient(52% 42% at 50% 0%,rgba(255,179,0,.10),transparent 62%),
    linear-gradient(180deg,var(--cream) 0%,var(--white) 62%);
}
.missions__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem}
.mission{
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--sh-sm);
  transition:transform .45s var(--ease),box-shadow .45s var(--ease),border-color .45s var(--ease);
}
.mission:hover{transform:translateY(-9px);box-shadow:var(--sh-lg);border-color:rgba(255,179,0,.3)}
.media--mission{border-radius:0;aspect-ratio:11/8}
.mission:hover .media > img{transform:scale(1.06)}
.mission__body{position:relative;display:flex;flex-direction:column;gap:.8rem;padding:2.4rem 1.7rem 1.9rem}
.mission__icon{
  position:absolute;top:-30px;left:1.7rem;
  display:grid;place-items:center;width:60px;height:60px;border-radius:18px;
  font-size:1rem;background:#fff;box-shadow:var(--sh-md);
  transition:transform .45s var(--ease);
}
.mission:hover .mission__icon{transform:translateY(-4px) rotate(-5deg)}
.mission__icon--blue{color:var(--blue-hand)}
.mission__icon--orange{color:var(--gold-600)}
.mission__icon--green{color:var(--green)}
/* the dedication is the emotional anchor of each card */
.mission__dedication{
  display:inline-flex;align-items:center;gap:.5rem;align-self:flex-start;
  font-family:var(--f-display);font-style:italic;font-size:.95rem;
  color:var(--green-600);
}
.mission__dedication::before{
  content:"";width:22px;height:1px;background:var(--gold);flex:none;
}
.mission__body h3{font-size:var(--t-xl)}
.mission__body p{font-size:var(--t-sm);line-height:1.7;color:var(--ink-mute)}
.mission__body .link-arrow{margin-top:auto;padding-top:.5rem}

/* ---------- 9. Cause cards ---------- */
.causes-strip{padding-block:var(--section-y);background:var(--white)}
.cards{display:grid;gap:1.5rem}
.cards--5{grid-template-columns:repeat(5,1fr)}
/* six causes read better as two rows of three than one thin row of six */
.cards--6{grid-template-columns:repeat(3,1fr)}
.cards--3{grid-template-columns:repeat(3,1fr)}

.cause-card{
  position:relative;overflow:hidden;
  display:flex;flex-direction:column;
  background:var(--white);border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--sh-sm);
  transition:transform .45s var(--ease),box-shadow .45s var(--ease),border-color .45s var(--ease);
}
.media--card{border-radius:0;aspect-ratio:8/5}
.cause-card:hover .media > img{transform:scale(1.07)}
/* body carries the padding now that the photo sits flush at the top */
.cause-card__body{
  position:relative;isolation:isolate;
  display:flex;flex-direction:column;gap:.8rem;flex:1;
  padding:2.2rem 1.5rem 1.7rem;
}
/* a warm wash rises from the foot of the card on hover */
.cause-card__body::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,transparent 42%,rgba(255,179,0,.10) 100%);
  opacity:0;transition:opacity .45s var(--ease);
}
.cause-card:hover .cause-card__body::before{opacity:1}
.cause-card:hover{
  transform:translateY(-9px);box-shadow:var(--sh-lg);border-color:rgba(255,179,0,.28);
}
.cause-card h3{font-size:var(--t-lg);line-height:1.3}
.cause-card p{font-size:var(--t-sm);line-height:1.62;color:var(--ink-mute);flex:1}
.cause-card .link-arrow{margin-top:.35rem}
/* icon badge straddles the photo edge, matching the mission cards */
.cause-card__icon{
  position:absolute;top:-28px;left:1.5rem;
  display:grid;place-items:center;width:56px;height:56px;border-radius:17px;
  font-size:1.15rem;background:#fff;box-shadow:var(--sh-md);
  transition:transform .4s var(--ease);
}
.cause-card:hover .cause-card__icon{transform:rotate(-6deg) scale(1.06)}
/* The three figure colours from the logo: green, orange, blue */
/* colour only — the badge keeps its solid white base so it reads over the photo */
.cause-card__icon--green{color:var(--green)}
.cause-card__icon--orange{color:var(--gold-600)}
.cause-card__icon--navy{color:var(--blue-hand)}

/* ---------- 10. About ---------- */
.about{padding-block:var(--section-y);background:var(--cream)}
.about__in{
  display:grid;grid-template-columns:.92fr 1.08fr;
  gap:clamp(2.5rem,6vw,5rem);align-items:center;
}
.about__visual{position:relative;padding-bottom:2.5rem}
.media--about{
  aspect-ratio:1342/1172;   /* matches the collage, so no panel is cropped */
  border-radius:clamp(24px,4vw,36px) clamp(80px,12vw,120px) clamp(24px,4vw,36px) clamp(24px,4vw,36px);
  box-shadow:var(--sh-lg);
}
.media--about-inset{
  position:absolute;right:-1rem;bottom:0;width:46%;aspect-ratio:11/10;
  border-radius:var(--r-lg);border:6px solid var(--cream);box-shadow:var(--sh-md);
}
.media--about-inset::after{font-size:.68rem;inset:auto .75rem .75rem}
.about__years{
  position:absolute;left:-1rem;top:1.75rem;z-index:3;
  display:flex;align-items:center;gap:.75rem;
  background:var(--gold);color:#fff;border-radius:var(--r-md);
  padding:.9rem 1.25rem;box-shadow:var(--sh-gold);
}
.about__years strong{font-family:var(--f-display);font-size:2.2rem;line-height:1;color:#fff}
.about__years span{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;line-height:1.3;font-weight:600}

.about__copy > p{margin-bottom:1.1rem}
.about__points{list-style:none;padding:0;margin:1.75rem 0 2.25rem;display:grid;gap:.8rem}
.about__points li{display:flex;align-items:flex-start;gap:.75rem;font-size:.97rem;color:var(--ink-soft)}
.about__points .ico{color:var(--gold);margin-top:.28rem}

.stats{display:grid;gap:1.25rem}
.stats--light{
  grid-template-columns:repeat(4,1fr);
  padding:1.75rem 0;margin-bottom:2.25rem;
  border-block:1px solid var(--line-strong);
}
.stat{display:flex;flex-direction:column;gap:.2rem}
.stat strong{
  font-family:var(--f-display);font-size:clamp(1.9rem,1.4rem + 1.4vw,2.5rem);
  line-height:1;color:var(--navy);
}
.stat span{font-size:.8rem;color:var(--ink-mute);letter-spacing:.03em;line-height:1.4}

/* ---------- 11. Causes detail ---------- */
.causes{padding-block:var(--section-y);background:var(--white)}
.cause-list{display:grid;gap:clamp(2.6rem,4.8vw,4.2rem)}
/* The copy column runs far longer than the photograph on the mission and cause
   pages, so centring the two stranded a deep band of white above and below the
   photo. It top-aligns instead, then follows the reader down the column. */
.cause-row{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(2rem,5vw,4.5rem);align-items:start;
}
.cause-row--flip .media{order:2}
.media--cause{
  /* clears the sticky header; harmless where the row is too short to scroll */
  position:sticky;top:7.5rem;
  aspect-ratio:11/8;
  border-radius:clamp(24px,3.5vw,32px) clamp(24px,3.5vw,32px) clamp(60px,9vw,96px) clamp(24px,3.5vw,32px);
  box-shadow:var(--sh-md);
}
.cause-row--flip .media--cause{
  border-radius:clamp(24px,3.5vw,32px) clamp(24px,3.5vw,32px) clamp(24px,3.5vw,32px) clamp(60px,9vw,96px);
}
.cause-row:hover .media > img{transform:scale(1.06)}
/* Editorial index numeral — outlined display figure over a small counter */
.cause-row__index{
  display:flex;align-items:baseline;gap:.6rem;margin-bottom:.6rem;
}
.cause-row__index b{
  font-family:var(--f-display);font-weight:600;line-height:.85;
  font-size:clamp(2.5rem,1.9rem + 2.2vw,3.6rem);letter-spacing:-.04em;
  color:transparent;-webkit-text-stroke:1.6px rgba(255,179,0,.85);
}
.cause-row__index span{
  font-size:var(--t-xs);font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink-mute);
}
@supports not (-webkit-text-stroke:1px #000){
  .cause-row__index b{color:var(--gold)}
}

.cause-row__icon{
  display:grid;place-items:center;width:58px;height:58px;border-radius:18px;
  font-size:1.3rem;margin-bottom:1rem;
}
.cause-row__icon--green{background:rgba(46,125,50,.12);color:var(--green)}
.cause-row__icon--orange{background:rgba(255,138,0,.14);color:var(--gold-600)}
.cause-row__icon--navy{background:rgba(33,150,243,.13);color:var(--blue-hand)}
.cause-row__copy h3{font-size:clamp(1.65rem,1.3rem + 1.1vw,2.25rem);margin-bottom:.85rem}
.cause-row__intro{
  font-family:var(--f-display);font-style:italic;font-size:1.15rem;
  color:var(--green-600);margin-bottom:1rem;
}
.cause-row__copy > p{margin-bottom:1.5rem}

/* ---------- 12. Impact ---------- */
.impact{
  position:relative;overflow:hidden;padding-block:var(--section-y);
  background:linear-gradient(160deg,var(--green) 0%,#1F5C24 45%,var(--navy) 100%);
  color:#fff;
}
.impact__rays{
  position:absolute;inset:0;pointer-events:none;opacity:.5;
  background:
    radial-gradient(50% 55% at 50% -10%,rgba(255,179,0,.3),transparent 65%),
    repeating-conic-gradient(from 200deg at 50% -5%,rgba(255,255,255,.05) 0deg 2deg,transparent 2deg 9deg);
}
.impact__in{position:relative}
.stats--invert{grid-template-columns:repeat(4,1fr);gap:1.5rem}
.stat--card{
  align-items:center;text-align:center;gap:.55rem;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-lg);padding:2.25rem 1.25rem;
  backdrop-filter:blur(8px);
  transition:transform .4s var(--ease),background-color .4s var(--ease),border-color .4s var(--ease);
}
.stat--card:hover{transform:translateY(-6px);background:rgba(255,255,255,.1);border-color:rgba(255,179,0,.5)}
.stat .stat__icon{
  display:grid;place-items:center;width:64px;height:64px;border-radius:50%;
  font-size:1rem;
  background:rgba(255,179,0,.16);color:var(--gold-200);margin-bottom:.5rem;
}
.stats--invert .stat strong{color:#fff;font-size:clamp(2.2rem,1.6rem + 1.8vw,3rem)}
.stat .stat__label{color:var(--ink-invert-soft);font-size:.85rem;letter-spacing:.06em}
.impact__cta{text-align:center;margin-top:clamp(1.9rem,3.6vw,2.6rem)}

/* ---------- 13. Memorial ---------- */
.memorial{
  position:relative;overflow:hidden;text-align:center;
  padding-block:clamp(3.2rem,5.6vw,4.75rem);
  background:linear-gradient(180deg,var(--cream-200),var(--cream));
}
.memorial__rays{
  position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(46% 46% at 50% 6%,rgba(255,179,0,.20),transparent 68%),
    repeating-conic-gradient(from 205deg at 50% 4%,rgba(255,179,0,.055) 0deg 1.6deg,transparent 1.6deg 8deg);
  mask-image:linear-gradient(180deg,#000 0%,transparent 78%);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 78%);
}
.memorial__in{position:relative;max-width:56rem;margin-inline:auto}
.memorial__crest{
  height:clamp(74px,9vw,104px);width:auto;margin:0 auto 1.5rem;
  filter:drop-shadow(0 8px 18px rgba(255,179,0,.22));
}
.memorial__kicker{
  display:inline-flex;align-items:center;gap:.6rem;
  font-size:.82rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;
  color:var(--green-600);margin-bottom:1.1rem;
}
.memorial__kicker .ico{color:var(--orange);width:1.05em;height:1.05em}
/* Sized so all three names sit on one line on a desktop. On narrower screens
   the line breaks only between names, never inside one. */
.memorial__names{
  font-size:clamp(1.4rem,.85rem + 2.1vw,2.3rem);
  color:var(--navy);line-height:1.3;text-wrap:balance;
}
.memorial__nb{white-space:nowrap}
.memorial__sep{color:var(--gold);font-style:italic;padding-inline:.15em}
.memorial__rule{
  display:block;width:180px;height:2px;margin:1.75rem auto;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  position:relative;
}
.memorial__rule::after{
  content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;
  transform:translate(-50%,-50%) rotate(45deg);
  background:var(--gold);border-radius:2px;
}
.memorial__quote{position:relative;padding-top:.5rem}
.memorial__quote .ico--quote{
  width:2.6rem;height:2.6rem;color:rgba(255,179,0,.34);margin:0 auto 1rem;
}
.memorial__quote p{
  font-family:var(--f-display);font-size:clamp(1.1rem,1rem + .65vw,1.45rem);
  line-height:1.72;color:var(--ink);font-style:italic;
}
/* Three tributes, one per person */
.tributes{
  display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,3vw,2.75rem);
  list-style:none;padding:0;margin:clamp(2rem,3.8vw,2.8rem) 0 0;text-align:left;
}
.tribute{position:relative;padding-top:1.6rem}

/* Family portraits. A tribute without a photograph yet falls back to a cream
   panel carrying the emblem, so the row stays even rather than looking broken. */
.tribute__portrait{
  position:relative;overflow:hidden;isolation:isolate;
  width:100%;max-width:200px;aspect-ratio:4/5;margin:0 0 1.2rem;
  border-radius:var(--r-md);
  background-color:var(--cream-200);
  background-image:
    linear-gradient(165deg,rgba(255,255,255,.7),rgba(255,179,0,.14)),
    url("../img/logo-mark.svg");
  background-size:auto,52% auto;
  background-position:center,center 40%;
  background-repeat:no-repeat,no-repeat;
  /* the photographs now fade to the section's cream, so no frame or shadow —
     a hard edge would cut across the fade */
  box-shadow:none;
  transition:transform .45s var(--ease);
}
.tribute__portrait::after{
  content:attr(data-ph);
  position:absolute;left:.6rem;right:.6rem;bottom:.7rem;z-index:0;
  text-align:center;font-size:.68rem;line-height:1.4;letter-spacing:.03em;
  color:var(--ink-mute);
}
.tribute__portrait > img{
  position:relative;z-index:1;
  width:100%;height:100%;object-fit:cover;object-position:center top;
}
/* the photographs are cut out, so the panel and emblem behind them must go —
   they would otherwise show through the transparent areas */
.tribute__portrait:has(img){background:none;box-shadow:none}
.tribute__portrait:has(img)::after{content:none}
.tribute:hover .tribute__portrait{transform:translateY(-4px)}
.tribute__rule{
  position:absolute;top:0;left:0;width:46px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--gold),var(--green-400));
}
.tribute__role{
  font-size:var(--t-xs);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-600);margin-bottom:.35rem;
}
/* sized so the longest name, "Shri Balkrishna Singh", stays on a single line */
.tribute__name{
  font-size:clamp(1.08rem,.98rem + .42vw,1.42rem);
  white-space:nowrap;
  color:var(--navy);margin-bottom:.6rem;
  font-variation-settings:"SOFT" 30,"WONK" 0;
}
.tribute__text{font-size:var(--t-sm);line-height:1.72;color:var(--ink-soft)}

.memorial__quote p em{font-style:italic;color:var(--gold-600);font-weight:600}

.memorial__tag{
  margin-top:clamp(1.8rem,3.4vw,2.4rem);font-size:.8rem;font-weight:700;
  letter-spacing:.3em;text-transform:uppercase;color:var(--gold-600);
}

/* ---------- 14. Gallery ---------- */
.gallery{padding-block:var(--section-y);background:var(--white)}
.gallery__grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  grid-auto-rows:220px;gap:1.25rem;
  /* wide and tall tiles would otherwise leave holes, especially once the
     gallery page filters items out of the flow */
  grid-auto-flow:dense;
}
.g-item{
  position:relative;display:block;padding:0;border-radius:var(--r-lg);overflow:hidden;
  box-shadow:var(--sh-sm);
  transition:transform .45s var(--ease),box-shadow .45s var(--ease);
}
.g-item .media{border-radius:0;height:100%}
.g-item--tall{grid-row:span 2}
.g-item--wide{grid-column:span 2}
.g-item::after{
  content:"";position:absolute;inset:0;z-index:2;
  background:linear-gradient(180deg,transparent 40%,rgba(12,42,92,.72));
  opacity:.55;transition:opacity .45s var(--ease);
}
.g-item:hover{transform:translateY(-6px);box-shadow:var(--sh-lg)}
.g-item:hover::after{opacity:.9}
.g-item:hover .media > img{transform:scale(1.08)}
.g-item__label{
  position:absolute;left:1.25rem;bottom:1.15rem;z-index:3;
  display:flex;align-items:center;gap:.5rem;
  color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  transform:translateY(6px);opacity:.85;
  transition:transform .45s var(--ease),opacity .45s var(--ease);
}
.g-item:hover .g-item__label{transform:translateY(0);opacity:1}
.g-item__label .ico{color:var(--gold-200)}
.g-item__btn{position:absolute;inset:0;z-index:4;border-radius:inherit;cursor:zoom-in}
.g-item__btn:focus-visible{outline-offset:-5px}
.gallery__cta{text-align:center;margin-top:2rem}

/* ---------- 15. Why support ---------- */
.why{
  position:relative;overflow:hidden;
  padding-block:clamp(3rem,5.2vw,4.5rem);
  background:linear-gradient(150deg,#276B2B 0%,var(--green) 50%,#1B5320 100%);
  color:#fff;
}
.why::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(60% 80% at 50% 0%,rgba(255,179,0,.16),transparent 68%);
}
.why__in{position:relative}
.why__grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;
  list-style:none;padding:0;
}
.why__item{
  text-align:center;padding:2rem 1.25rem;border-radius:var(--r-lg);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  transition:background-color .4s var(--ease),transform .4s var(--ease);
}
.why__item:hover{background:rgba(255,255,255,.09);transform:translateY(-5px)}
.why__icon{
  display:grid;place-items:center;width:62px;height:62px;margin:0 auto 1.1rem;
  border-radius:50%;background:rgba(255,179,0,.18);color:var(--gold-200);
}
.why__strong{
  font-family:var(--f-display);font-size:1.22rem;color:#fff;line-height:1.3;margin-bottom:.3rem;
}
.why__soft{color:var(--ink-invert-soft);font-size:.94rem}
.why__cta{text-align:center;margin-top:clamp(1.9rem,3.6vw,2.5rem)}

/* ---------- 16. Blog ---------- */
.blog{padding-block:var(--section-y);background:var(--cream)}
.post{
  display:flex;flex-direction:column;
  background:#fff;border-radius:var(--r-lg);overflow:hidden;
  box-shadow:var(--sh-sm);border:1px solid var(--line);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease);
}
.post:hover{transform:translateY(-8px);box-shadow:var(--sh-lg)}
.post__media{position:relative;display:block}
.post__media .media{border-radius:0;aspect-ratio:3/2}
.post:hover .media > img{transform:scale(1.07)}
.post__cat{
  position:absolute;left:1rem;top:1rem;z-index:3;
  background:var(--gold);color:#fff;border-radius:999px;
  padding:.35rem .85rem;font-size:.68rem;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
}
.post__body{padding:1.6rem;display:flex;flex-direction:column;gap:.7rem;flex:1}
.post__meta{
  display:flex;align-items:center;gap:.5rem;
  font-size:.78rem;color:var(--ink-mute);letter-spacing:.03em;
}
.post__meta .ico{color:var(--gold)}
.post__body h3{font-size:1.28rem;line-height:1.3}
.post__body h3 a{transition:color .25s var(--ease)}
.post__body h3 a:hover{color:var(--gold-600)}
.post__body > p{font-size:.94rem;color:var(--ink-mute);flex:1}

/* ---------- 17. Donate CTA ---------- */
.donate{
  position:relative;isolation:isolate;text-align:center;color:#fff;
  padding-block:clamp(3.5rem,6.4vw,5.5rem);
  background-image:
    linear-gradient(180deg,rgba(12,42,92,.86),rgba(16,52,110,.9)),
    url("../img/donate-cta.jpg"),
    linear-gradient(140deg,#2E6FC4,#1B4E9E 55%,#2E7D32);
  background-size:cover;background-position:center;background-attachment:scroll;
}
.donate .eyebrow{justify-content:center}
.donate__in{max-width:52rem;margin-inline:auto}
.donate__title{
  color:#fff;font-size:clamp(2.2rem,1.4rem + 3.2vw,3.75rem);margin-bottom:1.1rem;
}
.donate__title em{font-style:italic;color:var(--gold-200)}
.donate__lead{color:var(--ink-invert-soft);font-size:1.1rem;max-width:44rem;margin-inline:auto}
.donate__tiers{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;
  list-style:none;padding:0;margin:2.5rem 0;
}
.donate__tiers li{
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--r-md);padding:1.25rem 1rem;
  transition:background-color .35s var(--ease),border-color .35s var(--ease);
}
.donate__tiers li:hover{background:rgba(255,255,255,.12);border-color:rgba(255,179,0,.55)}
.donate__tiers strong{
  display:block;font-family:var(--f-display);font-size:1.65rem;color:var(--gold-200);margin-bottom:.25rem;
}
.donate__tiers span{font-size:.85rem;color:var(--ink-invert-soft);line-height:1.5}
.donate__actions{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}
.donate__note{margin-top:1.75rem;font-size:.82rem;color:rgba(255,255,255,.6)}

/* ---------- 18. Contact ---------- */
.contact{padding-block:var(--section-y);background:var(--white)}
.contact__in{
  display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,5vw,4.5rem);align-items:start;
}
.contact__list{list-style:none;padding:0;margin-top:2.25rem;display:grid;gap:1.5rem}
.contact__list li{display:flex;gap:1.1rem;align-items:flex-start}
.contact__list strong{display:block;color:var(--navy);font-weight:700;margin-bottom:.2rem}
.contact__list p{font-size:.95rem;color:var(--ink-mute)}
.contact__list a:hover{color:var(--gold-600)}
.contact__icon{
  display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:16px;
  background:rgba(255,179,0,.13);color:var(--gold-600);
}

.form{
  background:var(--cream);border:1px solid var(--line);
  border-radius:var(--r-xl);padding:clamp(1.75rem,3.5vw,2.75rem);
  box-shadow:var(--sh-md);
}
.form__title{font-size:1.5rem;margin-bottom:1.5rem}
.form__row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.field label{font-size:.8rem;font-weight:600;color:var(--navy);letter-spacing:.04em}
.field label span{color:var(--ink-mute);font-weight:400}
.field input,.field select,.field textarea{
  background:#fff;border:1px solid var(--line-strong);border-radius:var(--r-sm);
  padding:.8rem 1rem;font-size:.95rem;color:var(--ink);
  transition:border-color .25s var(--ease),box-shadow .25s var(--ease);
}
.field textarea{resize:vertical;min-height:120px}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--gold);box-shadow:0 0 0 4px rgba(255,179,0,.16);
}
.field.is-invalid input,.field.is-invalid textarea{border-color:#D0473A}
.form__status{margin-top:1rem;font-size:.9rem;text-align:center;min-height:1.4em}
.form__status.is-ok{color:var(--green-600);font-weight:600}
.form__status.is-err{color:#D0473A;font-weight:600}

/* ---------- 19. Footer ---------- */
.footer{background:var(--navy-700);color:rgba(255,255,255,.72);font-size:.94rem}
.footer__in{
  display:grid;grid-template-columns:1.7fr 1fr 1fr 1.3fr;
  gap:clamp(2rem,4vw,3.5rem);
  padding-block:clamp(2.4rem,4.2vw,3.5rem);
}
.brand--footer .brand__name{color:#fff}
.brand--footer .brand__sub{color:var(--gold-200)}
.footer__tagline{
  font-family:var(--f-display);font-style:italic;color:var(--gold-200);
  margin:1.1rem 0 .85rem;font-size:1.05rem;
}
.footer__about{font-size:.92rem;line-height:1.75;max-width:34ch}
.footer__memorial{
  display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;
  margin-top:1.35rem;padding-top:1.35rem;border-top:1px solid rgba(255,255,255,.12);
  font-size:.85rem;
}
.footer__memorial .ico{color:var(--orange)}
.footer__memorial strong{color:#fff;font-weight:600}

.footer__heading{
  font-family:var(--f-body);font-size:.8rem;font-weight:700;
  letter-spacing:.18em;text-transform:uppercase;color:#fff;margin-bottom:1.35rem;
  position:relative;padding-bottom:.75rem;
}
.footer__heading::after{
  content:"";position:absolute;left:0;bottom:0;width:32px;height:2px;border-radius:2px;background:var(--gold);
}
.footer__links,.footer__contact{list-style:none;padding:0;display:grid;gap:.7rem}
/* cause names can run to two lines, so the marker aligns to the first line */
.footer__links a{
  display:inline-flex;align-items:flex-start;gap:.5rem;font-size:.94rem;line-height:1.45;
  transition:color .25s var(--ease),transform .25s var(--ease);
}
.footer__links a::before{content:"›";color:var(--gold);font-size:1.05rem;line-height:1.35;flex:none}
.footer__links a:hover{color:#fff;transform:translateX(3px)}
.footer__contact li{display:flex;gap:.65rem;align-items:flex-start;line-height:1.6;font-size:.92rem}
.footer__contact .ico{color:var(--gold);margin-top:.35rem}
.footer__contact a:hover{color:#fff}

.social{display:flex;gap:.6rem;list-style:none;padding:0;margin-top:1.5rem}
.social a{
  display:grid;place-items:center;width:42px;height:42px;border-radius:12px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),filter .3s var(--ease);
}
/* each platform in its own brand colour */
.social a[aria-label="Facebook"]{background:#1877F2;border-color:#1877F2}
.social a[aria-label="Instagram"]{
  background:linear-gradient(45deg,#F9CE34 0%,#EE2A7B 45%,#8134AF 72%,#515BD4 100%);
  border-color:transparent;
}
.social a[aria-label="X"]{background:#101014;border-color:#2A2A32}
.social a[aria-label="YouTube"]{background:#FF0000;border-color:#FF0000}
.social a[aria-label="LinkedIn"]{background:#0A66C2;border-color:#0A66C2}
.social a:hover{
  transform:translateY(-4px);
  filter:saturate(1.15) brightness(1.08);
  box-shadow:0 10px 22px rgba(0,0,0,.35);
}

.footer__bar{border-top:1px solid rgba(255,255,255,.12)}
.footer__bar-in{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  padding-block:1.35rem;font-size:.85rem;
}
.footer__made{display:flex;align-items:center;gap:.4rem}
.footer__made .ico{color:var(--orange)}

/* ---------- 20. To top + lightbox ---------- */
.to-top{
  position:fixed;right:clamp(1rem,3vw,2rem);bottom:clamp(1rem,3vw,2rem);z-index:60;
  display:grid;place-items:center;width:48px;height:48px;border-radius:50%;
  background:var(--gold);color:#fff;box-shadow:var(--sh-gold);
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .3s var(--ease),transform .3s var(--ease),visibility .3s;
}
.to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.to-top:hover{background:var(--gold-600)}

.lightbox{
  position:fixed;inset:0;z-index:150;display:grid;place-items:center;
  background:rgba(8,30,66,.93);padding:clamp(1rem,5vw,3rem);
  animation:fadeIn .28s var(--ease);
}
.lightbox[hidden]{display:none}
.lightbox__fig{max-width:min(1100px,100%);text-align:center}
.lightbox__fig img{
  max-height:78vh;width:auto;margin-inline:auto;border-radius:var(--r-md);
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}
.lightbox__fig figcaption{color:rgba(255,255,255,.85);margin-top:1rem;font-size:.95rem}
.lightbox__close{
  position:absolute;top:clamp(1rem,3vw,2rem);right:clamp(1rem,3vw,2rem);
  display:grid;place-items:center;width:48px;height:48px;border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;
  transition:background-color .3s var(--ease)}
.lightbox__close:hover{background:var(--gold)}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* ---------- 21. Scroll reveal ---------- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .75s var(--ease),transform .75s var(--ease)}
.reveal--delay{transition-delay:.12s}
.reveal.is-in{opacity:1;transform:none}
.cards > .reveal.is-in:nth-child(2){transition-delay:.07s}
.cards > .reveal.is-in:nth-child(3){transition-delay:.14s}
.cards > .reveal.is-in:nth-child(4){transition-delay:.21s}
.cards > .reveal.is-in:nth-child(5){transition-delay:.28s}
.cards > .reveal.is-in:nth-child(6){transition-delay:.35s}
.why__grid > .reveal.is-in:nth-child(2){transition-delay:.09s}
.why__grid > .reveal.is-in:nth-child(3){transition-delay:.18s}
.why__grid > .reveal.is-in:nth-child(4){transition-delay:.27s}
.gallery__grid > .reveal.is-in:nth-child(2){transition-delay:.06s}
.gallery__grid > .reveal.is-in:nth-child(3){transition-delay:.12s}
.gallery__grid > .reveal.is-in:nth-child(4){transition-delay:.18s}
.gallery__grid > .reveal.is-in:nth-child(5){transition-delay:.24s}
.gallery__grid > .reveal.is-in:nth-child(6){transition-delay:.30s}
.gallery__grid > .reveal.is-in:nth-child(7){transition-delay:.36s}
.gallery__grid > .reveal.is-in:nth-child(8){transition-delay:.42s}

/* ---------- 21b. Finish pass: grain, figures, type detail ---------- */

/* A whisper of film grain stops the large dark panels reading as flat digital
   fills. Kept at ~5% so it reads as texture, never as noise. */
.impact::after,.why::after,.donate::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  opacity:.055;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:160px 160px;
}
.impact__in,.why__in,.donate__in{position:relative;z-index:2}

/* Figures line up in columns and never jitter while counting */
.stat strong,.hero__trust strong,.about__years strong,.donate__tiers strong{
  font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;
  letter-spacing:-.02em;
}

/* Display type detail */
.brand__name{font-variation-settings:"SOFT" 20,"WONK" 0;letter-spacing:-.01em}
.brand__sub{letter-spacing:.3em}
.nav__link{font-size:var(--t-sm);letter-spacing:0}
/* Poppins is already wide — uppercase micro-type needs less tracking than usual */
.btn{letter-spacing:.085em}
.eyebrow{letter-spacing:.13em}
.link-arrow{letter-spacing:.08em}
.brand__sub{letter-spacing:.26em}
.footer__heading{letter-spacing:.15em}
.memorial__names{font-variation-settings:"SOFT" 34,"WONK" 0}
.memorial__quote p{font-variation-settings:"SOFT" 40,"WONK" 1}
.post__body h3{font-size:var(--t-xl)}
.cause-row__copy h3{font-size:var(--t-2xl)}
.cause-row__intro{font-size:var(--t-lg);font-variation-settings:"SOFT" 40,"WONK" 1}
.why__strong{font-size:var(--t-xl);font-variation-settings:"SOFT" 30,"WONK" 0}
.donate__title,.hero__title,.memorial__names{text-wrap:balance}
.form__title{font-size:var(--t-xl)}

/* Links get a proper underline that draws in rather than snapping on */
.footer__about a,.contact__list a,.footer__contact a{
  background-image:linear-gradient(currentColor,currentColor);
  background-size:0% 1px;background-position:0 100%;background-repeat:no-repeat;
  transition:background-size .35s var(--ease),color .25s var(--ease);
}
.footer__about a:hover,.contact__list a:hover,.footer__contact a:hover{background-size:100% 1px}

/* Quieter scrollbar on the desktop */
@media (min-width:1025px){
  html{scrollbar-color:rgba(16,52,110,.28) transparent;scrollbar-width:thin}
}

/* ---------- 22. Responsive ---------- */
@media (max-width:1180px){
  .cards--5{grid-template-columns:repeat(3,1fr)}
  .missions__grid{gap:1.25rem}
  .nav__list{--nav-tight:1}
  .nav__list{gap:1.15rem}
  .nav__link{font-size:.83rem}
}

@media (max-width:1024px){
  /* backdrop-filter makes an element a containing block for position:fixed
     descendants, so the off-canvas menu inside .header-main was being sized
     and clipped to the header (136px tall) instead of the viewport. The blur
     is dropped below the desktop breakpoint; the background is 92% opaque
     white anyway, so solid white looks the same. */
  .header-main{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}
  .header-main__in{min-height:64px}
  .brand__mark{height:44px}
  .brand__logo--wide{height:46px}
  .site-header.is-stuck .brand__logo--wide{height:42px}
  .header-cta{display:none}
  .nav-toggle{display:flex}
  /* Closed, the panel is display:none so it cannot extend the document's
     scroll width — a fixed element parked at translateX(105%) is NOT clipped
     by body{overflow-x:hidden} and let the whole site pan sideways on a phone.
     It slides in via a keyframe when opened instead of a transition. */
  .nav{
    position:fixed;inset:0 0 0 auto;z-index:75;
    display:none;
    width:min(340px,86vw);
    flex-direction:column;align-items:stretch;justify-content:flex-start;
    gap:0;padding:6.5rem 1.75rem 2rem;
    background:#fff;box-shadow:-20px 0 60px rgba(16,52,110,.18);
    transform:translateX(105%);
    transition:transform .38s var(--ease);
    overflow-y:auto;
  }
  .nav.is-open{display:flex;transform:none;animation:kf-nav-in .38s var(--ease) both}
  @keyframes kf-nav-in{from{transform:translateX(105%)}to{transform:none}}
  .nav__list{flex-direction:column;align-items:stretch;gap:0}
  .nav__list li + li{border-top:1px solid var(--line)}
  .nav__link{display:block;padding:1rem 0;font-size:1rem}
  .nav__link::after{display:none}
  .nav__cta{display:inline-flex;margin-top:1.75rem}

  .hero__in{grid-template-columns:1fr}
  .hero__copy{max-width:none;text-align:center;margin-inline:auto}
  .hero .eyebrow{justify-content:center}
  .hero__lead{margin-inline:auto}
  .hero__actions{justify-content:center}
  .hero__trust{justify-content:center;text-align:center}
  .hero__trust li{align-items:center}
  .hero__visual{max-width:560px;margin-inline:auto;width:100%}
  .media--hero{aspect-ratio:4/3}
  .hero__badge{left:1rem}

  .about__in{grid-template-columns:1fr}
  .about__visual{max-width:600px;margin-inline:auto;width:100%}
  .media--about{aspect-ratio:1342/1172}

  /* single column stacks the photo above the copy, where sticking it to the
     top would leave the text scrolling out from under it */
  .cause-row{grid-template-columns:1fr;gap:1.75rem}
  .media--cause{position:static}
  .cause-row--flip .media{order:0}
  .media--cause,.cause-row--flip .media--cause{border-radius:var(--r-lg)}

  .contact__in{grid-template-columns:1fr}
  .footer__in{grid-template-columns:1fr 1fr}
  .footer__col--brand{grid-column:1 / -1}

  /* Three mission cards side by side get too narrow here, so each one turns
     on its side: photograph left, story right. The icon badge can no longer
     straddle the photo edge, so it joins the text flow. */
  .missions__grid{grid-template-columns:1fr;gap:1.5rem}
  .mission{flex-direction:row;align-items:stretch}
  .media--mission{width:38%;flex:none;aspect-ratio:auto}
  .mission__body{flex:1;padding:1.9rem}
  .mission__icon{
    position:static;width:52px;height:52px;border-radius:15px;
    background:var(--cream);box-shadow:none;margin-bottom:.1rem;
  }
  .mission:hover .mission__icon{transform:none}

  .why__grid{grid-template-columns:repeat(2,1fr);gap:1.25rem}
  .stats--invert{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:860px){
  .header-top__meta{display:none}
  .header-top__in{justify-content:space-between;gap:.75rem;min-height:38px;flex-wrap:nowrap}
  .header-top__memorial{font-size:.7rem;line-height:1.35}
  .lang__btn{padding:.28rem .5rem;font-size:.72rem}

  .cards--5,.cards--6,.cards--3{grid-template-columns:repeat(2,1fr)}
  .tributes{grid-template-columns:1fr;gap:2rem;max-width:34rem;margin-inline:auto}
  .stats--light{grid-template-columns:repeat(2,1fr);gap:1.5rem 1rem}
  /* two columns cannot honour the mosaic without leaving holes in the grid */
  .gallery__grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:200px}
  .g-item--wide,.g-item--tall{grid-column:auto;grid-row:auto}
  .donate__tiers{grid-template-columns:1fr}
}

@media (max-width:600px){
  :root{--section-y:clamp(3.25rem,10vw,4.5rem)}
  .cards--5,.cards--6,.cards--3{grid-template-columns:1fr}
  /* a 38% photo column is too narrow to read on a phone — stack it back up */
  .mission{flex-direction:column}
  .media--mission{width:100%;aspect-ratio:11/8}
  .mission__body{padding:1.75rem 1.4rem 1.6rem}
  .section-head--split{flex-direction:column;align-items:flex-start}
  .hero__trust{gap:1.5rem 2rem}
  .hero__trust strong{font-size:1.4rem}
  .brand__logo--wide{height:40px}
  .site-header.is-stuck .brand__logo--wide{height:38px}
  .hero__badge{position:static;margin-top:1rem;justify-content:center}
  .about__years{left:.5rem;top:.75rem;padding:.7rem 1rem}
  .about__years strong{font-size:1.7rem}
  .media--about-inset{width:52%;right:-.25rem}
  .form__row{grid-template-columns:1fr}
  .gallery__grid{grid-template-columns:1fr;grid-auto-rows:230px}
  .g-item--wide,.g-item--tall{grid-column:auto;grid-row:auto}
  .footer__in{grid-template-columns:1fr}
  .footer__bar-in{justify-content:center;text-align:center}
  .btn{padding:.85rem 1.35rem;font-size:.76rem}
  .btn--lg{padding:.95rem 1.65rem;font-size:.8rem}
}

/* Small phones: two columns of "why support us" leave about 120px of text
   width, which is not enough for these lines. */
@media (max-width:440px){
  .why__grid{grid-template-columns:1fr}
  .stats--light,.stats--invert{grid-template-columns:1fr}
  .hero__trust{gap:1.25rem 1.75rem}
}

/* ---------- 23. Motion / print ---------- */
@media (prefers-reduced-motion:reduce){
  html:focus-within{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;scroll-behavior:auto !important;
  }
  .reveal{opacity:1;transform:none}
}

@media print{
  .site-header,.to-top,.nav,.lightbox,.donate__actions,.form{display:none !important}
  body{color:#000;background:#fff}
  .reveal{opacity:1;transform:none}
}

/* ---------- 24. Donation enquiry modal ---------- */
.modal{position:fixed;inset:0;z-index:160;display:grid;place-items:center;padding:clamp(.75rem,3vw,2rem)}
.modal[hidden]{display:none}
.modal__scrim{position:absolute;inset:0;background:rgba(8,26,54,.68);backdrop-filter:blur(3px);animation:fadeIn .25s var(--ease)}
.modal__panel{
  position:relative;z-index:1;width:min(680px,100%);max-height:92vh;overflow-y:auto;
  background:linear-gradient(180deg,#fff,var(--cream));
  border-radius:var(--r-xl);padding:clamp(1.5rem,3.5vw,2.6rem);
  box-shadow:0 40px 90px rgba(8,26,54,.45);
  animation:modalIn .32s var(--ease);
}
@keyframes modalIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
.modal__close{
  position:absolute;top:.9rem;right:.9rem;display:grid;place-items:center;
  width:40px;height:40px;border-radius:50%;color:var(--navy);
  background:rgba(16,52,110,.07);transition:background-color .25s var(--ease),transform .25s var(--ease);
}
.modal__close:hover{background:var(--gold);color:#fff;transform:rotate(90deg)}
.modal__title{font-size:var(--t-2xl);margin-bottom:.5rem}
.modal__lead{color:var(--ink-mute);font-size:var(--t-sm);margin-bottom:1.5rem}

.dform__row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.dform .field{margin-bottom:1rem}
.req{color:var(--orange)}
.opt{color:var(--ink-mute);font-weight:400}
.field__err{font-size:.78rem;color:#C4362A;margin-top:.3rem;min-height:0;display:none}
.field.is-invalid .field__err{display:block}
.field.is-invalid input,.field.is-invalid select,.field.is-invalid textarea{
  border-color:#C4362A;box-shadow:0 0 0 3px rgba(196,54,42,.12);
}

.amounts{border:0;padding:0;margin:0 0 1rem}
.amounts legend{font-size:.8rem;font-weight:600;color:var(--navy);letter-spacing:.04em;margin-bottom:.5rem}
.amounts__chips{display:flex;flex-wrap:wrap;gap:.55rem}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;opacity:0;width:0;height:0}
.chip span{
  display:block;padding:.6rem 1.1rem;border-radius:999px;
  border:1.5px solid var(--line-strong);background:#fff;
  font-size:.9rem;font-weight:600;color:var(--navy);
  transition:border-color .22s var(--ease),background-color .22s var(--ease),color .22s var(--ease);
}
.chip:hover span{border-color:var(--gold)}
.chip input:checked + span{background:var(--orange);border-color:var(--orange);color:#fff}
.chip input:focus-visible + span{outline:3px solid var(--gold);outline-offset:2px}
.amounts__other{margin-top:.7rem;width:100%;
  background:#fff;border:1px solid var(--line-strong);border-radius:var(--r-sm);
  padding:.8rem 1rem;font-size:.95rem;color:var(--ink)}
.amounts__other[hidden]{display:none}

.check{display:flex;align-items:flex-start;gap:.6rem;font-size:.88rem;color:var(--ink-soft);margin-bottom:1.25rem;cursor:pointer}
.check input{width:18px;height:18px;margin-top:.15rem;accent-color:var(--green);flex:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.dform__note{font-size:.76rem;color:var(--ink-mute);text-align:center;margin-top:.9rem}

@media (max-width:600px){
  .dform__row{grid-template-columns:1fr;gap:0}
  .modal__panel{border-radius:var(--r-lg)}
}
/* ---------- 25. Internal pages ---------- */
/* Every page below the homepage opens with the same shallow banner: a dark
   brand-gradient strip carrying a breadcrumb, a title and one line of lead.
   It is deliberately much shorter than the homepage hero so the content
   starts near the top of the fold. */
.page-hero{
  position:relative;overflow:hidden;isolation:isolate;color:var(--ink-invert-soft);
  padding-block:clamp(2.6rem,5vw,4.2rem);
  background:
    radial-gradient(60% 90% at 88% 0%,rgba(255,179,0,.20),transparent 62%),
    linear-gradient(112deg,var(--navy-900) 0%,var(--navy-700) 46%,#1B5320 100%);
}
.page-hero::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:repeating-conic-gradient(from 205deg at 88% -10%,
    rgba(255,255,255,.045) 0deg 1.6deg,transparent 1.6deg 9deg);
}
.page-hero__in{position:relative;max-width:62rem}
.page-hero h1{
  color:#fff;font-size:var(--t-3xl);margin-bottom:.85rem;
}
.page-hero h1 em{font-style:italic;color:var(--gold-200);font-variation-settings:"SOFT" 40,"WONK" 1}
.page-hero__lead{font-size:var(--t-lg);line-height:1.62;color:rgba(255,255,255,.84);max-width:56ch}

.crumbs{
  display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;
  list-style:none;padding:0;margin-bottom:1.1rem;
  font-size:var(--t-xs);letter-spacing:.1em;text-transform:uppercase;font-weight:600;
  color:rgba(255,255,255,.62);
}
.crumbs li{display:flex;align-items:center;gap:.5rem}
.crumbs li + li::before{content:"›";color:var(--gold);font-size:1.05rem;line-height:1}
.crumbs a{transition:color .25s var(--ease)}
.crumbs a:hover{color:var(--gold-200)}
.crumbs [aria-current]{color:#fff}

/* generic page section wrapper */
.page-section{padding-block:var(--section-y)}
.page-section--cream{background:var(--cream)}
.page-section--white{background:var(--white)}
.page-section--tight{padding-block:clamp(2.2rem,4vw,3.4rem)}

/* long-form body copy: article pages, policy text, story pages */
.prose{max-width:68ch;font-size:1.02rem;line-height:1.85}
.prose > * + *{margin-top:1.15rem}
.prose h2{font-size:clamp(1.5rem,1.2rem + 1.1vw,2.05rem);margin-top:2.6rem;margin-bottom:.2rem}
.prose h3{font-size:clamp(1.2rem,1.05rem + .6vw,1.45rem);margin-top:2rem;margin-bottom:.1rem}
.prose strong{color:var(--navy);font-weight:600}
.prose a{color:var(--green-600);text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:var(--gold-600)}
.prose ul,.prose ol{padding-left:1.15rem;display:grid;gap:.55rem}
.prose li{padding-left:.25rem}
.prose li::marker{color:var(--gold)}
.prose blockquote{
  margin-block:1.9rem;padding:1.4rem 1.6rem;border-left:3px solid var(--gold);
  background:var(--cream);border-radius:0 var(--r-md) var(--r-md) 0;
  font-family:var(--f-display);font-style:italic;font-size:1.14rem;line-height:1.72;color:var(--ink);
}
.prose figure{margin-block:2rem}
.prose figure img{border-radius:var(--r-lg);width:100%}
.prose figcaption{margin-top:.7rem;font-size:.84rem;color:var(--ink-mute);text-align:center}

/* two-column page body: article + sticky rail */
.with-rail{display:grid;grid-template-columns:minmax(0,1fr) 20rem;gap:clamp(2rem,4.5vw,3.75rem);align-items:start}
.rail{position:sticky;top:104px;display:grid;gap:1.25rem}
.rail__card{
  background:var(--cream);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:1.6rem 1.4rem;
}
.rail__card--dark{
  background:linear-gradient(155deg,var(--navy-700),var(--navy-900));
  border-color:rgba(255,255,255,.14);color:var(--ink-invert-soft);
}
.rail__card--dark h3{color:#fff}
.rail__card h3{font-size:1.12rem;margin-bottom:.7rem}
.rail__card p{font-size:.9rem;line-height:1.7;color:var(--ink-mute)}
.rail__card--dark p{color:var(--ink-invert-soft)}
.rail__card .btn{margin-top:1.1rem}
.rail__list{list-style:none;padding:0;display:grid;gap:.55rem;font-size:.92rem}
.rail__list a{display:flex;gap:.5rem;transition:color .25s var(--ease)}
.rail__list a::before{content:"›";color:var(--gold);flex:none}
.rail__list a:hover{color:var(--gold-600)}

/* filter chips (gallery, stories) */
.filters{
  display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;
  margin-bottom:clamp(1.6rem,3vw,2.4rem);
}
.filter{
  display:inline-flex;align-items:center;min-height:44px;
  padding:.6rem 1.15rem;border-radius:999px;border:1.5px solid var(--line-strong);
  background:var(--white);color:var(--ink-mute);
  font-size:var(--t-xs);font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  transition:background-color .28s var(--ease),color .28s var(--ease),border-color .28s var(--ease);
}
.filter:hover{border-color:var(--navy);color:var(--navy)}
.filter[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.is-filtered-out{display:none !important}
.filters__empty{text-align:center;color:var(--ink-mute);padding-block:2rem}

/* article header + meta */
.article__head{max-width:68ch}
.article__meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;
  font-size:.82rem;color:var(--ink-mute);letter-spacing:.03em;margin-bottom:1.25rem;
}
.article__meta .ico{color:var(--gold)}
.article__lead{
  font-family:var(--f-display);font-size:clamp(1.15rem,1.05rem + .6vw,1.42rem);
  line-height:1.66;color:var(--ink);font-style:italic;margin-bottom:1.6rem;
}
.article__hero{
  border-radius:var(--r-lg);overflow:hidden;margin-bottom:clamp(1.8rem,3.4vw,2.6rem);
  aspect-ratio:16/9;box-shadow:var(--sh-md);
}
.article__share{
  display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;
  margin-top:2.5rem;padding-top:1.6rem;border-top:1px solid var(--line);
  font-size:.85rem;color:var(--ink-mute);
}

/* a light band that closes an internal page */
.endcap{
  text-align:center;padding-block:clamp(2.8rem,5vw,4.2rem);
  background:linear-gradient(160deg,var(--cream-200),var(--cream));
}
.endcap h2{font-size:var(--t-2xl);margin-bottom:.8rem}
.endcap p{max-width:52ch;margin:0 auto 1.75rem;color:var(--ink-mute)}
.endcap__actions{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}

/* numbered "how it works" steps */
.steps{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;
  list-style:none;padding:0;counter-reset:step;
}
.step{
  position:relative;background:var(--white);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:2.2rem 1.5rem 1.6rem;box-shadow:var(--sh-sm);
}
.step::before{
  counter-increment:step;content:counter(step,decimal-leading-zero);
  position:absolute;top:-.7rem;left:1.5rem;
  font-family:var(--f-display);font-size:2.4rem;line-height:1;letter-spacing:-.04em;
  color:transparent;-webkit-text-stroke:1.6px rgba(255,179,0,.9);
}
@supports not (-webkit-text-stroke:1px #000){ .step::before{color:var(--gold)} }
.step h3{font-size:1.15rem;margin:.9rem 0 .5rem}
.step p{font-size:.92rem;color:var(--ink-mute);line-height:1.7}

/* fact / figure rows used on the mission and cause pages */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:1rem;list-style:none;padding:0;margin-top:1.5rem}
.facts li{
  background:var(--cream);border:1px solid var(--line);border-radius:var(--r-md);
  padding:1.25rem 1.15rem;
}
.facts strong{
  display:block;font-family:var(--f-display);font-size:1.6rem;line-height:1;
  color:var(--navy);margin-bottom:.3rem;
}
.facts span{font-size:.85rem;color:var(--ink-mute);line-height:1.55}

/* FAQ */
.faq{display:grid;gap:.85rem;max-width:56rem;margin-inline:auto}
.faq details{
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-md);
  padding:1.15rem 1.35rem;transition:border-color .28s var(--ease),box-shadow .28s var(--ease);
}
.faq details[open]{border-color:rgba(255,179,0,.5);box-shadow:var(--sh-sm)}
.faq summary{
  cursor:pointer;list-style:none;font-family:var(--f-display);font-size:1.08rem;
  color:var(--navy);display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+";flex:none;font-family:var(--f-body);font-size:1.4rem;line-height:1;
  color:var(--gold);transition:transform .28s var(--ease);
}
.faq details[open] summary::after{content:"−"}
.faq p{margin-top:.85rem;font-size:.95rem;line-height:1.75;color:var(--ink-mute)}

@media (max-width:1024px){
  .with-rail{grid-template-columns:1fr}
  .rail{position:static;grid-template-columns:repeat(2,1fr);display:grid}
  .steps{grid-template-columns:1fr}

}
@media (max-width:700px){
  .rail{grid-template-columns:1fr}

  .prose{font-size:.99rem}
}
/* featured story: one wide card at the head of the blog index */
.feature{
  display:grid;grid-template-columns:1.05fr .95fr;align-items:stretch;
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-xl);
  overflow:hidden;box-shadow:var(--sh-md);
  transition:transform .45s var(--ease),box-shadow .45s var(--ease);
}
.feature:hover{transform:translateY(-6px);box-shadow:var(--sh-lg)}
.feature__media{position:relative;display:block}
.feature__media .media{border-radius:0;height:100%;min-height:280px}
.feature:hover .media > img{transform:scale(1.05)}
.feature__body{
  display:flex;flex-direction:column;align-items:flex-start;gap:.9rem;
  padding:clamp(1.75rem,3.4vw,2.75rem);
}
.feature__body h2{font-size:clamp(1.5rem,1.2rem + 1.2vw,2.1rem)}
.feature__body > p{color:var(--ink-mute);font-size:1rem;line-height:1.75}
.feature__body .btn{margin-top:.4rem}
@media (max-width:860px){
  .feature{grid-template-columns:1fr}
  .feature__media .media{aspect-ratio:16/9;min-height:0}
}
/* plain card tile — the numbered .step without the numeral */
.tile{
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:1.9rem 1.5rem 1.6rem;box-shadow:var(--sh-sm);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease),border-color .4s var(--ease);
}
.tile:hover{transform:translateY(-6px);box-shadow:var(--sh-lg);border-color:rgba(255,179,0,.3)}
.tile h3{font-size:1.15rem;margin-bottom:.55rem;color:var(--navy)}
.tile p{font-size:.92rem;color:var(--ink-mute);line-height:1.7}
/* ---------- 26. Impact page ---------- */
/* A plain figures table. Numbers are the point, so they get the display face
   and everything else stays quiet. */
.itable-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--white)}
.itable{width:100%;border-collapse:collapse;min-width:34rem;font-size:.95rem}
.itable caption{
  text-align:left;padding:1.25rem 1.4rem .25rem;
  font-size:var(--t-xs);font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-600);
}
.itable th,.itable td{padding:.95rem 1.4rem;text-align:left;vertical-align:baseline}
.itable thead th{
  font-family:var(--f-body);font-size:var(--t-xs);font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:var(--ink-mute);
  border-bottom:2px solid var(--line-strong);
}
.itable tbody tr + tr{border-top:1px solid var(--line)}
.itable tbody tr:hover{background:var(--cream)}
.itable td:first-child{color:var(--navy);font-weight:600}
.itable .num{
  font-family:var(--f-display);font-size:1.35rem;line-height:1;color:var(--navy);
  white-space:nowrap;
}
.itable td:last-child{color:var(--ink-mute);font-size:.9rem;line-height:1.6}
.itable__note{
  margin-top:1rem;font-size:.85rem;color:var(--ink-mute);line-height:1.7;max-width:64ch;
}

/* Dated milestones down a gold spine. */
.timeline{list-style:none;padding:0;margin:0;position:relative}
.timeline::before{
  content:"";position:absolute;left:7px;top:.6rem;bottom:.6rem;width:2px;
  background:linear-gradient(180deg,var(--gold),rgba(255,179,0,.15));
}
.timeline li{position:relative;padding:0 0 1.9rem 2.4rem}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{
  content:"";position:absolute;left:0;top:.5rem;width:16px;height:16px;border-radius:50%;
  background:var(--white);border:3px solid var(--gold);
}
.timeline time{
  display:block;font-size:var(--t-xs);font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--green-600);margin-bottom:.3rem;
}
.timeline h3{font-size:1.12rem;margin-bottom:.35rem}
.timeline p{font-size:.93rem;line-height:1.72;color:var(--ink-mute)}

/* honest caveats, set apart from the claims */
.caveat{
  border:1px dashed var(--line-strong);border-radius:var(--r-lg);
  background:var(--white);padding:clamp(1.5rem,3vw,2.25rem);
  max-width:68rem;margin-inline:auto;
}
.caveat h3{font-size:1.2rem;margin-bottom:.75rem}
.caveat ul{list-style:none;padding:0;display:grid;gap:.75rem;margin-top:1.1rem}
.caveat li{display:flex;gap:.7rem;align-items:flex-start;font-size:.95rem;line-height:1.7;color:var(--ink-mute)}
.caveat li::before{content:"—";color:var(--gold);flex:none;font-weight:700}
@media (max-width:700px){
  .itable th,.itable td{padding:.8rem 1rem}
}
/* A page banner already carries generous padding of its own, so the section
   directly beneath it does not need a full section's worth on top as well. */
.page-hero + .page-section{padding-top:clamp(2.2rem,4vw,3.2rem)}
.page-hero + .impact{padding-top:clamp(2.2rem,4vw,3.2rem)}
/* Very small phones: the longest button label ("Start a Donation Enquiry") is
   nowrap and came within a few pixels of the viewport at 320px. */
@media (max-width:440px){
  .btn--lg{font-size:.74rem;padding:.9rem 1.25rem}
  .btn{padding:.8rem 1.15rem}
}
/* nothing in long-form copy should be able to push the page sideways */
.prose,.page-hero__lead,.section-lead,.tribute__text,.mission__body p{overflow-wrap:break-word}
/* ---------- 27. Touch targets ---------- */
/* Anything tappable clears 44px. The amount chips and the language switcher
   were both around 25-36px, which is fiddly on a phone. */
.chip span{display:flex;align-items:center;justify-content:center;min-height:44px}
.lang__btn{min-height:40px}
.header-top__in{min-height:44px}
.check{padding-block:.35rem}
.check input[type="checkbox"]{width:20px;height:20px;flex:none;margin-top:.1rem;accent-color:var(--green-600)}
.footer__links a,.rail__list a,.crumbs a{padding-block:.15rem}
/* the amount radio is visually replaced by its chip, so keep it reachable */
.amounts__chips input[type="radio"]{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
/* ---------- 28. Narrow-screen shrink guards ---------- */
/* A flex item defaults to min-width:auto, so it refuses to shrink below its
   longest unbreakable word. "info@kiranfoundation.in" has no break opportunity,
   which pushed the contact column past the viewport at 320px. */
.contact__list li > div,
.footer__contact li,
.rail__card,
.tribute,
.mission__body,
.cause-row__copy{min-width:0}
.contact__list p,
.contact__list a,
.footer__contact a,
.footer__contact li,
.rail__card p,
.rail__card a{overflow-wrap:anywhere}
/* Grid and flex items default to min-width:auto, so a track inflates to its
   content's min-content width and overflows the container. On the contact page
   the <select> ("Tell you about a family in need") gave the form column a
   345px minimum inside a 280px container. Letting items shrink fixes it, and
   the controls are capped so they wrap instead of pushing outwards. */
.contact__in > *,
.with-rail > *,
.hero__in > *,
.about__in > *,
.cause-row > *,
.feature > *,
.form__row > *,
.dform__row > *,
.footer__in > *{min-width:0}
.field input,.field select,.field textarea{min-width:0;width:100%;max-width:100%}
.form,.dform{max-width:100%}