/* The Purpose Foundation — warm, soft, reassuring. */

:root {
  --cream: #fbf6ef;
  --paper: #fffdf9;
  --sand: #f3e8da;
  --peach: #f6d9c4;
  --blush: #f2c6b4;
  --terracotta: #b35331;
  --terracotta-deep: #a84e2e;
  --sage: #4d684f;
  --sage-soft: #dfe8dc;
  --ink: #3a2f2a;
  --ink-soft: #6b5d55;
  --ink-faint: #66544a;
  --line: #eadccd;
  --gold: #e7b35a;
  --led: #8fd694;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --radius: 22px;
  --shadow: 0 1px 2px rgba(90, 60, 40, 0.06), 0 12px 32px -12px rgba(90, 60, 40, 0.18);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--terracotta-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

.section { padding: 110px 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--sage { background: var(--sage-soft); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(200, 100, 63, 0.7);
}
.btn--primary:hover { background: var(--terracotta-deep); }

.btn--ghost {
  background: rgba(255, 253, 249, 0.75);
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: #fff; }

.btn--small { padding: 10px 20px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 220, 205, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--terracotta-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 68px 0 80px;
  overflow: hidden;
  background: #e4e7d8;
  border-bottom: 3px double #a4af98;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-grid > div { grid-column: 2; grid-row: 1; }
.hero h1 { font-size: clamp(2rem, 3.3vw, 2.9rem); max-width: 19ch; }
.hero .eyebrow { color: #4d614a; border-top: 3px solid; padding-top: 12px; }

.hero h1 .count {
  display: block;
  margin: 12px 0;
  color: #704035;
  font: 600 clamp(3.5rem, 6.4vw, 6.2rem)/1 var(--serif);
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #52634d;
}
.hero-trust .dots { display: flex; }
.hero-trust .dots span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  margin-left: -8px;
}
.hero-trust .dots span:first-child { margin-left: 0; }

.hero-photo {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 8px 8px 0 #c4ceb8;
  aspect-ratio: 3 / 5;
  border: 1px solid #8f9c81;
}
.hero-photo svg { width: 100%; height: 100%; }
.hero-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0;
  padding: 12px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.hero-photo figcaption strong { color: var(--ink); }

.led-blink { animation: led 3.2s ease-in-out infinite; }
@keyframes led {
  0%, 62%, 100% { opacity: 0.18; }
  70%, 82% { opacity: 1; }
}
.bokeh-drift { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-14px, 10px); }
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-grid > div { grid-column: 1; grid-row: 1; }
  .hero h1 { max-width: 20ch; }
  .hero h1 .count { font-size: clamp(2.8rem, 8vw, 5rem); }
  .hero-photo { grid-column: 1; grid-row: 2; aspect-ratio: 5 / 4; max-width: 500px; }
}

/* ---------- Crisis ---------- */

.crisis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.crisis-stat {
  border-left: 3px solid var(--blush);
  padding: 4px 0 4px 22px;
  margin-bottom: 30px;
}
.crisis-stat .big {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--terracotta);
  line-height: 1.1;
  display: block;
}
.crisis-stat p { margin: 6px 0 0; color: var(--ink-soft); }
.crisis-stat sup { font-size: 0.6em; }

.footnote { font-size: 0.8rem; color: var(--ink-faint); }

.prompt-window {
  background: #2e2724;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #e9ddd2;
}
.prompt-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #3a312d;
  font-size: 0.78rem;
  color: #b3a397;
}
.prompt-bar i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #5a4d46;
  display: inline-block;
}
.prompt-bar span { margin-left: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.prompt-body {
  padding: 40px 28px 34px;
  min-height: 280px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.prompt-line { color: #cdbfb3; }
.prompt-line .caret {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: #e9ddd2;
  vertical-align: -0.2em;
  margin-left: 4px;
  animation: sadblink 2.6s steps(1, end) infinite;
}
@keyframes sadblink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
.prompt-meta {
  margin-top: 40px;
  font-size: 0.8rem;
  color: #aa9b8e;
  line-height: 1.8;
}
.prompt-meta b { color: #e7b35a; font-weight: 500; }

.prompt-caption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-faint);
  text-align: center;
  font-style: italic;
}

@media (max-width: 900px) {
  .crisis-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Donation tiers ---------- */

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

.tier {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tier.featured { border-color: var(--terracotta); }
.tier .badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.tier .amount {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 14px;
}
.tier .amount small { font-size: 0.9rem; color: var(--ink-faint); font-family: var(--sans); }
.tier .icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--peach);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--terracotta-deep);
}
.tier p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.tier .btn { margin-top: 10px; }

.tiers-note {
  text-align: center;
  margin-top: 34px;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Millennium Program ---------- */

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.feature-list { display: grid; gap: 22px; }
.feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  background: var(--paper);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(90, 60, 40, 0.05);
}
.feature .icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--sage-soft);
  color: #4f6b55;
  display: grid;
  place-items: center;
}
.feature h3 { margin-bottom: 6px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.feature .quote {
  display: inline-block;
  margin-top: 8px;
  font-style: italic;
  color: var(--sage);
  font-weight: 600;
}

.notebook {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 30px 26px;
  position: sticky;
  top: 100px;
}
.notebook-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.notebook-head h3 { margin: 0; }
.notebook-head .live {
  font-size: 0.75rem;
  font-weight: 700;
  color: #427749;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.notebook-head .live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6cc07a;
  animation: led 2s ease-in-out infinite;
}
.notebook .who { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 22px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.progress {
  height: 14px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), #a8c2a0);
  transition: width 0.9s ease, opacity 0.6s ease;
}
.progress-fill.resetting {
  background: linear-gradient(90deg, #e9d7ef, #f6e4ee);
}
.progress-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  min-height: 1.4em;
  margin-bottom: 22px;
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.35;
  color: #4b4038;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #efe3d6 35px, #efe3d6 36px);
  min-height: 216px;
  border-radius: 10px;
  padding: 2px 4px;
}
.log li {
  padding: 2px 6px;
  min-height: 36px;
  animation: ink 0.8s ease both;
}
.log li.reset-line {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #8a6fa0;
  font-style: italic;
  padding-top: 9px;
}
@keyframes ink { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.notebook .foot {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .program-grid { grid-template-columns: 1fr; gap: 44px; }
  .notebook { position: static; }
}

/* ---------- Sponsor ---------- */

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

.model-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.model-portrait {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.model-portrait svg { width: 100%; height: 100%; }
.model-portrait .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 253, 249, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.model-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.model-body h3 { margin-bottom: 4px; font-size: 1.55rem; }
.model-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.model-meta li { display: flex; gap: 8px; }
.model-meta b { color: var(--ink-soft); font-weight: 700; min-width: 86px; }
.model-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  flex: 1;
  margin-bottom: 20px;
}
.model-body .sponsored-note { font-size: 0.8rem; color: var(--ink-faint); text-align: center; margin: 10px 0 0; }

.letter-wrap {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.letter {
  background: #fffaf2;
  border-radius: 6px;
  padding: 44px 44px 40px;
  box-shadow: 0 2px 4px rgba(90, 60, 40, 0.06), 0 30px 60px -30px rgba(90, 60, 40, 0.35);
  transform: rotate(-1.2deg);
  position: relative;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, #f1e4d4 37px, #f1e4d4 38px);
  background-position: 0 30px;
}
.letter::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 30px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(242, 198, 180, 0.7);
  border-radius: 3px;
}
.letter p {
  font-family: var(--hand);
  font-size: 1.55rem;
  line-height: 38px;
  color: #3f3530;
  margin: 0;
}
.letter .sig { margin-top: 38px; text-align: right; }
.letter .postmark {
  position: absolute;
  top: 26px;
  right: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b89a88;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid #d7bfae;
  border-radius: 999px;
  padding: 4px 10px;
  transform: rotate(6deg);
}

@media (max-width: 960px) {
  .sponsor-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .letter-wrap { grid-template-columns: 1fr; gap: 40px; }
  .letter { padding: 40px 26px 34px; }
  .letter p { font-size: 1.35rem; }
}

/* ---------- Stories ---------- */

.stories-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.story {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.story blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
}
.story blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--blush);
  margin-bottom: 12px;
}
.story .by { font-size: 0.9rem; color: var(--ink-faint); margin: 0; }
.story .by b { color: var(--ink-soft); }

