/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  /* Color */
  --sage-dark: #3A665A;
  --sage-dark-deep: #2B4D43;   /* darker step, for text-on-sage contrast + gradients */
  --sage: #5A9B8A;
  --sage-light: #7BB5A5;
  --sage-tint: #9AC7B7;        /* lightened step, for sage-as-text on sage-dark (--sage-light measured 2.79:1, below the 3:1 floor for large text) */
  --sage-ink: #3A7466;         /* darkened step, for sage-as-small-text on cream/white (--sage measured 2.77:1 / 3.24:1, below AA) */
  --sage-pale: #C4E4D8;        /* lightest step, for small sage text on sage-dark (--sage-tint reads 3.48:1, under AA for label sizes) */
  --gold: #C8943A;
  --gold-tint: #F0C98F;        /* lightened step, for gold-as-text on sage-dark (2.4:1 fails at base value) */
  --cream: #F0EDE8;
  --cream-raised: #FFFFFF;
  --near-black: #1A1A1A;
  --medium-gray: #5B6472;      /* darkened from spec #6B7280 — that value reads 4.14:1 on cream, below AA */
  --light-gray: #DDD9D3;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);   /* 13-14px */
  --step-0:  clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);    /* 17-18px */
  --step-1:  clamp(1.375rem, 1.3rem + 0.35vw, 1.5rem);       /* 22-24px */
  --step-2:  clamp(2.25rem, 2rem + 1.1vw, 2.5rem);           /* 36-40px */
  --step-3:  clamp(3.5rem, 2.9rem + 2.7vw, 4.5rem);          /* 56-72px */

  /* Layout */
  --inner-max: 1200px;
  --inner-padding: 32px;
  --section-padding: 120px;
  --radius-sm: 6px;   /* buttons, cards — was 10px; sharper, less "rounded app" */

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
}

@media (max-width: 720px) {
  :root {
    --section-padding: 72px;
    --inner-padding: 20px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--near-black);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 20, "WONK" 1; /* Fraunces' hand-set irregularity — off for numerals/data, see .stat__number and .how__index */
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.inner {
  max-width: var(--inner-max);
  margin-inline: auto;
  padding-inline: var(--inner-padding);
}

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

.skip-link {
  position: absolute;
  top: -48px; left: 12px;
  background: var(--sage-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 10px 20px; }

.btn--primary {
  background: var(--gold);
  color: #211705;
}
.btn--primary:hover { background: #d9a24a; }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--sage-dark);
  color: var(--sage-dark);
}
.btn--outline-dark:hover {
  background: var(--sage-dark);
  color: #fff;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--light-gray);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 18px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
/* The supplied logo art is a flat silhouette, so it is used as a mask and
   tinted per surface rather than shipped as two coloured files. */
.logo__mark {
  display: block;
  width: 108px;
  height: 34px;
  background: var(--sage-dark);
  -webkit-mask: url("assets/logo-mark.png") no-repeat left center;
  mask: url("assets/logo-mark.png") no-repeat left center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.logo__mark--light { background: var(--cream); }

.site-nav ul {
  display: flex;
  gap: 32px;
}
.site-nav a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--near-black);
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right var(--dur-fast) var(--ease-out);
}
.site-nav a:hover::after { right: 0; }

.site-header__cta { white-space: nowrap; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--near-black);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-fast) var(--ease-out);
  border-top: 1px solid var(--light-gray);
}
.mobile-nav.is-open { max-height: 480px; }
.mobile-nav ul { padding: 12px var(--inner-padding) 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: var(--step-0);
  font-weight: 500;
}
.mobile-nav .btn { margin-top: 8px; justify-content: center; }

@media (max-width: 860px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background-color: var(--sage-dark);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-block: 88px 72px;
  min-height: 640px;
}

.hero__heading {
  font-size: var(--step-3);
  color: #fff;
  font-weight: 400;
}
.hero__heading-muted {
  /* An editor's aside, not a faded word — swaps to the body face like a hand margin-note. */
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.56em;
  color: var(--sage-tint);
  display: inline-block;
  vertical-align: 4%;
}

.hero__subhead {
  margin-top: 28px;
  max-width: 46ch;
  font-size: var(--step-0);
  color: rgba(255, 255, 255, 0.82);
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__network { position: relative; }
.network-svg { width: 100%; height: auto; }

.network-spokes {
  filter: url(#hand-wobble); /* slight hand-sketched irregularity on the connecting lines only, not the nodes/labels */
}
.network-spokes line {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5;
}

.network-hub circle {
  fill: var(--gold);
}
.network-hub text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  fill: #211705;
}

.network-node circle {
  fill: var(--sage-light);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.5;
}
.network-node text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  fill: #fff;
}
.network-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}
.legend-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot--active { background: var(--sage-light); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 56px 48px; min-height: 0; }
  .hero__network { max-width: 360px; margin-inline: auto; }
}

