/* ==========================================================================
   Kheema Bisht Inter College: Dusk
   Twilight indigo, brass lamplight, mist white. One moment: the ridge.
   ========================================================================== */

:root {
  --night: #1b1f40;
  --dusk: #262b52;
  --dusk-2: #2c3260;
  --slate: #3a4472;
  --slate-soft: #8e97be;
  --mist: #edeff5;
  --paper: #f8f9fc;
  --ink: #1e2346;
  --ink-soft: #4a5175;
  --brass: #d2a24c;
  --brass-light: #ebcb8a;
  --brass-deep: #7a5a1c;
  --bus: #ffc72c;
  --maroon: #7e2433;
  --wa: #0e7a6c;
  --wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.69 1.45c6.55 0 11.89-5.34 11.89-11.9A11.82 11.82 0 0 0 12.05 0Zm0 21.79a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 5.45 0 9.88 4.43 9.88 9.89 0 5.45-4.43 9.88-9.89 9.88Zm5.42-7.4c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.47-2.39-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.6.13-.14.3-.35.45-.52.15-.18.2-.3.3-.5.1-.2.05-.38-.03-.53-.07-.15-.67-1.61-.91-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.06 2.88 1.21 3.07c.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.7.63.71.22 1.36.19 1.87.12.57-.09 1.76-.72 2-1.42.25-.69.25-1.29.18-1.41-.08-.13-.28-.2-.57-.35Z'/%3E%3C/svg%3E");

  --on-dark: #eef0f6;
  --on-dark-2: rgba(238, 240, 246, 0.8);
  --on-dark-3: rgba(238, 240, 246, 0.66);
  --hair-dark: rgba(235, 203, 138, 0.22);
  --hair-light: rgba(30, 35, 70, 0.14);

  --f-display: "Bodoni Moda", "Bodoni Fallback", "Tiro Devanagari Hindi", "Iowan Old Style", Georgia, serif;
  --f-latin: "Bodoni Moda", "Bodoni Fallback", "Tiro Devanagari Hindi", Georgia, serif;
  --f-body: "Mukta", "Mukta Fallback", "Segoe UI", system-ui, sans-serif;

  /* type scale */
  --t-display: clamp(3.4rem, 1.6rem + 8vw, 8.5rem);
  --t-h1: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem);
  --t-h2: clamp(2rem, 3.6vw, 3.1rem);
  --t-h3: 1.45rem;
  --t-lede: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  --t-small: 0.92rem;

  /* spacing steps */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 104px;
  --section: clamp(72px, 10vw, 136px);
  --section-inner: clamp(56px, 7.5vw, 104px);

  /* ground tokens: every shared component reads these, dark grounds flip them */
  --fg: var(--ink);
  --fg-strong: var(--ink);
  --fg-soft: var(--ink-soft);
  --hair: var(--hair-light);
  --accent: var(--brass-deep);
  --spark: var(--brass);
  --surface: #fff;
  --surface-2: var(--mist);
  --field-bg: #fff;
  --field-line: rgba(30, 35, 70, 0.56);

  /* the Shivalik ridge from the hero photo, as a mask for section edges */
  --ridge-front: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,46 L50.7,43.8 L83.8,41.3 L138.9,42 L183,40.2 L200.7,41.7 L244.8,40.2 L282.3,41.3 L333,39.5 L381.5,37.3 L425.6,37.7 L458.7,38.8 L502.8,37.7 L546.9,36.3 L582.2,33.7 L613,35.9 L674.8,36.6 L745.4,31.2 L785.1,27.6 L829.2,24.7 L884.3,26.5 L910.8,24 L932.8,25.4 L994.5,31.6 L1038.7,30.5 L1076.1,31.2 L1131.3,30.1 L1186.4,28.3 L1230.5,29.4 L1281.2,28.3 L1351.8,30.1 L1440,31.6 L1440,60 Z'/%3E%3C/svg%3E");
  --ridge-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,14.3 L88.2,12.4 L158.8,9.9 L209.5,11.4 L253.6,9.9 L308.7,12.4 L363.9,13.8 L401.3,12.9 L445.5,14.3 L507.2,6 L529.2,4 L555.7,7.4 L610.8,5 L654.9,8.9 L694.6,13.8 L765.2,21.2 L827,20.2 L857.8,17.3 L893.1,20.7 L937.2,22.7 L981.3,24.2 L1014.4,22.7 L1058.5,22.2 L1107,25.1 L1157.7,27.6 L1195.2,26.1 L1239.3,28.1 L1257,26.1 L1301.1,28.6 L1356.2,27.6 L1389.3,31 L1440,34 L1440,60 Z'/%3E%3C/svg%3E");
  --ridge-h: clamp(26px, 4vw, 58px);

  --gutter: 16px;
  --wrap: 1240px;
  --wrap-narrow: 820px;
  --focus: var(--ink);
  --radius: 4px;
  --utility-h: 40px;
  /* height of the sticky header once the page has scrolled (it is 6px taller at the very top) */
  --header-h: 65px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (max-width: 720px) { :root { --utility-h: 36px; --header-h: 59px; } }

/* local serifs sized to Bodoni Moda, so the swap does not move the hero
   (Georgia on computers, Noto Serif on Android phones) */
@font-face {
  font-family: "Bodoni Fallback";
  src: local("Georgia"), local("Noto Serif"), local("NotoSerif-Regular");
  size-adjust: 105.8%;
  ascent-override: 112%;
  descent-override: 32%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Bodoni Fallback";
  font-style: italic;
  src: local("Georgia Italic"), local("Georgia-Italic"), local("Noto Serif Italic"), local("NotoSerif-Italic");
  size-adjust: 105.8%;
  ascent-override: 112%;
  descent-override: 32%;
  line-gap-override: 0%;
}
/* a local sans sized to Mukta, so the menu and the paragraphs keep their line breaks when
   Mukta arrives (Arial on computers and iPhones, Roboto on Android phones; no download) */
@font-face {
  font-family: "Mukta Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular");
  size-adjust: 93%;
  ascent-override: 122%;
  descent-override: 57%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Mukta Fallback";
  font-weight: 600 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 89.5%;
  ascent-override: 126%;
  descent-override: 59%;
  line-gap-override: 0%;
}
@media (min-width: 1180px) { :root { --gutter: 40px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
  scroll-padding-top: 84px;
  /* a control scrolled into view by the keyboard stops above the WhatsApp button and the
     back-to-top button, which float over the lower edge of the screen */
  scroll-padding-bottom: 144px;
}
@media (max-width: 720px) { html { scroll-padding-bottom: 132px; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg, picture { display: block; max-width: 100%; }
picture.kb-pic { display: contents; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  font-kerning: normal;
}
/* optical size capped: hairlines and hyphens stay visible on 1x screens */
h1, h2, .stat-value, .topper-score, .fact strong {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 40;
}
h3, h4, .merit-year-title, .topper-rank, summary { font-optical-sizing: none; font-variation-settings: "opsz" 22; }
.h1-lead { font-optical-sizing: auto; font-variation-settings: normal; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 520; letter-spacing: -0.006em; }
h3 { font-size: 1.45rem; font-weight: 600; }

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

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

.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }

.list-clean { list-style: none; margin: 0; padding: 0; }

.kicker,
.section-eyebrow {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--brass-deep);
  margin: 0 0 14px;
}

.lede { font-size: 1.1rem; color: var(--ink-soft); }

/* dark grounds flip the focus ring to bus-yellow */
.top-utility-bar, .site-header, .announcement-bar, .hero, .dusk-band, .why-panorama,
.fame, .helpdesk, .helpdesk-band, .voices, .site-footer, .sticky-admission, .whatsapp-float,
.back-to-top, .pwa-install-banner, .whatsapp-popup-header,
.on-dusk, .breadcrumbs, .page-title, .page-band, .section-dusk, .section-night, .cta-band,
.photo-band, .lightbox, .callout--dusk, .card--dusk {
  --focus: var(--bus);
  --fg: var(--on-dark);
  --fg-strong: var(--paper);
  --fg-soft: var(--on-dark-2);
  --hair: var(--hair-dark);
  --accent: var(--brass-light);
  --spark: var(--bus);
  --surface: rgba(238, 240, 246, 0.05);
  --surface-2: rgba(238, 240, 246, 0.09);
  --field-bg: rgba(238, 240, 246, 0.07);
  --field-line: rgba(238, 240, 246, 0.42);
  --plus: var(--bus);
}
/* a light panel placed on a dark ground gets the light tokens back */
.on-paper, .whatsapp-popup-body {
  --focus: var(--ink);
  --fg: var(--ink);
  --fg-strong: var(--ink);
  --fg-soft: var(--ink-soft);
  --hair: var(--hair-light);
  --accent: var(--brass-deep);
  --spark: var(--brass);
  --surface: #fff;
  --surface-2: var(--mist);
  --field-bg: #fff;
  --field-line: rgba(30, 35, 70, 0.56);
  --plus: var(--brass-deep);
}

/* ---------- Buttons ---------- */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* the ink on brass is a fixed night blue: a colour that followed the evening number would
   restart the button's colour transition at every step of the scroll */
.btn-primary { background: var(--brass); color: #1b1f40; border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-light); border-color: var(--brass-light); }

.btn-ghost { color: var(--on-dark); border-color: rgba(238, 240, 246, 0.5); background: transparent; }
.btn-ghost:hover { background: rgba(238, 240, 246, 0.1); border-color: var(--on-dark); }

.btn-tour {
  color: var(--on-dark);
  padding-left: 6px;
  padding-right: 10px;
  background: transparent;
}
.btn-tour .tour-play {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--brass-light);
  color: var(--brass-light);
  font-size: 0.72rem;
  padding-left: 5px;
  flex-shrink: 0;
  transition: background-color 0.2s, color 0.2s;
}
.btn-tour:hover .tour-play { background: var(--brass-light); color: var(--night); }
.btn-tour:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }

.btn-line {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1.5px solid var(--brass-deep);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}
.btn-line:hover { color: var(--brass-deep); }

/* ---------- Skip links, utility ---------- */
.skip-link, .skip-to-content {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--brass);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; outline: 3px solid var(--ink); }
.skip-to-content { display: none; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
body.no-scroll { overflow: hidden; }

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 1001;
  background: linear-gradient(90deg, var(--brass), var(--bus));
  pointer-events: none;
}

.breadcrumbs { background: var(--dusk); color: var(--on-dark-3); font-size: 0.92rem; line-height: 1.4; }
main > .breadcrumbs:has(+ .hero) { display: none; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; padding: 4px 0 0; }
.breadcrumbs:not(:has(+ .page-title, + .page-band, + .on-dusk, + .section-dusk, + .section-night)) ol { padding-bottom: 4px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); flex-shrink: 0; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--on-dark-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brass-light); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--brass-light); }
/* main.js adds the breadcrumb row to every inner page after the first paint: its place is
   kept from the start, so the page below never jumps */
.c-js body.inner main:not(:has(> .breadcrumbs))::before { content: ""; display: block; height: 48px; background: var(--dusk); }
/* main.js puts its own wording into these title-band lines when it runs. Until then they
   are kept out of sight (their space stays), so nobody reads one headline and then another.
   If the script never arrives they show after 2.4 s (on slow 4G the wording lands about 1.3 s
   after the first paint); with scripts off they are never hidden.
   .c-late (theme-c.js): the band was already on screen when the wording arrived, so it fades in. */
html.c-js:not(.c-live) :is([data-i18n="academicsPageTitle"], [data-i18n="academicsPageSubtitle"],
[data-i18n="facilitiesPageTitle"], [data-i18n="facilitiesPageSubtitle"], [data-i18n="resultsHeroEyebrow"],
[data-i18n="resultsPageTitle"], [data-i18n="resultsPageSubtitle"], [data-i18n="successTitle"],
[data-i18n="successPara"], [data-i18n="aboutPageSubtitle"], [data-i18n="galleryPageSubtitle"]) {
  visibility: hidden;
  animation: c-safe 0s linear 2.4s forwards;
}
@keyframes c-safe { to { visibility: visible; } }
@media (prefers-reduced-motion: no-preference) {
  html.c-late :is([data-i18n="academicsPageTitle"], [data-i18n="academicsPageSubtitle"],
  [data-i18n="facilitiesPageTitle"], [data-i18n="facilitiesPageSubtitle"], [data-i18n="resultsHeroEyebrow"],
  [data-i18n="resultsPageTitle"], [data-i18n="resultsPageSubtitle"], [data-i18n="successTitle"],
  [data-i18n="successPara"], [data-i18n="aboutPageSubtitle"], [data-i18n="galleryPageSubtitle"]) {
    animation: c-arrive 0.28s ease both;
  }
}
@keyframes c-arrive { from { opacity: 0.02; } }
/* the row sits right under the sticky header: the ring hugs the link so the header never covers it */
.breadcrumbs a:focus-visible { outline-offset: 0; }

