/* ==========================================================================
   The Train Station Preschool — design system (concept phase)
   Structure: 1 Tokens  2 Base  3 Type  4 Layout  5 Components  6 Header
              7 Footer  8 Sections (home)  9 Sections (programs)  10 Motion
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* brand core */
  --teal: #339088;
  --teal-deep: #1B7B73;
  --teal-light: #5EB0A6;
  --white: #FBFBFA;
  --ink: #252525;
  /* brand accents */
  --red-deep: #821107;
  --coral: #F84530;
  --orange: #FD9B38;
  --sky: #A6DBF8;
  --sand: #D3C09B;
  --cream: #F2EBD8;
  --lavender: #6E6889;
  --coral-orange: #FB6737;
  --dusty: #B1C6DD;
  /* derived */
  --ink-soft: rgba(37, 37, 37, .8);
  --ink-mute: rgba(37, 37, 37, .7);
  --rule: rgba(37, 37, 37, .12);
  --rule-strong: rgba(37, 37, 37, .22);
  --cream-soft: #F8F4EA;
  --sky-soft: #E7F4FC;
  --teal-ink: #16645E; /* AA on cream for body-size text */
  --shadow-soft: 0 24px 60px -30px rgba(37, 37, 37, .35);
  --shadow-card: 0 10px 30px -18px rgba(37, 37, 37, .35);

  /* type */
  --font: "TT Norms Pro", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.9rem, 1.6rem + 5.6vw, 6.4rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4vw, 4.6rem);
  --fs-h2: clamp(2rem, 1.25rem + 2.9vw, 3.6rem);
  --fs-h3: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  --fs-h4: clamp(1.15rem, 1.05rem + .4vw, 1.3rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .5vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .75rem;

  /* layout */
  --container: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --section-sm: clamp(3rem, 6vw, 5.5rem);
  --radius: 28px;
  --radius-sm: 16px;
  --header-h: 84px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .7s;
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--teal); }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
blockquote, figure { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
em { font-style: italic; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 7px #fff; }
.bg-teal :focus-visible, .footer :focus-visible, .menu :focus-visible, .visit :focus-visible, .cta-band :focus-visible { outline-color: #fff; box-shadow: 0 0 0 7px var(--ink); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: .75rem 1rem; background: var(--ink); color: #fff; border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
::selection { background: var(--sky); color: var(--ink); }

/* 3. TYPE ---------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -.022em; text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: .98; letter-spacing: -.03em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1.04; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.015em; }
.h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.lead strong { color: var(--ink); }
.small { font-size: var(--fs-small); }
.mute { color: var(--ink-mute); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.tnum { font-variant-numeric: tabular-nums; }
a.tnum { white-space: nowrap; }
.italic { font-style: italic; }
.accent { color: var(--teal-deep); }

/* signage label: small caps, tracked, with a stop-marker ring */
.label {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-ink); line-height: 1.2;
}
.label::before {
  content: ""; width: .7em; height: .7em; border-radius: 50%;
  border: .18em solid currentColor; background: transparent; flex: none;
}
.label--plain::before { display: none; }
.label--light { color: rgba(255, 255, 255, .92); }
.label--coral { color: var(--red-deep); }
.label--ink { color: var(--ink); }

/* 4. LAYOUT -------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 980px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--sm { padding-block: var(--section-sm); }
.section--flush-top { padding-top: 0; }
.bg-cream { background: var(--cream); }
.bg-cream-soft { background: var(--cream-soft); }
.bg-teal { background: var(--teal-deep); color: #fff; }
.bg-ink { background: var(--ink); color: #fff; }
.bg-sky { background: var(--sky-soft); }
.grid { display: grid; gap: var(--gutter); }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.flow > * + * { margin-top: 1em; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-media { grid-template-columns: 5fr 7fr; } .split--wide-text { grid-template-columns: 7fr 5fr; } }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
@media (min-width: 900px) { .section-head--row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

/* 5. COMPONENTS ---------------------------------------------------------- */
/* Buttons */
.btn {
  --btn-bg: var(--coral-orange); --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.btn .arrow { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease-out); }
.btn:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); text-decoration: none; }
.btn:hover .arrow { transform: translateX(.2em); }
.btn:active { transform: translateY(1px); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-strong); }
.btn--secondary:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--teal { --btn-bg: var(--teal-deep); --btn-fg: #fff; }
.btn--teal:hover { --btn-bg: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--teal-deep); }
.btn--light:hover { --btn-bg: var(--coral-orange); --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--teal-deep); --btn-bd: #fff; }
.btn--sm { min-height: 2.6rem; padding: .6rem 1.1rem; font-size: .9375rem; }
.btn--lg { min-height: 3.75rem; padding: 1.05rem 1.9rem; font-size: 1.0625rem; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.2; } .header__tour, .menu-btn { white-space: nowrap; } }

/* Text link with arrow */
.link {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none;
  color: var(--teal-ink); border-bottom: 2px solid transparent; transition: border-color .25s;
}
.link .arrow { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.link:hover { border-color: currentColor; }
.link:hover .arrow { transform: translateX(.2em); }
.link--light { color: #fff; }

/* Window (photo frame) */
.window { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cream); isolation: isolate; }
.window > picture { position: absolute; inset: 0; }
.window img { width: 100%; height: 100%; object-fit: cover; }
.window--sm { border-radius: var(--radius-sm); }
.window--portrait { aspect-ratio: 4 / 5; }
.window--square { aspect-ratio: 1; }
.window--wide { aspect-ratio: 16 / 10; }
.window--tall { aspect-ratio: 3 / 4; }
.window--cinema { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .window { border-radius: 18px; } }

/* Caption pill on photos */
.caption {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2; max-width: calc(100% - 2rem);
  display: inline-flex; align-items: center; gap: .6em; padding: .5rem .9rem .5rem .7rem;
  background: rgba(251, 251, 250, .92); backdrop-filter: blur(6px); border-radius: 999px;
  font-size: .8125rem; font-weight: 700; color: var(--ink); letter-spacing: .01em;
}
.caption::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral-orange); flex: none; }

