/* Hope Foundation website - styles
   Plain CSS, no frameworks, no webfonts (the site opens offline). Light theme only.
   Order: 1 tokens - 2 base - 3 global components (buttons, cards, forms, dialogs, header, footer)
          - 4 home-page sections. Sub-pages (Campaigns, Programmes, Donate, Volunteer, About, Stories,
   Transparency, Contact) reuse parts 1-3 unchanged; every colour goes through a :root token and
   nothing below is coupled to an element id. Palette: website/DESIGN-BRIEF.md. */

/* ===================================================================== 1. Tokens */
:root {
  --forest: #123C2D;        /* header/footer, dark bands, headings on light */
  --forest-deep: #08271D;   /* footer bottom, dark band gradients */
  --forest-2: #1B4A38;      /* raised surfaces on a forest band */
  --cream: #F7F4EA;         /* page canvas */
  --warm-white: #FCFBF7;    /* cards */
  --sage: #DCE8D8;          /* tint behind icons, chips, stripes */
  --sage-2: #EDF3EA;        /* lighter tint: tab strip, tinted cards */
  --sage-3: #C9DBC6;        /* darker sage: avatar ramp, tinted borders */
  --leaf: #2F7D4A;          /* action green: outlined buttons, links, progress fills */
  --leaf-dark: #256640;     /* hover for leaf */
  --yellow: #F6B72C;        /* PRIMARY CTA fill - charcoal text only, never as text */
  --yellow-dark: #E9A81B;
  --yellow-tint: #FCEFCB;   /* soft yellow background (with charcoal text) */
  --ink: #17201C;           /* charcoal: body text */
  --muted: #65716A;         /* secondary text (AA on cream and warm white) */
  --line: #E3E0D6;
  --line-2: #CFCBBE;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --error-on-dark: #FFB4A8;
  --on-dark: #DCE8D8;       /* text on forest */
  --on-dark-muted: #A9BDB1;
  --white: #FFFFFF;
  --font: 'Segoe UI', Inter, Roboto, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(8, 39, 29, .08);
  --shadow-lg: 0 20px 48px rgba(8, 39, 29, .16);
  --container: 1400px;
  --gutter: 16px;
  --gap: 24px;
  --gap-lg: clamp(24px, 2.4vw, 40px);
  --header-h: 109px;
  /* motion: four durations, three curves - the whole vocabulary */
  --dur-1: 140ms;   /* colour and border micro-states */
  --dur-2: 220ms;   /* hover lift, toggles, dialog, panel swap */
  --dur-3: 420ms;   /* small-element reveal, tile stagger */
  --dur-4: 640ms;   /* section and hero entrance */
  --ease-out: cubic-bezier(.22, .8, .3, 1);
  --ease-inout: cubic-bezier(.65, .05, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.42, .5, 1);
  color-scheme: light only;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }
@media (min-width: 1700px) { :root { --container: 1520px; --gutter: 40px; } }

/* ===================================================================== 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; color: var(--forest); }
h2 { font-size: clamp(1.75rem, 1.15rem + 1.9vw, 3rem); text-wrap: balance; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--leaf); }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* focus ring: never animated, never changes the element's own corners */
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.impact :focus-visible, .cta :focus-visible, .footer :focus-visible, .utility :focus-visible,
.involve-card--dark :focus-visible, .story-card--lg :focus-visible { outline-color: var(--yellow); }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .75rem; color: var(--leaf); margin: 0 0 14px; }
.eyebrow--gold { color: var(--yellow); } /* accent on dark bands only (6.9:1 on forest) */
.lead { font-size: 1.125rem; color: var(--muted); max-width: 52ch; }
.h4 { font-size: 1.05rem; margin: 0; }
.h5 { font-size: 1rem; margin: 0 0 10px; }

/* ===================================================================== 3. Global components */
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.3em; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; position: relative;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.btn .icon { width: 19px; height: 19px; transition: transform var(--dur-2) var(--ease-out); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: 80ms; }
.btn--primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn--green { background: var(--leaf); color: var(--white); border-color: var(--leaf); }
.btn--green:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); }
.btn--outline { background: transparent; color: var(--forest); border-color: var(--leaf); }
.btn--outline:hover { background: var(--sage-2); border-color: var(--leaf-dark); color: var(--leaf-dark); }
.btn--light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn--lg { padding: .95em 1.6em; font-size: 1rem; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn[aria-busy="true"] { color: transparent; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--ink) var(--ink) transparent transparent; animation: spin .7s linear infinite; }
.btn--green[aria-busy="true"]::after { border-color: var(--white) var(--white) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 12px 0; color: var(--leaf); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .4em; cursor: pointer; text-decoration: none; }
.link-btn .icon { transition: transform var(--dur-2) var(--ease-out); }
.link-btn:hover { text-decoration: underline; color: var(--leaf-dark); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--leaf); text-decoration: underline; cursor: pointer; }

