/* Compass School Ministries
   Direction: Claura (warm serif hero) + Clearpayr (rounded bento) + Screenote (dark pill nav).
   Motion: timings measured from details.so clips — Dia (state fades ~200ms, quart-out),
   Matic (slides ~450ms to settle, slight overshoot), Tengile (inset image expands on scroll). */

:root {
  /* Color */
  --bg: #f6f2ec;
  --bg-soft: #efe9e1;
  --surface: #ffffff;
  --ink: #1c2226;
  --ink-2: #4a5157;
  --ink-3: #676d73;
  --line: #e4ddd3;
  --dark: #1b2429;
  --dark-text: #c9def0;
  --dark-muted: #8ea4b4;
  --sky: #e6eff5;
  --sky-ink: #2f5d8a;
  --red: #b43028;
  --red-hi: #cf4436;
  --red-ink: #fff3ec;
  --blue: #3060a8;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 34, 38, .05), 0 6px 18px -6px rgba(28, 34, 38, .10);
  --shadow-md: 0 2px 4px rgba(28, 34, 38, .04), 0 18px 40px -16px rgba(28, 34, 38, .22);
  --shadow-lg: 0 24px 60px -20px rgba(28, 34, 38, .28);

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);        /* quart-out (Dia) */
  --ease-spring: cubic-bezier(.2, .6, .1, 1.08);  /* slight overshoot (Matic) */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 200ms;
  --t-base: 450ms;
  --t-slow: 900ms;

  /* Layout */
  --max: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --section: clamp(80px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: #f3cfc9; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 40px); margin: 0 auto; padding-inline: var(--gutter); }
.section, .section-sm, .cta-wrap { }
/* One vertical rhythm for every top-level section: half above, half below */
main > section { padding-block: calc(var(--section) / 2); }
main > section:last-child { padding-bottom: var(--section); }
main > .expand { padding-block: calc(var(--section) / 2); }
section[id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.display em, .h2 em { font-style: italic; color: var(--red); }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.3; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-self: flex-start; justify-self: start; width: fit-content; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: 0 0 0 1px rgba(28, 34, 38, .07), 0 1px 2px rgba(28, 34, 38, .04);
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2;
  color: var(--ink-2);
}
.eyebrow svg { width: 14px; height: 14px; color: var(--red); }
.card.is-sky .eyebrow, .aud.is-sky .eyebrow, .tile-sky .eyebrow { background: rgba(255,255,255,.75); }
.panel .eyebrow, .card:not(.is-sky):not(.is-dark) .eyebrow, .give-card:not(.featured) .eyebrow, .aud:not(.is-dark):not(.is-sky) .eyebrow, .form .eyebrow { background: var(--bg); box-shadow: none; }
.law .eyebrow, .aud.is-dark .eyebrow, .card.is-dark .eyebrow, .give-card.featured .eyebrow, .school .eyebrow { background: rgba(255,255,255,.08); box-shadow: none; color: var(--dark-text); }
.link {
  color: var(--ink); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--t-base) var(--ease-out);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-pill);
  font: 700 15px/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform var(--t-base) var(--ease-spring); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(.97); }
