/* Close Education — site styles
   Layout: open white pages, generous left-aligned type, photos cropped into the logo's droplet shapes,
   one deep-slate band for proof and the footer. */
:root {
  /* brand (from Close Ed Color Scheme): Slate Blue #0774A4 · Grey #BDBEC0 · Charcoal #808080 · White */
  --blue: #0774A4;
  --blue-strong: #055a80;
  --blue-soft: #e6f1f7;
  --grey: #BDBEC0;
  --charcoal: #808080;
  --gold: #E9A825;           /* used only for Gold Medal / highlights */
  --bg: #ffffff;
  --surface: #f4f7f9;
  --fg: #12232d;
  --muted: #55626b;
  --line: #dde3e7;
  --band: #0b2f42;           /* deep slate band (proof strip, footer) */
  --band-fg: #e8f1f6;
  --band-muted: #9fb7c4;
  --card: #ffffff;
  --logo-bg: transparent;
  --tab-card: #ffffff; --tab-page: #ffffff; --logo-lt: block; --logo-dk: none;
  --logo-pad: 0;
  --shadow: 0 1px 2px rgba(11, 47, 66, .06), 0 8px 24px rgba(11, 47, 66, .08);

  --font-display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);

  --radius: 14px;
  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #4fb3e0; --blue-strong: #7cc8ea; --blue-soft: #12303f;
    --bg: #0c1a22; --surface: #112430; --fg: #e7eff3; --muted: #a3b4bd; --line: #21394a;
    --band: #071820; --band-fg: #e8f1f6; --band-muted: #8fa8b5; --card: #132a37; --logo-bg: #ffffff; --logo-pad: .55rem .8rem; --tab-card: #132a37; --tab-page: #0c1a22; --logo-lt: none; --logo-dk: block;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #4fb3e0; --blue-strong: #7cc8ea; --blue-soft: #12303f;
  --bg: #0c1a22; --surface: #112430; --fg: #e7eff3; --muted: #a3b4bd; --line: #21394a;
  --band: #071820; --band-fg: #e8f1f6; --band-muted: #8fa8b5; --card: #132a37; --logo-bg: #ffffff; --logo-pad: .55rem .8rem; --tab-card: #132a37; --tab-page: #0c1a22; --logo-lt: none; --logo-dk: block;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: var(--step-4); font-weight: 300; }
