/* ── Variables ───────────────────────────────────────────── */
:root {
  --white:   #FFFFFF;
  --bg-alt:  #F5F7F2;
  --bg-alt2: #EEF1EB;
  --ink:     #080C04;
  --body:    #2C3820;
  --muted:   #536148;
  --faint:   #8A9685;
  --line:    #DDE3D8;
  --g1:      #2E4219;
  --g2:      #1D2D11;
  --g3:      #0E1808;
  --g4:      #3D5822;
  --g5:      #607840;
  --maxw:    1180px;
  --r:       14px;
  --r2:      20px;
  --sh1:     0 2px 8px rgba(8,12,4,.05);
  --sh2:     0 8px 28px rgba(8,12,4,.08);
  --sh3:     0 20px 52px rgba(8,12,4,.13);
  --sh4:     0 32px 72px rgba(8,12,4,.18);
  --font:    'Manrope', -apple-system, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font); font-weight: 800; line-height: 1.08; letter-spacing: -.028em; color: var(--ink); }
h1 { font-size: clamp(38px, 5.5vw, 66px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }

.kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--g4); margin-bottom: 12px;
}
.grad-text {
  background: linear-gradient(135deg, var(--g1) 0%, var(--g4) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
section { padding: 112px 0; }
.sec-white { background: var(--white); }
.sec-ash   { background: var(--bg-alt); }
.sec-dark  { background: var(--g3); }

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head h1 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 48px); }
.page-hero { padding: 158px 0 64px; }
.section-head p  { font-size: 17px; color: var(--muted); }
.section-head p b { color: var(--ink); font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  padding: 14px 26px; border-radius: 11px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: all .22s ease;
  letter-spacing: -.01em;
}
.btn-primary {
  background: var(--g1); color: #fff;
  box-shadow: 0 8px 24px rgba(46,66,25,.35);
}
.btn-primary:hover { background: var(--g2); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(46,66,25,.4); }
.btn-ghost {
  background: var(--white); border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--g4); color: var(--g4); transform: translateY(-1px); }
.btn-white {
  background: #fff; color: var(--g3);
  box-shadow: 0 8px 24px rgba(8,12,4,.15);
}
.btn-white:hover { background: var(--bg-alt); transform: translateY(-2px); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh1);
}
.brand {
  font-weight: 800; font-size: 16px; color: var(--ink);
  letter-spacing: -.02em;
  display: flex; align-items: center;
}
.brand img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links .mobile-cta { display: none; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--muted);
  letter-spacing: -.01em; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: 13.5px; }
.menu-btn {
  display: none; background: none; border: none;
  color: var(--ink); cursor: pointer; padding: 4px;
  font-size: 22px; line-height: 1;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 160px 0 110px;
  background: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 35%, rgba(62,88,34,.05), transparent 65%);
  pointer-events: none;
}
#bg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: .08;
}

.hero-center {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--g4); padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
  box-shadow: var(--sh1);
}
.eyebrow-mark {
  height: 8px; width: auto; display: block;
  animation: pulse 2.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(1.12)} }
.hero h1 { margin-bottom: 20px; }
.hero-lede {
  font-size: 18px; color: var(--muted);
  max-width: 560px; margin: 0 auto 44px; line-height: 1.7;
}
.hero-lede b { color: var(--ink); font-weight: 700; }

/* Hero inline form */
.hero-form-wrap { margin-bottom: 52px; }

.hero-form-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--sh3);
  display: grid;
  grid-template-columns: .9fr 1.2fr 1fr auto;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto 14px;
}
.hero-form-card input,
.hero-form-card select {
  border: none;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  transition: background .2s;
}
.hero-form-card input::placeholder { color: var(--faint); }
.hero-form-card input:focus,
.hero-form-card select:focus { background: var(--bg-alt2); }
.hero-form-card select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232E4219' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px;
  background-color: var(--bg-alt);
  padding-right: 34px;
}
.hero-form-card select option { background: #fff; color: var(--ink); }
.hero-form-card .btn-primary {
  padding: 0 24px;
  border-radius: 10px;
  white-space: nowrap;
  min-height: 50px;
  font-size: 14px;
}

.form-note-hero {
  font-size: 12px; color: var(--faint);
  text-align: center; margin-top: 12px;
}
.form-msg {
  margin-top: 14px; font-size: 15px; font-weight: 600;
  display: none; align-items: center; gap: 8px;
  justify-content: center;
}
.form-msg.show { display: flex; }
.form-msg.ok  { color: var(--g1); }
.form-msg.err { color: #b94030; }

/* Hero trust bar */
.hero-trust {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.trust-item {
  padding: 0 36px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child  { padding-right: 0; border-right: none; }
.trust-num {
  display: block; font-size: 20px; font-weight: 900;
  color: var(--g1); letter-spacing: -.025em; line-height: 1;
  margin-bottom: 5px;
}
.trust-lbl { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.4; }

/* ── Cards (solution) ─────────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.sol-card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r2); padding: 32px 28px;
  box-shadow: var(--sh1);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--sh3); border-color: var(--g1); }
.c-num { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--faint); margin-bottom: 16px; }
.c-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--bg-alt); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.sol-card h3 { margin-bottom: 10px; }
.sol-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ── Pipeline ────────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 16px; align-items: stretch;
}
.stage {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r2); padding: 28px 26px;
  box-shadow: var(--sh1);
}
.stg-k {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--g4); margin-bottom: 14px;
}
.stage h3 { font-size: 18px; margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 500; padding: 8px 13px;
  border-radius: 9px; background: var(--bg-alt);
  border: 1px solid var(--line); color: var(--ink);
}
.chip b { color: var(--g4); font-weight: 700; }
.arrow-col {
  display: flex; align-items: center; justify-content: center;
  color: var(--g4); font-size: 22px; font-weight: 700;
}
.result-banner {
  margin-top: 24px; padding: 20px 26px;
  border-radius: var(--r); border: 1.5px solid var(--line);
  background: linear-gradient(90deg, rgba(46,66,25,.07), rgba(96,120,64,.04));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 15px; color: var(--ink);
}
.result-banner b { color: var(--g1); }
.result-icon { font-size: 18px; }

/* ── Therapeutic Areas ───────────────────────────────────── */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 20px; }
.area-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r2); padding: 28px 24px;
  box-shadow: var(--sh1);
}
.area-title {
  font-size: 15px; font-weight: 800; color: var(--g1);
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -.02em;
}
.project-card { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--sh3); border-color: var(--g1); }
.project-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--g4); margin-bottom: 10px; display: block;
}
.project-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.area-tag {
  display: inline-block; font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 9px;
  background: var(--bg-alt); border: 1px solid var(--line);
  color: var(--body); transition: all .2s ease;
  line-height: 1.3;
}
.area-tag:hover { border-color: var(--g1); color: var(--g1); background: #fff; }
.area-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ── Who We Serve ────────────────────────────────────────── */
.serve-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.serve-card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r2); padding: 30px 26px;
  box-shadow: var(--sh1);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.serve-card:hover { transform: translateY(-5px); box-shadow: var(--sh3); border-color: var(--g4); }