/* Ticket */
.ticket {
  position: relative; background: var(--cream); color: var(--ink);
  border-radius: 14px; padding: 1.4rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  --hole: 9px;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent var(--hole), #000 calc(var(--hole) + .5px)) left/ 100% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent var(--hole), #000 calc(var(--hole) + .5px)) left/ 100% 100% no-repeat;
}
.ticket::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(37, 37, 37, .025) 6px 7px);
  mix-blend-mode: multiply;
}
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .9rem; border-bottom: 2px dashed var(--rule-strong); }
.ticket__head .label { color: var(--ink); }
.ticket__stamp {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep);
  border: 2px solid currentColor; border-radius: 6px; padding: .2rem .5rem; transform: rotate(-4deg);
}
.ticket__rows { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.25rem; margin-top: 1rem; font-size: .9375rem; }
.ticket__rows dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); align-self: center; }
.ticket__rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Departure board */
.board {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-soft);
  background-image: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .06), transparent 60%);
}
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.board__rows { display: grid; }
.board__row {
  display: grid; grid-template-columns: minmax(7rem, 2fr) 3fr; gap: 1rem; align-items: baseline;
  padding: .95rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.board__row:last-child { border-bottom: 0; }
.board__k { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.board__v { font-weight: 700; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.board__v small { display: block; font-weight: 400; font-size: .9rem; color: rgba(255, 255, 255, .7); margin-top: .15rem; letter-spacing: 0; }
.board__dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal-light); margin-right: .5rem; box-shadow: 0 0 0 4px rgba(94, 176, 166, .2); }

/* Stop marker (route) */
.stop {
  position: relative; z-index: 2; /* always above the route lines, with the white halo masking them */
  width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--white);
  border: .3rem solid var(--stop-color, var(--teal)); box-shadow: 0 0 0 4px var(--white); flex: none;
}

/* Quote */
.quote { font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.3; font-weight: 700; letter-spacing: -.015em; text-wrap: pretty; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; opacity: .95; }

/* Avatar stack */
.faces { display: flex; align-items: center; flex: none; }
.faces img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); margin-left: -.9rem; background: var(--ink); }
.faces img:first-child { margin-left: 0; }

/* Pill tag */
.tag { display: inline-flex; align-items: center; gap: .5em; padding: .4rem .8rem; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); font-size: .8125rem; font-weight: 700; }
.tag i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--tag-color, var(--teal)); }

/* Anniversary seal */
.seal { width: clamp(96px, 11vw, 136px); aspect-ratio: 1; filter: drop-shadow(0 10px 20px rgba(37, 37, 37, .2)); }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__bg { fill: var(--coral-orange); }
.seal__ring { font-family: var(--font); font-size: 9px; font-weight: 700; letter-spacing: .07em; fill: var(--ink); }
.seal__num { font-family: var(--font); font-size: 40px; font-weight: 800; letter-spacing: -.04em; fill: var(--ink); }
.seal__spin { transform-origin: 60px 60px; animation: spin 4.5s var(--ease-out) 1 both; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal__spin { animation: none; } }
.hero__seal { position: absolute; top: -1.25rem; right: -.75rem; z-index: 4; }
@media (min-width: 900px) { .hero__seal { top: -2rem; right: -2rem; } }

/* 6. HEADER -------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(251, 251, 250, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: height .3s var(--ease-out), border-color .3s, background .3s;
}
:root.is-scrolled { --header-h: 68px; }
.header.is-scrolled { border-color: var(--rule); background: rgba(251, 251, 250, .92); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.header__logo { display: block; flex: none; }
.header__logo img { height: clamp(28px, 2.6vw, 36px); width: auto; transition: height .3s var(--ease-out); }
.header.is-scrolled .header__logo img { height: 28px; }
.nav { display: none; margin-left: auto; margin-right: auto; }
.nav ul { display: flex; gap: .25rem; list-style: none; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: .35em; padding: .6rem .9rem; border-radius: 999px;
  font-weight: 700; font-size: .9375rem; text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: background .2s;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: rgba(37, 37, 37, .06); }
.nav a[aria-current="page"] { color: var(--teal-ink); }
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 16rem; padding: .5rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(6px); visibility: hidden; transition: opacity .2s, transform .2s var(--ease-out), visibility 0s .2s;
}
.nav__item.is-open .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .2s var(--ease-out), visibility 0s; }
.nav__menu a { display: flex; flex-direction: column; gap: .1rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 12px; width: 100%; }
.nav__menu a small { font-weight: 400; color: var(--ink-mute); font-size: .8125rem; }
.nav__chev { width: .8em; height: .8em; transition: transform .2s; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.header__actions { display: none; gap: .5rem; margin-left: auto; }
.header__tour { margin-left: auto; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 999px;
  border: 2px solid var(--rule-strong); background: transparent; font-weight: 700; font-size: .9375rem; cursor: pointer;
}
.menu-btn__bars { position: relative; display: inline-block; width: 1.1rem; height: .8rem; }
.menu-btn__bars i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s, top .3s; }
.menu-btn__bars i:nth-child(1) { top: 0; } .menu-btn__bars i:nth-child(2) { top: calc(50% - 1px); } .menu-btn__bars i:nth-child(3) { top: calc(100% - 2px); }
@media (min-width: 1080px) {
  /* three equal-weight columns so the nav is centred on the page, not in the leftover space */
  .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .nav { display: block; margin: 0; justify-self: center; }
  .header__actions { display: flex; margin-left: 0; justify-self: end; }
  .header__tour { display: none; }
  .menu-btn { display: none; }
}
@media (max-width: 1079px) { .header__actions { display: none; } .header__tour { display: inline-flex; } }
@media (max-width: 480px) { .header__tour { padding-inline: .95rem; font-size: .875rem; min-height: 2.5rem; } .menu-btn { padding: .65rem .75rem; } .menu-btn__label { display: none; } .header__inner { gap: .75rem; } }
@media (max-width: 380px) { .header__logo img, .header.is-scrolled .header__logo img { height: 24px; } .header__inner { gap: .5rem; } }
@media (max-width: 359px) { .header__tour { display: none; } }

