/* ==========================================================================
   GODDY TABI BILINGUAL NURSERY & PRIMARY SCHOOL
   Public website — design system + components

   Direction: institutional, not decorative. Near-white ground, cool greys,
   hairline structure, navy as ink, gold reserved for small marks. Motion is
   present throughout but deliberately quiet — it should be felt on the
   scroll, not noticed as an effect.
   ========================================================================== */

:root {
  /* ── Brand ───────────────────────────────────────────────────────────
     Taken from the crest, but used at institutional weight rather than
     decoratively. Navy is the ink and the structure; gold is a hairline
     and a small mark, never a field of colour. The first draft used both
     as large flat blocks, which is what made it read as loud rather than
     considered. */
  --navy:        #17315C;
  --navy-deep:   #0E2044;
  --navy-abyss:  #08162F;
  --navy-mid:    #23437A;
  --gold:        #C08A12;
  --gold-bright: #D4A017;
  --gold-deep:   #8A6209;

  /* ── Neutrals ────────────────────────────────────────────────────────
     Cool, not cream. Warm paper tones read editorial; a school that wants
     to look professional reads better on near-white with cool greys. */
  --bg:          #FFFFFF;
  --bg-tint:     #F7F8FA;
  --bg-tint-2:   #EFF2F6;
  --ink:         #0E1526;
  --ink-2:       #46516B;
  --ink-3:       #737E96;
  --line:        #E5E8EE;
  --line-strong: #CFD5E0;

  /* On dark */
  --on-dark:      #FFFFFF;
  --on-dark-2:    rgba(255,255,255,.78);
  --on-dark-3:    rgba(255,255,255,.55);
  --on-dark-line: rgba(255,255,255,.13);

  /* ── Type ────────────────────────────────────────────────────────────
     Source Serif for headings — an institutional face, not a fashionable
     one. Inter for everything else. */
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid scale — a step tighter than before. Restraint reads as
     confidence; oversized display type reads as a template. */
  --t-mega:  clamp(2.5rem, 1.4rem + 4.9vw, 5.4rem);
  --t-h1:    clamp(2.05rem, 1.3rem + 3.3vw, 3.9rem);
  --t-h2:    clamp(1.68rem, 1.2rem + 2.1vw, 2.75rem);
  --t-h3:    clamp(1.26rem, 1.08rem + .8vw, 1.72rem);
  --t-h4:    clamp(1.06rem, 1rem + .34vw, 1.24rem);
  --t-lead:  clamp(1.04rem, .99rem + .3vw, 1.2rem);
  --t-body:  clamp(1rem, .98rem + .1vw, 1.04rem);
  --t-sm:    .9rem;
  --t-xs:    .795rem;
  --t-eyebrow: .715rem;

  /* Space */
  --gut: clamp(1.15rem, 4.5vw, 2.5rem);
  --sec: clamp(4rem, 7.5vw, 7.5rem);
  --maxw: 1240px;
  --measure: 66ch;

  /* ── Radius ──────────────────────────────────────────────────────────
     Tightened from 22–34px to 4–12px. Large radii read friendly and
     app-like; crisp corners read institutional. */
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;
  --r-xl: 16px;

  /* ── Shadow ──────────────────────────────────────────────────────────
     Nearly gone. Structure now comes from hairline borders, which is how
     a professional layout holds together. */
  --sh-1: 0 1px 2px rgba(14,21,38,.04);
  --sh-2: 0 2px 6px rgba(14,21,38,.05), 0 8px 24px rgba(14,21,38,.06);
  --sh-3: 0 8px 20px rgba(14,21,38,.08), 0 28px 64px rgba(14,21,38,.10);
  --sh-gold: 0 6px 18px rgba(192,138,18,.2);

  /* Motion */
  --e-out:  cubic-bezier(.22,.61,.36,1);
  --e-soft: cubic-bezier(.4,0,.2,1);
  --e-spring: cubic-bezier(.34,1.3,.64,1);
  --d-1: .2s;
  --d-2: .4s;
  --d-3: .8s;

  --nav-h: 74px;

  /* Legacy aliases — older rules still reference the warm-paper names. */
  --paper:   var(--bg);
  --paper-2: var(--bg-tint);
  --paper-3: var(--bg-tint-2);
  --gold-light: var(--gold-bright);
  --navy-soft: #35578C;
  --text-primary: var(--ink);
}

@media (max-width: 860px) { :root { --nav-h: 64px; } }

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.014em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-family: var(--sans); font-size: var(--t-h4); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--gold); color: var(--navy-deep); }

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

.skip-link {
  position: fixed; top: -100px; left: var(--gut); z-index: 999;
  background: var(--navy); color: #fff;
  padding: .8rem 1.3rem; border-radius: 0 0 var(--r-m) var(--r-m);
  font-weight: 600; font-size: var(--t-sm);
  transition: top var(--d-1) var(--e-out);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 880px; }
.wrap--wide   { max-width: 1480px; }

.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }

.section--dark {
  background: var(--navy-deep);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-2); }

.section--paper2 { background: var(--paper-2); }

/* Fine gold hairline used as a section opener */
.rule {
  width: 44px; height: 2px;
  background: var(--gold);
  border: 0; margin: 0 0 1.6rem;
  transform-origin: left center;
}
.section--center .rule { margin-inline: auto; }
.section--center { text-align: center; }
.section--center .lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.5rem, 3.2vw, 3rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Split: text beside media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--media-first > :first-child { order: 2; }
.split--media-first > :last-child { order: 1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--media-first > :first-child,
  .split--media-first > :last-child { order: 0; }
}