/* ---------- Top utility bar ---------- */
body:not(:has(.top-utility-bar)) { border-top: calc(var(--utility-h) + 1px) solid var(--night); }
.top-utility-bar {
  background: var(--night);
  color: var(--on-dark-2);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(142, 151, 190, 0.16);
}
.top-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--utility-h);
}
.top-utility-contact { display: flex; align-items: center; gap: 4px 22px; min-width: 0; }
.top-utility-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.top-utility-item { padding-inline: 8px; margin-inline: -8px; }
.top-utility-item svg { color: var(--brass); flex-shrink: 0; }
.top-utility-item:hover { color: var(--on-dark); }
.top-utility-item:hover span { text-decoration: underline; text-underline-offset: 3px; }
.top-utility-social { display: flex; align-items: center; gap: 2px; }
.top-social-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 40px;
  color: var(--on-dark-3);
  transition: color 0.2s;
}
.top-social-link:hover { color: var(--brass-light); }
/* each network in its own colour: a small round badge, white glyph */
.top-social-link svg, .footer-social-links a svg {
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s var(--ease), filter 0.2s, box-shadow 0.2s;
}
.top-social-link[data-net="fb"] svg, .footer-social-links a[href*="facebook.com"] svg {
  padding: 0;
  color: #1877f2;
  background: radial-gradient(circle closest-side, #fff 84%, transparent 86%);
}
.top-social-link[data-net="ig"] svg, .footer-social-links a[href*="instagram.com"] svg {
  background: radial-gradient(circle at 28% 108%, #feda75 0 10%, #fa7e1e 30%, #d62976 54%, #962fbf 78%, #4f5bd5 100%);
}
.top-social-link[data-net="yt"] svg, .footer-social-links a[href*="youtube.com"] svg {
  /* the glyph itself is hidden in the red; the white play triangle is drawn here */
  color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.7 7.6v8.8l7.6-4.4z' fill='%23fff' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat, #ff0000;
}
.top-social-link[data-net="wa"] svg, .footer-social-links a[href*="wa.me"] svg { background: #25d366; }
.top-social-link:is(:hover, :focus-visible) svg, .footer-social-links a:is(:hover, :focus-visible) svg {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.08) saturate(1.08);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
/* the bar is only as tall as its links, so their focus ring is drawn inside them */
.top-utility-item:focus-visible, .top-social-link:focus-visible { outline-offset: -3px; color: var(--paper); }
/* touch layouts make these links taller than the bar, where a ring would be cut at the top and
   bottom: the focused link turns into a lamp-yellow block instead (the clear outline keeps a
   ring in forced-colours mode) */
@media (pointer: coarse), (max-width: 720px) {
  .top-utility-item:focus-visible, .top-social-link:focus-visible { outline-color: transparent; background: var(--bus); color: var(--night); border-radius: 0; }
  .top-utility-item:focus-visible svg { color: var(--night); }
}
@media (min-width: 960px) {
  .top-utility-social::before { content: "Follow us"; margin-right: 8px; font-size: 0.84rem; color: var(--on-dark-3); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dusk);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(235, 203, 138, 0.16);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(10, 12, 30, 0.7); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  transition: min-height 0.3s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-dark);
  min-width: 0;
  margin-right: auto;
}
.brand-pic { flex-shrink: 0; }
.brand { min-height: 48px; }
.brand-mark {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(235, 203, 138, 0.55), 0 0 0 4px rgba(235, 203, 138, 0.1);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: 0.005em;
}
.brand-text small {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--brass-light);
  margin-top: 3px;
  line-height: 1.2;
}

.site-nav { display: flex; align-items: center; gap: 2px; order: 2; }
@media (min-width: 1280px) and (max-width: 1399px) {
  .brand-text small { display: none; }
  .site-nav a { padding: 0 7px; }
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 6px;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover { color: var(--on-dark); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--brass-light); }
.site-nav a.active::after { transform: scaleX(1); background: var(--brass-light); }

.header-inner:not(:has(.lang-toggle))::after {
  content: "";
  order: 3;
  width: 98px;
  height: 44px;
  flex-shrink: 0;
}
.lang-toggle {
  order: 3;
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(235, 203, 138, 0.4);
  border-radius: 999px;
  flex-shrink: 0;
}
.lang-toggle button {
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lang-toggle button:hover { color: var(--on-dark); }
.lang-toggle button.active { background: var(--brass); color: #1b1f40; }

.menu-toggle {
  order: 4;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(238, 240, 246, 0.35);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle::before {
  content: "";
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 1.6px no-repeat;
}
.menu-toggle[aria-expanded="true"]::before {
  background:
    linear-gradient(45deg, transparent calc(50% - 0.9px), currentColor calc(50% - 0.9px), currentColor calc(50% + 0.9px), transparent calc(50% + 0.9px)),
    linear-gradient(-45deg, transparent calc(50% - 0.9px), currentColor calc(50% - 0.9px), currentColor calc(50% + 0.9px), transparent calc(50% + 0.9px));
  height: 18px;
}

@media (max-width: 1179px) {
  .menu-toggle { display: inline-flex; }
  /* the menu is a sheet that rises from the bottom edge, within thumb reach.
     (.site-header must carry no transform, filter or backdrop-filter at these
     widths, or the fixed sheet would hang from the header instead.) */
  .site-nav {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    padding: 34px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, var(--dusk) 0, var(--night) 120px);
    border-top: 1px solid var(--hair-dark);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -24px 60px -18px rgba(8, 10, 28, 0.85);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    max-height: 82vh;
    max-height: 82svh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.open { display: grid; }
  .site-nav.is-fit { touch-action: none; }
  /* grab bar: drag it (or the sheet) down to close */
  .kb-sheet-grab {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 34px;
    cursor: grab;
    touch-action: none;
  }
  .kb-sheet-grab::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 11px;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 2px;
    background: var(--brass);
  }
  /* the page behind the open menu is dimmed; a tap there closes it */
  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(18, 22, 51, 0.66);
    opacity: 0;
    visibility: hidden;
  }
  .site-header:has(.site-nav.open)::after { opacity: 1; visibility: visible; }
  .site-nav a {
    min-height: 52px;
    padding: 0 4px;
    font-family: var(--f-display);
    font-size: 1.2rem;
    color: var(--on-dark);
    border-bottom: 1px solid rgba(142, 151, 190, 0.16);
  }
  .site-nav a::after { display: none; }
  .site-nav a.active { color: var(--brass-light); }
  /* the current page: one hand-drawn brass stroke */
  .site-nav a.active::after {
    display: block;
    left: 3px;
    right: auto;
    bottom: 8px;
    width: min(92px, 78%);
    height: 7px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2,5.2 C18,2.4 34,6.6 56,4 S96,2.6 118,4.8' fill='none' stroke='%23ebcb8a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
    transform: none;
  }
  .kb-nav-lamp { display: none; }
}
@media (min-width: 600px) and (max-width: 1179px) {
  .site-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) { .kb-sheet-grab { display: none; } }
/* a finger cannot scroll the page behind the open sheet */
@media (max-width: 1179px) and (hover: none) { html:has(.site-nav.open) { overflow: hidden; } }
@media (max-width: 1179px) and (prefers-reduced-motion: no-preference) {
  .site-nav {
    translate: 0 100%;
    transition: translate 320ms var(--ease-sheet, cubic-bezier(0.32, 0.72, 0, 1)), display 320ms allow-discrete;
  }
  .site-nav.open { translate: 0 0; }
  @starting-style { .site-nav.open { translate: 0 100%; } }
  .site-header::after { transition: opacity 320ms ease, visibility 0s linear 320ms; }
  .site-header:has(.site-nav.open)::after { transition: opacity 320ms ease; }
  .site-nav.open a { animation: c-sheet-link 280ms ease-out calc(60ms + var(--i, 0) * 22ms) backwards; }
  .site-nav.open a.active::after { animation: c-stroke 400ms var(--ease) 300ms backwards; }
  /* opened with the keyboard: the sheet is simply there */
  .site-nav.kb-nomove, .site-nav.kb-nomove a, .site-nav.kb-nomove a::after { transition: none; animation: none; }
  .site-nav.is-drag { transition: none; }
}
@keyframes c-sheet-link { from { opacity: 0; translate: 0 8px; } }
@keyframes c-stroke { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* ---------- Announcement line ---------- */
.announcement-bar {
  position: relative;
  background: var(--night);
  color: var(--on-dark-2);
  font-size: 0.92rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(235, 203, 138, 0.14);
}
.announcement-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 34px;
  min-height: 40px;
  padding-inline: var(--gutter);
  white-space: nowrap;
}
.announcement-track span { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.announcement-track span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brass);
  transform: rotate(45deg);
  flex-shrink: 0;
}
/* main.js writes every notice twice (for a ticker); this line shows each one once.
   theme-c.js marks the repeats (.c-rep): they stay in the page, clipped out of sight */
.announcement-track { position: relative; }
.announcement-track span.c-rep {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1099px) {
  .announcement-track {
    justify-content: flex-start;
    gap: 30px;
    padding-inline: var(--gutter) 56px;
    overflow-x: auto;
    /* proximity: a notice longer than the screen can be read to its last word */
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .announcement-track::-webkit-scrollbar { display: none; }
  .announcement-track span { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .announcement-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(90deg, rgba(27, 31, 64, 0), var(--night));
    pointer-events: none;
  }
}

/* ==========================================================================
   Hero: the dusk title sequence. The light comes up, a line of brass light
   runs along the real Shivalik ridge in the photo and ends at the arched
   tower, whose window is lit. The name is set in the sky above the hills.
   ========================================================================== */
.hero {
  --sky: calc(188px + 5.9vw);
  position: relative;
  isolation: isolate;
  min-height: calc(var(--sky) + 39.5vw);
  background: var(--dusk);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-bg-image, .hero-particles { display: none; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--dusk-2);
  container-type: size;
}
/* photo and drawing share one frame with the shape of the photo (1456 x 1080), so the line stays on the hills at every width */
.hero-frame { position: absolute; inset: 0; }
.hero-photo, .hero-photo img, .hero-dim, .hero-grade, .hero-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo img {
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.1) contrast(1.05);
}
@supports (width: 1cqw) {
  .hero-frame {
    inset: auto;
    left: 50%;
    top: 50%;
    width: max(100cqw, 134.82cqh);
    aspect-ratio: 1456 / 1080;
    translate: -50% -50%;
  }
}
.hero-dim {
  background: #121633;
  opacity: 0;
  animation: lights-up 2.4s ease-out both;
}
/* dusk falls from the top of the sky; the courtyard and the buses keep their light */
.hero-grade {
  background:
    radial-gradient(ellipse 14% 12% at 76.9% 37.5%, rgba(255, 186, 73, 0.16), rgba(255, 186, 73, 0) 70%),
    /* navy in the sky only, for the title: it has faded out where the roofs begin (27% down) */
    linear-gradient(180deg, rgba(27, 31, 64, 0.86) 0%, rgba(27, 31, 64, 0.8) 12%, rgba(27, 31, 64, 0.7) 19%, rgba(27, 31, 64, 0.46) 24%, rgba(27, 31, 64, 0.18) 28%, rgba(27, 31, 64, 0) 32%);
}
.hero-trace { overflow: visible; }
.ridge-line, .ridge-glow {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 2.4s cubic-bezier(0.55, 0.05, 0.3, 1) 0.4s forwards;
}
.ridge-glow { stroke: rgba(255, 199, 44, 0.24); stroke-width: 6; }
.ridge-line { stroke: var(--brass-light); stroke-width: 1.6; }
.lamp-window { fill: #ffd257; opacity: 0; animation: lamp-on 1.5s ease-out 2.55s forwards; }
.lamp-halo {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-on 1.8s var(--ease) 2.55s forwards;
}
.c-wait .hero-dim, .c-wait .ridge-line, .c-wait .ridge-glow, .c-wait .lamp-window, .c-wait .lamp-halo { animation-play-state: paused; }

@keyframes lights-up { from { opacity: 0.62; } to { opacity: 0; } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes lamp-on { 0% { opacity: 0; } 22% { opacity: 0.6; } 34% { opacity: 0.25; } 100% { opacity: 0.92; } }
@keyframes halo-on { from { opacity: 0; transform: scale(0.45); } to { opacity: 1; transform: scale(1); } }

/* the real ridge, reused as the edge between sections */
.ridge-edge {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  /* never more than 40px: over a photo the ridge stays a thin band at the very foot,
     below the buses and the buildings */
  height: clamp(26px, 3.4vw, 40px);
  pointer-events: none;
}
.edge-hero .edge-back { fill: rgba(62, 71, 124, 0.72); }
.edge-hero .edge-front { fill: var(--dusk); }
.edge-paper .edge-back { fill: rgba(248, 249, 252, 0.5); }
.edge-paper .edge-front { fill: var(--paper); }

.hero-grid {
  position: relative;
  z-index: 3;
  padding-top: clamp(22px, 2.6vw, 40px);
}
.hero-copy { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 16px 4px 12px;
  border: 1px solid rgba(235, 203, 138, 0.5);
  border-radius: 999px;
  background: rgba(27, 31, 64, 0.66);
  color: var(--brass-light);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bus);
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.2), 0 0 14px 2px rgba(255, 199, 44, 0.75);
  flex-shrink: 0;
}
.hero-copy > .badge { position: absolute; top: 0; right: 0; }

.hero h1 { margin: 0; }
.h1-lead, .hero-tagline { text-shadow: 0 1px 14px rgba(15, 18, 42, 0.7); }
.h1-lead {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  color: var(--brass-light);
  margin-bottom: 0.35em;
}
.h1-name {
  display: block;
  white-space: nowrap;
  font-weight: 560;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--paper);
  text-shadow: 0 2px 30px rgba(15, 18, 42, 0.55);
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 40px;
  margin-top: clamp(14px, 1.5vw, 22px);
}
.hero-tagline {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.3;
  color: var(--on-dark);
}
.hero-actions { gap: 12px; }
.hero-actions .btn-ghost { background: rgba(27, 31, 64, 0.35); }

/* Wide screens: the photo runs edge to edge. Its height is the least that keeps the whole
   school in the frame: the title block stands in the photo's sky, the left wing's roof (28.7%
   down the photo under the tagline) starts right under it, and the frame ends just below the
   front bumpers of the buses (85.5% down) plus the thin ridge band at the foot.
   --txt is the height of the title block, --sky the distance from the top to the hills
   (32.4% down the photo), --foot how far down the photo the frame ends (lower it to crop
   the foreground further). The frame is 74.18vw tall (1456 x 1080). */
