/* ==========================================================================
   Ambience Public School, Safdarjung Enclave — design system
   House style aligned with the group's Gurugram school: Poppins + Roboto,
   deep navy, crest gold, a brighter accent blue. Photography leads.
   ========================================================================== */

:root {
  /* brand */
  --navy-900: #070F24;
  --navy-800: #0A122B;
  --navy-700: #0A2B68;   /* the crest navy */
  --navy-600: #034FA3;   /* accent blue */
  --navy-500: #2E76CE;

  --gold-700: #A96E00;
  --gold-600: #C98200;
  --gold-500: #ECB101;
  --gold-400: #FFC833;
  --gold-100: #FFF5DC;

  /* neutrals, faintly cool */
  --paper:     #FFFFFF;
  --surface:   #F4F7FC;
  --surface-2: #E9EFF8;
  --line:      #DCE4F0;
  --line-soft: #EDF2F9;
  --ink:       #0E1A33;
  --ink-2:     #2C3C5C;
  --muted:     #5C6C8A;
  --muted-2:   #8494B0;

  --on-dark:      #FFFFFF;
  --on-dark-mute: #BFD0EA;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(10,18,43,.05), 0 4px 12px rgba(10,18,43,.05);
  --sh:    0 2px 6px rgba(10,18,43,.06), 0 14px 34px rgba(10,18,43,.09);
  --sh-lg: 0 6px 16px rgba(10,18,43,.09), 0 34px 70px rgba(10,18,43,.16);

  --display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 44px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #0A1222;
    --surface:   #101B30;
    --surface-2: #17253F;
    --line:      #23334F;
    --line-soft: #1A2942;
    --ink:       #EAF0FA;
    --ink-2:     #C4D2E8;
    --muted:     #98A9C6;
    --muted-2:   #7C8DAC;
    --gold-600:  #FFC833;
    --gold-700:  #FFC833;
    --navy-600:  #5A9BE8;
    --sh-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
    --sh:    0 2px 6px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.4);
    --sh-lg: 0 6px 16px rgba(0,0,0,.4), 0 34px 70px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:     #0A1222;
  --surface:   #101B30;
  --surface-2: #17253F;
  --line:      #23334F;
  --line-soft: #1A2942;
  --ink:       #EAF0FA;
  --ink-2:     #C4D2E8;
  --muted:     #98A9C6;
  --muted-2:   #7C8DAC;
  --gold-600:  #FFC833;
  --gold-700:  #FFC833;
  --navy-600:  #5A9BE8;
  --sh-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
  --sh:    0 2px 6px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.4);
  --sh-lg: 0 6px 16px rgba(0,0,0,.4), 0 34px 70px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- 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; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--display); font-weight: 600; line-height: 1.18;
  letter-spacing: -.018em; text-wrap: balance; margin: 0; color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.024em; }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.35rem); }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
p  { margin: 0; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding-block: clamp(56px, 7vw, 108px); }
.section--tight { padding-block: clamp(38px, 4.6vw, 62px); }
.section--surface { background: var(--surface); }
.stack { display: flex; flex-direction: column; }
.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}.gap-20{gap:20px}
.gap-24{gap:24px}.gap-32{gap:32px}.gap-40{gap:40px}.gap-56{gap:56px}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-700); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--gold-500); flex: none; }
.eyebrow--light { color: var(--gold-400); }
.eyebrow--light::before { background: var(--gold-400); }
.lede { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--muted); line-height: 1.72; max-width: 62ch; }
.prose { color: var(--ink-2); max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-size: .92rem; font-weight: 600; letter-spacing: -.005em;
  padding: 14px 26px; border: 2px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold-500); color: #2A1C00; box-shadow: 0 6px 18px rgba(236,177,1,.35); }
.btn--gold:hover { background: var(--gold-400); box-shadow: 0 10px 26px rgba(236,177,1,.45); }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-600); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--navy-600); color: var(--navy-600); }
.btn--on-dark { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn--on-dark:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .84rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow, .linky:hover .arrow { transform: translateX(4px); }

.linky {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: .88rem;
  color: var(--navy-600); text-decoration: none;
}
.linky:hover { color: var(--gold-700); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { background: var(--navy-800); color: var(--on-dark-mute); font-size: .8rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__live { display: flex; align-items: center; gap: 9px; color: var(--gold-400); font-weight: 600; font-family: var(--display); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); animation: pulse 2.6s infinite; flex: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(236,177,1,.65); }
  70% { box-shadow: 0 0 0 9px rgba(236,177,1,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,177,1,0); }
}
.topbar__links { display: flex; gap: 22px; align-items: center; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
@media (max-width: 900px) { .topbar__links { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.7) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 82px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; margin-right: auto; }
.brand img { height: 54px; width: auto; }
.brand__name { font-family: var(--display); font-size: 1.12rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); display: block; }
.brand__sub { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; font-family: var(--display); margin-top: 4px; display: block; }
@media (max-width: 420px) { .brand__text { display: none; } .brand img { height: 46px; } }

.nav { display: flex; align-items: center; gap: 1px; }
.nav a {
  font-family: var(--display); font-size: .875rem; font-weight: 500; text-decoration: none;
  padding: 10px 14px; border-radius: var(--r-pill); color: var(--ink-2); position: relative;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { color: var(--navy-600); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--navy-600); background: var(--surface); font-weight: 600; }
.header__cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1150px) { .nav { display: none; } }
@media (max-width: 640px) { .header__cta .btn--gold { display: none; } }

.burger {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  cursor: pointer; color: var(--ink); flex: none;
}
@media (max-width: 1150px) { .burger { display: inline-flex; } }