/* --------------------------------------------------------------------------
   4. TYPE HELPERS
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
}
.section--dark .eyebrow { color: var(--gold-light); }
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: currentColor; opacity: .55; flex: none;
}
.section--center .eyebrow::before { display: none; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.56;
  color: var(--ink-2);
  max-width: var(--measure);
  font-weight: 350;
}
.section--dark .lead { color: var(--on-dark-2); }

.prose { max-width: var(--measure); }
.prose h3 { margin-top: 2.2em; }
.prose h3:first-child { margin-top: 0; }

.italic-accent {
  font-style: italic;
  font-family: var(--serif);
  color: var(--gold-deep);
}
.section--dark .italic-accent { color: var(--gold-light); }

.tnum { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .88rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--r-s);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .008em;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-1) var(--e-out), box-shadow var(--d-2) var(--e-out);
  will-change: transform;
}
.btn::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--navy-mid);
  transform: translateY(101%);
  transition: transform var(--d-2) var(--e-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--d-2) var(--e-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #fff; }
.btn--gold::after { background: var(--gold-deep); }
.btn--gold:hover { box-shadow: var(--sh-gold); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost::after { background: var(--navy); }
.btn--ghost:hover { --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }

.section--dark .btn--ghost,
.hero .btn--ghost,
.cta-band .btn--ghost {
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3);
}
.section--dark .btn--ghost::after,
.hero .btn--ghost::after,
.cta-band .btn--ghost::after { background: #fff; }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover { --btn-fg: var(--navy-deep); box-shadow: inset 0 0 0 1.5px #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.section--center .btn-row { justify-content: center; }

/* Text link with animated underline */
.tlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: var(--t-sm);
  color: var(--navy);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px;
  background-position: left 88%;
  background-repeat: no-repeat;
  transition: background-size var(--d-2) var(--e-out), color var(--d-1) var(--e-out);
  padding-bottom: 2px;
}
.tlink:hover { background-size: 100% 1.5px; }
.tlink svg { width: 15px; height: 15px; transition: transform var(--d-2) var(--e-out); }
.tlink:hover svg { transform: translateX(4px); }
.section--dark .tlink { color: #fff; }

/* --------------------------------------------------------------------------
   6. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--d-2) var(--e-out),
              box-shadow var(--d-2) var(--e-out),
              height var(--d-2) var(--e-out),
              transform var(--d-2) var(--e-out);
}
.nav::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(251,250,247,.86);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--d-2) var(--e-out);
}
.nav.is-stuck::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }

/* Over a dark hero, before scrolling */
.nav--over-hero:not(.is-stuck) { color: #fff; }
.nav--over-hero:not(.is-stuck) .nav__brand-sub { color: var(--on-dark-3); }
.nav--over-hero:not(.is-stuck) .nav__link { color: rgba(255,255,255,.88); }
.nav--over-hero:not(.is-stuck) .nav__search { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.nav--over-hero:not(.is-stuck) .burger span { background: #fff; }

.nav__inner {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; gap: 1.2rem;
}

.nav__brand {
  display: flex; align-items: center; gap: .72rem;
  margin-right: auto; min-width: 0;
  flex: 0 0 auto;
}
.nav__crest {
  width: 42px; height: 42px; flex: none;
  transition: transform var(--d-3) var(--e-spring);
}
.nav__brand:hover .nav__crest { transform: rotate(-8deg) scale(1.07); }
.nav__brand-text {
  display: flex; flex-direction: column; min-width: 0;
  /* The sub-line is the wider of the two, so the column must be sized from it
     or the brand overlaps the navigation. */
  flex: 0 0 auto; padding-right: .6rem;
}
.nav__brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.06rem; line-height: 1.12; letter-spacing: -.015em;
  white-space: nowrap;
}
.nav__brand-sub {
  font-size: .625rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.5;
  white-space: nowrap;
}
@media (max-width: 420px) { .nav__brand-sub { display: none; } }

.nav__links { display: flex; align-items: center; gap: .2rem; }
@media (max-width: 1080px) { .nav__links { display: none; } }

.nav__link {
  position: relative;
  padding: .55rem .82rem;
  font-size: .89rem; font-weight: 500;
  color: var(--ink-2); border-radius: var(--r-s);
  transition: color var(--d-1) var(--e-out);
  white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute;
  left: .82rem; right: .82rem; bottom: .18rem;
  height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: right center;
  transition: transform var(--d-2) var(--e-out);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .6rem; }

.nav__search {
  display: flex; align-items: center; gap: .5rem;
  height: 38px; padding: 0 .7rem 0 .75rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-3);
  font-size: .82rem;
  transition: box-shadow var(--d-1) var(--e-out), color var(--d-1) var(--e-out);
}
.nav__search:hover { box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.nav__search svg { width: 15px; height: 15px; }
.nav__search-label { }
.nav__search kbd {
  font-family: var(--sans); font-size: .66rem; font-weight: 600;
  padding: .12rem .34rem; border-radius: 4px;
  background: rgba(18,24,43,.07);
  box-shadow: inset 0 0 0 1px rgba(18,24,43,.08);
}
.nav--over-hero:not(.is-stuck) .nav__search kbd {
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
@media (max-width: 1080px) { .nav__search-label, .nav__search kbd { display: none; } .nav__search { padding: 0; width: 38px; justify-content: center; } }

.nav__cta { }
@media (max-width: 560px) { .nav__cta { display: none; } }

.burger {
  display: none; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
@media (max-width: 1080px) { .burger { display: flex; } }
.burger span {
  display: block; width: 21px; height: 1.8px;
  background: var(--navy); border-radius: 2px;
  transition: transform var(--d-2) var(--e-out), opacity var(--d-1) var(--e-out);
}
.burger.is-open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy-deep);
  padding: calc(var(--nav-h) + 2rem) var(--gut) 2.5rem;
  display: flex; flex-direction: column;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path .7s var(--e-out);
  visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }

.drawer__link {
  display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--serif); font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 600; color: #fff;
  padding: .42em 0;
  border-bottom: 1px solid var(--on-dark-line);
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--e-out), transform .5s var(--e-out), color var(--d-1);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:hover { color: var(--gold-light); }
.drawer__link span {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; color: var(--gold); flex: none;
}
.drawer__foot { margin-top: auto; padding-top: 2.5rem; color: var(--on-dark-3); font-size: var(--t-sm); }
.drawer__foot a { color: #fff; font-weight: 500; }
.drawer__foot p { margin-bottom: .4em; }

/* Scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; z-index: 101;
  height: 2.5px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. SEARCH PALETTE
   -------------------------------------------------------------------------- */
.palette {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: start center;
  padding: clamp(1rem, 10vh, 7rem) var(--gut) 2rem;
  background: rgba(8,21,51,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--d-2) var(--e-out), visibility var(--d-2);
}
.palette.is-open { opacity: 1; visibility: visible; }

.palette__box {
  width: 100%; max-width: 640px;
  background: var(--paper);
  border-radius: var(--r-l);
  box-shadow: var(--sh-3);
  overflow: hidden;
  transform: translateY(-14px) scale(.97);
  transition: transform var(--d-2) var(--e-spring);
  display: flex; flex-direction: column;
  max-height: min(70vh, 560px);
}
.palette.is-open .palette__box { transform: none; }

.palette__field {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.palette__field svg { width: 19px; height: 19px; color: var(--ink-3); flex: none; }
.palette__input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: 1.06rem; font-weight: 450;
}
.palette__input::placeholder { color: var(--ink-3); }
.palette__esc {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-3); padding: .22rem .5rem;
  border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-strong);
  flex: none;
}

.palette__results { overflow-y: auto; padding: .5rem; flex: 1; }
.palette__group {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-3);
  padding: .8rem .85rem .4rem;
}
.palette__hit {
  display: block; width: 100%; text-align: left;
  padding: .7rem .85rem;
  border-radius: var(--r-m);
  transition: background var(--d-1) var(--e-out);
}
.palette__hit:hover, .palette__hit.is-active { background: var(--paper-3); }
/* These are spans inside an <a>, so without an explicit display they run
   together on one line — "AboutAbout" rather than a title and its page. */
