/* ==========================================================================
   All Means All — Building Early Evidence (evaluation launch site)
   Brand: assets/brand/brand_palette.md · WCAG-approved pairs only:
     Raisin text on White / Cream / Soft Peach / Lime / Lilac
     White text on Forest / Raisin
     Forest text on White / Cream (and large-type only on Soft Peach)
   Jade + Tiger Orange are decorative accents, never small text.
   ========================================================================== */

:root {
  --raisin: #3D363F;
  --jade: #00BA86;
  --forest: #027753;
  --lime: #E2E768;
  --lilac: #DBC3DB;
  --periwinkle: #5B7FBD;
  --orange: #FE6232;
  --peach: #FBD8BA;
  --cream: #FAF1E9;
  --white: #FFFFFF;
  --border: rgba(61, 54, 63, 0.14);
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1160px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--raisin);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 900; }
p { margin: 0 0 1em; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--raisin); }
::selection { background: var(--lime); color: var(--raisin); }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}
.thesis :focus-visible, .cta :focus-visible, .site-footer :focus-visible {
  outline-color: var(--lime);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--raisin); color: var(--white);
  padding: 0.7rem 1.2rem; border-radius: 0 0 12px 12px;
  font-weight: 700; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 820px; }

.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band--cream { background: var(--cream); }
section { scroll-margin-top: 96px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1.1rem;
}
.eyebrow--ondark { color: var(--lime); }

h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 22ch; }
.container--narrow h2 { max-width: none; }
h3 { font-size: 1.3rem; font-weight: 800; }

/* No opacity here: it would drag the forest links inside below AA contrast */
.fineprint { font-size: 0.875rem; max-width: 70ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--forest); color: var(--white); }
.btn--primary:hover { background: var(--raisin); color: var(--white); }
.btn--ghost { border-color: var(--raisin); color: var(--raisin); background: transparent; }
.btn--ghost:hover { background: var(--raisin); color: var(--white); }
.btn--light { background: var(--white); color: var(--forest); }
.btn--light:hover { background: var(--lime); color: var(--raisin); }
.btn--ghost-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--forest); }
.btn--soon {
  background: var(--peach);
  color: var(--raisin);
  border: 2px dashed rgba(61, 54, 63, 0.4);
  cursor: default;
}
.btn--soon:hover { transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}
.nav__logo img { width: 56px; height: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
.nav__links { display: flex; gap: 1.25rem; }
.nav__links a {
  color: var(--raisin);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--forest); text-decoration: underline; }
.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.92rem; }
.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--raisin);
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--raisin);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}
.nav__toggle-bar {
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--raisin);
  position: relative;
}
.nav__toggle-bar::before, .nav__toggle-bar::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--raisin);
}
.nav__toggle-bar::before { top: -6px; }
.nav__toggle-bar::after { top: 6px; }

/* 1020px, not 860: the six-item nav needs ~1000px before it collides with the
   Download button. Re-measure this if a nav label is added or lengthened. */
@media (max-width: 1020px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    gap: 1rem;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0.9rem; }
  .nav__links a { font-size: 1.05rem; }
  /* No-JS fallback: keep the menu reachable if app.js never runs */
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__menu {
    display: flex;
    position: static;
    border-bottom: 0;
    padding: 0 0 1rem;
  }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.55rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}