@media (min-width: 960px) {
  @supports (width: 1cqw) {
    .hero {
      --name: clamp(2.8rem, 5.6vw, 5.6rem);
      --txt: calc(138px + var(--name));
      --sky: calc(var(--txt) + 2.74vw);
      --foot: 0.895;
      min-height: calc(var(--sky) + (var(--foot) - 0.324) * 74.18vw);
    }
    .hero-frame { left: 0; top: min(0px, calc(var(--sky) - 24.04cqw)); width: 100cqw; translate: none; }
    .hero-grid { padding-top: 20px; }
    .h1-name { font-size: var(--name); }
    .h1-lead { margin-bottom: 0.25em; }
    .hero-row { margin-top: 16px; }
    .hero .edge-hero { height: 30px; }
  }
}
@media (min-width: 960px) and (max-width: 1179px) {
  .hero { --txt: calc(200px + var(--name)); }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* phone and tablet: the whole campus in the frame, the name in its sky, the rest on dusk below */
@media (max-width: 959px) {
  .hero { min-height: 0; }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(250px, 47svh, 100vw);
    max-height: 680px;
  }
  .hero-grid { position: static; padding-top: 18px; padding-bottom: 26px; }
  .hero-copy { position: static; }
  .hero-copy > .badge { position: static; }
  .hero h1 {
    position: absolute;
    z-index: 3;
    top: clamp(6px, 2.6vw, 24px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .h1-lead { font-size: clamp(1.05rem, 4.3vw, 1.35rem); margin-bottom: 0.25em; }
  /* two lines of the name end above the roof of the left wing */
  .h1-name { white-space: normal; font-size: clamp(2.1rem, 9.6vw, 3.3rem); line-height: 1; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 14px; }
  .hero-tagline { font-style: italic; font-size: 1.18rem; color: var(--brass-light); }
  .hero-actions .btn-ghost { background: transparent; }
}
/* short phones: the admissions badge moves onto the photo so the buttons stay on the first screen */
@media (max-width: 959px) and (max-height: 700px) {
  .hero { --mh: clamp(260px, 47svh, 100vw); }
  .hero-media { height: var(--mh); }
  .hero-copy > .badge { position: absolute; z-index: 3; left: var(--gutter); right: auto; top: calc(var(--mh) - 66px); }
  .hero h1 { top: 8px; }
  .h1-lead { font-size: 1.02rem; margin-bottom: 0.15em; }
  .h1-name { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-grid { padding-top: 12px; }
  .hero-row { gap: 14px; margin-top: 0; }
}

/* ---------- Dusk band: numbers + quick information ---------- */
.dusk-band {
  background: var(--dusk);
  color: var(--on-dark);
  padding: clamp(10px, 1.6vw, 22px) 0 clamp(48px, 6vw, 72px);
}
.dusk-intro {
  margin: 0 0 clamp(30px, 4vw, 52px);
  max-width: calc(60 * 0.575em);
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  line-height: 1.6;
  color: var(--on-dark);
}
.dusk-band .dusk-intro { margin-bottom: clamp(30px, 4vw, 52px); }
.dusk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 8px;
}
.stat-card { padding: 4px 20px 0; border-left: 1px solid var(--hair-dark); }
.stat-card:first-child { padding-left: 0; border-left: 0; }
.stat-value {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brass-light);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-value { font-variation-settings: "opsz" 18; }
.stat-value::after {
  content: "+";
  font-size: 0.42em;
  vertical-align: 0.95em;
  margin-left: 5px;
  font-family: var(--f-body);
  color: var(--bus);
  font-weight: 600;
}
.stat-value.no-plus::after { content: none; }
.stat-suffix { font-size: 0.5em; letter-spacing: 0; margin-left: 2px; color: var(--fg-soft); }
.stat-label { margin: 12px 0 0; color: var(--on-dark-2); font-size: 1rem; line-height: 1.35; }

.quick-info {
  padding-left: 44px;
  border-left: 1px solid var(--hair-dark);
}
.quick-info h2, .quick-info h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: 0; line-height: 1.12; margin-bottom: 10px; font-variation-settings: "opsz" 22; }
.quick-info li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(142, 151, 190, 0.16);
  color: var(--on-dark-2);
  font-size: 1rem;
  line-height: 1.5;
}
.quick-info li:last-child { border-bottom: 0; }
.info-icon { color: var(--brass); padding-top: 2px; }
.info-icon svg { width: 20px; height: 20px; }
.info-label { color: var(--on-dark); }
.quick-info a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -10px;
  color: var(--brass-light);
  text-decoration: underline;
  text-decoration-color: rgba(235, 203, 138, 0.45);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.quick-info a:hover { text-decoration-color: currentColor; }

@media (min-width: 1180px) {
  .dusk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; }
  .dusk-band .stats-grid { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .dusk-band .stat-card {
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    align-items: baseline;
    column-gap: 28px;
    padding: 20px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(142, 151, 190, 0.16);
  }
  .dusk-band .stat-card:first-child { padding-top: 6px; }
  .dusk-band .stat-card:last-child { border-bottom: 0; }
  .dusk-band .stat-value { font-size: 4.3rem; }
  .dusk-band .stat-label { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--on-dark); }
}

/* ---------- Nursery ---------- */
.nursery-showcase { background: var(--paper); }
.nursery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.nursery-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate);
  --focus: var(--bus);
}
/* these controls sit on a photo: a lamp-yellow ring on a night backing shows on any picture */
.nursery-dot:focus-visible { outline-color: var(--bus); outline-offset: -8px; background: rgba(27, 31, 64, 0.82); border-radius: 10px; }
.nursery-arrow:focus-visible { outline-color: var(--bus); outline-offset: 2px; box-shadow: 0 0 0 8px var(--night); }
.nursery-slides, .nursery-slide { position: absolute; inset: 0; }
/* only the shown slide (and the one leaving) is rendered, so later photos load when needed */
.nursery-slide { display: none; }
.nursery-slide.leaving { display: block; z-index: 0; }
.nursery-slide.active { display: block; z-index: 1; opacity: 1; transition: opacity 0.65s ease; }
@starting-style { .nursery-slide.active { opacity: 0; } }
.nursery-slide img { width: 100%; height: 100%; object-fit: cover; }
.nursery-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(248, 249, 252, 0.92);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.9rem;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.nursery-arrow:hover { background: #fff; }
.nursery-prev { left: 12px; }
.nursery-next { right: 12px; }
.nursery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: 2px;
  background: linear-gradient(0deg, rgba(27, 31, 64, 0.45), rgba(27, 31, 64, 0));
}
.nursery-dot {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nursery-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(248, 249, 252, 0.7);
  transition: width 0.3s var(--ease), background-color 0.3s;
}
.nursery-dot.active::before { width: 22px; background: var(--brass-light); }

.nursery-text h2 { color: var(--ink); }
.nursery-text .lede { margin-top: 20px; }
.nursery-safe {
  margin: 22px 0 28px;
  padding-left: 18px;
  border-left: 3px solid var(--maroon);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- Why choose us: opens on the golden-hour view ---------- */
.section.why { padding-top: 0; background: var(--paper); }
.why-panorama {
  --focus: var(--bus);
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(440px, 54vw, 720px);
  color: var(--on-dark);
  overflow: hidden;
  background: var(--slate);
}
.why-panorama > img , .why-panorama > :where(.kb-pic) > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
/* the sky, the hills and the buildings keep the golden light; dusk settles on the court */
.why-panorama::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(27, 31, 64, 0.94) 0%, rgba(27, 31, 64, 0.84) 22%, rgba(27, 31, 64, 0.5) 40%, rgba(27, 31, 64, 0.12) 54%, rgba(27, 31, 64, 0) 62%),
    linear-gradient(90deg, rgba(27, 31, 64, 0.35) 0%, rgba(27, 31, 64, 0) 45%);
}
.why-head {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: end;
  gap: 18px clamp(32px, 5vw, 80px);
  padding-bottom: calc(clamp(26px, 4vw, 58px) + clamp(28px, 3.4vw, 52px));
}
.why-head .kicker { color: var(--brass-light); margin-bottom: 8px; }
.why-head h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
  font-weight: 600;
  font-variation-settings: "opsz" 20;
  line-height: 1;
  white-space: nowrap;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(15, 18, 42, 0.5);
}
.why-sub {
  margin: 0;
  max-width: calc(40 * 0.575em);
  padding-bottom: 0.35em;
  font-size: 1.12rem;
  color: var(--on-dark);
  text-shadow: 0 1px 10px rgba(15, 18, 42, 0.7);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  margin-top: 72px;
}
.why-main, .why-side { display: grid; gap: clamp(40px, 4vw, 56px); min-width: 0; }
.why-main { gap: 36px; }
.feature { color: var(--ink-soft); min-width: 0; }
.feature-photo {
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate);
}
.feature-lead .feature-photo { aspect-ratio: 4 / 3; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-lead .feature-photo img { object-position: 50% 30%; }
.feature h3 {
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--hair-light);
  color: var(--ink);
}
.feature-lead h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); }
.feature p { font-size: 1.02rem; max-width: calc(58 * 0.575em); }
.feature strong { color: var(--ink); }

.why-actions { gap: 14px 28px; }

/* ==========================================================================
   Hall of fame: arched portraits, Class X beside Class XII
   ========================================================================== */
.fame {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(210, 162, 76, var(--sky-gold, 0.12)), rgba(210, 162, 76, 0) 70%),
    var(--night);
  color: var(--on-dark);
}
.fame-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "kick kick" "title title" ". text";
  gap: 0 64px;
}
.fame-head .kicker { grid-area: kick; color: var(--brass-light); }
.fame-head h2 { grid-area: title; font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: 1.04; color: var(--paper); max-width: 17ch; }
.fame-head > p:last-child { grid-area: text; margin-top: 28px; color: var(--on-dark-2); font-size: 1.06rem; max-width: calc(62 * 0.575em); }
.hl-mist { color: var(--paper); }
.hl-brass { color: var(--brass-light); }

.fame-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr);
  margin-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--hair-dark);
  border-bottom: 1px solid var(--hair-dark);
}
.fact { padding: 26px 24px 28px; border-left: 1px solid var(--hair-dark); }
.fact:first-child { border-left: 0; padding-left: 0; }
/* values sit on one bottom line, so every label below shares a baseline */
.fact strong {
  display: flex;
  align-items: flex-end;
  min-height: 2.16em;
  font-family: var(--f-latin);
  font-weight: 520;
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  line-height: 1.08;
  color: var(--brass-light);
  font-variant-numeric: lining-nums;
}
.fact-award { border-left: 2px solid var(--brass); padding-left: 28px; }
.fact-award strong { color: var(--paper); }
.fact span { display: block; margin-top: 10px; font-size: 0.96rem; line-height: 1.45; color: var(--on-dark-2); }

/* Class X beside Class XII: two portraits a row against four */
.fame-boards {
  --bgap: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr);
  column-gap: var(--bgap);
  row-gap: 56px;
  margin-top: clamp(64px, 8vw, 104px);
}
.merit-block { position: relative; min-width: 0; }
.merit-xii::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--bgap) / -2);
  width: 1px;
  background: var(--hair-dark);
}
.merit-section-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px 14px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair-dark);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  color: var(--paper);
}
.label-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(235, 203, 138, 0.5);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brass-light);
}

.merit-session { padding: 30px 0 14px; }
.merit-session + .merit-session { border-top: 1px solid rgba(142, 151, 190, 0.14); }

.merit-year-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--f-latin);
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--brass-light);
  margin-bottom: 22px;
}
.new-tag {
  font-family: var(--f-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 5px 8px 4px;
  border-radius: 3px;
  background: var(--bus);
  color: var(--night);
  box-shadow: 0 0 18px rgba(255, 199, 44, 0.45);
}

.merit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 176px));
  gap: 28px 18px;
}
.merit-x .merit-grid { grid-template-columns: repeat(2, minmax(0, 176px)); }
.topper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.topper-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--slate);
  outline: 1px solid rgba(235, 203, 138, 0.32);
  outline-offset: 5px;
  /* if a portrait fails on a weak connection, its name shows quietly inside the arch */
  color: var(--on-dark-3);
  font: italic 0.95rem/1.3 var(--f-display);
  text-align: center;
}
.topper-card.is-block-topper img { outline: 2px solid #b4495b; }
/* name, then state rank, then percentage */
.topper-name {
  order: 1;
  margin-top: 16px;
  font-family: var(--f-latin);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--paper);
}
.topper-rank {
  order: 2;
  margin-top: 3px;
  font-family: var(--f-latin);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--brass-light);
}
.topper-score {
  order: 3;
  margin-top: 2px;
  font-family: var(--f-latin);
  font-weight: 520;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--on-dark);
  font-variant-numeric: lining-nums;
  font-variation-settings: "opsz" 14;
}
.bt-tag {
  order: 4;
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.fame-cta { margin-top: 56px; text-align: center; }

/* ---------- Principal + helpdesk ---------- */
.principal { background: var(--mist); }
.principal-grid { display: grid; gap: clamp(56px, 7vw, 96px); }
.principal-letter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.principal-portrait { display: block; }
.principal-portrait img {
  width: 100%;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 54% 30%;
  /* a true half-circle top at every size: this frame is 4:5 on phones but shorter on wide screens
     (max-height), so the radius is set in px and the browser scales it to half the width */
  border-radius: 250px 250px 6px 6px;
  outline: 1px solid rgba(122, 90, 28, 0.35);
  outline-offset: 8px;
}
.letter-body { color: var(--ink-soft); font-size: 1.08rem; max-width: calc(60 * 0.575em); }
.letter-body h2 { color: var(--ink); margin-bottom: 22px; font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.letter-open {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--ink);
}
.signature {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hair-light);
  font-family: var(--f-latin);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
}
.signature strong {
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brass-deep);
}

.helpdesk-band {
  --focus: var(--bus);
  background:
    radial-gradient(40% 90% at 100% 50%, rgba(255, 199, 44, 0.16), rgba(255, 199, 44, 0) 70%),
    var(--dusk);
  color: var(--on-dark-2);
  border-bottom: 1px solid var(--hair-dark);
}
.helpdesk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 56px 0;
}
.helpdesk h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--paper); grid-column: 1; margin-bottom: 8px; }
.helpdesk p { grid-column: 1; max-width: calc(60 * 0.575em); margin: 0; }
.helpdesk .button-row { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Testimonials ---------- */
.voices { overflow: hidden; background: var(--dusk); color: var(--on-dark); isolation: isolate; }
.voices-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -2;
  width: 100%;
  height: 170%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 100%;
}
.voices::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* a navy shade only where the words sit; to the left and right the photo keeps its own colours */
  background: radial-gradient(ellipse 62% 80% at 50% 50%, rgba(11, 13, 24, 0.8) 0%, rgba(11, 13, 24, 0.55) 55%, rgba(11, 13, 24, 0.22) 100%);
}
/* tablets: the words are wider, so the shade is wider; the sides still show the photo */
@media (max-width: 1099px) {
  .voices::before { background: radial-gradient(ellipse 86% 84% at 50% 48%, rgba(11, 13, 24, 0.8) 0%, rgba(11, 13, 24, 0.55) 58%, rgba(11, 13, 24, 0.24) 100%); }
}
/* phones: the heading stands in the evening sky of the photo, which is darkened; the school
   building below it is left almost clear; a second, lighter shade sits under the quotation */