.palette__hit-title { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .15rem; }
.palette__hit-sub   { display: block; }
.palette__hit-title mark { background: rgba(212,160,23,.34); color: inherit; border-radius: 2px; padding: 0 1px; }
.palette__hit-sub { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.5; }
.palette__hit-sub mark { background: rgba(212,160,23,.34); color: inherit; }
.palette__empty { padding: 2.4rem 1rem; text-align: center; color: var(--ink-3); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(94svh, 940px);
  display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--navy-abyss);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero--inner {
  min-height: min(66svh, 640px);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Specificity matters here: `.ph` in the photo-slot section further down sets
   `position: relative`, and because it is a single class declared later it was
   winning over `.hero__media`. The hero media container collapsed to 0x0 and
   every hero image on the site was invisible. Two classes beats one. */
.hero .hero__media {
  position: absolute; inset: 0; z-index: -3;
  overflow: hidden;
  border-radius: 0;
  background: var(--navy-abyss);
}
.hero .hero__media > * { width: 100%; height: 100%; object-fit: cover; }

/* Scrim so text stays legible over any photo */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(8,21,51,.94) 0%, rgba(8,21,51,.72) 34%, rgba(8,21,51,.38) 68%, rgba(8,21,51,.55) 100%);
}
/* Subtle film grain, keeps big flat gradients from banding */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.hero__inner { position: relative; width: 100%; }

.hero__est {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: rgba(255,255,255,.66);
  margin-bottom: 1.4rem;
}
.hero__est::before, .hero__est::after {
  content: ''; width: 24px; height: 1px; background: currentColor; opacity: .5; flex: none;
}
/* Once the label wraps onto two lines the flanking rules float off on their
   own, which reads as a layout fault rather than a flourish. */
@media (max-width: 680px) {
  .hero__est { display: block; }
  .hero__est::before, .hero__est::after { display: none; }
}

.hero__title {
  font-size: var(--t-mega);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.035em;
  margin: 0 0 1.3rem;
  max-width: 15ch;
}
.hero__title em {
  font-style: normal;
  color: #fff;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}
/* Emphasis carried by a hairline under the phrase rather than by colour. */
.hero__title em::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -.12em; height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .9s var(--e-out) .55s;
}
.reveal-lines.is-in .hero__title em::after,
.hero__title.is-in em::after { transform: scaleX(1); }

.hero__lead {
  font-size: clamp(1.02rem, .95rem + .55vw, 1.32rem);
  color: rgba(255,255,255,.82);
  max-width: 52ch;
  margin-bottom: 2.1rem;
  font-weight: 350;
}

