/* Nilambur Snehalayam
 *
 * Palette (60 / 30 / 10), built in OKLCH:
 *   60  monsoon paper  oklch(97.6% 0.007 255)  a cool white, tinted toward the logo blue (not cream)
 *   30  logo navy      oklch(30% 0.115 264)    straight from the trust's logo
 *   10  lamp saffron   oklch(70% 0.175 52)     the flame of the nilavilakku and the saffron of a Hindu trust:
 *                                              warm against an all-cool page, opposite blue on the wheel.
 *   Saffron is spent only on the hero's "56 children", on money buttons (Donate / Sponsor / Pay) and on the
 *   kasavu band in the footer. Everything else is navy, paper and tinted greys.
 *
 * Type: one family, Anek Malayalam (a Kerala foundry's face, so English and Malayalam match). Headings and
 *       figures use its narrowest width at heavy weight, like hand-painted Malayalam film posters.
 * Texture: a fine paper grain over the whole page, like the trust's printed receipts. Nothing else decorates.
 */
:root {
  interpolate-size: allow-keywords;

  --navy: oklch(30% 0.115 264);
  --navy-deep: oklch(21% 0.08 264);
  --navy-2: oklch(40% 0.2 264);
  --saffron: oklch(70% 0.175 52);
  --saffron-hi: oklch(75% 0.16 58);
  --saffron-soft: oklch(90% 0.06 60);

  --paper: oklch(97.6% 0.007 255);
  --surface: oklch(99.4% 0.003 255);
  --tint: oklch(94.5% 0.022 262);
  --ink: oklch(22% 0.035 264);
  --muted: oklch(47% 0.035 264);
  --line: oklch(30% 0.08 264 / 0.13);
  --line-strong: oklch(30% 0.08 264 / 0.32);
  --on-navy-line: oklch(100% 0 0 / 0.18);
  --err: oklch(50% 0.18 28);

  /* names used by app.js-generated markup and older rules */
  --primary: var(--navy);
  --primary-2: var(--navy-2);
  --primary-deep: var(--navy-deep);
  --accent: var(--saffron);
  --accent-hover: var(--saffron-hi);
  --accent-soft: var(--saffron-soft);
  --on-accent: var(--navy-deep);
  --white: #fff;
  --border-strong: var(--line-strong);

  --serif: "Anek Malayalam", system-ui, sans-serif;
  --sans: "Anek Malayalam", system-ui, sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1180px;
  --shadow: 0 1px 1px oklch(30% 0.1 264 / 0.06), 0 4px 10px -4px oklch(30% 0.1 264 / 0.12), 0 22px 44px -28px oklch(30% 0.1 264 / 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .14 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
/* paper grain over everything; the UI stays flat and simple on top of it */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; background-image: var(--grain); opacity: .07; mix-blend-mode: multiply; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--saffron-soft); color: var(--navy-deep); }

h1, h2, h3 { margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: 0; color: var(--navy); }
h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.3rem); }
h3 { font-weight: 650; font-variation-settings: "wdth" 104; font-size: 1.25rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }
section > .wrap > h2, .section-head h2 { margin-top: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 70; }
.skip:focus { left: 8px; }

/* kasavu: the gold border of Kerala's handloom cloth. Footer and blog only. */
.kasavu {
  height: 12px;
  background:
    linear-gradient(var(--saffron), var(--saffron)) 0 2px / 100% 4px no-repeat,
    linear-gradient(var(--saffron), var(--saffron)) 0 8px / 100% 1.5px no-repeat;
}
.kasavu--thin { height: 7px; background: linear-gradient(var(--saffron), var(--saffron)) 0 2px / 100% 3px no-repeat; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  font: inherit; font-weight: 650; font-size: 1.0625rem; line-height: 1;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, scale 150ms ease-out;
}
.btn:active { scale: 0.97; }
.btn--gold { background: var(--saffron); color: var(--on-accent); box-shadow: 0 1px 0 oklch(100% 0 0 / .35) inset, 0 6px 16px -8px oklch(55% 0.17 48 / .7); }
.btn--gold:hover { background: var(--saffron-hi); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { border-color: oklch(100% 0 0 / .55); color: var(--white); }
.btn--ghost:hover { background: oklch(100% 0 0 / .1); border-color: var(--white); }
.btn--outline { border-color: var(--line-strong); color: var(--navy); background: var(--surface); }
.btn--outline:hover { border-color: var(--navy); }
.btn--lg { min-height: 62px; padding: 0 34px; font-size: 1.22rem; }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0 4px; font: inherit; font-size: .95em; color: var(--navy-2); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--paper) 92%, transparent); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 8px 12px; border-radius: 999px; transition: background-color 150ms ease-out; }
.nav a:hover { background: var(--tint); }
.top__cta { min-height: 44px; padding: 0 20px; }
@media (max-width: 960px) { .nav { display: none; } .top__cta { margin-left: auto; } .brand img { height: 36px; } }

/* ---------- hero: navy page, photo straddling into the paper below ---------- */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(var(--navy) 0 calc(100% - clamp(90px, 14vw, 190px)), transparent 0) no-repeat;
  padding-top: clamp(44px, 7vw, 96px);
}
.hero::before { content: ""; position: absolute; inset: 0 0 clamp(90px, 14vw, 190px); background: radial-gradient(in oklch 90% 70% at 85% 0%, oklch(40% 0.14 264 / .9), transparent 70%); pointer-events: none; }
.hero__body { position: relative; }
.hero__ml { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); color: var(--saffron-soft); margin: 0 0 .2em; font-weight: 500; }
.hero h1 { color: var(--white); font-size: clamp(2.7rem, 1.1rem + 5.4vw, 5.6rem); line-height: 1.02; max-width: 17ch; margin-bottom: .45em; }
.hero h1 .hl { color: var(--saffron); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.hero__lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 46ch; color: oklch(100% 0 0 / .82); margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; margin-top: clamp(32px, 5vw, 56px); }
.hero__img { width: 100%; aspect-ratio: 16 / 7.5; object-fit: cover; object-position: center 38%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .hero .btn--lg { flex: 1 1 100%; }
}

