:root {
  --forest: #174533;
  --forest-deep: #0d2d22;
  --terracotta: #b8644b;
  --cream: #fbf6ed;
  --paper: #fffdf8;
  --gold: #d6ad54;
  --coral: #ee756d;
  --ink: #1f2b25;
  --muted: #68746d;
  --line: #eadfce;
  --shadow: 0 24px 70px rgb(35 48 39 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgb(255 253 248 / 88%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgb(234 223 206 / 72%);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgb(23 69 51 / 18%);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  margin-left: auto;
}

.desktop-nav a,
.header-cta,
.mobile-menu a {
  color: var(--forest-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a {
  color: #425149;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: var(--terracotta);
}

.header-cta {
  padding: 10px 17px;
  border: 1px solid var(--forest);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 7px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--forest);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: grid;
  gap: 16px;
}

.section-pad {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 6vw, 88px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(13 45 34 / 78%) 0%, rgb(13 45 34 / 45%) 52%, rgb(13 45 34 / 18%) 100%),
    url("../assets/home-hero-performance.png") center/cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(transparent, rgb(13 45 34 / 64%));
}

.hero-content {
  width: min(820px, calc(100% - 40px));
  margin: 0 clamp(20px, 7vw, 96px) clamp(46px, 8vw, 92px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d28a;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  line-height: .98;
}

h1 {
  max-width: 780px;
  font-size: clamp(56px, 9vw, 112px);
}

h2 {
  font-size: clamp(42px, 6vw, 78px);
}

h3 {
  font-size: 30px;
}

.hero-content > p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 23px);
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--forest);
  color: white;
  border: 1px solid var(--forest);
}

.button.secondary {
  background: rgb(255 255 255 / 14%);
  color: white;
  border: 1px solid rgb(255 255 255 / 62%);
}

.button.outline {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}

.story {
  background: var(--cream);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) 1fr;
  gap: clamp(32px, 8vw, 110px);
  align-items: start;
}

.story-copy {
  display: grid;
  gap: 28px;
  max-width: 650px;
  font-size: 19px;
}

.story-lines {
  margin: 0;
  color: var(--forest);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.08;
}

.section-heading {
  width: min(880px, 100%);
  margin-bottom: 44px;
}

.journey {
  background: var(--paper);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  width: min(980px, 100%);
  margin-left: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 15px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 28px 28px 28px 64px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 14px 45px rgb(35 48 39 / 7%);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 34px;
  width: 20px;
  height: 20px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-item time {
  color: var(--terracotta);
  font-weight: 800;
}

.timeline-item h3 {
  margin: 8px 0 10px;
  color: var(--forest);
}

.timeline-item p,
.impact-card p,
.location-card p,
.partner p,
.volunteer p,
.serve-panel p,
.legacy p {
  color: var(--muted);
}

.impact {
  color: white;
  background: var(--forest-deep);
}

.impact .eyebrow,
.impact-card span {
  color: #f4d28a;
}

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

.impact-card {
  min-height: 235px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 24px;
  background: rgb(255 255 255 / 7%);
}

.impact-card strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(58px, 7vw, 90px);
  font-weight: 400;
  line-height: .9;
}

.impact-card strong::after {
  content: "+";
}

.impact-card span {
  display: block;
  margin: 16px 0 10px;
  font-weight: 800;
}

.impact-card p {
  color: rgb(255 255 255 / 76%);
}

