:root {
  color-scheme: light;
  --ink: #162226;
  --muted: #5d6b70;
  --paper: #ffffff;
  --mist: #f3f8f7;
  --leaf: #0f766e;
  --leaf-dark: #0b4f4a;
  --marigold: #d89319;
  --coral: #c94f3d;
  --sky: #dbeaf5;
  --line: #dce7e5;
  --shadow: 0 18px 48px rgba(22, 34, 38, 0.14);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

img {
  display: block;
}

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

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

p:last-child {
  margin-bottom: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 14px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 231, 229, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  width: clamp(250px, 29vw, 340px);
  height: auto;
}

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

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 750;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--mist);
  color: var(--leaf-dark);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(86svh - 78px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 84px 0 78px;
  color: var(--paper);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 31, 31, 0.9) 0%, rgba(8, 31, 31, 0.73) 39%, rgba(8, 31, 31, 0.2) 70%, rgba(8, 31, 31, 0.05) 100%),
    linear-gradient(0deg, rgba(8, 31, 31, 0.35), rgba(8, 31, 31, 0.05));
}

.hero-content {
  max-width: var(--container);
}

.hero-content > * {
  max-width: 680px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--marigold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  max-width: 830px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.65rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-copy {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-tagline {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(1.28rem, 3vw, 2.1rem);
  font-weight: 850;
  line-height: 1.2;
}

.hero-actions,
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.btn:hover,
.btn:focus-visible,
.support-chip:hover,
.support-chip:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--marigold);
  color: #241601;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #efad2c;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.focus-strip {
  background: var(--leaf-dark);
  color: var(--paper);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.focus-grid article {
  min-height: 182px;
  padding: 30px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.focus-grid article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.focus-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--marigold);
  font-weight: 850;
}

.focus-grid h2 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.focus-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 92px 0;
}

.about-section,
.legacy-section,
.donate-section {
  background: var(--mist);
}

.legacy-section {
  background: linear-gradient(180deg, var(--mist) 0%, #ffffff 100%);
}

.activities-section {
  background: var(--paper);
}

.split,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.split.reversed {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
}

.statement-panel {
  display: grid;
  gap: 14px;
}

.statement-panel > div,
.program-card,
.impact-flow article,
.contact-form,
.contact-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 34, 38, 0.06);
}

.statement-panel > div {
  padding: 22px;
}

.statement-panel span,
.contact-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 660px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
}

.legacy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.legacy-photo {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legacy-photo::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: -1;
  width: 42%;
  height: 42%;
  border-radius: var(--radius);
  background: var(--marigold);
}

.legacy-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  object-position: center;
}

.legacy-copy {
  max-width: 680px;
}

.legacy-copy p:not(.eyebrow) {
  color: var(--muted);
}

.activity-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.activity-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  object-fit: cover;
}

.activity-feature h3 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.activity-feature p:not(.eyebrow),
.activity-card span {
  color: var(--muted);
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.activity-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--leaf-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.activity-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 34, 38, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.activity-card:hover,
.activity-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.activity-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  background: var(--mist);
}

.activity-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.activity-card-large img {
  aspect-ratio: 4 / 3.04;
}

.activity-card span {
  display: block;
  min-height: 42px;
  padding: 0 2px 2px;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.32;
}

.activity-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.video-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 34, 38, 0.06);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 2px);
  background: var(--ink);
  object-fit: cover;
}

.video-card h3 {
  margin: 12px 2px 2px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.32;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 19, 19, 0.86);
}

.gallery-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  width: min(100%, 1120px);
  max-height: calc(100svh - 44px);
  gap: 12px;
}

.gallery-figure {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.gallery-figure img {
  width: 100%;
  max-height: calc(100svh - 142px);
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.gallery-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 850;
}

.gallery-figure small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.gallery-close,
.gallery-nav {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  transition: transform 160ms ease, background 160ms ease;
}

.gallery-close:hover,
.gallery-close:focus-visible,
.gallery-nav:hover,
.gallery-nav:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.gallery-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  background: rgba(5, 19, 19, 0.68);
}