/* Cards */
.card { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card--tint { background: var(--sage-2); border-color: var(--sage-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.pill--tag { background: var(--yellow-tint); color: var(--ink); }
.pill--live { position: absolute; left: 16px; top: 16px; background: var(--warm-white); color: var(--leaf-dark); box-shadow: var(--shadow); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #D93F2B; }
.bar { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 100%; background: var(--leaf); border-radius: inherit; transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-4) var(--ease-out); }
.bar--dark { background: rgba(255, 255, 255, .2); }
.bar--dark .bar__fill { background: var(--yellow); }
.stat { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.stat__body { min-width: 0; }
.stat__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sage); color: var(--leaf); display: grid; place-items: center; flex: none; margin-top: 2px; }
.stat__icon .icon { width: 24px; height: 24px; }
/* inline-block so a count-up can reserve its width, but capped at the cell or a long
   amount like Rs 19,06,500 sits on one line and spills out of it on a phone. */
.stat__num { display: inline-block; max-width: 100%; font-size: clamp(1.8rem, 1.1rem + 1.1vw, 2.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--forest); overflow-wrap: anywhere; }
.stat__label { display: block; font-size: .85rem; color: var(--muted); }
.list-check { list-style: none; display: grid; gap: 8px; font-size: .9rem; }
.list-check li { padding-left: 28px; position: relative; }
.list-check li::before { content: "\2713"; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); color: var(--white); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.badges { list-style: none; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; flex-direction: column; min-width: 124px; }
.badges strong { color: var(--leaf-dark); }
.badges span { font-size: .75rem; color: var(--muted); }

/* Segmented toggle (sliding thumb positioned by JS through --seg-x / --seg-w) */
.seg { display: inline-flex; position: relative; isolation: isolate; background: var(--warm-white); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: var(--seg-w, 0px); transform: translateX(var(--seg-x, 0px)); border-radius: 999px; background: var(--forest); opacity: var(--seg-on, 0); transition: transform var(--dur-2) var(--ease-inout), width var(--dur-2) var(--ease-inout); }
.seg__btn { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: color var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.seg__btn:not(.is-active):hover { background: var(--sage-2); color: var(--forest); }
.seg__btn.is-active { color: var(--white); }
.seg:not(.has-thumb) .seg__btn.is-active { background: var(--forest); }
.seg--radio { flex-wrap: wrap; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.seg__opt:hover span { background: var(--sage-2); color: var(--forest); }
.seg__opt input:checked + span { background: var(--forest); color: var(--white); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* Forms */
.form { padding: clamp(18px, 3vw, 32px); }
.form__title { font-size: 1.5rem; margin: 0 0 6px; }
.form__lede { color: var(--muted); margin: 0 0 22px; }
.stepper { list-style: none; margin: 0 0 24px; display: flex; gap: 8px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--cream); color: var(--muted); font-size: .85rem; font-weight: 600; min-width: 0; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.stepper li.is-active { background: var(--sage); color: var(--forest); }
.stepper li.is-done { color: var(--leaf-dark); }
.stepper__num { width: 26px; height: 26px; border-radius: 50%; background: var(--warm-white); border: 2px solid var(--line-2); display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-spring); }
.is-active .stepper__num { background: var(--leaf); border-color: var(--leaf); color: var(--white); transform: scale(1.1); }
.is-done .stepper__num { background: var(--forest); border-color: var(--forest); color: var(--white); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step__title { display: block; width: 100%; padding: 0; margin: 0 0 16px; font-weight: 800; font-size: 1.1rem; color: var(--forest); }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field legend.label { padding: 0; }
.label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); min-height: 46px; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
textarea { resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365716A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--error); background-color: var(--error-bg); }
fieldset.field.is-invalid .check--box { border-color: var(--error); background: var(--error-bg); }
.field__hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; max-width: 62ch; }
.field__error { font-size: .85rem; color: var(--error); margin: 6px 0 0; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.field__error::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--error); color: var(--white); font-size: .7rem; display: grid; place-items: center; margin-top: 3px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-prefix, .input-rupee { display: flex; align-items: stretch; }
.input-prefix span, .input-rupee span { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line-2); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--cream); color: var(--muted); font-weight: 700; }
.input-prefix input, .input-rupee input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amount { background: var(--white); border: 2px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 8px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; color: var(--ink); min-width: 0; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.amount strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.amount span { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.amount:hover { border-color: var(--leaf); }
.amount:active { transform: scale(.97); transition-duration: 80ms; }
.amount[aria-pressed="true"] { border-color: var(--leaf); background: var(--sage); box-shadow: inset 0 0 0 1px var(--leaf); }
.step__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.summary { margin: 0 0 20px; padding: 16px 20px; background: var(--cream); border-radius: var(--radius-sm); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; font-size: .95rem; }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--leaf); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check--box { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 8px 14px 8px 10px; background: var(--white); align-items: center; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.check--box:hover { border-color: var(--leaf); }
.check--box:has(input:checked) { border-color: var(--leaf); background: var(--sage); }
.check--box:has(input:focus-visible) { outline: 3px solid var(--leaf); outline-offset: 2px; }
.check--box input:focus-visible { outline: none; }
.check--box input { margin-top: 0; }
.form__note { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); background: var(--cream); padding: 12px 14px; border-radius: var(--radius-sm); margin: 0; flex-wrap: wrap; }
.form__note .icon { color: var(--leaf); margin-top: 1px; }
.form__demo { font-weight: 700; color: var(--forest); }
.form__alert { display: flex; gap: 10px; align-items: flex-start; background: var(--error-bg); border: 1px solid #F3C6C1; color: var(--error); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 16px; font-size: .9rem; font-weight: 600; }
.form__alert .icon { flex: none; margin-top: 2px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* In-page confirmation (replaces the form after a successful API post) */
.confirm { padding: clamp(18px, 3vw, 32px); }
.confirm__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: var(--leaf); display: grid; place-items: center; margin-bottom: 18px; }
.confirm__icon .icon { width: 32px; height: 32px; stroke-width: 2.2; }
.confirm h3 { font-size: 1.6rem; margin: 0 0 6px; }
.confirm__lead { color: var(--muted); margin: 0 0 20px; max-width: 60ch; }
.confirm__facts { margin: 0 0 20px; padding: 18px 20px; background: var(--cream); border-radius: var(--radius-sm); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; font-size: .95rem; }
.confirm__facts dt { color: var(--muted); font-weight: 600; }
.confirm__facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.confirm__diary { list-style: none; display: grid; gap: 8px; margin: 0 0 20px; }
.confirm__diary li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.confirm__diary .icon { color: var(--leaf); flex: none; margin-top: 2px; }
.confirm__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.confirm__ref { font-size: .78rem; color: var(--muted); margin: 18px 0 0; overflow-wrap: anywhere; }
.js-reveal .confirm { animation: rise-in var(--dur-4) var(--ease-out) backwards; }
.js-reveal .confirm__icon { animation: pop-in 540ms var(--ease-spring) 180ms backwards; }
.js-reveal .confirm__facts { animation: rise-in var(--dur-4) var(--ease-out) 260ms backwards; }
.js-reveal .confirm__diary li { animation: rise-in var(--dur-3) var(--ease-out) backwards; animation-delay: calc(420ms + var(--i, 0) * 80ms); }
.js-reveal .confirm__actions { animation: rise-in var(--dur-3) var(--ease-out) 640ms backwards; }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.72); } }

