/* Yaamie Foundation — site styles */

:root {
  --brand: #23211f;
  --brand-2: #2e2b28;
  --brand-3: #3f7a5e;
  --accent: #f2a63b;
  --accent-dark: #d4861a;
  --accent-soft: #fdf1de;
  --ink: #15201e;
  --muted: #5b6662;
  --line: #e6e1d7;
  --bg: #ffffff;
  --soft: #f7f4ee;
  --mint: #f3ede4;
  --white: #ffffff;
  --danger: #c2412d;

  /* cause colours */
  --animals: #d9821c;
  --animals-soft: #fdf0dc;
  --humans: #cf5a55;
  --humans-soft: #fde9e6;
  --env: #3c8a4e;
  --env-soft: #e2f1e0;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(35, 30, 25, .06);
  --shadow: 0 20px 44px -22px rgba(35, 30, 25, .35);
  --wrap: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.14; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--ink); padding: .6em 1em; border-radius: 8px; font-weight: 700; z-index: 300; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; margin: 0 auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--soft); }
.bg-brand { background: var(--brand); color: var(--white); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mt-0 { margin-top: 0; }

/* Type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-3); margin-bottom: 1em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.bg-brand .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--accent); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 660px; }
.bg-brand .lead, .page-hero .lead, .hero .lead { color: var(--text-on-dark-lead); }
.hl { color: var(--accent); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.head > div { max-width: 700px; }
.head h2 { margin-bottom: 0; }
.head h2 + p { margin: .8em 0 0; }
.sec-title { margin-bottom: 52px; }
.sec-title h2 { margin-bottom: .35em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .88em 1.55em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(212, 134, 26, .75); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { background: var(--brand-2); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-light { background: var(--white); color: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-block { width: 100%; }
.btn-sm { padding: .62em 1.15em; font-size: .92rem; }
.btn-lg { padding: 1.05em 1.9em; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--brand-3); }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Top utility bar */
.utility { background: var(--surface-darker); color: var(--text-on-dark-faint); font-size: .86rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.utility a { text-decoration: none; color: var(--text-on-dark-bright); }
.utility a:hover { color: var(--accent); }
.utility .left { display: flex; gap: 22px; }
.utility .left a { display: inline-flex; align-items: center; gap: 7px; }
.utility svg { width: 14px; height: 14px; }
.utility .sos { color: var(--accent); font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(35, 30, 25, .1); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.logo img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .menu-btn { display: flex; align-items: center; gap: 6px; padding: .55em .95em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--muted); background: none; border: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.nav-links a:hover, .nav-links .menu-btn:hover { color: var(--ink); background: var(--soft); }
.nav-links a[aria-current="page"], .nav-links .menu-btn.current { color: var(--brand); background: var(--mint); }
.menu-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.submenu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); min-width: 300px; list-style: none; margin: 0; padding: 10px; background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.submenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-menu:hover .menu-btn svg, .has-menu.open .menu-btn svg { transform: rotate(180deg); }
.submenu a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; color: var(--ink); }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.submenu .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.submenu .ic svg { width: 22px; height: 22px; }
.submenu strong { display: block; font-size: .98rem; }
.submenu small { display: block; color: var(--muted); font-weight: 500; font-size: .84rem; line-height: 1.35; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }

/* Cause colour helpers */
.c-animals { --c: var(--animals); --c-soft: var(--animals-soft); }
.c-humans { --c: var(--humans); --c-soft: var(--humans-soft); }
.c-env { --c: var(--env); --c-soft: var(--env-soft); }
.ic-c { background: var(--c-soft); color: var(--c); }

/* Home hero */
.hero { position: relative; color: var(--white); background: var(--brand); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 22, 20, .94) 0%, rgba(24, 22, 20, .82) 42%, rgba(24, 22, 20, .35) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.2rem; margin-bottom: 2em; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-pills a { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em .5em .6em; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); text-decoration: none; font-weight: 600; font-size: .92rem; backdrop-filter: blur(6px); transition: background-color .2s; }
.hero-pills a:hover { background: rgba(255, 255, 255, .2); }
.hero-pills .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-soft); color: var(--c); }
.hero-pills .dot svg { width: 16px; height: 16px; }

