:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #fffaf1;
  --surface-2: #e8efe7;
  --surface-3: #f7d65a;
  --ink: #15201d;
  --text: #1c2925;
  --muted: #65736e;
  --line: rgba(21, 32, 29, 0.14);
  --brand: #0d5c54;
  --brand-2: #123f38;
  --red: #c4272f;
  --amber: #f2c84b;
  --blue: #245f86;
  --green: #477257;
  --shadow: 0 24px 70px rgba(21, 32, 29, 0.12);
  --radius: 8px;
  --max: 1200px;
}

:root.dark {
  color-scheme: dark;
  --bg: #111715;
  --surface: #18221f;
  --surface-2: #20302b;
  --surface-3: #4f4320;
  --ink: #f6f1e7;
  --text: #f6f1e7;
  --muted: #b8c4bd;
  --line: rgba(246, 241, 231, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(21, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 32, 29, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--text);
  line-height: 1.6;
}

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

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

p {
  margin: 0 0 1rem;
}

ul {
  margin-top: 0;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  font-weight: 950;
  line-height: 1.05;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand span {
  max-width: 210px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.nav-links a {
  padding: 10px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 850;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-2);
  color: var(--brand-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.menu-toggle,
.banner-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(13, 92, 84, 0.22);
}

.btn:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn.alert {
  background: var(--red);
  box-shadow: 0 14px 28px rgba(196, 39, 47, 0.2);
}

.alert-banner {
  background: var(--red);
  color: #fff;
}

.alert-banner[hidden] {
  display: none;
}

.alert-banner-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.alert-marker {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-weight: 950;
}

.alert-banner strong {
  display: block;
  line-height: 1.2;
}

.alert-banner p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.banner-close {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 84px 0 58px;
  background-image:
    linear-gradient(110deg, rgba(18, 63, 56, 0.92), rgba(18, 63, 56, 0.52) 52%, rgba(196, 39, 47, 0.34)),
    var(--hero-image, url("../static/assets/hero_homepage.jpg"));
  background-position: center;
  background-size: cover;
  color: #fff;
}

.page-hero::after,
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.page-hero .container,
.home-hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero .eyebrow,
.home-hero .eyebrow {
  color: #fff;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 720px;
  margin-top: 18px;
  color: color-mix(in srgb, currentColor 84%, transparent);
  font-size: clamp(1.04rem, 1.4vw, 1.25rem);
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 610px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 24px;
}

.card p,
.muted {
  color: var(--muted);
}

.media-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.feature-card {
  position: relative;
  border-top: 5px solid var(--brand);
}

.feature-card:nth-child(2) {
  border-top-color: var(--red);
}

.feature-card:nth-child(3) {
  border-top-color: var(--amber);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  padding: 24px;
  background: var(--surface);
}

.stat strong {
  display: block;
  color: var(--brand);
  font-size: 2.1rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand-2);
  font-weight: 900;
  font-size: 0.86rem;
}

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

.supporter {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--brand) 44%, var(--line));
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 950;
  text-align: center;
}

.cta-strip {
  padding: 34px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242, 200, 75, 0.9), rgba(242, 200, 75, 0) 38%),
    linear-gradient(110deg, var(--brand-2), var(--brand));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-strip p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
}

.process-list,
.partner-list,
.achievement-list {
  display: grid;
  gap: 14px;
}

.process-item,
.partner-item,
.achievement-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.number-chip {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
}

.site-footer {
  background: #121b18;
  color: #f6f1e7;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 950;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.footer-title {
  margin-bottom: 12px;
  color: #fff;
  font-weight: 950;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-grid p,
.footer-links span {
  color: rgba(246, 241, 231, 0.76);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 14px 0 0;
  font-weight: 900;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 241, 231, 0.62);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.07s;
}

.reveal:nth-child(3) {
  animation-delay: 0.14s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1160px) {
  .menu-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 94px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }
}

@media (max-width: 920px) {
  .grid.two,
  .grid.three,
  .stat-band,
  .supporters,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav {
    min-height: 78px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    max-width: 160px;
    font-size: 0.94rem;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .alert-banner-inner {
    grid-template-columns: auto 1fr;
  }

  .banner-close {
    grid-column: 2;
    justify-self: start;
  }

  .page-hero {
    min-height: 470px;
    padding: 58px 0 44px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head,
  .cta-strip {
    display: grid;
  }

  .grid.two,
  .grid.three,
  .stat-band,
  .supporters,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .media-card img {
    height: 210px;
  }
}
