/* ==========================================================================
   North Bridge Academy
   Design tokens and shared components, matched to the Claude Design canvas
   ("NorthBridge Academy.dc.html"). Edit colors and spacing here; every page
   uses these variables.
   ========================================================================== */

:root {
  /* Brand palette (from the design) */
  --navy:        #16233A;
  --navy-deep:   #0B1220;
  --brick:       #9E473D;
  --brick-dark:  #7A362E;
  --brick-deep:  #4A211B;
  --brick-tint:  #F7EEEB;
  --tan:         #E0C9A6;
  --tan-soft:    #E8D5BC;
  --cream:       #FAF6F0;
  --sand:        #EAE4DA;
  --sand-deep:   #E6DDCE;
  --ink-2:       #2B2523;
  --ink-3:       #3A4046;
  --warm-600:    #5F5651;
  --warm-500:    #6B615B;
  --warm-400:    #7A716B;
  --rule:        #D9D2C6;
  --line:        #EAE4DA;

  /* Roles */
  --bg:          #ffffff;
  --bg-alt:      var(--cream);
  --surface:     #ffffff;
  --ink:         var(--navy);
  --ink-muted:   var(--warm-600);
  --accent:      var(--brick);
  --accent-ink:  #ffffff;

  /* Type (design is set at 1280px; sizes scale down on smaller screens) */
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --text:     17px;                                   /* body copy */
  --text-sm:  15px;
  --text-xs:  13px;
  --lede:     clamp(17px, 1.4vw, 18px);
  --h1-hero:  clamp(34px, 5.2vw, 66px);
  --h1:       clamp(30px, 3.6vw, 46px);
  --h2:       clamp(27px, 3.6vw, 46px);
  --h2-md:    clamp(24px, 3vw, 38px);
  --h3:       21px;
  --stat:     clamp(26px, 4vw, 52px);

  /* Layout */
  --measure: 66ch;
  --wide: 1280px;
  --narrow: 820px;
  --gutter: clamp(18px, 3.2vw, 40px);
  --radius: 8px;
  --radius-sm: 3px;
  --shadow: 0 2px 12px rgba(43, 37, 35, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------- typography --- */

h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: var(--h1); line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: var(--h2); line-height: 1.12; letter-spacing: -.01em; }
h3 { font-size: var(--h3); font-weight: 700; }
h4 { font-size: var(--text); font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { max-width: var(--measure); color: var(--warm-600); }
/* No single word stranded on the last line of a paragraph, caption or list item (Karen, Oct 2026).
   Browsers that understand text-wrap: pretty reflow the paragraph to avoid it; older ones ignore this. */
p, li, figcaption, dd, blockquote { text-wrap: pretty; }
li { color: var(--warm-600); }
a { color: var(--brick); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-dark); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 3px; }
strong { font-weight: 700; color: var(--ink-3); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

/* Small uppercase label above a heading: brick on light, tan on dark. */
.eyebrow {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--brick); margin: 0 0 14px;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow--tan, .on-dark .eyebrow { color: var(--tan); }
.eyebrow--rule { display: flex; align-items: center; gap: 12px; }
.eyebrow--rule::before { content: ""; width: 44px; height: 3px; background: var(--tan); }

/* Section title set as a small caps label ("In their words"). */
.label-heading {
  font-size: 15px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--navy); margin: 0 0 30px;
}
.on-dark .label-heading { color: #fff; }

.lede { font-size: var(--lede); line-height: 1.7; color: var(--warm-600); max-width: 660px; }
.lede--strong { font-weight: 700; color: var(--ink-3); font-size: 19px; line-height: 1.6; }
.intro { font-size: 18px; line-height: 1.7; color: var(--ink-3); }
.muted { color: var(--warm-400); }
.small { font-size: var(--text-sm); }

/* -------------------------------------------------------------- layout --- */

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--narrow); }
.section { padding-block: clamp(40px, 6vw, 76px); background: var(--bg); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section--alt, .section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--tint { background: var(--brick-tint); }
.section--navy { background: var(--navy); color: #fff; }
.section--brick { background: var(--brick); color: #fff; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p, .on-dark li { color: rgba(255,255,255,.72); }
.on-dark a { color: #fff; }
.on-dark a:hover { color: var(--tan); }
.stack > * + * { margin-top: 1.1em; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.split { display: grid; gap: clamp(28px, 4.4vw, 56px); align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-block; padding: 17px 30px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; border: 1.5px solid var(--brick);
  background: var(--brick); color: #fff; cursor: pointer; text-align: center;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: #fff; }
.btn--dark { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn--dark:hover { background: var(--brick-deep); border-color: var(--brick-deep); }
.btn--ghost, .btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover, .btn--outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.on-dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.on-dark .btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 12px 20px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-row--stack { flex-direction: column; align-items: flex-start; }

/* Text link with arrow, used under intro copy ("Mission & Beliefs →"). */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brick); border-bottom: 2px solid var(--brick); padding-bottom: 3px;
}
.arrow-link--deep { color: var(--brick-dark); border-color: var(--brick-dark); }
.arrow-link:hover { color: var(--brick-dark); }
.on-dark .arrow-link { color: #fff; border-color: var(--tan); }
.link-row { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 4px; }

/* -------------------------------------------------------------- header --- */

.site-header { position: relative; z-index: 30; background: #fff; }
.utility-bar {
  background: var(--brick-dark); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.utility-bar .wrap { display: flex; justify-content: flex-end; gap: 26px; padding-block: 9px; }
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { color: var(--tan); }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 18px; border-bottom: 1px solid var(--line);
}
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; }
.brand__text { position: absolute; left: -9999px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brick); }
.nav a[aria-current="page"], .nav a.is-active { color: var(--brick); border-bottom-color: var(--brick); }
.nav .btn { padding: 12px 20px; font-size: 13px; color: #fff; border-bottom: 1.5px solid var(--brick); }
.nav .btn:hover { color: #fff; border-color: var(--brick-dark); }
.nav-toggle {
  display: none; background: transparent; border: 0; padding: 6px; cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); }
.nav-toggle__label { position: absolute; left: -9999px; }

@media (max-width: 960px) {
  .nav { gap: 18px; }
  .nav a { font-size: 12px; letter-spacing: .06em; }
}
@media (max-width: 860px) {
  .utility-bar { display: none; }
  .masthead { padding-block: 12px; }
  .brand img { height: 30px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 6px var(--gutter) 18px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a[aria-current="page"], .nav a.is-active { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; padding: 16px; border-bottom: 0; }
  .nav .utility-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 14px; }
  .nav .utility-links a { border: 0; padding: 6px 0; font-size: 12px; color: var(--brick-dark); }
}
@media (min-width: 861px) { .nav .utility-links { display: none; } }

/* Section sub-navigation strip ("Admissions | School Tours | Tuition ..."). */
.subnav { background: var(--cream); border-bottom: 1px solid var(--line); font-size: 13px; }
.subnav .wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-block: 14px; }
.subnav__label { font-weight: 700; letter-spacing: .06em; color: var(--brick); text-decoration: none; margin-right: 14px; }
.subnav__label:hover { color: var(--brick-dark); }
.subnav a { color: var(--warm-600); text-decoration: none; }
.subnav a:hover { color: var(--brick); }
.subnav a[aria-current="page"], .subnav a.is-active { color: var(--brick); font-weight: 700; }
@media (max-width: 600px) { .subnav .wrap { gap: 10px 18px; } .subnav__label { flex-basis: 100%; margin: 0; } }

/* ------------------------------------------------------- page headers --- */

/* Plain white page header: eyebrow, h1, lede. */
.page-head { padding: clamp(36px, 4.4vw, 56px) 0 clamp(24px, 2.6vw, 32px); background: #fff; }
.page-head h1 { margin: 14px 0 16px; max-width: 900px; }
.page-head .lede { margin: 0; }
.page-head--cream { background: var(--cream); }

/* Photo banner header: 300px photo with a dark gradient and white type. */
.banner { position: relative; min-height: 300px; overflow: hidden; background: var(--navy); color: #fff; display: flex; align-items: center; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24,19,17,.9), rgba(24,19,17,.5) 60%, rgba(24,19,17,.15));
}
.banner .wrap { position: relative; z-index: 1; padding-block: 40px; }
.banner__inner { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.banner h1 { color: #fff; margin: 0; letter-spacing: -.035em; }
.banner p { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.65; max-width: 600px; margin: 0; }
.banner .eyebrow { color: var(--tan); margin: 0; }
@media (max-width: 700px) {
  .banner::after { background: linear-gradient(180deg, rgba(24,19,17,.25), rgba(24,19,17,.92)); }
  .banner { min-height: 260px; align-items: flex-end; }
}

/* ------------------------------------------------------------ home hero --- */

/* The hero grows with its text: a fixed height clipped the headline on wide screens. */
.hero { position: relative; min-height: 560px; overflow: hidden; background: var(--navy); color: #fff; display: flex; align-items: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.72) 42%, rgba(11,18,32,.15) 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 720px; display: flex; flex-direction: column; gap: 22px; padding-block: clamp(48px, 6vw, 96px); }
.hero h1 { color: #fff; font-size: var(--h1-hero); line-height: .98; letter-spacing: -.03em; margin: 0; }
.hero p { color: rgba(255,255,255,.82); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 560px; margin: 0; }
.hero .eyebrow { color: var(--tan); margin: 0; max-width: none; text-wrap: balance; }
@media (min-width: 1100px) { .hero .eyebrow { white-space: nowrap; } }
/* Below that, break it into two even lines so it stays over the dark part of the photo. */
@media (min-width: 701px) and (max-width: 1099px) { .hero .eyebrow { max-width: 480px; } }
.hero .btn-row { margin-top: 6px; gap: 12px; }
@media (max-width: 700px) {
  .hero { height: auto; min-height: 420px; align-items: flex-end; }
  .hero::after { background: linear-gradient(180deg, rgba(24,19,17,.25), rgba(24,19,17,.92)); }
  .hero__inner { padding-block: 22px; gap: 14px; }
  .hero .eyebrow::before { display: none; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .18em; }
  .hero .btn-row { display: none; }
}
/* On phones the two hero buttons move below the stats band, full width. */
.hero-actions { display: none; }
@media (max-width: 700px) {
  .hero-actions { display: flex; flex-direction: column; gap: 10px; padding: 18px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
  .hero-actions .btn { width: 100%; padding: 16px; font-size: 12px; }
}

/* Brick statistics band under the hero. */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--brick); color: #fff;
  /* Line the numbers up with the content column on wide screens. */
  padding-inline: max(0px, calc((100% - var(--wide)) / 2));
}
.stats > div { padding: 34px var(--gutter); border-right: 1px solid rgba(255,255,255,.22); }
.stats > div:last-child { border-right: 0; }
/* Four numbers across (About Us). On a phone they sit two by two. */
.stats--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .stats--four { grid-template-columns: 1fr 1fr; } .stats--four > div:nth-child(2n) { border-right: 0; } .stats--four > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); } }
.stats__num { font-size: var(--stat); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stats__label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-top: 8px; opacity: .85; }
@media (max-width: 700px) {
  .stats > div { padding: 18px 8px; text-align: center; }
  .stats__label { font-size: 10px; letter-spacing: .13em; margin-top: 4px; }
}

/* Deep-brick media card with diagonal hatching (video / feature slot). */
.media-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  width: 100%; min-height: 380px; border-radius: 6px; background: var(--brick-dark); padding: 28px;
  overflow: hidden; text-decoration: none; color: #fff;
}
.media-card::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 18px);
}
.media-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.media-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(74,33,27,.1), rgba(74,33,27,.9));
}
.media-card > * { position: relative; z-index: 1; }
.media-card__kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.7); }
.media-card__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; max-width: 340px; color: #fff; }
.media-card__badge {
  width: 62px; height: 62px; border-radius: 50%; background: var(--tan);
  display: flex; align-items: center; justify-content: center; color: var(--brick-deep); font-size: 26px; line-height: 1;
}
@media (max-width: 700px) { .media-card { min-height: 220px; padding: 20px; } .media-card__title { font-size: 22px; } }