/* Quick donate card */
.quick { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 30px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.quick h2 { font-size: 1.45rem; margin-bottom: .2em; }
.quick > p { color: var(--muted); font-size: .95rem; }
.quick .label { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-weight: 600; font-size: .92rem; transition: all .15s; }
.chip:hover { border-color: var(--brand-3); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chips.amt .chip { flex: 1; min-width: 70px; text-align: center; font-weight: 800; }
.quick .btn { margin-top: 22px; }
.quick .safe { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.quick .safe svg { width: 15px; height: 15px; }

/* Impact band */
.impact { position: relative; margin-top: -48px; z-index: 2; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.impact-grid > div { padding: 30px 28px; }
.impact-grid > div + div { border-left: 1px solid var(--line); }
.impact-grid strong { display: block; font-size: clamp(2rem, 3.6vw, 2.7rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--brand); margin-bottom: 8px; }
.impact-grid strong small { font-size: .5em; letter-spacing: 0; }
.impact-grid span { color: var(--muted); font-size: .94rem; line-height: 1.45; display: block; }

/* Cause cards */
.causes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cause-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cause-card .media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--c-soft); }
.cause-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cause-card:hover .media img { transform: scale(1.05); }
.cause-card .badge { position: absolute; left: 18px; bottom: -22px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--c); color: var(--white); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .35); }
.cause-card .badge svg { width: 28px; height: 28px; }
.cause-card .body { padding: 40px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.cause-card .kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 6px; }
.cause-card p { color: var(--muted); }
.cause-card .ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.cause-card .ticks li { display: flex; gap: 10px; font-weight: 600; font-size: .95rem; }
.cause-card .ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--c); }
.cause-card .foot { margin-top: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.illus { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(140deg, var(--env-illus-1), var(--env-illus-2)); color: rgba(255, 255, 255, .95); }
.illus svg { width: 38%; height: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.step h3 { font-size: 1.12rem; margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
.bg-brand .step { background: var(--brand-2); border-color: rgba(255, 255, 255, .08); }
.bg-brand .step::before { background: rgba(242, 166, 59, .16); color: var(--accent); }
.bg-brand .step p { color: var(--text-on-dark-muted); }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; transition: transform .25s, box-shadow .25s; }
a.card { display: block; text-decoration: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .4em; }
.card .btn, .card .link-arrow { margin-top: 18px; }
.icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: var(--mint); color: var(--brand-3); }
.icon svg { width: 26px; height: 26px; }
.icon.accent { background: var(--accent-soft); color: var(--accent-dark); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--soft); }
.media-frame.wide img { aspect-ratio: 4 / 3; }
.media-frame .note { position: absolute; left: -24px; bottom: 28px; max-width: 280px; background: var(--white); color: var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: .92rem; line-height: 1.4; }
.media-frame .note .icon { width: 42px; height: 42px; margin: 0; flex: none; border-radius: 12px; }
.media-frame .note .icon svg { width: 22px; height: 22px; }
.checks { list-style: none; padding: 0; margin: 1.4em 0 2em; display: grid; gap: 13px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f7a5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { text-align: center; padding: 30px 22px; border-radius: var(--r); background: var(--brand-2); }
.trust-item .icon { margin: 0 auto 16px; background: rgba(242, 166, 59, .15); color: var(--accent); }
.trust-item h3 { font-size: 1.08rem; color: var(--white); margin-bottom: .3em; }
.trust-item p { color: var(--text-on-dark-muted); margin: 0; font-size: .94rem; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--brand); color: var(--white); overflow: hidden; }
.page-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 80px; }
.page-hero h1 { max-width: 820px; font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.page-hero .btn-row { margin-top: 30px; }
.page-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 166, 59, .25), transparent 65%); }
.page-hero.has-img .bg { position: absolute; inset: 0; }
.page-hero.has-img .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero.has-img .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 22, 20, .95) 0%, rgba(24, 22, 20, .8) 50%, rgba(24, 22, 20, .45) 100%); }
.page-hero.has-img .wrap { padding-top: 88px; padding-bottom: 104px; z-index: 1; }
.page-hero.has-img::after { display: none; }
.page-hero.env-hero { background: linear-gradient(130deg, var(--surface-cream) 0%, var(--env-tint-1) 60%, var(--env-tint-2) 100%); }

/* Light page headers (pages without a photo): cream, dark text */
.page-hero:not(.has-img) { background: linear-gradient(180deg, var(--surface-cream), var(--soft)); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-hero:not(.has-img) .lead { color: var(--muted); }
.page-hero:not(.has-img) .eyebrow { color: var(--accent-dark); }
.page-hero:not(.has-img) .hl { color: var(--accent-dark); }
.page-hero:not(.has-img) .crumbs { color: var(--muted); }
.page-hero:not(.has-img) .crumbs a { color: var(--ink); }
.page-hero:not(.has-img) .crumbs a:hover { color: var(--accent-dark); }
.page-hero:not(.has-img) .btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.page-hero:not(.has-img) .cause-chip { background: var(--white); border: 1px solid var(--line); }
.page-hero:not(.has-img)::after { background: radial-gradient(circle, rgba(242, 166, 59, .18), transparent 65%); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; padding: 0; margin: 0 0 26px; font-size: .9rem; color: var(--text-tertiary); }
.crumbs a { color: var(--text-on-dark); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: "/"; margin-right: .5em; opacity: .6; }
.cause-chip { display: inline-flex; align-items: center; gap: 10px; padding: .4em 1em .4em .45em; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.cause-chip .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--white); }
.cause-chip .dot svg { width: 16px; height: 16px; }