/* Dialogs */
.dialog { border: 0; padding: 0; border-radius: var(--radius-lg); max-width: min(680px, calc(100% - 32px)); width: 100%; box-shadow: var(--shadow-lg); background: var(--warm-white); color: var(--ink); overflow: hidden; opacity: 0; transform: translateY(12px) scale(.985);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), overlay var(--dur-2) allow-discrete, display var(--dur-2) allow-discrete; }
.dialog[open] { opacity: 1; transform: none; }
.dialog::backdrop { background: rgba(8, 39, 29, .6); opacity: 0; transition: opacity var(--dur-2) var(--ease-out), overlay var(--dur-2) allow-discrete, display var(--dur-2) allow-discrete; }
.dialog[open]::backdrop { opacity: 1; }
@starting-style {
  .dialog[open] { opacity: 0; transform: translateY(12px) scale(.985); }
  .dialog[open]::backdrop { opacity: 0; }
}
.dialog__media { background: var(--sage); overflow: hidden; }
.dialog__media img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; object-position: 60% 40%; }
.dialog__body { padding: 28px; }
.dialog__body h2 { font-size: 1.5rem; margin: 12px 0 10px; }
.dialog__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.dialog__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(252, 251, 247, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.dialog__x:hover { background: var(--white); transform: rotate(90deg); }
.dialog__x .icon { width: 20px; height: 20px; }
.search { display: flex; gap: 8px; margin: 14px 0 12px; }
.search input { flex: 1; }
.search__results { list-style: none; display: grid; gap: 4px; max-height: 40vh; overflow: auto; }
.search__results a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.search__results a:hover { background: var(--sage-2); }
.search__results small { color: var(--muted); }
@media (max-width: 479px) { .dialog__body { padding: 22px 18px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; }
.utility { background: var(--forest); color: var(--on-dark); font-size: .8125rem; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.utility__left { margin: 0; display: flex; align-items: center; gap: .45em; flex-wrap: wrap; }
.utility__left .icon { color: var(--yellow); }
.utility__dot { opacity: .6; }
.utility__links { list-style: none; display: flex; gap: 22px; align-items: center; }
.utility__links a { color: var(--on-dark); text-decoration: none; transition: color var(--dur-1) var(--ease-out); }
.utility__links a:hover { color: var(--white); text-decoration: underline; }
.utility__search { background: none; border: 0; color: var(--on-dark); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.utility__search:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.utility__search .icon { width: 18px; height: 18px; }
.badge-sample { background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .7rem; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.navbar { background: rgba(252, 251, 247, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow var(--dur-2) var(--ease-out); }
.site-header.is-scrolled .navbar { box-shadow: var(--shadow); }
.navbar__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand__mark { width: 40px; height: 40px; stroke: none; color: var(--forest); --logo-vein: var(--cream); --logo-accent: var(--yellow); }
.brand__name { font-weight: 800; line-height: 1.02; font-size: 1.05rem; letter-spacing: -.01em; }
.brand--light { color: var(--white); }
.brand--light .brand__mark { color: var(--sage); --logo-vein: var(--forest-deep); }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 2px; }
.nav__list a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.nav__list a:hover { background: var(--sage); color: var(--forest); }
.nav-toggle { display: none; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); background: var(--white); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__close { display: block; }
.nav-open .nav-toggle__open { display: none; }
.nav-scrim { position: fixed; inset: 0; background: rgba(8, 39, 29, .45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease-out); }
.nav-open ~ .nav-scrim, .nav-scrim.is-on { opacity: 1; pointer-events: auto; }
.nav--static { display: block; position: static; box-shadow: none; border: 0; padding: 0; margin-left: auto; }
@media (max-width: 899px) {
  .utility__links { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--warm-white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; padding: 10px var(--gutter) 18px; margin: 0; }
  .site-header.nav-open .nav { display: block; }
  .js-reveal .site-header.nav-open .nav { animation: rise-in var(--dur-2) var(--ease-out); }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { padding: 12px 14px; font-size: 1.05rem; }
  .navbar__cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav--static { display: none; }
}
@media (max-width: 599px) {
  :root { --header-h: 73px; }
  .utility { display: none; }
}
@media (max-width: 479px) {
  .navbar__cta { padding: .6em 1em; font-size: .9rem; }
  .nav-toggle span { display: none; }
  .nav-toggle { padding: 8px 10px; }
}
@media (max-width: 379px) {
  .navbar__inner { gap: 8px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: .9rem; }
  .navbar__cta { padding: .72em .9em; font-size: .82rem; }
}

/* Footer */
.footer { background: var(--forest-deep); color: var(--on-dark); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.7fr; gap: var(--gap); padding-block: 56px 40px; }
.footer h3 { color: var(--white); font-size: .95rem; margin: 0 0 14px; }
.footer a { color: var(--on-dark); text-decoration-color: rgba(220, 232, 216, .5); transition: color var(--dur-1) var(--ease-out); }
.footer a:hover { color: var(--white); }
.footer__col ul { list-style: none; display: grid; gap: 2px; }
.footer__col a { display: inline-block; padding-block: 7px; text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__brand p { margin: 16px 0 0; max-width: 34ch; }
.footer__fine { font-size: .78rem; color: var(--on-dark-muted); }
.footer__social { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(220, 232, 216, .28); display: grid; place-items: center; color: var(--on-dark); transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.footer__social a:hover { border-color: var(--yellow); color: var(--yellow); }
.footer__social .icon { width: 18px; height: 18px; }
.news .label { color: var(--white); }
.news input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: var(--white); }
.news input::placeholder { color: var(--on-dark-muted); }
.news__row { display: flex; gap: 8px; }
.news__row input { flex: 1; }
.news__row .btn { padding: 0 18px; min-height: 46px; }
.news .check { color: var(--on-dark); }
.news .check input { appearance: none; -webkit-appearance: none; border: 1.5px solid rgba(220, 232, 216, .6); border-radius: 5px; background: transparent; cursor: pointer; transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.news .check input:checked { background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317201C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--yellow); }
.news .field__error { color: var(--error-on-dark); }
.news .field__error::before { background: var(--error-on-dark); color: var(--forest-deep); }
.news .optional { color: var(--on-dark-muted); }
.news .link { color: var(--sage); text-decoration-color: rgba(220, 232, 216, .5); }
.news .link:hover { color: var(--white); }
.news .form__alert { background: rgba(255, 180, 168, .12); border-color: rgba(255, 180, 168, .4); color: var(--error-on-dark); }
.footer .confirm { padding: 0; margin-top: 4px; background: transparent; border: 0; color: var(--on-dark); }
.footer .confirm h3 { color: var(--white); font-size: 1.2rem; }
.footer .confirm__lead { color: var(--on-dark); }
.footer .confirm__icon { width: 44px; height: 44px; margin-bottom: 12px; }
.footer .confirm__icon .icon { width: 24px; height: 24px; }
.footer .confirm__ref { color: var(--on-dark-muted); }
.footer .confirm__actions .btn--outline { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.footer .confirm__actions .btn--outline:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }
.footer__demo { margin: 0; color: var(--sage); font-weight: 700; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a, .link--footer { color: var(--on-dark); text-decoration: none; font: inherit; padding-block: 6px; display: inline-block; transition: color var(--dur-1) var(--ease-out); }
.footer__bottom a:hover, .link--footer:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: 1 / -1; }
}
@media (max-width: 599px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; } }

/* Section heads (third track reserved so the intro column lines up on every section) */
.section__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 240px; gap: 24px 32px; align-items: end; margin-bottom: 32px; }
.section__heading .eyebrow { margin-bottom: 10px; }
.section__heading h2 { margin: 0; max-width: 22ch; }
.section__intro { margin: 0 0 4px; color: var(--muted); max-width: 46ch; }
.section__head .btn { justify-self: end; }
@media (max-width: 899px) { .section__head { grid-template-columns: 1fr; align-items: start; gap: 14px; } .section__head .btn { justify-self: start; } }

/* Scroll reveal - once per element, then still. Only under .js-reveal (JS + motion allowed). */
.js-reveal [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* Card hover: 4px lift, image zoom, arrow nudge - pointer devices only; keyboard gets the same via focus */
.prog-card img, .story-card img, .involve-card img, .campaign-card img { transition: transform 600ms var(--ease-out); }
.prog-card, .story-card, .involve-card, .campaign-card { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.prog-card:focus-within, .story-card:focus-within, .involve-card:focus-within, .campaign-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.link-btn:focus-visible .icon { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .icon { transform: translateX(3px); }
  .prog-card:hover, .story-card:hover, .involve-card:hover, .campaign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .prog-card:hover img, .story-card:hover img, .involve-card:hover img, .campaign-card:hover img { transform: scale(1.045); }
  .prog-card:hover .link-btn .icon, .story-card:hover .link-btn .icon { transform: translateX(4px); }
  .tile:hover { border-color: var(--leaf); transform: translateY(-2px); box-shadow: var(--shadow); }
  .tiles-mini a:hover, .tiles-mini li:hover { border-color: var(--leaf); transform: translateY(-2px); }
}

/* ===================================================================== 4. Home page sections */
/* Hero - fills the fold on the 1920x1080 projector, first CTA visible without scrolling */
.hero { padding-top: clamp(24px, 3vw, 48px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-lg); align-items: center; padding-bottom: 88px; }
.display { font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.028em; margin: 0 0 .45em; text-wrap: balance; }
.display em { font-style: normal; color: var(--leaf); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero__proof { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--muted); }
.hero__proof p { margin: 0; line-height: 1.35; }
.hero__proof strong { color: var(--ink); }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cream); margin-left: -9px; display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: var(--forest); background: var(--sage); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: #CFE2D5; }
.avatars span:nth-child(3) { background: #BFD6C7; }
.avatars span:nth-child(4) { background: #AECBB8; }
.hero__visual { position: relative; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; max-height: 600px; object-fit: cover; object-position: 100% 50%; border-radius: var(--radius-lg); background: var(--sage); }
.hero__chip { position: absolute; right: 18px; bottom: 22%; background: var(--warm-white); border-radius: var(--radius); padding: 10px 16px 10px 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.25; }
.hero__chip strong { display: block; color: var(--forest); }
.hero__chip small { color: var(--muted); display: block; font-size: .8rem; }
.hero__chip-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow-tint); color: var(--forest); display: grid; place-items: center; flex: none; }
@media (min-width: 1200px) {
  .hero__inner { min-height: min(calc(100vh - var(--header-h) - 16px), 940px); }
}
@media (min-width: 1700px) {
  .hero__img { aspect-ratio: 5 / 4; max-height: 640px; }
}
@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 72px; }
  .hero__img { aspect-ratio: 16 / 10; max-height: 400px; object-position: 88% 50%; }
  .hero__chip { right: 12px; bottom: 12px; }
}
/* hero load entrance (load animation, not a scroll reveal - never in the observer set) */
.js-reveal .hero__copy > * { animation: hero-in var(--dur-4) var(--ease-out) backwards; }
.js-reveal .hero__copy > :nth-child(1) { animation-delay: 60ms; }
.js-reveal .hero__copy > :nth-child(2) { animation-delay: 130ms; }
.js-reveal .hero__copy > :nth-child(3) { animation-delay: 200ms; }
.js-reveal .hero__copy > :nth-child(4) { animation-delay: 260ms; }
.js-reveal .hero__copy > :nth-child(5) { animation-delay: 320ms; }
.js-reveal .hero__img { animation: hero-img-in 760ms var(--ease-out) 150ms backwards; }
.js-reveal .hero__chip { animation: chip-in var(--dur-4) var(--ease-spring) 640ms backwards; }
.js-reveal .glance__card[data-reveal] { transition-delay: 420ms; }
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
@keyframes hero-img-in { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(1.03); } }
@keyframes chip-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.94); } }