/* Dark photo card with a quote (testimonials). */
.story-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 360px; border-radius: 10px; overflow: hidden; background: var(--navy); padding: 30px;
  color: #fff; text-decoration: none;
}
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.story-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,37,35,.15), rgba(43,37,35,.92)); }
.story-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.story-card .eyebrow { color: var(--tan); margin: 0; font-size: 11px; letter-spacing: .2em; }
.story-card blockquote { margin: 0; font-size: clamp(20px, 2.1vw, 27px); font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.18; max-width: 420px; }
.story-card cite { font-style: normal; font-size: 14px; color: rgba(255,255,255,.7); }
@media (max-width: 700px) { .story-card { min-height: 220px; padding: 18px; } }
/* Variant: the photo is shown whole and in full color, with the quote beneath it. */
/* Photo at the top of every card, so the three photos start at the same height whatever the
   length of the quote underneath (Karen, Nov 2026). */
.story-card--full { padding: 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.story-card--full img { position: static; box-sizing: border-box; width: 100%; height: 350px; padding: 14px 14px 0; object-fit: contain; object-position: center top; opacity: 1; background: var(--navy); }
.story-card--full::after { display: none; }
.story-card--full .story-card__body { padding: 16px 18px 18px; gap: 8px; }
.story-card--full blockquote { font-size: clamp(16px, 1.5vw, 19px); }
@media (max-width: 700px) { .story-card--full img { height: 270px; padding: 10px 10px 0; } .story-card--full .story-card__body { padding: 16px 18px 20px; } }

/* Navy feature section with a brick glow (Profile of a Narwhal). */
.glow { position: relative; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; top: -60px; right: -40px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(158,71,61,.55), transparent 65%); pointer-events: none;
}
.glow > .wrap { position: relative; }
.dash-rule { width: 70px; height: 8px; border-radius: 99px; background: repeating-linear-gradient(115deg, var(--tan) 0 5px, var(--navy) 5px 9px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: var(--h2-md); letter-spacing: -.025em; line-height: 1; }
.section-head > p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 420px; }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* Numbered trait list. */
.traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 40px; }
.trait { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); }
.trait__head { display: flex; align-items: baseline; gap: 12px; }
.trait__num { font-size: 13px; font-weight: 700; color: var(--tan); letter-spacing: .14em; }
.trait h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.trait p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.68); max-width: 280px; }
@media (max-width: 860px) { .traits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .traits { grid-template-columns: 1fr; gap: 0; }
  .trait { padding: 9px 0; }
  .trait p { display: none; }
}
.rule-top { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); }
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.chip { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: #fff; border: 1px solid rgba(255,255,255,.32); border-radius: 99px; padding: 9px 16px; }

/* --------------------------------------------------------------- cards --- */

/* White card with a colored top rule and optional photo (Learn more tiles). */
.tile {
  display: block; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; border-top: 4px solid var(--brick);
  transition: transform .16s ease, box-shadow .16s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(43,37,35,.14); color: inherit; }
.tile--tan { border-top-color: var(--tan); }
.tile--deep { border-top-color: var(--brick-dark); }
.tile--navy { border-top-color: var(--navy); }
.tile img { width: 100%; height: 180px; object-fit: cover; }
.tile__body { padding: 20px 22px; }
.tile h3 { font-size: 18px; font-weight: 700; margin: 0; color: var(--navy); }
.tile p { font-size: 14px; color: var(--warm-400); margin: 5px 0 0; }
.tile h3 + p { margin-top: 5px; }

/* Generic bordered card. */
.card {
  background: var(--surface); border: 1.5px solid var(--rule);
  border-radius: 10px; padding: clamp(18px, 2.2vw, 24px);
}
.card h3 { font-size: 18px; margin: 0 0 .35em; }
.card > p:last-child { margin-bottom: 0; }
.card p { color: var(--warm-600); font-size: var(--text-sm); line-height: 1.6; }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .16s ease, transform .16s ease; }
.card--link:hover { border-color: var(--brick); transform: translateY(-2px); color: inherit; }
.card--tint { background: var(--brick-tint); border-color: var(--brick); border-width: 2px; }
.card--cream { background: var(--cream); border-color: transparent; }
.card--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--navy h3, .card--navy p { color: #fff; }
.card--top { border: 0; border-top: 4px solid var(--brick); border-radius: var(--radius); box-shadow: var(--shadow); }

.quote {
  background: var(--surface); border-left: 3px solid var(--brick);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px;
}
.quote blockquote { margin: 0 0 .8rem; font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--navy); }
.quote cite { font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--warm-400); }