/* Cause page: done so far + objectives */
.done { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.done > div { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; padding: 20px 22px; }
.done strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.done span { color: var(--muted); font-size: .95rem; }
.obj-group { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.obj-group:first-of-type { border-top: 0; padding-top: 0; }
.obj-group .gh .icon { background: var(--c-soft); color: var(--c); }
.obj-group .gh h3 { font-size: 1.4rem; }
.obj-group .gh p { color: var(--muted); margin: 0; }
.obj-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.obj-list li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; transition: border-color .2s, box-shadow .2s; }
.obj-list li:hover { border-color: var(--c); box-shadow: var(--shadow-sm); }
.obj-list h4 { display: flex; gap: 10px; align-items: center; margin-bottom: .3em; }
.obj-list h4::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.obj-list p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.55; }
.gift-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gift { display: block; text-decoration: none; background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 22px; transition: border-color .2s, transform .2s; }
.gift:hover { border-color: var(--c); transform: translateY(-3px); }
.gift strong { display: block; font-size: 1.7rem; letter-spacing: -.02em; color: var(--c); line-height: 1.1; }
.gift span { display: block; color: var(--muted); margin: 6px 0 14px; font-size: .95rem; }
.gift em { font-style: normal; font-weight: 700; font-size: .92rem; color: var(--ink); }
.other-causes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.other-causes a { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.other-causes a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.other-causes .icon { margin: 0; background: var(--c-soft); color: var(--c); flex: none; }
.other-causes strong { display: block; font-size: 1.1rem; }
.other-causes span { color: var(--muted); font-size: .94rem; }

/* Pillar pages: what we're doing now + focus areas */
.now { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.now li { list-style: none; display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-weight: 600; line-height: 1.4; }
.now li svg { flex: none; width: 22px; height: 22px; color: var(--c, var(--brand-3)); margin-top: 1px; }
.now li small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; }
.now { margin: 0; padding: 0; }
.partner-note { display: flex; gap: 16px; align-items: center; background: var(--c-soft, var(--mint)); border-radius: var(--r); padding: 20px 24px; margin-top: 24px; }
.partner-note .icon { margin: 0; flex: none; background: var(--white); color: var(--c); }
.partner-note p { margin: 0; }
.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.focus { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px; transition: box-shadow .25s, border-color .25s; scroll-margin-top: calc(var(--header-h) + 80px); }
.focus:hover { box-shadow: var(--shadow); border-color: transparent; }
.focus .top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.focus .icon { margin: 0; background: var(--c-soft); color: var(--c); flex: none; }
.focus .num { margin-left: auto; font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.focus h3 { font-size: 1.32rem; margin-bottom: .25em; }
.focus .tagline { color: var(--c); font-weight: 700; margin-bottom: .9em; }
.focus p:last-child { color: var(--muted); margin: 0; }
.focus.wide { grid-column: 1 / -1; }
.pillar-intro { font-size: 1.25rem; font-weight: 600; color: var(--ink); max-width: 820px; line-height: 1.55; }

/* Pillar cards (home) */
.cause-card .tagline { color: var(--c); font-weight: 700; margin-bottom: .6em; }

/* Quote */
.quote { position: relative; background: var(--brand); color: var(--white); border-radius: var(--r-lg); padding: 48px 52px; }
.quote svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 16px; }
.quote p { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; margin: 0; }
.quote cite { display: block; margin-top: 18px; font-style: normal; color: var(--text-on-dark-muted); font-weight: 600; }

/* Profiles */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.profile .portrait { aspect-ratio: 1; border-radius: var(--r-lg); display: grid; place-items: center; font-size: 4.2rem; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(140deg, var(--accent-soft), var(--accent-soft-2)); color: var(--accent-dark); }
.profile .portrait.green { background: linear-gradient(140deg, var(--mint), var(--sand-strong)); color: var(--brand-3); }
.profile .role { color: var(--accent-dark); font-weight: 700; margin-bottom: 1em; }
.profile p { color: var(--muted); }
.profile .lead-p { color: var(--ink); font-size: 1.12rem; }

/* Closing line */
.closing { text-align: center; padding: 88px 0; background: var(--soft); }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .2em; }
.closing p { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.6em; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 32px 52px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 6px solid var(--accent); }
.timeline .when { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.timeline h3 { margin: .25em 0 .3em; font-size: 1.15rem; }
.timeline p { color: var(--muted); margin: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 26px; text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-weight: 800; font-size: 1.7rem; background: var(--mint); color: var(--brand-3); }
.member.lead-member .avatar { background: var(--accent-soft); color: var(--accent-dark); }
.member h3 { font-size: 1.18rem; margin-bottom: .2em; }
.member .role { color: var(--accent-dark); font-weight: 700; font-size: .92rem; margin: 0; }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { position: relative; margin: 0 0 16px; break-inside: avoid; border-radius: var(--r-sm); overflow: hidden; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; color: var(--white); font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

/* CTA band */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; border-radius: var(--r-lg); background: var(--brand); color: var(--white); padding: 64px; }
.cta::before { content: ""; position: absolute; right: -90px; bottom: -150px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 166, 59, .35), transparent 65%); }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--text-on-dark-muted); margin: 0; font-size: 1.08rem; }
.cta .btn-row { justify-content: flex-end; position: relative; }

/* Donate strip */
.donate-strip { background: var(--accent); color: var(--ink); }
.donate-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.donate-strip p { margin: 0; font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; }

/* Emergency banner */
.emergency { background: var(--emergency-bg); border-top: 1px solid var(--emergency-border); border-bottom: 1px solid var(--emergency-border); }
.emergency .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.emergency p { margin: 0; font-weight: 700; display: flex; gap: 12px; align-items: center; }
.pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(194, 65, 45, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(194, 65, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(194, 65, 45, 0); } }

/* Sub-navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: .5em 1em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); border: 1px solid var(--line); background: var(--white); }
.subnav a:hover, .subnav a.active { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* Forms */
.form { color: var(--ink); background: var(--white); border-radius: var(--r-lg); padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form h3 { font-size: 1.4rem; margin-bottom: .3em; }
.form > p { color: var(--muted); }
.field { margin-bottom: 18px; }
.field label, .flabel { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .85em 1em; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--soft); transition: border-color .2s, background-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-3); background: var(--white); }
.field textarea { resize: vertical; min-height: 104px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; display: flex; gap: 8px; align-items: center; }
.form-note svg { width: 16px; height: 16px; flex: none; }
.form-done { color: var(--brand-3); font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 20px; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label { padding: .65em 1.15em; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; background: var(--white); transition: all .15s; }
.choices input:checked + label { background: var(--brand); border-color: var(--brand); color: var(--white); }
.choices input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Donate page */
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.donate-grid > *, .split > *, .tool > * { min-width: 0; }
.btn-block { white-space: normal; text-align: center; }
.stepper { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; font-weight: 800; }
.stepper .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--white); font-size: .9rem; flex: none; }
.dstep + .dstep { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--line); }
.amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.amount { text-align: left; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--white); cursor: pointer; transition: all .15s; }
.amount strong { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.amount span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.amount:hover { border-color: var(--brand-3); }
.amount[aria-pressed="true"] { border-color: var(--brand); background: var(--mint); }
.custom-amt { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 16px; background: var(--white); padding: 0 18px; }
.custom-amt span { font-weight: 800; font-size: 1.2rem; color: var(--muted); }
.custom-amt input { border: 0; background: transparent; padding: 15px 10px; width: 100%; font-weight: 700; font-size: 1.08rem; }
.custom-amt input:focus { outline: none; }
.custom-amt:focus-within { border-color: var(--brand); }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--soft); border-radius: 14px; padding: 16px 18px; margin: 22px 0 16px; font-weight: 600; }
.summary strong { font-size: 1.3rem; }
.pay-box { background: var(--brand); color: var(--white); border-radius: var(--r-lg); padding: 34px; position: sticky; top: calc(var(--header-h) + 24px); }
.pay-box h3 { color: var(--white); }
.pay-box p { color: var(--text-on-dark-muted); }
.qr { width: 200px; height: 200px; margin: 10px auto 18px; border-radius: 18px; background: var(--white); color: var(--muted); display: grid; place-items: center; text-align: center; font-size: .85rem; padding: 18px; border: 3px dashed var(--qr-border); }
.qr.ready { border: 0; padding: 14px; }
.qr.ready img, .qr.ready canvas { width: 100%; height: auto; }
.qr-amount { text-align: center; font-weight: 700; color: var(--white) !important; margin: -6px 0 6px; }
.pay-emblem { width: 92px; height: 92px; margin: 0 auto 14px; }
.pay-box h3, .pay-box > p:first-of-type { text-align: center; }
.upi-id { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border: 1.5px dashed var(--line); border-radius: 14px; }
.upi-id strong { font-size: 1.05rem; letter-spacing: .01em; }
.pay-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.pay-list li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; background: rgba(255, 255, 255, .07); border-radius: 12px; font-size: .95rem; }
.pay-list li span:first-child { color: var(--text-tertiary); }
.pay-list li span:last-child { font-weight: 700; text-align: right; }
.confirm-promise { display: flex; gap: 14px; align-items: flex-start; background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .35); border-radius: 16px; padding: 16px; margin-top: 20px; }
.confirm-promise svg { width: 26px; height: 26px; flex: none; color: var(--whatsapp); }
.confirm-promise p { margin: 0; color: var(--mint); font-size: .94rem; }
.wa-preview { background: var(--wa-chat-bg); border-radius: 18px; padding: 18px; }
.wa-bubble { background: var(--wa-bubble); color: var(--wa-text); border-radius: 12px 12px 12px 4px; padding: 14px 16px; font-size: .93rem; line-height: 1.55; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); max-width: 100%; overflow-wrap: anywhere; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 21px 0; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .25s, box-shadow .25s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .3em; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--r-lg); background: var(--soft); }