.drawer { position: fixed; inset: 0; z-index: 95; background: var(--paper); display: none; overflow-y: auto; padding-bottom: 44px; }
.drawer.open { display: block; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid var(--line); }
.drawer nav { display: flex; flex-direction: column; padding-block: 14px; }
.drawer nav a {
  padding: 16px 0; font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em;
  text-decoration: none; border-bottom: 1px solid var(--line-soft); color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer nav a span { font-family: var(--body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }

/* ==========================================================================
   HERO — full-bleed photograph, scrim, content over
   ========================================================================== */
.hero { position: relative; background: var(--navy-900); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(7,15,36,.94) 0%, rgba(7,15,36,.86) 34%, rgba(7,15,36,.45) 62%, rgba(7,15,36,.30) 100%),
    linear-gradient(to top, rgba(7,15,36,.75) 0%, rgba(7,15,36,0) 42%);
}
@media (max-width: 860px) {
  .hero__scrim { background: linear-gradient(to top, rgba(7,15,36,.96) 30%, rgba(7,15,36,.74) 70%, rgba(7,15,36,.6) 100%); }
}
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { padding-block: clamp(64px, 9vw, 132px); max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--gold-400); }
.hero__lede { color: #D6E2F5; font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 52ch; line-height: 1.7; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.hero__tag b { color: var(--gold-400); font-weight: 700; }

/* floating stat band that overlaps the hero */
.factbar { position: relative; z-index: 5; margin-top: -54px; }
@media (max-width: 860px) { .factbar { margin-top: -34px; } }
.factbar__inner {
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden; border: 1px solid var(--line);
}
.fact { padding: 26px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b {
  display: block; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 700; color: var(--navy-700); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .fact b { color: var(--gold-400); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact b { color: var(--gold-400); } }
.fact span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: 6px; }
@media (max-width: 900px) {
  .factbar__inner { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) { .fact { padding: 20px 18px; } }

/* ==========================================================================
   Quick actions
   ========================================================================== */
.quick__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 18px 18px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  min-height: 146px; transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.quick__card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--gold-500); }
.quick__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-700); flex: none;
}
:root[data-theme="dark"] .quick__icon { background: rgba(236,177,1,.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick__icon { background: rgba(236,177,1,.14); } }
.quick__icon svg { width: 21px; height: 21px; }
.quick__card b { font-family: var(--display); font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.quick__card span { font-size: .79rem; color: var(--muted); line-height: 1.45; margin-top: auto; }
@media (max-width: 1020px) { .quick__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px) { .quick__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .quick__card { min-height: 128px; padding: 16px 14px; } }

/* ==========================================================================
   Section headers
   ========================================================================== */
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 60ch; }
.sec-head--center { align-items: center; text-align: center; margin-inline: auto; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--split { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 24px; max-width: none; }
.sec-head--split > div { display: flex; flex-direction: column; gap: 14px; max-width: 56ch; }
@media (max-width: 760px) { .sec-head--split { grid-template-columns: 1fr; align-items: start; } }

/* ==========================================================================
   Value pillars
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold-500); }
.pillar:nth-child(2)::before { background: var(--navy-600); }
.pillar:nth-child(3)::before { background: var(--navy-700); }
.pillar:nth-child(4)::before { background: var(--gold-700); }
.pillar__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--navy-600); }
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.16rem; }
.pillar p { font-size: .91rem; color: var(--muted); line-height: 1.68; }

/* ==========================================================================
   Split feature
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.split--narrow-media { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.split--flip .split__media { order: -1; }
@media (max-width: 900px) { .split, .split--narrow-media { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh); }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.split__media--stack img:first-child { grid-column: 1 / -1; }

.quote {
  font-family: var(--display); font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.5;
  font-weight: 500; color: var(--ink); letter-spacing: -.018em;
  border-left: 4px solid var(--gold-500); padding-left: 22px;
}
.byline { display: flex; flex-direction: column; gap: 2px; }
.byline b { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.byline span { font-size: .82rem; color: var(--muted); }

/* ==========================================================================
   Academic ladder
   ========================================================================== */
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1050px) { .ladder { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ladder { grid-template-columns: 1fr; } }
.rung {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.rung:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--navy-600); }
.rung__no {
  width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--navy-700); color: #fff; font-family: var(--display); font-size: .82rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rung h3 { font-size: 1.1rem; }
.rung__grades { font-family: var(--display); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; }
.rung p { font-size: .87rem; color: var(--muted); line-height: 1.66; }

/* ==========================================================================
   Dark band (results)
   ========================================================================== */
.band { background: var(--navy-800); color: var(--on-dark-mute); position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 62vw; height: 130%;
  background: radial-gradient(ellipse at 60% 40%, rgba(3,79,163,.4), rgba(3,79,163,0) 68%);
  pointer-events: none;
}
.band .wrap { position: relative; z-index: 1; }
.band h2, .band h3 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r); padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
}
.stat b {
  font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700;
  color: var(--gold-400); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat span { font-size: .84rem; color: var(--on-dark-mute); line-height: 1.5; }

.topper-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .topper-row { grid-template-columns: 1fr; } }
.topper {
  background: linear-gradient(150deg, rgba(236,177,1,.16), rgba(236,177,1,.04));
  border: 1px solid rgba(236,177,1,.35); border-radius: var(--r);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 3px;
}
.topper span { font-family: var(--display); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.topper i { font-family: var(--display); font-style: normal; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.topper b { font-size: .92rem; color: var(--on-dark-mute); font-weight: 400; }

/* ==========================================================================
   Facility gallery
   ========================================================================== */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gal figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.gal figure:hover img { transform: scale(1.06); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(7,15,36,.94) 12%, rgba(7,15,36,.6) 56%, rgba(7,15,36,0));
  color: #fff; padding: 46px 20px 18px; display: flex; flex-direction: column; gap: 3px;
}
.gal figcaption b { font-family: var(--display); font-size: 1rem; font-weight: 600; }
.gal figcaption span { font-size: .78rem; color: #C4D6F0; line-height: 1.5; }
.g-6 { grid-column: span 6; aspect-ratio: 3/2; }
.g-4 { grid-column: span 4; aspect-ratio: 3/2; }
.g-3 { grid-column: span 3; aspect-ratio: 1/1; }
.g-8 { grid-column: span 8; aspect-ratio: 2/1; }
@media (max-width: 900px) { .g-6, .g-4, .g-8 { grid-column: span 12; aspect-ratio: 3/2; } .g-3 { grid-column: span 6; } }

/* ==========================================================================
   Cards
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover, a.card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--gold-500); }
.card--accent { border-left: 4px solid var(--gold-500); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__body h3 { font-size: 1.08rem; }
.card__body p { font-size: .89rem; color: var(--muted); line-height: 1.68; }
.card__foot { margin-top: auto; padding-top: 8px; }

.date-chip {
  font-family: var(--display); font-size: .71rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-700); font-variant-numeric: tabular-nums;
}

/* notices */
.notices { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.notice {
  display: grid; grid-template-columns: 124px minmax(0,1fr) auto; gap: 18px; align-items: center;
  padding: 18px 22px; text-decoration: none; background: var(--paper);
  border-bottom: 1px solid var(--line); transition: background .15s ease;
}
.notice:last-child { border-bottom: 0; }
.notice:hover { background: var(--surface); }
.notice time { font-family: var(--display); font-size: .76rem; color: var(--gold-700); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.notice b { font-family: var(--display); font-weight: 500; font-size: .96rem; line-height: 1.5; color: var(--ink); }
.notice em {
  font-style: normal; font-size: .71rem; color: var(--muted); font-family: var(--display); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; background: var(--surface); padding: 5px 11px; border-radius: var(--r-pill);
}
@media (max-width: 680px) { .notice { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; } .notice em { display: none; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; background: var(--navy-700); padding-block: 16px; }
.marquee__track {
  display: flex; flex-wrap: nowrap; width: max-content; will-change: transform;
  animation-name: apsMarquee;
  animation-duration: 55s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes apsMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.marquee__item {
  display: inline-flex; align-items: center; padding-inline: 24px;
  font-size: .86rem; color: #D6E2F5; white-space: nowrap;
}
.marquee__item::after { content: "★"; color: var(--gold-400); font-size: .72rem; margin-left: 24px; }

/* ==========================================================================
   Enquiry
   ========================================================================== */
.enquire {
  display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  background: var(--navy-800); border-radius: var(--r-lg); overflow: hidden; position: relative;
  box-shadow: var(--sh-lg);
}
.enquire::after {
  content: ""; position: absolute; left: -20%; bottom: -60%; width: 70%; height: 160%;
  background: radial-gradient(ellipse at 50% 50%, rgba(3,79,163,.5), rgba(3,79,163,0) 68%);
  pointer-events: none;
}
@media (max-width: 940px) { .enquire { grid-template-columns: 1fr; } }
.enquire__pitch { padding: clamp(32px, 4.4vw, 56px); display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
.enquire__pitch h2 { color: #fff; }
.enquire__pitch > p { color: var(--on-dark-mute); max-width: 44ch; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--on-dark-mute); line-height: 1.55; }
.check svg { width: 20px; height: 20px; color: var(--navy-800); background: var(--gold-400); border-radius: 50%; padding: 3px; flex: none; margin-top: 2px; }

.enquire__form { background: var(--paper); padding: clamp(28px, 3.8vw, 46px); display: flex; flex-direction: column; gap: 17px; position: relative; z-index: 1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 2px solid transparent; border-radius: var(--r-sm);
  padding: 13px 14px; width: 100%; transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--paper); }
.field textarea { resize: vertical; min-height: 86px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .76rem; color: var(--muted-2); line-height: 1.55; }
.form-ok { background: var(--gold-100); border: 1px solid var(--gold-500); border-radius: var(--r-sm); padding: 16px 18px; display: none; flex-direction: column; gap: 5px; }
.form-ok.show { display: flex; }
.form-ok b { color: #593D00; font-family: var(--display); }
.form-ok span { font-size: .85rem; color: #6E4D0B; }
:root[data-theme="dark"] .form-ok { background: rgba(236,177,1,.12); }
:root[data-theme="dark"] .form-ok b, :root[data-theme="dark"] .form-ok span { color: var(--gold-400); }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .91rem; min-width: 520px; }
thead th {
  background: var(--navy-700); color: #fff; text-align: left; padding: 14px 18px;
  font-family: var(--display); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; white-space: nowrap;
}
tbody td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--surface); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { padding: 15px 18px; border-top: 2px solid var(--navy-700); font-family: var(--display); font-weight: 700; color: var(--ink); background: var(--gold-100); }
:root[data-theme="dark"] tfoot td { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) tfoot td { background: var(--surface-2); } }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step {
  display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px;
}
.step__no {
  width: 48px; height: 48px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--gold-500); color: #2A1C00; font-family: var(--display); font-size: 1rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); line-height: 1.68; }
.step ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: .89rem; line-height: 1.72; }
.step li::marker { color: var(--gold-500); }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; } }

/* ==========================================================================
   People
   ========================================================================== */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; flex-direction: column; gap: 14px; }
.person__img { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person b { font-family: var(--display); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.person span { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; }

.message {
  display: grid; grid-template-columns: 230px minmax(0,1fr); gap: clamp(24px, 3.4vw, 48px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px); align-items: start;
}
@media (max-width: 820px) { .message { grid-template-columns: 1fr; } .message__img { max-width: 240px; } }
.message__img { border-radius: var(--r); overflow: hidden; }
.message__img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 18%; }

/* ==========================================================================
   Accordion
   ========================================================================== */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc details { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.acc details[open] { border-color: var(--gold-500); }
.acc summary {
  cursor: pointer; list-style: none; padding: 20px 52px 20px 24px; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.5; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--gold-700); line-height: 1;
}
.acc details[open] summary::after { content: "–"; }
.acc summary:hover { color: var(--navy-600); }
.acc__body { padding: 0 24px 22px; color: var(--muted); font-size: .93rem; line-height: 1.75; }

/* ==========================================================================
   Page hero (interior)
   ========================================================================== */
.phero { position: relative; background: var(--navy-800); overflow: hidden; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.phero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(10,18,43,.95) 0%, rgba(10,18,43,.86) 40%, rgba(10,18,43,.6) 100%); }
.phero .wrap { position: relative; z-index: 2; padding-block: clamp(48px, 6vw, 88px); }
.phero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); }
.phero p { color: #D0DEF3; max-width: 60ch; margin-top: 16px; font-size: 1.04rem; line-height: 1.7; }
.crumbs { display: flex; gap: 10px; font-size: .78rem; color: var(--on-dark-mute); margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a { text-decoration: none; color: var(--gold-400); }
.crumbs span { opacity: .55; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-900); color: var(--on-dark-mute); padding-block: clamp(52px, 6vw, 84px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(26px, 3.4vw, 52px); }
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--gold-400); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer a { text-decoration: none; font-size: .89rem; }
.footer a:hover { color: var(--gold-400); }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__brand img { height: 72px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: .88rem; line-height: 1.72; max-width: 36ch; }
.addr { font-size: .89rem; line-height: 1.75; font-style: normal; }
.addr b { color: #fff; display: block; margin-top: 14px; font-size: .71rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--display); }
.footer__bar {
  margin-top: clamp(38px, 4vw, 58px); border-top: 1px solid rgba(191,208,234,.18);
  padding-block: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .79rem;
}
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(191,208,234,.28); border-radius: 50%; transition: all .18s ease; }
.socials a:hover { border-color: var(--gold-400); background: rgba(236,177,1,.14); }
.socials svg { width: 17px; height: 17px; }

/* ==========================================================================
   Floating contact — two buttons of identical width, flush edges
   ========================================================================== */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: flex; flex-direction: column; gap: 10px;
  width: 196px;
}
.fab a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 18px; border-radius: var(--r-pill);
  text-decoration: none; font-family: var(--display);
  font-size: .84rem; font-weight: 600; letter-spacing: -.005em; color: #fff;
  background: var(--navy-700);
  box-shadow: 0 3px 10px rgba(10,18,43,.18), 0 10px 28px rgba(10,18,43,.20);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, background-color .18s ease;
}
.fab a.wa { background: #1FA855; }
.fab a.wa:hover { background: #178E47; }
.fab a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(10,18,43,.24), 0 16px 38px rgba(10,18,43,.26); }
.fab svg { width: 18px; height: 18px; flex: none; }
.fab span { white-space: nowrap; }

@media (max-width: 760px) {
  .fab { width: auto; right: 14px; bottom: 14px; gap: 9px; }
  .fab a { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .fab span { display: none; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--display);
  font-size: .71rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--r-pill); background: var(--gold-100); color: var(--gold-700);
}
:root[data-theme="dark"] .pill { background: rgba(236,177,1,.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill { background: rgba(236,177,1,.14); } }
.bullets { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.78; font-size: .93rem; }
.bullets li::marker { color: var(--gold-500); }
.bullets li + li { margin-top: 6px; }
.cols-2 { columns: 2; column-gap: 44px; }
@media (max-width: 700px) { .cols-2 { columns: 1; } }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold-500); color: #2A1C00; padding: 12px 18px; z-index: 200; font-weight: 700; border-radius: 0 0 var(--r-sm) 0; }
.skip:focus { left: 0; top: 0; }
.hr { height: 1px; background: var(--line); border: 0; }

/* even gallery grid — uniform tiles read as a considered set, not a mosaic */
.gal--even figure { grid-column: span 3; aspect-ratio: 3 / 2; }
@media (max-width: 1100px) { .gal--even figure { grid-column: span 4; } }
@media (max-width: 800px)  { .gal--even figure { grid-column: span 6; } }
@media (max-width: 520px)  { .gal--even figure { grid-column: span 12; } }

/* keep the last section clear of the floating buttons */
.footer__bar { padding-bottom: 26px; }
@media (min-width: 761px) { .footer__bar { padding-right: 210px; } }

/* refinement: quieter section joins, steadier rhythm */
.section--surface + .section--surface { padding-top: 0; }
.sec-head h2 + .lede { margin-top: 2px; }
.card__body > .pill + h3 { margin-top: 2px; }
figure figcaption b { letter-spacing: -.01em; }

/* ==========================================================================
   Motion & depth layer — "flashy, but refined"
   Nothing is hidden unless JS has confirmed it can reveal it again:
   the .js-reveal class is set on <html> by app.js at boot.
   ========================================================================== */

/* --- hero: slow drift on the photograph, staggered entrance on the type --- */
.hero__bg img { animation: heroDrift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.2%, 0); }
}