/* At a glance - four dominant numbers */
.glance { margin-top: -64px; position: relative; z-index: 2; }
.glance__card { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.glance__title .eyebrow { margin-bottom: 4px; }
.glance__stats { list-style: none; display: flex; justify-content: space-between; gap: clamp(20px, 2.6vw, 48px); flex-wrap: wrap; }
.glance__note { white-space: nowrap; font-size: .75rem; color: var(--muted); margin: 0; text-align: right; line-height: 1.3; align-self: start; }
.glance__note br { display: none; }
@media (max-width: 1023px) {
  .glance__card { grid-template-columns: 1fr; gap: 18px; }
  .glance__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .glance__note { text-align: left; }
}
@media (max-width: 479px) {
  .glance__card { padding: 20px 18px; }
  /* One column below 480px. Two columns leaves about 96px for the figure, and an amount
     like Rs 19,06,500 needs more than that at a readable size. */
  .glance__stats { grid-template-columns: 1fr; gap: 14px; }
  .stat__icon { width: 40px; height: 40px; }
  .stat__icon .icon { width: 20px; height: 20px; }
  .stat__num { font-size: 1.45rem; }
}

/* Our work */
.work__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: var(--gap); }
.prog-card { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); min-width: 0; }
.prog-card--lg { grid-row: span 2; }
.prog-card__media { position: relative; background: var(--sage); overflow: hidden; }
.prog-card__media img { width: 100%; aspect-ratio: 2.3 / 1; object-fit: cover; }
.prog-card--lg .prog-card__media { flex: 1; min-height: 300px; }
.prog-card--lg .prog-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.prog-card__tag { position: absolute; left: 14px; top: 14px; max-width: calc(100% - 28px); line-height: 1.3; background: rgba(252, 251, 247, .94); color: var(--leaf-dark); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.prog-card__body { padding: 22px 24px 24px; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-content: start; }
.prog-card__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--sage); color: var(--leaf); display: grid; place-items: center; grid-row: 1 / span 7; }
.prog-card__icon .icon { width: 22px; height: 22px; }
.prog-card__title { margin: 0; font-size: 1.2rem; align-self: center; }
.prog-card--lg .prog-card__title { font-size: 1.4rem; }
.prog-card__text { margin: 0; color: var(--muted); font-size: .95rem; }
.prog-card__facts { display: flex; gap: 28px; margin: 4px 0 2px; }
.prog-card__facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.prog-card__facts dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.prog-card__funding { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); margin: 2px 0 6px; }
.prog-card__funded { white-space: nowrap; }
.prog-card .link-btn { justify-self: start; margin-top: -4px; }
@media (min-width: 1100px) {
  .prog-card--sm { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .prog-card--sm .prog-card__media { min-height: 100%; }
  .prog-card--sm .prog-card__media img { height: 100%; min-height: 280px; aspect-ratio: auto; }
  .prog-card--sm .prog-card__body { padding: 22px 22px 22px 20px; }
  .prog-card--sm .prog-card__tag { position: static; display: inline-block; grid-column: 2; margin: 0 0 2px; background: var(--sage); color: var(--forest); justify-self: start; }
  .prog-card--sm .prog-card__title { min-height: 2.6em; }
  .prog-card--lg .prog-card__body { padding: 26px 28px 28px; }
  .prog-card--lg .prog-card__text { font-size: 1rem; }
}
@media (max-width: 899px) {
  .work__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .prog-card--lg { grid-row: auto; }
  .prog-card--lg .prog-card__media { flex: none; min-height: 0; }
  .prog-card--lg .prog-card__media img { position: static; aspect-ratio: 2.3 / 1; height: auto; }
}
@media (max-width: 479px) {
  .prog-card__media img, .prog-card--lg .prog-card__media img { aspect-ratio: 1.8 / 1; }
  .prog-card__body { padding: 18px; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
  .prog-card__facts { gap: 18px; }
}

/* Our impact (forest band) */
.impact { background: var(--forest); color: var(--white); }
.impact__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-lg); align-items: center; }
.impact h2 { color: var(--white); }
.impact__copy > p { color: var(--on-dark); max-width: 50ch; }
.impact__stats { list-style: none; margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; max-width: 600px; }
.impact__stats .stat__icon { background: rgba(246, 183, 44, .14); color: var(--yellow); }
.impact__stats .stat__num { color: var(--white); }
.impact__stats .stat__label { color: var(--on-dark); }
.impact__year { font-size: .8rem; color: var(--on-dark-muted); margin: 18px 0 0; max-width: 60ch; }
@media (max-width: 1023px) { .impact__inner { grid-template-columns: 1fr; } }