/* Mobile menu panel */
.menu {
  position: fixed; inset: 0; z-index: 150; background: var(--teal-deep); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; padding: 1.25rem var(--gutter) 2rem; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease-out), visibility 0s .5s;
}
.menu.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top img { height: 30px; width: auto; }
.menu__close { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .45); background: none; color: #fff; font-weight: 700; cursor: pointer; }
.menu__nav { align-self: center; padding-block: .25rem; }
.menu__list { list-style: none; position: relative; }
.menu__list::before { content: ""; position: absolute; left: calc(.575rem - 1px); top: 1.3rem; bottom: 1.6rem; width: 2px; background: rgba(255, 255, 255, .28); }
.menu__item { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid rgba(255, 255, 255, .14); opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); transition-delay: calc(.12s + var(--i, 0) * 45ms); }
.menu__item:last-child { border-bottom: 0; }
.menu.is-open .menu__item { opacity: 1; transform: none; }
.menu__row { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: .55rem 0; color: #fff; text-decoration: none; }
.menu__row .stop { --stop-color: #fff; width: 1.15rem; height: 1.15rem; background: var(--teal-deep); box-shadow: 0 0 0 4px var(--teal-deep); }
.menu__row:hover .stop, .menu__row:focus-visible .stop { --stop-color: var(--coral-orange); }
.menu__label { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.menu__desc { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .78); margin-top: .2rem; }
.menu__chip { flex: none; font-size: .8125rem; font-weight: 700; padding: .45rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); color: #fff; text-decoration: none; white-space: nowrap; }
.menu__chip:hover { background: #fff; color: var(--teal-deep); }
.menu__bottom { display: grid; gap: .5rem; padding-top: .6rem; }
.menu__bottom .btn { width: 100%; }
.menu__contact { display: flex; flex-direction: column; gap: .2rem; font-size: .9375rem; }
.menu__contact a, .menu__contact button { display: inline-flex; align-items: baseline; gap: .45rem; color: #fff; text-decoration: none; font-weight: 700; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.menu__contact a span, .menu__contact button span { font-weight: 400; font-size: .8125rem; color: rgba(255, 255, 255, .78); }
@media (max-height: 720px) { .menu__row { padding: .55rem 0; } .menu__label { font-size: 1.2rem; } .menu__desc { display: none; } .menu__nav { padding-block: .5rem; } }
body.menu-open { overflow: hidden; }

/* 7. FOOTER -------------------------------------------------------------- */
.footer { background: var(--teal-deep); color: #fff; padding-top: var(--section); overflow: hidden; position: relative; }
.footer a { color: #fff; }
.footer .label { color: #fff; }
.footer__family { display: grid; gap: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.family-line { position: relative; display: grid; gap: 1.5rem; margin-top: 1rem; }
.family-line::before { content: ""; position: absolute; left: .55rem; top: 1rem; bottom: 1rem; width: 3px; background: rgba(255, 255, 255, .28); border-radius: 3px; }
.family-line__item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.family-line__item .stop { --stop-color: #fff; background: var(--teal-deep); box-shadow: 0 0 0 4px var(--teal-deep); margin-top: .35rem; }
.family-line__item h3 { font-size: 1.25rem; }
.family-line__item p { font-size: .9375rem; color: rgba(255, 255, 255, .94); margin: .25rem 0 .5rem; max-width: 42ch; }
.family-line__item .link { font-size: .9375rem; }
.family-line__item--primary h3 { font-size: 1.5rem; }
@media (min-width: 900px) {
  .footer__family { grid-template-columns: 5fr 7fr; align-items: start; }
  .family-line { grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 0; }
  .family-line::before { left: 1rem; right: 1rem; top: .95rem; bottom: auto; height: 3px; width: auto; }
  .family-line__item { grid-template-columns: 1fr; }
  .family-line__item .stop { margin: 0 0 1rem; }
}
.footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer__col h3 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .94); margin-bottom: 1rem; }
.footer__col ul { list-style: none; display: grid; gap: .55rem; }
.footer__col a { text-decoration: none; font-weight: 500; }
.footer__contact address a { text-decoration: underline; text-underline-offset: .18em; }
.footer__col a:hover { text-decoration: underline; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { color: rgba(255, 255, 255, .94); max-width: 34ch; font-size: .9375rem; }
.footer__contact address { font-style: normal; line-height: 1.55; }
.footer__contact .tnum { font-weight: 700; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .18); padding-block: 1.5rem 2rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .8125rem; color: rgba(255, 255, 255, .94); }
.footer__bottom a { color: #fff; }
.footer__mark { position: absolute; right: -4vw; bottom: -1.5rem; width: clamp(280px, 40vw, 640px); opacity: .07; pointer-events: none; }

/* 8. HOME SECTIONS ------------------------------------------------------- */
/* Hero */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: visible; }
.hero__grid { display: grid; gap: 2.5rem; align-items: start; }
.hero__copy { display: grid; gap: 1.5rem; align-content: start; }
.hero__title { font-size: var(--fs-display); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }

.hero__lead { max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__media { position: relative; }
.hero__window { aspect-ratio: 4 / 5; }
.hero__ticket { position: relative; margin-top: -2.25rem; margin-left: auto; margin-right: 1rem; width: min(100%, 340px); transform: rotate(-2.5deg); z-index: 3; }
.hero__note { display: flex; gap: .75rem; align-items: center; font-size: .875rem; color: var(--ink-soft); }
.hero__note .faces img { width: 2.4rem; height: 2.4rem; }
@media (min-width: 900px) {
  .hero { padding-bottom: clamp(3rem, 6vw, 6rem); }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .hero__copy { padding-block: 2rem; }
  .hero__window { aspect-ratio: 4 / 5; }
}
@media (min-width: 1200px) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .hero__ticket { position: absolute; left: calc(1rem - clamp(2rem, 5vw, 5rem)); bottom: 2.5rem; margin: 0; width: 360px; } }

/* Flip: one-time split-flap settle on the hero headline (never repeats) */
.flip { display: inline-block; white-space: nowrap; position: relative; }
.flip--accent { color: var(--teal-deep); }
.flip__char { display: inline-block; position: relative; transform-origin: 50% 50%; backface-visibility: hidden; }
.flip__char.is-flipping { animation: flap .5s var(--ease-in-out) both; }
@keyframes flap {
  0% { transform: rotateX(90deg); opacity: 0; }
  40% { transform: rotateX(-25deg); opacity: 1; }
  70% { transform: rotateX(10deg); }
  100% { transform: rotateX(0); }
}
.flip::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 2px; background: var(--white); opacity: 0; pointer-events: none; transition: opacity .3s; }
.flip.is-active::after { opacity: .9; }

/* Route line that connects sections (decorative) */
.route-line { position: absolute; left: 50%; width: 3px; background: var(--rule); transform: translateX(-50%); pointer-events: none; }

/* Carriages band (horizontal scroll) */
.carriages { position: relative; }
.carriages__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 1rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carriages__track::-webkit-scrollbar { display: none; }
.carriage { scroll-snap-align: start; position: relative; display: grid; grid-template-rows: auto 1fr; gap: .9rem; }
.carriage .window { aspect-ratio: 4 / 5; }
.carriage__num { position: absolute; top: .9rem; left: .9rem; z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--white); font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-card); }
.carriage h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.carriage p { font-size: .9375rem; color: var(--ink-soft); margin-top: .35rem; }
.carriages__nav { display: flex; gap: .5rem; }
.carriages__nav button { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--rule-strong); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.carriages__nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.carriages__nav svg { width: 1.1rem; height: 1.1rem; }
@media (min-width: 900px) { .carriages__track { grid-auto-columns: minmax(280px, calc((var(--container) - 4rem) / 4.6)); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); } }

/* Route preview (home): photo-led stops that grow taller along the line */
.route { position: relative; }
.route__list { list-style: none; position: relative; display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.route__list::before { content: ""; position: absolute; left: calc(.575rem - 1.5px); top: .75rem; bottom: .75rem; width: 3px; background: var(--rule-strong); border-radius: 3px; }
.route__list::after { content: ""; position: absolute; left: calc(.575rem - 1.5px); top: .75rem; width: 3px; height: 0; background: var(--teal); border-radius: 3px; transition: height 1.6s var(--ease-out); }
.route__list.is-in::after { height: calc(100% - 1.5rem); }
.route__item { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "stop body" "stop window"; gap: .25rem 1.25rem; align-items: start; }
.route__item .stop { grid-area: stop; margin-top: .3rem; }
.route__body { grid-area: body; }
.route__window { grid-area: window; aspect-ratio: 16 / 10; margin-top: .75rem; max-width: 420px; }
.route__window--next { display: grid; align-content: end; gap: .2rem; padding: 1.25rem; border-radius: var(--radius); background: var(--teal-deep); color: #fff; }
.route__window--next strong { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }
.route__window--next > span:last-child { font-size: .9rem; opacity: .94; }
.route__item h3 { font-size: var(--fs-h4); }
.route__item .label { margin-bottom: .35rem; }
.route__item p { font-size: .9375rem; color: var(--ink-soft); margin: .35rem 0 .6rem; max-width: 36ch; }
.route__item--next .stop { --stop-color: var(--teal-deep); background: var(--teal-deep); }
.route__item--next h3 { color: var(--teal-ink); }
.route__item--t1 { --stop-color: #7CC3EA; } .route__item--t2 { --stop-color: var(--orange); } .route__item--t3 { --stop-color: var(--coral); } .route__item--t4 { --stop-color: var(--lavender); }
@media (min-width: 900px) {
  /* three shared rows across all five stops: windows (bottom-aligned), the line with its markers, then text */
  .route__list { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 1.5rem; row-gap: 0; margin-top: 3rem; }
  .route__window--next { padding: clamp(.9rem, 1.6vw, 1.25rem); }
  .route__window--next strong { font-size: clamp(1.1rem, 2.5vw - .22rem, 1.5rem); }
  .route__item { display: contents; }
  .route__list::before { content: ""; grid-row: 2; grid-column: 1 / -1; position: static; align-self: center; height: 3px; width: 100%; left: auto; top: auto; bottom: auto; background: var(--rule-strong); border-radius: 3px; }
  .route__list::after { grid-row: 2; grid-column: 1 / -1; position: static; align-self: center; height: 3px; width: 0; left: auto; top: auto; transition: width 1.8s var(--ease-out); z-index: 1; }
  .route__list.is-in::after { width: 100%; height: 3px; }
  .route__item:nth-child(1) > * { grid-column: 1; } .route__item:nth-child(2) > * { grid-column: 2; } .route__item:nth-child(3) > * { grid-column: 3; } .route__item:nth-child(4) > * { grid-column: 4; } .route__item:nth-child(5) > * { grid-column: 5; }
  .route__window { grid-row: 1; align-self: end; margin: 0 0 1.25rem; max-width: none; aspect-ratio: auto; height: var(--h, 240px); }
  .route__item .stop { grid-row: 2; align-self: center; margin: 0; position: relative; z-index: 2; }
  .route__body { grid-row: 3; padding-top: 1.1rem; }
  .route__item--t1 .route__window { --h: 220px; } .route__item--t2 .route__window { --h: 260px; } .route__item--t3 .route__window { --h: 300px; } .route__item--t4 .route__window { --h: 340px; } .route__item--next .route__window { --h: 380px; }
}
@media (min-width: 1200px) { .route__item--t1 .route__window { --h: 240px; } .route__item--t2 .route__window { --h: 290px; } .route__item--t3 .route__window { --h: 340px; } .route__item--t4 .route__window { --h: 390px; } .route__item--next .route__window { --h: 440px; } }

/* Faith section (deep teal) */
.faith { position: relative; }
.faith__grid { display: grid; gap: 2.5rem; align-items: center; }
.faith__quote { font-size: clamp(1.6rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.faith__quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; opacity: .95; font-weight: 700; }
.faith__verse { padding-left: 1.25rem; border-left: 3px solid var(--orange); }
.faith__verse p { margin: 0; }
.faith__verse cite { opacity: .95; }
.faith p { color: rgba(255, 255, 255, .94); }
.faith .window { box-shadow: var(--shadow-soft); }
.faith__brightmoor { display: grid; gap: 1rem; padding: 1.5rem; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .12); border: 1px solid rgba(255, 255, 255, .16); }
.faith__brightmoor .label { color: #fff; }
.faith__brightmoor p { margin: 0; font-size: .9375rem; }
@media (min-width: 900px) { .faith__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); } .faith__media { transform: translateY(2rem); } }
.faith__media { position: relative; }
.faith__media .window--tall { aspect-ratio: 5 / 6; }
.faith__media .window--small { position: absolute; right: -1rem; bottom: -1.5rem; width: 44%; aspect-ratio: 1; border: 6px solid var(--teal-deep); }

/* People section */
.people__grid { display: grid; gap: 2.5rem; align-items: center; }
.people__facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: 2rem; }
.people__facts li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.people__facts .num { font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; color: var(--teal-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.people__facts strong { display: block; font-size: 1.05rem; }
.people__facts span { font-size: .9375rem; color: var(--ink-soft); }
.people__media { position: relative; }
.people__media .window--main { aspect-ratio: 4 / 5; }
.people__media .window--float { position: absolute; left: -1.5rem; bottom: 2.5rem; width: 46%; aspect-ratio: 4 / 3; border: 6px solid var(--white); box-shadow: var(--shadow-soft); }
.people__team { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
@media (min-width: 900px) { .people__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); } .people__media { order: -1; } .people__media .window--float { left: auto; right: -2rem; bottom: -2rem; } }

/* Voices */
.voices__grid { display: grid; gap: 1.25rem; }
.voice { background: var(--white); border-radius: var(--radius-sm); padding: 1.6rem; border: 1px solid var(--rule); display: grid; gap: 1rem; align-content: start; }
.voice p { font-size: 1.05rem; line-height: 1.5; text-wrap: pretty; }
.voice cite { font-style: normal; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.voice--big { grid-row: span 2; }
.voice--big p { font-size: clamp(1.2rem, 1.05rem + .8vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.voice__stars { color: var(--orange); letter-spacing: .1em; font-size: .9rem; }
@media (min-width: 900px) { .voices__grid { grid-template-columns: 1.3fr 1fr; grid-auto-rows: auto; } }

/* Transfer (NCA) */
.transfer { position: relative; }
.transfer__card { display: grid; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: var(--radius); background: var(--sky-soft); border: 1px solid rgba(37, 37, 37, .06); overflow: hidden; position: relative; }
.transfer__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--sky); }
.transfer__stops { list-style: none; display: grid; gap: .6rem; }
.transfer__stops li { display: flex; align-items: center; gap: .8rem; font-weight: 700; }
.transfer__stops li .stop { --stop-color: var(--teal); }
.transfer__stops li.is-next .stop { --stop-color: var(--coral-orange); }
.transfer__stops li.is-next { color: var(--red-deep); }
.transfer__stops li span.small { font-weight: 400; color: var(--ink-mute); }
@media (min-width: 900px) { .transfer__card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }

/* Visit CTA */
.visit { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.visit__bg { position: absolute; inset: 0; z-index: -1; }
.visit__bg picture { position: absolute; inset: 0; }
.visit__bg img { width: 100%; height: 100%; object-fit: cover; }
.visit__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37, 37, 37, .5) 0%, rgba(37, 37, 37, .82) 100%); }
.visit__inner { padding-block: clamp(6rem, 16vw, 12rem) clamp(3rem, 6vw, 5rem); display: grid; gap: 1.5rem; align-items: end; }
.visit__inner .label { color: #fff; }
.visit__facts { display: grid; gap: .6rem; font-size: .9375rem; color: rgba(255, 255, 255, .9); }
.visit__facts li { display: flex; gap: .6rem; align-items: start; list-style: none; }
.visit__facts li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); flex: none; margin-top: .55rem; }
@media (min-width: 900px) { .visit__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }

/* 9. PROGRAMS SECTIONS --------------------------------------------------- */
.phero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.phero__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .phero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.phero__strip { margin-top: clamp(2rem, 5vw, 4rem); display: grid; gap: .75rem; }
.phero__strip .window { aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .phero__strip { grid-template-columns: 1.5fr 1fr 1fr; } .phero__strip .window:first-child { aspect-ratio: auto; grid-row: span 1; } .phero__strip .window { aspect-ratio: 4 / 3; } }

/* Route rail + stops layout */
.programs { position: relative; }
.programs__layout { display: grid; gap: 3rem; }
.rail { display: none; }
@media (min-width: 1080px) {
  .programs__layout { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .rail { display: block; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.rail__title { margin-bottom: 1rem; }
.rail__track { position: relative; }
.rail__list { list-style: none; position: relative; display: grid; gap: 1.6rem; padding-left: 0; }
.rail__list::before { content: ""; position: absolute; left: calc(.575rem - 1.5px); top: .6rem; bottom: .6rem; width: 3px; background: var(--rule-strong); border-radius: 3px; }
.rail__progress { position: absolute; left: calc(.575rem - 1.5px); top: .6rem; width: 3px; height: 0; background: var(--teal); border-radius: 3px; transition: height .25s linear; z-index: 1; pointer-events: none; }
.rail__item a { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; text-decoration: none; font-weight: 700; font-size: .9375rem; color: var(--ink-mute); transition: color .2s; }
.rail__item a small { display: block; font-weight: 400; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.rail__item a:hover, .rail__item.is-active a { color: var(--ink); }
.rail__item .stop { transition: transform .25s var(--ease-out); }
.rail__item.is-active .stop { transform: scale(1.25); }
.rail__item--t1 { --stop-color: #7CC3EA; } .rail__item--t2 { --stop-color: var(--orange); } .rail__item--t3 { --stop-color: var(--coral); } .rail__item--t4 { --stop-color: var(--lavender); } .rail__item--t5 { --stop-color: var(--teal-deep); }
.rail__item--t5 .stop { background: var(--teal-deep); }
.rail__cta { margin-top: 2rem; display: grid; gap: .5rem; }

/* Mobile stops strip */
.stops-strip { position: sticky; top: var(--header-h); z-index: 50; background: rgba(251, 251, 250, .92); backdrop-filter: blur(10px); border-block: 1px solid var(--rule); }
.stops-strip ul { list-style: none; display: flex; gap: .25rem; overflow-x: auto; padding: .6rem var(--gutter); scrollbar-width: none; }
.stops-strip ul::-webkit-scrollbar { display: none; }
.stops-strip a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; font-size: .875rem; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--ink-soft); border: 1px solid transparent; }
.stops-strip li.is-active a { background: var(--ink); color: #fff; }
.stops-strip .stop { width: .9rem; height: .9rem; border-width: .22rem; box-shadow: none; }
.stops-strip li.is-active .stop { background: #fff; }
@media (min-width: 1080px) { .stops-strip { display: none; } }

/* Programs at a glance table */
.glance { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.glance__table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.glance__table th, .glance__table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.glance__table thead th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); background: var(--cream); border-bottom: 1px solid var(--rule-strong); }
.glance__table tbody th { font-weight: 700; white-space: nowrap; }
.glance__stop { display: flex; align-items: center; gap: .6rem; }
.glance__table tbody th .stop { width: .95rem; height: .95rem; border-width: .26rem; box-shadow: none; }
.glance__table tbody tr:last-child th, .glance__table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 719px) {
  .glance__table thead { display: none; }
  .glance__table, .glance__table tbody, .glance__table tr { display: block; }
  .glance__table tr { padding: .5rem 0; border-bottom: 1px solid var(--rule); }
  .glance__table tr:last-child { border-bottom: 0; }
  .glance__table th, .glance__table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .45rem 1rem; }
  .glance__table td::before { content: attr(data-label); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; flex: none; padding-top: .2rem; }
  .glance__table td { text-align: right; }
}

/* Program stop blocks */
.pstop { scroll-margin-top: calc(var(--header-h) + 4rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.pstop:first-of-type { border-top: 0; padding-top: 0; }
.pstop__head { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.pstop__head .cluster { gap: .5rem; }
.pstop__title { display: flex; align-items: center; gap: 1rem; }
.pstop__title .stop { width: 1.4rem; height: 1.4rem; border-width: .36rem; }
.pstop__grid { display: grid; gap: 1.75rem; }
.pstop__media { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.pstop__media .window--main { grid-column: 1 / -1; }
.pstop__media .window--main { aspect-ratio: 4 / 3; }
.pstop__media .window--sub { aspect-ratio: 16 / 10; }
.pstop__body { display: grid; gap: 1.25rem; align-content: start; }
.pstop__list { list-style: none; display: grid; gap: .6rem; }
.pstop__list li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .9375rem; }
.pstop__list li::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--stop-color, var(--teal)); margin-top: .5rem; }
.pstop__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--cream); }
.pstop__meta div { display: grid; gap: .15rem; }
.pstop__meta dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); }
.pstop__meta dd { margin: 0; font-weight: 700; font-size: .9375rem; }
.pstop--t1 { --stop-color: #7CC3EA; } .pstop--t2 { --stop-color: var(--orange); } .pstop--t3 { --stop-color: var(--coral); } .pstop--t4 { --stop-color: var(--lavender); }
@media (min-width: 720px) {
  .pstop__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
  .pstop:nth-of-type(even) .pstop__media { order: 2; }
}

/* Approach manifesto */
.manifesto { display: grid; gap: 1.5rem; }
.manifesto__lines { list-style: none; display: grid; border-top: 1px solid var(--rule); }
.manifesto__lines li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.manifesto__lines .num { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.manifesto__lines h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); letter-spacing: -.015em; }
.manifesto__lines p { margin-top: .5rem; color: var(--ink-soft); font-size: .9375rem; max-width: 52ch; }
@media (min-width: 900px) { .manifesto { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; } .manifesto__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* Day grid (what fills a day) */
.day { display: grid; gap: 1rem; }
.day__item { position: relative; display: grid; gap: .75rem; }
.day__item .window { aspect-ratio: 1; }
.day__item h3 { font-size: 1.1rem; }
.day__item p { font-size: .9rem; color: var(--ink-soft); }
.day__num { position: absolute; top: .75rem; left: .75rem; z-index: 2; padding: .3rem .6rem; border-radius: 999px; background: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
@media (min-width: 380px) { .day { grid-template-columns: repeat(2, 1fr); } .day__item h3 { font-size: 1rem; } }
@media (min-width: 900px) { .day { grid-template-columns: repeat(4, 1fr); } .day__item:nth-child(4n+2), .day__item:nth-child(4n+4) { transform: translateY(2rem); } }

/* Readiness */
.ready__grid { display: grid; gap: 2rem; }
.ready__list { list-style: none; display: grid; gap: .5rem; }
.ready__list li { display: flex; gap: .75rem; align-items: start; padding: .9rem 1rem; border-radius: 12px; background: var(--white); border: 1px solid var(--rule); font-weight: 600; font-size: .9375rem; }
.ready__list li svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--teal); margin-top: .1rem; }
@media (min-width: 900px) { .ready__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; } }

/* CTA band (programs) */
.cta-band { border-radius: var(--radius); background: var(--teal-deep); color: #fff; padding: clamp(2rem, 5vw, 4rem); display: grid; gap: 1.5rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); pointer-events: none; }
.cta-band .label { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .94); }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } .cta-band .cluster { justify-content: flex-end; } }

