/* ── TOKENS ── */
:root {
  --paper:    #FAF7F2;
  --paper-2:  #F1EBE0;
  --paper-3:  #E8DDD0;
  --ink:      #18130F;
  --ink-soft: #4A4038;
  --ink-mute: #9A8E82;
  --acc:      #E04E0B;
  --acc-lo:   rgba(224,78,11,.10);
  --acc-mid:  rgba(224,78,11,.20);
  --dark:     #120E0B;
  --dark-2:   #1D1713;
  --rule:     rgba(24,19,15,.10);
  --rule-dk:  rgba(255,255,255,.09);
  --green:    #22C55E;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'DM Sans', -apple-system, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(224,78,11,.15); }
a { color: inherit; text-decoration: none; }
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── SCROLL REVEAL ── */
[data-r] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s cubic-bezier(.16,.8,.3,1),
              transform .85s cubic-bezier(.16,.8,.3,1);
}
[data-r="l"] { transform: translateX(-26px); }
[data-r="r"] { transform: translateX(26px); }
[data-r="s"] { transform: scale(.95); }
[data-r][data-d="1"] { transition-delay: .10s; }
[data-r][data-d="2"] { transition-delay: .20s; }
[data-r][data-d="3"] { transition-delay: .30s; }
[data-r][data-d="4"] { transition-delay: .40s; }
[data-r][data-d="5"] { transition-delay: .50s; }
[data-r][data-d="6"] { transition-delay: .60s; }
[data-r].on { opacity: 1; transform: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  background: rgba(250,247,242,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 9px 16px 9px 14px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: 0 2px 24px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  white-space: nowrap;
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled {
  background: rgba(250,247,242,.96);
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
}
.nav-brand {
  font-family: var(--serif); font-style: italic;
  font-size: .95rem; color: var(--ink); letter-spacing: -.01em;
  display: flex; align-items: center; gap: 7px;
}
.nav-bolt { color: var(--acc); width: 16px; height: 16px; }
.nav-links { display: flex; gap: 18px; align-items: center; list-style: none; }
.nav-links a {
  font-size: .8rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--acc); font-weight: 600; }
.nav-donate {
  background: var(--acc) !important;
  color: #fff !important;
  font-size: .78rem !important; font-weight: 600 !important;
  padding: 7px 13px; border-radius: 100px;
  transition: background .2s !important;
  display: flex !important; align-items: center; gap: 5px;
}
.nav-donate:hover { background: #c43d06 !important; color: #fff !important; }
.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-size: .78rem !important; font-weight: 600 !important;
  padding: 7px 13px; border-radius: 100px;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--acc) !important; }
@media (max-width: 680px) {
  .nav-links li:not(:nth-last-child(-n+2)) { display: none; }
  .nav { gap: 14px; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 22px; border-radius: 100px;
  font-size: .84rem; font-weight: 600;
  transition: all .2s; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--acc); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-orange { background: var(--acc); color: #fff; }
.btn-orange:hover { background: #c43d06; }
.btn-donate { background: #fff; color: var(--acc); white-space: nowrap; flex-shrink: 0; font-size: .9rem !important; }
.btn-donate:hover { background: rgba(255,255,255,.88); color: var(--acc); }

/* ── SECTION COMMON ── */
.section { padding: clamp(64px, 11vh, 110px) 0; border-bottom: 1px solid var(--rule); }
.sec-label {
  font-size: .67rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.sec-num { font-family: var(--serif); font-style: italic; color: var(--acc); font-size: .84rem; letter-spacing: 0; }
.two-col { display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.sticky-label { position: sticky; top: 86px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 24px; } .sticky-label { position: static; } }

/* ── FACTS GRID ── */
.facts-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  margin-top: 40px;
}
.fact { background: var(--paper); padding: 16px 20px; }
.fact dt { font-size: .69rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 3px; }
.fact dd { font-size: .92rem; color: var(--ink); }
.fact dd a { color: var(--acc); }
.fact dd a:hover { text-decoration: underline; }
.facts-note { margin-top: 18px; font-size: .76rem; color: var(--ink-mute); max-width: 58ch; line-height: 1.6; }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; } }

/* ── COMMITS ── */
.commits { margin-top: 40px; }
.commit {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.commit-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--acc-lo); color: var(--acc);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  transition: background .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.commit:hover .commit-icon { background: var(--acc); color: #fff; transform: scale(1.1); }
.commit p { font-size: .95rem; color: var(--ink-soft); }
.commit p strong { color: var(--ink); font-weight: 600; }

/* ── DONATE BANNER ── */
.donate-banner { background: var(--acc); padding: clamp(40px, 7vh, 72px) 0; }
.donate-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.donate-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.donate-text { flex: 1; min-width: 200px; }
.donate-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: #fff; line-height: 1.2; margin-bottom: 6px;
}
.donate-text p { font-size: .93rem; color: rgba(255,255,255,.78); line-height: 1.55; }

/* ── FOOTER ── */
.footer { background: var(--ink); color: rgba(245,240,234,.4); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand {
  font-family: var(--serif); font-style: italic;
  color: rgba(245,240,234,.8); font-size: .92rem;
  display: flex; align-items: center; gap: 6px;
}
.footer-bolt { color: var(--acc); width: 14px; height: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: .76rem; color: rgba(245,240,234,.38); transition: color .2s; }
.footer-links a:hover { color: rgba(245,240,234,.75); }
.footer-copy { font-size: .72rem; width: 100%; border-top: 1px solid rgba(255,255,255,.07); padding-top: 18px; margin-top: 6px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: clamp(110px, 18vh, 160px) 0 clamp(56px, 8vh, 88px);
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 15% 50%, rgba(224,78,11,.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-eyebrow {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 18px;
}
.page-h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02; letter-spacing: -.025em;
  max-width: 20ch; margin-bottom: 22px;
}
.page-h1 em { font-style: italic; color: var(--acc); }
.page-sub {
  font-size: 1.06rem; color: var(--ink-soft);
  max-width: 52ch; line-height: 1.65;
}

/* ── INFO CARDS (contact page) ── */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 48px;
}
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 16px; padding: 28px 32px;
}
.info-card-wide { grid-column: 1 / -1; }
.info-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--acc-lo); color: var(--acc);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.info-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.2rem;
  margin-bottom: 10px;
}
.info-card p, .info-card address {
  font-size: .95rem; color: var(--ink-soft); line-height: 1.7;
  font-style: normal;
}
.info-card a { color: var(--acc); }
.info-card a:hover { text-decoration: underline; }
.info-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: .69rem; font-weight: 600; letter-spacing: .05em;
  background: var(--acc-lo); color: var(--acc); margin-top: 10px;
}