@media (max-width: 719px) {
  .voices::before {
    background:
      linear-gradient(180deg, rgba(11, 13, 24, 0.8) 0%, rgba(11, 13, 24, 0.7) 30%, rgba(11, 13, 24, 0.26) 46%, rgba(11, 13, 24, 0) 56%),
      radial-gradient(ellipse 130% 33% at 50% 72%, rgba(11, 13, 24, 0.56) 0%, rgba(11, 13, 24, 0.4) 60%, rgba(11, 13, 24, 0.14) 100%);
  }
}
.voices-head, .voices .card p { text-shadow: 0 0 3px rgba(15, 18, 40, 0.8), 0 1px 14px rgba(15, 18, 40, 0.7); }
.voices-grid { display: grid; text-align: center; gap: clamp(32px, 4vw, 48px); }
.voices-grid > * { min-width: 0; margin-inline: auto; }
.voices-head .kicker { color: var(--brass-light); font-size: 1rem; }
.voices-head h2 { color: var(--paper); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.voices-head p:last-child { margin: 16px auto 0; color: var(--on-dark-2); max-width: calc(46 * 0.575em); }

.testimonial-grid { display: grid; gap: 32px; width: 100%; max-width: 860px; }
.testimonial-carousel { position: relative; width: 100%; max-width: 860px; padding-bottom: 76px; }
.testimonial-carousel-track { overflow: hidden; clip-path: inset(0); }
.testimonial-carousel-viewport { display: flex; transition: transform 0.7s var(--ease); }
.testimonial-carousel-viewport > .card { flex: 0 0 100%; min-width: 0; padding-inline: clamp(8px, 4vw, 48px); }
.voices .card p:first-child {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.32;
  color: var(--paper);
  text-wrap: balance;
}
.voices .card p:first-child::before {
  content: "\201C";
  display: block;
  height: 0.62em;
  margin-bottom: 0.1em;
  font-style: normal;
  font-size: 5.4rem;
  line-height: 1;
  /* the display cut of Bodoni draws this mark as two dots on hairlines: the text cut keeps its tails */
  font-variation-settings: "opsz" 6;
  font-weight: 600;
  color: var(--brass);
  opacity: 0.55;
  text-shadow: none;
}
.voices .card p:last-child { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.voices .card p:last-child::before,
.voices .card p:last-child::after { content: ""; width: 32px; height: 1px; background: var(--brass); flex-shrink: 0; }
.voices .card strong { color: var(--brass-light); font-size: 1rem; }

.testimonial-carousel-btn {
  position: absolute;
  bottom: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(235, 203, 138, 0.5);
  background: transparent;
  color: var(--brass-light);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.testimonial-carousel-btn:hover { background: var(--brass-light); color: var(--night); }
.testimonial-carousel-btn.prev { left: calc(50% - 128px); }
.testimonial-carousel-btn.next { left: calc(50% + 80px); }
.testimonial-carousel-dots { position: absolute; left: 50%; bottom: 2px; translate: -50% 0; display: flex; }
.testimonial-carousel-dot {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.testimonial-carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(238, 240, 246, 0.4);
  transition: width 0.3s var(--ease), background-color 0.3s;
}
.testimonial-carousel-dot.is-active::before { width: 22px; background: var(--brass-light); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--night);
  color: var(--on-dark-2);
  padding-top: clamp(56px, 7vw, 88px);
  font-size: 0.98rem;
}
.footer-ridge {
  position: absolute;
  left: 0;
  top: 1px;
  width: 100%;
  height: clamp(22px, 3vw, 44px);
  transform: translateY(-100%);
  fill: var(--night);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 44px;
  padding-bottom: 56px;
}
.site-footer h3 { font-size: 1.15rem; font-weight: 600; color: var(--paper); margin-bottom: 16px; }
.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px rgba(235, 203, 138, 0.5);
}
.footer-brand h3 { font-size: 1.55rem; font-weight: 500; margin-bottom: 6px; }
.footer-brand .js-tagline { font-family: var(--f-display); font-style: italic; color: var(--brass-light); font-size: 1.1rem; }
.footer-brand p:last-child { margin-top: 14px; max-width: calc(40 * 0.575em); }
.footer-contact p { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--brass); margin-top: 4px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; transition: color 0.2s; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--brass-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; }
.footer-contact span { display: inline-block; padding: 1px 0; }
.footer-links p { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 34px; min-width: 44px; }
.footer-social-links { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(235, 203, 138, 0.38);
  color: var(--on-dark);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social-links a { border: 0; }
.footer-social-links a svg { width: 40px; height: 40px; padding: 9.5px; }
.footer-social-links a:hover { text-decoration: none; }
.footer-copyright {
  border-top: 1px solid rgba(142, 151, 190, 0.18);
  padding: 22px 0 28px;
  font-size: 0.9rem;
  color: var(--on-dark-3);
}

/* ==========================================================================
   Floating widgets (injected)
   ========================================================================== */
.sticky-admission {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 12px 12px 18px;
  border: 1px solid rgba(235, 203, 138, 0.38);
  border-radius: var(--radius);
  background: rgba(27, 31, 64, 0.96);
  color: var(--on-dark-2);
  box-shadow: 0 24px 40px -18px rgba(8, 10, 28, 0.7);
  transition: transform 0.45s var(--ease), opacity 0.3s, visibility 0s;
}
.sticky-admission p { margin: 0; font-size: 0.88rem; line-height: 1.35; }
.sticky-admission strong { font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; color: var(--paper); }
.sticky-admission .btn { min-height: 44px; padding: 0 18px; }
.c-js:not(.c-dock) .sticky-admission,
.sticky-admission.in-footer,
body:has(.pwa-install-banner.is-visible) .sticky-admission {
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.45s var(--ease), opacity 0.3s, visibility 0s linear 0.45s;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  min-width: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 30px -12px rgba(8, 40, 36, 0.7);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.whatsapp-float::before {
  content: "";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--wa-icon) center / contain no-repeat;
  mask: var(--wa-icon) center / contain no-repeat;
}
.whatsapp-float:hover { background: #0b6a5d; transform: translateY(-2px); }
.whatsapp-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-float:has(svg)::before { display: none; }
.whatsapp-float-label { white-space: nowrap; }
.whatsapp-float-pulse { display: none; }

.whatsapp-popup {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  max-height: calc(100svh - 120px);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(8, 10, 28, 0.55);
  border: 1px solid var(--hair-light);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  visibility: hidden;
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.whatsapp-popup.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.22s ease, transform 0.3s var(--ease); }
.whatsapp-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 8px 12px 16px;
  background: var(--dusk);
  color: var(--on-dark);
  border-bottom: 2px solid var(--brass);
}
.whatsapp-popup-header-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  flex-shrink: 0;
}
.whatsapp-popup-header-avatar svg { width: 22px; height: 22px; }
.whatsapp-popup-header-text { flex: 1; min-width: 0; }
.whatsapp-popup-header-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--paper); }
.whatsapp-popup-header-sub { margin: 2px 0 0; font-size: 0.82rem; color: var(--on-dark-2); }
.whatsapp-popup-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.whatsapp-popup-close:hover { background: rgba(238, 240, 246, 0.12); }
.whatsapp-popup-body { padding: 14px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
.whatsapp-popup-greeting {
  padding: 12px 14px;
  border-radius: 2px 10px 10px 10px;
  background: var(--mist);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}
.whatsapp-popup-greeting strong { font-family: var(--f-display); font-size: 1.05rem; }
.whatsapp-popup-actions { display: grid; gap: 6px; margin-top: 12px; }
.whatsapp-quick-reply {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--hair-light);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.whatsapp-quick-reply:hover { border-color: var(--wa); background: #f1f8f6; }

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 90px;
  z-index: 44;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(235, 203, 138, 0.45);
  background: rgba(27, 31, 64, 0.92);
  color: var(--brass-light);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s, background-color 0.2s;
}
/* over the hero photo the ring gets the same night edge */
.hero-actions .btn:focus-visible { box-shadow: 0 0 0 7px var(--night); }
/* the floating buttons pass over light and dark parts of the page: yellow ring, night edge */
.back-to-top:focus-visible, :root .whatsapp-float.whatsapp-float:focus-visible { outline: 3px solid var(--bus); outline-offset: 3px; box-shadow: 0 0 0 9px var(--night); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease), background-color 0.2s; }
.back-to-top:hover { background: var(--brass); color: var(--night); }
#back-to-top:not(.back-to-top) { display: none; }
.rp-overlay:not(.rp-open) { display: none; }

.pwa-install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  margin-inline: auto;
  padding: 12px;
  border: 1px solid rgba(235, 203, 138, 0.38);
  border-radius: 8px;
  background: var(--night);
  color: var(--on-dark-2);
  box-shadow: 0 24px 50px -16px rgba(8, 10, 28, 0.8);
  transform: translateY(calc(100% + 32px));
  transition: transform 0.45s var(--ease);
}
.pwa-install-banner.is-visible { transform: none; }
.pwa-install-banner img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; }
.pwa-install-banner-text { flex: 1; min-width: 0; }
.pwa-install-banner-title { margin: 0; font-family: var(--f-display); font-weight: 600; color: var(--paper); line-height: 1.25; }
.pwa-install-banner-sub { margin: 2px 0 0; font-size: 0.85rem; line-height: 1.35; }
.pwa-install-banner-actions { display: flex; align-items: center; gap: 4px; }
.pwa-install-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brass);
  color: var(--night);
  font-weight: 600;
  cursor: pointer;
}
.pwa-install-dismiss {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark-2);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hindi: Tiro Devanagari carries the headings, with its own digits and dashes
   ========================================================================== */