/* 10. MOTION -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); will-change: opacity, transform; }
.js .reveal.is-in, .js .reveal:focus-within { opacity: 1; transform: none; }
.js .reveal--scale { transform: translateY(14px) scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal--scale { opacity: 1; transform: none; transition: none; }
  .flip__char.is-flipping { animation: none; }
  .route__list .route__progress, .rail__progress { transition: none; }
  .menu, .menu__item { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* Generic "coming soon" page */
.soon { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: var(--section) var(--gutter); }
.soon .stack { justify-items: center; }

/* Print/utility */
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

/* 11. INTERIOR PAGES (phase 2) -------------------------------------------- */
.page-hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-hero__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.page-hero .display { font-size: var(--fs-h1); }
.page-hero__media { margin-top: clamp(2rem, 5vw, 3.5rem); }
.page-hero__media .window { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .page-hero__media .window { aspect-ratio: 4 / 3; } }

/* Rate tables */
.rates { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.rates__group { background: var(--white); border-radius: var(--radius); border: 1px solid var(--rule); overflow: hidden; box-shadow: var(--shadow-card); }
.rates__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule); background: var(--cream); }
.rates__head h3 { font-size: var(--fs-h3); display: flex; align-items: center; gap: .75rem; }
.rates__head .stop { width: 1rem; height: 1rem; border-width: .28rem; box-shadow: none; }
.rates__head p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }
.rates table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: .95rem 1.5rem; text-align: right; border-bottom: 1px solid var(--rule); }
.rates th:first-child, .rates td:first-child { text-align: left; }
.rates thead th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
.rates thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .8rem; margin-top: .15rem; }
.rates tbody th { font-weight: 700; }
.rates tbody th small { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-mute); }
.rates tbody td { font-weight: 600; }
.rates tbody tr:last-child th, .rates tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .rates th, .rates td { padding: .7rem .6rem; font-size: .85rem; }
  .rates th:first-child, .rates td:first-child { padding-left: 1rem; }
  .rates th:last-child, .rates td:last-child { padding-right: 1rem; }
  .rates thead th { font-size: .6rem; letter-spacing: .08em; }
  .rates thead th small { font-size: .7rem; }
  .rates tbody th small { font-size: .72rem; }
  .rates__head { padding: 1rem 1rem; }
}
.fees { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fees { grid-template-columns: 1fr 1fr; } }
.fee { padding: 1.5rem; border-radius: var(--radius-sm); background: var(--cream); display: grid; gap: .25rem; }
.fee strong { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fee span { font-size: .9375rem; color: var(--ink-soft); }
.notes { list-style: none; display: grid; gap: .75rem; }
.notes li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: 1rem 1.25rem; border-radius: 12px; background: var(--white); border: 1px solid var(--rule); font-size: .9375rem; }
.notes li::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); margin-top: .5rem; }
.notes strong { display: block; }

