:root {
  --river: #0f5c55;
  --river-deep: #0a3f3b;
  --mint: #9fe3c9;
  --sun: #f2c14e;
  --silt: #f7f3ea;
  --paper: #ffffff;
  --ink: #1b2b29;
  --muted: #5b6b68;
  --line: #e3ddd0;
  --radius: 16px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--silt);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--river); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--paper); padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  background: var(--sun);
  color: var(--river-deep);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(0 0 0 / 0.15); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.6); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-small { padding: 0.5em 1.1em; font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(10 63 59 / 0.92);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: rgb(255 255 255 / 0.85); text-decoration: none; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 22px; height: 2px; background: #fff; position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgb(10 63 59 / 0.94) 0%, rgb(10 63 59 / 0.78) 45%, rgb(10 63 59 / 0.35) 100%),
    url("images/hero.jpg") center 40% / cover no-repeat,
    var(--river-deep);
  color: #fff;
  padding: 110px 0 190px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 56px;
  align-items: center;
}
.hero-text { max-width: 760px; }

.hero-contact {
  background: rgb(10 63 59 / 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-contact .eyebrow { margin-bottom: 0.5em; }
.hero-contact-lead { color: rgb(255 255 255 / 0.85); font-size: 0.98rem; margin-bottom: 1.1em; }
.hero-contact-email {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  margin-bottom: 1.2em;
}
.hero-contact-email span { white-space: nowrap; }
.hero-contact-email:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hero-contact-email svg { width: 22px; height: 22px; flex: none; fill: var(--sun); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--mint); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 680px; color: rgb(255 255 255 / 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero .eyebrow { color: var(--sun); }

.hero-waves { position: absolute; bottom: -1px; left: 0; width: 100%; height: 160px; }
.wave-1 { fill: rgb(159 227 201 / 0.25); }
.wave-2 { fill: var(--silt); }

/* Sections */
.section { padding: 96px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; font-weight: 600; color: var(--river); margin-bottom: 0.75em;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--river-deep);
}
.section-intro { max-width: 680px; color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

.mission { padding-top: 40px; text-align: center; }
.statement { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.45; }
.statement strong { color: var(--river); }

/* Delta gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery-feature { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.65));
  color: #fff; font-size: 0.9rem; font-weight: 500;
}

/* Challenge */
.challenge { background: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.stat { background: var(--silt); border-radius: var(--radius); padding: 28px; }
.stat-value { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--river); margin: 0; }
.stat-label { font-weight: 500; margin: 0.25em 0 1em; }
.stat-source { font-size: 0.8rem; color: var(--muted); margin: 0; }

.threats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.threat { border-top: 3px solid var(--sun); padding-top: 20px; }
.threat p { color: var(--muted); }

/* Rising water */
.rising-water {
  position: relative; overflow: hidden;
  background: var(--river-deep); color: #fff;
  padding: 120px 0 72px;
}
.rising-bg {
  position: absolute; inset: 0; width: 100%; height: 100% !important;
  object-fit: cover; opacity: 0.6;
}
.rising-water::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgb(7 45 42 / 0.4), rgb(7 45 42 / 0.9));
}
.rising-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.rising-water .eyebrow { color: var(--sun); }
.rising-water h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.rising-text p { color: rgb(255 255 255 / 0.88); font-size: 1.1rem; }
.rising-text .rising-call { font-family: var(--font-display); font-size: 1.35rem; color: var(--mint); margin: 0; }
.rising-photo { margin: 0; }
.rising-photo img { border-radius: var(--radius); box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); }
.rising-photo figcaption { font-size: 0.85rem; color: rgb(255 255 255 / 0.7); margin-top: 10px; }
.rising-credit {
  position: relative; z-index: 2; margin: 48px 0 0; text-align: center;
  font-size: 0.8rem; color: rgb(255 255 255 / 0.55);
}

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar {
  background: var(--river-deep); color: #fff;
  border-radius: var(--radius); padding: 40px;
  overflow: hidden;
}
.pillar-photo {
  width: calc(100% + 80px); max-width: none; height: 240px; object-fit: cover;
  margin: -40px -40px 28px;
}
.pillar:nth-child(2) { background: var(--river); }
.pillar h3 { font-family: var(--font-display); font-size: 1.6rem; }
.pillar p { color: rgb(255 255 255 / 0.85); margin: 0; }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  background: rgb(255 255 255 / 0.12); display: grid; place-items: center;
}
.pillar-icon svg { width: 28px; height: 28px; fill: var(--sun); }

/* Initiatives */
.initiatives { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--river); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgb(159 227 201 / 0.4); color: var(--river-deep);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* Principles */
.principle-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.principle-list li { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.principle-list h3 { color: var(--river); font-size: 1.05rem; }
.principle-list p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Roadmap */
.roadmap { background: var(--paper); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 36px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--line);
}
.timeline li.is-current::before { border-color: var(--sun); background: var(--sun); box-shadow: 0 0 0 6px rgb(242 193 78 / 0.25); }
.phase { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.is-current .phase { color: var(--river); }
.timeline h3 { margin-top: 0.25em; }
.timeline p { color: var(--muted); margin: 0; }

/* Founder */
.founder-inner { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; }
.founder-photo {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(145deg, var(--river), var(--mint));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-size: 3.5rem;
}
.founder-quote { margin: 0 0 1em; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; }
.founder-name { font-weight: 600; color: var(--river); }

/* Get involved */
.involve { background: var(--river-deep); color: #fff; }
.involve .eyebrow { color: var(--sun); }
.involve .section-title { color: #fff; }
.involve .section-intro { color: rgb(255 255 255 / 0.8); }
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.involve-card {
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.involve-card p { color: rgb(255 255 255 / 0.78); flex: 1; }
.involve-card a { color: var(--sun); font-weight: 600; text-decoration: none; }
.involve-card a:hover { text-decoration: underline; }
.contact-box { margin-top: 56px; text-align: center; }
.contact-box p { color: rgb(255 255 255 / 0.7); margin-bottom: 0.25em; }
.contact-email {
  font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: #fff; text-decoration-color: var(--sun); text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer { background: #072d2a; color: rgb(255 255 255 / 0.7); padding: 40px 0; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-inner p { margin: 0; }
.site-footer a { color: rgb(255 255 255 / 0.85); }
.credits { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.8rem; }
.credits summary { cursor: pointer; color: rgb(255 255 255 / 0.8); }
.credits ul { margin: 12px 0; padding-left: 18px; line-height: 1.8; }
.credits p { margin: 0; color: rgb(255 255 255 / 0.55); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1000px) {
  .principle-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-contact { max-width: 420px; }
  .hero-contact-email span { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--river-deep); padding: 12px 16px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; font-size: 1.05rem; }
  .site-nav .btn { margin-top: 8px; }

  .stats, .threats, .pillars, .cards, .involve-grid, .rising-inner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .rising-water { padding: 88px 0 56px; }
  .rising-inner { gap: 32px; }
  .founder-inner { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { width: 140px; height: 140px; font-size: 2.4rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 150px; }
  .principle-list { grid-template-columns: 1fr; }
  .pillar { padding: 28px; }
  .pillar-photo { width: calc(100% + 56px); margin: -28px -28px 24px; height: 190px; }
  .hero { background-position: center, 65% 40%, center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .gallery-item img { transition: none; }
}