.hero__inner > * { animation: riseIn .85s cubic-bezier(.16,.84,.32,1) both; }
.hero__inner > *:nth-child(1) { animation-delay: .04s; }
.hero__inner > *:nth-child(2) { animation-delay: .12s; }
.hero__inner > *:nth-child(3) { animation-delay: .20s; }
.hero__inner > *:nth-child(4) { animation-delay: .28s; }
.hero__inner > *:nth-child(5) { animation-delay: .36s; }
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}

/* the accent word catches the light */
.hero h1 span {
  background: linear-gradient(96deg, var(--gold-400) 0%, #FFE9A8 42%, var(--gold-500) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-400);
}

/* --- factbar lifts off the hero --- */
.factbar__inner { animation: riseIn .9s cubic-bezier(.16,.84,.32,1) .42s both; }

/* --- aurora behind the dark bands --- */
.band::before, .enquire::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background:
    radial-gradient(38% 46% at 18% 34%, rgba(236,177,1,.20), transparent 70%),
    radial-gradient(42% 50% at 82% 62%, rgba(3,79,163,.55), transparent 72%);
  filter: blur(6px);
  animation: aurora 22s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes aurora {
  from { transform: translate3d(-3%, 0, 0) scale(1); opacity: .85; }
  to   { transform: translate3d(4%, -3%, 0) scale(1.12); opacity: 1; }
}
.band .wrap, .enquire__pitch, .enquire__form { position: relative; z-index: 1; }

/* --- a sheen that crosses the primary button on hover --- */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 42%;
  left: -60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: left .6s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.btn--gold:hover::after { left: 120%; }

/* --- the eyebrow rule draws itself in --- */
.eyebrow::before { transform-origin: left center; animation: ruleIn .7s cubic-bezier(.16,.84,.32,1) both; }
@keyframes ruleIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- section reveal, only armed once JS is running --- */
.js-reveal .reveal { opacity: 0; transform: translate3d(0, 26px, 0); }
.js-reveal .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.16,.84,.32,1), transform .7s cubic-bezier(.16,.84,.32,1);
}
.js-reveal .reveal.in > * { transition-delay: inherit; }