/* Footer */
.site-footer { background: var(--surface-darker); color: var(--text-on-dark-dim); padding: 80px 0 30px; font-size: .96rem; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-top h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 44px; }
.site-footer h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--text-on-dark); transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.foot-brand img { height: 42px; width: auto; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; }
.socials a:hover { background: var(--accent); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }

/* Floating actions */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.mobile-donate { display: none; }

/* Internal tool (confirm.html) */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.log { width: 100%; border-collapse: collapse; font-size: .92rem; }
.log th, .log td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.log th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.log-wrap { overflow-x: auto; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-links a, .nav-links .menu-btn { padding: .5em .7em; font-size: .94rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards, .trust-grid { grid-template-columns: 1fr 1fr; }
  .obj-group { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section { padding: 76px 0; }
  .utility { display: none; }
  .menu-toggle { display: grid; }
  .nav-links { position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 24px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(35, 30, 25, .15); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .22s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a, .nav-links .menu-btn { padding: .85em 1em; font-size: 1.04rem; width: 100%; }
  .menu-btn { display: none !important; }
  .submenu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; background: transparent; box-shadow: none; padding: 0 0 0 8px; }
  .has-menu:hover .submenu, .has-menu:focus-within .submenu { transform: none; }
  .submenu a { padding: 10px 12px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 96px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(24, 22, 20, .9), rgba(24, 22, 20, .82)); }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid > div:nth-child(3) { border-left: 0; }
  .impact-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .causes { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .split, .donate-grid, .cta, .tool { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4, .team, .gift-row { grid-template-columns: 1fr 1fr; }
  .media-frame .note { left: 12px; bottom: 12px; }
  .cta { padding: 44px 30px; }
  .cta .btn-row { justify-content: flex-start; }
  .pay-box { position: static; }
  .focus-grid { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .profile .portrait { max-width: 220px; }
  .quote { padding: 36px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-sm { padding: 48px 0; }
  .head, .sec-title { margin-bottom: 34px; }
  .logo img { height: 38px; }
  .nav-cta .btn-sm { padding: .55em .95em; font-size: .88rem; }
  .nav-cta .btn-sm svg { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .quick { padding: 24px 20px; }
  .impact { margin-top: -36px; }
  .impact-grid > div { padding: 22px 18px; }
  .steps, .steps.three, .grid-2, .grid-3, .grid-4, .team, .gift-row, .other-causes, .contact-cards, .trust-grid, .foot-grid, .obj-list, .row-2 { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: 1fr 1fr; }
  .form { padding: 26px 20px; }
  .page-hero .wrap { padding-top: 44px; padding-bottom: 60px; }
  .page-hero.has-img .wrap { padding-top: 56px; padding-bottom: 72px; }
  .media-frame .note { position: static; margin-top: 12px; max-width: none; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
  .cta { padding: 36px 22px; }
  .mobile-donate { display: flex; position: fixed; left: 16px; right: 90px; bottom: 20px; z-index: 90; }
  .mobile-donate .btn { flex: 1; padding: 1em; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
  .foot-top { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Refinement layer: minimal, professional NGO look
   Serif headings, quieter surfaces, hairline borders, no decorative glows.
   ========================================================================== */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(35, 30, 25, .05);
  --shadow: 0 14px 34px -22px rgba(35, 30, 25, .35);
}
body { font-size: 17px; line-height: 1.7; color: var(--text-body); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; color: inherit; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.28rem; line-height: 1.3; }
h4 { font-family: var(--font); font-weight: 600; }
.lead { font-size: 1.12rem; line-height: 1.7; }
.eyebrow { font-family: var(--font); font-size: .74rem; letter-spacing: .18em; font-weight: 700; }
.eyebrow::before { width: 18px; height: 1px; }

/* Buttons: squarer and calmer */
.btn { border-radius: 8px; font-weight: 600; padding: .85em 1.4em; box-shadow: none; }
.btn:hover { transform: none; }
.btn-accent { box-shadow: none; }
.btn-lg { padding: 1em 1.6em; font-size: 1.02rem; }
.btn-ghost { border-width: 1px; }
.btn-outline { border-width: 1px; }
.link-arrow { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--accent-dark); }

/* Surfaces: hairline borders, no lift on hover */
.card, .cause-card, .focus, .obj-list li, .contact-card, .member, .gift, .other-causes a, .step, .now li, .done > div, .form, .faq details { border-radius: var(--r); box-shadow: none; }
.card:hover, .cause-card:hover, .contact-card:hover, .other-causes a:hover, .gift:hover { transform: none; box-shadow: none; border-color: var(--border-hover); }
.focus:hover { box-shadow: none; border-color: var(--border-hover); }
.cause-card:hover .media img, .gallery figure:hover img { transform: none; }
.icon { width: 46px; height: 46px; border-radius: 10px; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }

/* No decorative glows or blobs */
.page-hero::after, .cta::before, .blob { display: none !important; }

/* Hero */
.hero .wrap { padding-top: 104px; padding-bottom: 112px; }
.hero h1 { font-weight: 600; }
.hero-pills a { border-radius: 8px; backdrop-filter: none; }
.quick { border-radius: var(--r-lg); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .55); }
.quick h2 { font-size: 1.4rem; }
.chip { border-radius: 8px; }
.impact-grid { border-radius: var(--r-lg); box-shadow: 0 18px 40px -28px rgba(35, 30, 25, .35); }
.impact-grid strong { font-family: var(--serif); font-weight: 600; color: var(--ink); }

/* Section titles get a little more breathing room */
.section { padding: 104px 0; }
.sec-title { margin-bottom: 56px; }
.sec-title .lead, .head .lead { margin-top: .6em; }

/* Cause cards: quieter badge */
.cause-card .badge { width: 48px; height: 48px; border-radius: 12px; bottom: -20px; box-shadow: none; border: 3px solid var(--white); }
.cause-card .badge svg { width: 22px; height: 22px; }
.cause-card .body { padding: 36px 26px 26px; }

/* Steps as a numbered list with lines rather than boxes */
.steps { gap: 0; border-top: 1px solid var(--line); }
.step { background: transparent; border: 0; border-radius: 0; padding: 28px 28px 8px 0; }
.step::before { width: auto; height: auto; background: none; color: var(--accent-dark); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 10px; place-items: start; display: block; content: "0" counter(s); }
.bg-brand .steps { border-top-color: rgba(255, 255, 255, .14); }
.bg-brand .step { background: transparent; }
.bg-brand .step::before { background: none; color: var(--accent); }

/* Trust band: simple columns */
.trust-grid { gap: 0; }
.trust-item { background: transparent; border-radius: 0; border-left: 1px solid rgba(255, 255, 255, .12); padding: 8px 28px; text-align: left; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .icon { margin: 0 0 16px; }

/* Page headers */
.page-hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { font-weight: 600; }
.cause-chip { border-radius: 8px; }

/* Focus areas & objectives */
.focus { padding: 32px; }
.focus h3 { font-size: 1.32rem; }
.focus .tagline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.08rem; }
.cause-card .tagline { font-family: var(--serif); font-style: italic; font-weight: 500; }
.now li { border-radius: 10px; }

/* Quote: editorial, not a box */
.quote { background: transparent; color: var(--ink); border-left: 3px solid var(--accent); border-radius: 0; padding: 8px 0 8px 32px; }
.quote svg { display: none; }
.quote p { font-family: var(--serif); font-weight: 500; font-style: italic; }
.quote cite { color: var(--muted); }

/* Profiles: neat monograms */
.profile .portrait { border-radius: var(--r-lg); font-family: var(--serif); font-weight: 600; }
.avatar { font-family: var(--serif); font-weight: 600; }

/* CTA band */
.cta { border-radius: var(--r-lg); }

/* Glance list (detail pages) */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance > div { padding: 26px 24px 26px 0; }
.glance > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.glance dt { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.glance dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.prose { max-width: 760px; }
.prose p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.two-col .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.help-table { width: 100%; border-collapse: collapse; }
.help-table th, .help-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-table th { width: 38%; font-weight: 600; padding-right: 24px; }
.help-table td { color: var(--muted); }
@media (max-width: 960px) {
  .glance { grid-template-columns: 1fr 1fr; }
  .glance > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .glance > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col .sticky { position: static; }
  .trust-item { border-left: 0; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .trust-item:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 96px; }
  .glance { grid-template-columns: 1fr; }
  .glance > div, .glance > div + div { padding: 18px 0; border-left: 0; }
  .glance > div + div { border-top: 1px solid var(--line); }
  .step { padding-right: 0; }
  .help-table th, .help-table td { display: block; width: auto; padding: 6px 0; }
  .help-table th { padding-top: 16px; border-bottom: 0; }
}

/* ==========================================================================
   Home page (editorial layout)
   ========================================================================== */
.hero2 { position: relative; min-height: min(90vh, 860px); display: flex; align-items: flex-end; color: var(--white); background: var(--surface-dark); overflow: hidden; }
.hero2 .bg { position: absolute; inset: 0; }
.hero2 .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero2 .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 16, .78) 0%, rgba(20, 18, 16, .45) 50%, rgba(20, 18, 16, .1) 100%), linear-gradient(180deg, rgba(20, 18, 16, .2) 0%, rgba(20, 18, 16, 0) 40%, rgba(20, 18, 16, .75) 100%); }
.hero2 .wrap { position: relative; width: 100%; padding-top: 180px; padding-bottom: 80px; }
.hero2 .eyebrow { color: var(--accent); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero2 h1, .hero2 .intro { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero2 h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: 1; letter-spacing: -.02em; max-width: 12ch; margin-bottom: .35em; }
.hero2 h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero2 .intro { max-width: 540px; font-size: 1.16rem; line-height: 1.65; color: var(--text-on-photo); margin-bottom: 2.2em; }
.hero2 .foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hero2 .caption { font-size: .82rem; color: var(--text-on-dark-faint); max-width: 260px; text-align: right; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-soft); text-decoration: none; }
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: currentColor; opacity: .6; }

.statement { max-width: 920px; margin: 0 auto; text-align: center; }
.statement .big { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.45rem); line-height: 1.35; font-weight: 500; color: var(--ink); margin: 0 0 .8em; letter-spacing: -.01em; }
.statement .big span { color: var(--accent-dark); font-style: italic; }
.statement p { color: var(--muted); max-width: 640px; margin-inline: auto; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar-item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pillar-item .ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--c-soft); margin-bottom: 22px; }
.pillar-item .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pillar-item:hover .ph img { transform: scale(1.03); }
.pillar-item .ph .illus { border-radius: 0; }
.pillar-item .num { position: absolute; left: 18px; top: 16px; font-family: var(--serif); font-size: 1rem; color: var(--white); background: rgba(20, 18, 16, .45); padding: .2em .65em; border-radius: 6px; }
.pillar-item .kicker { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.pillar-item h3 { font-size: 1.7rem; margin-bottom: .2em; }
.pillar-item .tagline { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.1rem; margin-bottom: .7em; }
.pillar-item p { color: var(--muted); }
.pillar-item .link-arrow { align-self: flex-start; margin-top: auto; }

.now-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.now-strip > div { padding: 30px 28px 6px 0; }
.now-strip > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.now-strip strong { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1; color: var(--ink); margin-bottom: 12px; }
.now-strip span { color: var(--muted); font-size: .98rem; line-height: 1.5; display: block; }

.image-band { position: relative; min-height: 560px; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--surface-dark); }
.image-band .bg { position: absolute; inset: 0; }
.image-band .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.image-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 16, .88) 0%, rgba(20, 18, 16, .65) 45%, rgba(20, 18, 16, .1) 100%); }
.image-band .wrap { position: relative; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.image-band .inner { max-width: 560px; }
.image-band h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.image-band .lines { list-style: none; padding: 0; margin: 1.6em 0 2em; display: grid; gap: 14px; }
.image-band .lines li { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; padding-left: 22px; border-left: 2px solid var(--accent); color: var(--text-on-photo-strong); }
.image-band p { color: var(--text-on-dark-soft); }

.give-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.give-split .steps { grid-template-columns: 1fr 1fr; }
.give-split .quick { box-shadow: none; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 28px); }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding: 0; list-style: none; }
.trust-line li { display: flex; gap: 8px; align-items: center; font-size: .94rem; color: var(--muted); }
.trust-line svg { width: 18px; height: 18px; color: var(--env); flex: none; }