/* Campaign card */
.campaign-card { background: var(--warm-white); color: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.campaign-card__media { position: relative; background: var(--sage); overflow: hidden; }
.campaign-card__media img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; }
.campaign-card.is-in .pill__dot { animation: dot 2.4s ease-in-out infinite; }
@keyframes dot { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.campaign-card__body { padding: 22px 24px 24px; }
.campaign-card h3 { font-size: 1.3rem; margin: 0 0 4px; }
.campaign-card__tagline { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.campaign-card__raised { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.campaign-card__raised strong { display: inline-block; font-size: 1.6rem; color: var(--leaf-dark); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.campaign-card__raised span { color: var(--muted); font-size: .9rem; }
.campaign-card .bar { height: 10px; margin-bottom: 12px; background: var(--sage); }
.campaign-card .bar__fill { background: var(--leaf); }
.campaign-card__meta { list-style: none; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .875rem; color: var(--muted); }
.campaign-card__meta li { display: flex; align-items: center; gap: 6px; }
.campaign-card__meta .icon { color: var(--leaf); }

/* How your support helps */
.giving__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-lg); align-items: start; }
.giving__copy p { color: var(--muted); }
.giving__copy .btn { margin-top: 6px; }
.tiles { list-style: none; margin: 28px 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tiles li { min-width: 0; }
.tile { position: relative; width: 100%; height: 100%; text-align: left; background: var(--warm-white); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 16px 18px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.tile:active { transform: scale(.97); transition-duration: 80ms; }
.tile--top { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-tint), var(--shadow); }
.tile__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--forest); color: var(--white); font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.tile__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--sage); color: var(--leaf); display: grid; place-items: center; }
.tile__amount { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--forest); }
.tile__freq { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: -4px; }
.tile__line { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.tiles__note { font-size: .8rem; color: var(--muted); max-width: 62ch; }
.trust { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-size: .8rem; color: var(--muted); }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust .icon { color: var(--leaf); width: 22px; height: 22px; }
.trust strong { display: block; color: var(--ink); }
@media (max-width: 1199px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1023px) { .giving__inner { grid-template-columns: 1fr; } }
@media (max-width: 479px) {
  .tiles { gap: 16px 10px; }
  .tile { padding: 18px 12px 14px; }
  .tile__amount { font-size: 1.25rem; }
  .trust { grid-template-columns: 1fr; }
}

/* Stories */
.stories__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.story-card { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); min-width: 0; }
.story-card__media { background: var(--sage); overflow: hidden; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; object-position: 50% 38%; }
.story-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.story-card__title { margin: 0; font-size: 1.15rem; }
.story-card__blurb { margin: 0; color: var(--muted); font-size: .925rem; flex: 1; }
.story-card--lg { grid-row: span 2; grid-template-columns: 1fr; position: relative; color: var(--white); background: var(--forest); min-height: 400px; align-content: end; }
.story-card--lg .story-card__media { position: absolute; inset: 0; }
.story-card--lg .story-card__media img { height: 100%; }
.story-card--lg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 39, 29, .88) 0%, rgba(8, 39, 29, .45) 40%, rgba(8, 39, 29, 0) 70%); }
.story-card--lg .story-card__body { position: relative; z-index: 1; padding: 28px; }
.story-card--lg .story-card__title { font-size: 1.75rem; color: var(--white); }
.story-card--lg .story-card__blurb { color: var(--sage); flex: 0; }
.story-card--lg .link-btn { color: var(--yellow-tint); }
@media (max-width: 1099px) {
  .story-card:not(.story-card--lg) { grid-template-columns: 1fr; }
  .story-card:not(.story-card--lg) .story-card__media img { height: auto; min-height: 0; aspect-ratio: 2.4 / 1; }
}
@media (max-width: 899px) {
  .stories__grid { grid-template-columns: 1fr; }
  .story-card--lg { grid-row: auto; min-height: 380px; }
}
@media (max-width: 479px) {
  .story-card--lg { min-height: 340px; }
  .story-card--lg .story-card__title { font-size: 1.4rem; }
}