/* --- cards gain a soft inner light on hover --- */
.card, .quick__card, .pillar, .rung { position: relative; }
.card::after, .quick__card::after, .pillar::after, .rung::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.55), transparent 42%);
  opacity: 0; transition: opacity .25s ease;
}
:root[data-theme="dark"] .card::after, :root[data-theme="dark"] .quick__card::after,
:root[data-theme="dark"] .pillar::after, :root[data-theme="dark"] .rung::after {
  background: linear-gradient(150deg, rgba(255,255,255,.08), transparent 42%);
}
.card:hover::after, .quick__card:hover::after, .pillar:hover::after, .rung:hover::after { opacity: 1; }

/* --- gallery tiles bloom --- */
.gal figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--gold-500); transition: box-shadow .3s ease;
  border-radius: inherit;
}
.gal figure:hover::after { box-shadow: inset 0 0 0 3px var(--gold-500); }

/* --- stat numbers sit on a subtle gradient --- */
.stat b, .fact b { background-size: 100% 100%; }

/* honour reduced motion: keep the design, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .band::before, .enquire::before,
  .hero__inner > *, .factbar__inner, .eyebrow::before { animation: none !important; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .btn--gold::after { display: none; }
}

/* ==========================================================================
   Announcement bar — one purposeful message, one way to reach a person
   ========================================================================== */
