@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --navy: #1B2A4A;
  --navy-deep: #111C33;
  --gold: #E8B23A;
  --gold-hover: #F0C457;
  --gold-press: #D9A22C;
  --gold-soft: #F5E4B4;
  --gold-ink: #8A6212;
  --cream: #F8F3E6;
  --paper: #FFFDF7;
  --field: #FFFEFB;
  --muted: #4A5874;
  --error: #A3262A;
  --line: rgba(27, 42, 74, 0.12);
  --line-divider: rgba(27, 42, 74, 0.14);
  --line-input: rgba(27, 42, 74, 0.30);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: 20px;
  --content: 1328px;
  --bleed: calc((100vw - min(100vw - 2 * var(--gutter), var(--content))) / 2);
  --header-h: 60px;
  --chapter-gutter: 50px;
  --marker: 36px;
  --line-w: 2px;
  --radius: 12px;

  --ring: 0 0 0 3px var(--cream), 0 0 0 6px var(--navy);
  --ring-on-navy: 0 0 0 3px var(--navy), 0 0 0 6px var(--gold);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 56px;
    --header-h: 76px;
    --chapter-gutter: 220px;
    --marker: 56px;
    --line-w: 3px;
  }
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: 80px;
  scroll-padding-bottom: 96px;
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: 96px;
    scroll-padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
picture,
svg { display: block; max-width: 100%; }

img { height: auto; }

a,
button,
input,
select,
label { -webkit-tap-highlight-color: rgba(232, 178, 58, 0.2); touch-action: manipulation; }

button { font: inherit; color: inherit; }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--ring);
}

.hero,
.tile--event,
.site-footer,
.bottom-bar,
.site-header[data-state="hero"] .site-header__inner { --ring: var(--ring-on-navy); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 20px; height: 20px; flex: none; }

/* Skip link */

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible,
.skip-link:focus { transform: none; box-shadow: var(--ring-on-navy); }

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

@media (hover: hover) {
  .btn:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(138, 98, 18, 0.28);
  }
}

.btn:active {
  background: var(--gold-press);
  transform: scale(0.98);
  box-shadow: none;
}

.btn:focus-visible { box-shadow: var(--ring); }

.btn--block { display: flex; width: 100%; }

.btn--hero { height: 58px; font-size: 18px; padding: 0 28px; }
.btn--hero .icon { width: 20px; height: 20px; }