/* Journey steps (prospective) */
.journey { list-style: none; counter-reset: step; display: grid; gap: 0; position: relative; }
.journey li { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.journey li:last-child { border-bottom: 1px solid var(--rule); }
.journey__num { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 3px solid var(--stop-color, var(--teal)); font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.journey h3 { font-size: var(--fs-h4); margin-bottom: .35rem; }
.journey p { color: var(--ink-soft); font-size: .9375rem; max-width: 56ch; }
.journey .cluster { margin-top: .75rem; }
@media (min-width: 900px) { .journey li { grid-template-columns: 4rem 1fr; padding: 1.75rem 0; } }

/* Document cards */
.docs { display: grid; gap: 1rem; }
@media (min-width: 640px) { .docs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .docs--3 { grid-template-columns: repeat(3, 1fr); } }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--rule); text-decoration: none; color: inherit; transition: border-color .2s, transform .25s var(--ease-out), box-shadow .25s; }
.doc:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-card); text-decoration: none; }
.doc__icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--cream); display: grid; place-items: center; color: var(--teal-ink); }
.doc__icon svg { width: 1.25rem; height: 1.25rem; }
.doc strong { display: block; font-size: 1rem; }
.doc small { color: var(--ink-mute); font-size: .8125rem; }
.doc .arrow { width: 1.1rem; height: 1.1rem; color: var(--teal-ink); transition: transform .3s var(--ease-out); }
.doc:hover .arrow { transform: translateX(.2em); }

