:root {
  color-scheme: light;
  --ink: #13231f;
  --muted: #63716d;
  --paper: #f7f7ef;
  --surface: #ffffff;
  --deep: #123c36;
  --deep-2: #0c2b27;
  --green: #28785b;
  --aqua: #2f8094;
  --coral: #db6047;
  --amber: #f2b84b;
  --mint: #e4f1ec;
  --sand: #f1e6d4;
  --line: rgba(19, 35, 31, 0.13);
  --shadow: 0 24px 70px rgba(19, 35, 31, 0.15);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(247, 247, 239, 0.95);
  box-shadow: 0 10px 30px rgba(19, 35, 31, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: 1.08rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  font-size: 0.94rem;
  font-weight: 900;
}

.site-nav a {
  padding: 8px 0;
}

.menu-button {
  display: none;
  width: 46px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("https://images.unsplash.com/photo-1593113598332-cd288d649433?auto=format&fit=crop&w=1900&q=84") center / cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    radial-gradient(circle at 82% 22%, rgba(242, 184, 75, 0.26), transparent 28%),
    linear-gradient(90deg, rgba(8, 24, 20, 0.94), rgba(8, 24, 20, 0.66) 52%, rgba(8, 24, 20, 0.28));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 88vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.44fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-block: 144px 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 4.3vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.23rem;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 700px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 16px 34px rgba(219, 96, 71, 0.3);
}

.button.glass {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.13);
}

.hero-panel,
.impact-card,
.ledger-card,
.volunteer-form {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  backdrop-filter: blur(12px);
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35c978;
  box-shadow: 0 0 0 8px rgba(53, 201, 120, 0.16);
}

.hero-panel p {
  color: var(--muted);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.mini-metrics div {
  border-top: 3px solid var(--green);
  padding-top: 12px;
}

.mini-metrics div:nth-child(2) {
  border-color: var(--amber);
}

.mini-metrics strong,
.mini-metrics span {
  display: block;
}

.mini-metrics strong {
  font-size: 2rem;
  line-height: 1;
}

.mini-metrics span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.scroll-cue {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 28px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.metric-band {
  background: var(--deep);
  color: #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.metric-grid div {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.07);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
}

.metric-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.section {
  padding-block: clamp(70px, 8vw, 116px);
}

.intro-grid,
.crisis-grid,
.calculator-grid,
.transparency-grid,
.volunteer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.intro-grid {
  margin-bottom: 38px;
}

.intro-copy {
  display: grid;
  gap: 14px;
}

.intro-copy p,
.section-heading p,
.value-card p,
.program-card p,
.crisis-grid p,
.roadmap-grid p,
.calculator-copy p,
.impact-card p,
.transparency-grid p,
.update-card p,
.volunteer-grid p,
.faq-list p {
  color: var(--muted);
  font-size: 1.04rem;
}

.value-grid,
.program-grid,
.roadmap-grid,
.update-grid {
  display: grid;
  gap: 18px;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card,
.roadmap-grid article,
.update-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(19, 35, 31, 0.06);
}

.value-card {
  min-height: 250px;
  padding: 26px;
}

.value-card span,
.roadmap-grid span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.value-card:nth-child(2) span,
.roadmap-grid article:nth-child(2) span {
  background: var(--aqua);
}

.value-card:nth-child(3) span,
.roadmap-grid article:nth-child(3) span {
  color: var(--ink);
  background: var(--amber);
}

.programs-section,
.updates-section,
.faq-section {
  background: var(--surface);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 32px;
}

.section-heading h2 {
  max-width: 760px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-bar button,
.amount-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.filter-bar button.is-active,
.amount-tabs button.is-active {
  color: #fff;
  background: var(--deep);
}

.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(19, 35, 31, 0.06);
  transition: transform 160ms ease, opacity 160ms ease;
}

.program-card.is-hidden {
  display: none;
}

.program-card:hover {
  transform: translateY(-4px);
}

.program-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program-card > div {
  padding: 22px;
}

.program-card a {
  display: inline-flex;
  margin-top: 6px;
  color: var(--green);
  font-weight: 900;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--deep);
  background: var(--mint);
  font-size: 0.76rem;
  font-weight: 900;
}

.tag.urgent {
  color: #fff;
  background: var(--coral);
}

.tag.children {
  color: #fff;
  background: var(--aqua);
}

.tag.community {
  color: #fff;
  background: var(--green);
}

.tag.resilience {
  background: var(--amber);
}

.crisis-section,
.volunteer-section {
  color: #fff;
  background: var(--deep);
}

.crisis-grid p,
.volunteer-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-list article {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 22px 22px 22px 56px;
  background: rgba(255, 255, 255, 0.08);
}

.signal-list span {
  position: absolute;
  top: 27px;
  left: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
}

.signal-list p {
  margin-bottom: 0;
}

.calculator-section {
  background: var(--sand);
}

.calculator-grid {
  align-items: center;
}

.amount-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 18px;
}

.input-row {
  display: grid;
  gap: 8px;
  max-width: 310px;
  margin-bottom: 14px;
  font-weight: 900;
}

.input-row input,
.input-row select,
.volunteer-form input,
.volunteer-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
}

.impact-card {
  display: grid;
  justify-items: start;
  padding: 30px;
  background: #fff;
}

.panel-label {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.impact-card strong {
  font-size: clamp(4.3rem, 8vw, 7rem);
  line-height: 0.95;
}

.impact-card > span {
  margin: 4px 0 18px;
  color: var(--green);
  font-weight: 900;
}

.roadmap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roadmap-grid article {
  padding: 24px;
}

.roadmap-grid article:nth-child(4) span {
  background: var(--coral);
}

.transparency-section {
  background: var(--mint);
}

.transparency-grid {
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 900;
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  transform: translateY(-50%);
}

.ledger-card {
  padding: 28px;
  background: #fff;
}

.ledger-head,
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.ledger-head {
  padding-top: 0;
  color: var(--deep);
  font-weight: 900;
}

.ledger-row span {
  color: var(--muted);
}

.allocation-bar {
  display: flex;
  overflow: hidden;
  height: 14px;
  margin-top: 20px;
  border-radius: 999px;
  background: #e2e6dd;
}

.allocation-bar span:nth-child(1) {
  background: var(--green);
}

.allocation-bar span:nth-child(2) {
  background: var(--aqua);
}

.allocation-bar span:nth-child(3) {
  background: var(--amber);
}

.allocation-bar span:nth-child(4) {
  background: var(--coral);
}

.update-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.update-card {
  padding: 24px;
}

.update-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.volunteer-grid {
  align-items: start;
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.role-pills span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.volunteer-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: #fff;
  color: var(--ink);
}

.volunteer-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.volunteer-form .button {
  width: 100%;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.form-note a {
  color: var(--green);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--paper);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  color: #fff;
  background: var(--deep-2);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 26px;
}

.footer-grid strong,
.footer-grid span {
  display: block;
}

.footer-grid span {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1080px) {
  .hero-grid,
  .program-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 14px 20px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero-grid,
  .intro-grid,
  .value-grid,
  .crisis-grid,
  .calculator-grid,
  .roadmap-grid,
  .transparency-grid,
  .update-grid,
  .volunteer-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 130px;
  }

  .hero-panel {
    max-width: 540px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .amount-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar button,
  .amount-tabs button {
    width: 100%;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