/* Hero load-in — the ONLY entrance animation on the site */
.fade-in-item {
  opacity: 0;
  animation: fade-in 700ms var(--ease-out) forwards;
  animation-delay: var(--fade-delay, 0ms);
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in-item { animation: none; opacity: 1; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section:not(.hero):not(.signature) { padding-block: var(--section-padding); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 {
  font-size: var(--step-2);
  color: var(--sage-dark);
  max-width: 18ch;
}
.section-head__lede {
  margin-top: 16px;
  font-size: var(--step-0);
  color: var(--medium-gray);
  max-width: 52ch;
}

/* Eyebrow: small caps label led by a short rule — the recurring structural
   device that marks the start of every section. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage-ink);
}
.eyebrow__rule {
  width: 40px;
  height: 1px;
  background: var(--sage-ink);
  flex: none;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats { background: var(--sage-dark); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
/* Hairline rules between figures — reads as one measured data strip
   rather than four floating numbers. */
.stat {
  padding-inline: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat:last-child { padding-right: 0; }
.stat__number {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0; /* data, not prose — keep numerals crisp rather than hand-set */
  font-size: var(--step-2);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat--accent .stat__number { color: var(--gold-tint); } /* base --gold measured 2.40:1 on sage-dark, below the 3:1 floor for large text */
.stat__label {
  margin-top: 8px;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85); /* 0.65 measured 3.81:1 on sage-dark, below the 4.5:1 floor for this small text */
}

@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat { padding-inline: 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   Who We Serve — a directory, not a card row.
   Three audiences read as entries in an index: full-measure rows divided by
   hairlines, each opening with a letter marker.
   ========================================================================== */

.directory { border-top: 1px solid var(--light-gray); }
.directory__row { border-bottom: 1px solid var(--light-gray); }

.directory__link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 32px;
  padding: 36px 16px 36px 0;
  transition: background-color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-fast) var(--ease-out);
}
.directory__link:hover {
  background: var(--cream-raised);
  padding-left: 16px;
}

.directory__marker {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: var(--step-1);
  color: var(--sage-ink);
  line-height: 1;
}

.directory__body h3 {
  font-size: var(--step-2);
  color: var(--sage-dark);
  line-height: 1.15;
}
.directory__body p {
  margin-top: 12px;
  max-width: 58ch;
  color: var(--near-black);
}

.directory__action {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--sage-dark);
}
.directory__arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}
.directory__link:hover .directory__arrow { transform: translateX(5px); }

@media (max-width: 860px) {
  .directory__link {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 20px;
    padding-block: 28px;
  }
  .directory__action { grid-column: 2; margin-top: 16px; }
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.how { background: var(--cream-raised); }
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.how__step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--sage-dark);
}
/* The numerals sit on a shared rule, so the three steps read as one
   continuous sequence instead of three parallel cards. */
.how__index {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  background: var(--cream-raised);
  padding-right: 14px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--sage-ink);
}
.how__step h3 { font-size: var(--step-1); color: var(--sage-dark); }
.how__step p { margin-top: 12px; color: var(--near-black); max-width: 42ch; }

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

/* ==========================================================================
   Signature moment
   ========================================================================== */

.signature {
  height: 160vh;
  position: relative;
}
.signature__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-dark-deep);
  overflow: hidden;
}
.signature__text {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 25, "WONK" 1;
  font-size: var(--step-3);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 16ch;
  line-height: 1.2;
}
.signature__word { display: inline; }
.signature__word--accent {
  color: var(--gold);
  display: inline-block;
  transform-origin: center;
  transition: transform 60ms linear, color 60ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .signature { height: auto; }
  .signature__pin { position: relative; height: auto; padding-block: 120px; }
}

@media (max-width: 720px) {
  .signature { height: 130vh; }
}

/* ==========================================================================
   Impact Stories
   ========================================================================== */

/* Quotes are set as pull-quotes, not boxed testimonials. One lead voice at
   display size, two supporting voices beneath it. */
.story { margin: 0; }
.story blockquote { margin: 0; }
.story blockquote p {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  color: var(--sage-dark);
  text-wrap: balance;
}
.story figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  font-size: var(--step--1);
}
.story__name { font-weight: 700; color: var(--near-black); }
.story__role { color: var(--medium-gray); }

