/* ============================================================
   Oasis for Posterity — Design System
   Token language: "Diorama" — layered paper-cut depth, drawn
   from the paddy fields, ponds and sunrises of Jaldhaka.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* ---- color ---- (brand: blue #19639D + leaf green #A9C238) */
  --paddy-900:#0E4A73;   /* deep brand blue — nav, dark bands, buttons */
  --paddy-800:#13578A;
  --paddy-700:#19639D;   /* brand blue */
  --paddy-200:#C6DCEC;
  --paddy-100:#E6EFF7;
  --sunrise-600:#D38A22;
  --sunrise-500:#E8A33D;
  --sunrise-300:#F3C57C;
  --monsoon-600:#155F7B;
  --monsoon-500:#1C7C9C;
  --monsoon-300:#8FC0D2;
  --leaf-700:#6E8A1E;
  --leaf-500:#A9C238;    /* brand leaf green */
  --leaf-300:#CBDD86;
  --leaf-100:#EDF3D6;
  --clay-900:#14202B;    /* ink */
  --clay-700:#3C4A57;
  --clay-400:#7C8A96;
  --mist-50:#F1F5F9;
  --mist-100:#E5EDF4;
  --paper:#FFFFFF;
  --line: rgba(20,32,43,0.10);
  --line-soft: rgba(20,32,43,0.06);
  --shadow-1: 0 1px 2px rgba(20,32,43,.06);
  --shadow-2: 0 6px 16px rgba(20,32,43,.09);
  --shadow-3: 0 18px 40px rgba(20,32,43,.16);
  --shadow-gold: 0 10px 24px rgba(211,138,34,.35);

  /* ---- type ---- */
  --f-display: 'Gill Sans MT', 'Gill Sans', 'Gill Sans Nova', 'Segoe UI', Inter, system-ui, sans-serif;
  --f-body: 'Gill Sans MT', 'Gill Sans', 'Gill Sans Nova', 'Segoe UI', Inter, system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* ---- layout ---- */
  --container: 1180px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --nav-h: 84px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--f-body);
  font-size:17px;
  color:var(--clay-900);
  background:var(--mist-50);
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
section{ position:relative; }

h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:660;
  font-optical-sizing:auto;
  line-height:1.1;
  margin:0;
  letter-spacing:-0.015em;
  color:var(--clay-900);
}
h1{ font-size:clamp(2.6rem, 5.4vw, 4.6rem); font-weight:680; }
h2{ font-size:clamp(2rem, 3.4vw, 2.9rem); font-weight:660; }
h3{ font-size:1.35rem; font-weight:640; }
em{ font-style:italic; color:var(--paddy-700); }

p{ line-height:1.68; color:var(--clay-700); margin:0; }
.lede{ font-size:1.18rem; line-height:1.68; color:var(--clay-700); }

.eyebrow{
  font-family:var(--f-mono);
  font-size:.74rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--paddy-700);
  font-weight:600;
  display:flex;
  align-items:center;
  gap:.6em;
  margin-bottom:1.1em;
}
.eyebrow::before{
  content:'';
  width:22px; height:2px;
  background:var(--sunrise-500);
  display:inline-block;
}

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55em;
  font-family:var(--f-body);
  font-weight:600;
  font-size:.96rem;
  padding:.92em 1.7em;
  border-radius:999px;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--paddy-900);
  color:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset, var(--shadow-2);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 1px 0 rgba(255,255,255,.08) inset, var(--shadow-3); background:var(--paddy-800); }
.btn-primary:active{ transform:translateY(0); }

.btn-ghost{
  background:transparent;
  color:var(--clay-900);
  border-color:var(--line);
}
.btn-ghost:hover{ background:var(--paper); border-color:var(--clay-400); }

.btn-donate{
  background:linear-gradient(180deg, var(--sunrise-500), var(--sunrise-600));
  color:#2A1A04;
  box-shadow:0 1px 0 rgba(255,255,255,.4) inset, var(--shadow-gold);
  font-weight:700;
}
.btn-donate:hover{ transform:translateY(-2px); box-shadow:0 1px 0 rgba(255,255,255,.5) inset, 0 14px 30px rgba(211,138,34,.45); }
.btn-donate:active{ transform:translateY(0px) scale(.98); }
.btn-donate svg{ width:16px; height:16px; }

.btn-block{ width:100%; }