/* Get involved - art as a banner above the body */
.involve__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: 48px; }
.involve-card { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr; box-shadow: var(--shadow); min-width: 0; }
.involve-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.involve-card h3 { margin: 0; font-size: 1.2rem; }
.involve-card p { flex: 1; color: var(--muted); font-size: .925rem; margin: 0; }
.involve-card .btn { max-width: 100%; white-space: normal; text-align: center; }
.involve-card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow-tint); color: var(--forest); display: grid; place-items: center; }
.involve-card__icon .icon { width: 22px; height: 22px; }
.involve-card__art { order: -1; min-height: 0; background: var(--sage); overflow: hidden; }
.involve-card__art img { width: 100%; height: auto; aspect-ratio: 2.4 / 1; object-fit: cover; object-position: 58% 38%; }
.involve-card__art--tint, .involve-card__art--rings { min-height: 150px; }
.involve-card__art--tint { display: grid; place-items: center; color: var(--leaf); }
.involve-card__art--tint .icon { width: 56px; height: 56px; stroke-width: 1.8; }
.involve-card--dark { background: var(--forest); border-color: var(--forest); }
.involve-card--dark h3 { color: var(--white); }
.involve-card--dark p { color: var(--on-dark); }
.involve-card--dark .involve-card__icon { background: var(--yellow); color: var(--forest); }
.involve-card__art--rings { background: radial-gradient(circle at 62% 58%, var(--yellow) 0 16%, transparent 17%), radial-gradient(circle at 62% 58%, rgba(246, 183, 44, .32) 0 32%, transparent 33%), radial-gradient(circle at 62% 58%, rgba(246, 183, 44, .14) 0 48%, transparent 49%), var(--forest-2); }
@media (max-width: 1023px) { .involve__cards { grid-template-columns: 1fr; } }