h2 { font-size: var(--step-3); font-weight: 300; }
h3 { font-size: var(--step-1); font-weight: 500; }
h1 strong, h2 strong { font-weight: 600; color: var(--blue); }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; line-height: 1.5; }
.prose { max-width: 65ch; display: grid; gap: 1rem; }
.eyebrow {
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
}
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* layout */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section.alt { background: var(--surface); }
.section-head { display: grid; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #06202c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06202c; } }
.btn-primary:hover { background: var(--blue-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--band); color: var(--band-muted); font-size: var(--step--1); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { color: var(--band-fg); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .contact-line { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .m { height: 54px; width: auto; }
.brand .w { height: 21px; width: auto; }
@media (max-width: 400px) { .brand .m { height: 44px; } .brand .w { height: 18px; } }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display); font-size: .95rem; color: var(--fg); text-decoration: none;
  padding: .5rem .8rem; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav-links .btn { margin-left: .5rem; padding: .6rem 1.1rem; color: #fff; }
.nav-links .btn:hover { background: var(--blue-strong); color: #fff; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--fg); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter-r) 1.25rem var(--gutter); gap: .25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
  .nav-links .btn { margin: .5rem 0 0; justify-content: center; }
  .topbar .hide-sm { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero .grid-2 { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 860px) { .hero .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 1.5rem; align-content: center; }
.hero-mark {
  position: absolute; right: -120px; top: -90px; width: 520px; opacity: .07; pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-figure { position: relative; }
.blob {
  border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%;
  overflow: hidden; aspect-ratio: 1 / 1; max-width: 100%; background: var(--blue-soft);
}
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob-sm {
  position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  left: -4%; bottom: -2%; border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.blob-sm img { width: 100%; height: 100%; object-fit: cover; }
.dot { position: absolute; border-radius: 50%; background: var(--blue); }
.dot.a { width: 34px; height: 34px; right: 6%; top: 2%; }
.dot.b { width: 16px; height: 16px; right: 0; top: 14%; background: var(--grey); }
.dot.c { width: 22px; height: 22px; left: 30%; bottom: -6%; background: var(--grey); }
.stat-float {
  position: absolute; right: -2%; bottom: 10%; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.2rem; max-width: 250px; display: grid; gap: .25rem;
}
.stat-float b { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--blue); line-height: 1; }
.stat-float span { font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
.stat-float .medal { display: inline-flex; gap: .4rem; align-items: center; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); font-weight: 700; }
.stat-float .medal i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: inline-block; }
@media (max-width: 560px) { .stat-float { position: relative; right: auto; bottom: auto; margin: -2.5rem 0 0 auto; } .blob-sm { width: 30%; } }

.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--step--1); color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: 1.25rem; position: relative; z-index: 1; }
.page-hero .hero-mark { width: 440px; top: -60px; right: -100px; }
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: var(--muted); }

/* districts band */
.band { background: var(--band); color: var(--band-fg); }
.band .eyebrow { color: var(--band-muted); }
.districts { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.districts ul { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; width: max-content; animation: scroll 60s linear infinite; }
.districts li { font-family: var(--font-display); font-weight: 300; font-size: 1.15rem; white-space: nowrap; color: var(--band-fg); display: flex; align-items: center; gap: 2.5rem; }
.districts li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.districts:hover ul { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.band-head a { color: var(--band-fg); }

/* program cards */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .programs { grid-template-columns: minmax(0, 1fr); } }
.program {
  display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.program:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.program-img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.program:hover .program-img img { transform: scale(1.03); }
.program-tag {
  position: absolute; left: 1rem; top: 1rem; background: var(--bg); color: var(--fg); font-family: var(--font-display);
  font-size: .8rem; font-weight: 500; padding: .35rem .75rem; border-radius: 999px; letter-spacing: .04em;
}
.program-body { padding: 1.75rem; display: grid; gap: .9rem; align-content: start; }
.program-body h3 { font-size: var(--step-2); font-weight: 400; }
.program-body .who { font-size: var(--step--1); color: var(--blue); font-weight: 700; letter-spacing: .02em; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; }
.checks li::before {
  content: ""; width: 18px; height: 18px; margin-top: .2rem; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230774A4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.text-link { font-family: var(--font-display); font-weight: 500; color: var(--blue); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
.stat b { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { font-size: var(--step--1); color: var(--fg); }
.stat cite { font-style: normal; font-size: .8rem; color: var(--muted); }

/* why / features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
@media (max-width: 640px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.feature .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); }
.feature .ic svg { width: 22px; height: 22px; }
.feature div { display: grid; gap: .35rem; min-width: 0; }
.feature p { color: var(--muted); font-size: 1rem; }

.photo-rounded { border-radius: calc(var(--radius) + 10px); overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; }
.photo-rounded img { width: 100%; height: 100%; object-fit: cover; }

/* founder */
.founder { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .founder { grid-template-columns: minmax(0, 1fr); } .founder .portrait { max-width: 320px; } }
.portrait { position: relative; }
.portrait .blob { aspect-ratio: 4 / 5; border-radius: 48% 52% 44% 56% / 40% 42% 58% 60%; }
.portrait .blob img { object-position: 50% 20%; }
blockquote { margin: 0; }
.big-quote { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.35; text-wrap: pretty; }
.big-quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--blue); font-weight: 600; margin-bottom: .5rem; }
.sig { display: grid; gap: .1rem; margin-top: 1.5rem; }
.sig b { font-family: var(--font-display); font-weight: 500; }
.sig span { color: var(--muted); font-size: var(--step--1); }

/* testimonial cards */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.quote-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: grid; grid-template-rows: auto 1fr auto; gap: 1.25rem; }
.quote-card:not(:has(.pill)) { grid-template-rows: 1fr auto; }
.quote-card blockquote { font-size: 1.05rem; line-height: 1.55; }
.quote-card .who { display: grid; gap: .1rem; font-size: var(--step--1); border-top: 1px solid var(--line); padding-top: 1rem; }
.quote-card .who b { font-family: var(--font-display); font-weight: 500; font-size: .95rem; }
.quote-card .who span { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); width: max-content; max-width: 100%; }
.pill.gold { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--fg); }
.pill.gold::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* steps (real sequences only) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; display: grid; gap: .6rem; padding-top: 1.25rem; border-top: 2px solid var(--blue); align-content: start; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--blue); }
.steps p { color: var(--muted); font-size: 1rem; }

/* levels ladder (Whole Phonics scope & sequence) */
.ladder { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 0; }
.ladder li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1.1rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ladder li:nth-child(1) { margin-right: 32%; } .ladder li:nth-child(2) { margin-right: 24%; } .ladder li:nth-child(3) { margin-right: 16%; } .ladder li:nth-child(4) { margin-right: 8%; }
.ladder b { font-family: var(--font-display); font-weight: 500; color: var(--blue); }
.ladder span { color: var(--fg); }
@media (max-width: 640px) { .ladder li { grid-template-columns: minmax(0, 1fr); gap: .25rem; margin-right: 0 !important; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .95rem; }

/* honor roll table-ish list */
.roll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .roll { grid-template-columns: minmax(0, 1fr); } }
.roll article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: grid; gap: .6rem; align-content: start; }
.roll h3 { font-size: 1.1rem; }
.roll .place { font-size: var(--step--1); color: var(--muted); }
.roll p { font-size: 1rem; }

