/* ===== Second Spine — Redesign 2025 ===== */
:root {
  --green-deep: #3e5230;
  --green-mid:  #5a6e44;
  --green-soft: #7c8d5f;
  --rust:       #6f3a2c;
  --rust-soft:  #8a5240;
  --rose:       #c8a293;
  --rose-light: #d9bcaf;
  --mauve:      #bb9486;
  --cream:      #efe7d9;
  --cream-2:    #f6f0e4;
  --ink:        #2e2a24;
  --paper-line: rgba(62, 82, 48, 0.15);

  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 12px 36px rgba(46, 42, 36, 0.16);
  --shadow-sm: 0 4px 14px rgba(46, 42, 36, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn-primary {
  background: var(--green-deep);
  color: var(--cream-2);
  border-color: var(--green-deep);
}
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); }
.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-ghost:hover { background: var(--green-deep); color: var(--cream-2); }
.btn-cream {
  background: var(--cream-2);
  color: var(--green-deep);
  border-color: var(--cream-2);
}
.btn-cream:hover { background: #fff; border-color: #fff; }
.btn-outline-cream {
  background: transparent;
  color: var(--cream-2);
  border-color: rgba(239,231,217,0.4);
}
.btn-outline-cream:hover {
  border-color: var(--cream-2);
  background: rgba(239,231,217,0.08);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.brand-logo {
  flex-shrink: 0;
  pointer-events: none;
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo { transform: translateY(-2px); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 0.84;
}
.brand-mark {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #fff;
}

/* Nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.main-nav ul a {
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.15s;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rose-light);
  transition: width 0.2s ease;
}
.main-nav ul a:hover { color: #fff; }
.main-nav ul a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.nav-social a { transition: color 0.15s; }
.nav-social a:hover { color: var(--rose-light); }

.nav-donate-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--rust);
  color: #fff;
  border-radius: 4px;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.18s;
  white-space: nowrap;
}
.nav-donate-btn:hover { background: var(--rust-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: 0.25s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: transparent;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-overlay { display: none; }

#cb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Section shared ===== */
section { padding: 86px 0; }

/* Skip rendering cost for off-screen sections */
.mission, .how-it-works, .impact, .story, .involved, .final-cta, footer {
  content-visibility: auto;
}

.section-header { margin-bottom: 48px; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust-soft);
  margin-bottom: 10px;
  display: block;
}
.section-eyebrow.light { color: var(--rose-light); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-deep);
  max-width: 720px;
  line-height: 1.12;
}
.section-title.light { color: #fff; }

.section-intro {
  max-width: 600px;
  font-size: 1rem;
  color: #666;
  line-height: 1.72;
  margin-top: 14px;
}

/* ===== Mission ===== */
.mission { background: var(--cream-2); }

.mission-lead {
  max-width: 700px;
  font-size: 1.05rem;
  color: #555047;
  margin-bottom: 56px;
  line-height: 1.78;
  padding-left: 22px;
  border-left: 3px solid var(--rust-soft);
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--paper-line);
}

.pillar {
  display: flex;
  gap: 20px;
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--paper-line);
  align-items: flex-start;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 32px; }

.pillar-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--rose-light);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -4px;
}

.pillar-body h3 {
  font-size: 1.3rem;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.pillar-body p {
  font-size: 0.95rem;
  color: #555047;
  line-height: 1.72;
}

/* ===== How It Works ===== */
.how-it-works { background: var(--green-deep); }

.steps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  display: flex;
  gap: 22px;
  padding: 40px 36px;
  background: rgba(0,0,0,0.12);
  align-items: flex-start;
  transition: background 0.18s;
}
.step:hover { background: rgba(0,0,0,0.08); }

.step-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -4px;
}

.step-title {
  font-size: 1.4rem;
  color: var(--rose-light);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.72;
}

/* ===== Impact stats ===== */
.impact {
  background: var(--green-deep);
  color: #fff;
}
.stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  color: var(--rose-light);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}