:lang(hi) {
  --f-display: "Tiro Devanagari Hindi", "Bodoni Moda", Georgia, serif;
  --f-latin: "Bodoni Moda", "Bodoni Fallback", "Tiro Devanagari Hindi", Georgia, serif;
}
:lang(hi) body { line-height: 1.75; }
:lang(hi) .is-latin { --f-display: var(--f-latin); }
:lang(hi) h2:not(.is-latin), :lang(hi) h3:not(.is-latin), :lang(hi) h4:not(.is-latin) { line-height: 1.3; letter-spacing: 0; font-variation-settings: normal; }
:lang(hi) h2:not(.is-latin) { font-weight: 400; font-size: clamp(2.1rem, 3.8vw, 3.3rem); }
:lang(hi) h3:not(.is-latin), :lang(hi) h4:not(.is-latin), :lang(hi) .sticky-admission strong, :lang(hi) .merit-section-label:not(.is-latin) { font-weight: 400; }
:lang(hi) .feature h3 { font-size: 1.54rem; }
:lang(hi) .feature-lead h3 { font-size: clamp(1.7rem, 2.3vw, 2.1rem); }
:lang(hi) .js-school-name, :lang(hi) .js-tagline, :lang(hi) .h1-lead, :lang(hi) .stat-value { font-family: var(--f-latin); }
:lang(hi) .h1-name { font-family: var(--f-latin); line-height: 1.04; }
:lang(hi) .kicker:not(.is-latin), :lang(hi) .section-eyebrow:not(.is-latin) { font-style: normal; font-size: 1.14rem; line-height: 1.5; }
:lang(hi) .hero-tagline, :lang(hi) .letter-open { line-height: 1.45; }
:lang(hi) .letter-open { font-style: normal; }
:lang(hi) .why-head h2 { line-height: 1.2; font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
:lang(hi) .fame-head h2 { line-height: 1.16; font-size: clamp(2.6rem, 5.6vw, 5rem); }
:lang(hi) .site-nav a { font-size: 1.02rem; }
:lang(hi) .voices .card p:first-child { font-style: normal; line-height: 1.5; font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
:lang(hi) .merit-section-label { line-height: 1.3; }
:lang(hi) .stat-label, :lang(hi) .badge { line-height: 1.45; }
:lang(hi) .stat-label { font-style: normal; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (pointer: coarse) {
  .top-social-link { width: 44px; height: 44px; }
  .top-social-link svg { width: 26px; height: 26px; padding: 5.5px; }
  .top-utility-item { min-height: 44px; }
  .lang-toggle button { min-height: 44px; min-width: 44px; }
  .footer-links a { min-height: 44px; }
}

@media (min-width: 1180px) and (max-width: 1279px) {
  .site-nav a { padding: 0 6px; font-size: 0.94rem; }
  .site-nav a::after { left: 6px; right: 6px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.08rem; max-width: 9.5em; }
  .header-inner { gap: 10px; }
}

@media (max-width: 1179px) {
  .dusk-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .quick-info { padding-left: 0; border-left: 0; padding-top: 32px; border-top: 1px solid var(--hair-dark); }
  .fame-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-award { grid-column: 1 / -1; order: -1; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--hair-dark); }
  .fact-award strong { min-height: 0; }
  .fact:nth-child(1) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand brand" "contact links" "social links"; }
  .footer-brand { grid-area: brand; }
  .footer-contact { grid-area: contact; }
  .footer-links { grid-area: links; }
  .footer-social { grid-area: social; }
}

/* Hall of fame below 1100px: the boards stack, each year is one row of arches */
@media (max-width: 1099px) {
  .fame-boards { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .merit-xii::before { display: none; }
  .merit-grid, .merit-x .merit-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 16px; }
}
@media (max-width: 899px) {
  .merit-grid, .merit-x .merit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
}

@media (max-width: 959px) {
  .nursery-layout { grid-template-columns: minmax(0, 1fr); }
  .why-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .why-grid { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .why-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .fame-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kick" "title" "text"; }
  .principal-letter { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .helpdesk { grid-template-columns: minmax(0, 1fr); padding: 48px 0; }
  .helpdesk .button-row { grid-column: 1; grid-row: auto; margin-top: 20px; }
}

/* tablets and small laptops: the WhatsApp button stays a round icon */
@media (min-width: 721px) and (max-width: 1179px) {
  .whatsapp-float { width: 56px; height: 56px; padding: 0; }
  .whatsapp-float-label, .whatsapp-float > span:not(.whatsapp-float-pulse) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 720px) {
  body { font-size: 1.04rem; }
  .top-utility-bar { font-size: 0.85rem; }
  .top-utility-item, .top-social-link { margin-block: -4px; }
  .top-utility-item-email span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top-utility-item-email { min-width: 44px; justify-content: center; }
  .top-utility-contact { gap: 0 10px; }
  .top-utility-social { gap: 0; margin-right: -12px; }
  .lang-toggle { padding: 2px; }
  .header-inner:not(:has(.lang-toggle))::after { width: 94px; }

  .header-inner { min-height: 60px; gap: 10px; }
  .site-header.is-scrolled .header-inner { min-height: 58px; }
  .brand { gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.04rem; }
  .brand-text small { display: none; }

  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; width: 100%; }
  .hero-actions .btn { padding-inline: 12px; }
  .hero-actions .btn-tour { grid-column: 1 / -1; justify-content: flex-start; padding-left: 0; }

  .dusk-band { padding-top: 4px; }
  .dusk-intro { font-size: 1.04rem; }
  .stat-card { padding: 0 10px; }
  .stat-value { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  .stat-label { font-size: 0.92rem; }

  .why-panorama::before {
    background:
      linear-gradient(0deg, rgba(27, 31, 64, 0.95) 0%, rgba(27, 31, 64, 0.9) 30%, rgba(27, 31, 64, 0.74) 46%, rgba(27, 31, 64, 0.34) 62%, rgba(27, 31, 64, 0) 74%);
  }
  .why-head h2 { font-size: clamp(2.4rem, 11vw, 3.1rem); }
  .why-sub { font-size: 1.06rem; }
  .why-grid { gap: 48px; }
  .why-main { display: contents; }
  .feature-lead { order: 1; }
  .why-side { order: 2; grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .why-actions { order: 3; flex-direction: column; align-items: stretch; margin-top: -8px; }
  .why-actions .btn-line { align-self: center; }

  .fame-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fact { padding: 20px 14px 22px; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--hair-dark); }
  .fact:nth-child(3) strong { min-height: 0; }
  .fact-award { grid-column: 1 / -1; padding: 22px 0; border-left: 0; }
  .fact-award strong { font-size: clamp(1.5rem, 6vw, 1.9rem); }

  /* three arches a row: every topper is on the page, no hidden swipe */
  .merit-session { padding: 24px 0 10px; }
  .merit-year-title { font-size: 1.25rem; margin-bottom: 16px; }
  .merit-grid, .merit-x .merit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
  .topper-card img { outline-offset: 3px; }
  .topper-name { margin-top: 12px; font-size: 0.94rem; overflow-wrap: anywhere; }
  .topper-rank { font-size: 0.98rem; }
  .topper-score { font-size: 1.3rem; }
  .bt-tag { font-size: 0.72rem; padding: 2px 7px; margin-top: 8px; }
  .merit-section-label { padding-bottom: 12px; }

  .principal-letter { grid-template-columns: minmax(0, 1fr); }
  .principal-portrait { max-width: 300px; }

  .voices-bg { height: 100%; object-position: 50% 70%; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 36px; }
  .footer-brand, .footer-contact, .footer-links, .footer-social { grid-area: auto; }
  .footer-links { columns: 2; column-gap: 24px; }
  .footer-links h3 { column-span: all; }
  .footer-links a { min-height: 44px; }

  /* bottom dock: appears once the hero has scrolled away; WhatsApp sits in its row */
  body:has(.sticky-admission) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sticky-admission {
    left: 0;
    right: 0;
    bottom: 0;
    gap: 12px;
    justify-content: space-between;
    min-height: 64px;
    border-radius: 0;
    border-width: 1px 0 0;
    padding: 8px 80px calc(8px + env(safe-area-inset-bottom)) 16px;
    background: rgba(27, 31, 64, 0.98);
    box-shadow: 0 -12px 30px -18px rgba(8, 10, 28, 0.8);
  }
  .sticky-admission p { font-size: 0.84rem; min-width: 0; }
  .sticky-admission strong { font-size: 1rem; }
  .sticky-admission .btn { padding: 0 14px; flex-shrink: 0; }
  .whatsapp-float {
    right: 14px;
    bottom: calc(6px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    padding: 0;
    box-shadow: none;
    transition: bottom 0.35s var(--ease), box-shadow 0.35s, background-color 0.2s;
  }
  /* on its own (dock not shown) the button lifts off the edge */
  .c-js:not(.c-dock) .whatsapp-float,
  .sticky-admission.in-footer ~ .whatsapp-float { bottom: calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 14px 28px -10px rgba(8, 40, 36, 0.75); }
  .whatsapp-float:hover { transform: none; }
  .whatsapp-float-label, .whatsapp-float > span:not(.whatsapp-float-pulse) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .whatsapp-popup { right: 10px; left: 10px; width: auto; max-width: none; bottom: calc(80px + env(safe-area-inset-bottom)); max-height: min(calc(100svh - 150px), 640px); }
  .back-to-top { right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .pwa-install-banner { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 459px) {
  .menu-toggle { font-size: 0; padding: 0; justify-content: center; gap: 0; width: 44px; }
}
@media (max-width: 420px) {
  .pwa-install-banner { flex-wrap: wrap; row-gap: 6px; }
  .pwa-install-banner-text { flex: 1 1 calc(100% - 60px); }
  .pwa-install-banner-actions { flex: 1 0 100%; justify-content: flex-end; }
}
@media (max-width: 379px) {
  .lang-toggle button { padding: 0 6px; }
  .top-utility-contact { gap: 0 4px; }
  .brand-text strong { font-size: 0.98rem; }
  .stat-card { padding: 0 6px; }
  .sticky-admission { padding-right: 74px; gap: 8px; }
  .sticky-admission .btn { padding: 0 10px; }
}

/* ==========================================================================
   Reduced motion: show the final frame (hills traced, window lit)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-dim { animation: none !important; opacity: 0; }
  .ridge-line, .ridge-glow { animation: none !important; stroke-dashoffset: 0; }
  .lamp-window { animation: none !important; opacity: 0.92; }
  .lamp-halo { animation: none !important; opacity: 1; }
}


/* ==========================================================================
   SHARED SYSTEM FOR INNER PAGES
   Everything below reads the ground tokens (--fg, --fg-soft, --hair,
   --accent, --surface ...), so each piece works on paper, on mist and on
   the dusk grounds without a second set of rules.
   ========================================================================== */

/* ---------- Layout ---------- */
.container.narrow, .narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.measure { max-width: calc(68 * 0.575em); }
.center { text-align: center; margin-inline: auto; }
.flow > * + * { margin-top: 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.inner .section { padding-block: var(--section-inner); }
/* two plain paper sections in a row share one gap, not two */
body.inner main > .section:not(.section-alt, .section-dusk, .section-night, .on-dusk) + .section:not(.section-alt, .section-dusk, .section-night, .on-dusk) { padding-top: 0; }
body.inner main > .section-alt + .section-alt { padding-top: 0; }
.section-tight { padding-block: clamp(40px, 5vw, 64px) !important; }

.section-alt { background: var(--mist); }
.section-dusk, .section-night, .on-dusk { color: var(--fg); }
.section-dusk { background: var(--dusk); }
.section-night {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(210, 162, 76, var(--sky-gold, 0.12)), rgba(210, 162, 76, 0) 70%),
    var(--night);
}
.on-paper { background: var(--paper); color: var(--ink); }

/* the ridge as the lower edge of a dark block: add .ridge-out (next ground paper) */
.ridge-out { position: relative; --next: var(--paper); padding-bottom: calc(var(--section-inner) + var(--ridge-h)) !important; }
.ridge-out.to-mist { --next: var(--mist); }
.ridge-out::before, .ridge-out::after,
.page-title::before, .page-title::after,
.page-band::before, .page-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: var(--ridge-h);
  background: var(--next, var(--paper));
  pointer-events: none;
  -webkit-mask: var(--ridge-front) center / 100% 100% no-repeat;
  mask: var(--ridge-front) center / 100% 100% no-repeat;
}
.ridge-out::before, .page-title::before, .page-band::before {
  opacity: 0.42;
  -webkit-mask-image: var(--ridge-back);
  mask-image: var(--ridge-back);
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .split > * { min-width: 0; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--flip > :first-child { order: 2; }
.split--top { align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Inner-page title band ---------- */
.page-title, .page-band {
  --next: var(--paper);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 4.4vw, 64px) 0 calc(clamp(44px, 6vw, 88px) + var(--ridge-h));
  background:
    radial-gradient(ellipse 44% 96% at 90% 112%, rgba(255, 199, 44, 0.15), rgba(255, 199, 44, 0) 70%),
    radial-gradient(ellipse 60% 80% at 8% -20%, rgba(142, 151, 190, 0.22), rgba(142, 151, 190, 0) 70%),
    linear-gradient(180deg, var(--dusk) 0%, var(--night) 100%);
  color: var(--on-dark-2);
}
.page-title.to-mist, .page-band.to-mist { --next: var(--mist); }
.page-title.to-dusk, .page-band.to-dusk { --next: var(--dusk); }
.page-title h1, .page-band h1 {
  font-size: var(--t-h1);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.008em;
  color: var(--paper);
  max-width: 18ch;
}
.page-title h1::before, .page-band h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(90deg, var(--brass), var(--bus));
}
.page-title .kicker, .page-band .kicker { color: var(--brass-light); margin-bottom: 10px; }
.page-title .kicker + h1::before, .page-band .kicker + h1::before { display: none; }
.page-title h1 + p, .page-band h1 + p, .page-band-lede {
  margin: clamp(16px, 2vw, 24px) 0 0;
  max-width: calc(56 * 0.575em);
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--on-dark-2);
}
.page-title .button-row, .page-band .button-row { margin-top: 28px; }
/* centred band (404, success) */
.page-band--center { text-align: center; }
.page-band--center h1, .page-band--center h1 + p, .page-band--center .page-band-lede { margin-inline: auto; }
.page-band--center h1::before { margin-inline: auto; }
.page-band--center .button-row { justify-content: center; }
/* photo band: <div class="page-band-media"><img ...></div> as the first child */
.page-band-media { position: absolute; inset: 0; z-index: -1; }
.page-band-media img { width: 100%; height: 100%; object-fit: cover; }
.page-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 19, 42, 0.9) 0%, rgba(16, 19, 42, 0.76) 38%, rgba(16, 19, 42, 0.26) 72%, rgba(16, 19, 42, 0.1) 100%),
    linear-gradient(0deg, rgba(16, 19, 42, 0.66) 0%, rgba(16, 19, 42, 0) 44%);
}
.has-photo { display: flex; align-items: flex-end; min-height: clamp(340px, 36vw, 540px); }
.has-photo > .container { position: relative; }

/* ---------- Section heads, headings, prose ---------- */
.sec-head, .section-header-center { margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2, .section-header-center h2 { color: var(--fg-strong); }
.sec-head > p:not(.kicker, .section-eyebrow), .section-header-center > p:not(.kicker, .section-eyebrow) {
  margin: 16px 0 0;
  max-width: calc(62 * 0.575em);
  font-size: 1.1rem;
  color: var(--fg-soft);
}
.section-header-center, .sec-head--center { text-align: center; }
.section-header-center > p:not(.kicker, .section-eyebrow), .sec-head--center > p:not(.kicker, .section-eyebrow) { margin-inline: auto; }
@media (min-width: 960px) {
  .sec-head--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 64px; align-items: end; }
  .sec-head--split .kicker, .sec-head--split .section-eyebrow { grid-column: 1 / -1; }
  .sec-head--split > p:not(.kicker, .section-eyebrow) { margin-top: 0; }
}
.kicker, .section-eyebrow { color: var(--accent); }
.lede { color: var(--fg-soft); }
body.inner .lede { font-size: var(--t-lede); line-height: 1.55; }
.h-display { font-size: var(--t-display); line-height: 0.98; }

.prose { color: var(--fg-soft); max-width: calc(70 * 0.575em); }
.prose h2, .prose h3, .prose h4 { color: var(--fg-strong); margin: 1.6em 0 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose a, .text-link, .faq-body a, .callout a, .form-status a, .notice-list a, td a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--spark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.prose a:hover, .text-link:hover, .faq-body a:hover, .callout a:hover, .notice-list a:hover, td a:hover { color: var(--accent); }

/* a list with brass diamonds */
.list-brass { list-style: none; margin: 0; padding: 0; }
.list-brass li { position: relative; padding: 6px 0 6px 24px; color: var(--fg-soft); }
.list-brass li::before { content: ""; position: absolute; left: 3px; top: 0.92em; width: 6px; height: 6px; background: var(--spark); transform: rotate(45deg); }

/* key facts: label left, value right */
.dl { margin: 0; border-top: 1px solid var(--hair); }
.dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.dl dt { color: var(--fg-soft); }
.dl dd { margin: 0; color: var(--fg-strong); font-weight: 600; }

/* quote */
.quote { margin: 0; padding: 0; color: var(--fg-strong); }
.quote p, p.quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  text-wrap: balance;
}
.quote::before {
  content: "\201C";
  display: block;
  height: 0.42em;
  font-family: var(--f-latin);
  font-size: 6rem;
  line-height: 0.7;
  color: var(--spark);
  opacity: 0.7;
}
.quote footer, .quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 0.98rem; font-weight: 600; color: var(--accent); }

/* ---------- Buttons and links ---------- */
.btn-outline { color: var(--fg-strong); border-color: var(--field-line); background: transparent; }
.btn-outline:hover { border-color: var(--fg-strong); background: var(--surface-2); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #0b6a5d; border-color: #0b6a5d; }
.btn-wa::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--wa-icon) center / contain no-repeat; mask: var(--wa-icon) center / contain no-repeat; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn-block { display: flex; width: 100%; }
.btn-line { color: var(--fg-strong); border-bottom-color: var(--accent); }
.btn-line:hover { color: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn { text-align: center; padding-block: 8px; }

/* ---------- Cards: paper plates with a short brass rule, no shadows ---------- */
.card {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  color: var(--fg-soft);
}
.card::before {
  content: "";
  position: absolute;
  left: clamp(22px, 2.6vw, 34px);
  top: -1px;
  width: 44px;
  height: 2px;
  background: var(--spark);
  transition: width 0.35s var(--ease);
}
.card:hover::before { width: 88px; }
.card h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--fg-strong); margin-bottom: 16px; }
.card h3 { color: var(--fg-strong); margin-bottom: 10px; }
.card h4 { font-size: 1.15rem; font-weight: 600; color: var(--fg-strong); margin-bottom: 8px; }
.card > .btn, .card > .button-row { margin-top: 20px; }
.card .btn { align-self: flex-start; }
.card .list-clean li { padding: 11px 0; border-bottom: 1px solid var(--hair); }
.card .list-clean li:last-child { border-bottom: 0; }
.card .list-clean + p { margin-top: 14px; }
.card--flat { background: transparent; border-width: 1px 0 0; border-radius: 0; padding: 24px 0 0; }
.card--flat::before { left: 0; }
.card--dusk {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 199, 44, 0.12), rgba(255, 199, 44, 0) 70%),
    var(--dusk);
  border-color: var(--hair-dark);
}
.card--center { text-align: center; }
.card--center::before { left: 50%; translate: -50% 0; }
.card--center .btn { align-self: center; }
/* photo on top: <figure class="card-photo"><img></figure> as the first child */
.card--photo { padding-top: 0; overflow: hidden; }
.card--photo::before { display: none; }
.card-photo { margin: 0 calc(-1 * clamp(22px, 2.6vw, 34px)) clamp(18px, 2vw, 26px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card--photo:hover .card-photo img { transform: scale(1.03); }
/* line icon beside the title */
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border: 1px solid var(--hair); border-radius: 50%; color: var(--accent); }
.card-icon svg { width: 22px; height: 22px; }
/* numbered cards: add .is-numbered to the grid */
.is-numbered { counter-reset: card; }
.is-numbered > .card { counter-increment: card; }
.is-numbered > .card > h3::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--f-latin);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}
/* home testimonials keep their own look */
.voices .card { background: none; border: 0; padding-block: 0; border-radius: 0; }
.voices .card::before { content: none; }