.btn--header { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--header .btn__long { display: none; }

.btn--tile { height: 52px; font-size: 16px; }

.btn--bar { height: 48px; padding: 0 20px; font-size: 16px; }

.btn--submit { height: 56px; font-size: 17px; }
.btn--submit .icon { width: 22px; height: 22px; }

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(27, 42, 74, 0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
}

.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn__spinner { display: block; animation: spin 700ms linear infinite; }
.btn[aria-busy="true"] .icon { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1024px) {
  .btn--hero { height: 64px; padding: 0 30px; font-size: 19px; gap: 12px; }
  .btn--hero .icon { width: 22px; height: 22px; }
  .btn--header { height: 46px; padding: 0 22px; }
  .btn--header .btn__long { display: inline; }
  .btn--header .btn__short { display: none; }
  .btn--submit { height: 58px; font-size: 18px; gap: 12px; }
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.site-header[data-state="solid"],
.site-header.is-menu-open {
  background: rgba(248, 243, 230, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.08);
  color: var(--navy);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .site-header__inner { padding-inline: var(--gutter); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

.brand__mark { width: 32px; height: 32px; flex: none; }

.brand__word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__word-tail { display: none; }

.stop-chip {
  display: none;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.stop-chip__current { color: var(--gold); }

body:not([data-stop="0"]) .stop-chip { display: inline-flex; }
body:not([data-stop="0"]) .site-header .brand .brand__word { display: none; }

.stop-tracker { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(248, 243, 230, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}

.menu-button svg { width: 20px; height: 20px; }
.menu-button__close { display: none; }

.site-header[data-state="solid"] .menu-button,
.site-header.is-menu-open .menu-button {
  border-color: var(--navy);
  color: var(--navy);
}

.menu-button[aria-expanded="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.site-header .menu-button[aria-expanded="true"] { color: var(--cream); }

.menu-button[aria-expanded="true"] .menu-button__open { display: none; }
.menu-button[aria-expanded="true"] .menu-button__close { display: block; }

@media (min-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
  }

  .brand { gap: 12px; justify-self: start; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__word { font-size: 23px; }
  .brand__word-tail { display: inline; }

  body:not([data-stop="0"]) .stop-chip { display: none; }
  body:not([data-stop="0"]) .site-header .brand .brand__word { display: inline; }

  .stop-tracker { display: block; }
  .menu-button { display: none; }
  .site-header__actions { justify-self: end; margin-left: 0; }
}

/* Stop tracker */

.stop-tracker__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.stop-tracker__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  border-radius: 999px;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline 2px transparent;
  text-underline-offset: 6px;
  white-space: nowrap;
  transition:
    background-color 250ms var(--ease-out),
    color 250ms var(--ease-out),
    text-decoration-color 180ms var(--ease-out);
}

.stop-tracker__link:hover { text-decoration-color: currentColor; }

.stop-badge {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition:
    background-color 250ms var(--ease-out),
    border-color 250ms var(--ease-out),
    color 250ms var(--ease-out);
}

.stop-badge__check { display: none; width: 12px; height: 12px; }

body:not([data-stop="0"]) .stop-tracker__list { gap: 6px; }

body:not([data-stop="0"]) .stop-tracker__link {
  padding: 0 12px 0 6px;
  font-size: 14px;
  text-decoration: none;
}

body:not([data-stop="0"]) .stop-tracker__link .stop-badge { display: inline-flex; }

.stop-tracker__link.is-passed { color: var(--muted); }

.stop-tracker__link.is-passed .stop-badge,
.phone-menu__link.is-passed .stop-badge {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.is-passed .stop-badge__num { display: none; }
.is-passed .stop-badge__check { display: block; }

.stop-tracker__link.is-current {
  padding-right: 14px;
  background: var(--navy);
  color: var(--cream);
}

.stop-tracker__link.is-current .stop-badge,
.phone-menu__link.is-current .stop-badge {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.phone-menu__link.is-current .stop-badge {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

/* Phone menu */

.phone-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 8px 16px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-divider);
  box-shadow: 0 18px 40px rgba(27, 42, 74, 0.16);
  color: var(--navy);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    visibility 0s linear 220ms;
}

.phone-menu[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

@media (min-width: 768px) {
  .phone-menu { padding-inline: var(--gutter); }
}

@media (min-width: 1024px) {
  .phone-menu { display: none; }
}

.phone-menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
}

.phone-menu__link--glance { border-bottom: 1px solid rgba(27, 42, 74, 0.1); border-radius: 0; }

.phone-menu__icon {
  display: flex;
  justify-content: center;
  width: 32px;
}

.phone-menu__icon svg { width: 22px; height: 22px; }

.stop-badge--menu {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-width: 2px;
  font-size: 19px;
}

.stop-badge--menu .stop-badge__check { width: 16px; height: 16px; }

.phone-menu__link.is-passed { color: var(--muted); }

.phone-menu__link.is-current {
  margin-inline: -8px;
  padding-inline: 8px;
  background: var(--gold-soft);
}

/* Hero */

.hero {
  --cue-space: 64px;
  --cue-bottom: 12px;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--cream);
}

.hero__media { position: absolute; inset: 0; }
.hero__media picture { width: 100%; height: 100%; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.04);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 28, 51, 0.55) 0%, rgba(17, 28, 51, 0) 22%, rgba(17, 28, 51, 0.1) 45%, rgba(17, 28, 51, 0.94) 88%);
}

.hero__sentinel {
  position: absolute;
  left: 0;
  bottom: var(--header-h);
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hero__band {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0 var(--gutter) 32px;
  margin-bottom: var(--cue-space);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(70px, 46.97px + 5.905vw, 132px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero__accent { color: var(--gold); }
.hero__break { display: none; }

.hero__cta { display: contents; }

.hero__label {
  order: -1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero__cta .btn { display: flex; width: 100%; }

/* Scroll cue: a static 48px hit area; only the inner ring moves */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--cue-bottom);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  color: var(--gold);
  transition: opacity 240ms var(--ease-out), visibility 0s linear 0s;
}

.hero__cue:focus-visible { outline: none; box-shadow: var(--ring-on-navy); }

.hero__cue-ring {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(248, 243, 230, 0.45);
  border-radius: 50%;
  background: rgba(17, 28, 51, 0.35);
}

.hero__cue .icon { width: 18px; height: 18px; }

.hero[data-scrolled] .hero__cue {
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms var(--ease-out), visibility 0s linear 160ms;
}

@media (min-width: 768px) {
  .hero { --cue-space: 80px; --cue-bottom: 20px; }
}

@media (min-width: 1024px) {
  .hero { --cue-space: 100px; --cue-bottom: 32px; }
  .hero__cue-ring { width: 44px; height: 44px; }
}

@media (hover: hover) and (pointer: fine) {
  .hero__cue:hover .hero__cue-ring { border-color: var(--gold); }
}

@media (min-width: 1024px) {
  .hero__img { object-position: 50% 40%; }

  .hero__scrim {
    background: linear-gradient(180deg, rgba(17, 28, 51, 0.55) 0%, rgba(17, 28, 51, 0) 22%, rgba(17, 28, 51, 0.1) 45%, rgba(17, 28, 51, 0.9) 100%);
  }

  .hero__band {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 48px;
    padding-bottom: 64px;
  }

  .hero__break { display: inline; }

  .hero__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
    padding-bottom: 10px;
  }

  .hero__label { order: 0; font-size: 14px; }
  .hero__cta .btn { display: inline-flex; width: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: hero-zoom 1600ms var(--ease-out) both; }

  .hero__word {
    display: inline-block;
    animation: word-rise 600ms var(--ease-out) both;
    animation-delay: calc(200ms + var(--i, 0) * 80ms);
  }

  .hero__word:nth-of-type(2) { --i: 1; }
  .hero__word:nth-of-type(3) { --i: 2; }
  .hero__word:nth-of-type(4) { --i: 3; }
  .hero__word:nth-of-type(5) { --i: 4; }

  .hero__label,
  .hero__cta .btn { animation: fade-up 600ms var(--ease-out) 620ms both; }

  /* Starts after the hero copy has landed, then drops and fades on a loop */
  .hero__cue-ring { animation: cue-drop 2600ms infinite 1300ms both; }
  .hero__cue:hover .hero__cue-ring,
  .hero__cue:focus-visible .hero__cue-ring { animation-play-state: paused; }
}

@keyframes cue-drop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.94); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  22% { opacity: 1; transform: none; }
  42% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1); }
  70% { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 0; transform: translateY(18px) scale(0.96); }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.04); }
}