.story--lead {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--light-gray);
}
.story--lead blockquote p {
  font-size: var(--step-2);
  line-height: 1.25;
  max-width: 28ch;
}
/* Hanging opening quote — a typographic detail, not a decorative glyph. */
.story--lead blockquote p::before {
  content: "\201C";
  margin-left: -0.42em;
  color: var(--sage-ink);
}
.story--lead blockquote p::after { content: "\201D"; color: var(--sage-ink); }

.stories__pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  margin-top: 56px;
}
.stories__pair .story blockquote p {
  font-size: var(--step-1);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .stories__pair { grid-template-columns: 1fr; gap: 44px; }
  .story--lead { padding-bottom: 44px; }
}

/* ==========================================================================
   In the classroom — real photography, framed as evidence rather than decoration
   ========================================================================== */

/* Sits on cream so it alternates against the white "How it works" block above. */
.classroom__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
}
.classroom__figure { margin: 0; }
/* Both frames share one height so the captions sit on a common baseline;
   the differing column widths do the cropping. */
.classroom__figure img {
  width: 100%;
  height: clamp(260px, 30vw, 430px);
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
}
.classroom__figure figcaption {
  margin-top: 16px;
  font-size: var(--step--1);
  color: var(--medium-gray);
  max-width: 46ch;
}
.classroom__lesson {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-ink);
}

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

/* ==========================================================================
   Lesson library
   ========================================================================== */

.lessons { background: var(--cream-raised); }

.lesson-list {
  border-top: 1px solid var(--light-gray);
}
.lesson {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
  padding-block: 32px;
  border-bottom: 1px solid var(--light-gray);
}
.lesson__tag {
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-ink);
  margin-bottom: 8px;
}
.lesson__head h3 {
  font-size: var(--step-1);
  color: var(--sage-dark);
  line-height: 1.15;
}
.lesson__desc { color: var(--near-black); max-width: 60ch; }
.lesson__main { min-width: 0; }
.lesson__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: var(--step--1);
  color: var(--medium-gray);
}
.lesson__meta span { position: relative; }
.lesson__meta span + span::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  width: 1px; height: 12px;
  transform: translateY(-50%);
  background: var(--light-gray);
}

.lesson__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  min-height: 44px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--sage-dark);
  background: transparent;
  border: 1.5px solid var(--sage-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.lesson__btn:hover { background: var(--sage-dark); color: #fff; }
.lesson__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.lesson__btn:hover .lesson__arrow { transform: translateY(2px); }

.lessons__note {
  margin-top: 36px;
  max-width: 62ch;
  font-size: var(--step--1);
  color: var(--medium-gray);
}

@media (max-width: 900px) {
  .lesson {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 28px;
  }
  .lesson__btn { justify-content: center; }
}

/* ==========================================================================
   Download dialog
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  animation: modal-fade 160ms var(--ease-out);
}
.modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 40px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(26, 26, 26, 0.28);
  animation: modal-rise 200ms var(--ease-out);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal__scrim, .modal__panel { animation: none; }
}

.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--medium-gray);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.modal__close:hover { color: var(--near-black); background: var(--light-gray); }

.modal__panel h2 {
  font-size: var(--step-2);
  color: var(--sage-dark);
  line-height: 1.1;
}
.modal__lede {
  margin-top: 12px;
  font-size: var(--step--1);
  color: var(--medium-gray);
}

.field { margin-top: 26px; border: 0; padding: 0; }
.field > label, .field legend {
  display: block;
  margin-bottom: 8px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--near-black);
  padding: 0;
}
.field__optional { font-weight: 400; color: var(--medium-gray); }
.field input[type="number"], .field input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--near-black);
  background: var(--cream-raised);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus { border-color: var(--sage-dark); }
.field input[aria-invalid="true"] { border-color: #9B2C1F; }
.field__help {
  margin-top: 7px;
  font-size: var(--step--1);
  color: var(--medium-gray);
}
.field__error {
  margin-top: 7px;
  font-size: var(--step--1);
  font-weight: 600;
  color: #9B2C1F;   /* 5.9:1 on cream */
}
.field__error[hidden] { display: none; }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.radio span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: var(--step--1);
  font-weight: 500;
  background: var(--cream-raised);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.radio input:checked + span {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: #fff;
}
.radio input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.modal__submit { width: 100%; justify-content: center; margin-top: 28px; }
.modal__submit[disabled] { opacity: 0.55; cursor: progress; }
.modal__fineprint {
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--medium-gray);
  text-align: center;
}