/* ------------------------------------------------------------ sequence --- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1.5px solid var(--rule);
  border-radius: 10px; padding: 18px 20px 18px 66px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brick); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.steps h3 { font-size: 17px; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--warm-600); font-size: var(--text-sm); }

/* Accordion (FAQ, admissions steps). */
details.acc { border-top: 1px solid var(--rule); }
details.acc:last-of-type { border-bottom: 1px solid var(--rule); }
details.acc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0; font-size: 17px; font-weight: 700; color: var(--navy);
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--brick); flex: none; }
details.acc[open] summary::after { content: "–"; }
details.acc[open] summary { color: var(--brick); }
details.acc > :not(summary) { padding-bottom: 20px; }
details.acc p { max-width: 760px; }

/* Pill filter buttons (staff groups, FAQ categories). */
.pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill {
  display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--rule);
  background: #fff; color: var(--warm-600); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.pill:hover { border-color: var(--brick); color: var(--brick); }
.pill.is-active, .pill[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ------------------------------------------------------------- tables --- */

.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: var(--text-sm); }
caption { text-align: left; font-weight: 700; padding-bottom: .6rem; color: var(--navy); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--warm-400); font-weight: 700; }
td { color: var(--ink-3); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:nth-child(even) td { background: var(--cream); }
table.table--plain tbody tr:nth-child(even) td { background: transparent; }

/* ------------------------------------------------------------- people --- */

.people { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }
.person { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.person__head { flex: 1 1 auto; display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.person details, .person__pending { margin-top: auto; }
.person__photo, .person__initials {
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px; object-fit: cover; background: var(--sand);
}
.person__initials {
  display: grid; place-items: center; font-weight: 700; color: #fff;
  letter-spacing: .04em; background: var(--navy); font-size: 15px;
}
.person__name { font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--navy); }
.person__title { font-size: 13px; color: var(--warm-400); line-height: 1.35; margin-top: 3px; }
.person details { border-top: 1px solid var(--rule); }
.person summary {
  cursor: pointer; padding: 12px 18px; font-size: 13px; font-weight: 700;
  color: var(--brick); letter-spacing: .04em;
}
.person summary::marker { color: var(--brick); }
.person details p { padding: 0 18px 16px; margin: 0; color: var(--warm-600); font-size: var(--text-sm); line-height: 1.6; }
.person__pending { padding: 12px 18px 16px; font-size: 13px; color: var(--warm-400); border-top: 1px solid var(--rule); }

.group-heading { margin-top: 40px; margin-bottom: 18px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--brick); }
.group-heading:first-of-type { margin-top: 0; }

/* -------------------------------------------------------------- embeds --- */

.embed { position: relative; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.embed iframe { display: block; width: 100%; height: 70vh; min-height: 520px; border: 0; }

/* ------------------------------------------------------------ callouts --- */

.callout {
  background: var(--brick-tint); border: 1.5px solid var(--tan-soft);
  border-left: 3px solid var(--brick); border-radius: var(--radius);
  padding: 22px 26px;
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { font-size: 18px; }

/* Full-width call to action band (navy, headline left, button right). */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 44px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.025em; line-height: 1.1; }
.cta-band .eyebrow { color: var(--tan); margin-bottom: 10px; }

/* -------------------------------------------------------------- footer --- */

.site-footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.9; }
.site-footer .wrap { padding-block: 52px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--tan); text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: inline-block; background: #fff; border-radius: 4px; padding: 8px 12px; margin-bottom: 10px; line-height: 0; }
.footer-logo img { height: 34px; width: auto; }
.site-footer h2 { color: #fff; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer p { color: rgba(255,255,255,.72); margin: 0; }
.footer-bottom {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.5);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--tan); color: var(--navy);
  padding: .7rem 1.2rem; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------ small helpers --- */

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.visually-hidden { position: absolute; left: -9999px; }

/* Home, "In their words": two testimonial cards and the Narwhals logo tile side by side. */
.words-row { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .words-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .words-row { grid-template-columns: 1fr 1fr 1fr; } }
.words-logo {
  display: flex; align-items: center; justify-content: center; background: #fff;
  border: 1.5px solid var(--rule); border-radius: 10px; padding: 28px; min-height: 240px;
  transition: border-color .16s ease, transform .16s ease;
}
.words-logo:hover { border-color: var(--brick); transform: translateY(-2px); }
.words-logo img { width: 100%; max-width: 360px; height: auto; }
.narwhal-mark { width: 180px; height: auto; background: #fff; border-radius: 8px; padding: 8px 12px; }
@media (max-width: 700px) { .narwhal-mark { width: 130px; } }

/* A word with a pop-up definition (first used for "dyscalculia" on Our Program; Karen, Nov 2026).
   The word is a real button, so it works by tap, click or keyboard; the definition closes with
   its own x, the Escape key, or a tap anywhere else. */
.term {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help;
  text-decoration: underline dotted var(--brick); text-decoration-thickness: 2px; text-underline-offset: .22em;
}
.term:hover, .term[aria-expanded="true"] { color: var(--brick); }
.term-pop {
  box-sizing: border-box; width: min(340px, calc(100vw - 32px)); padding: 16px 46px 16px 18px;
  border: 1.5px solid var(--sand-deep); border-radius: 10px; background: #fff; color: var(--warm-600);
  font-size: 15px; line-height: 1.6; font-weight: 400; letter-spacing: 0; text-align: left;
  box-shadow: 0 10px 30px rgba(22, 35, 58, .18); text-wrap: pretty;
}
.term-pop strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 16px; }
.term-pop::backdrop { background: transparent; }
.term-pop__close {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: none; color: var(--navy); font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.term-pop__close:hover { background: var(--cream); color: var(--brick); }
/* Browsers too old for pop-ups keep the definition out of the sentence. */
@supports not selector(:popover-open) { .term-pop { display: none; } }
