:root {
  --green-900: #123916;
  --green-800: #1f641e;
  --green-600: #49a92f;
  --green-500: #6ec23d;
  --gold-500: #f2d64b;
  --gold-300: #fff09a;
  --ink: #172019;
  --muted: #607067;
  --paper: #f7f7ef;
  --white: #ffffff;
  --blue: #1c6f98;
  --rose: #b94a54;
  --line: rgba(23, 32, 25, 0.14);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 22px 70px rgba(18, 57, 22, 0.17);
  --soft-shadow: 0 12px 36px rgba(18, 57, 22, 0.11);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 214, 75, 0.38), transparent 28rem),
    radial-gradient(circle at 86% 6%, rgba(73, 169, 47, 0.22), transparent 30rem),
    linear-gradient(180deg, #fbfbf4 0%, var(--paper) 48%, #eef3e8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

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

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(3.05rem, 7.4vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.22rem, 4.35vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 136px;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(247, 247, 239, 0.72);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 8px 30px rgba(18, 57, 22, 0.08);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 7px 22px rgba(73, 169, 47, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.06rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
}

.main-nav a {
  padding: 9px 4px;
  color: rgba(23, 32, 25, 0.74);
  font-size: 0.92rem;
  font-weight: 740;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--green-800);
}

.donate-pill,
.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mobile-donate {
  display: none;
}

.donate-pill,
.button.primary {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(31, 100, 30, 0.24);
}

.button.secondary {
  border-color: rgba(23, 32, 25, 0.18);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.button.quiet,
.copy-button {
  border-color: rgba(31, 100, 30, 0.22);
  background: rgba(255, 255, 255, 0.76);
  color: var(--green-800);
}

.donate-pill:hover,
.button:hover,
.copy-button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - 136px);
  padding: clamp(22px, 4vw, 56px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(247, 247, 239, 0.98));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.72fr 0.72fr;
  gap: 10px;
  padding: 10px;
  opacity: 0.92;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.hero-media img:first-child {
  object-position: center top;
}

.hero-media img:nth-child(2),
.hero-media img:nth-child(3) {
  opacity: 0.82;
}

.hero-glass {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  padding: clamp(20px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46));
  backdrop-filter: blur(26px) saturate(135%);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
  margin-bottom: 12px;
  color: var(--green-800);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: #405247;
}

.hero-actions,
.case-actions,
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.donation-mini {
  display: grid;
  gap: 4px;
  width: min(100%, 560px);
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(31, 100, 30, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.donation-mini span,
.donation-mini small {
  color: var(--muted);
}

.donation-mini strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.donation-mini .copy-button {
  justify-self: start;
  margin-top: 8px;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.58fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 32px;
}

.section-header.compact {
  display: block;
  max-width: 760px;
}

.story-layout,
.founder-grid,
.event-card,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: start;
}

.story-text {
  columns: 2 320px;
  column-gap: 32px;
}

.story-text p {
  break-inside: avoid;
}

.promise-card,
.finished-cases,
.event-card,
.contact-form,
.involvement-grid article,
.values-grid article,
.service-grid article,
.news-grid article {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(138%);
  box-shadow: var(--soft-shadow);
}

.promise-card {
  overflow: hidden;
}

.promise-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.promise-card div {
  padding: 20px;
}

.promise-card p:first-child {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.35;
}

.mission-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.mission-strip article {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.mission-strip article:last-child {
  border-right: 0;
}

.mission-strip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-500);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.mission-strip span {
  color: rgba(255, 255, 255, 0.78);
}

.founder-copy {
  padding-right: clamp(0px, 4vw, 56px);
}

.values-grid,
.service-grid,
.involvement-grid,
.news-grid {
  display: grid;
  gap: 16px;
}

.values-grid article,
.service-grid article,
.involvement-grid article {
  padding: 22px;
}

.values-grid span,
.service-grid span,
.news-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.service-grid article:nth-child(2) {
  background: rgba(255, 255, 255, 0.78);
}

.service-grid article:nth-child(3) {
  background: rgba(242, 214, 75, 0.18);
}

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

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(31, 100, 30, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--soft-shadow);
}

