/* ABCHESS K–12 landing page — tokens from the ABCHESS Brand Book v1.0 */
:root {
  --paper: #F3EEE6;
  --paper-2: #FBF8F3;
  --linen: #E9E0D2;
  --grid: #E7DFD3;
  --line: #D8CEBF;
  --ink: #22191B;
  --muted: #5E5566;
  --wine: #5D2D32;
  --ember: #B8532A;
  --sand: #C3AB7F;
  --stone: #CAB6A3;
  --peach: #F2B47E;
  --gold: #D9A441;
  --rose: #E7A99B;

  --f-display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif;
  --f-body: 'Geist', Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace;
  --f-serif: 'Instrument Serif', Georgia, serif;

  --gx: clamp(20px, 6.67vw, 96px);
  --sy: clamp(72px, 7.6vw, 110px);
  --h2: clamp(40px, 3vw + 1.4rem, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--wine); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.wrap { max-width: 1248px; margin: 0 auto; }
.section { position: relative; padding: var(--sy) var(--gx); }

/* Type */
h1, h2, h3, .disp {
  font-family: var(--f-display);
  font-stretch: 88%;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}
h2 { font-size: var(--h2); line-height: 0.95; letter-spacing: -0.032em; }
.em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-stretch: normal;
  color: var(--wine);
}
.on-dark .em, .em.light { color: var(--sand); }
.label {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lead { margin: 0; font-size: clamp(17px, 1vw + 0.6rem, 19px); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 18px 28px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #a0451f; color: #fff; }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 18px 28px;
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  transition: background-color .2s ease, color .2s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.chip {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.chip:hover { background: var(--linen); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.sticker {
  position: absolute;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 13px;
  box-shadow: 0 6px 16px rgba(34, 25, 27, 0.16);
  white-space: nowrap;
}

/* Announcement bar */
.announce {
  background: var(--wine);
  color: var(--paper);
  text-align: center;
  padding: 11px var(--gx);
  font-size: 14px;
}
.announce a { color: var(--sand); text-underline-offset: 4px; }

/* Nav */
.nav { padding: 26px var(--gx); background: var(--paper); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .knight { width: 30px; height: 38px; object-fit: contain; }
.brand .word { height: 20px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: clamp(48px, 6vw, 88px) var(--gx) clamp(80px, 7.6vw, 110px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.pill {
  align-self: flex-start;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 8px 14px;
}
.hero h1 { font-size: clamp(64px, 8.9vw, 128px); line-height: 0.88; letter-spacing: -0.04em; }
.hero h1 .loop-word { position: relative; display: inline-block; }
.hero h1 .loop-word svg {
  position: absolute;
  left: -26px;
  top: -6px;
  width: calc(100% + 60px);
  height: calc(100% + 16px);
  overflow: visible;
}
.hero .lead { max-width: 540px; font-size: clamp(18px, 1vw + 0.7rem, 21px); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-row .text-link { font-weight: 500; font-size: 17px; text-underline-offset: 5px; }

/* Hero board: 4×4 grid of squares, one 2×2 photo */
.board-wrap { position: relative; }
.board {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  box-shadow: 0 40px 80px rgba(34, 25, 27, 0.16);
}
.board > * { position: relative; min-width: 0; min-height: 0; transition: transform .35s ease; }
.board > *:hover { transform: scale(1.04); z-index: 3; }
.board img { width: 100%; height: 100%; object-fit: cover; }
.tile {
  padding: 2.5cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
}
.tile .label { font-size: max(9px, 1.96cqw); }
.tile .big { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; letter-spacing: -0.036em; font-size: 7.6cqw; line-height: 1; }
.tile .stack { font-weight: 600; font-size: 3.4cqw; line-height: 1.15; letter-spacing: -0.02em; }
.tile .go { font-weight: 600; font-size: 4.3cqw; line-height: 1; letter-spacing: -0.03em; }
.tile .knight { width: 7.9cqw; height: 10cqw; object-fit: contain; align-self: flex-end; }
.tile-wine { background: var(--wine); color: var(--paper); }
.tile-wine .label { color: var(--sand); }
.tile-ember { background: var(--ember); color: #fff; }
.tile-ember:hover { color: #fff; }
.span-2 { grid-column: span 2; grid-row: span 2; }
.board .path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 4; }

.seal {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(34, 25, 27, 0.12);
  flex: none;
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.seal text { font-family: var(--f-mono); letter-spacing: 0.12em; fill: var(--wine); }
.seal img { position: absolute; left: 50%; top: 50%; width: 28%; height: 36%; object-fit: contain; transform: translate(-50%, -50%); }
.board-wrap .seal { right: -60px; top: -60px; z-index: 5; }
.seal.static { position: relative; }
.seal.s120 { width: 120px; height: 120px; }
.seal.s140 { width: 140px; height: 140px; }

/* Credentials */
.creds { background: var(--linen); padding: 40px var(--gx); }
.creds .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cred { display: flex; gap: 16px; align-items: flex-start; }
.cred .ic { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cred strong { display: block; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.cred span { font-size: 15px; color: var(--muted); }

/* Marquee */
.marquee { position: relative; padding: 40px 0; overflow: hidden; }
.marquee-band { background: var(--ember); color: #fff; transform: rotate(-2deg); overflow: hidden; padding: 18px 0; margin: 0 -40px; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--f-display);
  font-stretch: 88%;
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.014em;
  white-space: nowrap;
}
.marquee-track span { padding: 0 28px; }
.marquee-track i { font-style: normal; color: var(--sand); }

/* Programs */
.programs { padding-top: 72px; padding-bottom: 130px; }
.sec-head { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.prog { display: flex; flex-direction: column; gap: 22px; transition: transform .35s ease; }
.prog:hover { transform: translateY(-8px); }
.prog:nth-child(2) { margin-top: 70px; }
.prog-media { position: relative; height: 420px; }
.prog-media .shadow { position: absolute; inset: 0; transform: translate(16px, 16px); }
.prog-media .frame { position: absolute; inset: 0; overflow: hidden; }
.prog-media .frame img, .prog-media .frame .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prog:hover .frame img, .prog:hover .frame .ph { transform: scale(1.05); }
.shape-arch { border-radius: 999px 999px 0 0; }
.shape-circle { border-radius: 50%; }
.shape-leaf { border-radius: 0 0 0 200px; }
.ph { background: #F4E6C4; display: flex; align-items: center; justify-content: center; }
.ph img { position: static !important; width: 110px !important; height: 142px !important; object-fit: contain; opacity: .3; }
.ph .label { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 11px; }
.prog-title { display: flex; align-items: baseline; gap: 14px; }
.prog-title .num { font-weight: 600; font-size: 22px; color: transparent; -webkit-text-stroke: 1.2px var(--wine); }
.prog-title h3 { font-size: clamp(44px, 3.9vw, 56px); line-height: 0.95; letter-spacing: -0.036em; }
.prog .em { font-size: 30px; line-height: 1; margin-top: -10px; }
.prog p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.prog .label { font-size: 12px; }

/* Flexibility */
.flex-sec { background: var(--paper-2); }
.flex-sec .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.flex-intro { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 40px; }
.flex-intro .sticker { position: relative; align-self: flex-start; background: var(--peach); }
.builder { background: var(--paper); border: 1px solid var(--line); padding: 28px 32px; display: flex; flex-direction: column; }
.builder-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding: 14px 0; }
.builder-row:first-of-type { margin-top: 10px; }
.builder-row .label { font-size: 12px; color: var(--muted); }
.builder-row .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.builder-out { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; display: flex; flex-direction: column; gap: 14px; }
.builder-out .summary { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.014em; }
.builder-out .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.builder-out .em { font-size: 30px; }
.btn-md { padding: 14px 22px; font-size: 16px; }

.checker { height: 28px; background: conic-gradient(var(--wine) 25%, var(--peach) 0 50%, var(--wine) 0 75%, var(--gold) 0) 0 0 / 28px 28px; }

/* Proof */
.proof { background: var(--wine); color: var(--paper); padding-bottom: 90px; }
.proof-top { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: stretch; margin-bottom: 72px; }
.proof-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.proof-intro .lead { color: var(--stone); max-width: 500px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 190px; color: var(--ink); }
.stat .disp { font-size: clamp(56px, 5.3vw, 76px); line-height: 0.9; letter-spacing: -0.032em; }
.stat span:last-child { font-size: 16px; line-height: 1.35; }

.gallery { overflow: hidden; margin: 0 calc(var(--gx) * -1); padding: 4px 0 24px; }
.gallery-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.gallery:hover .gallery-track { animation-play-state: paused; }
.g-item { position: relative; flex: none; width: clamp(220px, 21vw, 300px); aspect-ratio: 1; margin-right: 28px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item .shape-leaf { border-radius: 0 0 0 50%; }
.g-item .label {
  position: absolute;
  left: 50%;
  bottom: -12px;
  font-size: 12px;
  color: var(--ink);
  padding: 7px 12px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

/* How it works */
.how h2 { margin-bottom: 56px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps .route { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; }
.step { padding: clamp(70px, 6.25vw, 90px) 48px 0 0; display: flex; flex-direction: column; gap: 12px; }
.step:last-of-type { padding-right: 0; }
.step .label { color: var(--ember); }
.step h3 { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -0.025em; }
.step p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Voices */
.voices .wrap { display: flex; flex-direction: column; gap: 48px; }
.voices-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: stretch; }
.big-quote { margin: 0; background: var(--wine); color: var(--paper); padding: clamp(28px, 3.3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.big-quote .mark { font-family: var(--f-serif); font-style: italic; font-size: 120px; line-height: 0.5; color: var(--sand); }
.big-quote blockquote { margin: 0; font-family: var(--f-serif); font-style: italic; letter-spacing: -0.02em; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.18; }
.big-quote figcaption strong { display: block; font-weight: 600; font-size: 18px; }
.big-quote figcaption span { font-size: 15px; color: var(--stone); }
.video-card { position: relative; min-height: 440px; background: var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.video-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.play {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--ember);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-meta { position: relative; padding: 20px 22px; background: var(--paper); margin: 0 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.video-meta .label { color: var(--muted); }
.video-meta strong { font-weight: 600; font-size: 18px; }
.video-meta span:last-child { font-size: 15px; color: var(--muted); }
.voices-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; }
.voices-head .label { font-size: 12px; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.qc { margin: 0; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.qc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(34, 25, 27, .10); }
.qc blockquote { margin: 0; padding-top: 14px; font-family: var(--f-serif); font-style: italic; letter-spacing: -0.02em; font-size: 25px; line-height: 1.2; }
.qc figcaption strong { display: block; font-weight: 600; font-size: 15px; }
.qc figcaption span { font-size: 14px; color: var(--muted); }

/* Locations */
.locations { background: var(--paper-2); }
.locations .wrap { display: grid; grid-template-columns: 440px 1fr; gap: 64px; align-items: start; }
.loc-side { display: flex; flex-direction: column; gap: 22px; }
.loc-side p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 20px; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 0; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--ember); outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-list { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.loc-list .label { font-size: 12px; color: var(--wine); }
.loc-list p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink); }
.loc-maps { display: flex; flex-direction: column; gap: 20px; }
.map-card { background: #fff; border: 1px solid var(--line); padding: 24px; }
.map-card svg { display: block; width: 100%; height: auto; }
.pin { transition: fill .3s ease; }
.pr { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.nyc-row { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: center; }
.nyc-row .map-card { padding: 18px; }
.nyc-note { display: flex; flex-direction: column; gap: 10px; }
.nyc-note .label { font-size: 12px; color: var(--muted); }
.nyc-note .disp { font-size: 30px; letter-spacing: -0.02em; }
.nyc-note p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: 420px 1fr; gap: 64px; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  padding: 26px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 24px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
}
.faq-item .sign { font-size: 28px; color: var(--ember); flex: none; }
.faq-item p { margin: 0 0 26px; max-width: 760px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.faq-item p[hidden] { display: none; }

/* Contact */
.contact { background: var(--wine); }
.contact .wrap { display: grid; grid-template-columns: 1fr 540px; gap: 64px; align-items: center; }
.contact-copy { display: flex; flex-direction: column; gap: 28px; color: var(--paper); }
.contact-copy .lead { color: var(--stone); max-width: 500px; }
.contact-card { background: var(--paper); padding: clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.person { display: flex; align-items: center; gap: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--wine); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 22px; flex: none; }
.person strong { display: block; font-weight: 600; font-size: 20px; }
.person div span { font-size: 15px; color: var(--muted); }
.contact-card .btn { padding: 20px 28px; font-size: 18px; text-align: center; }
.or { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-card small { font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--ink); color: var(--stone); padding: 64px var(--gx); }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer .brand .knight { width: 28px; height: 36px; }
.footer .brand .word { height: 18px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; font-size: 15px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h4 { margin: 0; font-weight: 400; font-size: 15px; color: var(--paper); }
.footer a { color: var(--stone); text-decoration: none; }
.footer a:hover { color: var(--paper); }

/* Motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes draw { from { stroke-dashoffset: var(--len, 1200); } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.draw.go, .in-view .draw { animation: draw var(--dur, 1.6s) var(--delay, 0s) ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1180px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 72px; }
  .board-wrap { max-width: 560px; width: calc(100% - 40px); }
  .board-wrap .seal { right: -40px; top: -50px; width: 120px; height: 120px; }
  .locations .wrap, .faq .wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 48px; }
  .creds .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav nav a:not(.btn) { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .prog-grid { grid-template-columns: 1fr; gap: 64px; max-width: 520px; }
  .prog:nth-child(2) { margin-top: 0; }
  .prog-media { height: clamp(300px, 80vw, 420px); margin-right: 16px; }
  .flex-sec .wrap, .proof-top, .voices-top { grid-template-columns: 1fr; gap: 40px; }
  .flex-intro { position: static; }
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 40px; border-left: 4px solid var(--ember); }
  .steps .route { display: none; }
  .step { padding: 0; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .nyc-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand .word { height: 16px; }
  .brand .knight { width: 24px; height: 30px; }
  .creds .wrap { grid-template-columns: 1fr; gap: 20px; }
  .builder { padding: 20px; }
  .builder-row { grid-template-columns: 1fr; gap: 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px; min-height: 150px; }
  .quotes { grid-template-columns: 1fr; }
  .video-card { min-height: 380px; }
  .map-card { padding: 12px; }
  .board-wrap .seal { right: -24px; top: -44px; width: 100px; height: 100px; }
  .cta-row { gap: 16px; }
}