/* ---------- shared section rhythm ---------- */
.what, .story, .leader, .ways, .meal, .give, .blog-teaser, .life-wall, .videos, .trust, .visit { padding-block: clamp(64px, 9vw, 112px); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.lede { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--muted); }

/* ---------- photo slots ---------- */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--tint); }
.photo > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms var(--ease-out); }
/* crops keep faces in frame: aim above centre by default, at the very top for portrait-shaped award photos */
.photo > img { object-position: 50% 28%; }
.photo--top > img { object-position: 50% 4%; }
.photo.is-hidden { display: none; }
.photo.is-missing > img { display: none; }
.photo.is-missing { border: 1.5px dashed var(--line-strong); background: var(--tint); display: grid; place-items: center; min-height: 140px; padding: 16px; }
.photo.is-missing::before { content: "Photo needed: " attr(data-need); color: var(--navy); font-size: .95rem; font-weight: 600; text-align: center; max-width: 30ch; line-height: 1.35; }
.photo.is-missing figcaption { display: none; }

/* ---------- 1. what we do ---------- */
.what__intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 16px 56px; align-items: start; }
.what__intro h2 { margin: 0; }
.what__intro p { font-size: 1.15rem; margin: .4em 0 0; }
.what__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.tile { border-radius: 0; background: none; overflow: visible; }
.tile > img { aspect-ratio: 3 / 4; height: auto; border-radius: var(--r-md); }
.tile figcaption { padding: 14px 2px 0; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.tile figcaption strong { display: block; color: var(--navy); font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.1; margin-bottom: 4px; }
.tile.is-missing > img { display: none; }
.tile.is-missing { aspect-ratio: 3 / 4; border-radius: var(--r-md); }
@media (max-width: 860px) { .what__intro { grid-template-columns: 1fr; } .what__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the facts read as one ruled ledger line, not boxes */
.facts__list { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.what__facts { margin-top: 48px; }
.facts__list dt { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 1.6rem + 2vw, 3.4rem); line-height: 1; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.facts__list dd { margin: 6px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.35; max-width: 18ch; }

/* ---------- forms: shared ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 650; margin-bottom: 10px; padding: 0; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.0625rem; min-height: 50px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); width: 100%;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: oklch(30% 0.08 264 / .5); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-2); outline: none; box-shadow: 0 0 0 4px oklch(40% 0.2 264 / .14); }
.field__err { color: var(--err); font-size: .95rem; margin: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); animation: shake 360ms ease-out; }
@keyframes shake { 0%, 100% { translate: 0; } 17% { translate: -10px; } 33% { translate: 10px; } 50% { translate: -6px; } 67% { translate: 6px; } 83% { translate: -2px; } }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 20px; font-size: 1rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.fine { font-size: .92rem; color: var(--muted); margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.opt { font-weight: 400; color: var(--muted); }
.form__status { margin: 12px 0 0; font-size: 1rem; min-height: 1.2em; }
.form__status.is-ok { color: var(--navy-2); font-weight: 600; }
.form__status.is-err { color: var(--err); }
.form__status a { font-weight: 600; }
button[disabled] { opacity: .6; cursor: progress; }

/* ---------- 2. how it all started ---------- */
.story { background: var(--surface); border-block: 1px solid var(--line); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story__photo { border-radius: var(--r-lg); }
.story__motto { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.3; color: var(--navy); }
.story__motto span { font-family: var(--sans); font-weight: 600; }
.journey { margin-top: clamp(56px, 7vw, 88px); }
.journey h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; color: var(--navy); }
.milestones { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 20px; }
.milestones li.is-hidden { display: none; }
.milestones .photo { margin-bottom: 14px; }
.milestones time { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--navy); line-height: 1.1; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.milestones p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .story__grid { grid-template-columns: 1fr; } }

/* ---------- 3. who is heading it ---------- */
.leader__grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.leader__photo { margin: 0; position: sticky; top: 100px; }
.arch { display: block; overflow: hidden; border-radius: 999px 999px var(--r-md) var(--r-md); background: var(--navy); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.arch--lg { aspect-ratio: 3 / 4.4; }
.leader__name { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 500; color: var(--navy); margin-bottom: .15em; line-height: 1.05; }
.leader__aka { color: var(--muted); font-size: 1.15rem; }
.letter { margin: 36px 0; padding: 0; font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.35; color: var(--navy); }
.letter p { max-width: 30ch; margin-bottom: .6em; }
.letter footer { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); }
@media (max-width: 860px) { .leader__grid { grid-template-columns: 1fr; } .leader__photo { position: static; max-width: 280px; } }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.strip .photo { aspect-ratio: 4 / 5; cursor: zoom-in; }
.strip .photo.is-missing { cursor: default; }
.strip figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content; padding: 6px 12px; border-radius: 999px; color: var(--navy-deep); font-size: .88rem; font-weight: 600; background: oklch(99% 0.003 255 / .9); backdrop-filter: blur(6px); }
@media (hover: hover) { .strip .photo:hover > img, .wall__item:hover > img, .way:hover .photo > img { transform: scale(1.03); } }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 4. ways to contribute ---------- */
.ways { background: var(--surface); border-top: 1px solid var(--line); }
.ways__main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.way { display: block; text-decoration: none; color: var(--ink); }
.way .photo { border-radius: var(--r-lg); }
.way__body { display: block; padding: 18px 2px 0; }
.way h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem); margin-bottom: .2em; }
.way p { color: var(--muted); margin-bottom: .6em; }
.way__price { display: inline-block; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; padding: 6px 14px; border-radius: 999px; background: var(--tint); }
.ways__more { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ways__more li.is-hidden { display: none; }
.ways__more a { display: grid; gap: 12px; color: var(--ink); text-decoration: none; }
.ways__more a span { font-size: .98rem; color: var(--muted); line-height: 1.4; }
.ways__more a strong { display: block; font-size: 1.1rem; color: var(--navy); }
.ways__more a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 860px) { .ways__main { grid-template-columns: 1fr; } .ways__more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sponsor a meal ---------- */
.meal { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: 0; }
.meal__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.meal__photo { margin: 28px 0 0; }
.meal__photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.meal__form { position: sticky; top: 96px; }
@media (max-width: 900px) { .meal__grid { grid-template-columns: 1fr; } .meal__form { position: static; } }

.plan { display: grid; gap: 10px; margin-bottom: 20px; }
.plan__opt input { position: absolute; opacity: 0; }
.plan__box { display: flex; align-items: baseline; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; transition: border-color 150ms ease-out, background-color 150ms ease-out, scale 150ms ease-out; }
.plan__box:active { scale: 0.985; }
.plan__amt { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy); min-width: 5ch; font-variant-numeric: lining-nums tabular-nums; }
.plan__what { color: var(--muted); line-height: 1.35; }
.plan__opt input:checked + .plan__box { border-color: var(--navy); background: var(--tint); box-shadow: 0 0 0 1px var(--navy) inset; }
.plan__opt input:focus-visible + .plan__box { outline: 3px solid var(--navy-2); outline-offset: 3px; }