.ways { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ways a { display: block; padding: 30px 26px 30px 0; text-decoration: none; color: inherit; }
.ways a + a { padding-left: 26px; border-left: 1px solid var(--line); }
.ways h3 { font-size: 1.3rem; margin-bottom: .35em; }
.ways p { color: var(--muted); margin-bottom: 1em; font-size: .97rem; }
.ways a:hover h3 { color: var(--accent-dark); }

@media (max-width: 960px) {
  .hero2 { min-height: 84vh; }
  .hero2 .wrap { padding-top: 140px; padding-bottom: 64px; }
  .hero2 .caption { display: none; }
  .pillar-grid { grid-template-columns: 1fr; gap: 48px; max-width: 560px; margin: 0 auto; }
  .pillar-item .ph { aspect-ratio: 4 / 3; }
  .now-strip, .ways { grid-template-columns: 1fr 1fr; }
  .now-strip > div:nth-child(3), .ways a:nth-child(3) { padding-left: 0; border-left: 0; }
  .now-strip > div:nth-child(n + 3), .ways a:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .give-split { grid-template-columns: 1fr; gap: 48px; }
  .give-split .quick { position: static; }
  .image-band { min-height: 0; }
  .image-band .bg::after { background: linear-gradient(180deg, rgba(20, 18, 16, .55), rgba(20, 18, 16, .88)); }
}
@media (max-width: 640px) {
  .hero2 h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero2 .btn-row .btn { flex: 1 1 100%; }
  .now-strip, .ways, .give-split .steps { grid-template-columns: 1fr; }
  .now-strip > div, .now-strip > div + div, .ways a, .ways a + a { padding: 22px 0; border-left: 0; }
  .now-strip > div + div, .ways a + a { border-top: 1px solid var(--line); }
}

/* UPI app buttons (donate page) */
.upi-heading { font-weight: 700; margin: 4px 0 10px; }
.upi-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upi-app { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: .8em 1em; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; text-align: center; transition: border-color .2s, background-color .2s; }
.upi-app:hover { border-color: var(--ink); }
.upi-app[data-upi="gpay"], .upi-app[data-upi="phonepe"], .upi-app[data-upi="paytm"] { background: var(--accent); border-color: var(--accent); }
.upi-app[data-upi="gpay"]:hover, .upi-app[data-upi="phonepe"]:hover, .upi-app[data-upi="paytm"]:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Donation acknowledgement (donate page) */
.ack { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r-lg); padding: 34px; scroll-margin-top: calc(var(--header-h) + 24px); }
.ack:focus { outline: none; }
.ack-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.ack-head img { width: 72px; height: 72px; flex: none; }
.ack-head .eyebrow { margin-bottom: .4em; }
.ack-head h3 { font-size: 1.6rem; margin: 0; }
.ack > p { color: var(--muted); }
.ack-list { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0; border-top: 1px solid var(--line); }
.ack-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ack-list > div:nth-child(odd) { padding-right: 16px; }
.ack-list dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ack-list dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ack-list dd[data-ack="ref"] { font-family: var(--serif); font-size: 1.15rem; color: var(--accent-dark); }
.ack-note { font-size: .92rem; }
.ack-sign { color: var(--ink) !important; margin: 20px 0 24px; line-height: 1.5; }
@media (max-width: 640px) {
  .ack { padding: 24px 20px; }
  .ack-list { grid-template-columns: 1fr; }
  .ack-list > div:nth-child(odd) { padding-right: 0; }
}
@media print {
  body * { visibility: hidden; }
  .ack, .ack * { visibility: visible; }
  .ack { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; }
  .ack-actions, .wa-float { display: none !important; }
}