/* Forms area (tabs + panels) */
.action { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: var(--header-h); }
.tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--sage-2); padding: 8px 8px 0; gap: 4px; }
.tab { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 14px 20px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; border-bottom: 3px solid transparent; white-space: nowrap; transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.tab:hover { color: var(--forest); background: rgba(252, 251, 247, .6); }
.tab[aria-selected="true"] { background: var(--warm-white); color: var(--forest); border-bottom-color: var(--leaf); }
.tab:focus-visible { outline-offset: -3px; }
.panel { padding: clamp(18px, 3vw, 36px); }
.panel__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.panel__aside { display: grid; gap: 16px; }
.aside__designation { font-weight: 800; margin: 0 0 10px; color: var(--forest); }
.aside__progress { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.gifts { list-style: none; display: grid; gap: 12px; }
.gift { display: flex; align-items: center; gap: 10px; font-size: .875rem; }
.gift__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); color: var(--forest); display: grid; place-items: center; font-weight: 800; font-size: .75rem; flex: none; }
.gift--org .gift__avatar { background: var(--yellow-tint); color: var(--forest); border-radius: var(--radius-sm); }
.gift__body { flex: 1; min-width: 0; }
.gift__who { display: block; }
.gift__meta { font-size: .75rem; color: var(--muted); display: block; }
.gift__band { font-weight: 800; color: var(--leaf-dark); white-space: nowrap; font-size: .8rem; }
.gifts__note { font-size: .75rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 1023px) { .panel__grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .tabs { flex-wrap: wrap; padding: 8px; gap: 6px; }
  .tab { flex: 1 1 auto; justify-content: center; border-radius: var(--radius-sm); border-bottom: 0; padding: 12px 10px; }
  .tab[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--line); }
  .row { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .stepper { gap: 6px; }
  .stepper li { padding: 8px; font-size: .75rem; gap: 6px; flex-direction: column; text-align: center; }
  .step__actions { flex-direction: column-reverse; }
  .step__actions .btn { width: 100%; }
  .summary, .confirm__facts { grid-template-columns: 1fr; gap: 2px 0; }
  .summary dd, .confirm__facts dd { margin-bottom: 8px; }
}