/* FAQ */
.faq-band { scroll-margin-top: calc(var(--header-h) + 1rem); }
.faq-band__grid { display: grid; gap: 1.5rem 3rem; align-items: start; }
.faq-band__head { display: grid; gap: .8rem; justify-items: start; align-content: start; }
.faq-band__head .stop { width: 1.35rem; height: 1.35rem; border-width: .36rem; box-shadow: 0 0 0 4px var(--white); }
.faq-band.bg-cream .faq-band__head .stop { box-shadow: 0 0 0 4px var(--cream); }
.faq-band__title { margin: 0; }
.faq-band__desc { margin: 0; max-width: 30ch; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.55; }
.faq-band--light .faq { background: var(--cream-soft); border-color: transparent; }
.faq-band--light .faq[open] summary { border-bottom-color: var(--rule); }
@media (min-width: 1080px) { .faq-band__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 4.5rem; } .faq-band__head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.faq-list { display: grid; gap: .6rem; }
.faq { border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .8rem; height: .8rem; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(45deg); transition: transform .25s var(--ease-out); margin-right: .35rem; }
.faq[open] summary::after { transform: rotate(-135deg); margin-top: .35rem; }
.faq[open] summary { border-bottom: 1px solid var(--rule); }
.faq__body { padding: 1rem 1.25rem 1.25rem; color: var(--ink-soft); font-size: .9375rem; }
.faq__body p:last-child { margin: 0; }
.faq__body .pending { display: inline-block; margin-top: .5rem; padding: .3rem .6rem; border-radius: 999px; background: var(--cream); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-deep); }
.faq-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.faq-nav a { padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--rule-strong); font-size: .875rem; font-weight: 700; text-decoration: none; }
.faq-nav a i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--tag-color, var(--teal)); margin-right: .5rem; vertical-align: .05em; }
.faq-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; } }
.contact-list { list-style: none; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; gap: .2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.contact-list .label { margin-bottom: .2rem; }
.contact-list a { font-weight: 700; text-decoration: none; color: var(--ink); }
.contact-list a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: var(--cream); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) { .map { aspect-ratio: 5 / 4; } }