.serve-card .tag-top {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 6px;
  display: block;
}
.serve-card h3 { margin-bottom: 16px; }
.serve-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.serve-card li {
  display: flex; gap: 10px; font-size: 14.5px; color: var(--muted);
  line-height: 1.5;
}
.serve-card li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--g4); margin-top: 8px; flex: none;
}
.serve-card.featured {
  grid-column: span 2;
  background: linear-gradient(140deg, rgba(46,66,25,.09), rgba(96,120,64,.04));
  border-color: rgba(46,66,25,.3);
}
.serve-card.featured h3 { color: var(--g1); }
.serve-card.featured ul {
  display: grid; grid-template-columns: 1fr 1fr; gap: 11px 32px;
}

/* ── Donate ──────────────────────────────────────────────── */
.donate-card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r2); padding: 48px 44px;
  box-shadow: var(--sh2);
  text-align: center;
}
.donate-eyebrow { font-size: 13px; font-weight: 700; color: var(--g1); letter-spacing: .03em; margin-bottom: 22px; }
.donate-buy-btn { display: flex; justify-content: center; }
.donate-note { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 16px; }
.donate-divider { height: 1px; background: var(--line); margin: 36px 0 30px; }
.donate-impact-h { font-weight: 800; font-size: 15px; color: var(--ink); text-align: left; margin-bottom: 20px; }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.impact-item { display: flex; flex-direction: column; gap: 4px; }
.impact-item b { font-size: 14.5px; color: var(--ink); }
.impact-item span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ── Bottom CTA ──────────────────────────────────────────── */
.cta-section { padding: 108px 0; }
.cta-section.bg-ash   { background: var(--bg-alt); }
.cta-section.bg-white { background: var(--white); }
.cta-inner { text-align: center; position: relative; overflow: hidden; }
.cta-inner::after {
  content: '';
  position: absolute; top: -30%; right: -5%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96,120,64,.12), transparent 62%);
  pointer-events: none;
}
.cta-section .kicker { color: var(--g1); }
.cta-section h2 { color: var(--ink); margin-bottom: 16px; }
.cta-section p {
  color: var(--muted); font-size: 17px;
  margin-bottom: 36px; max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--g3);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 48px 0 28px;
  color: rgba(255,255,255,.6);
}
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 24px;
}
.foot-brand {
  display: flex; align-items: center;
}
.foot-brand img { height: 34px; width: auto; display: block; }
.foot-blurb { font-size: 13.5px; color: rgba(255,255,255,.5); margin: 0; max-width: 380px; text-align: right; }
.foot-links {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.foot-links a { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color .2s; }
.foot-links a:hover { color: #fff; }
.foot-bottom {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.foot-copy { font-size: 12.5px; color: rgba(255,255,255,.35); }
.foot-email { font-size: 12.5px; color: rgba(255,255,255,.5); transition: color .2s; }
.foot-email:hover { color: #fff; }

/* ── Reveal ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.16,.84,.44,1), transform .75s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s !important; }
.d2 { transition-delay: .16s !important; }
.d3 { transition-delay: .24s !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .wrap { padding: 0 20px; }

  .pipeline { grid-template-columns: 1fr; }
  .arrow-col { transform: rotate(90deg); height: 30px; }
  .cards-3, .serve-grid, .area-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; gap: 18px; }
  .donate-card { padding: 36px 24px; }
  .serve-card.featured ul { grid-template-columns: 1fr; }
  .serve-card.featured { grid-column: span 1; }

  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-inner > .btn.btn-primary { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    padding: 24px 28px; gap: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh2);
    z-index: 99;
  }
  .nav-links.open .mobile-cta {
    display: inline-flex; justify-content: center;
    margin-top: 4px;
  }

  .hero-trust {
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding-top: 32px;
    gap: 0;
  }
  .trust-item {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 16px;
    text-align: left;
  }
  .trust-item:last-child { border-bottom: none; }
  .trust-item:first-child { padding-left: 0; }
  .trust-num { margin-bottom: 0; }

  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-blurb { max-width: none; text-align: left; }
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 80px; min-height: auto; }
  h1 { font-size: clamp(32px, 9vw, 46px); }

  .hero-form-card {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }
  .hero-form-card .btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    padding: 0;
  }

  .section-head p { font-size: 15.5px; }
  .cta-section p  { font-size: 15px; }

  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