@keyframes word-rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .hero { view-timeline-name: --hero; }

    .hero__media {
      animation: hero-parallax linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
  }
}

@keyframes hero-parallax {
  from { transform: translateY(0); }
  to { transform: translateY(8%); }
}

/* Board */

.board { padding: 64px 0 72px; }

.board__title {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(52px, 41.6px + 2.667vw, 80px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.board__grid > * { grid-column: 1 / -1; }

.tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.tile--stat,
.tile--academics,
.tile--athletics {
  background: var(--paper);
  border: 1px solid var(--line);
}

.tile--gold {
  background: var(--gold-soft);
  border-color: transparent;
}

.tile--photo picture,
.pillar__photo { display: block; }

.tile--photo picture,
.tile--photo img,
.pillar__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile--photo img,
.pillar__photo img { background: var(--navy-deep); }

/* Event tile */

.tile--event {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--navy);
  color: var(--cream);
}

.event__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event__label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event__date {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.event__time {
  color: rgba(248, 243, 230, 0.82);
  font-size: 17px;
  font-weight: 600;
}

.countdown {
  border-top: 1px solid rgba(248, 243, 230, 0.16);
  border-bottom: 1px solid rgba(248, 243, 230, 0.16);
  padding: 10px 0;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.countdown__cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.countdown__cell + .countdown__cell {
  padding-left: 14px;
  border-left: 1px solid rgba(248, 243, 230, 0.16);
}

.countdown__num {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(38px, 35.77px + 0.571vw, 44px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__unit {
  color: rgba(248, 243, 230, 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown__status {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.countdown[data-state="live"] .countdown__grid,
.countdown[data-state="over"] .countdown__grid { display: none; }

/* Stat tile */

.board__grid > .tile--stat { grid-column: auto; }

.tile--stat {
  height: 128px;
  padding: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat__count {
  display: inline-block;
  text-align: right;
}

.stat__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Pillar tiles */

.tile--academics .pillar__photo,
.tile--athletics .pillar__photo { height: 200px; }

.pillar__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 33.26px + 0.19vw, 36px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.pillar__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.tile--arts {
  height: 340px;
  background: var(--navy-deep);
}

.tile--arts .pillar__photo {
  position: absolute;
  inset: 0;
}

.tile--arts::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 28, 51, 0) 40%, rgba(17, 28, 51, 0.92) 100%);
}

.tile--arts .pillar__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 20px 18px;
  color: var(--cream);
}

.tile--arts .pillar__text { color: rgba(248, 243, 230, 0.88); }

/* Photo tiles */

.board__grid > .tile--friends,
.board__grid > .tile--project { grid-column: auto; height: 170px; }

.tile--classroom,
.tile--band { display: none; }

.tile--friends img { object-position: 50% 35%; }
.tile--classroom img { object-position: 40% 50%; }

/* Quote tile */

.tile--quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: var(--gold-soft);
}

.quote__glyph {
  display: block;
  height: 34px;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  line-height: 0.6;
}

.quote__stage { display: grid; }

.quote__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 600ms var(--ease-in-out),
    visibility 0s linear 600ms;
}

.quote__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.quote__text {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.quote__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 56px;
}

.quote__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 999px;
}

.quote__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quote__name { font-size: 14px; font-weight: 700; }

.quote__meta { color: var(--muted); font-size: 13px; }

.quote__controls { display: contents; }

.quote__dots {
  display: flex;
  align-items: center;
  height: 44px;
  margin: -6px 0 -8px -8px;
}

.quote__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 999px;
}

.quote__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 42, 74, 0.3);
  transition: background-color 250ms var(--ease-out);
}