/* ── DONATE PAGE ── */
.donate-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: clamp(36px, 6vw, 80px); align-items: start;
  padding: clamp(56px, 9vh, 100px) 0;
}
@media (max-width: 820px) { .donate-layout { grid-template-columns: 1fr; } }
.donate-h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.1; letter-spacing: -.018em; margin-bottom: 18px;
}
.donate-h2 em { font-style: italic; color: var(--acc); }
.donate-body p { font-size: 1rem; color: var(--ink-soft); line-height: 1.72; margin-bottom: 14px; }
.impact-list { margin: 28px 0; list-style: none; }
.impact-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.impact-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--acc-lo); color: var(--acc);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.impact-item p { font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }
.impact-item p strong { color: var(--ink); }
.donate-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 20px; padding: 32px;
  position: sticky; top: 92px;
}
.donate-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.4rem;
  margin-bottom: 8px;
}
.donate-card > p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.6; }
.donate-card .btn {
  width: 100%; justify-content: center;
  font-size: .92rem !important; padding: 14px 22px;
  margin-bottom: 18px;
}
.donate-card-meta {
  font-size: .75rem; color: var(--ink-mute);
  line-height: 1.65; border-top: 1px solid var(--rule);
  padding-top: 16px; margin-top: 4px;
}
.donate-card-meta strong { color: var(--ink-soft); display: block; margin-bottom: 2px; }

/* ── ABOUT PAGE STYLES ── */
.mission-block {
  background: var(--dark); padding: clamp(56px, 10vh, 96px) 0;
}
.mission-eyebrow {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  color: rgba(245,240,234,.35); margin-bottom: 20px;
}
.mission-stmt {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.25; letter-spacing: -.02em;
  color: #F5F0EA; max-width: 26ch;
}
.mission-stmt em { font-style: italic; color: var(--acc); }
.mission-sub {
  margin-top: 24px; font-size: 1rem;
  color: rgba(245,240,234,.55); max-width: 58ch; line-height: 1.7;
}
.about-section { padding: clamp(56px, 9vh, 96px) 0; border-bottom: 1px solid var(--rule); }
.about-h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.15; letter-spacing: -.016em;
  margin-bottom: 20px;
}
.about-h2 em { font-style: italic; color: var(--acc); }
.about-body p { font-size: 1rem; color: var(--ink-soft); line-height: 1.72; margin-bottom: 14px; max-width: 64ch; }
.pull-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.4; color: var(--ink);
  border-left: 3px solid var(--acc);
  padding: 4px 0 4px 24px;
  margin: 24px 0; max-width: 52ch;
}
.about-pillars {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  margin-top: 28px;
}
@media (max-width: 640px) { .about-pillars { grid-template-columns: 1fr; } }
.about-pillar {
  background: var(--paper); padding: 28px;
  transition: background .25s;
}
.about-pillar:hover { background: var(--paper-2); }
.about-pillar-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--acc-lo); color: var(--acc);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .25s, color .25s;
}
.about-pillar:hover .about-pillar-icon { transform: scale(1.1) rotate(-7deg); background: var(--acc); color: #fff; }
.about-pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin-bottom: 8px; }
.about-pillar p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }

/* ── MOTION REDUCE ── */
@media (prefers-reduced-motion: reduce) {
  [data-r], [data-r].on { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