/* About & transparency */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: center; }
.about__copy p { color: var(--muted); }
.tiles-mini { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles-mini li { min-width: 0; }
.tiles-mini li, .tiles-mini a { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); height: 100%; transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.tiles-mini li:has(> a) { padding: 0; border: 0; background: transparent; }
.tiles-mini .icon { color: var(--leaf); width: 26px; height: 26px; }
.tiles-mini strong { font-size: 1rem; overflow-wrap: anywhere; color: var(--forest); }
.tiles-mini span { font-size: .75rem; color: var(--muted); }
.about__cta { margin-top: 20px; }
@media (max-width: 1023px) { .about__grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .tiles-mini { grid-template-columns: 1fr 1fr; } }

/* CTA band - full-width dark photo banner */
.cta { position: relative; background: var(--forest); color: var(--white); overflow: hidden; }
.cta__visual { position: absolute; inset: 0; }
.cta__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 39, 29, .94) 0%, rgba(8, 39, 29, .8) 46%, rgba(8, 39, 29, .38) 100%); }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-lg); align-items: center; min-height: 440px; padding-block: clamp(48px, 6vw, 80px); }
.cta h2 { color: var(--white); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); max-width: 18ch; }
.cta__copy p { color: var(--on-dark); max-width: 48ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 899px) { .cta__inner { grid-template-columns: 1fr; min-height: 0; } .cta::after { background: rgba(8, 39, 29, .84); } }

/* Thank-you page (no-JS fallback path) */
.thanks { padding-block: clamp(48px, 8vw, 96px); min-height: 60vh; }
.thanks__card { max-width: 720px; margin-inline: auto; background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(28px, 5vw, 48px); text-align: center; }
.thanks__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--sage); color: var(--leaf); display: grid; place-items: center; margin: 0 auto 20px; }
.thanks__icon .icon { width: 36px; height: 36px; stroke-width: 2.2; }
.thanks__card h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.thanks__card .lead { margin-inline: auto; }
.thanks__next { list-style: none; text-align: left; margin: 24px auto; max-width: 520px; display: grid; gap: 10px; }
.thanks__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.thanks__ref { font-size: .78rem; color: var(--muted); margin: 20px 0 0; overflow-wrap: anywhere; }
.js-reveal .thanks__card { animation: rise-in 520ms var(--ease-out) backwards; }
.js-reveal .thanks__icon { animation: pop-in 540ms var(--ease-spring) 180ms backwards; }
.js-reveal .thanks__next li { animation: rise-in var(--dur-3) var(--ease-out) backwards; animation-delay: calc(460ms + var(--i, 0) * 80ms); }
.js-reveal .thanks__actions { animation: rise-in var(--dur-3) var(--ease-out) 720ms backwards; }

/* Image crops: the 1600x440 banners have their subjects in the right third; every slot gets its own frame */
img.img--education { object-position: 100% 50%; }
img.img--digital { object-position: 78% 50%; }
img.img--books { object-position: 64% 45%; }
img.img--scholarship { object-position: 68% 45%; }
img.img--library { object-position: 74% 50%; }
.prog-card--lg img.img--library { object-position: 76% 55%; }
.prog-card--sm img.img--digital { object-position: 64% 45%; }
.prog-card--sm img.img--scholarship { object-position: 66% 40%; }
.campaign-card__media img.img--books { object-position: 66% 42%; }
.story-card--lg img.img--education { object-position: 88% 40%; }
.story-card__media img.img--digital { object-position: 82% 40%; }
.story-card__media img.img--scholarship { object-position: 80% 40%; }
.involve-card__art img.img--books { object-position: 62% 40%; }
.cta__visual img.img--library { object-position: 72% 45%; }

/* ===================================================================== Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn[aria-busy="true"] { color: inherit; }
  .btn[aria-busy="true"]::after { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