.hero__scroll {
  position: absolute; right: 0; bottom: .3rem;
  display: flex; align-items: center; gap: .7rem;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
@media (max-width: 900px) { .hero__scroll { display: none; } }
.hero__scroll-line {
  width: 1px; height: 52px; background: rgba(255,255,255,.22);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  animation: scrollPulse 2.1s var(--e-soft) infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Hero stats strip */
.hero__stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3.4rem);
  padding-top: 2.4rem;
  margin-top: 2.4rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 680px) {
  .hero__stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.2rem;
    padding-top: 1.8rem; margin-top: 1.8rem;
  }
  .hero__stat-l { font-size: .64rem; letter-spacing: .1em; }
}
.hero__stat-n {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 600; line-height: 1; color: #fff;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero__stat-n sup { font-size: .46em; color: var(--gold-bright); top: -.8em; font-weight: 500; }
.hero__stat-l {
  font-size: .72rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-top: .5rem;
}

/* Inner-page hero */
.hero--inner .hero__title { font-size: var(--t-h1); max-width: 18ch; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: var(--t-xs); color: rgba(255,255,255,.55);
  margin-bottom: 1.4rem;
}
.crumbs a { color: rgba(255,255,255,.78); transition: color var(--d-1); }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span[aria-hidden] { opacity: .4; }

/* --------------------------------------------------------------------------
   9. PHOTO SLOTS
   Every image on the site is a slot. Ships with designed SVG artwork;
   js/photos.js swaps in a real photo with one line.
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy-deep);
  isolation: isolate;
}
.ph--r { border-radius: var(--r-l); }
.ph--rl { border-radius: var(--r-xl); }

.ph__art, .ph__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ph__img {
  opacity: 0;
  transition: opacity .7s var(--e-out);
  z-index: 1;
}
.ph__img.is-loaded { opacity: 1; }

/* Ken Burns drift on hover for interactive cards */
.ph--zoom .ph__art, .ph--zoom .ph__img {
  transition: transform 1.1s var(--e-out), opacity .7s var(--e-out);
}
.ph--zoom:hover .ph__art, .ph--zoom:hover .ph__img { transform: scale(1.06); }

/* Aspect helpers */
.ph--4x5  { aspect-ratio: 4/5; }
.ph--3x2  { aspect-ratio: 3/2; }
.ph--1x1  { aspect-ratio: 1/1; }
.ph--16x9 { aspect-ratio: 16/9; }
.ph--tall { aspect-ratio: 3/4.4; }

.ph__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.6rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(8,21,51,.88), transparent);
  color: #fff; font-size: var(--t-xs);
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   10. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border-radius: var(--r-l);
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  box-shadow: var(--sh-1);
  border: 1px solid var(--line);
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2) var(--e-out), border-color var(--d-2);
  overflow: hidden;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }

.card__num {
  font-family: var(--serif); font-size: .95rem; font-weight: 600;
  color: var(--gold-deep); letter-spacing: .05em;
  margin-bottom: .9rem; display: block;
}
.card h3, .card h4 { margin-bottom: .55rem; }
.card p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.62; }

.card__icon {
  width: 42px; height: 42px; margin-bottom: 1.05rem;
  display: grid; place-items: center;
  border-radius: var(--r-m);
  background: var(--bg-tint-2);
  color: var(--navy);
  transition: transform var(--d-2) var(--e-spring), background var(--d-2);
}
.card:hover .card__icon { transform: scale(1.05); background: var(--navy); color: #fff; }
.card__icon svg { width: 22px; height: 22px; }

/* Link card — whole card clickable */
.card--link::after {
  content: ''; position: absolute; inset: 0;
}
.card--link { display: flex; flex-direction: column; }
.card--link .card__more { margin-top: auto; padding-top: 1.2rem; }

/* Card on dark */
.section--dark .card {
  background: rgba(255,255,255,.045);
  border-color: var(--on-dark-line);
  color: #fff;
  backdrop-filter: blur(8px);
}
.section--dark .card:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.26); }
.section--dark .card p { color: var(--on-dark-2); }
.section--dark .card__icon { background: rgba(212,160,23,.18); color: var(--gold-light); }
.section--dark .card__num { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   11. STAT BLOCKS
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2vw, 1.6rem);
  text-align: center;
}
.stat__n {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 600; line-height: 1;
  letter-spacing: -.035em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat__n sup { font-size: .46em; color: var(--gold); top: -.85em; }
.stat__l {
  font-size: .72rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
  margin-top: .75rem;
}
.section--dark .stats { background: var(--on-dark-line); border-color: var(--on-dark-line); }
.section--dark .stat { background: var(--navy-deep); }
.section--dark .stat__n { color: #fff; }
.section--dark .stat__l { color: var(--on-dark-3); }

/* --------------------------------------------------------------------------
   12. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.1rem, 2.2vw, 1.6rem);
  background: var(--bg-tint);
  color: var(--ink-2);
  border-block: 1px solid var(--line);
  position: relative;
}
/* Fading the ends with a mask made them transparent, which let the pale page
   background show through as a bright stripe wherever the marquee sits
   between two dark sections. Fading to the marquee's own colour instead
   works on any background. */
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 9%;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-tint), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-tint), transparent); }
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 1.3rem;
  padding-inline: 1.3rem;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.marquee__item em { font-style: normal; color: var(--navy); }