/* ===== Story ===== */
.story { background: #fff; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.story-text .section-eyebrow { margin-bottom: 14px; }

.story-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green-deep);
  line-height: 1.12;
  margin-bottom: 24px;
}

.story-lead {
  font-size: 1.06rem;
  color: var(--ink);
  line-height: 1.72;
  margin-bottom: 18px;
}
.story-body {
  font-size: 0.97rem;
  color: #555047;
  line-height: 1.76;
  margin-bottom: 24px;
}
.story-partner {
  font-size: 0.93rem;
  color: var(--green-deep);
  line-height: 1.65;
  padding: 14px 18px;
  border-left: 3px solid var(--green-soft);
  background: var(--cream-2);
  border-radius: 0 4px 4px 0;
}

.story-quote {
  background: var(--cream-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 4px solid var(--rust-soft);
  padding: 28px 28px 22px;
  margin: 0 0 24px;
}
.story-quote p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--green-deep);
  line-height: 1.52;
  margin-bottom: 14px;
}
.story-quote cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-soft);
}

.story-img-placeholder {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px dashed rgba(62,82,48,0.2);
}
.placeholder-shelf {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 18px;
}
.ph-book {
  border-radius: 2px 4px 4px 2px;
  opacity: 0.75;
}
.placeholder-label {
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Get Involved ===== */
.involved { background: var(--cream-2); }

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

.pathway {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--paper-line);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.pathway:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(90,110,68,0.3);
}
.pathway-inner {
  padding: 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pathway h3 {
  font-size: 1.5rem;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.pathway p {
  font-size: 0.95rem;
  color: #555047;
  line-height: 1.72;
  margin-bottom: 24px;
  flex: 1;
}
.pathway-featured {
  background: var(--green-deep);
  border-color: var(--green-deep);
}
.pathway-featured:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  box-shadow: var(--shadow);
}
.pathway-featured h3 { color: #fff; }
.pathway-featured p { color: rgba(239,231,217,0.78); }
.pathway-featured .btn-primary {
  background: var(--rust);
  border-color: var(--rust);
  align-self: flex-start;
}
.pathway-featured .btn-primary:hover {
  background: var(--rust-soft);
  border-color: var(--rust-soft);
}

/* ===== Find a Box map panel ===== */
.map-panel {
  background: var(--cream-2);
  border-top: 2px solid var(--green-deep);
  padding: 48px 0;
  animation: panel-slide-in 0.35s ease;
  position: relative;
  z-index: 1;
}
@keyframes panel-slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.map-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.map-panel-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.map-panel-info p { color: var(--ink); margin-bottom: 12px; line-height: 1.6; }
.map-panel-info address {
  font-style: normal;
  color: var(--green-deep);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.7;
}
.map-link {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  cursor: pointer;
}
.map-link iframe { display: block; pointer-events: none; }
.map-overlay-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(62,82,48,0.88);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.2s;
}
.map-link:hover .map-overlay-label { opacity: 1; }

/* ===== Volunteer modal ===== */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,24,16,0.65);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal {
  background: var(--cream);
  border-radius: 14px;
  padding: 40px 44px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modal-rise 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.modal > p { color: #666; margin-bottom: 24px; font-size: 0.9rem; }
.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.volunteer-form { display: flex; flex-direction: column; gap: 14px; }
.volunteer-form label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: -8px;
}
.volunteer-form input,
.volunteer-form textarea {
  border: 1.5px solid #ccc;
  border-radius: 7px;
  padding: 10px 14px;
  font-family: "Jost", sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.volunteer-form input:focus,
.volunteer-form textarea:focus {
  outline: none;
  border-color: var(--green-deep);
}
.volunteer-form textarea { resize: vertical; }
.volunteer-form .btn { margin-top: 6px; }

/* ===== Final CTA ===== */
.final-cta { background: var(--ink); }
.final-cta-inner {
  text-align: center;
  padding: 96px 28px;
}
.final-cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--cream-2);
  margin-bottom: 18px;
}
.final-cta p {
  font-size: 1.05rem;
  color: rgba(239,231,217,0.62);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.72;
}
.final-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr;
  gap: 40px;
  padding: 64px 0 52px;
}
.footer-brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: #fff;
  display: block;
  line-height: 0.88;
}
.footer-tag {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: rgba(239,231,217,0.6);
  max-width: 240px;
  line-height: 1.6;
}
.footer-sub {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(239,231,217,0.38);
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  color: rgba(239,231,217,0.6);
}
.footer-social a { transition: color 0.15s; }
.footer-social a:hover { color: var(--rose-light); }
.footer-col h4 {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239,231,217,0.45);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col ul li a {
  font-size: 0.92rem;
  color: rgba(239,231,217,0.75);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--rose-light); }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(239,231,217,0.75);
  font-size: 0.92rem;
}
.footer-contact li svg { opacity: 0.5; flex-shrink: 0; }
.footer-contact li a { transition: color 0.15s; }
.footer-contact li a:hover { color: var(--rose-light); }
.footer-bottom {
  border-top: 1px solid rgba(239,231,217,0.1);
  text-align: center;
  padding: 22px 28px;
  font-size: 0.82rem;
  color: rgba(239,231,217,0.4);
}