/* ---------- give: navy band ---------- */
.give { position: relative; background: var(--navy); color: var(--white); }
.give::before { content: ""; position: absolute; inset: 0; background: radial-gradient(in oklch 70% 60% at 10% 0%, oklch(40% 0.14 264 / .8), transparent 70%); pointer-events: none; }
.give > .wrap { position: relative; }
.give h2 { color: var(--white); }
.give__lede { color: oklch(100% 0 0 / .8); font-size: 1.15rem; }
.give__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 32px; align-items: start; }
.give .card { color: var(--ink); border: 0; }
.give .fine { color: var(--muted); }
@media (max-width: 860px) { .give__grid { grid-template-columns: 1fr; } }

.freq { display: inline-flex; background: var(--tint); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.freq label { cursor: pointer; }
.freq input { position: absolute; opacity: 0; }
.freq span { display: block; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 1rem; transition: background-color 200ms ease-out, color 200ms ease-out; }
.freq input:checked + span { background: var(--navy); color: var(--white); box-shadow: 0 2px 6px -2px oklch(30% 0.1 264 / .5); }
.freq input:focus-visible + span { outline: 3px solid var(--navy-2); outline-offset: 2px; }

.amounts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.amt { text-align: left; font: inherit; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; color: var(--ink); transition: border-color 150ms ease-out, background-color 150ms ease-out, scale 150ms ease-out; }
.amt:hover { border-color: var(--navy); }
.amt:active { scale: 0.97; }
.amt strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.15; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.amt small { display: block; color: var(--muted); font-size: .92rem; line-height: 1.3; margin-top: 2px; }
.amt[aria-pressed="true"] { border-color: var(--navy); background: var(--tint); box-shadow: 0 0 0 1px var(--navy) inset; }
.field--inline { margin: 0; }
.rupee { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding-left: 14px; background: var(--surface); }
.rupee:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 4px oklch(40% 0.2 264 / .14); }
.rupee input { border: 0; box-shadow: none !important; }
.impact { margin: 18px 0 0; padding: 14px 16px; background: var(--tint); border-radius: var(--r-md); min-height: 3em; font-size: 1.05rem; color: var(--navy); }
.impact:empty { display: none; }

.give__pay { text-align: center; }
.pay__amt { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 500; line-height: 1; color: var(--navy); margin: 4px auto 14px; font-variant-numeric: lining-nums tabular-nums; }
.pay__qr { width: 200px; height: 200px; margin: 0 auto 12px; }
.pay__qr svg { width: 100%; height: 100%; }
.pay__upi { margin: 0 auto 14px; font-size: 1rem; }
.pay__app { margin-top: 4px; }
@media (hover: none) { .pay__qr { width: 168px; height: 168px; } }
.payform { text-align: left; margin-top: 8px; }
.payform .field { margin-bottom: 12px; }
.payform .field input, .payform .field select { min-height: 46px; }
.check--sm { margin: 0 0 8px; font-size: .95rem; }
.check.cover { align-items: flex-start; background: var(--tint); border-radius: var(--r-sm); padding: 12px 14px; margin: 4px 0 10px; line-height: 1.4; }
.check.cover input { margin-top: 2px; }
.payform__meal { background: var(--tint); border-radius: var(--r-sm); padding: 10px 14px; font-size: .95rem; margin: 0 0 12px; color: var(--navy); }
.status__pay { margin-top: 10px; }
.pay__qrbox { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.pay__qrbox summary { cursor: pointer; font-weight: 600; color: var(--navy-2); list-style-position: inside; }
.pay__qrbox .pay__qr { margin-top: 14px; }
.pay__qrbox[open] .pay__qr { animation: enter 250ms var(--ease-out); }

/* the end of the journey: make it the peak */
.paydone { text-align: left; padding: 8px 0; animation: enter 300ms var(--ease-out); }
.paydone__title { font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 1.6vw, 3.2rem); font-weight: 500; line-height: 1; color: var(--navy); margin-bottom: 10px; }
@keyframes enter { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

.give__abroad { margin: -4px 0 0; }
.link--light { color: var(--saffron-soft); font-size: 1rem; padding: 0; }

.bank { margin-top: 20px; background: oklch(100% 0 0 / .06); border: 1px solid var(--on-navy-line); border-radius: var(--r-lg); padding: 4px 22px; }
.bank summary { cursor: pointer; font-weight: 650; padding: 16px 0; }
.bank__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 28px; margin: 4px 0 18px; }
.bank dt { font-size: .9rem; opacity: .72; }
.bank dd { margin: 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bank .link { color: var(--saffron-soft); }
.bank--light { background: var(--paper); border-color: var(--line); color: var(--ink); margin-top: 18px; }
.bank--light dt { color: var(--muted); opacity: 1; }
.bank--light .link { color: var(--navy-2); }

.abroad { margin-top: 24px; color: var(--ink); max-width: 780px; animation: enter 250ms var(--ease-out); }
.abroad h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: 2rem; }
.abroad__note { font-size: 1rem; color: var(--ink); background: var(--tint); border-radius: var(--r-md); padding: 14px 16px; }
.abroad__amount { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.abroad__quick { display: flex; gap: 8px; margin: -2px 0 16px; }
.abroad__quick .amt { flex: 1; text-align: center; padding: 10px; }

.receipt { margin-top: 20px; color: var(--ink); }
.receipt h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.receipt__intro { margin: -4px 0 18px; }
.receipt__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }

/* test-mode checkout */
.mockpay { border: 0; border-radius: var(--r-lg); padding: 28px; max-width: 420px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.mockpay[open] { animation: enter 250ms cubic-bezier(0.32, 0.72, 0, 1); }
.mockpay::backdrop { background: oklch(21% 0.08 264 / .7); }
.mockpay__tag { display: inline-block; background: var(--tint); color: var(--navy); font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 0 8px; }
.mockpay h3 { color: var(--navy); font-size: 1.5rem; }
.mockpay__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- 5. blog ---------- */
.blog-teaser__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.blog-teaser__head a { font-weight: 600; white-space: nowrap; }
.blog-head { padding-block: clamp(48px, 7vw, 88px) 24px; }
.blog-head h1, .post h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.4rem); line-height: 1.04; }
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; padding-block: 40px 72px; }
.blog-list--home { padding-block: 32px 0; }
.post-card { display: flex; flex-direction: column; }
.post-card__img { display: block; overflow: hidden; border-radius: var(--r-md); }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 300ms var(--ease-out); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { padding: 16px 2px 0; }
.post-card h2, .post-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.post-card h2 a, .post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.post-meta { color: var(--muted); font-size: .95rem; margin-bottom: .4em; }
@media (min-width: 861px) {
  .blog-list--home { grid-template-columns: 1.5fr 1fr; }
  .blog-list--home .post-card:first-child { grid-row: span 2; }
  .blog-list--home .post-card:first-child .post-card__img img { aspect-ratio: 4 / 3; }
  .blog-list--home .post-card:first-child h3 { font-size: 2.3rem; }
}
.post { max-width: 760px; padding-block: clamp(48px, 7vw, 88px) 88px; }
.post-lede { font-size: 1.3rem; color: var(--muted); }
.post-cover { border-radius: var(--r-lg); margin: 28px 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prose { font-size: 1.15rem; line-height: 1.75; }
.prose h2 { font-size: 2rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose code { background: var(--tint); padding: 1px 6px; border-radius: 4px; font-size: .95em; }
.prose blockquote { margin: 1.5em 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; color: var(--navy); }
.post-give { margin-top: 56px; background: var(--navy); color: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.post-give h2 { color: var(--white); font-size: 2rem; }
.post-give p { color: oklch(100% 0 0 / .82); }
.post-give .btn--outline { background: transparent; color: var(--white); border-color: oklch(100% 0 0 / .55); }
.blog-list + .wrap .post-give { margin-bottom: 72px; }
.empty { color: var(--muted); }

/* ---------- life at snehalayam: photo wall ---------- */
.life-wall { background: var(--surface); border-block: 1px solid var(--line); }
.wall { columns: 4 220px; column-gap: 14px; margin-top: 32px; }
.wall__item { break-inside: avoid; margin-bottom: 14px; cursor: zoom-in; }
.wall__item.is-missing { cursor: default; }
.wall__item:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92dvh; overflow: visible; }
.lightbox[open] { animation: enter 250ms cubic-bezier(0.32, 0.72, 0, 1); }
.lightbox::backdrop { background: oklch(21% 0.08 264 / .92); }
.lightbox img { max-width: 100%; max-height: 82dvh; object-fit: contain; border-radius: var(--r-md); display: block; margin: 0 auto; }
.lightbox__cap { color: var(--white); text-align: center; margin: 12px auto 0; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; transition: scale 150ms ease-out; }
.lightbox__close:active { scale: 0.94; }

/* ---------- videos ---------- */
.videos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }
.video { margin: 0; }
.video__poster, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-md); background: var(--navy); position: relative; overflow: hidden; cursor: pointer; padding: 0; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: oklch(99% 0.003 255 / .92); box-shadow: var(--shadow); transition: scale 150ms ease-out; }
.video__play::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--navy); }
.video__poster:hover .video__play { scale: 1.06; }
.video figcaption { margin-top: 12px; font-weight: 600; }

/* ---------- trust ---------- */
.steps { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.steps li { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--navy); }
.steps p { color: var(--muted); }
.creds { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 1rem; }
.creds p { margin-bottom: .3em; }