/* Calendar */
.closures { list-style: none; display: grid; gap: .5rem; }
@media (min-width: 640px) { .closures { grid-template-columns: 1fr 1fr; } }
.closures li { padding: .85rem 1rem; border-radius: 12px; background: var(--white); border: 1px solid var(--rule); font-weight: 600; font-size: .9375rem; display: flex; gap: .6rem; align-items: center; }
.closures li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral); flex: none; }
.terms { display: grid; gap: 1rem; }
@media (min-width: 640px) { .terms { grid-template-columns: 1fr 1fr; } }
.term { padding: 1.5rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--rule); display: grid; gap: .35rem; }
.term strong { font-size: var(--fs-h4); }
.term span { color: var(--ink-soft); font-size: .9375rem; }

/* Team */
.team-grid { display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; } }
.person { display: grid; gap: .6rem; align-content: start; }
.person .window { aspect-ratio: 1; }
.person h3 { font-size: 1.05rem; }
.person p { font-size: .875rem; color: var(--ink-soft); margin-top: .35rem; }
.person__text { display: grid; gap: .15rem; }
.person__role { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal-ink); }
.person--lead .person__role { font-size: .75rem; }
.policy { display: grid; gap: .8rem; }
.policy h2 { margin-top: 1.1rem; }
.policy p { color: var(--ink-soft); }
.person--lead { grid-column: 1 / -1; display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--cream); }
@media (min-width: 720px) { .person--lead { grid-template-columns: 240px 1fr; } }
.person--lead .window { aspect-ratio: 1; border-radius: var(--radius-sm); }
.person--lead h3 { font-size: var(--fs-h3); }
.person--lead p { font-size: 1rem; }

/* Hub cards (current parents) */
.hub { display: grid; gap: 1rem; }
@media (min-width: 640px) { .hub { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .hub { grid-template-columns: repeat(3, 1fr); } }
.hub__card { display: grid; gap: .75rem; padding: 1.5rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--rule); align-content: start; }
.hub__card h3 { font-size: var(--fs-h4); }
.hub__card p { font-size: .9375rem; color: var(--ink-soft); }
.hub__card .link { margin-top: auto; }

/* Policy blocks */
.policy { display: grid; gap: 1.25rem; }
.policy article { padding: 1.5rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--rule); }
.policy h3 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.policy p, .policy li { font-size: .9375rem; color: var(--ink-soft); }
.policy ul { padding-left: 1.1rem; display: grid; gap: .35rem; }
.policy ul li { list-style: disc; }
@media (min-width: 900px) { .policy { grid-template-columns: 1fr 1fr; } }