/* ---------- Stat tiles and fact strips ---------- */
.stats-grid:not(.dusk-band .stats-grid) { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding-block: clamp(22px, 3vw, 36px); }
.stats-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card { border-left-color: var(--hair); min-width: 0; }
.stat-value { color: var(--accent); }
.stat-value::after { color: var(--plus, var(--accent)); }
.stat-label { color: var(--fg-soft); }
.stat-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border: 1px solid var(--hair); border-radius: 50%; color: var(--accent); }
.stat-icon svg { width: 22px; height: 22px; }
.dusk-band .stat-value { color: var(--brass-light); }
.dusk-band .stat-label { color: var(--on-dark-2); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.fact { border-left-color: var(--hair); }
.fact strong { color: var(--accent); }
.fact span { color: var(--fg-soft); }
.fact-award { border-left-color: var(--brass); }
.fact-award strong { color: var(--fg-strong); }

/* ---------- Profiles: arched portraits ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(32px, 4vw, 52px) clamp(20px, 2.6vw, 36px); }
.profile-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; color: var(--fg-soft); }
.profile-photo, .arch {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  /* a half-circle top on a 4:5 frame; percent radii keep the arch at every size */
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
  background: var(--surface-2);
  outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 6px;
}
picture.profile-photo, picture.arch, figure.arch { overflow: hidden; margin: 0; }
picture.profile-photo img, picture.arch img, figure.arch img { width: 100%; height: 100%; object-fit: cover; object-position: inherit; }
.profile-name { margin-top: 22px; font-family: var(--f-latin); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--fg-strong); }
.profile-role { margin: 4px 0 0; font-family: var(--f-display); font-style: italic; font-size: 1.08rem; line-height: 1.35; color: var(--accent); }
.profile-meta { margin: 10px 0 0; font-size: 0.98rem; line-height: 1.5; max-width: calc(34 * 0.575em); }
/* lead profile: portrait beside a letter */
.profile--lead { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; text-align: left; }
.profile--lead .profile-photo { max-width: 380px; justify-self: center; }
.profile--lead .profile-name { margin-top: 0; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; }
.profile--lead .profile-meta { max-width: calc(60 * 0.575em); font-size: 1.05rem; }

/* toppers and merit rows work on any dark ground (.section-night is the hall of fame) */
.merit-grid.auto { grid-template-columns: repeat(auto-fill, minmax(132px, 176px)); }

/* ---------- Notice and news list ---------- */
.notice-list, #news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.notice-list > li, #news-list > li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 6px 28px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--fg);
  font-size: 1.06rem;
  line-height: 1.5;
}
.notice-list > li > strong:first-child, #news-list > li > strong:first-child, .notice-date {
  font-family: var(--f-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.notice-list > li:first-child, #news-list > li:first-child { font-weight: 600; }
#news-status, .news-last-updated, .form-note { font-size: var(--t-small); color: var(--fg-soft); }
#news-status:empty { display: none; }

/* ---------- Accordion (FAQ) ---------- */
.faq-list { counter-reset: faq; border-top: 1px solid var(--hair); max-width: 900px; }
.faq-item { counter-increment: faq; border-bottom: 1px solid var(--hair); scroll-margin-top: 96px; overflow: clip; overflow-clip-margin: 10px; }
/* a closed row clips its answer; the focus ring sits inside the row so the clip never cuts it */
.faq-item > summary:focus-visible { outline-offset: -3px; }
.faq-item > summary {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 32px;
  gap: 0 14px;
  align-items: baseline;
  min-height: 64px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-strong);
  transition: color 0.2s;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
  content: counter(faq, decimal-leading-zero);
  font-family: var(--f-latin);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.faq-item > summary::after {
  content: "";
  align-self: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease), background-size 0.3s, border-color 0.2s;
}
.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary:hover::after { border-color: var(--accent); }
.faq-item[open] > summary::after { transform: rotate(180deg); background-size: 12px 1.5px, 1.5px 0; }
.faq-body { padding: 0 46px 24px calc(2.6rem + 14px); color: var(--fg-soft); max-width: calc(78 * 0.575em); }

/* ---------- Tabs ---------- */
.tabs, .gallery-tabs, .gallery-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--hair);
}
.tab, .gallery-tab, .gallery-mode-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: var(--fg-soft);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.2s;
}
.tab::after, .gallery-tab::after, .gallery-mode-tab::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--spark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.tab:hover, .gallery-tab:hover, .gallery-mode-tab:hover { color: var(--fg-strong); }
.tab:focus-visible, .gallery-tab:focus-visible { outline-offset: -3px; }
@media (min-width: 721px) { .gallery-tab:focus-visible { outline-offset: 2px; } }
.tab.active, .tab[aria-selected="true"], .gallery-tab.active, .gallery-mode-tab.active { color: var(--fg-strong); }
.tab.active::after, .tab[aria-selected="true"]::after, .gallery-tab.active::after, .gallery-mode-tab.active::after { transform: scaleX(1); }
.tab-count, .gallery-tab-count, .gallery-mode-count {
  font-family: var(--f-latin);
  font-style: italic;
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
/* the large two-way switch (Photos / Videos) */
.gallery-mode-tabs { gap: 0 20px; border-bottom: 0; margin-bottom: clamp(20px, 2.4vw, 28px); }
.gallery-mode-tab { padding-inline: 0; font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; }
.gallery-mode-tab::after { left: 0; right: 0; bottom: 2px; }

/* ---------- Photo grids and the viewer ---------- */
.gallery-grid, .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.gallery-photo, .photo-grid > figure { position: relative; margin: 0; min-width: 0; }
.gallery-photo-btn, .photo-grid > figure > a {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery-photo-btn img, .photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery-photo-btn:hover img, .gallery-photo-btn:focus-visible img { transform: scale(1.04); }
.gallery-photo figcaption, .photo-grid figcaption, .figure figcaption {
  padding: 9px 2px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--fg-soft);
}
/* the tile shows what a tap does without a word: on hover and keyboard focus a small brass
   arrow opens in the lower right corner, on a navy shade no larger than the corner itself */
.gallery-photo-btn { position: relative; }
.gallery-photo-btn::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 132px;
  height: 92px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ebcb8a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15 15 5M7.5 5H15v7.5'/%3E%3C/svg%3E") right 17px bottom 10px / 20px 20px no-repeat,
    radial-gradient(ellipse 100% 100% at 100% 100%, rgba(15, 18, 40, 0.78) 0%, rgba(15, 18, 40, 0.4) 45%, rgba(15, 18, 40, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s, background-position 0.3s var(--ease);
  pointer-events: none;
}
.gallery-photo-btn:focus-visible::after { background-position: right 13px bottom 14px, 0 0; }
@media (hover: hover) { .gallery-photo-btn:hover::after { background-position: right 13px bottom 14px, 0 0; } }
.gallery-photo-btn:focus-visible::after { opacity: 1; }
@media (hover: hover) { .gallery-photo-btn:hover::after { opacity: 1; } }
.gallery-photo.missing .gallery-photo-btn::after { content: none; }
.gallery-photo.missing .gallery-photo-btn { cursor: default; }
.gallery-photo.missing img { visibility: hidden; }
.gallery-loading, .gallery-error { padding: 28px 0; color: var(--fg-soft); font-family: var(--f-display); font-style: italic; font-size: 1.15rem; }
.gallery-error { color: var(--maroon); font-style: normal; }
/* a mosaic for a few hand-picked photos: first one large */
.photo-grid--mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.photo-grid--mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid--mosaic > :first-child > a, .photo-grid--mosaic > :first-child > img { height: 100%; aspect-ratio: auto; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: 64px clamp(12px, 6vw, 96px) 20px;
  background: rgba(15, 18, 40, 0.96);
  color: var(--on-dark);
}
.lightbox.open { display: grid; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-height: 0; max-height: 100%; max-width: 100%; }
.lightbox-img { max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100svh - 190px); width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.lightbox-caption { max-width: calc(70 * 0.575em); text-align: center; font-size: 1rem; line-height: 1.45; color: var(--on-dark-2); }
.lightbox-counter { margin: 10px 0 0; font-family: var(--f-latin); font-style: italic; font-size: 1.05rem; color: var(--brass-light); font-variant-numeric: lining-nums tabular-nums; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 1px solid rgba(235, 203, 138, 0.5);
  border-radius: 50%;
  background: rgba(27, 31, 64, 0.7);
  color: var(--brass-light);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--brass-light); color: var(--night); }
.lightbox-close { top: 12px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 14px; top: 50%; translate: 0 -50%; }

/* ---------- Image frames ---------- */
.frame { display: block; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.frame img, .frame video, .frame iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--1x1 { aspect-ratio: 1; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x5 { aspect-ratio: 4 / 5; }
/* a hairline mat set off from the photo */
.frame--mat { overflow: visible; outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 8px; }
.frame--mat img { border-radius: var(--radius); }
.frame--arch { aspect-ratio: 4 / 5; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 8px; overflow: hidden; }
/* documents and posters are shown whole, never cropped */
.frame--contain { background: var(--surface-2); border: 1px solid var(--hair); }
.frame--contain img { object-fit: contain; }
.figure { margin: 0; }
.embed { border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.embed iframe { display: block; width: 100%; border: 0; }

/* full-bleed photograph with words on it */
.photo-band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(360px, 44vw, 640px); padding-block: clamp(40px, 6vw, 80px); color: var(--on-dark); }
.photo-band > img, .photo-band > picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(27, 31, 64, 0.94) 0%, rgba(27, 31, 64, 0.72) 34%, rgba(27, 31, 64, 0.12) 68%, rgba(27, 31, 64, 0) 82%);
}
.photo-band h2 { color: var(--paper); font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.04; }
.photo-band p:not(.kicker) { color: var(--on-dark-2); max-width: calc(56 * 0.575em); margin-top: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid > .full, .form-grid > textarea, .form-grid > .form-status, .form-grid > .check-line, .form-grid > button, .form-grid > .button-row { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .form label:not(.check-line, .hp-field, .choice) { font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--fg-strong); }
/* required mark: drawn, not written */
.field:has(:required) > label::after, label.is-required::after { content: "*"; margin-left: 4px; color: var(--maroon); font-weight: 600; }
.on-dusk .field:has(:required) > label::after, .section-dusk .field:has(:required) > label::after, .card--dusk .field:has(:required) > label::after { color: var(--bus); }
.field-hint { font-size: var(--t-small); line-height: 1.45; color: var(--fg-soft); }

.form input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="file"], [type="submit"], [type="button"]),
.form select, .form textarea, .input, .select, .textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background-color: var(--field-bg);
  color: var(--fg-strong);
  font: inherit;
  font-size: 1.04rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form textarea, .textarea { min-height: 148px; resize: vertical; }
.form select, .select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5a1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}
.form ::placeholder, .input::placeholder, .textarea::placeholder { color: var(--fg-soft); opacity: 0.9; }
.form input:hover, .form select:hover, .form textarea:hover, .input:hover, .select:hover, .textarea:hover { border-color: var(--fg-strong); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible, .input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--fg-strong);
}
/* error: only after the visitor has touched the field, with the browser's own message */
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid, .is-invalid {
  border-color: var(--maroon);
  box-shadow: inset 3px 0 0 var(--maroon);
  background-color: #fbf3f4;
}
.field-error { font-size: var(--t-small); font-weight: 600; color: var(--maroon); }
.form input:disabled, .form select:disabled, .form textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.form input[type="file"] { font: inherit; font-size: 0.98rem; color: var(--fg-soft); }
.form input[type="file"]::file-selector-button { min-height: 44px; margin-right: 14px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: var(--radius); background: transparent; color: var(--fg-strong); font: inherit; font-weight: 600; cursor: pointer; }

.check-line, .choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; color: var(--fg); line-height: 1.45; cursor: pointer; }
.check-line input, .choice input, input[type="checkbox"].check, input[type="radio"].check { flex-shrink: 0; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brass-deep); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 600; color: var(--fg-strong); }