/* ===== Intro lock — everything hidden until Get Started is clicked ===== */
body.intro-mode { overflow: hidden; }

/* Remove header from layout entirely so it doesn't eat viewport space */
body.intro-mode .site-header { display: none; }

/* Pin hero to fill the exact viewport */
body.intro-mode #hero-section {
  position: fixed;
  inset: 0;
  z-index: 50;
  min-height: 100vh;
}

/* Hide all other sections (opacity only — they're below the fixed hero anyway) */
body.intro-mode .mission,
body.intro-mode .how-it-works,
body.intro-mode .impact,
body.intro-mode .story,
body.intro-mode .involved,
body.intro-mode .final-cta,
body.intro-mode .site-footer {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* Smooth fade-in when intro-mode is removed */
.site-header,
.mission,
.how-it-works,
.impact,
.story,
.involved,
.final-cta,
.site-footer {
  transition: opacity 0.7s ease;
}

/* ===== Get Started Button ===== */
.get-started-btn {
  margin-top: 40px;
  padding: 14px 40px;
  background: transparent;
  color: #F7F4EC;
  border: 2px solid rgba(247,244,236,0.45);
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, opacity 0.4s ease, transform 0.4s ease;
  display: inline-block;
}
.get-started-btn:hover:not(:disabled) {
  background: rgba(247,244,236,0.1);
  border-color: rgba(247,244,236,0.8);
}
.get-started-btn:disabled { cursor: default; }
.get-started-btn.fading-out {
  opacity: 0 !important;
  transform: translateY(10px) !important;
  pointer-events: none;
}

@keyframes btn-launch {
  0%   { transform: scale(1);                    opacity: 1;   letter-spacing: 0.14em;
         border-color: rgba(247,244,236,0.45);   box-shadow: none; }
  16%  { transform: scale(0.92);                 opacity: 1;   letter-spacing: 0.14em;
         border-color: rgba(247,244,236,0.45);   box-shadow: none; }
  38%  { transform: scale(1.06);                 opacity: 1;   letter-spacing: 0.22em;
         border-color: rgba(247,244,236,0.88);
         box-shadow: 0 0 0 5px rgba(247,244,236,0.08), 0 0 30px rgba(247,244,236,0.2); }
  68%  { transform: scale(1.08) translateY(-5px); opacity: 0.5; letter-spacing: 0.30em;
         border-color: rgba(247,244,236,0.28);
         box-shadow: 0 0 0 12px rgba(247,244,236,0.03); }
  100% { transform: scale(1.10) translateY(-12px); opacity: 0;  letter-spacing: 0.36em;
         border-color: rgba(247,244,236,0);       box-shadow: none; }
}
.get-started-btn.launching {
  animation: btn-launch 0.30s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/* ===== Intro layers ===== */
.intro-text-layer {
  transition: opacity 0.5s ease;
}

/* ===== Book layer ===== */
.book-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.8s ease;
}
.book-layer.visible {
  opacity: 1;
  pointer-events: auto;
}

#cb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0d120a;
}
#cb-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.cb-scene {
  position: relative;
  z-index: 1;
}