.gallery-close:hover,
.gallery-close:focus-visible {
  transform: translateY(-1px);
}

.gallery-close svg,
.gallery-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.program-card {
  min-height: 280px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.program-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--leaf-dark);
}

.program-card:nth-child(2n) .program-icon {
  background: #f6dfd8;
  color: var(--coral);
}

.program-card:nth-child(3n) .program-icon {
  background: #f8e8c2;
  color: #8a5608;
}

.program-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.program-card p,
.impact-flow p,
.about-section p,
.donate-section p,
.contact-section p {
  color: var(--muted);
}

.impact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.impact-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: impact;
}

.impact-flow article {
  position: relative;
  min-height: 188px;
  padding: 28px 22px;
  overflow: hidden;
}

.impact-flow article::before {
  counter-increment: impact;
  content: "0" counter(impact);
  position: absolute;
  right: 18px;
  bottom: -12px;
  color: rgba(15, 118, 110, 0.1);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.impact-flow span {
  display: block;
  margin-bottom: 14px;
  color: var(--leaf-dark);
  font-size: 1.12rem;
  font-weight: 850;
}

.donation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tagline-panel {
  margin-bottom: 42px;
}

.tagline-panel img {
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.support-chip {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--leaf-dark);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.support-chip.is-selected,
.support-chip:hover,
.support-chip:focus-visible {
  border-color: rgba(15, 118, 110, 0.34);
  background: #e5f2ef;
}

.contact-form {
  padding: 26px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  color: var(--ink);
}

.contact-form input,
.contact-form select {
  min-height: 46px;
  padding: 0 12px;
}

.contact-form textarea {
  resize: vertical;
  padding: 12px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--leaf);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--leaf-dark);
  font-weight: 750;
}

.contact-section {
  background: var(--paper);
}

.contact-list {
  display: grid;
  gap: 0;
  padding: 8px;
  font-style: normal;
}

.contact-list a,
.contact-list p {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background: var(--mist);
  outline: none;
}

.site-footer {
  padding: 26px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 180ms ease;
  }

  body.menu-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    justify-content: center;
  }

  .focus-grid,
  .activity-gallery,
  .activity-videos,
  .program-grid,
  .impact-flow,
  .split,
  .split.reversed,
  .contact-layout,
  .legacy-layout {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split.reversed,
  .contact-layout,
  .activity-feature,
  .legacy-layout {
    align-items: start;
  }

  .activity-feature {
    grid-template-columns: 1fr;
  }

  .gallery-dialog {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }
}

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

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: min(62vw, 260px);
  }

  .nav-menu {
    top: 70px;
  }

  .hero {
    min-height: 78svh;
    padding: 78px 0 54px;
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 31, 31, 0.93) 0%, rgba(8, 31, 31, 0.76) 57%, rgba(8, 31, 31, 0.34) 100%),
      linear-gradient(0deg, rgba(8, 31, 31, 0.4), rgba(8, 31, 31, 0.05));
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-actions,
  .btn,
  .footer-inner {
    width: 100%;
  }

  .focus-grid,
  .activity-gallery,
  .activity-videos,
  .program-grid,
  .impact-flow,
  .split,
  .split.reversed,
  .contact-layout,
  .legacy-layout {
    grid-template-columns: 1fr;
  }

  .focus-grid article,
  .focus-grid article:last-child {
    min-height: auto;
    border-right: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section {
    padding: 68px 0;
  }

  .program-card {
    min-height: auto;
  }

  .activity-feature {
    padding: 12px;
  }

  .legacy-photo {
    padding: 10px;
  }

  .activity-card-large {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-lightbox {
    padding: 14px;
  }

  .gallery-dialog {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 10px;
    max-height: calc(100svh - 28px);
  }

  .gallery-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-figure img {
    max-height: calc(100svh - 168px);
  }

  .gallery-figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .gallery-nav {
    width: 100%;
  }

  .gallery-close {
    top: 10px;
    right: 10px;
  }

  .gallery-close:hover,
  .gallery-close:focus-visible {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