.modal__done { text-align: center; }
.modal__done[hidden] { display: none; }
.modal__check {
  font-size: 2rem;
  color: var(--sage-ink);
  margin-bottom: 8px;
}
.modal__done .modal__lede { margin-inline: auto; max-width: 40ch; }
.modal__fallback { margin-top: 18px; font-size: var(--step--1); color: var(--medium-gray); }
.modal__fallback a { color: var(--sage-dark); font-weight: 600; border-bottom: 1.5px solid var(--sage-dark); }
.modal__done .btn { margin-top: 24px; }

body.is-modal-open { overflow: hidden; }

@media (max-width: 540px) {
  .modal__panel { padding: 32px 22px; }
}

/* ==========================================================================
   Interior pages — shared head, prose, bands
   ========================================================================== */

.page-head {
  background: var(--sage-dark);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  padding-block: 88px 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-head .eyebrow { color: var(--sage-pale); }
.page-head .eyebrow__rule { background: var(--sage-pale); }
.page-head h1 {
  font-size: var(--step-2);
  color: #fff;
  max-width: 20ch;
}
.page-head__lede {
  margin-top: 20px;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.82);
}

.track-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.track-jump a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: var(--step--1);
  font-weight: 600;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.track-jump a:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.track-jump span {
  font-variant-numeric: tabular-nums;
  color: var(--sage-pale);
}

/* Prose bands (About) */
.prose-band { padding-block: var(--section-padding); }
.prose-band--raised { background: var(--cream-raised); }
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 48px;
}
.prose-grid__aside .eyebrow { margin-bottom: 0; }
.prose > * + * { margin-top: 20px; }
.prose p { max-width: 64ch; }
.inline-link {
  font-weight: 600;
  color: var(--sage-dark);
  border-bottom: 1.5px solid var(--sage-dark);
}

.beats { display: grid; gap: 4px; margin-top: 28px; }
.beats li {
  display: grid;
  grid-template-columns: 44px minmax(0, 150px) minmax(0, 110px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-block: 18px;
  border-top: 1px solid var(--light-gray);
}
.beats__num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--sage-ink);
}
.beats__label { font-weight: 700; }
.beats__dur { font-size: var(--step--1); color: var(--medium-gray); }
.beats__text { font-size: var(--step--1); color: var(--medium-gray); }

.chapter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chapter-list span {
  padding: 7px 14px;
  font-size: var(--step--1);
  font-weight: 500;
  background: var(--cream-raised);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
}
.prose-band--raised .chapter-list span { background: var(--cream); }

@media (max-width: 860px) {
  .prose-grid { grid-template-columns: 1fr; gap: 20px; }
  .beats li { grid-template-columns: 32px 1fr; row-gap: 6px; }
  .beats__dur, .beats__text { grid-column: 2; }
}

/* CTA band shared by interior pages */
.cta-band {
  background: var(--sage-dark-deep);
  padding-block: 88px;
}
.cta-band__inner { text-align: center; max-width: 620px; }
.cta-band h2 { font-size: var(--step-2); color: #fff; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, 0.82); }
.cta-band .btn { margin-top: 32px; }

/* ==========================================================================
   Curriculum index
   ========================================================================== */

.track { padding-block: var(--section-padding); }
.track:nth-of-type(even) { background: var(--cream-raised); }
.track__head { max-width: 640px; margin-bottom: 48px; }
.track__head h2 { font-size: var(--step-2); color: var(--sage-dark); }
.track__head p { margin-top: 12px; color: var(--medium-gray); max-width: 56ch; }

.lesson__head h3 a {
  color: var(--sage-dark);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.lesson__head h3 a:hover { border-bottom-color: var(--sage-dark); }

.lesson__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.lesson__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  font-size: var(--step--1);
  font-weight: 600;
  color: #fff;
  background: var(--sage-dark);
  border: 1.5px solid var(--sage-dark);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.lesson__view:hover { background: var(--sage-dark-deep); border-color: var(--sage-dark-deep); }
.lesson__view .lesson__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.lesson__view:hover .lesson__arrow { transform: translateX(4px); }

.lessons__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin-top: 40px;
}
.lessons__more .lessons__note { margin-top: 0; flex: 1 1 320px; }

@media (max-width: 900px) {
  .lesson__actions { flex-direction: column; }
}

/* ==========================================================================
   Get Involved — paths
   ========================================================================== */

.paths { padding-block: var(--section-padding); }
.path-list { border-top: 1px solid var(--light-gray); }
.path {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 32px;
  padding-block: 48px;
  border-bottom: 1px solid var(--light-gray);
}
.path__marker {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: var(--step-1);
  color: var(--sage-ink);
  line-height: 1;
}
.path__body h2 { font-size: var(--step-2); color: var(--sage-dark); }
.path__body > p { margin-top: 14px; max-width: 60ch; }
.path__points {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  max-width: 60ch;
}
.path__points li {
  position: relative;
  padding-left: 22px;
  font-size: var(--step--1);
  color: var(--medium-gray);
}
.path__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 1.5px;
  background: var(--sage-ink);
}
.path__body .btn, .path__actions { margin-top: 28px; }
.path__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.path__actions .btn { margin-top: 0; }