.locations {
  background: var(--cream);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.location-card {
  overflow: hidden;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.location-card img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.location-card > div {
  padding: 28px;
}

.location-card h3 {
  color: var(--forest);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.card-actions a {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.moments {
  background: var(--paper);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--forest);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.section-action {
  margin-top: 28px;
}

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

.gallery-item {
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--cream);
  cursor: pointer;
  padding: 0;
  aspect-ratio: 4 / 3;
}

.gallery-item.hidden {
  display: none;
}

.gallery-video {
  overflow: hidden;
  grid-column: span 2;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: var(--forest-deep);
  box-shadow: 0 16px 45px rgb(35 48 39 / 12%);
}

.gallery-video.hidden {
  display: none;
}

.gallery-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery-item.wide {
  grid-column: auto;
  grid-row: auto;
}

.gallery-item.tall {
  grid-row: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.voices {
  background: linear-gradient(135deg, #fffdf8, #f8eadb);
}

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

blockquote {
  margin: 0;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 45px rgb(35 48 39 / 8%);
}

blockquote p {
  margin: 0 0 14px;
  color: var(--forest);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}

blockquote cite {
  color: var(--terracotta);
  font-style: normal;
  font-weight: 800;
}

.leadership {
  background: var(--cream);
}

.leader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 980px;
}

.leader-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.leader-card img {
  width: 220px;
  height: 260px;
  border-radius: 20px;
  object-fit: cover;
}

.leader-card h3,
.legacy h3 {
  color: var(--forest);
}

.leader-card p {
  margin: 8px 0 14px;
  color: var(--terracotta);
  font-weight: 800;
}

.leader-card .leader-bio {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.leader-card ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  list-style: disc;
  columns: 2;
  column-gap: 32px;
}

.leader-card li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.legacy {
  margin-top: 26px;
  padding: 30px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 16px 45px rgb(35 48 39 / 8%);
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.legacy-grid span {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.legacy-grid strong {
  display: block;
  color: var(--forest);
  font-weight: 900;
}

.partner {
  background: var(--paper);
}

.partner-panel {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(30px, 6vw, 68px);
  border-radius: 36px;
  background: linear-gradient(135deg, #fff7ef, #ffffff);
  box-shadow: var(--shadow);
}

.mission-link {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.moth-logo {
  width: 240px;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--forest);
  box-shadow: 0 22px 70px rgb(35 48 39 / 16%);
}

.partnership-arrow {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.partnership-arrow::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 12px auto 0;
  background: var(--gold);
}

.echo-logo {
  width: 240px;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}

.partner .button-row span {
  color: var(--muted);
  font-weight: 700;
}

.signature-note {
  padding: 16px 18px;
  border-left: 4px solid var(--coral);
  border-radius: 0 16px 16px 0;
  background: rgb(238 117 109 / 10%);
}

.partner .button.secondary,
.volunteer .button.secondary {
  color: var(--forest);
  border-color: var(--forest);
  background: transparent;
}

.volunteer {
  padding: clamp(72px, 10vw, 140px) 20px;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgb(23 69 51 / 80%), rgb(23 69 51 / 80%)),
    url("https://static.wixstatic.com/media/b1ff91_075ce14873b844dcace12b819c1bba6c~mv2.jpg/v1/fill/w_600,h_400,al_c,q_80,usm_0.66_1.00_0.01,enc_avif,quality_auto/b1ff91_075ce14873b844dcace12b819c1bba6c~mv2.jpg") center/cover;
}

.volunteer-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.volunteer p {
  color: rgb(255 255 255 / 84%);
  font-size: 19px;
}

.volunteer .button-row {
  justify-content: center;
}

.serve-more {
  background: var(--cream);
}

.serve-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 60px);
  border-radius: 30px;
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.serve-panel p {
  max-width: 760px;
  margin: 20px auto 0;
}

.serve-panel .button {
  margin-top: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 36px;
  padding: 54px clamp(20px, 6vw, 88px) 34px;
  background: var(--forest-deep);
  color: white;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer nav,
.site-footer div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer a {
  color: rgb(255 255 255 / 82%);
  text-decoration: none;
}

.site-footer .footer-brand {
  color: white;
  font-size: 20px;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 72%);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.page-hero {
  padding: clamp(86px, 11vw, 150px) clamp(20px, 6vw, 88px) clamp(56px, 8vw, 96px);
  background: var(--cream);
}

.page-hero-inner {
  width: min(940px, 100%);
}

.page-hero h1 {
  color: var(--forest);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

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

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 45px rgb(35 48 39 / 8%);
}

.content-card h2,
.content-card h3 {
  color: var(--forest);
  font-size: 31px;
}

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

.content-card ul {
  margin: 16px 0 0;
  padding-left: 19px;
}

.wide-card {
  grid-column: span 2;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-weight: 800;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 13px 14px;
  color: var(--ink);
}

.form-grid textarea,
.form-grid .full {
  grid-column: 1 / -1;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}

.news-item time {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 28px 84px;
  background: rgb(13 45 34 / 88%);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  width: min(1500px, calc(100vw - 168px));
  height: 92vh;
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 24px 90px rgb(0 0 0 / 36%);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  color: white;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.simple-page {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: var(--cream);
  padding: 64px 24px;
}

.empty-state,
.cart-empty {
  text-align: center;
  color: var(--forest);
  font-size: 26px;
}

.empty-state p {
  margin: 0 0 6px;
}

.cart-panel {
  width: min(760px, 100%);
}

.cart-panel h1 {
  margin: 0 0 40px;
  font-size: 40px;
  font-weight: 400;
}

.cart-empty {
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.cart-empty a {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.policy-page {
  padding: 70px 24px;
  background: var(--cream);
}

.policy-page article {
  max-width: 870px;
  margin: 0 auto;
  color: var(--ink);
}

.policy-page h1 {
  margin: 36px 0 20px;
  font-size: 48px;
  color: var(--forest);
}

.policy-page h2 {
  margin: 32px 0 10px;
  font-size: 28px;
  color: var(--forest);
}

.policy-page p,
.policy-page li {
  font-size: 17px;
}

.template-note {
  padding: 22px;
  border-left: 5px solid var(--terracotta);
  background: white;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 940px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .impact-grid,
  .masonry-gallery,
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .voice-grid,
  .legacy-grid {
    grid-template-columns: 1fr;
  }

  .gallery-video {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .story-grid,
  .location-grid,
  .leader-grid,
  .partner-panel,
  .form-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .form-grid textarea,
  .form-grid .full {
    grid-column: auto;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media {
    background:
      linear-gradient(rgb(13 45 34 / 72%), rgb(13 45 34 / 56%)),
      url("../assets/home-hero-performance.png") center/cover;
  }

  .leader-card {
    grid-template-columns: 132px 1fr;
  }

  .leader-card img {
    width: 132px;
    height: 170px;
  }

  .moth-logo,
  .echo-logo {
    width: min(260px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand span:last-child {
    max-width: 180px;
    line-height: 1.15;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 39px;
  }

  .section-pad {
    padding: 64px 18px;
  }

  .impact-grid,
  .masonry-gallery,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide,
  .gallery-item.tall,
  .gallery-video {
    grid-column: auto;
    grid-row: auto;
  }

  .leader-card {
    grid-template-columns: 1fr;
  }

  .leader-card img {
    width: 100%;
    height: 300px;
  }

  .legacy-grid span {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