.quote__dot[aria-current="true"] { width: 38px; }

.quote__dot[aria-current="true"]::before {
  width: 22px;
  background: var(--navy);
}

.quote__toggle {
  position: absolute;
  right: 22px;
  bottom: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out);
}

.quote__toggle:hover { background: rgba(27, 42, 74, 0.06); }

.quote__toggle svg { width: 16px; height: 16px; }
.quote__play { display: none; }
.quote__toggle[data-paused="true"] .quote__pause { display: none; }
.quote__toggle[data-paused="true"] .quote__play { display: block; }

/* Board tablet */

@media (min-width: 768px) {
  .board__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .board__grid > .tile--friends,
  .board__grid > .tile--project { grid-column: span 2; }
}

/* Board desktop */

@media (min-width: 1024px) {
  .board { padding: 112px 0 120px; }
  .board__title { margin-bottom: 40px; }

  .board__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(11, 88px);
    gap: 16px;
  }

  .board__grid > .tile--event { grid-column: 1 / 5; grid-row: 1 / 5; }
  .board__grid > .tile--academics { grid-column: 5 / 8; grid-row: 1 / 5; }
  .board__grid > .tile--arts { grid-column: 8 / 11; grid-row: 1 / 5; }
  .board__grid > .tile--stat-grad { grid-column: 11 / 13; grid-row: 1 / 3; }
  .board__grid > .tile--stat-ap { grid-column: 11 / 13; grid-row: 3 / 5; }
  .board__grid > .tile--athletics { grid-column: 1 / 8; grid-row: 5 / 8; }
  .board__grid > .tile--band { grid-column: 8 / 13; grid-row: 5 / 8; }
  .board__grid > .tile--quote { grid-column: 1 / 5; grid-row: 8 / 12; }
  .board__grid > .tile--classroom { grid-column: 5 / 8; grid-row: 8 / 12; }
  .board__grid > .tile--stat-clubs { grid-column: 8 / 11; grid-row: 8 / 10; }
  .board__grid > .tile--stat-ratio { grid-column: 11 / 13; grid-row: 8 / 10; }
  .board__grid > .tile--friends { grid-column: 8 / 11; grid-row: 10 / 12; height: auto; }
  .board__grid > .tile--project { grid-column: 11 / 13; grid-row: 10 / 12; height: auto; }

  .tile--classroom,
  .tile--band { display: block; }

  .tile--event {
    justify-content: space-between;
    gap: 16px;
    padding: 28px;
  }

  .event__head { gap: 10px; }
  .event__label { font-size: 13px; }
  .event__date { font-size: clamp(54px, 5.42vw, 78px); }
  .event__time { font-size: 19px; }
  .countdown { padding: 12px 0; }
  .countdown__cell + .countdown__cell { padding-left: 16px; }

  .tile--stat {
    height: auto;
    padding: clamp(16px, 1.4vw, 20px);
  }

  .stat__value { font-size: clamp(54px, 5.28vw, 76px); }
  .stat__label { font-size: 15px; }

  .tile--academics {
    display: flex;
    flex-direction: column;
  }

  .tile--academics .pillar__photo {
    flex: 0 1 232px;
    min-height: 120px;
    height: auto;
  }

  .tile--academics .pillar__body {
    gap: 8px;
    padding: 20px 22px;
  }

  .tile--arts { height: auto; }

  .tile--arts .pillar__body {
    gap: 8px;
    padding: 0 22px 20px;
  }

  .tile--athletics {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
  }

  .tile--athletics .pillar__photo { height: 100%; }

  .tile--athletics .pillar__body {
    justify-content: flex-end;
    gap: 10px;
    padding: 28px;
  }

  .tile--athletics .pillar__title { font-size: 44px; }
  .tile--athletics .pillar__text { font-size: 16px; }

  .tile--quote {
    justify-content: space-between;
    gap: 6px;
    padding: 28px;
  }

  .quote__glyph {
    height: 44px;
    font-size: 96px;
  }

  .quote__stage { flex: 1; }

  .quote__text {
    font-size: 22px;
    line-height: 1.38;
  }

  .quote__caption {
    gap: 12px;
    min-height: 48px;
    padding-right: 120px;
  }

  .quote__avatar {
    display: none;
    width: 48px;
    height: 48px;
  }

  .quote__name { font-size: 15px; }

  .quote__controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
  }

  .quote__dots {
    height: 24px;
    margin: 0;
  }

  .quote__dot { width: 16px; height: 24px; }
  .quote__dot[aria-current="true"] { width: 30px; }

  .quote__toggle {
    position: static;
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1280px) {
  .quote__avatar { display: block; }
}

/* Reveal */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 400ms var(--ease-out),
    transform 400ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