@media (max-width: 720px) {
  .path { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-block: 36px; }
}

/* ==========================================================================
   Lesson plan page
   ========================================================================== */

.crumbs { padding-block: 28px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); }
.crumbs li { color: var(--medium-gray); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--light-gray); }
.crumbs a { color: var(--sage-dark); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

.lp__head {
  padding-block: 40px 48px;
  border-bottom: 1px solid var(--light-gray);
}
.lp__head h1 {
  font-size: var(--step-2);
  color: var(--sage-dark);
  max-width: 20ch;
}
.lp__summary {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--near-black);
}
.lp__head .lesson__meta { margin-top: 20px; }
.lp__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.lp__format {
  font-size: var(--step--1);
  color: var(--medium-gray);
  max-width: 42ch;
}

.lp__intro { padding-block: 40px 0; max-width: 64ch; }
.lp__intro p + p { margin-top: 16px; }

.lp__body { padding-block: 24px 0; }
.lp__section {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 40px;
  padding-block: 40px;
  border-bottom: 1px solid var(--light-gray);
}
.lp__marker { display: flex; flex-direction: column; gap: 4px; }
.lp__num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: var(--step-1);
  color: var(--sage-ink);
  line-height: 1;
}
.lp__label { font-weight: 700; font-size: var(--step--1); }
.lp__dur { font-size: var(--step--1); color: var(--medium-gray); }

.lp__content h2 {
  font-size: var(--step-1);
  color: var(--sage-dark);
  max-width: 46ch;
}
.lp__content > .lp-list { margin-top: 18px; }

.lp-list { display: grid; gap: 10px; }
.lp-list li { position: relative; padding-left: 22px; max-width: 64ch; }
.lp-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.66em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
/* Wrapper inserted where the source document skipped an indent level —
   it holds a nested list, so it carries no marker of its own. */
.lp-list .lp-wrap { padding-left: 0; }
.lp-list .lp-wrap::before { display: none; }

.lp-list--1, .lp-list--2 { margin-top: 10px; }
.lp-list--1 > li, .lp-list--2 > li {
  font-size: var(--step--1);
  color: var(--medium-gray);
}
.lp-list--1 > li::before {
  width: 8px; height: 1.5px;
  border-radius: 0;
  background: var(--sage-ink);
  top: 0.72em;
}
.lp-list--2 > li::before {
  width: 5px; height: 5px;
  background: none;
  border: 1.5px solid var(--medium-gray);
}
.lp-list a { color: var(--sage-dark); font-weight: 600; text-decoration: underline; word-break: break-word; }

.lp__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-block: 48px 96px;
}
.lp__nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--cream-raised);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.lp__nav-link:hover { border-color: var(--sage-dark); }
.lp__nav-link--next { text-align: right; }
.lp__nav-dir {
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-ink);
}
.lp__nav-title { font-family: var(--font-display); font-size: var(--step-1); color: var(--sage-dark); }

@media (max-width: 860px) {
  .lp__section { grid-template-columns: 1fr; gap: 16px; }
  .lp__marker { flex-direction: row; align-items: baseline; gap: 12px; }
  .lp__nav { grid-template-columns: 1fr; }
  .lp__nav-link--next { text-align: left; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: var(--gold);
  border-block: 1px solid rgba(33, 23, 5, 0.15);
}
.final-cta__inner { text-align: center; max-width: 640px; }
.final-cta h2 { font-size: var(--step-2); color: #211705; }
.final-cta p { margin-top: 16px; font-size: var(--step-0); color: #3a2a0d; }
.final-cta__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-cta .btn--primary { background: #211705; color: #fff; }
.final-cta .btn--primary:hover { background: #362510; }
.final-cta .btn--outline-dark { border-color: #211705; color: #211705; }
.final-cta .btn--outline-dark:hover { background: #211705; color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--sage-dark-deep); color: rgba(255, 255, 255, 0.75); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 72px 48px;
}
.site-footer__logo { margin-bottom: 4px; }
.site-footer__logo .logo__mark { width: 132px; height: 42px; }
.site-footer__brand p:not(.site-footer__logo) { margin-top: 12px; }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .btn { margin-top: 16px; }

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 24px;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.5);
}

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