/* ==========================================================================
   CEDRF public website - hand-made edition.
   Design language: letterpress paper, mountain ink, temple gold.
   Type: Fraunces (display serif with wonk), Manrope (text), Caveat (field
   notes), Tiro Devanagari (Hindi). Google Fonts with full system fallbacks,
   so the site still renders correctly with no network.
   ========================================================================== */

:root {
  --maroon: #9e1b32;
  --maroon-d: #7a1226;
  --maroon-t: #fdf1f4;
  --gold: #d9a441;
  --gold-d: #a97a1c;
  --gold-t: #faf1dd;
  --navy: #12365c;
  --navy-d: #0b2440;
  --ink: #26221c;
  --ink-2: #57503f;
  --ink-3: #8a8271;
  --paper: #fbf7ee;
  --paper-2: #f5efe2;
  --card: #fffdf8;
  --line: #e6dcc6;
  --line-2: #efe8d8;
  --ok: #1f7a4d;
  --display: "Fraunces", Georgia, "Noto Serif", "Times New Roman", serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", "Comic Sans MS", cursive;
  --hindi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", var(--display);
  --shadow: 0 2px 4px rgba(60, 45, 20, .06), 0 14px 34px rgba(60, 45, 20, .10);
  --shadow-lg: 0 24px 60px rgba(30, 22, 8, .20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 16.5px/1.7 var(--body);
  background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
h1, h2, h3, .display {
  font-family: var(--display); color: var(--navy-d); line-height: 1.14;
  margin: 0 0 .45em; letter-spacing: -.015em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; }
.hand { font-family: var(--hand); font-size: 1.28em; color: var(--maroon); }
.hindi { font-family: var(--hindi); }
::selection { background: var(--gold); color: #2c1e03; }

/* ---------------------------------------------------------- scroll prog */
#prog { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90;
        background: linear-gradient(90deg, var(--maroon), var(--gold)); }

/* ------------------------------------------------------------ utility bar */
.utility { background: var(--navy-d); color: #c8d4e4; font-size: 12.5px; padding: 7px 0; }
.utility .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.utility b { color: #fff; }
.utility .right { margin-left: auto; display: flex; gap: 14px; }
.utility a { color: #c8d4e4; text-decoration: none; }
.utility a:hover { color: var(--gold); }
.utility .seal-chip {
  background: rgba(217, 164, 65, .14); border: 1px solid rgba(217, 164, 65, .4);
  color: #f2d9a4; border-radius: 999px; padding: 2px 10px; font-weight: 700;
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 60; background: rgba(251, 247, 238, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, padding .25s;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(60, 45, 20, .10); }
.nav .wrap { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 54px; height: 54px; border-radius: 12px; background: #fff;
            box-shadow: 0 2px 10px rgba(60, 45, 20, .18); transition: transform .3s; }
.logo:hover img { transform: rotate(-4deg) scale(1.05); }
.logo b { font-family: var(--display); font-weight: 900; font-size: 1.55rem; color: var(--maroon);
          display: block; line-height: 1; letter-spacing: -.02em; }
.logo small { display: block; font-size: 10px; letter-spacing: .8px; color: var(--ink-3);
              text-transform: uppercase; max-width: 250px; line-height: 1.4; }
.menu { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.menu a {
  text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 700;
  padding: 9px 11px; border-radius: 9px; position: relative;
}
.menu a:after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu a:hover { color: var(--maroon-d); }
.menu a:hover:after { transform: scaleX(1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 700 14.5px var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, filter .2s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .5s;
}
.btn:hover:after { left: 130%; }
.btn-donate { background: var(--maroon); color: #fff; box-shadow: 0 8px 22px rgba(158, 27, 50, .30); }
.btn-gold { background: var(--gold); color: #3a2803; box-shadow: 0 8px 22px rgba(217, 164, 65, .35); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(18, 54, 92, .25); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--gold-d); color: var(--maroon-d); background: #fff; }
.btn-light { background: #fff; color: var(--maroon-d); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.burger { display: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(168deg, #0a1e35 0%, var(--navy) 42%, #205181 78%, #2d6296 100%);
  padding: clamp(64px, 10vw, 124px) 0 clamp(150px, 20vw, 230px);
}
.hero .stars { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 34% 9%, #fff6, transparent),
    radial-gradient(1.6px 1.6px at 58% 22%, #fff7, transparent),
    radial-gradient(1px 1px at 76% 12%, #fff5, transparent),
    radial-gradient(1.2px 1.2px at 88% 30%, #fff6, transparent),
    radial-gradient(1px 1px at 46% 34%, #fff4, transparent);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }
.hero .sun {
  position: absolute; top: 9%; right: 8%; width: clamp(90px, 14vw, 170px); aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle at 38% 35%, #ffe9b0, var(--gold) 62%, #c98f22);
  box-shadow: 0 0 60px 18px rgba(217, 164, 65, .35);
  animation: rise 1.6s cubic-bezier(.22, 1, .36, 1) both .3s;
}
@keyframes rise { from { transform: translateY(46px) scale(.86); opacity: 0; } }
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 20px;
}
.eyebrow:before { content: ""; width: 38px; height: 2px; background: var(--gold); }
.hero h1 { color: #fff; max-width: 19ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(110%);
  animation: lineUp .9s cubic-bezier(.22, 1, .36, 1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.hero h1 em { font-style: normal; color: var(--gold);
  background: linear-gradient(transparent 78%, rgba(217, 164, 65, .35) 0); }
.hero p.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #d5e0ee; max-width: 60ch;
  animation: fadeUp .9s .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; animation: fadeUp .9s .68s both; }
.hero .hindi { font-family: var(--hindi); color: #ecd9ab; font-size: 1.08rem; margin-top: 24px;
  animation: fadeUp .9s .82s both; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; animation: fadeUp .9s .95s both; }
.hero .chips span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22); color: #e8eef7;
}
.mountains { position: absolute; left: -2%; right: -2%; bottom: -2px; z-index: 1; pointer-events: none; }
.mountains svg { width: 104%; height: clamp(110px, 19vw, 230px); display: block; }
.mountains .l1 { animation: drift 26s ease-in-out infinite alternate; }
.mountains .l2 { animation: drift 34s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-10px); } to { transform: translateX(10px); } }

/* ------------------------------------------------------------- marquee */
.ribbon { background: var(--maroon); color: #ffe9ef; overflow: hidden; padding: 11px 0;
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold-d); }
.ribbon .track { display: flex; gap: 44px; width: max-content; animation: slide 38s linear infinite;
  font-family: var(--display); font-size: 14.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; }
.ribbon .track span { white-space: nowrap; display: flex; gap: 44px; }
.ribbon .track i { font-style: normal; color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }
.ribbon:hover .track { animation-play-state: paused; }

/* ----------------------------------------------------------- impact bar */
.impact-bar { background: var(--paper-2); padding: 30px 0; border-bottom: 1px solid var(--line); }
.impact-bar .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; }
.impact-bar b { display: block; font-family: var(--display); font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--maroon); }
.impact-bar span { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }

.about-grid { grid-template-columns: minmax(260px, .9fr) 1.1fr; gap: 44px; align-items: start; }
.about-grid > :first-child, .about-head { position: sticky; top: 96px; }

/* ------------------------------------------------------------- sections */
section { padding: clamp(58px, 8vw, 104px) 0; position: relative; }
section.alt { background: #fff; border-block: 1px solid var(--line-2); }
section.tint { background: var(--gold-t); }
.sec-head { max-width: 74ch; margin-bottom: 38px; }
.sec-head .eyebrow { color: var(--maroon); }
.sec-head .eyebrow:before { background: var(--maroon); }
.sec-head p { color: var(--ink-2); font-size: 1.03rem; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* cards with hand-made irregularity */
.card {
  background: var(--card); border: 1px solid var(--line); padding: 26px;
  border-radius: 18px 22px 18px 24px / 24px 18px 22px 18px;
  box-shadow: var(--shadow); position: relative;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s;
}
.card:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: var(--shadow-lg); }
.card.wide { grid-column: span 2; }
@media (max-width: 760px) { .card.wide { grid-column: span 1; } }
.card h3 { margin-top: 0; }
.card .tag {
  position: absolute; top: -11px; right: 18px; background: var(--gold); color: #3a2803;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(169, 122, 28, .35);
  transform: rotate(2deg);
}
.card .icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--maroon-t); color: var(--maroon); margin-bottom: 15px;
  transition: transform .3s, background .3s;
}
.card:hover .icon { transform: scale(1.08) rotate(-5deg); background: var(--gold-t); color: var(--gold-d); }
.card .icon svg { width: 25px; height: 25px; }
.card p, .card li { color: var(--ink-2); font-size: 14.8px; }
.card ul { padding-left: 18px; margin: 0 0 14px; }
.card ul li { margin-bottom: 6px; }
.note {
  font-family: var(--hand); color: var(--maroon); font-size: 1.22rem; line-height: 1.35;
  transform: rotate(-1.4deg); display: inline-block;
}
.note:before { content: "✎ "; }

/* ------------------------------------------------- registration / seal */
.idblock {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
  background: linear-gradient(150deg, #fffdf8, #faf4e6);
  border: 1.5px dashed var(--gold-d); border-radius: 20px; padding: 26px;
  position: relative; overflow: hidden;
}
.idblock:before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 160px at 100% 0, rgba(217, 164, 65, .12), transparent 70%);
}
.seal {
  width: 132px; height: 132px; flex: 0 0 auto; position: relative; transform: rotate(-8deg);
  animation: stampIn .7s cubic-bezier(.22, 1.4, .4, 1) both;
}
@keyframes stampIn { from { transform: rotate(-24deg) scale(1.7); opacity: 0; } }
.seal svg { width: 100%; height: 100%; }
.idblock table { width: 100%; border-collapse: collapse; font-size: 14.5px; position: relative; }
.idblock th { text-align: left; color: var(--ink-3); font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .8px; padding: 7px 14px 7px 0; vertical-align: top; white-space: nowrap; }
.idblock td { padding: 7px 0; color: var(--ink); border-bottom: 1px dotted var(--line); }
.idblock tr:last-child td, .idblock tr:last-child th { border-bottom: 0; }
.idblock td b { color: var(--maroon-d); }
.idblock a { font-weight: 700; }

/* mission statement */
.mission {
  font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.5;
  color: var(--navy-d); font-weight: 600; max-width: 34ch; position: relative;
}
.mission .u { background: linear-gradient(transparent 72%, rgba(217, 164, 65, .55) 0); }
.mission .u2 { background: linear-gradient(transparent 72%, rgba(158, 27, 50, .28) 0); }

/* ------------------------------------------------------- dashboard mock */
.dash {
  background: linear-gradient(150deg, #0a1c31, var(--navy) 60%, #1b4a78);
  border-radius: 26px; padding: clamp(26px, 4.4vw, 50px); color: #fff;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 46px);
  align-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.dash:before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 280px at 92% -4%, rgba(217, 164, 65, .22), transparent 62%); }
.dash > * { position: relative; }
.dash h2 { color: #fff; }
.dash p { color: #d5e0ee; }
.dash .feat { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; }
.dash .feat li { display: flex; gap: 10px; font-size: 14.6px; color: #e6edf6; }
.dash .feat li:before { content: "✓"; color: var(--gold); font-weight: 900; }
.subsidy {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(217, 164, 65, .16);
  border: 1px solid rgba(217, 164, 65, .5); color: #f4d79a; border-radius: 999px;
  padding: 6px 15px; font-size: 12.5px; font-weight: 800; margin-bottom: 15px;
  animation: pulseGlow 3.2s ease-in-out infinite;
}
@keyframes pulseGlow { 50% { box-shadow: 0 0 0 7px rgba(217, 164, 65, .10); } }
.mock {
  background: #0d1524; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  overflow: hidden; box-shadow: 0 26px 70px rgba(0, 0, 0, .5); font-size: 12px;
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.mock:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock .bar { display: flex; gap: 6px; padding: 9px 12px; background: #16233c; align-items: center; }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3b4c6b; }
.mock .bar b { margin-left: 8px; color: #8fa5c6; font-weight: 600; font-size: 11px; }
.mock .body { display: grid; grid-template-columns: 92px 1fr; min-height: 258px; }
.mock .side { background: #101b30; padding: 10px 8px; display: grid; gap: 6px; align-content: start; }
.mock .side span { color: #7e93b4; padding: 5px 8px; border-radius: 6px; font-size: 10.5px; }
.mock .side span.on { background: var(--maroon); color: #fff; }
.mock .main { padding: 12px; display: grid; gap: 10px; align-content: start; }
.mock .q { background: #182741; border: 1px solid #24365a; border-radius: 8px; padding: 9px 11px; color: #cfdcee; }
.mock .opts { display: grid; gap: 6px; }
.mock .opts div { background: #12203a; border: 1px solid #223454; color: #9fb2cd; border-radius: 7px; padding: 6px 9px; }
.mock .opts div.ok { border-color: var(--ok); color: #bfe8cf; background: #12301f; }
.mock .pal { display: flex; gap: 4px; flex-wrap: wrap; }
.mock .pal i { width: 15px; height: 15px; border-radius: 4px; background: #223454; }
.mock .pal i.a { background: var(--ok); } .mock .pal i.w { background: var(--maroon); }
.mock .pal i.c { outline: 2px solid var(--gold); }

/* ------------------------------------------------------------ stories */
.storydeck { position: relative; }
.story {
  background: #fff; border: 1px solid var(--line); padding: 30px 28px 24px;
  border-radius: 4px 4px 16px 4px; box-shadow: var(--shadow); position: relative;
  transform: rotate(var(--rot, -1deg)); transition: transform .35s, box-shadow .35s;
}
.story:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-lg); }
.story:before, .story:after {
  content: ""; position: absolute; width: 86px; height: 26px; background: rgba(217, 164, 65, .35);
  top: -13px; left: 24px; transform: rotate(-4deg); box-shadow: 0 2px 5px rgba(60, 45, 20, .12);
}
.story:after { left: auto; right: 24px; transform: rotate(3deg); }
.story q { font-family: var(--display); font-size: 1.1rem; line-height: 1.6; color: var(--ink);
  quotes: none; display: block; margin-bottom: 14px; }
.story .who { font-size: 13px; color: var(--ink-3); }
.story .who b { color: var(--maroon-d); }
.carousel { position: relative; }
.carousel .slides { display: grid; }
.carousel .slides > * { grid-area: 1 / 1; opacity: 0; transform: translateY(10px) scale(.99);
  transition: opacity .5s, transform .5s; pointer-events: none; }
.carousel .slides > .on { opacity: 1; transform: none; pointer-events: auto; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.dots button { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; position: relative; padding: 0; }
.dots button:before { content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: var(--line); transition: transform .25s, background .25s; }
.dots button.on:before { background: var(--maroon); transform: scale(1.35); }
.dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --------------------------------------------------------- transparency */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.3px; background: #fff; }
table.tbl th, table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
table.tbl th { background: var(--gold-t); color: var(--maroon-d); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .6px; }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.pill.ok { background: #e6f5ea; color: var(--ok); border: 1px solid #b7e0c4; }
.pill.req { background: var(--gold-t); color: var(--gold-d); border: 1px solid #ecd9ac; }

/* ------------------------------------------------------------------ faq */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px;
  overflow: hidden; transition: box-shadow .25s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 800; font-size: 15px; color: var(--navy-d);
  list-style: none; display: flex; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:before { content: "+"; font-family: var(--display); font-size: 22px; color: var(--maroon);
  transition: transform .25s; }
.faq details[open] summary:before { transform: rotate(45deg); }
.faq details div { padding: 0 20px 18px 52px; color: var(--ink-2); font-size: 14.6px; }

/* ---------------------------------------------------------------- news */
.timeline { border-left: 2px solid var(--gold); margin-left: 8px; padding-left: 24px; display: grid; gap: 22px; }
.timeline .ev { position: relative; }
.timeline .ev:before { content: ""; position: absolute; left: -31px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--maroon); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.timeline b.date { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-d); font-weight: 800; }
.timeline h3 { margin: 3px 0 5px; }
.timeline p { color: var(--ink-2); font-size: 14.6px; margin: 0; }

/* ------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
form.f label { display: block; margin-bottom: 13px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
form.f input, form.f textarea, form.f select {
  width: 100%; margin-top: 5px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 11px; font: 15px var(--body); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
form.f input:focus, form.f textarea:focus {
  outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(158, 27, 50, .12);
}

/* -------------------------------------------------------------- footer */
footer { background: var(--navy-d); color: #b9c6d8; padding: 54px 0 26px; font-size: 14px; position: relative; }
footer .wordmark { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 10vw, 6.5rem);
  color: rgba(255, 255, 255, .07); line-height: 1; letter-spacing: -.03em; user-select: none; }
footer h4 { color: #fff; font-family: var(--display); margin: 0 0 12px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: -12px; }
footer a { color: #b9c6d8; text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--gold); }
footer .reg { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-top: 18px;
  font-size: 12.5px; color: #8fa0b6; display: flex; gap: 16px; flex-wrap: wrap; }

/* --------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: block; }
.modal .veil { position: absolute; inset: 0; background: rgba(12, 20, 34, .62); backdrop-filter: blur(3px); }
.modal .box { position: relative; margin: 6vh auto; max-width: 540px; background: #fff; border-radius: 20px;
  padding: 30px; box-shadow: var(--shadow-lg); max-height: 88vh; overflow: auto;
  animation: pop .35s cubic-bezier(.22, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.9) translateY(14px); opacity: 0; } }
.close-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 24px;
  cursor: pointer; color: var(--ink-3); }

/* -------------------------------------------------------------- misc */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: var(--maroon); color: #fff; font-size: 19px;
  cursor: pointer; box-shadow: 0 10px 26px rgba(158, 27, 50, .4);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
.divider { height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C20 8 40 8 60 26 C80 8 100 8 120 26' fill='none' stroke='%23d9a441' stroke-width='2'/%3E%3C/svg%3E") repeat-x bottom / 120px 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}

/* --------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .dash, .contact-grid { grid-template-columns: 1fr; }
  .idblock { grid-template-columns: 1fr; }
  .seal { margin: 0 auto; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .burger { display: inline-flex; margin-left: auto; background: #fff; border: 1px solid var(--line);
    border-radius: 10px; padding: 9px 14px; cursor: pointer; color: var(--ink-2); font-weight: 800; font-size: 14px; }
  .mock { transform: none; }
}

/* ==========================================================================
   Device responsiveness
   ========================================================================== */

/* Tables scroll in their own lane on narrow screens */
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
  /* scroll shadows: appear only while more content exists on that side */
  background:
    linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left center / 26px 100% local no-repeat,
    linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right center / 26px 100% local no-repeat,
    linear-gradient(90deg, rgba(15,28,46,.16), rgba(15,28,46,0)) left center / 12px 100% scroll no-repeat,
    linear-gradient(270deg, rgba(15,28,46,.16), rgba(15,28,46,0)) right center / 12px 100% scroll no-repeat;
}
.tblwrap table.tbl { min-width: 540px; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  /* single column: sticky headings would float over the paragraphs below */
  .about-grid > :first-child, .about-head { position: static !important; top: auto !important; }
  .logo small { display: none; }
  .utility .right { margin-left: 0; width: 100%; }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  footer a { padding: 7px 0; }
  .wrap { padding: 0 16px; }
  section { padding: 44px 0; }
  .hero { padding: 46px 0 120px; }
  /* keep the whole disc visible and let it rise from behind the ridge
     (sun paints before .mountains, so the peaks overlap its lower half) */
  .hero .sun { top: auto; bottom: 44px; right: 9%; width: 88px; opacity: .95; }
  .hero h1 { font-size: 2rem; }
  .hero .chips span { font-size: 10.5px; padding: 4px 10px; }
  .ribbon .track { font-size: 12px; gap: 30px; }
  .impact-bar .wrap { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .idblock { padding: 18px; }
  .idblock table { font-size: 13.5px; }
  .idblock th { white-space: normal; padding-right: 10px; }
  .seal { width: 108px; height: 108px; }
  .mission { font-size: 1.22rem; }
  .card { padding: 20px; }
  .story { padding: 26px 20px 20px; }
  .story q { font-size: 1.02rem; }
  .mock .body { grid-template-columns: 1fr; }
  .mock .side { display: none; }
  .faq summary { padding: 14px 16px; font-size: 14.2px; }
  .faq details div { padding: 0 16px 16px 44px; }
  .timeline { padding-left: 18px; }
  .timeline .ev:before { left: -25px; }
  .btn { padding: 11px 18px; }
  .btn-lg { padding: 13px 22px; }
  .modal .box { margin: 3vh 12px; padding: 22px 18px; }
  footer .wordmark { font-size: 3.4rem; }
  .totop { right: 12px; bottom: 12px; }
  form.f input, form.f textarea, form.f select { font-size: 16px; }  /* prevents iOS focus-zoom */
}

/* donate/other modal tables: let them wrap instead of side-scrolling on phones */
@media (max-width: 700px) {
  .modal .tblwrap table.tbl { min-width: 0; }
  .modal table.tbl th { width: 88px; white-space: normal; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.72rem; }
  .hero .cta .btn { width: 100%; }
  .impact-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 14px; }
  .utility { font-size: 11.5px; }
  .utility .wrap { gap: 8px; }
  .logo b { font-size: 1.3rem; }
  .logo img { width: 44px; height: 44px; }
}

/* Mid-size desktops: keep the nav on one line */
@media (min-width: 961px) and (max-width: 1380px) {
  .menu a { font-size: 13.4px; padding: 9px 7px; }
  .logo small { font-size: 9.6px; max-width: 150px; }
}

/* Tablets / small laptops */
@media (min-width: 701px) and (max-width: 1100px) {
  .about-grid { gap: 26px; }
  .dash { gap: 26px; }
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
}

/* Large desktops: keep line lengths readable */
@media (min-width: 1500px) {
  .wrap { max-width: 1260px; }
}