.topbar { background: var(--navy-800); color: var(--on-dark-mute); font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; }
.topbar__note {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; color: #fff; text-decoration: none;
}
.topbar__note b { color: var(--gold-400); font-weight: 600; }
.topbar__note .arrow { color: var(--gold-400); }
.topbar__note:hover b { text-decoration: underline; text-underline-offset: 3px; }
.topbar__call {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--display); font-weight: 500; color: var(--on-dark-mute);
}
.topbar__call svg { width: 15px; height: 15px; color: var(--gold-400); }
.topbar__call b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.topbar__call:hover b { color: var(--gold-400); }
@media (max-width: 700px) {
  .topbar .wrap { min-height: 40px; }
  .topbar__note span.long { display: none; }
  .topbar__call span.label { display: none; }
}

/* ==========================================================================
   Desktop dropdown navigation — every page reachable in two moves
   ========================================================================== */
.nav > li { list-style: none; position: relative; }
.nav { margin: 0; padding: 0; }
.nav__top {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-size: .88rem; font-weight: 500; text-decoration: none;
  padding: 10px 14px; border-radius: var(--r-pill); color: var(--ink-2);
  background: transparent; border: 0; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav__top:hover, .nav > li:hover > .nav__top, .nav__top[aria-expanded="true"] {
  color: var(--navy-600); background: var(--surface);
}
.nav__top[aria-current="page"] { color: var(--navy-600); background: var(--surface); font-weight: 600; }
.nav__caret { width: 11px; height: 11px; transition: transform .2s ease; opacity: .6; }
.nav > li:hover .nav__caret, .nav__top[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 268px; padding: 10px; margin: 0; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s cubic-bezier(.2,.7,.3,1), visibility .18s;
  z-index: 80;
}
.nav > li:hover > .nav__menu,
.nav > li:focus-within > .nav__menu,
.nav__menu.open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
/* hover bridge so the pointer can travel into the menu */
.nav > li:has(.nav__menu)::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }

.nav__menu a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 13px; border-radius: var(--r-sm); text-decoration: none;
  font-family: var(--display); font-size: .88rem; font-weight: 500; color: var(--ink);
  transition: background .14s ease, color .14s ease;
}
.nav__menu a small {
  font-family: var(--body); font-size: .75rem; font-weight: 400; color: var(--muted); line-height: 1.4;
}
.nav__menu a:hover { background: var(--surface); color: var(--navy-600); }
.nav__menu a:hover small { color: var(--muted); }
.nav__menu a[aria-current="page"] { background: var(--gold-100); color: var(--gold-700); }
:root[data-theme="dark"] .nav__menu a[aria-current="page"] { background: rgba(236,177,1,.14); }

/* drawer: grouped, not one long undifferentiated list */
.drawer__group { border-bottom: 1px solid var(--line-soft); }
.drawer__group > summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-family: var(--display); font-size: 1.22rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group > summary::after {
  content: "+"; font-family: var(--display); font-size: 1.4rem; font-weight: 400; color: var(--gold-700);
}
.drawer__group[open] > summary::after { content: "–"; }
.drawer__group .drawer__sub { display: flex; flex-direction: column; padding: 0 0 12px 2px; }
.drawer__group .drawer__sub a {
  font-family: var(--body); font-size: .97rem; font-weight: 400; color: var(--ink-2);
  padding: 10px 0 10px 14px; border-bottom: 0; border-left: 2px solid var(--line);
}
.drawer__group .drawer__sub a:hover { color: var(--navy-600); border-left-color: var(--gold-500); }

/* ==========================================================================
   Seamless masthead — announcement bar, header and hero read as one mass.
   No white strip between the navy bar and the dark hero.
   ========================================================================== */
.site-header {
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: none;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--navy-800) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 8px 30px rgba(4, 10, 24, .38);
  border-bottom-color: rgba(236, 177, 1, .22);
}