/* ============ NAV ============ */
.site-nav{
  position:sticky; top:0; z-index:100;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(241,245,249,.72);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-nav.is-scrolled{
  border-bottom-color:var(--line);
  box-shadow:0 8px 24px rgba(20,32,43,.07);
  background:rgba(252,253,251,.86);
}
.nav-inner{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex; align-items:center; gap:.7em;
  font-family:var(--f-display);
  font-weight:700;
  font-size:1.25rem;
  color:var(--paddy-900);
}
.brand-mark{ width:42px; height:42px; flex:none; border-radius:11px; background:#fff; padding:5px; box-shadow:var(--shadow-1); border:1px solid var(--line-soft); object-fit:contain; }
.brand small{
  display:block; font-family:var(--f-mono); font-weight:500;
  font-size:.6rem; letter-spacing:.12em; color:var(--clay-400);
  text-transform:uppercase;
}

.nav-links{
  display:flex; align-items:center; gap:2.1rem;
}
.nav-links a{
  font-size:.96rem; font-weight:600; color:var(--clay-700);
  position:relative; padding:.4em 0;
  transition:color .2s ease;
}
.nav-links a::after{
  content:''; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background:var(--sunrise-500); transition:right .25s ease;
}
.nav-links a:hover{ color:var(--paddy-900); }
.nav-links a:hover::after, .nav-links a.is-active::after{ right:0; }
.nav-links a.is-active{ color:var(--paddy-900); }

.nav-right{ display:flex; align-items:center; gap:14px; }

.nav-toggle{
  display:none;
  width:42px; height:42px;
  align-items:center; justify-content:center;
  background:var(--paper); border:1px solid var(--line); border-radius:10px;
}
.nav-toggle span{
  position:relative; width:18px; height:2px; background:var(--clay-900);
}
.nav-toggle span::before, .nav-toggle span::after{
  content:''; position:absolute; left:0; width:18px; height:2px; background:var(--clay-900);
  transition:transform .2s ease;
}
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }

.mobile-nav{
  position:fixed; inset:0; z-index:200;
  background:var(--mist-50);
  display:flex; flex-direction:column;
  padding:28px 32px;
  transform:translateY(-100%);
  transition:transform .35s cubic-bezier(.7,0,.2,1);
}
.mobile-nav.is-open{ transform:translateY(0); }
.mobile-nav-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:3rem; }
.mobile-nav a{
  font-family:var(--f-display); font-size:2rem; font-weight:600;
  padding:.5em 0; border-bottom:1px solid var(--line);
  color:var(--clay-900);
}
.mobile-nav .btn-donate{ margin-top:2rem; align-self:flex-start; }