.btn-red {
  color: var(--red-ink);
  background: linear-gradient(180deg, var(--red-hi), var(--red));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px -6px rgba(180, 48, 40, .55);
}
.btn-red::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-red:hover::after { transform: translateX(120%); transition: transform 800ms var(--ease-out); }
.btn-red:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 26px -8px rgba(180, 48, 40, .65); }
.btn-dark {
  color: #f4f1ec;
  background: linear-gradient(180deg, #343c41, var(--dark));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 20px -8px rgba(28, 34, 38, .6);
}
.btn-light { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Curtain (page transitions) ---------- */
.curtain { display: none; }
html.js .curtain {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: #242424;
  transform: translateY(0);
  pointer-events: none;
}
.curtain-mark { display: grid; justify-items: center; gap: 18px; }
.curtain-mark img { width: 160px; height: 160px; filter: drop-shadow(0 0 40px rgba(207,68,54,.3)); }
.curtain-mark span { font-family: var(--serif); font-size: 18px; color: rgba(233,238,241,.75); letter-spacing: .01em; }
html.js .curtain-mark { opacity: 0; transform: scale(.85) rotate(-30deg); }
html.js.is-intro .curtain-mark { animation: mark-in 650ms var(--ease-spring) forwards; }
@keyframes mark-in { to { opacity: 1; transform: none; } }
html.js.is-ready .curtain {
  transform: translateY(-100%);
  border-radius: 0 0 50% 50% / 0 0 18% 18%;
  transition: transform 750ms var(--ease-in-out), border-radius 750ms var(--ease-in-out);
}
html.js.is-ready .curtain-mark { opacity: 0; transition: opacity 250ms ease; }
html.js.is-leaving .curtain {
  transform: translateY(0); border-radius: 0;
  transition: transform 550ms var(--ease-in-out), border-radius 550ms var(--ease-in-out);
}

/* ---------- Nav (Screenote) ---------- */
.nav-shell {
  position: sticky; top: max(12px, env(safe-area-inset-top, 0px)); z-index: 50;
  padding-inline: var(--gutter);
  margin-top: 16px;
}
.nav {
  position: relative;
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #2c2c2c, #1c1c1c);
  color: #e9eef1;
  border-radius: var(--r-pill);
  padding: 6px 8px 6px 10px;
  box-shadow: 0 18px 40px -16px rgba(20, 26, 30, .55), inset 0 1px 0 rgba(255,255,255,.08);
  transition: max-width 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.nav-shell.is-scrolled .nav { max-width: 960px; box-shadow: 0 22px 50px -18px rgba(20, 26, 30, .7), inset 0 1px 0 rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding-right: 6px; }
.brand img { width: 52px; height: 52px; margin: -4px 0; border-radius: 0; transition: transform 700ms var(--ease-spring); }
.brand:hover img { transform: rotate(-20deg); }
.brand span { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.nav-links { position: relative; display: flex; gap: 2px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a {
  position: relative; z-index: 1;
  display: block; padding: 9px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: #b9c3c9; text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-pill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  background: rgba(255,255,255,.1); border-radius: var(--r-pill);
  opacity: 0; pointer-events: none;
  transition: transform 400ms var(--ease-spring), width 400ms var(--ease-spring), opacity var(--t-fast) var(--ease-out);
}
.nav-actions { display: flex; gap: 6px; align-items: center; }
.nav-secondary { color: #e9eef1; background: rgba(255,255,255,.08); }
.nav-secondary:hover { background: rgba(255,255,255,.14); }
.nav .btn-red svg { width: 14px; height: 14px; }
.nav .btn-red:hover svg { transform: scale(1.18); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.menu-btn:active { transform: scale(.94); }
.menu-btn svg { width: 20px; height: 20px; transition: transform 400ms var(--ease-spring); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(90deg); }
.mobile-menu {
  max-width: 1000px; margin: 8px auto 0;
  background: #1b2328; border-radius: var(--r-md); padding: 8px;
  box-shadow: var(--shadow-lg);
  transform-origin: top center;
}
html.js .mobile-menu:not([hidden]) { animation: menu-in 380ms var(--ease-spring); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.mobile-menu a { display: block; padding: 13px 14px; border-radius: var(--r-sm); color: #e9eef1; text-decoration: none; font-weight: 600; }
.mobile-menu a:hover { background: rgba(255,255,255,.06); }
.mobile-menu .mm-primary { background: rgba(255,255,255,.08); margin-bottom: 4px; }

/* ---------- Hero (Claura + Travlin) ---------- */
.hero { padding-top: clamp(56px, 8vw, 96px); text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.hero .badge .sep { color: var(--ink-3); }
.hero .badge b { background: var(--sky); color: var(--sky-ink); border-radius: var(--r-pill); padding: 4px 10px; font-size: 12px; }
.hero .display { margin: 26px auto 22px; max-width: 13ch; }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin-bottom: -.12em; }
.mask .word { display: inline-block; }
.hero .lede { margin: 0 auto; text-align: center; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.photo-row {
  margin-top: clamp(48px, 7vw, 84px);
  display: grid; grid-template-columns: 1fr 1.15fr 1fr 1fr; gap: 14px; align-items: end;
}
.photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-soft); box-shadow: var(--shadow-md);
  translate: 0 var(--py, 0px);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.photo:hover img { transform: scale(1.05); }
.photo-row { align-items: start; grid-template-columns: repeat(4, 1fr); }
.photo-row .photo { aspect-ratio: 4 / 5; }
.photo-row .photo:nth-child(odd) { margin-top: 48px; }

.chip {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  padding: 9px 16px 9px 9px;
  font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25;
  box-shadow: 0 10px 24px -10px rgba(28,34,38,.35);
  text-align: left;
}
.chip i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--sky-ink); }
.chip i.ok { background: #e3f3e6; color: #2f8a46; }
.chip i.red { background: #fbe6e2; color: var(--red); }
.chip svg { width: 14px; height: 14px; }

/* ---------- Schools marquee ---------- */
.schools { display: flex; align-items: center; gap: 28px; padding-top: 56px; color: var(--ink-3); }
.schools > .eyebrow { flex: none; }
.marquee {
  flex: 1; min-width: 0; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { flex: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0 28px 0 0; list-style: none; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { font-family: var(--serif); font-size: 22px; color: #8d8780; white-space: nowrap; }
.marquee li.sep { font-size: 12px; color: var(--red); opacity: .6; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Section heads ---------- */
.intro-head { display: grid; gap: 14px; margin-bottom: 44px; justify-items: start; }

/* ---------- Bento (Clearpayr) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { border-radius: var(--r-md); overflow: hidden; min-height: 340px; position: relative; }
.tile-dark { background: var(--dark); color: var(--dark-text); padding: 34px; display: flex; align-items: center; }
.tile-dark p { font-size: clamp(20px, 2vw, 23px); font-weight: 600; line-height: 1.42; letter-spacing: -0.012em; }
.tile-dark .dim { color: var(--dark-muted); }
.w { transition: opacity 450ms var(--ease-out); }
html.js [data-light] .w { opacity: .38; }
html.js [data-light] .w.lit { opacity: 1; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo .chip { left: 50%; right: auto; bottom: auto; top: 50%; translate: -50% -50%; white-space: nowrap; padding: 14px 20px 14px 14px; font-size: 15.5px; }
.tile-sky { background: var(--sky); padding: 28px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.big-num { font-weight: 800; font-size: clamp(54px, 6vw, 78px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tile-sky .compass-bg { position: absolute; right: -44px; bottom: -44px; width: 250px; height: 250px; color: #d3e1ea; transition: transform 1.6s var(--ease-out); }
.tile-sky:hover .compass-bg { transform: rotate(45deg); }
.tile-sky p { position: relative; font-size: 18px; max-width: 19ch; line-height: 1.35; }
.tile-foot { position: relative; display: grid; gap: 14px; justify-items: start; }
.tile-foot .card-link:hover svg { transform: translateX(4px); }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 44px; }
.split-head .lede { font-size: 17px; }

/* ---------- Steps (Function / Beside) ---------- */
.panel { background: var(--surface); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow-sm); }
.steps-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }
.steps { --progress: 1; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 34px 0 0; }
.steps::before, .steps::after { content: ""; position: absolute; top: 6px; left: 0; height: 2px; border-radius: 2px; }
.steps::before { right: 0; background: var(--line); }
.steps::after { width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--progress)); transition: transform 1.6s var(--ease-in-out); }
html.js .steps { --progress: 0; }
html.js .steps.in { --progress: 1; }
.steps li { position: relative; padding-right: 28px; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  content: ""; position: absolute; top: -34px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--red);
  transition: border-color 300ms var(--ease-out), background-color 300ms var(--ease-out), transform 500ms var(--ease-spring);
  transition-delay: calc(var(--i) * 260ms + 150ms);
}
html.js .steps li::before { background: var(--surface); border-color: var(--line); }
html.js .steps.in li::before { border-color: var(--red); background: var(--red); transform: scale(1.1); }
.step-num { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-2); font-size: 15.5px; }
html.js .steps li > * { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i) * 260ms + 200ms); }
html.js .steps.in li > * { opacity: 1; transform: none; }

/* ---------- How it works: sticky scroll story ---------- */
.hiw { background: var(--surface); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 72px); box-shadow: var(--shadow-sm); }
.hiw-head { display: grid; gap: 14px; justify-items: start; max-width: 640px; }
.hiw-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.hiw-left { display: grid; align-content: start; }
.hiw-steps { --fill: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 36px; }
.hiw-steps::before, .hiw-steps::after { content: ""; position: absolute; left: 6px; top: 26vh; bottom: 26vh; width: 2px; border-radius: 2px; background: var(--line); }
.hiw-steps::after { background: var(--red); transform-origin: top; transform: scaleY(var(--fill)); }
.hiw-step { position: relative; min-height: 52vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; transition: opacity 500ms var(--ease-out); }
html.js .hiw-step:not(.is-active) { opacity: .3; }
.hiw-step.is-active { opacity: 1; }
.hiw-step::before {
  content: ""; position: absolute; left: -36px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); z-index: 1;
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), transform 500ms var(--ease-spring);
}
.hiw-step.is-active::before, .hiw-step.is-done::before { background: var(--red); border-color: var(--red); }
.hiw-step.is-active::before { transform: scale(1.25); }
.hiw-num { font-family: var(--serif); font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.hiw-copy { display: grid; gap: 10px; max-width: 42ch; }
.hiw-copy h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.hiw-copy p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.hiw-inline { display: none; }
.hiw-sticky { position: relative; height: 100%; }
.hiw-stage {
  position: sticky; top: calc(50vh - min(34vh, 320px)); height: min(68vh, 640px);
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); isolation: isolate;
}
.hiw-panel { position: absolute; inset: 0; z-index: 0; visibility: hidden; clip-path: inset(100% 0 0 0); }
.hiw-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hiw-panel:nth-child(1) img { object-position: 50% 35%; }
.hiw-panel:nth-child(3) img { object-position: 50% 62%; }
.hiw-panel:nth-child(4) img { object-position: 50% 30%; }
.hiw-panel .chip { left: 18px; right: auto; bottom: 18px; opacity: 0; transform: translateY(10px); }
.hiw-panel.is-prev { visibility: visible; z-index: 1; clip-path: inset(0); }
.hiw-panel.is-prev img { transform: scale(1); }
.hiw-panel.is-active { visibility: visible; z-index: 2; clip-path: inset(0); transition: clip-path 900ms var(--ease-in-out); }
.hiw-panel.is-active img { transform: scale(1); transition: transform 1400ms var(--ease-out); }
.hiw-panel.is-active .chip { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) 550ms, transform 600ms var(--ease-spring) 550ms; }
.hiw-count {
  position: absolute; z-index: 3; top: 16px; right: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-pill); padding: 6px 12px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink);
}
.hiw-foot { margin-top: 8px; padding-left: 36px; }
.hiw-steps { margin-top: clamp(8px, 2vw, 24px); }