.case-image {
  position: relative;
}

.case-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.case-image span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background: rgba(18, 57, 22, 0.76);
  color: var(--white);
  font-weight: 850;
  backdrop-filter: blur(18px);
}

.case-body {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 30px);
}

.case-body .case-actions {
  margin-top: auto;
  padding-top: 8px;
}

.finished-cases {
  margin-top: 18px;
  padding: 22px;
}

.event-section {
  width: min(1240px, calc(100% - 32px));
}

.event-card {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  padding: clamp(14px, 2vw, 22px);
  background:
    linear-gradient(135deg, rgba(18, 57, 22, 0.08), rgba(242, 214, 75, 0.2)),
    var(--glass-strong);
}

.event-card > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.event-content {
  align-self: center;
  padding: clamp(8px, 3vw, 28px);
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.event-facts div {
  padding: 14px;
  border: 1px solid rgba(31, 100, 30, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.event-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 6px 0 0;
  font-weight: 850;
}

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

.involvement-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--green-800);
}

.involvement-grid small {
  color: var(--muted);
}

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

.news-grid article {
  overflow: hidden;
}

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

.news-grid article > div {
  padding: 20px;
}

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

.partner-row span {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 16px;
  border: 1px dashed rgba(31, 100, 30, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

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

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}

.photo-grid img:nth-child(1),
.photo-grid img:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
}

.contact-section {
  align-items: stretch;
}

address {
  display: grid;
  gap: 10px;
  font-style: normal;
}

address span,
address a {
  color: var(--muted);
}

address a {
  font-weight: 850;
  text-decoration-color: rgba(73, 169, 47, 0.36);
  text-underline-offset: 4px;
}

.social-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(31, 100, 30, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-800);
  font-weight: 850;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 780;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 25, 0.18);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(73, 169, 47, 0.14);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--green-900);
  color: var(--white);
}

.site-footer img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer .footer-links {
  margin-top: 12px;
}

.site-footer .footer-links a {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.site-footer .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.case-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: 88vh;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.case-dialog::backdrop {
  background: rgba(18, 57, 22, 0.54);
  backdrop-filter: blur(4px);
}

.case-dialog img {
  width: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 18px 12px 0;
  float: left;
  border-radius: var(--radius);
  object-fit: cover;
}

.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .main-nav {
    position: fixed;
    inset: 136px 12px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 15px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .donate-pill {
    justify-self: end;
  }

  .section-header,
  .story-layout,
  .founder-grid,
  .event-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 126px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 118px;
    gap: 10px;
    padding: 9px 12px;
  }

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

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

  .brand strong {
    font-size: 0.96rem;
  }

  .brand small {
    display: none;
  }

  .donate-pill {
    display: none;
  }

  .mobile-donate {
    position: fixed;
    z-index: 50;
    right: 14px;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(31, 100, 30, 0.24);
  }

  .main-nav {
    top: 118px;
  }

  .hero {
    min-height: auto;
    padding: 12px;
  }

  .hero-media {
    position: relative;
    height: 52vh;
    min-height: 380px;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero-media img:nth-child(2),
  .hero-media img:nth-child(3) {
    display: none;
  }

  .hero-glass {
    margin-top: -82px;
    padding: 22px;
  }

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

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

  .mission-strip article {
    min-height: 116px;
  }

  .service-grid,
  .involvement-grid,
  .news-grid,
  .partner-row {
    grid-template-columns: 1fr;
  }

  .event-facts {
    grid-template-columns: 1fr;
  }

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

  .photo-grid img:nth-child(1),
  .photo-grid img:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .case-dialog img {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 1.96rem;
    max-width: 100%;
  }

  h2 {
    font-size: 2.08rem;
  }

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

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .donate-pill {
    padding-inline: 10px;
  }

  .mission-strip {
    grid-template-columns: 1fr;
  }

  .mission-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}

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