/* letters */
.letters { display: grid; gap: 1.25rem; }
.letter { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.letter:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .letter { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
.letter .meta { display: grid; gap: .35rem; align-content: start; }
.letter .meta b { font-family: var(--font-display); font-weight: 500; }
.letter .meta span { color: var(--muted); font-size: var(--step--1); }
.letter .body { display: grid; gap: 1rem; max-width: 65ch; }
.letter .figure { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; color: var(--blue); line-height: 1.2; }

.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .videos { grid-template-columns: minmax(0, 1fr); } }
.video { display: grid; gap: .75rem; text-decoration: none; color: inherit; padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.video:hover { border-color: var(--blue); transform: translateY(-2px); }
.video .play { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.video .play::after { content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.video p { color: var(--muted); font-size: 1rem; }

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); } }
.member { display: grid; gap: 1rem; align-content: start; }
.member .avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--blue-soft); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--blue); font-weight: 400; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.member .role { color: var(--blue); font-size: var(--step--1); font-weight: 700; }
.member p { color: var(--muted); font-size: 1rem; }

/* CTA band */
.cta { background: var(--blue-soft); border-radius: calc(var(--radius) + 14px); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }
.cta h2 { font-size: var(--step-3); }
.cta .contact-cards { display: grid; gap: .75rem; position: relative; z-index: 1; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 1rem 1.25rem; display: grid; gap: .1rem; }
.contact-card span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card a, .contact-card b { font-family: var(--font-display); font-size: 1.15rem; color: var(--fg); text-decoration: none; font-weight: 400; user-select: all; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--blue); }
.cta .hero-mark { width: 420px; right: -60px; top: -40px; opacity: .08; }

/* contact form */
.form { display: grid; gap: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--fg); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checkset { display: flex; flex-wrap: wrap; gap: .5rem; }
.checkset label { display: inline-flex; gap: .5rem; align-items: center; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 400; cursor: pointer; }
.checkset input { width: auto; accent-color: var(--blue); }
.checkset label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-success { background: var(--blue-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; gap: .3rem; }
.form-success b { font-family: var(--font-display); font-weight: 500; }

details.faq { border-top: 1px solid var(--line); padding-block: 1.1rem; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: .75rem; color: var(--muted); max-width: 65ch; }

/* footer */
.site-footer { background: var(--band); color: var(--band-muted); padding-block: 3.5rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--band-fg); font-weight: 500; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--band-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--band-fg); }
.footer-brand { display: grid; gap: 1rem; align-content: start; }

.footer-brand p { max-width: 32ch; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); }