@media (min-width: 1024px) {
  .reveal-ready .reveal { transform: translateY(24px); }

  .reveal-ready .reveal.is-in {
    transition-duration: 700ms;
  }
}

/* Visit intro */

.visit-intro {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line-divider);
}

.visit-intro__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visit-intro__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visit-intro__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-display);
}

.visit-intro__big {
  font-size: clamp(64px, 49.14px + 3.81vw, 104px);
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
}

.visit-intro__sub {
  color: var(--gold-ink);
  font-size: clamp(28px, 24.29px + 0.952vw, 38px);
  font-weight: 800;
  line-height: 1;
}

.visit-intro__lead {
  max-width: 44ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid rgba(27, 42, 74, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.info-chip .icon { width: 16px; height: 16px; }

.stop-cards {
  display: flex;
  gap: 12px;
  margin: 0 calc(-1 * var(--gutter)) 0 -6px;
  padding: 14px var(--gutter) 8px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 6px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.stop-cards::-webkit-scrollbar { display: none; }

.stop-cards > li {
  flex: none;
  scroll-snap-align: start;
}

.stop-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 148px;
  height: 176px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

@media (hover: hover) {
  .stop-card:hover {
    transform: translateY(-3px);
    border-color: rgba(27, 42, 74, 0.3);
  }
}

.stop-card--final {
  background: var(--gold);
  border-color: transparent;
}

@media (hover: hover) {
  .stop-card--final:hover { border-color: transparent; }
}

.stop-card__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  line-height: 0.8;
}

.stop-card__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stop-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.stop-card__arrow { display: none; width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .visit-intro { padding: 104px 0 88px; }

  .visit-intro__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 16px;
  }

  .visit-intro__copy {
    grid-column: 1 / 6;
    gap: 22px;
  }

  .visit-intro__title { gap: 10px; }
  .visit-intro__lead { font-size: 18px; }
  .info-chips { gap: 10px; }

  .info-chip {
    height: 40px;
    padding: 0 16px;
    font-size: 15px;
  }

  .info-chip .icon { width: 18px; height: 18px; }

  .stop-cards {
    grid-column: 7 / 13;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .stop-card {
    width: auto;
    height: 236px;
    padding: 20px;
  }

  .stop-card__num { font-size: 72px; }
  .stop-card__name { font-size: 28px; }
  .stop-card__arrow { display: block; }
}

/* Visit chapters */

.visit { position: relative; }

.visit__line {
  position: absolute;
  top: var(--line-top, 0px);
  left: calc(var(--gutter) + var(--marker) / 2 - var(--line-w) / 2);
  width: var(--line-w);
  height: var(--line-h, 0px);
  background: var(--line-divider);
  pointer-events: none;
}

.visit__line-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
}

.chapter {
  display: grid;
  grid-template-columns: var(--chapter-gutter) minmax(0, 1fr);
  padding: 48px 0 56px;
  /* Anchor jumps land the marker exactly on its dock line (header + 24px), which is what activates the stop.
     Offsets cancel html's scroll-padding-top (80px) and this padding-top (48px). */
  scroll-margin-top: calc(var(--header-h) + 24px - 80px - 48px);
}

.chapter__gutter {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}

.stop-marker {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.stop-marker__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--marker);
  height: var(--marker);
  border: 2.5px solid var(--navy);
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  transition:
    background-color 250ms var(--ease-out),
    border-color 250ms var(--ease-out),
    color 250ms var(--ease-out),
    box-shadow 250ms var(--ease-out),
    border-radius 400ms var(--ease-out);
}

/* The last stop ends the line, so its marker docks and then travels with the page instead of floating on alone */
.chapter:last-of-type .stop-marker { position: relative; top: 0; }

/* Number and check share one cell so a passed stop can crossfade between them */
.stop-marker__num,
.stop-marker__check {
  grid-area: 1 / 1;
  transition:
    opacity 220ms var(--ease-out),
    transform 300ms var(--ease-out),
    clip-path 380ms var(--ease-out);
}

.stop-marker__check {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(0.8);
  clip-path: inset(0 100% 0 0);
}

/* Passed: the circle morphs into a checked checkbox */
.chapter.is-passed .stop-marker__dot {
  border-radius: 28%;
  background: var(--gold);
  border-color: var(--gold);
}

.chapter.is-passed .stop-marker__num {
  opacity: 0;
  transform: scale(0.4);
}

.chapter.is-passed .stop-marker__check {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition-delay: 120ms;
}

/* Arriving: a short "shout" plus two shockwave rings */
.stop-marker__dot::before,
.stop-marker__dot::after {
  content: "";
  position: absolute;
  inset: -2.5px;
  border: 2px solid var(--gold);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .chapter.is-arriving .stop-marker__dot { animation: marker-shout 560ms var(--ease-out); }
  .chapter.is-arriving .stop-marker__dot::before { animation: marker-wave 700ms var(--ease-out); }
  .chapter.is-arriving .stop-marker__dot::after { animation: marker-wave 700ms var(--ease-out) 140ms; }
}