.video {
  background: #1f1a18;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(600px 300px at 50% 40%, rgba(231, 179, 90, 0.28), transparent 70%),
    linear-gradient(180deg, #2c2420, #1b1614);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.video-face {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe7c2, #f0b67a 55%, #c77c4a);
  box-shadow: 0 0 80px 10px rgba(240, 182, 122, 0.25);
  transition: transform 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
  position: relative;
}
.video-face.thinking { animation: breathe 2.4s ease-in-out infinite; }
.video-face.eureka {
  transform: scale(1.15);
  box-shadow: 0 0 140px 40px rgba(255, 214, 140, 0.55);
  filter: brightness(1.15);
}
@keyframes breathe { 50% { transform: scale(1.04); } }

.video-sub {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  text-align: center;
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  min-height: 1.6em;
}
.video-hud {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.video-hud .rec {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e36a5a;
  margin-right: 6px;
  animation: led 1.6s infinite;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(27, 22, 20, 0.45);
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: var(--sans);
  transition: background 0.3s;
}
.video-play:hover { background: rgba(27, 22, 20, 0.3); }
.video-play .circle {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.95);
  display: grid;
  place-items: center;
  color: var(--terracotta);
  margin: 0 auto 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.video-play .label { font-weight: 700; font-size: 1rem; }
.video-play .dur { display: block; font-weight: 500; opacity: 0.75; font-size: 0.85rem; }
.video-play[hidden] { display: none; }

.confetti {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.95;
  animation: fall 2.6s ease-in forwards;
  pointer-events: none;
}
@keyframes fall {
  to { transform: translateY(460px) rotate(540deg); opacity: 0; }
}

.video-caption {
  padding: 20px 24px 22px;
  color: #e9ddd2;
  background: #2a2320;
}
.video-caption h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.video-caption p { margin: 0; font-size: 0.9rem; color: #b8a799; }

@media (max-width: 900px) {
  .stories-grid { grid-template-columns: 1fr; }
}

/* ---------- Impact ---------- */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.impact {
  background: var(--paper);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(90, 60, 40, 0.05);
}
.impact .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  color: var(--ink);
  line-height: 1.1;
  display: block;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.impact .label { font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }
.impact .sub { font-size: 0.8rem; color: var(--ink-faint); margin-top: 4px; display: block; }
.impact.highlight { background: var(--sage-soft); }
.impact.highlight .num { color: #4f6b55; }

.report-link { text-align: center; margin-top: 36px; }

.seals {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 36px;
  margin-top: 44px;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.seals span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 1000px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } .impact-grid .impact:last-child { grid-column: 1 / -1; } }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(90, 60, 40, 0.05);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 26px;
  font-family: var(--serif);
  font-size: 1.2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--terracotta);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 18px; }
.faq .answer { padding: 0 26px 24px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    var(--terracotta);
  color: #fff;
  border-radius: 32px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin: 0; }
.cta-band .btn--primary { background: #fff; color: var(--terracotta-deep); box-shadow: none; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.payroll {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
}
.payroll label { font-weight: 700; display: block; margin-bottom: 12px; }
.payroll-row { display: flex; align-items: center; gap: 14px; }
.payroll input[type="range"] { flex: 1; accent-color: #fff; }
.payroll output { font-family: var(--serif); font-size: 1.8rem; min-width: 3.2ch; text-align: right; }
.payroll .fine { font-size: 0.8rem; margin: 10px 0 16px; color: rgba(255, 255, 255, 0.78); }

@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; padding: 44px 26px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #332a26;
  color: #cbbcb1;
  padding: 80px 0 40px;
  font-size: 0.93rem;
}
.site-footer a { color: #ecdccf; text-decoration: none; }
.site-footer p a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-name small { color: #a8978b; }

.newsletter { display: flex; gap: 8px; margin-top: 8px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid #56483f;
  background: #3e332e;
  color: #fff;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.9rem;
}
.newsletter input::placeholder { color: #9d8c80; }

.legal {
  border-top: 1px solid #4a3e38;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #a2918a;
}
.legal em { color: #cbbcb1; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(51, 42, 38, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 26px;
  padding: 36px 32px 30px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s;
}
.modal.open .modal-card { transform: none; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--sand);
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--ink-soft);
}
.modal h3 { font-size: 1.6rem; margin-right: 40px; }
.modal .muted { color: var(--ink-soft); font-size: 0.95rem; }

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 14px;
}
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts label {
  display: block;
  text-align: center;
  padding: 12px 0;
  border-radius: 14px;
  border: 2px solid var(--line);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.amounts input:checked + label { border-color: var(--terracotta); background: #fdf0e8; color: var(--terracotta-deep); }
.amounts input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.amount-desc {
  background: var(--sand);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  min-height: 48px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.check input { margin-top: 4px; accent-color: var(--terracotta); }

.thanks { text-align: center; }
.thanks .heart {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--peach);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--terracotta);
  animation: pop 0.5s ease;
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.achievement {
  margin: 20px 0 22px;
  background: #fff6e0;
  border: 1px dashed var(--gold);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: #7a5a1c;
}
.achievement b { display: block; font-size: 0.95rem; }

/* ---------- About page ---------- */

.page-hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(246, 217, 196, 0.8), transparent 60%),
    var(--cream);
}
.page-hero h1 { max-width: 16ch; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.t-item { position: relative; padding-left: 50px; margin-bottom: 40px; }
.t-item:last-child { margin-bottom: 0; }
.t-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--terracotta);
}
.t-item .year {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--terracotta);
}
.t-item h3 { margin: 4px 0 6px; }
.t-item p { color: var(--ink-soft); margin: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 1px 2px rgba(90, 60, 40, 0.05);
}
.value .icon {
  width: 50px; height: 50px;
  border-radius: 16px;
  background: var(--peach);
  color: var(--terracotta-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.value p { color: var(--ink-soft); margin: 0; }

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.member { text-align: center; }
.member .avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.member h3 { font-size: 1.2rem; margin-bottom: 2px; }
.member .role { font-size: 0.85rem; font-weight: 700; color: var(--sage); margin-bottom: 8px; }
.member p { font-size: 0.9rem; color: var(--ink-soft); }

.pull {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink);
}
.pull cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin-top: 20px;
}

@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Utilities ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

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

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