/* ==========================================================================
   Consistency system (applies to every page)
   One section rhythm, one heading scale, one card style, one grid gap.
   ========================================================================== */
:root { --sp: 112px; --gap: 24px; --head-gap: 48px; --card-pad: 32px; }
@media (max-width: 960px) { :root { --sp: 88px; } }
@media (max-width: 640px) { :root { --sp: 64px; --gap: 16px; --head-gap: 32px; --card-pad: 24px; } }

/* Every section gets the same top and bottom space */
.section, .section-sm { padding: var(--sp) 0; }
/* Two sections with the same background in a row share one gap instead of doubling it */
:is(.section, .section-sm):not(.bg-soft):not(.bg-brand) + :is(.section, .section-sm):not(.bg-soft):not(.bg-brand),
.bg-soft + .bg-soft,
.bg-brand + .bg-brand { padding-top: 0; }

/* Section headers: one style everywhere */
.head, .sec-title { margin-bottom: var(--head-gap); }
.head { align-items: end; }
.eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.5rem); margin-bottom: 0; }
.head h2 + p, .sec-title h2 + p, .sec-title h2 + .lead, .head h2 + .lead { margin-top: 16px; }
.sec-title .lead, .head .lead { margin-bottom: 0; }
.h-sub { font-size: 1.5rem; margin: 0 0 24px; }
.split h2, .two-col h2, .profile h2, .give-split h2, .image-band h2 { margin-bottom: 16px; }