/* ---------- visit ---------- */
.visit { background: var(--surface); border-top: 1px solid var(--line); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.visit__photo { margin-bottom: 28px; border-radius: var(--r-lg); }
.visit .contact { margin-top: 24px; }
.contact { list-style: none; padding: 0; margin: 0; display: grid; }
.contact li { display: grid; grid-template-columns: 6.5rem 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact li:first-child { border-top: 1px solid var(--line); }
.contact span { color: var(--muted); }
.contact a { font-weight: 600; word-break: break-word; }
.visit form h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; color: var(--navy); }
@media (max-width: 760px) { .visit__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(64px, 9vw, 104px); }
.faq > * { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: rotate 200ms ease-out; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 250ms var(--ease-out), content-visibility 250ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: oklch(100% 0 0 / .78); padding-bottom: 32px; font-size: .95rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 26px; padding-right: 72px; }
.foot p { margin: 0; }

/* ---------- WhatsApp + phone dock ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: var(--white); display: grid; place-items: center; box-shadow: 0 2px 4px oklch(20% 0.05 150 / .2), 0 10px 24px -8px oklch(20% 0.05 150 / .5); transition: scale 150ms ease-out; }
.wa:active { scale: 0.94; }
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; position: fixed; left: 12px; right: 82px; bottom: 16px; z-index: 50; opacity: 0; transform: translateY(12px) scale(0.97); pointer-events: none; transition: opacity 200ms ease-out, transform 200ms var(--ease-out); }
  .dock.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 4px oklch(21% 0.08 264 / .15), 0 12px 24px -10px oklch(21% 0.08 264 / .55); transition: scale 150ms ease-out; }
  .dock a:active { scale: 0.97; }
  .dock__meal { background: var(--saffron); color: var(--on-accent); }
  .dock__give { background: var(--navy); color: var(--white); }
  .foot { padding-bottom: 100px; }
}

/* =========================================================
   POSTER LAYER: condensed display type, full-screen hero
   ========================================================= */
:root {
  --display: "Anek Malayalam", system-ui, sans-serif;
}

/* ---------- condensed display type everywhere a heading or figure lives ---------- */
h1, h2, .leader__name, .tile figcaption strong, .facts__list dt, .milestones time, .journey h3, .way h3,
.plan__amt, .amt strong, .pay__amt, .paydone__title, .steps h3, .receipt h3, .abroad h3, .visit form h3,
.post-card h2, .post-card h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 75;
  font-weight: 750;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(3rem, 1.4rem + 5.6vw, 6.4rem); line-height: 0.98; }
.journey h3, .steps h3, .visit form h3, .receipt h3, .abroad h3 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1; }

/* ---------- hero: modern cinematic ----------
 * Bright, full-colour, high-contrast, like the opening frame of a current film or streaming title card,
 * not a vintage print. Layers (one grid cell): photo 0 → light + grade 1 → text 3.
 *   grade    more contrast and colour, a touch brighter; a soft-light pass warms the top (sun) and cools
 *            the bottom toward the trust's navy, so faces glow and the text area falls into shade
 *   light    warm golden-hour sun from the top right, added with screen blending
 *   shade    a dark fade only at the bottom-left where the headline sits; the rest of the photo stays bright
 *   camera   a slow 26 s push-in, and the frame fades up when the page opens
 */
.hero { position: relative; display: grid; min-height: max(640px, calc(100dvh - 72px)); padding: 0; background: var(--navy-deep); overflow: hidden; isolation: isolate; }
.hero > *, .hero::before, .hero::after { grid-area: 1 / 1; }
.hero__media { z-index: 0; width: 100%; margin: 0; background: var(--navy-deep); animation: lights-up 1.2s var(--ease-out) both; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none;
  object-position: center 30%; filter: brightness(1.06) contrast(1.08) saturate(1.06);
  transform-origin: 62% 40%; animation: push-in 26s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
/* grade: warm top, cool navy base (soft-light keeps the photo's own colour) */
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light; pointer-events: none;
  background: linear-gradient(in oklch to bottom, oklch(85% 0.12 70 / .55) 0%, oklch(70% 0.05 240 / 0) 50%, oklch(35% 0.12 260 / .6) 100%);
}
/* shade: only where the words are */
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(in oklch to top, oklch(21% 0.08 264 / .88) 0%, oklch(21% 0.08 264 / .35) 34%, oklch(21% 0.08 264 / 0) 58%),
    linear-gradient(in oklch to right, oklch(21% 0.08 264 / .5) 0%, oklch(21% 0.08 264 / 0) 55%);
}
/* light: golden-hour sun from the top right */
.hero::before {
  content: ""; z-index: 1; pointer-events: none; position: absolute; inset: 0; mix-blend-mode: screen;
  background:
    radial-gradient(in oklch 60% 70% at 92% -5%, oklch(88% 0.11 75 / .55), oklch(78% 0.13 60 / .16) 45%, transparent 72%),
    radial-gradient(in oklch 22% 28% at 96% 0%, oklch(97% 0.05 85 / .5), transparent 70%);
  animation: lights-up 2s var(--ease-out) both;
}
.hero::after { content: none; }
.hero__body { z-index: 3; align-self: end; padding-block: 64px clamp(28px, 4vw, 48px); }
.hero__ml { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); color: oklch(95% 0.03 70); font-weight: 600; text-shadow: 0 1px 18px oklch(21% 0.08 264 / .7); animation: enter-up 700ms var(--ease-out) 500ms both; }
.hero h1 { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: clamp(3.4rem, 1rem + 7vw, 8.6rem); line-height: .92; letter-spacing: -0.015em; max-width: 22ch; margin-bottom: .22em; text-shadow: 0 2px 30px oklch(21% 0.08 264 / .45); animation: enter-up 800ms var(--ease-out) 650ms both; }
.hero h1 .hl { display: block; }
.hero__lede { color: oklch(100% 0 0 / .86); }
.hero__row { animation: enter-up 700ms var(--ease-out) 900ms both; }

