:root {
  color-scheme: light;
  --ink: #2d241a;
  --muted: #6f6254;
  --paper: #fff8ed;
  --soft: #f2dfbf;
  --leaf: #2f6f4f;
  --leaf-dark: #174632;
  --gold: #c9872d;
  --line: rgba(255, 250, 240, 0.18);
  --shadow: 0 18px 70px rgba(14, 9, 5, 0.22);
  --glass: rgba(255, 248, 237, 0.34);
  --glass-strong: rgba(255, 248, 237, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #1a110b;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

main > section,
footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

img,
video {
  max-width: 100%;
}

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

.page-video,
.page-shade {
  position: fixed;
  top: 0;
  left: 50%;
  width: 118%;
  height: 100%;
}

.page-video {
  z-index: -2;
  max-width: none;
  object-fit: cover;
  image-rendering: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(1.08);
  transform-origin: center;
  transition: opacity 380ms ease;
  background: #19110b;
}

.page-video.is-visible {
  opacity: 1;
}

.page-shade {
  inset: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 248, 237, 0.04), transparent 34%),
    linear-gradient(90deg, rgba(20, 12, 7, 0.46), rgba(20, 12, 7, 0.18) 48%, rgba(20, 12, 7, 0.08)),
    linear-gradient(to bottom, rgba(20, 12, 7, 0.34), rgba(20, 12, 7, 0.12) 44%, rgba(20, 12, 7, 0.46));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fffaf0;
  background: linear-gradient(to bottom, rgba(31, 21, 12, 0.64), rgba(31, 21, 12, 0));
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 850;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: contain;
}

nav {
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.92rem;
  font-weight: 760;
}

.hero {
  position: relative;
  min-height: 100vh;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 96px clamp(22px, 6vw, 92px) 56px;
  color: var(--ink);
}

.hero-logo {
  display: block;
  width: min(72%, 420px);
  min-width: 240px;
  margin: 0 auto clamp(20px, 3vw, 30px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
}

.hero-copy {
  width: min(56vw, 700px);
  min-width: 0;
  container-type: inline-size;
}

.glass-panel {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px) saturate(1.02);
}

.hero-copy.glass-panel {
  padding: clamp(24px, 4vw, 44px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.25;
}

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

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

h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 8.4cqw, 3rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.2;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.cookie-banner button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 13px 20px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 850;
  cursor: pointer;
}

.button.primary,
.cookie-banner button {
  background: var(--leaf);
  color: #fff;
}

.button.secondary {
  border: 1px solid rgba(47, 111, 79, 0.32);
  color: var(--leaf-dark);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.section-inner {
  width: min(56vw, 700px);
  margin-left: clamp(18px, 6vw, 92px);
  margin-right: auto;
}

.intro,
.programs,
.donate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0 56px;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
  padding: clamp(26px, 5vw, 54px);
}

.split > p {
  margin: 0;
  color: rgba(45, 36, 26, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.impact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0 56px;
  background: transparent;
  color: #fffaf0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px) saturate(1.02);
}

.stats article {
  min-height: 154px;
  padding: 28px;
  background: rgba(23, 70, 50, 0.58);
}

.stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.3vw, 4rem);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  line-height: 1.45;
}

.programs {
  background: transparent;
}

.programs .section-inner {
  padding: clamp(26px, 5vw, 54px);
}

.programs h2 {
  max-width: 760px;
  margin-bottom: 30px;
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.program-grid article {
  min-height: 188px;
  border: 1px solid rgba(45, 36, 26, 0.12);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.22);
}

.program-grid p {
  margin-bottom: 0;
  color: rgba(45, 36, 26, 0.84);
  font-size: 0.98rem;
  line-height: 1.58;
}

.donate {
  background: transparent;
}

.donate-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  padding: clamp(26px, 5vw, 54px);
}

.donate-note {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(45, 36, 26, 0.84);
  font-size: clamp(0.98rem, 1.55vw, 1.1rem);
}

.bank-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(45, 36, 26, 0.12);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.26);
}

.bank-card span {
  color: rgba(45, 36, 26, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.bank-card strong {
  margin-bottom: 12px;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.35;
}

.bank-account {
  overflow-wrap: anywhere;
}

.bank-card p {
  margin: 8px 0 0;
  color: rgba(45, 36, 26, 0.78);
  font-size: 0.95rem;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(45, 36, 26, 0.78);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
  background: rgba(32, 22, 15, 0.9);
  color: rgba(255, 250, 240, 0.74);
  backdrop-filter: blur(18px);
}

.credit {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.9rem;
}

.credit a {
  color: #fffaf0;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: clamp(16px, 4vw, 36px);
  right: clamp(16px, 4vw, 36px);
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: rgba(32, 22, 15, 0.92);
  color: #fffaf0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

.cookie-banner p {
  max-width: 820px;
  margin: 4px 0 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding-top: 12px;
  }

  .brand span {
    display: none;
  }

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

  nav {
    gap: 12px;
    font-size: 0.84rem;
  }

  .hero-content {
    display: flex;
    padding: 90px 18px 38px;
  }

  .hero-logo {
    width: min(76%, 260px);
    min-width: 0;
  }

  .hero-copy,
  .section-inner {
    width: calc(100% - 36px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 0.96rem;
  }

  h1 {
    font-size: clamp(1.08rem, 7.3cqw, 1.28rem);
    line-height: 1.02;
    overflow-wrap: normal;
  }

  h2 {
    font-size: clamp(1.92rem, 9vw, 2.72rem);
    overflow-wrap: anywhere;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    text-align: center;
  }

  .split,
  .stats,
  .program-grid,
  .donate-panel {
    grid-template-columns: 1fr;
  }

  .intro,
  .programs,
  .donate {
    min-height: 100svh;
    display: flex;
    padding: 42px 0;
  }

  .impact {
    min-height: 100svh;
    display: flex;
    padding: 42px 0;
  }

  .split,
  .programs .section-inner,
  .donate-panel {
    padding: 24px;
  }

  .stats article {
    min-height: auto;
    padding: 24px;
  }

  footer {
    flex-direction: column;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