/* the line under a form: plain text by default, a notice once main.js writes into it */
.form-status { margin: 0; font-size: 0.98rem; line-height: 1.5; color: var(--fg-soft); }
.form-status:empty { display: none; }
.form-status.is-success, .form-status.is-error, .status-box {
  padding: 14px 18px;
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
  color: var(--fg-strong);
  font-weight: 600;
}
.form-status.is-success, .status-box.is-success { border-left-color: var(--wa); background: #eef7f4; color: #0b4f46; }
.form-status.is-error, .status-box.is-error { border-left-color: var(--maroon); background: #fbf3f4; color: var(--maroon); }

/* ---------- Tables (fees, results) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 4px; }
.table, .table-wrap > table, .prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; font-variant-numeric: lining-nums tabular-nums; }
.table caption, .table-wrap > table caption {
  caption-side: top;
  padding: 16px 18px;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-strong);
}
.table th, .table td, .table-wrap > table th, .table-wrap > table td, .prose th, .prose td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.table thead th, .table-wrap > table thead th, .prose thead th {
  background: var(--dusk);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--brass);
}
.table tbody th, .table-wrap > table tbody th { font-weight: 600; color: var(--fg-strong); white-space: nowrap; }
.table td, .table-wrap > table td { color: var(--fg); }
.table tbody tr:nth-child(even) > *, .table-wrap > table tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.table tbody tr:last-child > *, .table-wrap > table tbody tr:last-child > * { border-bottom: 0; }
.table .num, .table-wrap > table .num { text-align: right; white-space: nowrap; }
.table tfoot td, .table tfoot th, .table tr.is-total > * { font-weight: 600; color: var(--fg-strong); border-top: 2px solid var(--brass); border-bottom: 0; background: var(--surface-2); }
.table tbody tr.is-highlight > *, .table-wrap > table tbody tr.is-highlight > * { background: color-mix(in srgb, var(--brass) 18%, var(--surface)); color: var(--fg-strong); }
.table--compact th, .table--compact td { padding: 9px 14px; font-size: 0.96rem; }
.table-note { margin-top: 12px; font-size: var(--t-small); color: var(--fg-soft); }

/* ---------- Callouts, badges, pills ---------- */
.callout {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.6vw, 32px);
  border-left: 2px solid var(--brass);
  background: var(--surface-2);
  color: var(--fg-soft);
}
.section-alt .callout:not(.callout--dusk, .callout--warn) { background: var(--paper); }
.callout h3, .callout h4, .callout > strong:first-child { display: block; margin-bottom: 8px; color: var(--fg-strong); }
.callout h3 { font-size: 1.3rem; }
.callout--warn { border-left-color: var(--maroon); background: #fbf3f4; }
.callout--dusk {
  border-left-color: var(--bus);
  background:
    radial-gradient(50% 120% at 100% 50%, rgba(255, 199, 44, 0.14), rgba(255, 199, 44, 0) 70%),
    var(--dusk);
}

/* .badge is the lit pill of the hero; it also sits on any dark band */
.pill, .tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--f-body);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.tag { border-radius: 3px; border-color: transparent; background: var(--surface-2); color: var(--fg); }
.pill--solid { background: var(--brass); border-color: var(--brass); color: var(--night); }
.pill--maroon { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.pill--bus { background: var(--bus); border-color: var(--bus); color: var(--night); box-shadow: 0 0 18px rgba(255, 199, 44, 0.4); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Steps (admission process, what happens next) ---------- */
.steps, .process-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.step, .process-step { position: relative; min-width: 0; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--fg-soft); }
.step::before, .process-step::before { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 2px; background: var(--spark); }
.step-num, .process-step-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-latin);
  font-weight: 500;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 30;
}
.step h3, .process-step h3, .step h4, .process-step h4 { font-size: 1.3rem; color: var(--fg-strong); margin-bottom: 8px; }
.steps--rail { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
.steps--rail > .step { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 20px; padding: 22px 0; }
.steps--rail > .step > .step-num { grid-row: span 3; font-size: 2.6rem; }

/* ---------- Call-to-action band ---------- */
.cta-band {
  background:
    radial-gradient(40% 90% at 100% 50%, rgba(255, 199, 44, 0.16), rgba(255, 199, 44, 0) 70%),
    var(--dusk);
  color: var(--on-dark-2);
  padding-block: clamp(44px, 5.5vw, 72px);
}
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px clamp(24px, 5vw, 72px); align-items: center; }
.cta h2, .cta h3 { grid-column: 1; font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--paper); }
.cta p { grid-column: 1; margin: 0; max-width: calc(60 * 0.575em); }
.cta .button-row { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- 404: the lamp in the tower window is still lit ---------- */
.notfound { padding-top: clamp(40px, 6vw, 88px); }
.notfound-lamp {
  position: relative;
  display: block;
  width: 30px;
  height: 46px;
  margin: 0 auto clamp(10px, 1.6vw, 20px);
  border-radius: 15px 15px 2px 2px;
  background: linear-gradient(180deg, #ffe08a, var(--bus));
  box-shadow: 0 0 22px 6px rgba(255, 199, 44, 0.42), 0 0 120px 46px rgba(255, 199, 44, 0.16);
}
.notfound .notfound-code {
  max-width: none;
  font-size: var(--t-display);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--brass-light);
  font-variant-numeric: lining-nums;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 30;
}
.notfound .notfound-code::before { display: none; }
.notfound h2 { margin-top: clamp(10px, 1.4vw, 18px); color: var(--paper); font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.notfound .page-band-lede { margin-top: 16px; max-width: calc(50 * 0.575em); }
.notfound .button-row { margin-top: 30px; }
/* the bus that missed its stop: a thin navy ridge at the foot of the band, the bus
   parked on it with its headlights on, the beam sweeping the dark (decoration only) */
.notfound { --bus-w: clamp(46px, 5.2vw, 68px); }
.notfound-ridge { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(52px, 8.4vw, 122px); pointer-events: none; }
/* the size fx/ridge.js gives its layers at this intensity, set ahead so they never shift */
.notfound-ridge .kbfx-ridge svg { position: absolute; left: -30px; bottom: -4px; width: calc(100% + 60px); height: calc(100% + 4px); }
.notfound-bus {
  position: absolute;
  left: 62%;
  bottom: calc(var(--ridge-h) * 0.575 - 2px);
  z-index: 2;
  width: var(--bus-w);
  height: auto;
  margin-left: calc(var(--bus-w) / -2);
  transform: scaleX(-1);
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 199, 44, 0.22));
}
.notfound-beam {
  --beam: min(48vw, 620px);
  position: absolute;
  left: calc(62% - var(--bus-w) * 0.42);
  bottom: calc(var(--ridge-h) * 0.575 - 2px + var(--bus-w) * 0.19);
  z-index: -1;
  width: 0;
  height: 0;
  rotate: 11deg;
  pointer-events: none;
}
.notfound-beam::before {
  content: "";
  position: absolute;
  right: 0;
  top: calc(var(--beam) / -2);
  width: var(--beam);
  height: var(--beam);
  background: conic-gradient(from 260deg at 100% 50%, rgba(255, 199, 44, 0) 0deg, rgba(255, 214, 110, 0.15) 6deg, rgba(255, 214, 110, 0.15) 13deg, rgba(255, 199, 44, 0) 20deg);
  -webkit-mask: radial-gradient(circle at 100% 50%, #000 0, rgba(0, 0, 0, 0.55) 42%, transparent 70%);
  mask: radial-gradient(circle at 100% 50%, #000 0, rgba(0, 0, 0, 0.55) 42%, transparent 70%);
}
.notfound-beam::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 200, 0.95) 0, rgba(255, 199, 44, 0.5) 32%, rgba(255, 199, 44, 0) 70%);
}
/* the code is written in ink once (notfound.js lays a drawn copy over the real heading,
   which stays painted, dim, while the ink runs; the dim tone still clears 3:1 on the night ground) */
.notfound .notfound-code { position: relative; transition: color 320ms ease; }
.notfound .notfound-code.is-inking { color: rgba(235, 203, 138, 0.58); }
.notfound-ink { position: absolute; left: 0; top: 0; color: var(--brass-light); letter-spacing: 1px; pointer-events: none; transition: opacity 320ms ease; }
.notfound-ink.is-gone { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .notfound-beam { animation: c-beam 4.5s ease-in-out infinite alternate; }
  .notfound.is-off .notfound-beam, .c-idle .notfound-beam { animation-play-state: paused; }
  /* three stops: each numeral lights as its card comes in */
  .c-js .notfound-stops > .card.is-visible > h3::before { animation: c-stop 1100ms ease-out calc(260ms + var(--i, 0) * 90ms) backwards; }
}
@keyframes c-beam { from { rotate: 3deg; } to { rotate: 25deg; } }
@keyframes c-stop { from { color: rgba(138, 98, 24, 0.3); } 35% { color: #b9820f; text-shadow: 0 0 16px rgba(255, 199, 44, 0.95); } to { text-shadow: 0 0 0 rgba(255, 199, 44, 0); } }

/* ---------- Scroll reveal: [data-reveal] rises once, only when scripts run ---------- */
@media (prefers-reduced-motion: no-preference) {
  .c-js [data-reveal]:not(.page-title, .page-band, .is-visible) { opacity: 0; transform: translateY(18px); }
  .c-js [data-reveal] { transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
  .c-js .grid-3 > [data-reveal]:nth-child(3n + 2), .c-js .grid-2 > [data-reveal]:nth-child(2n) { transition-delay: 0.08s; }
  .c-js .grid-3 > [data-reveal]:nth-child(3n) { transition-delay: 0.16s; }
}

/* ---------- Hindi ---------- */
:lang(hi) .page-title h1:not(.is-latin), :lang(hi) .page-band h1:not(.is-latin) { line-height: 1.28; letter-spacing: 0; font-weight: 400; font-variation-settings: normal; max-width: 22ch; }
:lang(hi) .faq-item > summary:not(.is-latin) { font-weight: 400; line-height: 1.45; font-size: clamp(1.26rem, 1.8vw, 1.5rem); }
:lang(hi) .profile-role:not(.is-latin), :lang(hi) .quote p, :lang(hi) p.quote, :lang(hi) .gallery-loading { font-style: normal; line-height: 1.5; }
:lang(hi) .lede, :lang(hi) .page-title h1 + p, :lang(hi) .page-band h1 + p { line-height: 1.7; }
:lang(hi) .btn, :lang(hi) .tab, :lang(hi) .gallery-tab, :lang(hi) .pill, :lang(hi) .tag { line-height: 1.5; }
:lang(hi) .pill, :lang(hi) .tag, :lang(hi) .table thead th { white-space: normal; }
:lang(hi) .card h2:not(.is-latin), :lang(hi) .cta h2:not(.is-latin), :lang(hi) .cta h3:not(.is-latin) { line-height: 1.35; }
:lang(hi) .table caption { line-height: 1.5; font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .grid-4, .stats-grid.cols-4, .profile-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid.cols-4 { row-gap: 28px; }
  .stats-grid.cols-4 > .stat-card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .photo-grid--mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--even, .profile--lead { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
  .profile--lead { text-align: center; justify-items: center; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta .button-row { grid-column: 1; grid-row: auto; margin-top: 18px; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .page-title h1, .page-band h1 { max-width: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .button-row > .btn:not(.btn-line, .btn-tour) { flex: 1 1 100%; }
  .hero-actions.button-row > .btn { flex: initial; }
  .sticky-admission .btn, .card > .btn { flex: initial; }
  .notice-list > li, #news-list > li { grid-template-columns: minmax(0, 1fr); padding: 14px 0; }
  .faq-item > summary { grid-template-columns: 2rem minmax(0, 1fr) 32px; gap: 0 8px; }
  .faq-body { padding: 0 0 22px calc(2rem + 8px); }
  .gallery-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid--mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-photo figcaption { font-size: 0.86rem; }
  .tabs, .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar, .gallery-tabs::-webkit-scrollbar { display: none; }
  .tab, .gallery-tab { flex: none; white-space: nowrap; }
  .lightbox { padding: 68px 8px 16px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; translate: none; }
  .lightbox-counter { margin-bottom: 14px; }
  .lightbox-img { max-height: calc(100svh - 230px); }
  .table th, .table td, .table-wrap > table th, .table-wrap > table td { padding: 12px 14px; }
  .table-wrap > table th:first-child, .table-wrap > table td:first-child { position: sticky; left: 0; }
  :where(.table-wrap > table tbody) :where(th, td):first-child { background: var(--surface); }
  .table-wrap > table thead th:first-child { background: var(--dusk); }
  .dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .table--tight-phone th, .table--tight-phone td { padding-inline: 10px; }
  .steps--rail > .step { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-photo { min-height: 300px; }
  .photo-band::before { background: linear-gradient(0deg, rgba(27, 31, 64, 0.96) 0%, rgba(27, 31, 64, 0.84) 46%, rgba(27, 31, 64, 0.3) 78%, rgba(27, 31, 64, 0) 100%); }
  .page-band-media::after { background: linear-gradient(0deg, rgba(16, 19, 42, 0.95) 0%, rgba(16, 19, 42, 0.8) 46%, rgba(16, 19, 42, 0.34) 100%); }
}
@media (max-width: 519px) {
  .grid-4, .stats-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .stats-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Home details kept in step with the shared rules ---------- */
:lang(hi) .quick-info h2:not(.is-latin) { font-size: 1.4rem; font-weight: 400; line-height: 1.3; }
.hero-tagline, .btn-tour { text-shadow: 0 1px 14px rgba(27, 31, 64, 0.6); }
.announcement-track:focus-visible { outline-offset: -3px; }
@media (max-width: 1099px) { .announcement-track { min-height: 44px; } }

/* ---------- Design preview switch (theme-switch.js): it steps above the Home admissions dock ---------- */
@media (max-width: 960px) { .c-dock .kb-ts { bottom: 108px; } }
@media (max-width: 720px) { .c-dock .kb-ts { bottom: calc(74px + env(safe-area-inset-bottom)); } }
/* ... steps out while the phone menu sheet is open */
html:has(.site-nav.open) .kb-ts { visibility: hidden; }
/* its focus ring is white, which is lost where the button sits over paper: a white ring inside a navy one shows on any ground */
html .kb-ts-btn:focus-visible { outline: 3px solid #1b1f40; outline-offset: 3px; box-shadow: 0 0 0 3px #fff, 0 6px 22px rgba(0, 0, 0, 0.28); }
/* ... and keeps clear of the install offer while that is showing */
body:has(.pwa-install-banner.is-visible) .kb-ts { bottom: 150px; }
@media (max-width: 720px) { body:has(.pwa-install-banner.is-visible) .kb-ts { bottom: 14px; } }

/* ==========================================================================
   THE FRAME: header, menu lamp, language thumb, floating controls, footer.
   Light and motion only; the small behaviours are in theme-c.js ("The frame").
   Every rule rests in its finished state. Motion sits inside
   prefers-reduced-motion: no-preference; loops also stop when the page is
   left alone (html.c-idle) or their host is off screen (.is-off).
   ========================================================================== */

/* ---------- Header settles: after 80 px it turns to night and a brass hairline
   draws under it from the centre outward ---------- */
.site-header {
  background-image: linear-gradient(90deg, rgba(235, 203, 138, 0), rgba(235, 203, 138, 0.9) 50%, rgba(235, 203, 138, 0));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0 1px;
  background-origin: border-box;
  background-clip: border-box;
  transition: box-shadow 0.3s, background-color 0.3s;
}
/* a fixed night blue (not var(--night)): the settled header keeps its fade-in, and the fade
   does not start again at every step of the evening number */
.site-header.is-scrolled { background-color: #181c3b; background-size: 100% 1px; }
@media (min-width: 1180px) {
  /* wide screens: the page shows faintly through the settled header (the blur
     lives on a layer, never on the header itself) */
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--night);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .site-header.is-scrolled { background-color: transparent; }
  .site-header.is-scrolled::before { opacity: 0.97; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

  /* nav lamp: one brass bar rests under the current page and is carried to the
     link under the pointer or the focus (theme-c.js adds .kb-nav-lamp and html.c-lamp) */
  .site-nav { position: relative; }
  .kb-nav-lamp {
    position: absolute;
    left: 0;
    bottom: 5px;
    width: var(--w, 0px);
    height: 2px;
    border-radius: 1px;
    background: var(--brass-light);
    box-shadow: 0 0 10px 1px rgba(235, 203, 138, 0.5), 0 0 3px rgba(255, 199, 44, 0.7);
    translate: var(--x, 0px) 0;
    opacity: 0;
    pointer-events: none;
    transition: translate 260ms var(--ease), width 260ms var(--ease), opacity 200ms;
  }
  .kb-nav-lamp.is-set { opacity: 1; }
  .kb-nav-lamp.is-now { transition: none; }
  .c-lamp .site-nav a::after { display: none; }
}
/* a pressed menu link holds the brass light while the page changes */
.site-nav a:active, .site-nav a.is-flash { color: var(--brass-light); }

/* ---------- Language thumb: one brass pill slides between EN and HI ---------- */
.lang-toggle { position: relative; isolation: isolate; }
.lang-toggle:has(button.active)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--brass);
  box-shadow: 0 0 14px -2px rgba(235, 203, 138, 0.55);
}
.lang-toggle:has(button.active:last-child)::before { translate: 100% 0; }
.lang-toggle:has(button.active) button { flex: 1 1 0; }
.lang-toggle:has(button.active) button.active { background: transparent; }
@media (max-width: 459px) { .lang-toggle:has(button.active)::before { top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); } }

/* ---------- Buttons and links ---------- */
/* primary: a pale sheen crosses the brass once on hover (buttons that magnetic.js
   drives have their own sweep); on a dark ground the button also carries a glow */
.btn-primary:not(.kbfx-mag) {
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0) 58%);
  background-repeat: no-repeat;
  background-size: 260% 100%;
  background-position: 135% 0;
}
/* the payment button stays calm: press state only */
.fee-form .btn-primary, #fee-form .btn-primary { background-image: none; }
.btn-primary { box-shadow: var(--kb-btn-glow, none); }
.btn-primary:focus-visible { box-shadow: var(--kb-focus-halo, 0 0 0 0 transparent), var(--kb-btn-glow, 0 0 0 0 transparent); }
/* ghost and outline: the edge warms to brass on a dark ground */
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--brass-light); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--kb-rim-c, var(--fg-strong)); }
/* line: the rule thickens and the label leans toward where it leads */
.btn-line { box-shadow: 0 0 0 0 var(--accent); }
.btn-line:hover { box-shadow: 0 1px 0 0 var(--accent); }
.btn-line:focus-visible { box-shadow: 0 1px 0 0 var(--accent), var(--kb-focus-halo, 0 0 0 0 transparent); }
/* quiet links: the underline is drawn in brass from the left */
.footer-links a, .footer-contact a, .breadcrumbs a {
  background: linear-gradient(var(--brass-light) 0 0) 0 calc(50% + 0.72em) / 0 1px no-repeat;
}
.footer-links a:hover, .footer-contact a:hover, .breadcrumbs a:hover,
.footer-links a:focus-visible, .footer-contact a:focus-visible, .breadcrumbs a:focus-visible {
  background-size: 100% 1px;
  text-decoration: none;
}

/* ---------- Progress lamp: a brass hairline with a small lamp at its leading end ---------- */
#scroll-progress { background: linear-gradient(90deg, var(--brass), var(--brass-light)); }
#scroll-progress::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff3cf;
  box-shadow: 0 0 9px 2px rgba(235, 203, 138, 0.75), 0 0 3px 1px rgba(255, 199, 44, 0.8);
}

/* ---------- Back to top: a small arched window that fills with brass light as the page is read ---------- */
.back-to-top {
  width: 48px;
  height: 56px;
  border-radius: 24px 24px 4px 4px;
  background:
    linear-gradient(to top, rgba(235, 203, 138, 0.95) 0, rgba(210, 162, 76, 0.86) calc(var(--kb-p, 0) * 100%), rgba(210, 162, 76, 0) calc(var(--kb-p, 0) * 100% + 0.5px)),
    rgba(27, 31, 64, 0.94);
  color: var(--paper);
  box-shadow: 0 0 calc(var(--kb-p, 0) * 22px) -4px rgba(235, 203, 138, 0.6);
}
.back-to-top.is-half { color: var(--night); }
.back-to-top:hover { background: var(--brass); color: var(--night); }
@media (max-width: 720px) { .back-to-top { width: 44px; height: 52px; } }

/* ---------- Dock (the admissions bar on Home): steps aside while the visitor
   reads on, comes back on the way up, and never covers a field being typed in ---------- */
@media (max-width: 1179px) {
  .c-dock-away .sticky-admission,
  html:has(:is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), textarea, select):focus) .sticky-admission {
    translate: 0 calc(100% + 40px);
  }
}
@media (max-width: 720px) {
  .c-dock.c-dock-away .whatsapp-float { bottom: calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 14px 28px -10px rgba(8, 40, 36, 0.75); }
}