/* laptop and up: split frame. Words on clean navy at the left, the photo on the right two-thirds
   fading into it, so no text crosses a face and the 1600px photo is shown nearer its real size. */
@media (min-width: 900px) {
  .hero__img { left: 34%; width: 66%; object-position: 55% 32%; }
  .hero__media::before { left: 34%; }
  .hero__media::after {
    background:
      linear-gradient(in oklch to right, var(--navy-deep) 0%, var(--navy-deep) 34%, oklch(21% 0.08 264 / .55) 46%, oklch(21% 0.08 264 / 0) 62%),
      linear-gradient(in oklch to top, oklch(21% 0.08 264 / .5) 0%, oklch(21% 0.08 264 / 0) 30%);
  }
  .hero__body { align-self: center; padding-block: 56px; }
  .hero h1 { font-size: clamp(3.6rem, 1rem + 5vw, 7rem); max-width: 13.5ch; }
  .hero__row { grid-template-columns: 1fr; max-width: 520px; gap: 28px; }
}

@keyframes lights-up { from { opacity: 0; } to { opacity: 1; } }
@keyframes push-in { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes enter-up { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero { min-height: calc(100dvh - 64px); }
  .hero__media::after { background: linear-gradient(in oklch to top, oklch(21% 0.08 264 / .92) 0%, oklch(21% 0.08 264 / .72) 45%, oklch(21% 0.08 264 / .2) 72%, oklch(21% 0.08 264 / 0) 85%); }
  .hero__body { padding-top: 96px; }
}

/* ---------- what we do: one giant ledger of numbers ---------- */
.what__intro { grid-template-columns: 1fr; max-width: 900px; }
.what__intro p { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.5; color: var(--ink); }
.tile figcaption strong { font-size: 2.1rem; line-height: 1; }
/* three equal columns across the full width, each figure sitting on its own thin rule */
.facts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px clamp(24px, 4vw, 56px); padding-top: 0; border-top: 0; }
.what__facts { margin-top: clamp(40px, 5vw, 64px); }
.facts__list > div { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.facts__list dt { font-size: clamp(3rem, 1.8rem + 3.4vw, 5.4rem); line-height: .9; font-weight: 800; }
.facts__list dt[data-count] { display: inline-block; min-width: calc(var(--digits, 2) * 0.62em); }
.facts__list dd { font-size: 1.05rem; max-width: 26ch; margin-top: 10px; }

/* ---------- story ---------- */
.story__motto { font-family: var(--sans); font-weight: 400; font-variation-settings: "wdth" 100; font-size: 1.2rem; color: var(--ink); }
.milestones time { font-size: 2.2rem; border-top: 2px solid var(--navy); }

/* ---------- leader: his name is the poster ---------- */
.leader__name { font-size: clamp(3rem, 1.5rem + 4.5vw, 5.6rem); line-height: .94; font-weight: 800; }
.leader__aka { font-size: 1.25rem; color: var(--ink); }
.letter { font-family: var(--sans); font-variation-settings: "wdth" 88; font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); line-height: 1.3; }

/* ---------- ways: prices as big as the headlines ---------- */
.way h3 { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: .95; }
.way__price { font-size: 1.1rem; padding: 8px 16px; background: var(--navy); color: var(--white); }

/* ---------- forms: louder figures ---------- */
.plan__amt { font-size: 2.2rem; line-height: 1; }
.amt strong { font-size: 2rem; line-height: 1; }
.pay__amt { font-size: clamp(3.6rem, 2.6rem + 3vw, 5rem); line-height: .9; }
.paydone__title { font-size: clamp(3.4rem, 2.6rem + 2.8vw, 4.8rem); line-height: .9; }

/* ---------- give: heading at poster scale ---------- */
.give h2 { font-size: clamp(3.4rem, 1.6rem + 6vw, 7.2rem); }

/* ---------- blog ---------- */
.blog-head h1, .post h1 { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: clamp(3.2rem, 1.6rem + 5vw, 6.4rem); line-height: .94; }
.post-card h2, .post-card h3 { font-size: 2rem; line-height: 1; }
@media (min-width: 861px) { .blog-list--home .post-card:first-child h3 { font-size: 3.2rem; } }
.prose blockquote { font-family: var(--sans); font-weight: 500; }

/* ---------- the same grade, lighter, on every other photo ----------
 * A little more contrast, colour and brightness, so every photo matches the hero's clean, bright look.
 */
.photo > img, .meal__photo img, .post-card__img img, .post-cover, .arch img, .lightbox img {
  filter: brightness(1.04) contrast(1.06) saturate(1.12);
}

/* ---------- timeline: one continuous line from 1994 to today ----------
 * Desktop: a horizontal rail the eye follows left to right, each point a dot on it, photo below.
 * Phone: the same rail turned vertical on the left. The last point (today) gets a filled, larger dot.
 */
.journey h3 { margin-bottom: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 0 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.tl { position: relative; padding-top: 40px; scroll-snap-align: start; min-width: 0; }
.tl::before { content: ""; position: absolute; top: 9px; left: 0; right: -24px; height: 2px; background: var(--navy); }
.tl:last-child::before { right: 0; background: linear-gradient(in oklch to right, var(--navy), oklch(30% 0.115 264 / 0)); }
.tl::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); box-sizing: border-box; }
.tl--now::after { width: 20px; height: 20px; top: 0; background: var(--navy); box-shadow: 0 0 0 5px oklch(30% 0.115 264 / .15); }
.tl .photo { margin-bottom: 14px; }
.tl .photo.is-hidden { display: none; }
.tl time { display: block; font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--navy); }
.tl p { margin: 8px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.tl--origin time { font-size: clamp(3rem, 2rem + 2.5vw, 4.4rem); }
.tl--origin p { color: var(--ink); font-size: 1.1rem; }
.tl[data-draft] { opacity: .75; }
.tl[data-draft] p { font-style: normal; color: var(--err); }
@media (max-width: 700px) {
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; gap: 0; padding: 0; }
  .tl { padding: 0 0 32px 36px; }
  .tl::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .tl:first-child::before { top: 9px; }
  .tl:last-child::before { bottom: auto; height: 12px; background: var(--navy); }
  .tl::after { top: 2px; }
  .tl--now::after { left: -2px; }
}