@keyframes marker-shout {
  0% { transform: scale(1); }
  22% { transform: scale(1.3) rotate(-8deg); }
  38% { transform: scale(1.22) rotate(7deg); }
  54% { transform: scale(1.14) rotate(-4deg); }
  74% { transform: scale(0.96) rotate(0deg); }
  100% { transform: scale(1); }
}

@keyframes marker-wave {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.4); }
}

.chapter.is-current .stop-marker__dot {
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--navy);
}

.stop-marker__label { display: none; }

.chapter__body {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.chapter__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 250ms var(--ease-out);
}

.chapter.is-current .chapter__label,
.chapter.is-current .stop-marker__label { color: var(--navy); }

.chapter__title {
  font-family: var(--font-display);
  font-size: clamp(50px, 37.37px + 3.238vw, 84px);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.chapter__lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 16.26px + 0.19vw, 19px);
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .chapter {
    padding: 40px 0 88px;
    scroll-margin-top: calc(var(--header-h) + 24px - 96px - 40px);
  }

  .stop-marker__dot {
    border-width: 3px;
    font-size: 30px;
  }

  .stop-marker__check { width: 26px; height: 26px; }

  .chapter.is-current .stop-marker__dot {
    box-shadow: 0 0 0 6px var(--cream), 0 0 0 8px var(--navy);
  }

  .stop-marker__label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
    transition: color 250ms var(--ease-out);
  }

  .chapter__label { display: none; }
  .chapter__body { gap: 18px; }
}

/* Stop 1 tour gallery */

.tour-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 6px;
}

.tour-gallery picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
}

.tour-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-gallery__main {
  grid-column: 1 / -1;
  height: 210px;
}

.tour-gallery__side { height: 124px; }

@media (min-width: 768px) {
  .tour-gallery__main { height: 320px; }
  .tour-gallery__side { height: 200px; }
}

@media (min-width: 1024px) {
  .tour-gallery {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 262px 262px;
    gap: 16px;
    padding-top: 18px;
  }

  .tour-gallery__main {
    grid-column: 1;
    grid-row: 1 / 3;
    height: auto;
  }

  .tour-gallery__side { height: auto; }
}

/* Stop 2 teacher split */

.teacher-split__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teacher-split__photo {
  display: block;
  height: 360px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
}

.teacher-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 50%;
}

@media (min-width: 1024px) {
  .teacher-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }

  .teacher-split__copy { gap: 20px; }
  .teacher-split .chapter__lead { max-width: 44ch; }

  .teacher-split__photo {
    height: 560px;
    margin-top: 0;
  }
}

/* Stop 3 programs rail */

.rail {
  position: relative;
  padding-top: 6px;
}

/* Phone swipe hint: flashes over the rail until the first swipe */

.rail__hint { display: none; }

@media (max-width: 1023px) {
  .rail__hint {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px 0 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 28, 51, 0.86);
    color: var(--cream);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition:
      opacity 300ms var(--ease-out),
      transform 300ms var(--ease-out);
  }

  .rail__hint-arrow { width: 16px; height: 16px; color: var(--gold); }

  /* The shine sweep that makes the pill "flash" */
  .rail__hint::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(248, 243, 230, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
  }

  .rail.is-hinting .rail__hint {
    opacity: 1;
    transform: translateY(-50%);
  }

  .rail.is-hint-done .rail__hint {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .rail.is-hinting .rail__hint::after { animation: hint-flash 1800ms var(--ease-in-out) 400ms infinite; }
  .rail.is-hinting .rail__hint-arrow { animation: hint-nudge 1800ms var(--ease-in-out) 400ms infinite; }
  .rail.is-hinting:not(.is-hint-done) .rail__track { animation: rail-peek 1100ms var(--ease-in-out) 500ms; }
}

@keyframes hint-flash {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}

@keyframes hint-nudge {
  0%, 55%, 100% { transform: none; }
  20% { transform: translateX(5px); }
  38% { transform: translateX(-1px); }
}

@keyframes rail-peek {
  0%, 100% { transform: none; }
  45% { transform: translateX(-40px); }
}

.rail__viewport {
  margin: -6px calc(-1 * var(--bleed)) -6px -6px;
  padding: 6px var(--bleed) 6px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px 20px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.rail__viewport::-webkit-scrollbar { display: none; }

@media (hover: hover) and (pointer: fine) {
  .rail:not(.is-pinned) .rail__viewport { cursor: grab; }
}

.rail.is-dragging .rail__viewport {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.program-card img { -webkit-user-drag: none; }

.rail__track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.program-card {
  position: relative;
  flex: none;
  width: 236px;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
  scroll-snap-align: start;
}

.program-card__photo {
  position: absolute;
  inset: 0;
  display: block;
}

.program-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 500ms var(--ease-out);
}

.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 28, 51, 0) 45%, rgba(17, 28, 51, 0.9) 100%);
}

