/* Mukhya Foundation — editorial, grounded, not a card farm */
:root {
  --ink: #1a1612;
  --ink-soft: #3d372f;
  --muted: #6e665c;
  --line: rgba(26, 22, 18, 0.12);
  --paper: #f3eee6;
  --paper-2: #e8e0d2;
  --cream: #faf7f1;
  --white: #fffcf7;
  --forest: #1e3d32;
  --forest-deep: #142820;
  --leaf: #2f5c4a;
  --copper: #b85c38;
  --copper-d: #8f4326;
  --gold: #c4a574;
  --ok: #1f6b45;
  --err: #a33a2c;
  --shadow: 0 20px 50px rgba(20, 40, 32, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --header: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.wrap-n { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #faf7f1;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.header-bar { width: 100%; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header); gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.brand {
  display: flex; align-items: baseline; gap: 0.35em;
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}
.brand-a { font-weight: 600; color: var(--forest-deep); }
.brand-b { font-weight: 400; color: var(--copper); font-style: italic; }

.site-nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 40px));
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 22px;
  pointer-events: none;
  z-index: 4;
}
.site-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  pointer-events: auto;
  cursor: pointer;
}
.site-nav a:not(.nav-donate)::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 0; height: 1px; background: var(--forest);
  transition: width 0.35s var(--ease);
}
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--forest-deep); }
.nav-donate {
  background: var(--copper); color: #fff !important;
  padding: 10px 18px !important; border-radius: 999px;
  margin-left: 8px; transition: background 0.25s;
}
.nav-donate:hover { background: var(--copper-d); }
.nav-donate::after { display: none !important; }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 0; background: transparent; cursor: pointer; position: relative;
  pointer-events: auto;
  z-index: 3;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  margin: 6px auto; transition: 0.3s var(--ease);
}
.nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(20,40,32,.45); z-index: 75;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 15px; cursor: pointer; transition: 0.25s var(--ease);
}
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-d); transform: translateY(-1px); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-deep); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--forest-deep); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: ken 22s var(--ease) forwards;
}
@keyframes ken { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,40,32,.25) 0%, rgba(20,40,32,.55) 45%, rgba(14,22,18,.88) 100%);
}
.hero-copy {
  position: relative; z-index: 1;
  padding: 0 0 72px;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  max-width: 760px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 500; margin: 0 0 18px; color: #fff;
}
.hero p.lead {
  font-size: 18px; color: rgba(255,255,255,.86); max-width: 540px; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust-strip {
  background: var(--forest-deep); color: rgba(255,255,255,.78);
  padding: 18px 0; font-size: 13px; letter-spacing: 0.04em;
}
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
}

/* Stats — typography, not cards */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white);
}
.stat {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: var(--serif); font-size: 42px; font-weight: 500;
  color: var(--forest); letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 12px; }
.muted { color: var(--muted); }

.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
.split.rev .split-copy { order: 2; }
.split img {
  width: 100%; height: 520px; object-fit: cover;
  filter: saturate(0.92);
}
.split-copy h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 0 0 16px; }
.split-copy p { color: var(--ink-soft); }

/* Programmes as numbered rows */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 80px 1fr 220px; gap: 28px; align-items: center;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.work-row:hover { background: rgba(255,255,255,.5); }
.work-num {
  font-family: var(--serif); font-size: 28px; color: var(--gold); font-weight: 500;
}
.work-row h3 { font-size: 28px; margin-bottom: 6px; }
.work-row p { color: var(--muted); max-width: 520px; }
.work-row img { width: 220px; height: 140px; object-fit: cover; }

/* Quote */
.pull {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 38px);
  font-weight: 500; line-height: 1.35; max-width: 800px;
  margin: 0 auto; text-align: center;
}
.pull cite { display: block; margin-top: 18px; font-family: var(--sans); font-size: 14px; font-style: normal; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.band {
  background: var(--forest-deep); color: #fff;
  padding: 72px 0; position: relative; overflow: hidden;
}
.band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28;
}
.band .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(28px, 3.5vw, 44px); max-width: 560px; color: #fff; }