.foot .foot__legal { margin: 10px auto 0; padding-right: 72px; font-size: .88rem; color: oklch(100% 0 0 / .6); max-width: none; }

/* =========================================================
   LIGHT HERO (replaces the navy slab)
   Headline in navy on the paper background, "56 children" in saffron, the photo in a large rounded frame.
   Laptop and up: words left, photo right. Phone: photo first, words below.
   ========================================================= */
.hero { background: var(--paper); color: var(--ink); }
.hero::before { content: none; }
.hero h1 { color: var(--navy); text-shadow: none; }
.hero__lede { color: var(--muted); max-width: 40ch; }
.hero__media { background: transparent; }
.hero__media::after { content: none; }
.hero__img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .hero { min-height: max(620px, calc(100dvh - 72px)); }
  .hero__media { --hv: clamp(16px, 2.5vw, 32px); --hr: max(16px, calc((100% - var(--wrap)) / 2)); }
  .hero__img, .hero__media::before { top: var(--hv); left: 50%; right: auto; bottom: auto; width: calc(50% - var(--hr)); height: calc(100% - 2 * var(--hv)); }
  .hero__media::before { border-radius: var(--r-lg); }
  .hero__body { align-self: center; }
  .hero h1 { max-width: 12.5ch; font-size: clamp(3.4rem, 1rem + 4.4vw, 6.4rem); }
  .hero__img { animation: none; transform: none; }
  .hero__row { max-width: 44%; }
}
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__media { order: -1; position: relative; width: auto; margin: 16px 16px 0; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
  .hero__img { border-radius: 0; box-shadow: none; }
  .hero__body { padding-block: 28px 40px; }
}

/* bank details: always open, so the numbers can be copied straight away */
.bank__title { font-family: var(--sans); font-variation-settings: "wdth" 100; font-weight: 650; font-size: 1.1rem; color: inherit; margin: 0; padding: 18px 0 12px; }
.bank:not(details) .bank__list { margin-top: 0; }

/* card rows share the width among the cards that actually show
   (on the live site, slots without a photo are hidden, so a fixed 4-column grid left gaps) */