.program-card__text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--cream);
}

.program-card__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.program-card__line {
  color: rgba(248, 243, 230, 0.86);
  font-size: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .program-card:hover .program-card__photo img,
  .program-card:focus-visible .program-card__photo img { transform: scale(1.08); }
}

.rail__progress {
  position: relative;
  display: none;
  max-width: 420px;
  height: 3px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.rail__progress-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
}

@media (min-width: 1024px) {
  .rail { padding-top: 18px; }
  .rail__track { gap: 20px; }

  .program-card {
    width: 300px;
    height: 420px;
  }

  .program-card__text {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

  .program-card__title { font-size: 34px; }
  .program-card__line { font-size: 15px; }

  .rail__viewport {
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 42, 74, 0.3) transparent;
  }

  .rail__viewport::-webkit-scrollbar { display: block; height: 6px; }
  .rail__viewport::-webkit-scrollbar-thumb { background: rgba(27, 42, 74, 0.3); border-radius: 999px; }

  .rail.is-pinned .rail__viewport {
    overflow: clip;
    scroll-snap-type: none;
  }

  .rail.is-pinned .rail__track { will-change: transform; }
  .rail.is-pinned .rail__progress { display: block; }

  /* Native sticky instead of a JS pin: the chapter's row grows by the rail's run so
     the body holds still while the track slides, and the gutter marker keeps
     its own sticky behaviour with no hand-off jump at the end. */
  .chapter.is-rail-pinned {
    grid-template-rows: minmax(var(--rail-span, auto), auto);
    overflow-anchor: none;
  }

  .chapter.is-rail-pinned .chapter__body {
    position: sticky;
    top: var(--rail-stick, calc(var(--header-h) + 24px));
    align-self: start;
  }
}

/* Stop 4 reserve */

.chapter--reserve { padding-bottom: 64px; }

.reserve__details {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.reserve__details span {
  color: var(--muted);
  font-weight: 500;
}

.expect__title,
.expect__list { display: none; }

.expect__line {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.expect__line strong { color: var(--navy); }

.reserve__photo { display: none; }

.form-card {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 24px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reg-form__note {
  color: var(--muted);
  font-size: 14px;
}

.reg-form__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field__label {
  font-size: 15px;
  font-weight: 700;
}

.field__control {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line-input);
  border-radius: 10px;
  background: var(--field);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out);
}

.field__control:focus {
  outline: 2px solid transparent;
  border-color: var(--navy);
  box-shadow: 0 0 0 0.5px var(--navy), 0 0 0 4px rgba(232, 178, 58, 0.55);
}

.field__control[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 0.5px var(--error);
}

.field__control[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 0.5px var(--error), 0 0 0 4px rgba(232, 178, 58, 0.55);
}

.field__select { position: relative; }

.field__select .field__control {
  padding-right: 44px;
  cursor: pointer;
}

.field__select .field__control:invalid { color: var(--muted); }
.field__select option { color: var(--navy); }

.field__caret {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.field__error svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.programs {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.programs__legend {
  float: left;
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.programs__grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1.5px solid var(--line-input);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out);
}

@media (hover: hover) {
  .option:hover { border-color: rgba(27, 42, 74, 0.55); }
}

.option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.option__box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(27, 42, 74, 0.45);
  border-radius: 6px;
  color: var(--cream);
  transition:
    background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out);
}

.option__box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.option__input:checked + .option__box {
  background: var(--navy);
  border-color: var(--navy);
}

.option__input:checked + .option__box svg { opacity: 1; }

.option:has(.option__input:checked) {
  background: var(--gold-soft);
  border-color: var(--navy);
}

.option:has(.option__input:focus-visible) { box-shadow: var(--ring); }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.form-success__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
}

.form-success__check svg { width: 20px; height: 20px; }

.form-success__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.form-success__title:focus { outline: none; }
.form-success__title:focus-visible { box-shadow: var(--ring); border-radius: 4px; }

.form-success__text {
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 768px) {
  .reg-form__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
  }

  .programs__grid { gap: 10px; }
}

@media (min-width: 1024px) {
  .chapter--reserve {
    grid-template-columns: var(--chapter-gutter) minmax(0, 1fr) 56px minmax(0, 1.5fr);
    align-items: start;
    padding-bottom: 112px;
  }

  .reserve__info { gap: 0; }
  .reserve__info .chapter__title { margin-bottom: 16px; }

  .reserve__details { font-size: 19px; }

  .expect { margin-top: 28px; }

  .expect__title {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  .expect__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
  }

  .expect__list li {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .expect__check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
  }

  .expect__check svg { width: 16px; height: 16px; }

  .expect__line { display: none; }

  .reserve__photo {
    display: block;
    height: 300px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy-deep);
  }

  .reserve__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
  }

  .form-card {
    grid-column: 4;
    grid-row: 1;
    margin-top: 0;
    padding: 40px;
  }

  .reg-form { gap: 26px; }

  .programs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .option {
    gap: 10px;
    min-height: 52px;
    padding: 8px 14px;
    font-size: 15px;
  }

  .option__box {
    width: 22px;
    height: 22px;
  }

  .option__box svg { width: 14px; height: 14px; }

  .form-success { gap: 12px; }
}