/* ============ HERO ============ */
.hero{
  position:relative;
  min-height:min(90vh, 820px);
  display:flex;
  overflow:hidden;
  isolation:isolate;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  will-change:transform;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero-bg img{
  width:100%; height:100%; object-fit:cover; object-position:center 30%;
  transform:scale(1.1); display:block;
}
.hero-bg picture{ display:block; width:100%; height:100%; }
.hero-overlay{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(102deg, rgba(241,245,249,.97) 0%, rgba(241,245,249,.9) 24%, rgba(241,245,249,.55) 46%, rgba(241,245,249,.08) 66%, rgba(241,245,249,0) 80%),
    linear-gradient(180deg, rgba(241,245,249,.5) 0%, rgba(241,245,249,0) 26%, rgba(20,32,43,.12) 100%);
}
.hero .wrap{
  position:relative; z-index:2; width:100%;
  display:flex; flex-direction:column; justify-content:center;
  gap:42px; padding-top:150px; padding-bottom:64px;
}
.hero-copy{ max-width:660px; will-change:transform; transition:transform .4s ease-out; }
.hero-copy .eyebrow{ margin-bottom:1.2em; }
.hero h1{ margin-bottom:.42em; line-height:1.16; }
.hero h1 .line{ display:block; }
.hero-lede{ max-width:48ch; margin:1.3em 0 2em; line-height:1.72; color:var(--clay-700); }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-facts{
  display:grid; grid-template-columns:repeat(4,auto);
  gap:38px; width:max-content; max-width:100%;
  background:rgba(255,255,255,.62);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:var(--radius-m);
  padding:22px 30px;
  box-shadow:var(--shadow-2);
}
.hero-facts .fact b{
  display:block; font-family:var(--f-display); font-weight:700;
  font-size:1.55rem; color:var(--paddy-900); line-height:1;
}
.hero-facts .fact span{
  font-family:var(--f-mono); font-size:.66rem; letter-spacing:.06em;
  color:var(--clay-700); text-transform:uppercase; margin-top:.5em; display:block;
}

/* --- diorama hero illustration (legacy) --- */
.diorama{
  position:relative;
  aspect-ratio:1/1.02;
  perspective:1200px;
}
.diorama-stage{
  position:relative; width:100%; height:100%;
  border-radius:32px;
  overflow:hidden;
  box-shadow:var(--shadow-3);
  transform-style:preserve-3d;
  background:linear-gradient(180deg,#FBE3B5 0%, #F6CE8C 38%, var(--paddy-100) 39%, var(--paddy-100) 100%);
}
.diorama-layer{
  position:absolute; left:0; right:0; will-change:transform;
}
.diorama svg{ width:100%; height:100%; display:block; }
.diorama-badge{
  position:absolute; left:22px; bottom:22px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(8px);
  border-radius:var(--radius-m);
  padding:14px 18px;
  box-shadow:var(--shadow-2);
  display:flex; align-items:center; gap:12px;
  max-width:78%;
}
.diorama-badge .dot{
  width:10px; height:10px; border-radius:50%; background:var(--sunrise-500);
  box-shadow:0 0 0 4px rgba(232,163,61,.25);
  flex:none;
}
.diorama-badge strong{ display:block; font-size:.86rem; }
.diorama-badge span{ font-size:.78rem; color:var(--clay-400); }

/* ============ SECTION SHELLS ============ */
.section{ padding:108px 0; }
.section-tight{ padding:72px 0; }
.section-head{ max-width:640px; margin-bottom:3.4rem; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-paddy{ background:var(--paddy-900); color:#fff; }
.section-paddy p{ color:rgba(255,255,255,.78); }
.section-paddy .eyebrow{ color:var(--sunrise-300); }
.section-paddy .eyebrow::before{ background:var(--sunrise-300); }
.section-mist{ background:var(--mist-50); }
.section-paper{ background:var(--paper); }

/* ============ CAUSE / 3D CARDS ============ */
.cause-grid{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
.tilt-wrap{ perspective:1000px; }
.card{
  position:relative;
  display:block;
  background:var(--paper);
  border-radius:var(--radius-m);
  padding:34px 30px;
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow-1);
  transition:box-shadow .25s ease, transform .1s linear;
  transform-style:preserve-3d;
  will-change:transform;
}
.card::after{
  content:'';
  position:absolute; inset:0; border-radius:inherit;
  box-shadow:var(--shadow-2);
  opacity:0; transition:opacity .25s ease;
  pointer-events:none;
}
.tilt-wrap:hover .card::after{ opacity:1; }
.card-icon{
  width:100%; aspect-ratio:16/10; border-radius:12px;
  overflow:hidden; margin-bottom:1.5rem;
  transform:translateZ(24px);
  box-shadow:var(--shadow-2); border:1px solid var(--line-soft);
  background:var(--mist-100);
}
.card-icon img{ width:100%; height:100%; object-fit:cover; display:block; }
.card h3{ margin-bottom:.72em; line-height:1.22; transform:translateZ(20px); }
.card p{ font-size:.96rem; line-height:1.75; transform:translateZ(12px); }
.card .num{
  position:absolute; top:46px; right:24px; z-index:3;
  transform:translateZ(40px);
  font-family:var(--f-mono); font-size:.7rem; color:#fff;
  background:rgba(14,74,115,.55); padding:3px 9px; border-radius:999px;
}

/* ============ MISSION BAND ============ */
.mission-band{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; align-items:center;
}
.mission-statement{
  font-family:var(--f-display);
  font-size:clamp(1.6rem,2.6vw,2.2rem);
  font-weight:500; line-height:1.3;
  color:#fff;
}
.mission-statement em{ color:var(--sunrise-300); }
.mission-points{ display:grid; gap:22px; }
.mission-point{ display:flex; gap:16px; }
.mission-point .mark{
  font-family:var(--f-mono); font-size:.78rem; color:var(--sunrise-300);
  padding-top:.3em; flex:none; width:34px;
}
.mission-point h4{ color:#fff; font-family:var(--f-body); font-size:1rem; margin-bottom:.35em; }
.mission-point p{ font-size:.92rem; }

/* ============ MAP / WHERE WE WORK ============ */
.where-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
.locator{
  position:relative; background:var(--paper); border-radius:var(--radius-l);
  box-shadow:var(--shadow-2); padding:30px;
}
.locator svg{ width:100%; height:auto; }
.locator-pin{ transform-origin:bottom center; }
.map-embed{
  position:relative; border-radius:var(--radius-l); overflow:hidden;
  box-shadow:var(--shadow-3); border:1px solid var(--line);
  background:var(--mist-100); aspect-ratio:4/3;
}
.map-embed iframe{ width:100%; height:100%; border:0; display:block; }
.map-note{ font-size:.78rem; color:var(--clay-400); margin-top:.8em; }

/* ============ PARTNERS ============ */
.partner-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
}
.partner-card{
  background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--radius-m);
  padding:26px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.partner-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-2); }
.partner-mark{
  font-family:var(--f-display); font-weight:700; font-size:1.1rem; color:var(--paddy-900);
  margin-bottom:.5em;
}
.partner-loc{ font-family:var(--f-mono); font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--sunrise-600); margin-bottom:.8em; display:block; }
.partner-card p{ font-size:.88rem; }

/* ============ ADVISORS ============ */
.donor-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
.donor-card{ display:block; text-align:center; text-decoration:none; color:inherit; }
.donor-media{
  height:120px; background:#fff; border:1px solid var(--line-soft);
  border-radius:var(--radius-m); box-shadow:var(--shadow-1); overflow:hidden;
  display:flex; align-items:center; justify-content:center; padding:18px;
  margin-bottom:1.1em; transition:transform .2s ease, box-shadow .2s ease;
}
.donor-media picture{ display:flex; align-items:center; justify-content:center; max-width:100%; max-height:100%; line-height:0; }
.donor-card:hover .donor-media{ transform:translateY(-4px); box-shadow:var(--shadow-2); }
.donor-media.logo img{ max-height:72px; max-width:100%; width:auto; height:auto; object-fit:contain; display:block; }
.donor-media.photo img{ width:84px; height:84px; border-radius:50%; object-fit:cover; display:block; }
.donor-card h4{ font-family:var(--f-display); font-size:1.05rem; margin-bottom:.2em; }
.donor-card:hover h4{ color:var(--paddy-700); text-decoration:underline; text-underline-offset:3px; }
.donor-card span{ font-size:.82rem; color:var(--clay-400); font-family:var(--f-mono); }

/* ============ DONATE SECTION ============ */
.donate-panel{
  background:var(--paddy-900);
  border-radius:var(--radius-l);
  padding:56px;
  position:relative; overflow:hidden;
  color:#fff;
  box-shadow:var(--shadow-3);
}
.donate-panel::before{
  content:''; position:absolute; width:480px; height:480px; border-radius:50%;
  background:radial-gradient(circle, rgba(232,163,61,.35), transparent 70%);
  top:-220px; right:-160px;
}
.donate-head{ position:relative; max-width:60ch; margin-bottom:34px; }
.donate-intro{ margin-top:1.1em; color:rgba(255,255,255,.82); line-height:1.7; }
.donate-group-label{ position:relative; font-family:var(--f-mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.6); margin:0 0 14px; }
.donate-tiers{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; position:relative; margin-bottom:30px; }
.donate-needs{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; position:relative; margin-bottom:32px; }
.need-row{
  display:flex; flex-direction:column; gap:12px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-m); padding:18px;
  transition:background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.need-row.is-selected{ background:rgba(232,163,61,.22); border-color:rgba(232,163,61,.85); box-shadow:0 0 0 2px rgba(232,163,61,.45); }
.need-text{ flex:1 1 auto; min-width:0; }
.need-text b{ display:block; font-family:var(--f-display); font-size:1.12rem; }
.need-text span{ display:block; font-size:.78rem; color:rgba(255,255,255,.65); line-height:1.4; margin-top:.15em; }
.need-other .need-text{ display:flex; flex-direction:column; gap:8px; }
.need-other-text{ width:100%; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2); border-radius:var(--radius-s); padding:8px 11px; color:#fff; font:inherit; font-size:.85rem; outline:none; }
.need-other-text::placeholder{ color:rgba(255,255,255,.45); }
.need-amt{ flex:none; display:flex; align-items:center; gap:4px; width:100%; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); border-radius:var(--radius-s); padding:8px 12px; }
.need-amt .cur{ color:rgba(255,255,255,.7); font-weight:600; }
.need-amt .need-input{ width:100%; flex:1 1 auto; background:transparent; border:none; color:#fff; font:inherit; font-size:1rem; outline:none; }
.need-amt .need-input::placeholder{ color:rgba(255,255,255,.4); font-size:.85rem; }
.tier{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-m);
  padding:20px 18px;
  text-align:left;
  color:#fff;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.tier b{ display:block; font-family:var(--f-display); font-size:1.5rem; margin-bottom:.15em; }
.tier span{ display:block; font-size:.78rem; color:rgba(255,255,255,.65); line-height:1.4; }
.tier:hover{ transform:translateY(-4px); background:rgba(255,255,255,.1); box-shadow:0 16px 28px rgba(0,0,0,.25); }

/* ----- Donate: selectable tiers ----- */
button.tier{ font:inherit; width:100%; cursor:pointer; }
.tier.is-selected{
  background:rgba(232,163,61,.22);
  border-color:rgba(232,163,61,.85);
  box-shadow:0 0 0 2px rgba(232,163,61,.45);
}
.donate-actions{ position:relative; display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.donate-open[disabled]{ opacity:.45; cursor:not-allowed; transform:none; }
.donate-email-link{ color:rgba(255,255,255,.8); font-size:.9rem; text-decoration:underline; text-underline-offset:3px; }
.donate-email-link:hover{ color:#fff; }
.modal-purpose{ font-family:var(--f-mono); font-size:.78rem; letter-spacing:.04em; color:var(--leaf-600, #6f8a1e); margin:.4em 0 0; }

/* ----- Modal ----- */
.modal-overlay{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(14,32,43,.55); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.modal-overlay[hidden]{ display:none; }
.modal-card{ position:relative; width:100%; max-width:440px; max-height:90vh; overflow:auto; background:#fff; color:var(--clay-900); border-radius:var(--radius-l); padding:36px; box-shadow:var(--shadow-3); animation:modalIn .22s ease; }
@keyframes modalIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
.modal-close{ position:absolute; top:12px; right:16px; width:34px; height:34px; border:none; background:none; font-size:1.7rem; line-height:1; cursor:pointer; color:var(--clay-400); border-radius:50%; }
.modal-close:hover{ background:var(--mist-100); color:var(--clay-700); }
.modal-card h3{ font-size:1.5rem; line-height:1.2; }
.modal-sub{ color:var(--clay-700); margin:.5em 0 1.5em; font-size:.95rem; line-height:1.6; }
.donate-error{ color:#7a2a1e; background:rgba(193,68,52,.10); border:1px solid rgba(193,68,52,.4); padding:10px 12px; border-radius:var(--radius-s); font-size:.9rem; margin-bottom:14px; }
.thanks-check{ width:56px; height:56px; border-radius:50%; background:rgba(169,194,56,.2); color:#5a7a12; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.thanks-check svg{ width:28px; height:28px; }

/* ============ FOOTER ============ */
.site-footer{
  background:var(--clay-900); color:rgba(255,255,255,.7);
  padding:80px 0 28px;
}
.footer-grid{
  display:grid; grid-template-columns:1.3fr .8fr .8fr 1fr; gap:48px;
  padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand{ display:flex; align-items:center; gap:.7em; margin-bottom:1.2em; color:#fff; font-family:var(--f-display); font-size:1.2rem; font-weight:700; }
.footer-brand .brand-mark{ width:38px; height:38px; }
.site-footer h5{
  font-family:var(--f-mono); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.45); margin-bottom:1.2em;
}
.site-footer ul{ display:grid; gap:.85em; }
.site-footer a{ font-size:.92rem; transition:color .2s ease; }
.site-footer a:hover{ color:var(--sunrise-300); }
.footer-bottom{
  padding-top:28px; display:flex; justify-content:space-between; align-items:center;
  font-size:.82rem; color:rgba(255,255,255,.4); flex-wrap:wrap; gap:10px;
}
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ background:rgba(255,255,255,.08); }
.social-row svg{ width:15px; height:15px; }

/* ============ PAGE HEADER (inner pages) ============ */
.page-header{
  padding:64px 0 56px;
  position:relative;
  overflow:hidden;
}
.page-header .wrap{ position:relative; z-index:1; }
.page-header-art{
  position:absolute; right:-80px; top:-80px; width:420px; height:420px;
  opacity:.5;
}
.crumbs{
  font-family:var(--f-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--clay-700); margin-bottom:1.4em; display:inline-flex; align-items:center; gap:.6em;
  background:var(--paper); border:1px solid var(--line); box-shadow:var(--shadow-1);
  padding:.5em .9em; border-radius:999px;
}
.crumbs a{ color:var(--paddy-700); font-weight:600; }
.crumbs a:hover{ text-decoration:underline; }
.crumbs span{ color:var(--clay-400); }

/* ============ REVEAL ANIM ============ */
/* Hidden only when JS is active; without JS, content shows normally. */
.js [data-reveal]{
  opacity:0; transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal].is-visible{ opacity:1; transform:translateY(0); }
[data-reveal-stagger] > *{ transition-delay:calc(var(--i,0) * 90ms); }

/* ============ CAUSE DETAIL (causes.html) ============ */
.cause-detail{
  display:grid; grid-template-columns:.5fr 1fr; gap:48px;
  padding:52px 0; align-items:center;
  border-bottom:1px solid var(--line);
}
.cause-detail:last-child{ border-bottom:none; }
.cause-detail:nth-child(even) .cause-visual{ order:2; }
.cause-visual{
  aspect-ratio:4/3; border-radius:var(--radius-l);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-2);
  position:relative; overflow:hidden;
}
.cause-visual svg{ width:62%; height:62%; }
.cause-visual picture{ position:absolute; inset:0; display:block; }
.cause-visual img.cv-photo{ width:100%; height:100%; object-fit:cover; display:block; }
.cause-index{
  font-family:var(--f-mono); color:var(--sunrise-600); font-size:.8rem; margin-bottom:.8em; display:block;
}

/* ============ VALUES (about.html) ============ */
.values-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.value-card{
  background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--radius-m);
  padding:30px; display:flex; gap:18px;
}
.value-card .glyph{
  font-family:var(--f-display); font-size:1.5rem; color:var(--sunrise-600); flex:none;
}

.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.stat-card{
  background:var(--paper); border-radius:var(--radius-m); padding:28px;
  border:1px solid var(--line-soft); text-align:center;
}
.stat-card b{ font-family:var(--f-display); font-size:2.1rem; color:var(--paddy-900); display:block; }
.stat-card span{ font-size:.82rem; color:var(--clay-400); }

.quote-block{
  border-left:3px solid var(--sunrise-500);
  padding-left:28px; margin:2.4rem 0;
}
.quote-block p{ font-family:var(--f-display); font-size:1.3rem; color:var(--clay-900); font-style:italic; line-height:1.5; }

/* ============ CONTACT PAGE ============ */
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; }
.contact-info-card{
  background:var(--paddy-900); color:#fff; border-radius:var(--radius-l);
  padding:42px; box-shadow:var(--shadow-3);
}
.contact-info-card h3{ color:#fff; margin-bottom:1.4em; }
.contact-row{ display:flex; gap:16px; margin-bottom:1.6em; align-items:flex-start; }
.contact-row .ic{ width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; flex:none; }
.contact-row .ic svg{ width:18px; height:18px; }
.contact-row b{ display:block; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--sunrise-300); font-family:var(--f-mono); margin-bottom:.3em; }
.contact-row p{ color:rgba(255,255,255,.82); font-size:.95rem; }

.form-card{ background:var(--paper); border-radius:var(--radius-l); padding:42px; box-shadow:var(--shadow-2); border:1px solid var(--line-soft); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:.82rem; font-weight:600; margin-bottom:.5em; }
.field input, .field textarea, .field select{
  width:100%; border:1px solid var(--line); border-radius:12px; padding:.85em 1em;
  font-family:inherit; font-size:.95rem; background:var(--mist-50);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none; border-color:var(--paddy-700); box-shadow:0 0 0 4px var(--paddy-100);
}
.field textarea{ resize:vertical; min-height:130px; }
.form-note{ font-size:.8rem; color:var(--clay-400); margin-top:1em; }
.cf-status{ padding:14px 16px; border-radius:var(--radius-m); margin-bottom:18px; font-size:.95rem; line-height:1.5; border:1px solid transparent; }
.cf-status.is-ok{ background:rgba(169,194,56,.16); border-color:rgba(169,194,56,.5); color:#3f5111; }
.cf-status.is-err{ background:rgba(193,68,52,.10); border-color:rgba(193,68,52,.4); color:#7a2a1e; }

/* ============ BLOG / JOURNAL (3D news cards) ============ */
.journal-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:44px;
  perspective:1400px;
}
.journal-card{
  background:var(--paper); padding:30px; border-radius:var(--radius-l);
  border:1px solid var(--line-soft);
  display:flex; flex-direction:column; justify-content:space-between;
  box-shadow:0 10px 25px rgba(20,32,43,.04), 0 5px 12px rgba(20,32,43,.04);
  transform-style:preserve-3d;
  transition:transform .5s cubic-bezier(.175,.885,.32,1.275), box-shadow .5s ease;
}
.journal-card:hover{
  transform:translateY(-10px) rotateX(2deg) rotateY(-2deg);
  box-shadow:0 30px 60px rgba(20,32,43,.13), 0 15px 20px rgba(20,32,43,.07);
}
.journal-card.wide{ grid-column:1 / -1; }

/* media containers */
.jc-media{ perspective:1200px; margin-bottom:24px; }
.jc-media.duo{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.jc-media.master{ display:grid; grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; gap:16px; }
.jc-media.collage{ position:relative; height:320px; }

.jc-img{ width:100%; object-fit:cover; border-radius:14px; display:block; will-change:transform; }
.jc-img.tall{ height:264px; }
.jc-img.med{ height:208px; }
.jc-img.short{ height:200px; }
.jc-media.master .jc-img.hero{ grid-row:1 / span 2; height:100%; min-height:420px; }

/* 3D layering presets */
.img-straight{ transform:translateZ(20px); }
.img-tilt-l{ transform:rotate(-3deg) scale(1.01) translateZ(35px); box-shadow:-8px 12px 25px rgba(20,32,43,.18); }
.img-tilt-r{ transform:rotate(3deg) scale(1.02) translateZ(35px); box-shadow:8px 12px 25px rgba(20,32,43,.18); }
.img-pop{ transition:transform .4s cubic-bezier(.165,.84,.44,1), box-shadow .4s ease; cursor:pointer; }
.img-pop:hover{
  transform:rotate(0deg) scale(1.04) translateZ(50px) !important;
  box-shadow:0 20px 35px rgba(20,32,43,.25) !important;
  z-index:40 !important; position:relative;
}

/* collage absolute pieces */
.jc-media.collage .base{ position:absolute; top:0; left:0; width:75%; height:264px; z-index:10; }
.jc-media.collage .over{ position:absolute; bottom:8px; right:8px; width:58%; height:192px; z-index:20;
  transform:rotate(5deg) scale(1.03) translateZ(45px); box-shadow:10px 15px 30px rgba(20,32,43,.22); }

/* text */
.journal-card h3{ font-size:clamp(1.4rem,2.2vw,1.85rem); line-height:1.15; margin-bottom:.55em; }
.journal-card p{ color:var(--clay-700); }
.journal-meta{
  margin-top:24px; font-family:var(--f-mono); font-size:.72rem; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:var(--clay-400);
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.journal-meta.scheduled{ color:var(--sunrise-600); }

/* whole-card link */
.jc-link{ display:block; color:inherit; text-decoration:none; }
.jc-readmore{ color:var(--paddy-700); font-weight:700; white-space:nowrap; }
.journal-card:hover .jc-readmore{ text-decoration:underline; }

/* ============ SINGLE POST (article) ============ */
.post-article{ max-width:760px; margin:0 auto 4.5rem; }
.post-eyebrow{
  font-family:var(--f-mono); font-size:.72rem; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:var(--paddy-700); margin-bottom:1em;
}
.post-article h1{ font-size:clamp(2rem,4vw,3.1rem); line-height:1.08; margin-bottom:.5em; }
.post-byline{
  font-family:var(--f-mono); font-size:.78rem; color:var(--clay-400);
  letter-spacing:.04em; margin-bottom:2em;
}
.post-hero{
  border-radius:var(--radius-l); overflow:hidden; box-shadow:var(--shadow-3);
  border:1px solid var(--line); margin-bottom:2.4em; aspect-ratio:16/9; background:var(--mist-100);
}
.post-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
.post-body p{ font-size:1.1rem; line-height:1.75; color:var(--clay-700); margin-bottom:1.3em; }
.post-body h2{ font-size:1.6rem; margin:1.4em 0 .5em; }

/* share row */
.post-share{
  margin-top:2.6em; padding-top:1.8em; border-top:1px solid var(--line);
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}
.post-share .label{ font-family:var(--f-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--clay-400); margin-right:4px; }
.share-btn{
  width:44px; height:44px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  background:var(--paper); border:1px solid var(--line); color:var(--paddy-900);
  box-shadow:var(--shadow-1); cursor:pointer; transition:transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.share-btn:hover{ transform:translateY(-3px); background:var(--paddy-900); color:#fff; box-shadow:var(--shadow-2); }
.share-btn svg{ width:19px; height:19px; }
.share-toast{
  font-family:var(--f-mono); font-size:.74rem; color:var(--paddy-700); opacity:0;
  transition:opacity .25s ease; margin-left:4px;
}
.share-toast.show{ opacity:1; }
.post-back{ display:inline-flex; align-items:center; gap:.5em; font-weight:700; color:var(--paddy-700); margin-bottom:2em; }
.post-back:hover{ text-decoration:underline; }

/* ============ CAUSE DETAIL PAGE ============ */
.cause-page-icon{
  width:88px; height:88px; border-radius:22px; display:grid; place-items:center;
  box-shadow:var(--shadow-2); margin-bottom:1.3em;
}
.cause-page-icon svg{ width:42px; height:42px; }
.tick-list{ list-style:none; padding:0; margin:1.6em 0 0; display:grid; gap:.8em; }
.tick-list li{ position:relative; padding-left:1.9em; color:var(--clay-700); font-size:1.05rem; line-height:1.6; }
.tick-list li::before{
  content:""; position:absolute; left:0; top:.45em; width:.8em; height:.8em;
  border-radius:50%; background:var(--paddy-700);
}
.cause-readmore{ margin-top:1.5em; }

/* ============ CAUSE FEATURE SECTIONS (image + text) ============ */
.cause-features{ display:grid; gap:46px; margin-top:2.6rem; }
.cause-feature{
  display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center;
}
.cause-feature:nth-child(even) .cf-media{ order:2; }
.cf-media picture{ display:block; }
.cf-media img{
  width:100%; height:auto; aspect-ratio:16/11; object-fit:cover; display:block;
  border-radius:var(--radius-l); box-shadow:var(--shadow-3); border:1px solid var(--line);
  background:var(--mist-100);
}
.cf-text h2{ font-size:clamp(1.4rem,2.4vw,1.9rem); margin-bottom:.5em; }
.cf-text p{ color:var(--clay-700); line-height:1.7; }

/* ============ TEAM / ADVISERS ============ */
.section-subtitle{ max-width:60ch; margin-top:.6em; color:var(--clay-700); }
.team-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:1.6rem;
}
.team-lead{
  display:grid; grid-template-columns:200px 1fr; gap:34px; align-items:center;
  background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--radius-l);
  padding:30px; box-shadow:var(--shadow-1); margin-top:2.6rem;
}
.team-lead picture{ display:block; }
.team-lead-photo{
  width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius-m);
  background:var(--mist-100); display:block;
}
.team-lead-text .team-name{ font-size:1.6rem; margin-bottom:.1em; }
.team-lead-text .team-role{ margin-bottom:1em; }
.team-lead-text .team-bio{ font-size:1rem; max-width:62ch; }
.team-alias{ color:var(--clay-400); font-weight:500; }
.team-card{
  background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--radius-l);
  padding:22px; box-shadow:var(--shadow-1);
  transition:transform .25s ease, box-shadow .25s ease;
}
.team-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-2); }
.team-photo{
  width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius-m);
  background:var(--mist-100); display:block; margin-bottom:16px;
}
.team-name{ font-size:1.12rem; line-height:1.2; margin-bottom:.15em; }
.team-role{
  font-family:var(--f-mono); font-size:.7rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--paddy-700); font-weight:600; margin-bottom:.7em;
}
.team-bio{ font-size:.92rem; line-height:1.55; color:var(--clay-700); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px){
  .wrap{ padding:0 26px; }
  .hero{ min-height:min(82vh, 680px); }
  .hero .wrap{ padding-top:120px; }
  .cause-grid{ grid-template-columns:repeat(2,1fr); }
  .team-grid{ grid-template-columns:repeat(3,1fr); }
  .mission-band{ grid-template-columns:1fr; gap:40px; }
  .where-grid{ grid-template-columns:1fr; }
  .partner-grid, .donor-grid{ grid-template-columns:repeat(2,1fr); }
  .donate-panel{ padding:44px; }
  .donate-tiers{ grid-template-columns:repeat(2,1fr); }
  .donate-needs{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:36px; }
  .contact-grid{ grid-template-columns:1fr; }
  .cause-detail, .cause-detail:nth-child(even){ grid-template-columns:1fr; }
  .cause-detail:nth-child(even) .cause-visual{ order:0; }
  .stat-row{ grid-template-columns:repeat(2,1fr); }
  .values-grid{ grid-template-columns:1fr; }
}

@media (max-width: 760px){
  :root{ --nav-h:72px; }
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .hero{ min-height:auto; }
  .hero .wrap{ padding-top:108px; padding-bottom:48px; gap:32px; }
  .hero-bg img{ object-position:center 36%; }
  .hero-facts{ grid-template-columns:repeat(2,1fr); width:auto; gap:20px 28px; }
  .section{ padding:72px 0; }
  .cause-grid{ grid-template-columns:1fr; }
  .partner-grid{ grid-template-columns:1fr; }
  .donor-grid{ grid-template-columns:repeat(2,1fr); gap:18px; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .form-row{ grid-template-columns:1fr; }
  .journal-grid{ grid-template-columns:1fr; gap:30px; }
  .journal-card.wide{ grid-column:auto; }
  .jc-media.master{ grid-template-columns:1fr; grid-template-rows:none; }
  .jc-media.master .jc-img.hero{ min-height:240px; height:240px; }
  .jc-media.collage{ height:300px; }
  .donate-tiers{ grid-template-columns:1fr 1fr; }
  .donate-needs{ grid-template-columns:1fr 1fr; }
  .donate-panel{ padding:32px 24px; }
  .team-grid{ grid-template-columns:repeat(2,1fr); gap:18px; }
  .team-lead{ grid-template-columns:1fr; text-align:center; gap:20px; padding:26px; }
  .team-lead-photo{ max-width:190px; margin:0 auto; }
  .team-lead-text .team-bio{ margin-left:auto; margin-right:auto; }
  .cause-feature{ grid-template-columns:1fr; gap:22px; }
  .cause-feature .cf-media{ order:0 !important; }
  .stat-row{ grid-template-columns:1fr 1fr; }
  .nav-right .btn-donate span.long{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

/* The full-screen mobile menu must never appear once the horizontal nav is shown
   (e.g. when a phone is rotated to landscape and the viewport exceeds 760px). */
@media (min-width: 761px){
  .mobile-nav{ display:none !important; }
}

/* ---- contact form: submit button + honeypot ---- */
.cf-submit{ width:30%; min-width:190px; justify-content:center; }
.hp-field{ position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
@media (max-width:760px){ .cf-submit{ width:100%; } }

/* ---- blog post inline figures ---- */
.post-figure{ margin:2em 0; }
.post-figure img{ width:100%; height:auto; display:block; border-radius:var(--radius-l); box-shadow:var(--shadow-2); border:1px solid var(--line); background:var(--mist-100); }
.post-figure figcaption{ font-size:.9rem; color:var(--clay-400); margin-top:.7em; text-align:center; font-style:italic; }