.what__tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ways__more { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.strip { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.strip .photo { aspect-ratio: auto; height: clamp(280px, 30vw, 420px); }
@media (max-width: 760px) {
  .what__tiles, .ways__more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip .photo { height: 240px; }
}
/* the amount card stays in view while the donor fills in the payment form */
@media (min-width: 861px) { .give__pick { position: sticky; top: 96px; } }

/* =========================================================
   HERO: the photo fills the whole frame behind the words, softly blurred,
   under a neutral dark shade (not blue) so the white headline reads.
   Overrides the light split layout above at every width.
   ========================================================= */
.hero { display: grid; min-height: max(600px, calc(100dvh - 72px)); background: oklch(20% 0.015 264); color: var(--white); }
.hero > * { grid-area: 1 / 1; }
.hero__media { order: 0; position: relative; inset: auto; width: 100%; margin: 0; aspect-ratio: auto; border-radius: 0; overflow: hidden; background: transparent; }
.hero__media::before { content: none; }
/* The whole photo is evenly blurred (the .hero__sharp rules below are unused since the sharp copy was removed).
   and masked to an oval in the middle, so the children are crisp and the sides fall away. */
.hero .hero__img, .hero .hero__sharp {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 0; box-shadow: none; object-fit: cover; object-position: center 35%; animation: none;
}
.hero .hero__img { filter: blur(5px) brightness(0.86) saturate(1.05); transform: scale(1.04); }
.hero .hero__sharp {
  filter: contrast(1.08) saturate(1.1) brightness(1.02);
  -webkit-mask-image: radial-gradient(ellipse 36% 62% at 50% 48%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 36% 62% at 50% 48%, #000 52%, transparent 100%);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(in oklch to right, oklch(16% 0.01 264 / .7) 0%, oklch(16% 0.01 264 / .35) 28%, oklch(16% 0.01 264 / 0) 42%, oklch(16% 0.01 264 / 0) 70%, oklch(16% 0.01 264 / .4) 100%),
    linear-gradient(in oklch to top, oklch(16% 0.01 264 / .5) 0%, oklch(16% 0.01 264 / 0) 35%);
}
.hero__body { z-index: 3; align-self: center; padding-block: 72px; }
.hero h1 { color: var(--white); max-width: 13ch; font-size: clamp(3.2rem, 1rem + 6vw, 7.6rem); text-shadow: 0 2px 28px oklch(10% 0.01 264 / .45); }
.hero h1 .hl { color: var(--saffron); }
.hero__row { max-width: none; display: block; }
@media (max-width: 899px) {
  .hero { min-height: calc(100dvh - 64px); }
  .hero__body { align-self: end; padding-block: 96px 40px; }
  .hero__media::after { background: linear-gradient(in oklch to top, oklch(16% 0.01 264 / .88) 0%, oklch(16% 0.01 264 / .55) 38%, oklch(16% 0.01 264 / 0) 62%); }
  .hero .hero__sharp {
    -webkit-mask-image: radial-gradient(ellipse 62% 34% at 50% 34%, #000 50%, transparent 100%);
            mask-image: radial-gradient(ellipse 62% 34% at 50% 34%, #000 50%, transparent 100%);
  }
}

/* a slot with no photo is hidden on the live site (is-hidden must beat is-missing's display:grid) */
.photo.is-missing.is-hidden { display: none; }

/* online payment switched off: UPI QR + bank only (html.pay-off is removed by app.js when Razorpay is live) */
.when-offline { display: none; }
.pay-off .when-online, .pay-off #payForm, .pay-off .give__abroad, .pay-off #abroad, .pay-off .pay__qrbox > summary { display: none; }
.pay-off .when-offline { display: inline; }
.pay-off .pay__qrbox { margin-top: 0; padding-top: 0; border-top: 0; }
.pay-off .status__pay { display: none; }

/* a slot showing a borrowed photo until the trust sends the real one */
.photo.is-standin { position: relative; }
.photo.is-standin::after {
  content: "Stand-in photo. Needed: " attr(data-need);
  position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2;
  padding: 6px 10px; border-radius: 8px; background: oklch(98% 0.01 85 / .94); color: var(--navy);
  font-size: .82rem; font-weight: 600; line-height: 1.3;
}

/* Visit: Google map under the contact list */
.map { margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--tint); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__link { display: inline-block; margin-top: 12px; font-weight: 600; min-height: 44px; line-height: 44px; }

/* For companies (CSR): programmes on the left, registrations and the document request on the right */
.csr { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.csr__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.csr h2 { margin-bottom: 18px; }
.csr h3 { color: var(--navy); font-size: 1.25rem; margin: 28px 0 12px; }
.csr__lede { max-width: 60ch; }
.csr__list { list-style: none; padding: 0; margin: 0; display: grid; }
.csr__list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.csr__list li:first-child { border-top: 1px solid var(--line); }
.csr__list strong { display: block; color: var(--ink); font-weight: 650; }
.csr__docs .contact b { font-weight: 600; color: var(--ink); }
.csr__docs .contact .gap { color: var(--err); font-weight: 500; }
.csr__note { margin: 18px 0 20px; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .csr__grid { grid-template-columns: 1fr; } }

/* What we do: heading and intro centred on the page */
.what__intro { margin-inline: auto; justify-items: center; text-align: center; }
.what__intro p { max-width: 62ch; }

/* =========================================================
   SECTION HEADERS + TYPE SCALE (one system for the whole page)
   Every section opens with the same centred header: title, then one intro line.
   Scale, desktop max: section title 88px : sub-heading 40px : card title 32px : body 17.6px
   (about 2.2 : 1.25 : 1.8 steps), all in Anek Malayalam condensed for display, regular width for body.
   ========================================================= */
.sec-head { display: grid; justify-items: center; text-align: center; gap: 14px; max-width: 900px; margin-inline: auto; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head > * { margin: 0; }
.sec-head p { max-width: 60ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; }
.what__intro.sec-head p { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.sec-head h2, .sec-head h2.leader__name {
  font-family: var(--display, "Anek Malayalam"), system-ui, sans-serif;
  font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5.5rem); font-weight: 750; font-variation-settings: "wdth" 75;
  line-height: .98; letter-spacing: -0.01em; text-wrap: balance;
}
.blog-teaser__head.sec-head { display: grid; justify-items: center; justify-content: center; }
.blog-teaser__head.sec-head a { font-weight: 600; }

/* sub-headings inside a section */
.journey > h3, .receipt h3, .visit form h3, .abroad h3, .csr h3, .bank .bank__title {
  font-family: var(--display, "Anek Malayalam"), system-ui, sans-serif;
  font-size: clamp(1.9rem, 1.4rem + 1.3vw, 2.5rem); font-weight: 750; font-variation-settings: "wdth" 75;
  line-height: 1.02; color: var(--navy);
}
.journey > h3 { text-align: center; }
/* card titles */
.way__body h3, .post-card__body h3 {
  font-size: clamp(1.6rem, 1.3rem + .9vw, 2rem); font-weight: 750; font-variation-settings: "wdth" 75; line-height: 1.05;
}
@media (min-width: 761px) { .blog-list--home .post-card:first-child h3 { font-size: clamp(1.9rem, 1.4rem + 1.3vw, 2.5rem); } }
@media (max-width: 860px) { .leader__photo { justify-self: center; margin-inline: auto; } }

/* Header: the whole photo is blurred (5px); over the children's faces a second copy is blurred half as much (2.5px),
   faded in with a soft oval mask so there's no visible edge. Same scale as the back layer so the two line up. */
.hero .hero__sharp {
  filter: blur(2.5px) brightness(0.86) saturate(1.05); transform: scale(1.04);
  -webkit-mask-image: radial-gradient(ellipse 34% 48% at 55% 48%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 34% 48% at 55% 48%, #000 45%, transparent 100%);
}
@media (max-width: 899px) {
  .hero .hero__sharp {
    -webkit-mask-image: radial-gradient(ellipse 60% 32% at 55% 38%, #000 45%, transparent 100%);
            mask-image: radial-gradient(ellipse 60% 32% at 55% 38%, #000 45%, transparent 100%);
  }
}

/* Meal options: price column wide enough for "₹10,000", so both descriptions line up */
.plan__box { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); column-gap: 14px; }
.plan__amt { min-width: 0; white-space: nowrap; }

/* The site has one designed colour scheme; ask phone browsers not to auto-darken it */
:root { color-scheme: only light; }

/* Donate amounts: three options, one per row, price column like the meal options */
.amounts__grid { grid-template-columns: 1fr; }
.amounts__grid .amt { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
.amounts__grid .amt strong { white-space: nowrap; }