/* --------------------------------------------------------------------------
   13. FEE / DATA TABLE
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--sh-1);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%; border-collapse: collapse;
  font-size: var(--t-sm); min-width: 620px;
}
table.data caption {
  text-align: left; padding: 1.2rem 1.3rem .2rem;
  font-size: var(--t-xs); color: var(--ink-3);
}
table.data th, table.data td {
  padding: .92rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.data thead th {
  font-size: .68rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
  background: var(--paper-2);
  position: sticky; top: 0;
  white-space: nowrap;
}
table.data tbody tr { transition: background var(--d-1); }
table.data tbody tr:hover { background: var(--paper-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
table.data th.num { text-align: right; }
table.data .row-name { font-weight: 600; color: var(--navy); white-space: nowrap; }
table.data tfoot td {
  font-weight: 700; background: var(--paper-2);
  border-top: 2px solid var(--navy); color: var(--navy);
}

.chip {
  display: inline-block;
  font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  padding: .24rem .58rem; border-radius: 999px;
  background: rgba(212,160,23,.15); color: var(--gold-deep);
  white-space: nowrap;
}
.chip--muted { background: rgba(18,24,43,.06); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   14. TIMELINE / STEPS
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(1.6rem, 3vw, 2.4rem) clamp(3.4rem, 6vw, 5.2rem);
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.step:last-child { border-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: clamp(1.6rem, 3vw, 2.4rem);
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600; color: var(--gold);
  line-height: 1; letter-spacing: -.02em;
}
.step::after {
  content: ''; position: absolute;
  left: clamp(1.55rem, 2.8vw, 2.3rem); top: clamp(4.1rem, 7vw, 5.4rem); bottom: 0;
  width: 1px; background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: var(--t-h4); font-family: var(--sans); font-weight: 600; margin-bottom: .45rem; }
.step p { font-size: var(--t-sm); color: var(--ink-2); max-width: 62ch; }
.section--dark .step { border-color: var(--on-dark-line); }
.section--dark .step::after { background: var(--on-dark-line); }
.section--dark .step p { color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   15. ACCORDION (FAQ)
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.4rem 0;
  text-align: left; font-size: var(--t-h4); font-weight: 600;
  color: var(--navy);
  transition: color var(--d-1);
}
.acc__btn:hover { color: var(--gold-deep); }
.acc__sign { position: relative; width: 17px; height: 17px; flex: none; }
.acc__sign::before, .acc__sign::after {
  content: ''; position: absolute; inset: 50% 0 auto;
  height: 1.8px; background: currentColor; border-radius: 2px;
  transition: transform var(--d-2) var(--e-out);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__item.is-open .acc__sign::after { transform: rotate(0); }
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-2) var(--e-out);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 1.4rem; color: var(--ink-2); font-size: var(--t-sm); max-width: 66ch; }

/* --------------------------------------------------------------------------
   16. NEWS / EVENT LIST
   -------------------------------------------------------------------------- */
.feed { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feed__item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.5rem, 2.8vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--d-2) var(--e-out);
}
.feed__item:hover { background: linear-gradient(90deg, rgba(212,160,23,.07), transparent 65%); }
@media (max-width: 760px) {
  .feed__item { grid-template-columns: 1fr; gap: .5rem; }
}
.feed__date {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.feed__body h3 { font-size: var(--t-h4); font-family: var(--sans); margin-bottom: .35rem; }
.feed__body p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; max-width: 66ch; }
.feed__meta { font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; }