/* Camera zoom into the blank right page after flipping */
.book-layer.cb-camera-zoom {
  will-change: transform;
  transition: transform 4500ms cubic-bezier(0.25, 0.0, 0.2, 1);
  transform: scale(7);
}

/* During zoom the scaled book-layer leaves dark hero background visible at edges */
body.intro-mode .hero:has(.book-layer.cb-camera-zoom) {
  background: #0d120a;
}

/* ===== Closed-to-open book animation ===== */

/* Perspective scene — scale perspective with viewport so depth looks consistent */
.cb-scene {
  perspective: clamp(900px, 80vw, 1600px);
  perspective-origin: 50% 44%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Angle wrapper — NO filter here: CSS filters on preserve-3d parents force the browser
   to flatten the entire 3D hierarchy into a bitmap, causing text blur. Shadow lives on
   cb-cover-face instead. */
.cb-wrapper {
  transform-style: preserve-3d;
  transform: rotateX(6deg);
  transition: transform 1.8s ease-in-out;
}
.cb-wrapper.cb-is-opening {
  transform: rotateX(4deg) translateX(clamp(120px, 16vw, 260px));
}

/* Main book block — larger clamp max so the book fills big monitors */
.cb-book {
  position: relative;
  width: clamp(300px, 36vw, 680px);
  height: clamp(380px, 48vw, 900px);
  transform-style: preserve-3d;
}

/* Spine */
.cb-spine {
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 100%;
  transform-origin: left center;
  transform: rotateY(-90deg);
  background: linear-gradient(180deg, #1e2e13 0%, #2c3e1e 50%, #3e5230 100%);
  border-radius: 3px 0 0 3px;
}

/* Page edges */
.cb-edge {
  position: absolute;
  top: 0; right: 0;
  width: 20px; height: 100%;
  transform-origin: right center;
  transform: rotateY(90deg);
  background: repeating-linear-gradient(
    to bottom,
    #d8cfc0 0px, #d8cfc0 1px,
    #ece5d3 1px, #ece5d3 4px
  );
}

/* Interior pages */
.cb-interior {
  position: absolute;
  inset: 0;
  border-radius: 2px 5px 5px 2px;
  background: linear-gradient(90deg, #e0d8c2 0%, #ede6d2 10%, #f5eed9 50%, #faf6ee 100%);
}

/* Scribble writing on flip pages and interior */
.cb-fp-front::after,
.cb-fp-back::after,
.cb-interior::after {
  content: '';
  position: absolute;
  inset: 8% 5% 6%;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 360"><g fill="none" stroke="%23998870" stroke-linecap="round"><path stroke-width="1.1" stroke-dasharray="38 7 25 7 42 7 18 7 32" opacity="0.45" d="M4,14 Q70,11 140,14 Q210,17 276,14"/><path stroke-width="1.0" stroke-dasharray="22 7 45 7 30 7 38 7 25" opacity="0.43" d="M4,28 Q70,31 140,28 Q210,25 276,28"/><path stroke-width="1.1" stroke-dasharray="48 7 22 7 35 7 28 7 40" opacity="0.45" d="M4,42 Q70,39 140,42 Q210,45 276,42"/><path stroke-width="1.0" stroke-dasharray="32 7 40 7 18 7 48 7 22" opacity="0.43" d="M4,56 Q70,59 140,56 Q210,53 276,56"/><path stroke-width="1.0" stroke-dasharray="28 7 35 7 42 7 20" opacity="0.40" d="M4,70 Q55,67 110,70 Q175,73 220,70"/><path stroke-width="1.1" stroke-dasharray="42 7 28 7 35 7 22 7 38" opacity="0.45" d="M4,90 Q70,87 140,90 Q210,93 276,90"/><path stroke-width="1.0" stroke-dasharray="18 7 48 7 25 7 40 7 30" opacity="0.43" d="M4,104 Q70,107 140,104 Q210,101 276,104"/><path stroke-width="1.1" stroke-dasharray="35 7 22 7 48 7 18 7 42" opacity="0.45" d="M4,118 Q70,115 140,118 Q210,121 276,118"/><path stroke-width="1.0" stroke-dasharray="45 7 30 7 28 7 38 7 18" opacity="0.43" d="M4,132 Q70,135 140,132 Q210,129 276,132"/><path stroke-width="1.0" stroke-dasharray="32 7 45 7 28" opacity="0.40" d="M4,146 Q55,143 110,146 Q155,149 195,146"/><path stroke-width="1.1" stroke-dasharray="28 7 42 7 18 7 48 7 22" opacity="0.45" d="M4,166 Q70,163 140,166 Q210,169 276,166"/><path stroke-width="1.0" stroke-dasharray="40 7 22 7 38 7 30 7 28" opacity="0.43" d="M4,180 Q70,183 140,180 Q210,177 276,180"/><path stroke-width="1.1" stroke-dasharray="18 7 35 7 48 7 22 7 40" opacity="0.45" d="M4,194 Q70,191 140,194 Q210,197 276,194"/><path stroke-width="1.0" stroke-dasharray="42 7 28 7 22 7 45 7 18" opacity="0.43" d="M4,208 Q70,211 140,208 Q210,205 276,208"/><path stroke-width="1.0" stroke-dasharray="22 7 38 7 18" opacity="0.40" d="M4,222 Q55,219 100,222 Q135,225 162,222"/><path stroke-width="1.1" stroke-dasharray="35 7 48 7 22 7 38 7 28" opacity="0.45" d="M4,242 Q70,239 140,242 Q210,245 276,242"/><path stroke-width="1.0" stroke-dasharray="28 7 35 7 42 7 22 7 40" opacity="0.43" d="M4,256 Q70,259 140,256 Q210,253 276,256"/><path stroke-width="1.1" stroke-dasharray="48 7 22 7 35 7 28 7 38" opacity="0.45" d="M4,270 Q70,267 140,270 Q210,273 276,270"/><path stroke-width="1.0" stroke-dasharray="30 7 42 7 18" opacity="0.40" d="M4,284 Q55,281 105,284 Q145,287 182,284"/><path stroke-width="1.1" stroke-dasharray="22 7 40 7 28 7 38 7 22" opacity="0.45" d="M4,306 Q70,303 140,306 Q210,309 276,306"/><path stroke-width="1.0" stroke-dasharray="38 7 25 7 42 7 28 7 18" opacity="0.43" d="M4,320 Q70,323 140,320 Q210,317 276,320"/><path stroke-width="1.0" stroke-dasharray="35 7 28 7 40" opacity="0.40" d="M4,334 Q55,331 115,334 Q168,337 210,334"/></g></svg>');
}

/* Front cover wrapper */
/* will-change only applied during animation to avoid pre-rasterizing at wrong resolution */
.cb-cover {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: 10;
}

/* ===== Flip pages ===== */
.cb-pages-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.cb-fp {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
}
.cb-fp-front,
.cb-fp-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 2px 5px 5px 2px;
}
.cb-fp-back {
  transform: rotateY(180deg);
  background: linear-gradient(270deg, #cec5ae 0%, #ddd5c0 10%, #ece4d2 55%, #f2eadc 100%);
}

/* Each page a shade lighter than the one above it */
.cb-fp--1 .cb-fp-front {
  background: linear-gradient(90deg, #bfb59c 0%, #cec5ae 10%, #ddd5bf 50%, #e5ddd0 100%);
}
.cb-fp--2 .cb-fp-front {
  background: linear-gradient(90deg, #c8bfa8 0%, #d8cfbb 10%, #e6dece 50%, #ece6d8 100%);
}
.cb-fp--3 .cb-fp-front {
  background: linear-gradient(90deg, #d0c8b2 0%, #dfd8c4 10%, #ecE4d2 50%, #f0ead8 100%);
}
.cb-fp--4 .cb-fp-front {
  background: linear-gradient(90deg, #d6ceba 0%, #e4dcc8 10%, #efe8d6 50%, #f3ede0 100%);
}
.cb-fp--5 .cb-fp-front {
  background: linear-gradient(90deg, #dbd4c0 0%, #e8e1ce 10%, #f1ead9 50%, #f5efe4 100%);
}
.cb-fp--6 .cb-fp-front {
  background: linear-gradient(90deg, #dfd8c6 0%, #ebe4d2 10%, #f3ecdb 50%, #f7f1e7 100%);
}
.cb-fp--7 .cb-fp-front {
  background: linear-gradient(90deg, #e2dbc9 0%, #ede7d5 10%, #f4eddd 50%, #f8f2e9 100%);
}
/* Pages 8-10 — very light cream */
.cb-fp--8 .cb-fp-front,
.cb-fp--9 .cb-fp-front,
.cb-fp--10 .cb-fp-front {
  background: linear-gradient(90deg, #e4dece 0%, #eee9d8 10%, #f5eede 50%, #f9f3ec 100%);
}

@keyframes fp-flip {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}

/* Pages fire sequentially after cover opens (1800ms), each faster than the last */
.cb-wrapper.cb-is-opening .cb-fp--1 {
  animation: fp-flip 800ms ease-in-out both;
  animation-delay: 1900ms;
}
.cb-wrapper.cb-is-opening .cb-fp--2 {
  animation: fp-flip 520ms ease-in-out both;
  animation-delay: 2720ms;
}
.cb-wrapper.cb-is-opening .cb-fp--3 {
  animation: fp-flip 320ms ease-in-out both;
  animation-delay: 3260ms;
}
.cb-wrapper.cb-is-opening .cb-fp--4 {
  animation: fp-flip 220ms ease-in-out both;
  animation-delay: 3600ms;
}
.cb-wrapper.cb-is-opening .cb-fp--5 {
  animation: fp-flip 160ms ease-in-out both;
  animation-delay: 3840ms;
}
.cb-wrapper.cb-is-opening .cb-fp--6 {
  animation: fp-flip 130ms ease-in-out both;
  animation-delay: 4020ms;
}
.cb-wrapper.cb-is-opening .cb-fp--7 {
  animation: fp-flip 110ms ease-in-out both;
  animation-delay: 4170ms;
}
.cb-wrapper.cb-is-opening .cb-fp--8 {
  animation: fp-flip 100ms ease-in-out both;
  animation-delay: 4300ms;
}
.cb-wrapper.cb-is-opening .cb-fp--9 {
  animation: fp-flip 90ms ease-in-out both;
  animation-delay: 4420ms;
}
.cb-wrapper.cb-is-opening .cb-fp--10 {
  animation: fp-flip 85ms ease-in-out both;
  animation-delay: 4530ms;
}

@keyframes cb-open {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-160deg); }
}
.cb-cover.cb-is-opening {
  will-change: transform;
  animation: cb-open 1800ms ease-in forwards;
}

/* Exterior face of cover */
.cb-cover-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(155deg, #506640 0%, #3e5230 46%, #2c3d22 100%);
  border-radius: 2px 5px 5px 2px;
  /* Shadow lives here, not on the parent, to avoid the 3D-flatten blur */
  box-shadow:
    8px 14px 44px rgba(0,0,0,0.65),
    0 28px 70px rgba(0,0,0,0.40),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.cb-cover-inset {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(239,231,217,0.20);
  border-radius: 2px;
  pointer-events: none;
}
.cb-cover-titles {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cb-title-word {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: 0.18em;
  color: #efe7d9;
  text-shadow: 0 1px 0 rgba(255,255,255,0.12), 0 3px 18px rgba(0,0,0,0.55);
}
.cb-cover-tagline {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-family: "Jost", sans-serif;
  font-size: clamp(0.58rem, 1.1vw, 0.74rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239,231,217,0.70);
  text-align: center;
}
.cb-cover-stat {
  position: relative;
  z-index: 1;
  margin-top: clamp(14px, 2.5vw, 28px);
  padding: 0 clamp(14px, 2vw, 24px);
  font-family: "Jost", sans-serif;
  font-size: clamp(0.62rem, 1.1vw, 0.80rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(239,231,217,0.75);
  text-align: center;
}
.cb-cover-stat strong {
  font-weight: 600;
  color: #efe7d9;
}
/* Get Started button sitting on the cover */
.cb-cover-face .get-started-btn {
  position: relative;
  z-index: 1;
  margin-top: clamp(18px, 3vw, 36px);
  padding: 0.65em 2em;
  background: rgba(239,231,217,0.12);
  border: 1px solid rgba(239,231,217,0.70);
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: clamp(0.60rem, 1vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #efe7d9;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(239,231,217,0.08);
  transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.cb-cover-face .get-started-btn:hover {
  background: rgba(239,231,217,0.22);
  border-color: rgba(239,231,217,0.95);
  box-shadow: 0 0 24px rgba(239,231,217,0.20);
}

/* Interior face of cover */
.cb-cover-inside {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  background: linear-gradient(270deg, #ddd5c0 0%, #ece4d3 10%, #f5eed9 55%, #faf6ee 100%);
  border-radius: 2px 5px 5px 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cb-wrapper { transition: none !important; }
  .cb-wrapper.cb-is-opening {
    transform: rotateX(4deg) translateX(clamp(80px, 11vw, 140px));
  }
  .cb-cover.cb-is-opening {
    animation: none !important;
    transform: rotateY(-160deg);
  }
  .cb-wrapper.cb-is-opening .cb-fp--1,
  .cb-wrapper.cb-is-opening .cb-fp--2,
  .cb-wrapper.cb-is-opening .cb-fp--3,
  .cb-wrapper.cb-is-opening .cb-fp--4,
  .cb-wrapper.cb-is-opening .cb-fp--5,
  .cb-wrapper.cb-is-opening .cb-fp--6,
  .cb-wrapper.cb-is-opening .cb-fp--7,
  .cb-wrapper.cb-is-opening .cb-fp--8,
  .cb-wrapper.cb-is-opening .cb-fp--9,
  .cb-wrapper.cb-is-opening .cb-fp--10 {
    animation: none !important;
    transform: rotateY(-180deg);
  }
}

/* ===== Permanent hero layer ===== */
.hero-site-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.6s ease;
}
.hero-site-layer.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Subtle pulsing radial glow */
.hero-site-layer.visible::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(111,58,44,0.14) 0%, transparent 70%);
  animation: hsl-glow 7s ease-in-out infinite;
  pointer-events: none;
}

.hsl-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 28px;
  max-width: 820px;
  width: 100%;
}

/* Eyebrow */
.hsl-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(14px);
}
.hero-site-layer.visible .hsl-eyebrow {
  animation: hsl-rise 0.8s ease 0.1s both;
}

/* Title */
.hsl-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.2rem, 13vw, 9.5rem);
  color: #F7F4EC;
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin-bottom: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.45), 0 1px 0 rgba(0,0,0,0.2);
}
.hsl-word {
  display: block;
  opacity: 0;
  transform: translateY(32px);
}
.hero-site-layer.visible .hsl-word:nth-child(1) {
  animation: hsl-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}
.hero-site-layer.visible .hsl-word:nth-child(2) {
  animation: hsl-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* Mini book shelf */
.hsl-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  margin: 28px auto 30px;
  opacity: 0;
  transform: translateY(14px);
}
.hero-site-layer.visible .hsl-shelf {
  animation: hsl-rise 0.7s ease 0.78s both;
}
.hsl-book {
  width: 13px;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.4), inset -2px 0 0 rgba(0,0,0,0.12);
  position: relative;
  flex-shrink: 0;
}
.hsl-book::after {
  content: "";
  position: absolute;
  top: 28%;
  left: 2px;
  right: 2px;
  height: 1px;
  background: rgba(255,255,255,0.22);
}
.b1 { height: 56px; background: linear-gradient(180deg, #8a9f6a, #7c8d5f); }
.b2 { height: 44px; background: linear-gradient(180deg, #d9c0b0, #c8a293); }
.b3 { height: 70px; background: linear-gradient(180deg, #7a4030, #6f3a2c); }
.b4 { height: 52px; background: linear-gradient(180deg, #efe7d9, #dfd5c3); }
.b5 { height: 64px; background: linear-gradient(180deg, #4a6236, #3e5230); }
.b6 { height: 48px; background: linear-gradient(180deg, #6a7e54, #5a6e44); }
.b7 { height: 60px; background: linear-gradient(180deg, #bb9890, #a07060); }

/* Tagline */
.hsl-tagline {
  font-size: clamp(0.95rem, 1.7vw, 1.18rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.72;
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
  font-style: italic;
  opacity: 0;
  transform: translateY(14px);
}
.hero-site-layer.visible .hsl-tagline {
  animation: hsl-rise 0.8s ease 0.96s both;
}

/* CTAs */
.hsl-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
}
.hero-site-layer.visible .hsl-cta-row {
  animation: hsl-rise 0.8s ease 1.14s both;
}
.hsl-btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 4px;
  font-family: "Jost", sans-serif;
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.hsl-ghost {
  background: transparent;
  border-color: rgba(247,244,236,0.38);
  color: #F7F4EC;
}
.hsl-ghost:hover {
  border-color: rgba(247,244,236,0.85);
  background: rgba(247,244,236,0.07);
}
.hsl-solid {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
  box-shadow: 0 4px 18px rgba(111,58,44,0.38);
}
.hsl-solid:hover {
  background: var(--rust-soft);
  border-color: var(--rust-soft);
  box-shadow: 0 6px 22px rgba(111,58,44,0.5);
}

/* Scroll indicator */
.hsl-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
}
.hero-site-layer.visible .hsl-scroll {
  animation: hsl-rise 0.8s ease 1.35s both;
}
.hsl-scroll-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.hsl-scroll svg {
  color: rgba(255,255,255,0.3);
  animation: hsl-bounce 2.2s ease-in-out 2s infinite;
}

/* Keyframes */
@keyframes hsl-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hsl-glow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}
@keyframes hsl-bounce {
  0%, 100% { transform: translateY(0);  }
  50%       { transform: translateY(8px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-site-layer.visible .hsl-eyebrow,
  .hero-site-layer.visible .hsl-word,
  .hero-site-layer.visible .hsl-shelf,
  .hero-site-layer.visible .hsl-tagline,
  .hero-site-layer.visible .hsl-cta-row,
  .hero-site-layer.visible .hsl-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hsl-scroll svg { animation: none !important; }
  .hero-site-layer.visible::before { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .mission-pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--paper-line); padding: 28px 0 !important; }
  .pillar:last-child { border-bottom: none; }
  .steps-list { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--green-deep);
    padding: 20px 28px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 16px; width: 100%; }
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    width: 100%;
  }
  .nav-social { border-right: none; padding-right: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat:nth-child(3), .stat:last-child { border-bottom: none; }
  .pathways { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-panel-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .nav-wrap { padding: 0 20px; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 62px 0; }
  .step { padding: 28px 24px; }
  .pillar-num { font-size: 2rem; }
}