/* Footer */

.site-footer {
  padding: 48px 0 calc(32px + 76px + env(safe-area-inset-bottom));
  background: var(--navy);
  color: var(--cream);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.site-footer__school {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand--footer { gap: 10px; align-self: flex-start; }
.brand--footer .brand__mark { width: 34px; height: 34px; }
.brand--footer .brand__word { font-size: 23px; }

.site-footer__address {
  color: rgba(248, 243, 230, 0.8);
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}

.site-footer__heading {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.social {
  display: flex;
  gap: 12px;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(248, 243, 230, 0.35);
  border-radius: 999px;
  color: var(--cream);
  transition:
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

@media (hover: hover) {
  .social__link:hover {
    border-color: var(--gold);
    background: rgba(248, 243, 230, 0.06);
  }
}

.social__link svg { width: 22px; height: 22px; }

.site-footer__district-name {
  font-size: 15px;
  font-weight: 700;
}

.site-footer__campaign {
  margin-top: 6px;
  color: rgba(248, 243, 230, 0.7);
  font-size: 15px;
  line-height: 1.5;
}

.site-footer__legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 243, 230, 0.14);
  color: rgba(248, 243, 230, 0.65);
  font-size: 13px;
}

@media (min-width: 1024px) {
  .site-footer { padding: 72px 0 40px; }

  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
  }

  .site-footer__school { gap: 18px; }
  .brand--footer { gap: 12px; }
  .brand--footer .brand__mark { width: 40px; height: 40px; }
  .brand--footer .brand__word { font-size: 26px; }
  .site-footer__address { font-size: 16px; }
  .site-footer__heading { margin-bottom: 16px; font-size: 28px; }
  .site-footer__district-name { font-size: 16px; }
  .site-footer__campaign { margin-top: 10px; }

  .site-footer__legal {
    margin-top: 56px;
    padding-top: 24px;
    font-size: 14px;
  }
}

/* Bottom bar */

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: calc(76px + env(safe-area-inset-bottom));
  padding: 0 16px env(safe-area-inset-bottom);
  background: var(--navy);
  color: var(--cream);
  transform: translateY(100%);
  transition: transform 250ms var(--ease-out);
}

.bottom-bar[data-visible="true"] { transform: none; }

@media (min-width: 768px) {
  .bottom-bar { padding-inline: var(--gutter); }
}

@media (min-width: 1024px) {
  .bottom-bar { display: none; }
}

.bottom-bar__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bottom-bar__label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bottom-bar__line {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* State entrances: things that switch on from display:none ease in instead of popping */

.stop-card:active { transform: scale(0.97); }

@media (prefers-reduced-motion: no-preference) {
  .form-success {
    transition:
      opacity 300ms var(--ease-out),
      transform 300ms var(--ease-out);
  }

  .form-success__check {
    transition:
      opacity 200ms var(--ease-out) 80ms,
      transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1) 80ms;
  }

  .field__error {
    transition:
      opacity 180ms var(--ease-out),
      transform 180ms var(--ease-out);
  }

  .stop-badge__check {
    transition:
      opacity 200ms var(--ease-out),
      transform 250ms var(--ease-out);
  }

  .stop-chip {
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out);
  }

  @starting-style {
    .form-success { opacity: 0; transform: translateY(8px); }
    .form-success__check { opacity: 0; transform: scale(0.6); }
    .field__error { opacity: 0; transform: translateY(-4px); }

    .is-passed .stop-badge__check { opacity: 0; transform: scale(0.6); }

    body:not([data-stop="0"]) .stop-chip { opacity: 0; transform: scale(0.96); }
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .phone-menu,
  .bottom-bar,
  .quote__slide { transition-duration: 0s; }

  .program-card__photo img { transition: none; }

  .form-success,
  .form-success__check,
  .field__error,
  .stop-badge__check,
  .stop-chip { transition: opacity 200ms var(--ease-out); }

  .stop-marker__num,
  .stop-marker__check,
  .chapter.is-passed .stop-marker__num,
  .chapter.is-passed .stop-marker__check {
    transform: none;
    clip-path: none;
    transition: opacity 200ms var(--ease-out);
  }

  @starting-style {
    .form-success,
    .form-success__check,
    .field__error,
    .is-passed .stop-badge__check,
    body:not([data-stop="0"]) .stop-chip { opacity: 0; }
  }
}