.squiggle {
  font-style: normal;
  background-image: linear-gradient(transparent 64%, var(--lime) 64%, var(--lime) 94%, transparent 94%);
}
.hero__sub { font-size: 1.125rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero__photo img { margin-inline: auto; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}
.stat-card__num {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.stat-card__unit { font-size: 0.55em; font-weight: 800; color: var(--raisin); }
.stat-card__label { font-size: 0.9rem; line-height: 1.45; }

/* Comparator strip. Two of the four headline numbers are DIFFERENCES vs. matched
   schools and two are AMA's own growth; this strip is what keeps a reader from
   ranking them against each other as if they were the same quantity. It sits in
   the same slot on every card by design — see the note in index.html. */
.stat-card__vs, .bothand__vs {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  color: var(--raisin);
}
.tag--all { background: var(--lime); }    /* the all-students result */
.tag--group { background: var(--lilac); } /* a spotlighted student group */

/* "Students with disabilities" wraps to two lines in the four-up grids while the
   other three tags don't, which drops that card's number off the shared baseline.
   Reserving two lines' height keeps the row reading as one set of comparable
   figures — the visual consistency is the whole point of the row. */
.stat-row .tag, .bothand-grid .tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  line-height: 1.25;
}
/* Only the four-up layouts are narrow enough to wrap that tag. Below each grid's
   own 4-col breakpoint the label fits on one line, so release the reserved height
   — otherwise every tag becomes a two-line-tall pill holding one line of text
   (which is how it looks on an iPad at 768px). Keep these in step with the
   .stat-row / .bothand-grid column breakpoints below. */
@media (max-width: 960px) { .stat-row .tag { min-height: 0; } }
@media (max-width: 900px) { .bothand-grid .tag { min-height: 0; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 440px; margin-inline: auto; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ---------- Thesis band (dark) ---------- */
.thesis {
  background: var(--raisin);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.thesis__inner { max-width: 880px; }
.thesis h2 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 2.8rem); max-width: none; }
.thesis__body { font-size: 1.15rem; max-width: 62ch; }
.u {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.thesis__quote {
  margin: 2.2rem 0 0;
  border-left: 4px solid var(--jade);
  padding-left: 1.4rem;
}
.thesis__quote p {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.4em;
}
.thesis__quote cite { font-style: normal; color: var(--lilac); font-size: 0.95rem; }

/* ---------- Split layouts (copy + photo) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--tight { margin-bottom: clamp(2rem, 4vw, 3rem); }
.split__photo img { margin-inline: auto; }
.split__photo--small { max-width: 420px; justify-self: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__photo { max-width: 420px; margin-inline: auto; }
}

/* Swappability: raw color photos dropped into assets/photos/ get the
   live-site treatment automatically with this class on the <img>. */
.photo--raw {
  filter: grayscale(1);
  border-radius: 58% 42% 45% 55% / 52% 48% 52% 48%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ---------- The Idea ---------- */
.callout {
  background: var(--white);
  border-left: 6px solid var(--jade);
  border-radius: 14px;
  padding: 1.4rem 1.6rem 1.1rem;
  margin-top: 1.8rem;
}
.callout h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.callout p { margin-bottom: 0.3em; }

/* The national-context stat row (1 in 5 / 7.3M / 90%) was removed 2026-07-26 at
   the client's request: the study covered five demographic markers, not only
   students with disabilities, and the section reads shorter without it. */

/* ---------- Study at a glance ---------- */
.cred-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-block: 1.5rem 2rem;
}
.cred {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cred__num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.1;
}
/* For word-valued cards ("Quasi-experimental") that would otherwise wrap badly */
.cred__num--sm { font-size: 1.05rem; letter-spacing: -0.01em; }
.cred__label { font-size: 0.84rem; line-height: 1.4; }
@media (max-width: 1000px) { .cred-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .cred-row { grid-template-columns: repeat(2, 1fr); } }

.study__plain {
  max-width: 72ch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}
.tag-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 1.8rem;
}
.tag-group__title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
}
@media (max-width: 760px) { .tag-groups { grid-template-columns: 1fr; } }

/* ---------- Findings ---------- */
.finding {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-top: 1.4rem;
  max-width: 880px;
}
.finding__kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.8rem;
}
.finding h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); max-width: 30ch; }
.finding p { max-width: 66ch; }
.finding__translate {
  font-weight: 700;
  border-top: 2px solid var(--lime);
  padding-top: 0.9rem;
  margin-bottom: 0;
}

.finding__stats { margin: 1.2rem 0 1.4rem; }
.shift {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}
.shift__from {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  opacity: 0.75;
}
.shift__arrow { font-size: 1.5rem; color: var(--raisin); }
.shift__to { font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--forest); }
.shift__caption { font-size: 0.9rem; margin-bottom: 0; }

.finding--bothand {
  background: var(--peach);
  border: none;
}
/* Forest on Soft Peach is 4.2:1 — below AA for small text; use Raisin here */
.finding--bothand .finding__kicker { color: var(--raisin); }
.bothand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin: 1.4rem 0 1.4rem;
}
.bothand-grid li {
  background: var(--white);
  border-radius: 16px;
  padding: 1.1rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.bothand__num {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}
.bothand__label { font-size: 0.85rem; line-height: 1.4; }
.finding--bothand .finding__translate { border-top-color: var(--white); }
@media (max-width: 900px) { .bothand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bothand-grid { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.case {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.case h3 { font-size: 1.35rem; }
.case__context { font-size: 0.98rem; }
.case__metrics div {
  border-top: 1px solid var(--border);
  padding: 0.9rem 0 0.8rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}
.case__metrics dt { font-size: 0.9rem; }
.case__metrics dd {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 900;
  color: var(--forest);
}
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Patterns ---------- */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: pattern;
}
.pattern {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
  counter-increment: pattern;
}
.pattern::before {
  content: "0" counter(pattern);
  display: inline-block;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--raisin);
  background: var(--lime);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.9rem;
}
.pattern h3 { font-size: 1.08rem; }
.pattern p { font-size: 0.95rem; margin-bottom: 0.3em; }
@media (max-width: 960px) { .pattern-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pattern-grid { grid-template-columns: 1fr; } }

/* ---------- Bottom line ---------- */
.bottomline__lede { font-size: 1.05rem; max-width: 68ch; }
.bottomline__quote {
  margin: 1.8rem 0 2rem;
  border-left: 4px solid var(--jade);
  padding-left: 1.5rem;
}
.bottomline__quote p {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.5;
}
.bottomline__quote cite { font-style: normal; font-size: 0.95rem; }
.honest {
  background: var(--lilac);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.honest h3 { font-size: 1.2rem; }
.honest p:last-child { margin-bottom: 0; }

/* ---------- Downloads ---------- */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  max-width: 980px;
}
.download {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.download p { max-width: 46ch; }
.download .btn { margin-top: auto; }
.download .fineprint { margin: 0.9rem 0 0; }
@media (max-width: 760px) { .download-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  background: var(--forest);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
.cta h2 { color: var(--white); max-width: none; }
.cta p { max-width: 58ch; margin-inline: auto; font-size: 1.1rem; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.8rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--raisin);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.8rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--lime); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer__brand img { width: 96px; margin-bottom: 1rem; }
.footer__brand p { font-weight: 700; max-width: 26ch; }
.footer__nav li, .footer__contact li { margin-bottom: 0.55rem; }
.footer__legal { padding-top: 1.6rem; }
.footer__legal p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 0.4em; }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- Scroll reveal (JS-gated, reduced-motion safe) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .skip-link { transition: none; }
  .btn:hover { transform: none; }
}