/* Stories — editorial, mixed layout */
.story-feat {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  margin-bottom: 56px;
}
.story-feat img { width: 100%; height: 420px; object-fit: cover; }
.story-feat h3 { font-size: 32px; margin: 10px 0 12px; }
.story-more {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  border-top: 1px solid var(--line); padding-top: 40px;
}
.story-more article { display: grid; grid-template-columns: 140px 1fr; gap: 20px; }
.story-more img { width: 140px; height: 160px; object-fit: cover; }

.link-more {
  display: inline-flex; margin-top: 14px; font-size: 14px; font-weight: 600;
  color: var(--copper); letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* Page hero (inner) */
.page-hero {
  padding: 72px 0 48px; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #efe8da 0%, var(--cream) 100%);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 12px; }
.page-hero p { max-width: 560px; color: var(--ink-soft); }

/* Donate */
.donate-layout {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 64px; align-items: start;
}
.donate-page .donate-layout {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}
.donate-page .donate-sec { padding-top: 36px; padding-bottom: 56px; }
.donate-page .amounts { gap: 12px; margin: 12px 0 22px; }
.donate-page .amt-btn {
  flex: 1 1 calc(50% - 12px);
  min-width: calc(50% - 8px);
  height: 58px;
  font-size: 18px;
}
.amounts {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px;
}
.amt-btn {
  min-width: 108px; height: 52px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-weight: 600;
  transition: 0.2s;
}
.amt-btn.is-on, .amt-btn:hover {
  border-color: var(--forest); background: var(--forest); color: #fff;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line);
  padding: 12px 14px; outline: none; border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest);
}
.field textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.donate-extra {
  margin: 8px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.donate-extra summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  user-select: none;
}
.donate-extra summary::-webkit-details-marker { display: none; }
.donate-extra summary strong {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}
.donate-extra summary em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.donate-extra .chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--copper);
  transition: transform 0.28s var(--ease);
}
.donate-extra .chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.donate-extra[open] .chev { transform: rotate(180deg); }
.donate-extra-body { padding: 4px 0 18px; }
.aside-note {
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}
.aside-note h3 { font-size: 26px; margin-bottom: 10px; }
.aside-note ul { margin: 16px 0; }
.aside-note li {
  padding: 10px 0 10px 22px; position: relative; color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.aside-note li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--copper);
}