/* Grids: one gap */
.grid-2, .grid-3, .grid-4, .causes, .pillar-grid, .focus-grid, .team, .gift-row, .contact-cards, .other-causes, .obj-list, .now { gap: var(--gap); }
.split, .two-col, .give-split, .donate-grid, .profile { gap: 64px; }
@media (max-width: 960px) { .split, .two-col, .give-split, .donate-grid, .profile { gap: 40px; } }

/* Cards: one padding, one radius */
.card, .focus, .contact-card, .member, .gift, .form, .ack, .other-causes a { padding: var(--card-pad); border-radius: var(--r); }
.now li, .done > div { padding: 18px 20px; }
.two-col .faq { margin: 0; max-width: none; }
.steps.two { grid-template-columns: 1fr 1fr; }
.split .steps { margin: 32px 0; }
@media (max-width: 640px) { .steps.two { grid-template-columns: 1fr; } }

/* Page headers: same height on every inner page */
.page-hero .wrap, .page-hero.has-img .wrap { padding-top: 88px; padding-bottom: 88px; }
@media (max-width: 640px) { .page-hero .wrap, .page-hero.has-img .wrap { padding-top: 56px; padding-bottom: 56px; } }

/* ---------- Home: split hero ---------- */
.hero3 { background: linear-gradient(180deg, var(--surface-cream) 0%, var(--soft) 100%); border-bottom: 1px solid var(--line); }
.hero3 .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero3 h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.03; letter-spacing: -.02em; margin-bottom: 24px; }
.hero3 h1 em { font-style: italic; font-weight: 500; color: var(--accent-dark); }
.hero3 .intro { font-size: 1.16rem; line-height: 1.7; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero3 .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .92rem; color: var(--muted); }
.hero3 .meta li { display: flex; align-items: center; gap: 8px; }
.hero3 .meta svg { width: 16px; height: 16px; color: var(--accent-dark); }
.hero3 .visual { position: relative; }
.hero3 .visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: var(--r-lg); display: block; }
.hero3 .float { position: absolute; left: -32px; bottom: 32px; display: flex; gap: 14px; align-items: center; max-width: 290px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -24px rgba(35, 30, 25, .4); }
.hero3 .float .icon { width: 42px; height: 42px; margin: 0; flex: none; background: var(--animals-soft); color: var(--animals); }
.hero3 .float strong { display: block; font-size: .95rem; line-height: 1.3; }
.hero3 .float span { font-size: .84rem; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 960px) {
  .hero3 .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
  .hero3 .visual img { aspect-ratio: 4 / 3; }
  .hero3 .float { left: 16px; bottom: 16px; }
}
@media (max-width: 640px) {
  .hero3 .wrap { padding-top: 48px; padding-bottom: 56px; }
  .hero3 .btn-row .btn { flex: 1 1 100%; }
  .hero3 .float { position: static; margin-top: 12px; max-width: none; box-shadow: none; }
}

/* Home: who we are */
.founder-card { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.founder-card .portrait { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-dark); }
.founder-card h3 { margin-bottom: 4px; }
.founder-card .role { color: var(--accent-dark); font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.founder-card p { color: var(--muted); }
@media (max-width: 640px) { .founder-card { grid-template-columns: 1fr; } }

/* Policy pages */
.policy-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.policy-toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .95rem; }
.policy-toc li a:hover { color: var(--ink); border-left-color: var(--accent); }
.policy { max-width: 760px; }
.policy .h-sub { scroll-margin-top: calc(var(--header-h) + 24px); margin-top: 48px; }
.policy .h-sub:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--text-policy); }
.policy ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.policy a { color: var(--accent-dark); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 960px) { .policy-toc { display: none; } }


/* Named colours for values that used to be hard-coded (DESIGN.md §2) */
:root {
  --accent-soft-2: #f8dfb8;
  --border-hover: #cfc6b8;
  --qr-border: #d9d3cb;
  --emergency-bg: #fff4e5;
  --emergency-border: #f6dfb9;
  --env-illus-1: #2b6a45;
  --env-illus-2: #4f9a59;
  --env-tint-1: #f1f6ee;
  --env-tint-2: #e2f0df;
  --sand-strong: #e9dfcf;
  --surface-cream: #fbf8f2;
  --surface-dark: #23211f;
  --surface-darker: #1c1b19;
  --text-body: #2a2724;
  --text-on-dark: #e2ddd6;
  --text-on-dark-bright: #e6e1da;
  --text-on-dark-dim: #b3aca4;
  --text-on-dark-faint: #bdb6ae;
  --text-on-dark-lead: #d8d2ca;
  --text-on-dark-muted: #cfc9c1;
  --text-on-dark-soft: #d6d0c8;
  --text-on-photo: #ebe6df;
  --text-on-photo-strong: #f1ece5;
  --text-policy: #3a3633;
  --text-tertiary: #a9a199;
  --wa-bubble: #dcf8c6;
  --wa-chat-bg: #e7ddd3;
  --wa-text: #111111;
  --whatsapp: #25d366;
}