/* Values / story */
.story { display: grid; gap: 2rem; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; } }
.values { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { padding: 1.5rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--rule); }
.values h3 { font-size: var(--fs-h4); margin-bottom: .4rem; }
.values p { font-size: .9375rem; color: var(--ink-soft); }
.timeline { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.timeline .year { font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.timeline p { font-size: .9375rem; color: var(--ink-soft); }
.not-found { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: var(--section) var(--gutter); }
.not-found .stack { justify-items: center; }

/* 12. PREMIUM LAYER --------------------------------------------------------
   Arrival curtain, page transitions, scroll-driven depth, photo wipes,
   mobile tour bar, micro-interactions, editorial pinning. All motion is
   gated on prefers-reduced-motion and on feature support. */

/* Arrival curtain: shown once per session (class set by an inline script in <head>) */
.curtain { position: fixed; inset: 0; z-index: 400; background: var(--teal-deep); display: none; place-items: center; overflow: hidden; }
html.curtain-on .curtain { display: grid; animation: curtainUp .7s var(--ease-in-out) .75s forwards; }
.curtain__logo { width: min(58vw, 340px); height: auto; opacity: 0; transform: translateY(12px); animation: curtainLogo .55s var(--ease-out) .05s forwards; }
.curtain__line { position: absolute; left: 0; right: 0; top: calc(50% + clamp(3rem, 8vw, 5rem)); height: 3px; background: rgba(255, 255, 255, .55); transform: scaleX(0); transform-origin: left; animation: curtainLine .6s var(--ease-out) .15s forwards; }
.curtain__stop { position: absolute; top: calc(50% + clamp(3rem, 8vw, 5rem) - .5rem); left: calc(50% - .6rem); width: 1.2rem; height: 1.2rem; border-radius: 50%; border: .32rem solid var(--coral-orange); background: var(--teal-deep); opacity: 0; animation: curtainStop .3s var(--ease-out) .55s forwards; }
@keyframes curtainLogo { to { opacity: 1; transform: none; } }
@keyframes curtainLine { to { transform: scaleX(1); } }
@keyframes curtainStop { to { opacity: 1; } }
@keyframes curtainUp { to { transform: translateY(-102%); } }
html.curtain-on .hero .reveal, html.curtain-on .page-hero .reveal { transition-delay: calc(.75s + var(--i, 0) * 90ms); }

/* Cross-document page transitions: the page cross-fades, the header holds still */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Photo wipes: windows uncover from the bottom edge and settle from a slight zoom */
.js .window.reveal { opacity: 1; transform: none; }
.js .window.reveal > picture { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .window.reveal.is-in > picture { clip-path: inset(0 0 0 0); transform: none; }
.js .window.reveal.is-in:hover > picture { transition-delay: 0s; }

/* Hover: photos breathe, captions lift, links draw their underline */
@media (hover: hover) and (pointer: fine) {
  .window > picture { transition: transform .9s var(--ease-out); }
  .window:hover > picture { transform: scale(1.035) !important; }
  .caption { transition: transform .4s var(--ease-out), background .3s; }
  .window:hover .caption { transform: translateY(-.3rem); background: #fff; }
  .link { border-bottom: 0; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: left calc(100% - .05em); transition: background-size .35s var(--ease-out); padding-bottom: .1em; }
  .link:hover { background-size: 100% 2px; border-color: transparent; }
  .link .arrow { transition: transform .35s var(--ease-out); }
  .nav a { position: relative; }
  .nav a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .35rem; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); border-radius: 2px; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a:hover, .nav a[aria-current="page"] { background: transparent; }
  .btn { transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease-out), box-shadow .3s; }
  .btn.is-magnetic { transition: background .25s, color .25s, border-color .25s, transform .12s linear; }
  .btn:hover { box-shadow: 0 12px 28px -14px rgba(37, 37, 37, .45); }
}

/* Stop markers pulse as they enter view */
.stop.is-in { animation: stopPulse .9s var(--ease-out) 1; }
@keyframes stopPulse { 0% { box-shadow: 0 0 0 4px var(--white), 0 0 0 4px rgba(51, 144, 136, .6); } 100% { box-shadow: 0 0 0 4px var(--white), 0 0 0 22px rgba(51, 144, 136, 0); } }

/* Scroll-driven depth (native scroll timelines; browsers without support simply skip it) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .window > picture > img { scale: 1.14; animation: parallaxY linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes parallaxY { from { translate: 0 -6%; } to { translate: 0 6%; } }
    .visit__bg img { scale: 1.1; animation: parallaxBg linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes parallaxBg { from { translate: 0 -5%; } to { translate: 0 5%; } }
    .hero__ticket { animation: ticketFloat linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes ticketFloat { from { translate: 0 0; rotate: 0deg; } to { translate: 0 -3rem; rotate: -3deg; } }
    .hero__seal { animation: sealDrift linear both; animation-timeline: scroll(root); animation-range: 0 1200px; }
    @keyframes sealDrift { from { rotate: 0deg; translate: 0 0; } to { rotate: 180deg; translate: 0 -2rem; } }
    .route__window--next { animation: nextRise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes nextRise { from { translate: 0 2.5rem; } to { translate: 0 0; } }
  }
}

/* Mobile tour bar: docks after the hero, hides at the footer and when the menu is open */
.tourbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: .6rem; align-items: center; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(251, 251, 250, .9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .45s var(--ease-out); }
.tourbar.is-on { transform: none; }
.tourbar .btn { flex: 1; min-height: 3rem; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.tourbar__icon { flex: none; width: 3rem; height: 3rem; padding: 0; border-radius: 50%; border: 2px solid var(--rule-strong); background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.tourbar__icon svg { width: 1.15rem; height: 1.15rem; }
.tourbar__icon:hover { border-color: var(--ink); }
@media (max-width: 1079px) { .tourbar { display: flex; } body.menu-open .tourbar { display: none; } }

/* Counters */
[data-count] { font-variant-numeric: tabular-nums; }

/* Editorial pinning on wide screens */
@media (min-width: 1080px) {
  .pstop__grid { align-items: start; }
  .pstop__media { grid-template-columns: 1fr; }
  .pstop__media .window--main, .pstop__media .window--sub { aspect-ratio: 4 / 3; }
  .pstop__body { position: sticky; top: calc(var(--header-h) + 5.5rem); }
  .people__media, .faith__media, .story > .stack, .manifesto__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .js .window.reveal > picture { clip-path: none; transform: none; transition: none; }
  .stop.is-in { animation: none; }
  .tourbar { transition: none; }
  html.curtain-on .curtain { display: none; }
}

/* 13. CHAT ASSISTANT -------------------------------------------------------- */
.chat-pill { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 85; display: none; align-items: center; gap: .6rem; padding: .85rem 1.25rem .85rem 1.1rem; border: 0; border-radius: 999px; background: var(--teal-deep); color: #fff; font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer; box-shadow: 0 16px 34px -14px rgba(27, 123, 115, .65); transition: transform .3s var(--ease-out), background .2s; }
.chat-pill svg { width: 1.2rem; height: 1.2rem; flex: none; }
.chat-pill:hover { background: var(--teal-ink); transform: translateY(-2px); }
@media (min-width: 1080px) { .chat-pill { display: inline-flex; } }
body.chat-open .chat-pill, body.chat-inline-visible .chat-pill { visibility: hidden; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.chatbox { position: fixed; inset: 0; width: min(100vw, 420px); height: min(100vh, 700px); height: min(100dvh, 700px); max-width: 100vw; max-height: 100vh; max-height: 100dvh; margin: auto 1.5rem 1.5rem auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); overflow: hidden; }
.chatbox[open] { display: flex; flex-direction: column; }
.chatbox::backdrop { background: rgba(37, 37, 37, .38); }
.chatbox__mount { flex: 1; min-height: 0; position: relative; }
.chatbox__mount > [data-chat-host], .chatbox__mount > #chat_form, .chat-inline > #chat_form { display: block; width: 100% !important; height: 100% !important; }
.chatbox__loading { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: var(--ink-mute); font-size: .9375rem; pointer-events: none; }
.chatbox.is-ready .chatbox__loading, .chatbox.is-failed .chatbox__loading { display: none; }
.chat-inline__start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; background: var(--cream-soft); }
.chat-inline__hint { margin: 0; max-width: 30ch; font-size: 1.05rem; color: var(--ink-soft); }
.chat-inline__wait { display: none; margin: 0; font-size: .9375rem; color: var(--ink-mute); }
.chat-inline.is-loading .chat-inline__hint, .chat-inline.is-loading .btn { display: none; }
.chat-inline.is-loading .chat-inline__wait { display: block; }
.chat-inline.is-ready .chat-inline__start { display: none; }
.chatbox__status { margin: 0; padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); background: var(--cream-soft); border-top: 1px solid var(--rule); flex: none; display: grid; gap: .6rem; justify-items: start; }
.chatbox__status .btn { min-height: 2.6rem; padding-inline: 1.1rem; font-size: .9375rem; }
.chatbox__status[hidden] { display: none; }
@media (max-width: 640px) { .chatbox { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; } }
.chat-inline { position: relative; height: 640px; max-height: 82vh; max-height: 82dvh; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); overflow: hidden; }
@media (max-width: 640px) { .chat-inline { height: 560px; } }
@media (prefers-reduced-motion: reduce) { .chat-pill { transition: none; } .chat-pill:hover { transform: none; } }