/* reveal (content visible at rest; only enhances) */
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-error { background: color-mix(in srgb, #c0392b 12%, transparent); color: var(--fg); border-left: 3px solid #c0392b; border-radius: 8px; padding: .8rem 1rem; font-size: .95rem; }
.btn:disabled { opacity: .7; cursor: progress; }

/* partner program logos (white chip in dark mode so dark lettering stays legible) */
.plogo { display: inline-flex; align-items: center; width: max-content; max-width: 100%; background: var(--logo-bg); padding: var(--logo-pad); border-radius: 12px; }
.plogo img { width: auto; max-width: 100%; height: auto; }
.logo-h { line-height: 0; }

/* program logo badge set into photos (always on white so the logo reads on any photo) */
.img-logo { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; background: #ffffff; border-radius: 12px; padding: .55rem .8rem; box-shadow: 0 6px 20px rgba(11, 47, 66, .22); max-width: calc(100% - 2rem); }
.img-logo img { width: auto; max-width: 100%; }
.hero-figure > .img-logo { left: 1.25rem; bottom: 1.25rem; }
.hero-figure > .blob + .img-logo { left: 2%; bottom: 8%; }
@media (max-width: 560px) { .hero-figure > .img-logo img, .program-img .img-logo img { height: auto !important; max-height: 40px; } }

/* logo tab: a white tab cut into the photo's bottom-right corner that runs into the white below */
.logo-tab {
  --tab: var(--tab-card); --r: 16px;
  position: absolute; right: 0; bottom: 0; z-index: 2; display: inline-flex; align-items: flex-end;
  background: var(--tab); border-top-left-radius: var(--r); padding: .75rem 1.1rem .35rem 1.2rem;
}
.logo-tab::before, .logo-tab::after {
  content: ""; position: absolute; width: var(--r); height: var(--r); pointer-events: none;
  background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--tab) var(--r));
}
.logo-tab::before { left: calc(var(--r) * -1); bottom: 0; }
.logo-tab::after { right: 0; top: calc(var(--r) * -1); }
.logo-tab img { width: auto; max-width: 100%; display: block; }
.program-img .logo-tab { padding-bottom: 0; }
.hero-figure > .logo-tab { --tab: var(--tab-page); --r: 20px; padding: 1rem 0 0 1.4rem; }
@media (max-width: 560px) { .logo-tab img { height: auto !important; max-height: 36px; } }
.logo-tab .lt { display: var(--logo-lt); } .logo-tab .dk { display: var(--logo-dk); }

/* header nav: never overlap the logo; if labels wrap, keep lines tight and centered */
.nav .brand { flex-shrink: 0; }
.nav-links { flex-wrap: nowrap; }
.nav-links li { min-width: 0; }
.nav-links a { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.08; }
.nav-links .btn { line-height: 1.08; text-align: center; justify-content: center; }
@media (max-width: 940px) { .nav-links a { justify-content: flex-start; text-align: left; } .nav-links .btn { justify-content: center; } }

/* territory + state labels */
.state-pill { display: inline-flex; align-items: center; gap: .5rem; width: max-content; max-width: 100%; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: .4rem .8rem; border-radius: 999px; }
.state-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.territory { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; padding-top: .25rem; }
.territory div { display: grid; gap: .1rem; padding-left: .85rem; border-left: 2px solid var(--blue); }
.territory b { font-family: var(--font-display); font-weight: 500; font-size: .95rem; }
.territory span { font-size: var(--step--1); color: var(--muted); }

/* by-the-numbers row */
.numfigs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.numfigs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .numfigs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.numfig { display: grid; gap: .4rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--blue); min-width: 0; }
.numfig b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); color: var(--blue); line-height: 1.05; font-variant-numeric: tabular-nums; }
.numfig span { font-size: .95rem; color: var(--muted); }

/* six-step cycle */
.steps.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; column-gap: 2rem; }
@media (max-width: 1100px) { .steps.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps.steps-6 { grid-template-columns: minmax(0, 1fr); } }

/* audience columns */
.tool-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; align-content: start; }
.tool-col h3 { font-size: 1.2rem; }
.tool-col .checks { font-size: .98rem; }

/* Whole Phonics resource suite */
.suite { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.suite-item { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 1.6rem; display: grid; gap: .8rem; align-content: start; }
.suite-item:nth-child(4) { grid-column: 2 / span 2; }
.suite-item p { color: var(--muted); font-size: 1rem; }
.suite-item .checks { font-size: .95rem; }
.suite-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 600; }
@media (max-width: 960px) { .suite { grid-template-columns: repeat(2, minmax(0, 1fr)); } .suite-item, .suite-item:nth-child(4) { grid-column: auto; } }
@media (max-width: 600px) { .suite { grid-template-columns: minmax(0, 1fr); } }

/* book covers */
.covers { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.covers li { flex: 0 0 auto; scroll-snap-align: start; }
.covers img { height: 190px; width: auto; border-radius: 8px; box-shadow: var(--shadow); transition: transform .25s; }
.covers li:nth-child(odd) img { transform: rotate(-1.5deg); }
.covers li:nth-child(even) img { transform: rotate(1.5deg); }
.covers li:hover img { transform: rotate(0) translateY(-4px); }

/* six-level ladder */
.ladder li:nth-child(1) { margin-right: 15%; } .ladder li:nth-child(2) { margin-right: 12%; } .ladder li:nth-child(3) { margin-right: 9%; }
.ladder li:nth-child(4) { margin-right: 6%; } .ladder li:nth-child(5) { margin-right: 3%; } .ladder li:nth-child(6) { margin-right: 0; }
.ladder li.soon { border-style: dashed; background: transparent; }
.ladder li.soon b { color: var(--muted); }
.stat b, .numfig b { overflow-wrap: anywhere; }
.ladder li { grid-template-columns: 100px minmax(0, 1fr); }
.tool-extra { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .35rem; }
.tool-extra b { font-family: var(--font-display); font-weight: 500; }
.tool-extra p { color: var(--muted); font-size: .95rem; }
.numfigs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .numfigs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