/* ---------- Motto ---------- */
.motto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.motto article {
  border-radius: var(--r-md); padding: 28px; min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
html.js .motto article[data-reveal], html.js .aud[data-reveal] {
  transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 90ms), transform 900ms var(--ease-out) calc(var(--i, 0) * 90ms), translate 500ms var(--ease-spring), box-shadow 500ms var(--ease-out);
}
.motto article:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
.motto article:nth-child(2) { background: var(--sky); box-shadow: none; }
.motto article:nth-child(3) { background: var(--dark); color: var(--dark-text); box-shadow: none; }
.motto article:nth-child(3) h3 { color: #fff; }
.motto h3 { font-family: var(--serif); font-weight: 400; font-size: 42px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; }
.motto .dir { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: -0.005em; opacity: .7; }
.motto .dir svg { width: 16px; height: 16px; transition: transform 700ms var(--ease-spring); }
.motto article:nth-child(1):hover .dir svg { transform: translateY(-3px); }
.motto article:nth-child(2):hover .dir svg { transform: scale(1.25); }
.motto article:nth-child(3):hover .dir svg { transform: rotate(90deg); }
.motto p { font-size: 16.5px; min-height: 3.2em; }

/* ---------- Expanding image (Tengile) ---------- */
.expand-media {
  --p: 1;
  position: relative; height: clamp(440px, 82vh, 760px); overflow: hidden;
  clip-path: inset(0 calc((1 - var(--p)) * 7vw) round calc((1 - var(--p)) * 32px));
}
.expand-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.18 - var(--p) * .18));
}
.expand-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,30,.12) 0%, rgba(20,26,30,.22) 40%, rgba(20,26,30,.72) 100%); }
.expand-copy {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(40px, 7vw, 80px);
  max-width: calc(var(--max) + 40px); margin: 0 auto;
  color: #fff; display: grid; gap: 16px; justify-items: start;
}
.expand-star { width: 30px; height: 30px; color: #fff; opacity: .9; transform: rotate(calc(var(--p) * 180deg)); }
.expand-quote { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -0.02em; max-width: 18ch; }
.expand-cite { font-size: 13px; font-weight: 700; letter-spacing: -0.005em; opacity: .8; }

/* ---------- Stats (Robot.com bento) ---------- */
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.stat {
  background: var(--surface); border-radius: var(--r-md);
  padding: 26px 28px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow-sm);
}
.stat .label { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.stat-photo { grid-row: span 2; border-radius: var(--r-md); overflow: hidden; position: relative; min-height: 420px; }
.stat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.stat-photo:hover img { transform: scale(1.04); }
.stat-photo .chip { left: 16px; right: auto; bottom: 16px; }
.stats .stat:nth-of-type(2) { background: var(--sky); box-shadow: none; }
.stats .stat:nth-of-type(3) { background: var(--dark); color: #f1f4f6; box-shadow: none; }
.stats .stat:nth-of-type(3) .label { color: var(--dark-muted); }

/* ---------- Audience cards ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.aud {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  display: grid; grid-template-columns: 1fr .82fr; min-height: 300px;
  box-shadow: var(--shadow-sm);
}
.aud:hover { box-shadow: var(--shadow-md); translate: 0 -3px; }
.aud-body { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.aud-body p { color: var(--ink-2); font-size: 15.5px; }
.aud-body .btn { margin-top: auto; align-self: flex-start; }
.aud-body .eyebrow { margin-bottom: 4px; }
.aud-img { position: relative; overflow: hidden; }
.aud-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.aud:hover .aud-img img { transform: scale(1.06); }
.aud.is-dark { background: var(--dark); color: #f1f4f6; }
.aud.is-dark .aud-body p { color: var(--dark-text); }
.aud.is-dark .eyebrow { color: var(--dark-muted); }
.aud.is-sky { background: var(--sky); box-shadow: none; }

/* ---------- FAQ (Fiasco) ---------- */
.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.faq-side { display: grid; gap: 18px; justify-items: start; position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.012em;
  transition: color var(--t-fast) var(--ease-out);
}
.faq summary:hover { color: var(--red); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  transition: transform 450ms var(--ease-spring), background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] .pm { transform: rotate(135deg); background: var(--dark); color: #fff; }
.faq details.is-closing .pm { transform: none; background: var(--surface); color: var(--ink); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 52px 24px 0; color: var(--ink-2); font-size: 16px; }

/* ---------- CTA band (Flexfolio) ---------- */

.cta-band {
  --mx: 30%; --my: 20%;
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: var(--r-lg);
  padding: clamp(64px, 9vw, 112px) 24px;
  color: #fff6f1;
  background:
    radial-gradient(120% 140% at 0% 0%, #d65a45 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, #8f2019 0%, transparent 60%),
    var(--red);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.16), transparent 60%);
}
.cta-band .h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.cta-band .h2 em { color: #ffd9cc; }
.cta-band p { margin: 18px auto 0; max-width: 46ch; color: #ffe3da; }
.cta-band .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta-band .compass-bg { position: absolute; z-index: -1; width: 460px; height: 460px; right: -130px; top: -130px; color: rgba(255,255,255,.08); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { padding-block: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; border-top: 1px solid var(--line); }
.footer .brand-f { display: flex; align-items: center; gap: 12px; }
.footer .brand-f img { width: 64px; height: 64px; border-radius: 14px; }
.footer .brand-f b { font-size: 17px; }
.footer .motto-line { font-family: var(--serif); font-size: 24px; margin-top: 18px; }
.footer p.small { color: var(--ink-3); font-size: 14px; margin-top: 10px; max-width: 34ch; }
.footer .f-title { font-size: 12.5px; letter-spacing: -0.005em; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color var(--t-fast) var(--ease-out); }
.footer ul a:hover { color: var(--red); }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.legal p { max-width: 72ch; }

/* =========================================================
   Inner pages
   ========================================================= */
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }

/* Nav dropdown */
.has-menu { position: relative; }
.nav-trigger {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 4px;
  padding: 9px 12px 9px 14px; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer;
  font: 600 14px/1.6 var(--sans); color: #b9c3c9; white-space: nowrap; transition: color var(--t-fast) var(--ease-out);
}
.nav-trigger svg { width: 14px; height: 14px; transition: transform 350ms var(--ease-spring); }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-trigger[aria-current] { color: #fff; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-links a[aria-current] { color: #fff; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; width: 320px;
  background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(20,26,30,.4), 0 0 0 1px rgba(28,34,38,.05);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
html.js .dropdown:not([hidden]) { animation: menu-in 320ms var(--ease-spring); }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); transition: background-color var(--t-fast) var(--ease-out); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.dropdown i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--sky-ink); transition: transform 400ms var(--ease-spring); }
.dropdown a:hover i { transform: scale(1.08) rotate(-6deg); }
.dropdown i svg { width: 18px; height: 18px; }
.dropdown b { display: block; font-size: 14.5px; }
.dropdown small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* Page hero */
.page-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero .display { font-size: clamp(44px, 6.4vw, 84px); max-width: 16ch; margin: 18px 0 20px; }
.page-hero.center { text-align: center; }
.page-hero.center .display, .page-hero.center .lede { margin-inline: auto; }
.page-hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.page-hero.center .ctas { justify-content: center; }
.hero-media { position: relative; margin-top: clamp(40px, 6vw, 64px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2 / 1; box-shadow: var(--shadow-md); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.page-hero.center .crumb { margin-bottom: 18px; }
.page-hero.center .post-meta { justify-content: center; }
.page-hero.no-media { padding-bottom: clamp(32px, 5vw, 56px); }
.hero-media .chip { left: 20px; right: auto; bottom: 20px; }
.crumb { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 14px; height: 14px; flex: none; transition: transform 400ms var(--ease-spring); }
.crumb:hover svg { transform: rotate(180deg) translateX(3px) !important; }

/* Generic layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.split-media.wide { aspect-ratio: 4 / 3; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.split-media:hover img { transform: scale(1.04); }
.stack { display: grid; gap: 18px; align-content: start; justify-items: start; }
.stack p { color: var(--ink-2); }

.bg-white { background: var(--surface); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border-radius: var(--r-md); padding: 26px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm);
}
html.js .card[data-reveal] { transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 90ms), transform 900ms var(--ease-out) calc(var(--i, 0) * 90ms), translate 500ms var(--ease-spring), box-shadow 500ms var(--ease-out); }
.card:hover { translate: 0 -3px; box-shadow: var(--shadow-md); }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--sky-ink); margin-bottom: 6px; transition: transform 500ms var(--ease-spring); }
.card:hover .ico { transform: rotate(-8deg) scale(1.06); }
.card .ico svg { width: 20px; height: 20px; }
.card.is-dark { background: var(--dark); color: #f1f4f6; box-shadow: none; }
.card.is-dark p { color: var(--dark-text); }
.card.is-dark .ico { background: rgba(255,255,255,.08); color: #fff; }
.card.is-sky { background: var(--sky); box-shadow: none; }
.card.is-sky .ico { background: var(--surface); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-link { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--ink); }
.card-link svg { width: 15px; height: 15px; transition: transform 400ms var(--ease-spring); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Check list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: #e3f3e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5.5-6' fill='none' stroke='%232f8a46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks.on-dark li { color: var(--dark-text); }
.checks.on-dark li::before { background-color: rgba(255,255,255,.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5.5-6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Notice */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fbefe9; border-radius: var(--r-md); padding: 20px 22px; color: #6c2a22;
}
.notice svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 1px; }
.notice p { color: #6c2a22; font-size: 15.5px; }
.notice b { color: #4f1d17; }

/* Schools */
.schools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.schools-grid.four { grid-template-columns: repeat(4, 1fr); }
.school { background: var(--surface); border-radius: var(--r-md); padding: 24px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-sm); }
html.js .school[data-reveal] { transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 90ms), transform 900ms var(--ease-out) calc(var(--i, 0) * 90ms), translate 500ms var(--ease-spring), box-shadow 500ms var(--ease-out); }
.school:hover { translate: 0 -3px; box-shadow: var(--shadow-md); }
.school .district { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.school h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; letter-spacing: -0.015em; }
.grades { display: flex; flex-wrap: wrap; gap: 6px; }
.grades span { background: var(--sky); color: var(--sky-ink); border-radius: var(--r-pill); padding: 4px 11px; font-size: 13px; font-weight: 700; }
.school .meta { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 14.5px; }
.school .meta svg { width: 16px; height: 16px; color: var(--ink-3); }

/* People */
.people { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.person { background: var(--surface); border-radius: var(--r-md); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.person .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--sky-ink); background: var(--sky); }
.person:nth-child(1) .avatar { background: var(--dark); color: #fff; }
.person b { display: block; font-size: 16.5px; }
.person small { display: block; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }

/* Law / quote */
.law { background: var(--dark); color: var(--dark-text); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
.law .h2 { color: #fff; }
.law .h2 em { color: #ff9c8f; }
.law .eyebrow { color: var(--dark-muted); }
.law p { color: var(--dark-text); }
.quote-block { border-left: 3px solid var(--red); padding-left: 24px; }
.quote-block p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; }
.quote-block p + p { margin-top: 18px; }
.quote-block cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--ink-2); }

/* Story (scroll-lit, centered) */
.story { text-align: center; display: grid; justify-items: center; gap: 28px; }
main > .story { padding-block: calc(var(--section) * 0.75); }
.story .eyebrow { justify-self: center; align-self: center; }
.story-text { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3; letter-spacing: -0.018em; max-width: 36ch; color: var(--ink); text-wrap: pretty; }
.story-text + .story-text { margin-top: -4px; }
.story-text em { color: var(--red); }
.story-sign { display: grid; justify-items: center; gap: 12px; margin-top: 12px; }
.story-sign img { width: 56px; height: 56px; border-radius: 12px; }
.story-sign b { font-size: 16px; }
.story-sign small { display: block; color: var(--ink-3); font-size: 14px; font-weight: 600; }

/* Give options (Dia) */
.give-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.give-card { background: var(--surface); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
html.js .give-card[data-reveal] { transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 90ms), transform 900ms var(--ease-out) calc(var(--i, 0) * 90ms), translate 500ms var(--ease-spring), box-shadow 500ms var(--ease-out); }
.give-card:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
.give-card .price { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.give-card .price small { font-family: var(--sans); font-size: 15px; color: var(--ink-3); letter-spacing: 0; }
.give-card p { color: var(--ink-2); font-size: 15.5px; }
.give-card .btn { width: 100%; margin-top: auto; }
.give-card.featured { background: var(--dark); color: #fff; box-shadow: var(--shadow-lg); }
.give-card.featured p { color: var(--dark-text); }
.give-card.featured .price small { color: var(--dark-muted); }
.give-card .tag { align-self: flex-start; background: var(--red); color: #fff; border-radius: var(--r-pill); padding: 5px 12px; font-size: 13px; font-weight: 700; }
.give-card hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 4px 0; }
.give-card.featured hr { border-color: rgba(255,255,255,.12); }

/* Forms */
.form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.field label span, .field legend span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 16px/1.4 var(--sans); color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 15px;
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--bg-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28,34,38,.08); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.options label { cursor: pointer; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options span { display: inline-block; padding: 9px 15px; border-radius: var(--r-pill); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink-2) !important; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform 300ms var(--ease-spring); }
.options input:checked + span { background: var(--dark); color: #fff !important; transform: scale(1.03); }
.options input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--ink-3); }
.form-success { display: flex; gap: 12px; align-items: center; background: #e3f3e6; color: #22603a; border-radius: var(--r-md); padding: 16px 18px; font-weight: 600; font-size: 15px; }
html.js .form-success:not([hidden]) { animation: menu-in 450ms var(--ease-spring); }

/* Contact tiles */
.contact-tiles { display: grid; gap: 12px; }
.contact-tile { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r-md); padding: 18px; text-decoration: none; box-shadow: var(--shadow-sm); transition: translate 400ms var(--ease-spring), box-shadow 400ms var(--ease-out); }
.contact-tile:hover { translate: 4px 0; box-shadow: var(--shadow-md); }
.contact-tile i { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--sky-ink); }
.contact-tile i svg { width: 19px; height: 19px; }
.contact-tile b { display: block; font-size: 15.5px; }
.contact-tile small { display: block; color: var(--ink-3); font-size: 13.5px; font-weight: 500; }
.contact-tile .go { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); }

/* News */
.posts { display: grid; gap: 20px; }
.post { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-img { position: relative; min-height: 320px; overflow: hidden; }
.post-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.post-meta .cat { background: var(--sky); color: var(--sky-ink); padding: 4px 11px; border-radius: var(--r-pill); }
.post h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.post p { color: var(--ink-2); }
.post .btn { margin-top: auto; align-self: flex-start; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { border: 0; cursor: pointer; padding: 9px 16px; border-radius: var(--r-pill); background: var(--surface); font: 600 14px/1 var(--sans); color: var(--ink-2); box-shadow: var(--shadow-sm); transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.filters button[aria-pressed="true"] { background: var(--dark); color: #fff; }
.post[hidden] { display: none; }

/* News cards (whole card is clickable) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-grid.two { grid-template-columns: repeat(2, 1fr); }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
html.js .post-card[data-reveal] { transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 90ms), transform 900ms var(--ease-out) calc(var(--i, 0) * 90ms), translate 500ms var(--ease-spring), box-shadow 500ms var(--ease-out); }
.post-card:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
.post-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.post-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card h2, .post-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.12; letter-spacing: -0.015em; }
.post-card h2 a, .post-card h3 a { text-decoration: none; color: var(--ink); }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card h2 a:focus-visible, .post-card h3 a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.post-card p { color: var(--ink-2); font-size: 15.5px; }
.post-card .card-link { margin-top: auto; }
.post-card:hover .card-link svg { transform: translateX(4px); }
.post-card[hidden] { display: none; }

/* Article */
.article-head .display { font-size: clamp(40px, 5.6vw, 72px); max-width: 18ch; margin: 18px 0 16px; }
.article-head .crumb svg { width: 14px; height: 14px; }
.article-head .post-meta { margin-top: 28px; }
.article-body { margin: 0 auto; font-size: 18px; }
.article-body p { font-size: 18px; line-height: 1.7; }
.article-body .btn { margin-top: 8px; }

/* Prose */
.prose { max-width: 68ch; display: grid; gap: 18px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.015em; margin-top: 18px; }
.prose p { color: var(--ink-2); }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.values > div { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.values > div:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.values b { font-size: 17px; }
.values p { color: var(--ink-2); font-size: 15.5px; }

/* Gallery (masonry) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(8, clamp(64px, 7vw, 96px)); grid-auto-flow: column; gap: 16px; }
.g-item { border-radius: var(--r-md); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); grid-row: span 3; }
.g-item:nth-child(2), .g-item:nth-child(4), .g-item:nth-child(9) { grid-row: span 2; }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.g-item:hover img { transform: scale(1.05); }

/* Steps without the progress line (vertical lists, multi-row grids) */
.steps.plain { padding-top: 0; row-gap: 40px; }
.steps.plain::before, .steps.plain::after, .steps.plain li::before { display: none; }
.steps.vertical { grid-template-columns: 1fr; row-gap: 24px; }
.steps.vertical li { padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.steps.vertical li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps.three { grid-template-columns: repeat(3, 1fr); }

/* Five-step process */
.steps.five { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .cards, .cards.four { grid-template-columns: 1fr 1fr; }
  .schools-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .law { grid-template-columns: 1fr; }
  .give-options { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-img { min-height: 260px; }
  .values { grid-template-columns: 1fr 1fr; }
  .values > div, .values > div:not(:nth-child(3n+1)) { padding: 22px 22px 22px 0; border-left: 0; }
  .steps.five, .steps.three { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-flow: row; grid-auto-rows: 200px; }
  .g-item, .g-item:nth-child(n) { grid-row: auto; }
  .hero-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .cards, .cards.two, .schools-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .post-grid, .post-grid.two { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .steps.five, .steps.three { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 160px; }
}

/* =========================================================
   Motion: hero intro + scroll reveals (only when JS runs)
   ========================================================= */
html.js .h-in { opacity: 0; transform: translateY(14px); }
html.js .mask .word { transform: translateY(110%); }
html.js .h-card { opacity: 0; transform: translateY(70px) rotate(var(--rot, 0deg)) scale(.96); }
.h-card:nth-child(1) { --rot: -4deg; } .h-card:nth-child(2) { --rot: 2deg; }
.h-card:nth-child(3) { --rot: -2deg; } .h-card:nth-child(4) { --rot: 4deg; }
html.js .h-card .chip { opacity: 0; transform: translateY(10px) scale(.94); }

html.js.is-ready .h-in { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--d) * 90ms + 150ms); }
html.js.is-ready .mask .word { transform: none; transition: transform 1100ms var(--ease-expo); transition-delay: calc(var(--d) * 90ms + 150ms); }
html.js.is-ready .h-card { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 1200ms var(--ease-spring); transition-delay: calc(var(--d) * 60ms + 100ms); }
html.js.is-ready .h-card .chip { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-spring); transition-delay: calc(var(--d) * 90ms + 850ms); }

/* Scroll reveals */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
html.js [data-reveal="scale"] { transform: translateY(28px) scale(.97); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js .chip.pop { opacity: 0; scale: .9; transition: opacity 500ms var(--ease-out), scale 600ms var(--ease-spring); transition-delay: calc(var(--i, 0) * 90ms + 450ms); }
html.js .in > .chip.pop { opacity: 1; scale: 1; }

/* Split headings (word mask rise) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .12em; margin-bottom: -.12em; }
.split-word > span { display: inline-block; }
html.js [data-split] .split-word > span { transform: translateY(110%); transition: transform 1000ms var(--ease-expo); transition-delay: calc(var(--w) * 55ms); }
html.js [data-split].in .split-word > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-secondary { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { justify-content: space-between; }
  .nav-shell.is-scrolled .nav { max-width: 1000px; }
  .photo-row { grid-template-columns: repeat(2, 1fr); }
  .photo-row .photo:nth-child(odd) { margin-top: 0; }
  .photo-row .photo:nth-child(n+3) { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-dark { grid-column: span 2; min-height: 0; }
  .split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 44px; }
.split-head .lede { font-size: 17px; }
  .split-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; padding-top: 0; }
  .steps::before, .steps::after, .steps li::before { display: none; }
  .motto { grid-template-columns: 1fr; }
  .motto article { min-height: 0; }
  .hiw-body { grid-template-columns: 1fr; }
  .hiw-sticky { display: none; }
  .hiw-steps { padding-left: 0; }
  .hiw-foot { padding-left: 0; }
  .hiw-steps::before, .hiw-steps::after, .hiw-step::before { display: none; }
  .hiw-step, html.js .hiw-step:not(.is-active) { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--line); }
  .hiw-inline { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; margin-top: 6px; }
  .hiw-inline img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-photo { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .audiences { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .hero .badge .long { display: none; }
  .hiw, .panel { padding: 24px 20px; border-radius: var(--r-md); }
  .hiw-step { padding: 24px 0; }
  .hero .ctas, .page-hero .ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .ctas .btn, .page-hero .ctas .btn { width: 100%; }
  .cards .card:has(> .ico) { position: relative; padding: 20px 20px 20px 80px; gap: 6px; min-height: 84px; }
  .cards .card:has(> .ico) > .ico { position: absolute; left: 20px; top: 20px; margin: 0; }
  .cards.four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards.four .card { padding: 18px; }
  .tile-dark { min-height: 0; padding: 26px; }
  .tile-sky { min-height: 220px; }
  .schools { padding-top: 28px; }
  .photo-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px;
    scrollbar-width: none;
  }
  .photo-row::-webkit-scrollbar { display: none; }
  .photo-row .photo, .photo-row .photo:nth-child(n+3) { display: block; flex: 0 0 74%; scroll-snap-align: center; aspect-ratio: 3 / 4; }
  .schools { flex-direction: column; align-items: stretch; gap: 14px; }
  .marquee li { font-size: 19px; }
  .bento { grid-template-columns: 1fr; }
  .tile-dark { grid-column: auto; }
  .tile { min-height: 280px; }
  .tile-photo .chip { font-size: 14px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0; }
  .steps li + li { padding-top: 28px; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 160px; padding: 22px; }
  .aud { grid-template-columns: 1fr; }
  .aud-img { min-height: 220px; order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-body p { padding-right: 0; }
  .expand-media { height: 520px; }
}

/* ---------- Reduced motion: show everything, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .curtain { display: none; }
  html.js .h-in, html.js .h-card, html.js .h-card .chip, html.js [data-reveal], html.js .chip.pop { opacity: 1 !important; transform: none !important; scale: 1 !important; }
  html.js .mask .word, html.js [data-split] .split-word > span { transform: none !important; }
  html.js [data-light] .w { opacity: 1; }
  html.js .steps li > * { opacity: 1; transform: none; }
  html.js .steps { --progress: 1; }
  html.js .steps li::before { border-color: var(--red); background: var(--red); }
  .expand-media { --p: 1 !important; }
  .photo { translate: none !important; }
  .hiw-panel { clip-path: none !important; }
  .hiw-panel img { transform: none !important; }
  .hiw-panel.is-active .chip { opacity: 1; transform: none; }
  .hiw-step { opacity: 1; }
  html { scroll-behavior: auto; }
}
