/* Spark of Hope — shared styles */
:root {
  --forest-900: #0b2a20;
  --forest-800: #11392b;
  --forest-700: #175a3d;
  --green-600: #1f8a4c;
  --green-500: #2fb36b;
  --green-300: #8fe0b0;
  --blue-700: #1c5f96;
  --blue-500: #2f86c9;
  --blue-300: #8cc8ef;
  --sun: #f4c46a;

  --bg: #eef7f2;
  --text: #0f2e24;
  --text-muted: #3f5a50;
  --on-dark: #f3fbf6;
  --on-dark-muted: #cfe6da;

  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-dark: rgba(11, 42, 32, 0.45);
  --shadow: 0 10px 40px -12px rgba(15, 60, 45, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(15, 60, 45, 0.35);

  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft green/blue light behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40vw 40vw at 8% 20%, rgba(47, 179, 107, 0.22), transparent 70%),
    radial-gradient(45vw 45vw at 95% 35%, rgba(47, 134, 201, 0.2), transparent 70%),
    radial-gradient(50vw 40vw at 50% 105%, rgba(143, 224, 176, 0.35), transparent 70%),
    var(--bg);
}

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

a { color: var(--green-600); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--forest-800);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
}

/* ───────────── Navigation island ───────────── */
.nav-island {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 300ms var(--ease), box-shadow 300ms var(--ease);
}
.nav-island.is-scrolled { background: rgba(255, 255, 255, 0.8); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px 2px 2px;
  text-decoration: none;
  color: var(--forest-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
}
.nav-brand img {
  width: 40px;
  height: 40px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.nav-links a svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-links a:hover { background: rgba(47, 179, 107, 0.12); color: var(--forest-900); }
.nav-links a[aria-current="page"] {
  background: linear-gradient(135deg, var(--green-600), var(--blue-700));
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(31, 138, 76, 0.6);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 179, 107, 0.14);
  color: var(--forest-900);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav-island {
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    max-width: none;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 28px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 6px 4px 8px;
  }
  .nav-island.is-open .nav-links { display: flex; }
  .nav-links a { padding: 0 18px; font-size: 1rem; }
}

/* ───────────── Hero (home) ───────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.06);
  animation: slow-zoom 18s var(--ease) forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(11, 42, 32, 0.05), rgba(11, 42, 32, 0.55) 75%),
    linear-gradient(180deg, rgba(11, 42, 32, 0.45) 0%, rgba(11, 42, 32, 0.1) 35%, rgba(11, 42, 32, 0.25) 65%, rgba(11, 42, 32, 0.85) 100%);
}
@keyframes slow-zoom { to { transform: scale(1); } }

.hero-inner { padding: 140px 20px 120px; max-width: 900px; text-shadow: 0 2px 18px rgba(6, 24, 18, 0.55); }

.hero-kicker {
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 600;
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
}
.hero h1 .initiative {
  display: block;
  margin-top: 0.25em;
  font-size: 0.42em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(6, 24, 18, 0.7));
  background: linear-gradient(90deg, #c4f5d6, #c2e4fb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 620px;
  margin: 28px auto 36px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--on-dark-muted);
}

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  box-shadow: 0 10px 30px -10px rgba(47, 179, 107, 0.8);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(47, 134, 201, 0.9); }
.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn-outline {
  color: var(--forest-900);
  background: var(--glass);
  border: 1px solid rgba(31, 138, 76, 0.3);
}
.btn-outline:hover { background: var(--glass-strong); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 20px; height: 20px; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ───────────── Page header (inner pages) ───────────── */
.page-hero {
  padding: 150px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 18px;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, var(--green-600), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* ───────────── Sections & glass cards ───────────── */
section { padding: 70px 0; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.prose { padding: clamp(28px, 5vw, 56px); }
.prose p { font-size: 1.08rem; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  color: var(--forest-900);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  padding: 32px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.card p { color: var(--text-muted); margin: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  box-shadow: 0 8px 20px -8px rgba(47, 134, 201, 0.7);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.blue { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.icon-badge.green { background: linear-gradient(135deg, var(--green-500), var(--forest-700)); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--green-600);
}
.card-link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
a.card:hover .card-link svg { transform: translateX(4px); }

/* Split: text + image */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}

.photo-frame {
  position: relative;
  padding: 10px;
  border-radius: calc(var(--radius) + 6px);
}
.photo-frame img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Dark band */
.band {
  position: relative;
  margin: 40px 0;
  padding: 90px 0;
  color: var(--on-dark);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(47, 179, 107, 0.35), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(47, 134, 201, 0.4), transparent 60%),
    var(--forest-900);
  overflow: hidden;
}
.band .eyebrow { color: var(--green-300); }
.band p { color: var(--on-dark-muted); }
.band .glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.band .card p { color: var(--on-dark-muted); }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote em { color: var(--green-300); }

/* Timeline */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--green-500), var(--blue-500));
}
.timeline li { position: relative; margin-bottom: 20px; padding: 24px 28px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--green-500);
  box-shadow: 0 0 0 5px rgba(47, 179, 107, 0.18);
}
.timeline li:last-child::before { border-color: var(--blue-500); box-shadow: 0 0 0 5px rgba(47, 134, 201, 0.2); }
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--text-muted); }
.timeline .step-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
}

/* Process stages (prototypes page) */
.stage { padding: 50px 0; }
.stage-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 600;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  margin-bottom: 8px;
}
.stage ul { padding-left: 1.2em; color: var(--text-muted); }
.stage li { margin-bottom: 6px; }

.zoomable {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
}
.zoomable img { transition: transform 400ms var(--ease); }
.zoomable:hover img { transform: scale(1.015); }
.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: rgba(11, 42, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.zoom-hint svg { width: 14px; height: 14px; }

figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-700);
  background: rgba(47, 179, 107, 0.14);
  border: 1px solid rgba(47, 179, 107, 0.3);
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(47, 179, 107, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 179, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 107, 0); } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 70px 20px 20px;
  background: rgba(6, 24, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease), visibility 250ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 82vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 300ms var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-caption { margin-top: 14px; color: var(--on-dark-muted); text-align: center; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.lightbox-close svg { width: 22px; height: 22px; }

/* CTA / next page */
.next-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px);
}
.next-page h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.next-page p { margin: 6px 0 0; color: var(--text-muted); }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 50px 0 36px;
  border-top: 1px solid rgba(31, 138, 76, 0.15);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 16px; max-width: 420px; }
.footer-brand img { width: 84px; height: auto; border-radius: 16px; }
.footer-brand p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--forest-900); }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--green-600); }
.footer-bottom {
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom svg { width: 16px; height: 16px; color: var(--green-600); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none; }
}

@media (min-width: 881px) {
  .split.top { align-items: start; }
  .sticky { position: sticky; top: 120px; }
}