/* Cause choice icons (replace emoji, DESIGN.md §8) */
.choices label { display: inline-flex; align-items: center; gap: 8px; }
.choices label svg { width: 16px; height: 16px; flex: none; color: var(--c, var(--text-secondary)); }
.choices input:checked + label svg { color: currentColor; }

/* Touch targets: at least 44px on touch screens (DESIGN.md §9) */
@media (max-width: 960px) {
  .btn, .btn-sm, .chip, .choices label, .subnav a, .upi-app { min-height: 44px; }
  .socials a { width: 44px; height: 44px; }
  .logo { min-height: 44px; }
  .link-arrow { position: relative; }
  .link-arrow::before { content: ""; position: absolute; inset: -8px -4px; }
}
@media (max-width: 960px) { .foot-links a { display: inline-flex; align-items: center; min-height: 44px; } }

/* DESIGN.md token names, mapped to the stylesheet's colours */
:root {
  --text: var(--ink);
  --text-secondary: var(--muted);
  --surface: var(--white);
  --surface-alt: var(--soft);
  --border: var(--line);
  --accent-hover: var(--accent-dark);
  --success: var(--env);
  --error: var(--danger);
  --warning: var(--accent-dark);
}

/* Selected pill choice (class set by main.js; mirrors :checked) */
.choices label.on { background: var(--brand); border-color: var(--brand); color: var(--white); }
.choices label.on svg { color: currentColor; }
.js .choices label:not(.on) { background: var(--white); color: var(--ink); border-color: var(--line); }
.js .choices input:checked + label:not(.on) { background: var(--white); color: var(--ink); border-color: var(--line); }

/* ==========================================================================
   L2 motion (DESIGN.md §7). Active only when motion.js adds .motion to <html>
   (never for prefers-reduced-motion).
   ========================================================================== */
:root { --accent-rgb: 242, 166, 59; --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* 1–2. Word-by-word headings */
.motion .wsplit .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em 0; margin-bottom: -.1em; }
.motion .wsplit .wi { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .9s var(--ease-out), opacity .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.motion .wsplit.split-in .wi { transform: none; opacity: 1; }
.motion main h2.wsplit .wi { transform: translateY(60%); transition-duration: .8s; transition-delay: calc(var(--i, 0) * 40ms); }
.motion main h2.wsplit.split-in .wi { transform: none; }

/* 3. Eyebrow rule draws in; scroll-linked ink text */
.motion .eyebrow::before { transform: scaleX(0); transform-origin: left center; transition: transform .7s var(--ease-out) .1s; }
.motion .eyebrow.drawn::before { transform: none; }
.motion .ink .wi { opacity: .4; transition: opacity .35s ease; }
.motion .ink .wi.lit { opacity: 1; }

/* 4. Magnetic buttons */
.motion .btn { transition: transform .35s var(--ease-out), background-color .2s, border-color .2s, color .2s; }

/* 5. Spotlight cards */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s ease; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .12), transparent 45%); }
.spot:hover::after { opacity: 1; }
.pillar-item .ph.spot::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 50%); }

/* 6. Ambient hero background: slow drifting warmth + fine grain */
.motion .hero3 { position: relative; overflow: hidden; }
.motion .hero3::before { content: ""; position: absolute; inset: -25%; pointer-events: none; z-index: 0;
  background: radial-gradient(38% 45% at 22% 30%, rgba(var(--accent-rgb), .16), transparent 70%),
              radial-gradient(32% 40% at 78% 72%, rgba(60, 138, 78, .09), transparent 70%);
  animation: yaamie-drift 28s ease-in-out infinite alternate; }
.motion .hero3::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .35; mix-blend-mode: multiply;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.motion .hero3 .wrap { position: relative; z-index: 1; }
@keyframes yaamie-drift { to { transform: translate3d(5%, -4%, 0) scale(1.06); } }

/* Grids stagger in */
.motion :is(.pillar-grid, .grid-2, .grid-3, .grid-4, .focus-grid, .causes, .team, .gift-row, .contact-cards, .other-causes, .steps) > .reveal:nth-child(2) { transition-delay: .08s; }
.motion :is(.pillar-grid, .grid-2, .grid-3, .grid-4, .focus-grid, .causes, .team, .gift-row, .contact-cards, .other-causes, .steps) > .reveal:nth-child(3) { transition-delay: .16s; }
.motion :is(.pillar-grid, .grid-2, .grid-3, .grid-4, .focus-grid, .causes, .team, .gift-row, .contact-cards, .other-causes, .steps) > .reveal:nth-child(4) { transition-delay: .24s; }
.motion :is(.pillar-grid, .grid-2, .grid-3, .grid-4, .focus-grid, .causes, .team, .gift-row, .contact-cards, .other-causes, .steps) > .reveal:nth-child(n + 5) { transition-delay: .32s; }

/* Header compacts on scroll */
.nav { transition: height .3s var(--ease-out); }
.logo img { transition: height .3s var(--ease-out); }
@media (min-width: 961px) {
  .site-header.scrolled .nav { height: 64px; }
  .site-header.scrolled .logo img { height: 40px; }
}

/* Parallax photo band: image is scaled slightly so movement never shows an edge */
.motion .image-band .bg img { will-change: transform; }
.motion .wsplit.hero-split .wi { animation: yaamie-rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
@keyframes yaamie-rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Donate: phone-only UPI app buttons vs. desktop QR guidance */
.upi-desktop { display: none; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: var(--accent-soft); margin-bottom: 4px; }
.upi-desktop .icon { margin: 0; flex: none; background: var(--white); color: var(--accent-dark); }
.upi-desktop strong { display: block; margin-bottom: 4px; }
.upi-desktop p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (hover: hover) and (pointer: fine) {
  .upi-desktop { display: flex; }
  .upi-mobile { display: none; }
}