/* ---------- WhatsApp: the popup grows from the button's corner ---------- */
.whatsapp-popup { transform: scale(0.94); }
.kb-wa-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25d366;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Footer bookend: every page ends the way Home begins. theme-c.js adds
   the two paths to .footer-ridge and .is-end when the footer is in view ---------- */
.footer-ridge { overflow: visible; clip-path: inset(-40px 0 0 0); }
.kb-ridge-far { fill: rgb(48, 66, 104); opacity: 0.3; }
.kb-ridge-line {
  fill: none;
  stroke: var(--brass-light);
  stroke-width: 1.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.footer-logo { transition: box-shadow 1.2s ease; }
.site-footer.is-end .footer-logo {
  box-shadow: 0 0 0 1px rgba(235, 203, 138, 0.6), 0 0 30px 4px rgba(235, 203, 138, 0.34);
}
/* evening star: one small brass light circles the footer logo */
.footer-brand { position: relative; }
.kb-evening-star {
  position: absolute;
  left: var(--sx, 32px);
  top: var(--sy, 32px);
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--brass-light);
  box-shadow: 0 0 7px 1px rgba(235, 203, 138, 0.8);
  rotate: -38deg;
  transform: translateX(44px);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow 0.3s, background-color 0.3s, background-size 420ms var(--ease-rise, var(--ease)); }
  .c-live .lang-toggle:has(button.active)::before { transition: translate 220ms var(--ease); }
  .btn-primary:not(.kbfx-mag):hover { background-position: -35% 0; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), background-position 620ms var(--ease); }
  .btn-line { transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 180ms; }
  .footer-links a, .footer-contact a, .breadcrumbs a { transition: color 0.2s, background-size 220ms var(--ease); }

  #scroll-progress { transition: opacity 400ms ease; }
  .c-live #scroll-progress.is-idle { opacity: 0; }

  .sticky-admission { transition: transform 0.45s var(--ease), opacity 0.3s, visibility 0s, translate 260ms var(--ease); }

  /* the WhatsApp button rises into place; once per session one ring pulses out from it */
  .c-live .whatsapp-float { animation: c-wa-rise 520ms var(--ease-rise, var(--ease)) backwards; }
  .kb-wa-ring { animation: c-wa-pulse 900ms ease-out both; }
  .whatsapp-popup.is-open .whatsapp-quick-reply { animation: c-sheet-link 260ms ease-out backwards; }
  .whatsapp-popup.is-open .whatsapp-quick-reply:nth-child(1) { animation-delay: 70ms; }
  .whatsapp-popup.is-open .whatsapp-quick-reply:nth-child(2) { animation-delay: 110ms; }
  .whatsapp-popup.is-open .whatsapp-quick-reply:nth-child(3) { animation-delay: 150ms; }
  .whatsapp-popup.is-open .whatsapp-quick-reply:nth-child(4) { animation-delay: 190ms; }
  .whatsapp-popup.is-open .whatsapp-quick-reply:nth-child(5) { animation-delay: 230ms; }

  /* announcement line: the three brass marks brighten one after another, every 6 s */
  .announcement-track span:not(.c-rep)::before { animation: c-twinkle 6s linear infinite; }
  .announcement-track span:nth-child(2)::before { animation-delay: 0.45s; }
  .announcement-track span:nth-child(3)::before { animation-delay: 0.9s; }

  /* footer bookend: the far ridge waits low and the line undrawn until the footer is in view */
  .c-live .site-footer:not(.is-end) .kb-ridge-far { translate: 0 40px; }
  .kb-ridge-far { transition: translate 1.4s var(--ease-rise, var(--ease)); }
  .c-live .site-footer:not(.is-end) .kb-ridge-line { stroke-dashoffset: 1; }
  .kb-ridge-line { stroke-dasharray: 1; transition: stroke-dashoffset 1.6s var(--ease); }
  .kb-evening-star { animation: c-orbit 40s linear infinite; }

  /* loops rest when nobody is there, or when their host is off screen */
  .c-idle .announcement-track span::before, .announcement-bar.is-off span::before,
  .c-idle .kb-evening-star, .site-footer:not(.is-near) .kb-evening-star { animation-play-state: paused; }
}
@keyframes c-wa-rise { from { opacity: 0.3; translate: 0 14px; } }
@keyframes c-wa-pulse { from { opacity: 0.45; scale: 1; } to { opacity: 0; scale: 1.6; } }
@keyframes c-twinkle { 0%, 9%, 100% { opacity: 0.55; } 4% { opacity: 1; } }
@keyframes c-orbit { to { rotate: 322deg; } }

/* ---------- Print basics ---------- */
@media print {
  :root { --gutter: 0px; }
  body { background: #fff; color: #000; font-size: 11pt; padding: 0 !important; border: 0 !important; }
  .top-utility-bar, .site-nav, .menu-toggle, .lang-toggle, .announcement-bar, .breadcrumbs, .sticky-admission,
  .whatsapp-float, .whatsapp-popup, .back-to-top, #back-to-top, #scroll-progress, .pwa-install-banner,
  .footer-social, .footer-links, .lightbox, .rp-overlay, .skip-link, .gallery-tabs, .testimonial-carousel-btn,
  .testimonial-carousel-dots, .nursery-arrow, .nursery-dots, .hero-trace, .ridge-edge, .footer-ridge { display: none !important; }
  .site-header { position: static; background: #fff; color: #000; border-bottom: 1px solid #000; }
  .brand, .brand-text small { color: #000; }
  .page-title, .page-band, .section-dusk, .section-night, .cta-band, .on-dusk, .site-footer, .hero, .dusk-band, .fame, .voices {
    background: #fff !important;
    color: #000 !important;
    --fg: #000; --fg-strong: #000; --fg-soft: #222; --accent: #000; --hair: #999; --surface: #fff; --surface-2: #fff;
  }
  .page-title::before, .page-title::after, .page-band::before, .page-band::after, .ridge-out::before, .ridge-out::after { display: none; }
  .page-title h1, .page-band h1, .page-title p, .page-band p { color: #000 !important; }
  .page-title h2, .page-band h2, .section-dusk :is(h2, h3, p, li), .section-night :is(h2, h3, p, li), .cta-band :is(h2, h3, p),
  .site-footer :is(h3, p, a, span), .footer-copyright { color: #000 !important; text-shadow: none !important; }
  .notfound-lamp { box-shadow: none; }
  .site-header { background-image: none; }
  .section, body.inner .section { padding-block: 18pt; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card, .callout, .table-wrap, .faq-item, tr, img, figure { break-inside: avoid; }
  .card { border-color: #999; }
  .table thead th { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
  details.faq-item > .faq-body { display: block; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  a { text-decoration: none; }
}

/* Owner request (1 Dec): polished social badges. Crisp official-style round icons drawn as
   images (the old glyph SVGs are hidden), same size everywhere, soft depth and a gentle lift. */
.top-social-link svg, .footer-social-links a svg { display: none !important; }
.top-social-link, .footer-social-links a { position: relative; color: transparent !important; }
.top-social-link::before, .footer-social-links a::before {
  content: ""; display: block; width: 26px; height: 26px; border-radius: 50%;
  background-position: center; background-size: 100% 100%; background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 3px 8px -2px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .22s var(--ease, ease), box-shadow .22s, filter .22s;
}
.footer-social-links a::before { width: 38px; height: 38px; }
.footer-social-links a { display: inline-grid; place-items: center; background: none !important; border: 0 !important; }
.top-social-link[data-net="fb"]::before, .footer-social-links a[href*="facebook.com"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%231877F2'/%3E%3Cpath fill='%23fff' d='M22.3 32.5V21.7h3.6l.55-4.2H22.3v-2.7c0-1.2.34-2.05 2.07-2.05h2.2V9a29 29 0 0 0-3.22-.17c-3.18 0-5.36 1.94-5.36 5.5v3.1h-3.6v4.2h3.6v10.8z'/%3E%3C/svg%3E"); }
.top-social-link[data-net="ig"]::before, .footer-social-links a[href*="instagram.com"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3CradialGradient id='g' cx='28%25' cy='108%25' r='140%25'%3E%3Cstop offset='0' stop-color='%23fdf497'/%3E%3Cstop offset='.08' stop-color='%23fdf497'/%3E%3Cstop offset='.42' stop-color='%23fd5949'/%3E%3Cstop offset='.62' stop-color='%23d6249f'/%3E%3Cstop offset='.92' stop-color='%23285AEB'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='20' fill='url(%23g)'/%3E%3Crect x='11.2' y='11.2' width='17.6' height='17.6' rx='5.4' fill='none' stroke='%23fff' stroke-width='2.3'/%3E%3Ccircle cx='20' cy='20' r='4.2' fill='none' stroke='%23fff' stroke-width='2.3'/%3E%3Ccircle cx='25.3' cy='14.7' r='1.4' fill='%23fff'/%3E%3C/svg%3E"); }
.top-social-link[data-net="yt"]::before, .footer-social-links a[href*="youtube.com"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23FF0000'/%3E%3Cpath d='M16.6 13.4v13.2l11.2-6.6z' fill='%23fff' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.top-social-link[data-net="wa"]::before, .footer-social-links a[href*="wa.me"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%2325D366'/%3E%3Cg transform='translate(9.2 9.2) scale(.9)'%3E%3Cpath fill='%23fff' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z'/%3E%3C/g%3E%3C/svg%3E"); }
.top-social-link:is(:hover, :focus-visible)::before, .footer-social-links a:is(:hover, :focus-visible)::before {
  transform: translateY(-2px) scale(1.08); filter: brightness(1.06);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.6), 0 8px 18px -4px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.4);
}
@media (pointer: coarse), (max-width: 720px) { .top-social-link::before { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .top-social-link::before, .footer-social-links a::before { transition: none; } }

/* Owner fix (1 Dec): the lit tower window blends into the real window (frame bars stay visible)
   instead of sitting on top of it like a flat yellow sticker. */
.hero-trace .lamp-window { mix-blend-mode: screen; fill: #ffc94a; }
.hero-trace .lamp-halo { mix-blend-mode: screen; }

.hero-trace image.lamp-window { mix-blend-mode: normal; }
/* Hindi: the top bar's "Follow us" label (owner request, 3 Dec) */
html[lang="hi"] .top-utility-social::before { content: "हमें फ़ॉलो करें"; }
/* Hindi: keep the results award plaque title at its designed size (owner polish, 3 Dec) */
:lang(hi) .rs-award-title:not(.is-latin) { font-size: clamp(1.55rem, 2.6vw, 2.3rem); }
/* Hindi review (3 Dec): the top bar's "Follow us" label shows only on wide screens in English;
   the Hindi label was showing on phones too, where it wrapped and was cut off. */
@media (max-width: 959.98px) { html[lang="hi"] .top-utility-social::before { content: none; } }
html[lang="hi"] .top-utility-social::before { white-space: nowrap; }

/* Hindi notice dates: upright Devanagari (owner Hindi request, 3 Dec) */
:lang(hi) #news-list > li > strong:first-child { font-style: normal; font-family: inherit; }
/* Hindi review (3 Dec): the mission, vision and staff-pledge sentences use the Hindi heading face,
   so their dashes and digits are not the hairline Latin ones (they looked faint beside Devanagari). */
:lang(hi) .mvv-statement p, :lang(hi) .staff-pledge { font-family: var(--f-display); }
:lang(hi) .mvv-statement p { line-height: 1.6; }