/* Payment page */
.pay-body { background: var(--cream); }
.pay-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.pay-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px; border-bottom: 1px solid var(--line); background: var(--cream);
}
.pay-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pay-secure svg { width: 16px; height: 16px; stroke: var(--forest); fill: none; stroke-width: 1.8; }
.pay-main {
  display: flex; align-items: center; justify-content: center;
  padding: 36px 20px;
  min-height: 0;
}
.pay-panel {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pay-panel .eyebrow { margin-bottom: 8px; }
.pay-amt {
  font-family: var(--serif); font-size: 52px; font-weight: 500; letter-spacing: -0.03em;
  color: var(--forest-deep); line-height: 1;
}
.pay-cause { color: var(--muted); margin: 8px 0 28px; font-size: 15px; }
#payInit, #payPanel, #paySuccess, #payError {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#payPanel, #paySuccess, #payError { display: none; }
.qr-box {
  width: 240px; height: 240px; background: #fff; padding: 12px;
  border: 1px solid var(--line); margin: 8px auto 12px;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.pay-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0; }
.pay-app {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border: 1px solid var(--line);
  background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer;
}
.pay-app.phonepe { border-color: #5f259f; color: #5f259f; }
.pay-app.paytm { border-color: #00baf2; color: #00a8d6; }
.pay-app.gpay { border-color: #1a73e8; color: #1a73e8; }
.pay-status { font-size: 14px; color: var(--muted); max-width: 360px; }
.pay-processing {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; color: var(--muted);
}
.spinner {
  width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--forest);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-success-ic, .pay-error-ic {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; margin: 0 auto 12px;
}
.pay-success-ic { background: #e5f3ea; color: var(--ok); }
.pay-error-ic { background: #f8e6e3; color: var(--err); }
.pay-trust-row {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  font-size: 12px; color: var(--muted); padding: 16px 28px; border-top: 1px solid var(--line);
}
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--forest-deep); color: #fff; padding: 12px 18px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Gallery mosaic */
.mosaic {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 220px; gap: 10px;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figure:nth-child(1) { grid-row: span 2; }
.mosaic figure:nth-child(4) { grid-column: span 2; }
.mosaic figcaption {
  font-size: 13px; color: var(--muted); padding: 8px 0 0;
}

/* Team — portraits, not cards */
.team-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.team-row img { width: 100%; height: 320px; object-fit: cover; filter: grayscale(0.15); }
.team-row h3 { font-size: 22px; margin: 14px 0 4px; }
.team-row span { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-weight: 400; font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); max-width: 640px; }

.alert {
  padding: 12px 14px; margin-bottom: 16px; font-size: 14px; border-left: 3px solid var(--copper);
  background: #fff;
}
.alert-ok { border-color: var(--ok); }
.alert-err { border-color: var(--err); }

/* Footer */
.site-footer {
  background: var(--forest-deep); color: rgba(255,255,255,.78); padding: 64px 0 0; margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 0.9fr; gap: 40px; padding-bottom: 48px;
}
.site-footer .brand-a { color: #f3eee6; }
.site-footer .brand-b { color: var(--gold); }
.site-footer h4 {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 600;
}
.site-footer a:hover { color: #fff; }
.footer-hi { font-size: 15px; color: rgba(255,255,255,.55); }
.reg { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 16px; }
.social { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.footer-links { display: grid; gap: 8px; }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px;
}

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease) forwards; }
.reveal-d1 { animation-delay: 0.12s; }
.reveal-d2 { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .site-header { display: contents; }
  .header-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    max-width: none;
    margin: 0;
    left: 0;
    right: 0;
    background: #faf7f1;
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 16px;
    min-height: 64px;
    box-sizing: border-box;
    pointer-events: none;
  }
  .brand, .nav-toggle { pointer-events: auto; }
  .nav-toggle { display: block; z-index: 71; position: relative; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(320px, 86vw);
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #faf7f1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 22px 36px;
    gap: 2px;
    transform: translateX(110%);
    transition: transform 0.35s var(--ease);
    z-index: 80;
    box-shadow: -12px 0 40px rgba(20, 40, 32, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }
  .site-nav a {
    display: block;
    padding: 12px 6px;
    width: 100%;
    pointer-events: auto;
  }
  .site-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-donate { margin: 16px 0 0; width: 100%; text-align: center; }
  .nav-backdrop.is-on { display: block; }
  body.nav-lock { overflow: hidden; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .split, .split.rev, .story-feat, .donate-layout {
    grid-template-columns: 1fr;
  }
  .split.rev .split-copy { order: 0; }
  .split img, .story-feat img { height: 320px; }
  .work-row { grid-template-columns: 48px 1fr; }
  .work-row img { display: none; }
  .story-more, .team-row { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .mosaic figure:nth-child(1), .mosaic figure:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-bottom: 48px; margin-left: auto; }
  .pay-main { padding: 28px 16px; }
  .pay-amt { font-size: 40px; }
}

@media (max-width: 640px) {
  .wrap, .wrap-n { width: calc(100% - 28px); }
  .header-bar, .header-inner { width: 100%; max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat b { font-size: 30px; }
  .section { padding: 56px 0; }
  .story-more, .team-row, .footer-grid { grid-template-columns: 1fr; }
  .story-more article { grid-template-columns: 100px 1fr; }
  .hero { min-height: 78vh; }
  .hero h1 { font-size: 34px; }
  .amounts .amt-btn { min-width: calc(50% - 6px); }
  .pay-bar { padding: 14px 16px; }
  .pay-amt { font-size: 36px; }
  .qr-box { width: 200px; height: 200px; }
}