/* Live region state */
.live-slot[data-state="loading"] { opacity: .5; }
.live-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
  margin-left: .7rem; vertical-align: middle;
}
.live-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22,163,74,.5);
  animation: livePulse 2.2s var(--e-soft) infinite;
}
@keyframes livePulse {
  70%  { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.live-badge[hidden] { display: none; }

/* --------------------------------------------------------------------------
   17. QUOTE / TESTIMONIAL
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding-left: clamp(2rem, 5vw, 4rem);
}
.quote::before {
  content: '\201C';
  position: absolute; left: 0; top: -.24em;
  font-family: var(--serif); font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 1; color: var(--gold); opacity: .34;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.34; font-weight: 500;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.6rem;
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
}
.section--dark .quote figcaption { color: var(--on-dark-3); }

/* --------------------------------------------------------------------------
   18. FORM
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  font-size: var(--t-body);
  transition: border-color var(--d-1) var(--e-out), box-shadow var(--d-1) var(--e-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3.5px rgba(27,45,94,.1);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 620px) { .field--2 { grid-template-columns: 1fr; } }
.form__note { font-size: var(--t-xs); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   19. CONTACT / FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-abyss);
  color: var(--on-dark-2);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  font-size: var(--t-sm);
  position: relative;
  overflow: hidden;
}
.footer__crest-bg {
  position: absolute; right: -6%; bottom: -22%;
  width: min(460px, 52vw); opacity: .045;
  pointer-events: none; z-index: 0;
}
.footer > * { position: relative; z-index: 1; }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--on-dark-line);
}
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: 2.2rem; } }

.footer__brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.footer__brand img { width: 50px; height: 50px; }
.footer__brand-name {
  font-family: var(--serif); color: #fff;
  font-size: 1.14rem; font-weight: 600; line-height: 1.2;
}
.footer__brand-sub {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-top: .25rem;
}
.footer__motto {
  font-family: var(--serif); font-style: italic;
  color: var(--gold-light); font-size: 1rem;
  margin-bottom: 1.2rem;
}
.footer p { color: var(--on-dark-3); line-height: 1.7; }

.footer h4 {
  color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .62rem; }
.footer__list a {
  color: var(--on-dark-2);
  transition: color var(--d-1) var(--e-out), padding-left var(--d-1) var(--e-out);
}
.footer__list a:hover { color: var(--gold-light); padding-left: 5px; }

.footer__bottom {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  font-size: var(--t-xs); color: var(--on-dark-3);
}
.footer__bottom a { color: var(--on-dark-2); }
.footer__bottom a:hover { color: var(--gold-light); }

.social { display: flex; gap: .55rem; margin-top: 1.4rem; }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--on-dark-line);
  color: var(--on-dark-2);
  transition: background var(--d-2) var(--e-out), color var(--d-2), transform var(--d-2) var(--e-out);
}
.social a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 120% at 12% 110%, rgba(212,160,23,.24), transparent 62%),
    radial-gradient(ellipse 60% 100% at 92% -10%, rgba(53,73,127,.75), transparent 60%);
}
.cta-band h2 { max-width: 20ch; }
.cta-band .lead { color: rgba(255,255,255,.78); }

/* --------------------------------------------------------------------------
   20. MOTION — scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--e-out), transform .85s var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="fade"] { transform: none; }
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.955); }
[data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* Line-by-line headline reveal */
.reveal-lines { }
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--e-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.reveal-lines.is-in .line > span { transform: none; }

/* Rule draw-in */
.rule { transform: scaleX(0); transition: transform .8s var(--e-out) .1s; }
.rule.is-in, [data-reveal].is-in .rule, .is-in > .rule { transform: scaleX(1); }

/* Parallax layer */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-lines .line > span { transform: none !important; }
  .rule { transform: scaleX(1) !important; }
  .marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   21. UTILITIES
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .8rem; }
.mt-2 { margin-top: 1.6rem; }
.mt-3 { margin-top: 2.4rem; }
.mt-4 { margin-top: 3.2rem; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

hr.soft { border: 0; border-top: 1px solid var(--line); margin-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark hr.soft { border-color: var(--on-dark-line); }

/* Print — a parent may well print the fee schedule */
@media print {
  .nav, .drawer, .palette, .progress, .hero__scroll, .cta-band, .social, .footer__crest-bg { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { min-height: auto; padding: 1.5rem 0; background: #fff; color: #000; }
  .hero::before, .hero::after { display: none; }
  .hero__title, .hero__lead, .hero__est { color: #000 !important; }
  .section { padding-block: 1.2rem; }
  .section--dark { background: #fff !important; color: #000 !important; }
  .section--dark * { color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .table-wrap { border: 1px solid #999; box-shadow: none; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 8pt; color: #555; }
}

/* --------------------------------------------------------------------------
   22. PROOF STRIP
   The scan layer, sitting immediately under the hero. A parent who reads
   nothing else on the page should still take away the six reasons in the
   time it takes to thumb past.
   -------------------------------------------------------------------------- */
.proof {
  background: var(--bg-tint);
  color: var(--ink-2);
  padding-block: clamp(1.8rem, 3.4vw, 2.8rem);
  border-bottom: 1px solid var(--line);
}
.proof__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.9rem, 2vw, 1.6rem) clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 900px) { .proof__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proof__list { grid-template-columns: 1fr; } }

.proof__item {
  display: flex; align-items: flex-start; gap: .85rem;
  font-size: var(--t-sm);
  color: var(--on-dark-2);
  line-height: 1.45;
  margin: 0;
}
.proof__item svg {
  width: 20px; height: 20px; flex: none;
  color: var(--navy);
  margin-top: 1px;
}
.proof__item strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   23. BIG STAT
   -------------------------------------------------------------------------- */
.bigstat {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 90% 90% at 50% 0%, rgba(212,160,23,.2), transparent 68%),
    rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.bigstat__n {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 13vw, 9rem);
  font-weight: 600; line-height: .9;
  letter-spacing: -.05em;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.bigstat__l {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: #fff; margin-top: 1.2rem;
}
.bigstat__sub {
  font-size: var(--t-sm);
  color: var(--on-dark-3);
  margin-top: .9rem; line-height: 1.55;
}

/* --------------------------------------------------------------------------
   24. PRICE CARDS
   -------------------------------------------------------------------------- */
.pricecards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 860px) { .pricecards { grid-template-columns: 1fr; } }

.pricecard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--sh-1);
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2) var(--e-out);
}
.pricecard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.pricecard--lead {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--sh-2);
}
.pricecard__label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1rem;
}
.pricecard--lead .pricecard__label { color: var(--gold-light); }
.pricecard__n {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 600; line-height: 1;
  letter-spacing: -.035em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.pricecard--lead .pricecard__n { color: #fff; }
.pricecard__n span {
  font-family: var(--sans);
  font-size: .32em; font-weight: 600;
  letter-spacing: .06em;
  margin-left: .45rem;
  color: var(--gold-deep);
  vertical-align: middle;
}
.pricecard--lead .pricecard__n span { color: var(--gold-light); }
.pricecard p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin: 1rem 0 0; line-height: 1.6;
}
.pricecard--lead p { color: rgba(255,255,255,.8); }
.pricecard--lead strong { color: #fff; }

/* --------------------------------------------------------------------------
   25. TOTAL BAR
   -------------------------------------------------------------------------- */
.totalbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.2rem);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
}
@media (max-width: 900px) {
  .totalbar { grid-template-columns: 1fr; text-align: left; }
  .totalbar .btn { justify-self: start; }
}
.totalbar__l {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .5rem;
}
.totalbar__n {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600; line-height: 1;
  letter-spacing: -.035em; color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.totalbar__n span {
  font-family: var(--sans); font-size: .34em;
  font-weight: 600; color: var(--gold-deep);
  letter-spacing: .06em; margin-left: .3rem;
}
.totalbar__note {
  font-size: var(--t-sm); color: var(--ink-2);
  margin: 0; max-width: 52ch; line-height: 1.6;
}

/* --------------------------------------------------------------------------
   26. SECTION TINT
   The first draft alternated white against full dark-navy blocks, which made
   a long page feel like a series of unrelated slabs. Most of those sections
   are now white or lightly tinted, and dark is reserved for one or two
   genuine moments per page.
   -------------------------------------------------------------------------- */
.section--tint { background: var(--bg-tint); }
.section--tint + .section--tint { border-top: 1px solid var(--line); }

/* A section that needs separation without a colour change */
.section--ruled { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   27. STAFF
   -------------------------------------------------------------------------- */
.staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.person {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: border-color var(--d-2) var(--e-out), box-shadow var(--d-2) var(--e-out),
              transform var(--d-2) var(--e-out);
}
.person:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.person__photo { aspect-ratio: 4/5; background: var(--bg-tint-2); }
.person__body { padding: 1.05rem 1.15rem 1.25rem; }
.person__role {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .42rem;
}
.person__name {
  font-family: var(--serif);
  font-size: 1.06rem; font-weight: 600;
  line-height: 1.24; letter-spacing: -.01em;
  color: var(--ink); margin: 0;
}
.person__note {
  font-size: var(--t-xs); color: var(--ink-3);
  margin: .5rem 0 0; line-height: 1.55;
}

/* A larger profile for the leadership team */
.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--line);
}
.profile:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; gap: 1.4rem; }
  .profile__photo { max-width: 260px; }
}
.profile__photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-l);
  background: var(--bg-tint-2);
  overflow: hidden;
}
.profile__role {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .6rem;
}
.profile h3 { font-size: var(--t-h3); margin-bottom: .75rem; }
.profile p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.68; }
.profile__creds {
  list-style: none; padding: 0; margin: 1.1rem 0 0;
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.profile__creds li {
  font-size: var(--t-xs); font-weight: 500;
  padding: .32rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  color: var(--ink-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   28. TICK LISTS
   These were previously built from inline styles carrying hard-coded white
   text, which broke the moment a section stopped being dark. Now they are a
   class that inherits correctly on any background.
   -------------------------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.ticks li {
  display: flex; align-items: flex-start; gap: .85rem;
  margin-bottom: 1rem;
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.6;
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks__i {
  flex: none; width: 21px; height: 21px;
  color: var(--navy);
  margin-top: 1px;
}
.ticks__i svg { width: 21px; height: 21px; }

.section--dark .ticks li { color: var(--on-dark-2); }
.section--dark .ticks li strong { color: #fff; }
.section--dark .ticks__i { color: var(--gold-bright); }

/* Ruled variant — one row per line, used for the documents checklist */
.ticks--ruled li {
  margin-bottom: 0;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.ticks--ruled li:last-child { border-bottom: 0; }
.section--dark .ticks--ruled li { border-color: var(--on-dark-line); }

/* A highlighted phrase inside body copy — works on light and dark. */
.hl { font-weight: 700; color: var(--navy); }
.section--dark .hl { color: #fff; }

/* ==========================================================================
   29. SLIDESHOW
   A full-bleed, auto-advancing, swipeable carousel. Used where the school
   needs to be seen rather than described.
   ========================================================================== */
.slides {
  position: relative;
  overflow: hidden;
  background: var(--navy-abyss);
  isolation: isolate;
}
.slides--full { height: min(78svh, 760px); }
.slides--band { aspect-ratio: 21/9; }
@media (max-width: 760px) {
  .slides--full { height: min(66svh, 560px); }
  .slides--band { aspect-ratio: 4/3; }
}

.slides__track { position: absolute; inset: 0; }

/* Same trap as the hero: `.ph` sets position:relative and has no intrinsic
   height, so inside an absolutely-positioned slide it collapsed to zero.
   Two classes to out-specify it. */
.slide .ph { position: absolute; inset: 0; border-radius: 0; }

.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--e-out);
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }

/* Slow drift on the active slide — stills feel like footage */
.slide .ph__img, .slide .ph__art {
  transform: scale(1.06);
  transition: transform 7s linear;
}
.slide.is-active .ph__img, .slide.is-active .ph__art { transform: scale(1); }

.slide__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(8,21,51,.9) 0%, rgba(8,21,51,.45) 45%, rgba(8,21,51,.25) 100%);
}
.slide__cap {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  color: #fff;
}
.slide__cap-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.slide__eyebrow {
  font-size: var(--t-eyebrow); font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: .55rem;
}
.slide__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 600; line-height: 1.12;
  letter-spacing: -.02em; margin: 0 0 .5rem;
  max-width: 22ch;
}
.slide__text {
  font-size: var(--t-sm); color: rgba(255,255,255,.82);
  max-width: 54ch; margin: 0;
}

/* Controls */
.slides__nav {
  position: absolute; z-index: 4; bottom: clamp(1.1rem, 2.5vw, 2rem);
  right: clamp(1.1rem, 4vw, 3.2rem);
  display: flex; gap: .5rem;
}
.slides__btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(8,21,51,.45);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26);
  transition: background var(--d-1) var(--e-out), transform var(--d-1) var(--e-out);
}
.slides__btn:hover { background: var(--gold); transform: scale(1.06); }
.slides__btn svg { width: 17px; height: 17px; }