.site-header .brand__name { color: #fff; }
.site-header .brand__sub  { color: var(--gold-400); }
.site-header .brand img {
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.site-header .nav__top { color: #CBDAF1; }
.site-header .nav__top:hover,
.site-header .nav > li:hover > .nav__top,
.site-header .nav__top[aria-current="page"] {
  color: #fff; background: rgba(255, 255, 255, .12);
}
.site-header .nav__caret { opacity: .75; }

.site-header .burger {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.site-header .burger:hover { background: rgba(255, 255, 255, .18); }

/* the announcement bar sits flush above it */
.topbar { border-bottom: 1px solid rgba(255, 255, 255, .06); }

/* hero and interior heroes butt straight up against the header */
.hero, .phero { margin-top: 0; }
.hero__scrim {
  background:
    linear-gradient(100deg, rgba(7,15,36,.94) 0%, rgba(7,15,36,.86) 34%, rgba(7,15,36,.45) 62%, rgba(7,15,36,.30) 100%),
    linear-gradient(to bottom, rgba(10,18,43,.72) 0%, rgba(10,18,43,0) 22%),
    linear-gradient(to top, rgba(7,15,36,.75) 0%, rgba(7,15,36,0) 42%);
}
@media (max-width: 860px) {
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(7,15,36,.96) 30%, rgba(7,15,36,.74) 70%, rgba(7,15,36,.62) 100%),
      linear-gradient(to bottom, rgba(10,18,43,.8) 0%, rgba(10,18,43,0) 26%);
  }
}
.phero__scrim {
  background:
    linear-gradient(95deg, rgba(10,18,43,.95) 0%, rgba(10,18,43,.86) 40%, rgba(10,18,43,.6) 100%),
    linear-gradient(to bottom, rgba(10,18,43,.85) 0%, rgba(10,18,43,0) 30%);
}

/* the drawer is a light full-screen surface, so its brand stays dark */
.drawer .brand__name { color: var(--ink); }
.drawer .brand__sub  { color: var(--gold-700); }
.drawer .burger { border-color: var(--line); background: var(--paper); color: var(--ink); }

/* ==========================================================================
   Restraint pass — gravitas comes from white numerals on deep navy,
   with gold reduced to a hairline accent. No gold fills over navy:
   gold at low opacity over navy composites to olive.
   ========================================================================== */

/* the dark band: cool light only, no gold wash */
.band::after { display: none; }
.band::before {
  inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(46% 52% at 22% 30%, rgba(46, 118, 206, .26), transparent 70%),
    radial-gradient(40% 48% at 82% 68%, rgba(3, 79, 163, .34), transparent 72%);
  filter: blur(10px);
  opacity: .9;
}
.enquire::before {
  background:
    radial-gradient(48% 54% at 24% 40%, rgba(46, 118, 206, .30), transparent 70%),
    radial-gradient(42% 50% at 84% 66%, rgba(3, 79, 163, .32), transparent 72%);
}

/* statistics: white figures, hairline gold rule, quiet ground */
.stat {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--r);
  padding: 26px 24px 24px;
  gap: 0;
}
.stat b {
  font-size: clamp(1.75rem, 2.9vw, 2.35rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.028em;
  margin-bottom: 14px;
}
.stat b::after {
  content: ""; display: block; width: 30px; height: 2px;
  background: var(--gold-500); border-radius: 2px; margin-top: 14px;
}
.stat span { font-size: .85rem; color: #B9CAE6; line-height: 1.55; }

/* toppers: the same restraint, gold only on the small label */
.topper {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--r);
  padding: 24px 24px 22px;
  gap: 6px;
}
.topper span {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500); font-weight: 700;
}
.topper i {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 600;
  color: #fff; letter-spacing: -.03em; line-height: 1.15;
}
.topper b { font-size: .9rem; color: #B9CAE6; font-weight: 400; }

/* band typography: a touch more air, a touch less shout */
.band h2 { max-width: 22ch; letter-spacing: -.026em; }
.band .sec-head { margin-bottom: 4px; }

/* the same restraint on the light-ground figure bar */
.fact b { color: var(--navy-700); font-weight: 600; letter-spacing: -.03em; }
.fact b::after {
  content: ""; display: block; width: 26px; height: 2px;
  background: var(--gold-500); border-radius: 2px; margin-top: 12px;
}
.fact span { margin-top: 12px; }
:root[data-theme="dark"] .fact b { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact b { color: #fff; } }

/* hero tags: quieter, so the headline carries the page */
.hero__tag { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); font-weight: 500; }
.hero__tag b { color: #fff; font-weight: 700; }

/* ==========================================================================
   Recognition strip + at-a-glance figures
   ========================================================================== */
.recog { border-block: 1px solid var(--line); background: var(--paper); }
.recog__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; align-items: stretch;
}
.recog__item {
  padding: 26px 22px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.recog__item:first-child { border-left: 0; }
.recog__item b {
  font-family: var(--display); font-size: .82rem; font-weight: 700;
  color: var(--navy-700); line-height: 1.35; letter-spacing: -.01em;
}
:root[data-theme="dark"] .recog__item b { color: var(--gold-400); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .recog__item b { color: var(--gold-400); } }
.recog__item span { font-size: .74rem; color: var(--muted); line-height: 1.5; }
.recog__item em {
  font-style: normal; font-family: var(--display); font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin-top: auto;
}
@media (max-width: 1080px) {
  .recog__grid { grid-template-columns: repeat(3, 1fr); }
  .recog__item:nth-child(3n+1) { border-left: 0; }
  .recog__item:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .recog__grid { grid-template-columns: repeat(2, 1fr); }
  .recog__item:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .recog__item:nth-child(odd) { border-left: 0; }
  .recog__item:nth-child(-n+2) { border-top: 0; }
}

.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .glance { grid-template-columns: repeat(2, 1fr); } }
.glance__item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 4px;
}
.glance__item b {
  font-family: var(--display); font-size: 1.9rem; font-weight: 600;
  color: var(--navy-700); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .glance__item b { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glance__item b { color: #fff; } }
.glance__item span { font-size: .84rem; color: var(--muted); line-height: 1.5; margin-top: 8px; }

/* recognition strip: give it room, and clear the overlapping fact bar */
.recog { margin-top: clamp(44px, 5vw, 72px); }
.recog__item { padding: 30px 24px 28px; gap: 10px; }
.recog__item b { font-size: .9rem; line-height: 1.4; }
.recog__item span { font-size: .78rem; }
.recog__item em { padding-top: 6px; }

/* a revealing block must never hide its own image if the image is still decoding */
.js-reveal .reveal img { opacity: 1; }

/* the call button widens to show the number once it has been copied */
.fab { width: auto; align-items: stretch; }
.fab a { width: 196px; justify-content: flex-start; transition: width .25s cubic-bezier(.2,.7,.3,1), transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, background-color .18s ease; }
.fab a.is-copied { width: 278px; background: var(--gold-500); color: #2A1C00; }
.fab a.is-copied svg { color: #2A1C00; }
@media (max-width: 760px) {
  .fab a, .fab a.is-copied { width: 52px; }
}

/* glance tiles are navigation, so they must look and behave like it */
a.glance__item { text-decoration: none; transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease; }
a.glance__item:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--gold-500); }
.glance__item em {
  font-style: normal; margin-top: auto; padding-top: 14px;
  font-family: var(--display); font-size: .78rem; font-weight: 600; color: var(--navy-600);
  display: inline-flex; align-items: center; gap: 7px;
}
a.glance__item:hover em { color: var(--gold-700); }
a.glance__item:hover .arrow { transform: translateX(4px); }
.glance__item { min-height: 178px; }

/* ==========================================================================
   Reduced motion: a marquee must not simply freeze mid-scroll — that clips
   text and reads as broken. With motion off it becomes a static, centred,
   fully readable row, and the duplicated half is dropped.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow: visible; padding-block: 20px; }
  .marquee__track {
    width: auto; flex-wrap: wrap; justify-content: center;
    animation: none !important; transform: none !important; will-change: auto;
    max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
    row-gap: 6px;
  }
  /* the track is intentionally duplicated for the scroll; hide the second copy */
  .marquee__item:nth-child(n + 13) { display: none; }
  .marquee__item { padding-inline: 14px; }
  .marquee__item:last-of-type::after { content: none; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact__tel {
  font-family: var(--display); font-size: 1.12rem; font-weight: 600;
  color: var(--navy-600); text-decoration: none; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
a.contact__tel:hover { color: var(--gold-700); }

/* long addresses must wrap inside the card, never run past its edge */
.contact__mail {
  max-width: 100%; overflow-wrap: anywhere; word-break: break-word;
  white-space: normal; display: inline-block; line-height: 1.5;
}
.contact__cell a { color: var(--navy-600); text-decoration: none; overflow-wrap: anywhere; }
.contact__cell a:hover { color: var(--gold-700); text-decoration: underline; }


/* the four contact cards should read as one set, not four ragged blocks */
.cards--4 > .card .card__body { gap: 10px; }

/* location card — the school's own verified Maps listing, not a guessed pin */
.map-card {
  display: flex; flex-direction: column; text-decoration: none;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--sh); min-height: 380px;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.map-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--gold-500); }
.map-card > img { width: 100%; flex: 1; min-height: 240px; object-fit: cover; }
.map-card__body { display: flex; align-items: center; gap: 16px; padding: 22px 24px; flex-wrap: wrap; }
.map-card__pin {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700);
}
:root[data-theme="dark"] .map-card__pin { background: rgba(236,177,1,.14); }
.map-card__body b { display: block; font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.map-card__body span { font-size: .85rem; color: var(--muted); }
.map-card__go {
  margin-left: auto; font-family: var(--display); font-size: .85rem; font-weight: 600;
  color: var(--navy-600); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.map-card:hover .map-card__go { color: var(--gold-700); }
.map-card:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Interior hero — one layout, one height, on every page
   ========================================================================== */
.phero .wrap {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0;
  min-height: clamp(300px, 30vw, 392px);
  justify-content: center;
  padding-block: clamp(44px, 5vw, 72px);
}
.phero .crumbs { margin: 0 0 18px; }
.phero__eyebrow { margin: 0 0 14px; }
.phero h1 { margin: 0; max-width: 20ch; }
.phero .wrap > p,
.phero__lede {
  color: #D0DEF3; max-width: 58ch; margin: 16px 0 0;
  font-size: clamp(1rem, 1.25vw, 1.08rem); line-height: 1.65;
}
.phero__actions { margin-top: 26px; }

/* a long title should never dwarf a short one */
@media (min-width: 900px) { .phero h1 { font-size: clamp(2.1rem, 3.4vw, 2.9rem); } }

/* ==========================================================================
   Wordmark — the school's name deserves its own face. Poppins at 700 reads
   blunt at this size; a Garamond sets the name with authority, and the motto
   stays in the house sans so the lockup still belongs to the group.
   ========================================================================== */
:root { --wordmark: "Cormorant Garamond", "Iowan Old Style", Georgia, serif; }

.brand { gap: 15px; align-items: center; }
.brand img { height: 56px; border-radius: 4px; }

.brand__name {
  font-family: var(--wordmark);
  font-size: 1.62rem;
  font-weight: 600;
  letter-spacing: .004em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.site-header .brand__name { color: #fff; }

.brand__sub {
  font-family: var(--display);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--gold-700);
}
.site-header .brand__sub { color: var(--gold-400); }

/* a hairline between the crest and the name, the way a plaque would set it */
.brand__text {
  padding-left: 15px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.drawer .brand__text, .footer .brand__text { border-left-color: var(--line); }

@media (max-width: 1180px) { .brand__name { font-size: 1.42rem; } .brand img { height: 50px; } }
@media (max-width: 480px)  { .brand__text { display: none; } .brand img { height: 46px; } }

/* header: a touch more room, so the lockup can breathe */
.site-header .wrap { min-height: 88px; gap: 22px; }
.nav { gap: 2px; }
.nav__top { font-size: .875rem; letter-spacing: .002em; }

/* ==========================================================================
   Header fit — at 1120–1330px the wordmark, seven menus and the CTA could not
   share the row, which pushed the page into a horizontal scroll.
   ========================================================================== */
/* breakpoint restored below; the header is made to FIT instead of collapsing */
@media (max-width: 1500px) {
  .brand__name { font-size: 1.48rem; }
  .brand img { height: 52px; }
  .nav__top { padding: 10px 11px; }
}
/* nothing may push the page sideways */
html, body { max-width: 100%; overflow-x: hidden; }

/* ==========================================================================
   Navigation menu — a right-hand sheet, not a full-screen page.
   Stretched across a wide viewport the old full-bleed panel left enormous
   dead space and pushed labels to opposite edges.
   ========================================================================== */
.drawer {
  position: fixed; inset: 0; z-index: 95;
  display: none; background: rgba(6, 12, 28, .55);
  backdrop-filter: blur(3px);
  overflow: visible; padding: 0;
}
.drawer.open { display: block; }

.drawer > .wrap {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  max-width: none; margin: 0;
  padding: 0 26px 32px;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(6, 12, 28, .35);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sheetIn .28s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes sheetIn { from { transform: translateX(26px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer > .wrap { animation: none; } }

.drawer__head {
  position: sticky; top: 0; z-index: 2; background: var(--paper);
  min-height: 72px; margin-inline: -26px; padding-inline: 26px;
  border-bottom: 1px solid var(--line);
}
.drawer .brand img { height: 40px; }
.drawer .brand__name { font-size: 1.16rem; }
.drawer .brand__sub { font-size: .52rem; letter-spacing: .24em; margin-top: 4px; }
.drawer .brand__text { padding-left: 12px; }

.drawer nav { padding-block: 6px; }
.drawer nav > a {
  padding: 13px 0; font-family: var(--display); font-size: 1.02rem; font-weight: 600;
  border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.drawer nav > a span {
  font-family: var(--body); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 500;
}
.drawer__group > summary { padding: 13px 0; font-size: 1.02rem; }
.drawer__group > summary::after { font-size: 1.2rem; }
.drawer__group .drawer__sub { padding: 2px 0 10px 2px; }
.drawer__group .drawer__sub a { font-size: .92rem; padding: 9px 0 9px 13px; }
.drawer .btn-row { margin-top: 20px; }
.drawer .btn-row .btn { width: 100%; }

/* ==========================================================================
   Honours board — replaces the scrolling ticker. Fixed grid, real hierarchy.
   ========================================================================== */
.honours { background: var(--navy-700); color: var(--on-dark-mute); padding-block: clamp(48px, 5.5vw, 78px); }
.honours h2 { color: #fff; max-width: 20ch; }

.honours__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); overflow: hidden;
}
@media (max-width: 1000px) { .honours__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .honours__grid { grid-template-columns: 1fr; } }

.honour {
  background: var(--navy-700); padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 7px;
  transition: background .18s ease;
}
.honour:hover { background: #0d3277; }
.honour__cat {
  font-family: var(--display); font-size: .64rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500);
}
.honour__who {
  font-family: var(--display); font-size: 1rem; font-weight: 600; color: #fff;
  line-height: 1.3; letter-spacing: -.01em;
}
.honour__who i {
  font-style: normal; font-weight: 500; font-size: .76rem; color: var(--gold-400);
  border: 1px solid rgba(236,177,1,.4); border-radius: var(--r-pill);
  padding: 1px 8px; margin-left: 6px; vertical-align: 2px;
}
.honour__what { font-size: .88rem; line-height: 1.6; color: #BACBE7; }

/* a link inside the assurance list stays legible on the dark ground */
.check a { color: var(--gold-400); text-decoration: none; border-bottom: 1px solid rgba(255,200,51,.45); }
.check a:hover { color: #fff; border-bottom-color: #fff; }

/* ==========================================================================
   Touch ergonomics — on a phone every link needs a finger-sized hit area,
   and nothing legible should sit under ~11.5px.
   ========================================================================== */
@media (max-width: 860px) {
  /* hit areas grow without changing how the text looks */
  .topbar__note, .topbar__call { padding-block: 11px; }
  .footer__links a { padding-block: 11px; margin-block: -6px; }
  .addr a { display: inline-block; padding-block: 8px; }
  .linky { padding-block: 10px; }
  .crumbs a { padding-block: 11px; }
  .contact__mail { padding-block: 10px; }
  .contact__tel { display: inline-block; padding-block: 8px; }
  .nav__menu a { padding-block: 13px; }
  .acc summary { padding-block: 20px; }

  /* legibility floor */
  .honour__cat { font-size: .74rem; letter-spacing: .13em; }
  .date-chip, .pill, .notice em { font-size: .76rem; }
  .eyebrow { font-size: .76rem; }
  .brand__sub { font-size: .62rem; }
  .rung__grades, .person span { font-size: .76rem; }
  .form-note, .small, .footer__bar { font-size: .82rem; }
}

/* the floating buttons step aside when the enquiry form is on screen —
   a "contact us" button is noise when the contact form is already visible */
.fab { transition: opacity .25s ease, transform .25s ease; }
.fab.is-hidden { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* remaining touch/legibility items found in the 375px audit */
.check a { display: inline-block; padding-block: 9px; }

@media (max-width: 860px) {
  .recog__item em { font-size: .72rem; letter-spacing: .1em; }   /* source labels */
  .topper span    { font-size: .72rem; letter-spacing: .12em; }  /* topper labels */
  .addr b         { font-size: .74rem; letter-spacing: .1em; }   /* address labels */
  .fab a { width: 48px; height: 48px; }
  .fab { right: 12px; bottom: 12px; }
}

/* inline links in running text (emails, phone numbers, cross-references)
   get a finger-sized hit area without disturbing the line box */
@media (max-width: 860px) {
  main p a, .prose a, .acc__body a, .card__body p a, .step p a { padding-block: 12px; }
}

/* ==========================================================================
   Filter pills — a horizontal row, never a stacked column
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  font-family: var(--display); font-size: .85rem; font-weight: 600;
  padding: 10px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.filter:hover { border-color: var(--navy-600); color: var(--navy-600); }
.filter i {
  font-style: normal; font-size: .74rem; font-weight: 700;
  color: var(--muted); background: var(--surface);
  border-radius: var(--r-pill); padding: 2px 8px;
}
.filter.is-on { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.filter.is-on i { background: rgba(255,255,255,.2); color: #fff; }

/* the honours grid on a light ground */
.honours__grid--light {
  background: var(--line); border-color: var(--line);
}
.honours__grid--light .honour { background: var(--paper); }
.honours__grid--light .honour:hover { background: var(--surface); }
.honours__grid--light .honour__cat { color: var(--gold-700); }
.honours__grid--light .honour__who { color: var(--ink); }
.honours__grid--light .honour__who i { color: var(--gold-700); border-color: rgba(201,130,0,.45); }
.honours__grid--light .honour__what { color: var(--muted); }
:root[data-theme="dark"] .honours__grid--light .honour__who { color: #fff; }

/* [hidden] must beat any display value a component sets, or JS filters
   silently do nothing (a flex/grid child stays visible when hidden). */
[hidden] { display: none !important; }