.slides__dots {
  position: absolute; z-index: 4;
  bottom: clamp(1.5rem, 3vw, 2.4rem); left: clamp(1.4rem, 4vw, 3.2rem);
  display: flex; gap: .45rem; align-items: center;
}
.slides__dot {
  width: 26px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.3);
  transition: background var(--d-2) var(--e-out), width var(--d-2) var(--e-out);
}
.slides__dot.is-active { background: var(--gold-bright); width: 40px; }

/* The caption sits bottom-left on a full slideshow, so move dots up */
.slides--full .slides__dots { bottom: auto; top: clamp(1.4rem, 4vw, 2.6rem); }

/* ==========================================================================
   30. GALLERY
   ========================================================================== */
.gal-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}
.gal-filter {
  padding: .5rem 1rem;
  font-size: var(--t-sm); font-weight: 500;
  border-radius: var(--r-s);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-2);
  transition: all var(--d-1) var(--e-out);
}
.gal-filter:hover { box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.gal-filter.is-active {
  background: var(--navy); color: #fff;
  box-shadow: inset 0 0 0 1px var(--navy);
}

.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(.7rem, 1.4vw, 1.1rem);
}
.gal__item {
  position: relative;
  display: block; width: 100%;
  /* Tiles carry different aspect ratios on purpose. Grid rows stretch by
     default, which left a band of background above and below the shorter
     ones — align to the row start so each tile is exactly its picture. */
  align-self: start;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--bg-tint-2);
  cursor: zoom-in;
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2) var(--e-out), opacity var(--d-2);
}
.gal__item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.gal__item[hidden] { display: none; }
/* Every third tile runs tall, so the grid reads as a composed wall rather
   than a spreadsheet of identical squares. */
.gal__item .ph { aspect-ratio: 4/3; }
.gal__item:nth-child(7n+1) .ph { aspect-ratio: 4/5; }
.gal__item:nth-child(7n+4) .ph { aspect-ratio: 1/1; }

.gal__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 1.9rem .85rem .7rem;
  background: linear-gradient(to top, rgba(8,21,51,.86), transparent);
  color: #fff; font-size: var(--t-xs);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--d-2) var(--e-out), transform var(--d-2) var(--e-out);
}
.gal__item:hover .gal__cap { opacity: 1; transform: none; }

/* ==========================================================================
   31. LIGHTBOX
   ========================================================================== */
.lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,12,26,.94);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity var(--d-2) var(--e-out), visibility var(--d-2);
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 1rem; justify-items: center; }
.lb__img {
  max-width: 100%; max-height: 78svh;
  object-fit: contain;
  border-radius: var(--r-m);
  transform: scale(.96);
  transition: transform var(--d-2) var(--e-spring);
}
.lb.is-open .lb__img { transform: none; }
.lb__cap { color: rgba(255,255,255,.75); font-size: var(--t-sm); text-align: center; max-width: 60ch; }
.lb__count { color: rgba(255,255,255,.45); font-size: var(--t-xs); letter-spacing: .1em; }
.lb__btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transition: background var(--d-1) var(--e-out);
}
.lb__btn:hover { background: var(--gold); color: var(--navy-deep); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__prev { left: clamp(.6rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(.6rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__close { top: clamp(.8rem, 2vw, 1.6rem); right: clamp(.8rem, 2vw, 1.6rem); }

/* ==========================================================================
   32. VIDEO
   A click-to-load facade: the YouTube player is only fetched once someone
   actually presses play. Keeps the page fast and stops YouTube setting
   cookies on visitors who never watch anything.
   ========================================================================== */
.vids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.vid {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--line);
}
.vid__frame {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  cursor: pointer;
  display: block;
  background: var(--navy-deep);
  overflow: hidden;
}
.vid__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--e-out), filter var(--d-2) var(--e-out);
}
.vid__frame:hover .vid__thumb { transform: scale(1.05); filter: brightness(.82); }
.vid__frame iframe, .vid__frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.vid__play {
  position: absolute; z-index: 2;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(8,21,51,.55);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4);
  color: #fff;
  transition: background var(--d-2) var(--e-out), transform var(--d-2) var(--e-spring);
}
.vid__frame:hover .vid__play { background: var(--gold); color: var(--navy-deep); transform: translate(-50%,-50%) scale(1.09); }
.vid__play svg { width: 26px; height: 26px; margin-left: 3px; }
.vid__dur {
  position: absolute; z-index: 2; right: .7rem; bottom: .7rem;
  font-size: var(--t-xs); font-weight: 600;
  padding: .18rem .48rem; border-radius: 4px;
  background: rgba(8,21,51,.8); color: #fff;
}
.vid__body { padding: 1rem 1.15rem 1.25rem; background: var(--bg); }
.vid__title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: 0; color: var(--ink); }
.vid__meta { font-size: var(--t-xs); color: var(--ink-3); margin: .4rem 0 0; }

/* A single large feature video */
.vid--feature .vid__frame { aspect-ratio: 16/8; }

/* ==========================================================================
   33. TABS
   ========================================================================== */
.tabs {
  display: flex; gap: .3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}
.tab {
  position: relative;
  padding: .85rem 1.2rem;
  font-size: var(--t-sm); font-weight: 600;
  color: var(--ink-3);
  transition: color var(--d-1) var(--e-out);
}
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); }
.tab::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--d-2) var(--e-out);
}
.tab.is-active::after { transform: scaleX(1); }
.tabpanel[hidden] { display: none; }

/* ==========================================================================
   34. MEDIA BANDS
   Full-bleed imagery that breaks the column rhythm.
   ========================================================================== */
.bleed {
  position: relative;
  min-height: clamp(360px, 52vh, 620px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.bleed .ph { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.bleed::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,21,51,.9), rgba(8,21,51,.3) 60%, rgba(8,21,51,.45));
}
.bleed__inner { width: 100%; padding-block: clamp(2rem, 5vw, 3.5rem); }
.bleed h2 { color: #fff; max-width: 20ch; }
.bleed p { color: rgba(255,255,255,.82); max-width: 56ch; }

/* A three-up media strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.6rem, 1.2vw, 1rem);
}
@media (max-width: 820px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } }
.strip .ph { border-radius: var(--r-m); }

/* Parent login link in the navigation */
.nav__login {
  display: inline-flex; align-items: center; gap: .42rem;
  font-size: .84rem; font-weight: 600;
  color: var(--ink-2);
  padding: .5rem .2rem;
  transition: color var(--d-1) var(--e-out);
  white-space: nowrap;
}
.nav__login:hover { color: var(--navy); }
.nav__login svg { width: 15px; height: 15px; }
.nav--over-hero:not(.is-stuck) .nav__login { color: rgba(255,255,255,.82); }
.nav--over-hero:not(.is-stuck) .nav__login:hover { color: #fff; }
@media (max-width: 1240px) { .nav__login span { display: none; } }
@media (max-width: 1080px) { .nav__login { display: none; } }

/* Tighten the bar so nine links, search, login and Apply all fit */
@media (min-width: 1081px) {
  .nav__link { padding: .55rem .62rem; font-size: .862rem; }
  .nav__link::after { left: .62rem; right: .62rem; }
}
@media (max-width: 1300px) and (min-width: 1081px) {
  .nav__search kbd { display: none; }
}
