:root {
  --magenta: #d3983a;
  --navy: #052248;
  --navy-deep: #052248;
  --heading: #052248;
  --ink: #052248;
  --muted: #5a6b78;
  --sun: #d3983a;
  --yard: #e4710a;
  --blue: #052248;
  --chalk: #ffffff;
  --board: #052248;
  --paper: #ffffff;
  --page: #ffffff;
  --surface: #ffffff;
  --border: rgba(30, 58, 76, 0.10);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --page-pad: 1.25rem;
  --radius: 22px;
  --shadow: 0 18px 48px rgba(30, 58, 76, 0.10);
  --header-bg: #ffffff;
  --header-bg-scrolled: #ffffff;
  --header-shadow: 0 12px 28px rgba(30, 58, 76, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --nav-pill-bg: rgba(255, 255, 255, 0.86);
  --nav-text: #052248;
  --quiet-bg: rgba(5, 34, 72, 0.08);
  --hero-bg: #ffffff;
  --hero-text: #052248;
  --hero-lede: #2c3d58;
  --hero-border: rgba(5, 34, 72, 0.28);
  --fact-bg: #ffffff;
  --footer-bg: #ffffff;
  --mobile-nav-bg: #ffffff;
  --campus-bg: #ffffff;
  --bot-panel: #ffffff;
  --bot-head: #f7fbff;
  --bot-messages: #f7fbff;
  --bot-msg: #fff;
  --bot-chips: #eef7fc;
  --map-bg: #ffffff;
  --legend-bg: #fff;
  --form-bg: rgba(255, 255, 255, 0.92);
  --caption: #5a6b78;
}

::selection {
  background: rgba(5, 34, 72, 0.28);
  color: #052248;
}

html[data-theme="light"] {
  color-scheme: light;
  --magenta: #d3983a;
  --navy: #052248;
  --heading: #052248;
  --ink: #152033;
  --muted: #4d5a6e;
  --paper: #ffffff;
  --page: #ffffff;
  --surface: #ffffff;
  --border: rgba(30, 58, 76, 0.12);
  --shadow: 0 18px 48px rgba(30, 58, 76, 0.12);
  --header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 248, 0.92));
  --header-bg-scrolled: rgba(255, 255, 255, 0.98);
  --header-shadow: 0 12px 28px rgba(30, 58, 76, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --nav-pill-bg: rgba(255, 255, 255, 0.82);
  --nav-text: #052248;
  --quiet-bg: rgba(5, 34, 72, 0.08);
  --hero-bg:
    radial-gradient(ellipse 50% 50% at 92% 88%, rgba(5, 34, 72, 0.12), transparent 52%),
    radial-gradient(ellipse 40% 42% at 8% 12%, rgba(5, 34, 72, 0.10), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f7f3ea 52%, #f3e7c8 100%);
  --hero-text: #052248;
  --hero-lede: #2c3d58;
  --hero-border: rgba(5, 34, 72, 0.28);
  --fact-bg: linear-gradient(160deg, #ffffff, rgba(255, 250, 242, 0.94));
  --footer-bg: #ffffff;
  --mobile-nav-bg: #ffffff;
  --campus-bg: #ffffff;
  --bot-panel: #ffffff;
  --bot-head: #f7fbff;
  --bot-messages: #f7fbff;
  --bot-msg: #fff;
  --bot-chips: #eef7fc;
  --map-bg: #ffffff;
  --legend-bg: #fff;
  --form-bg: rgba(255, 255, 255, 0.72);
  --caption: #4d5a6e;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  --header-h: 4.75rem;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: hidden;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 42% 32% at 6% 0%, rgba(5, 34, 72, 0.10), transparent 58%),
    radial-gradient(ellipse 38% 30% at 98% 6%, rgba(211, 152, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 34% at 90% 100%, rgba(228, 113, 10, 0.10), transparent 58%),
    radial-gradient(ellipse 34% 26% at 4% 92%, rgba(5, 34, 72, 0.08), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background-image: none;
  background-color: var(--page);
}


body.is-introing {
  overflow: hidden;
}

/* —— Interactive campus page loader —— */
.site-intro {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-intro.is-leaving {
  pointer-events: none;
}

.site-intro.is-leaving .intro-stage {
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  transition: opacity 0.45s ease, transform 0.55s ease;
}

.site-intro.is-leaving .intro-plane {
  animation: none;
  opacity: 0;
}

.site-intro.is-leaving .intro-gates {
  opacity: 1;
}

.site-intro.is-leaving .intro-gate-l {
  transform: translateX(-105%);
}

.site-intro.is-leaving .intro-gate-r {
  transform: translateX(105%);
}

.site-intro.is-gone {
  opacity: 0;
  visibility: hidden;
}

.intro-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 35% at 78% 16%, rgba(239, 184, 32, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 16% 28%, rgba(5, 34, 72, 0.22), transparent 65%),
    linear-gradient(165deg, #ffffff 0%, #f7fbff 46%, #f4faf4 100%);
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.intro-sun {
  position: absolute;
  top: 9%;
  right: 13%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c0, #efb820 55%, #e09810);
  box-shadow: 0 0 56px rgba(239, 184, 32, 0.6);
  animation: intro-sun-rise 1.4s ease-out both;
}

.intro-ray {
  position: absolute;
  top: 9%;
  right: 13%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 12deg, rgba(255, 233, 160, 0.35) 12deg 18deg, transparent 18deg 42deg, rgba(255, 233, 160, 0.28) 42deg 48deg, transparent 48deg);
  animation: intro-ray-spin 18s linear infinite;
  pointer-events: none;
}

.intro-cloud {
  position: absolute;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(0.4px);
  animation: intro-cloud-drift 9s ease-in-out infinite;
}

.intro-cloud-a {
  top: 14%;
  left: 6%;
  width: 120px;
  height: 36px;
  box-shadow: 30px 8px 0 -4px rgba(255, 255, 255, 0.68), 56px 4px 0 -8px rgba(255, 255, 255, 0.55);
}

.intro-cloud-b {
  top: 20%;
  right: 26%;
  width: 86px;
  height: 28px;
  opacity: 0.88;
  animation-delay: -2.4s;
  box-shadow: 24px 6px 0 -4px rgba(255, 255, 255, 0.62);
}

.intro-cloud-c {
  top: 28%;
  left: 38%;
  width: 64px;
  height: 22px;
  opacity: 0.7;
  animation-delay: -5s;
  box-shadow: 18px 5px 0 -3px rgba(255, 255, 255, 0.55);
}

.intro-bird {
  position: absolute;
  width: 14px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    -6px 0 0 -1px #052248,
    6px 0 0 -1px #052248;
  opacity: 0.45;
  animation: intro-bird-fly 11s linear infinite;
}

.intro-bird::before,
.intro-bird::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 3px;
  border-radius: 50%;
  background: #052248;
}

.intro-bird::before { left: -8px; transform: rotate(-28deg); }
.intro-bird::after { right: -8px; transform: rotate(28deg); }

.intro-bird-1 { top: 18%; left: -10%; animation-duration: 14s; }
.intro-bird-2 { top: 26%; left: -10%; animation-duration: 17s; animation-delay: -6s; opacity: 0.35; }

.intro-yard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background:
    linear-gradient(180deg, transparent, rgba(47, 155, 116, 0.38) 16%, #2f9b74 52%, #1f6e52);
  clip-path: polygon(0 30%, 10% 18%, 24% 28%, 40% 12%, 58% 26%, 74% 10%, 90% 22%, 100% 16%, 100% 100%, 0 100%);
}

.intro-path {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(180px, 36vw);
  height: 18%;
  margin-left: calc(min(180px, 36vw) / -2);
  background: linear-gradient(180deg, rgba(214, 186, 110, 0.55), rgba(184, 150, 80, 0.75));
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}

.intro-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #efb820;
  box-shadow: 0 0 10px rgba(239, 184, 32, 0.8);
  pointer-events: none;
  animation: intro-spark 0.7s ease-out forwards;
}

.intro-plane {
  position: absolute;
  top: 22%;
  left: -8%;
  width: 34px;
  height: 18px;
  z-index: 2;
  background: #fffaf2;
  clip-path: polygon(0 45%, 62% 0, 100% 50%, 62% 100%, 0 55%, 48% 50%);
  filter: drop-shadow(0 4px 8px rgba(22, 53, 111, 0.28));
  animation: intro-plane-fly 7.5s linear infinite;
  opacity: 0.92;
}

.intro-stage {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: min(440px, calc(100vw - 2rem));
  padding: 1rem;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.intro-kicker {
  margin: 0;
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  animation: intro-brand-in 0.55s ease both;
}

.intro-orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  pointer-events: none;
  z-index: 0;
}

.intro-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(var(--a)) translateY(-126px);
  animation: intro-slot-float 3.2s ease-in-out infinite;
}

.intro-slot:focus-visible .intro-motif {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.intro-slot.is-collected .intro-motif {
  background: linear-gradient(145deg, #ffe6a0, #fffaf2);
  box-shadow: 0 0 0 2px var(--magenta), 0 8px 20px rgba(5, 34, 72, 0.25);
  transform: rotate(calc(var(--a) * -1)) translate(-50%, -50%) scale(1.08);
}

.intro-motif {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  opacity: 0;
  transform: rotate(calc(var(--a) * -1)) translate(-50%, -50%);
  animation: intro-motif-in 0.55s ease forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.intro-slot:hover .intro-motif {
  transform: rotate(calc(var(--a) * -1)) translate(-50%, -50%) scale(1.12);
}

.intro-slot:nth-child(1) { animation-delay: 0s; }
.intro-slot:nth-child(2) { animation-delay: -0.4s; }
.intro-slot:nth-child(3) { animation-delay: -0.8s; }
.intro-slot:nth-child(4) { animation-delay: -1.2s; }
.intro-slot:nth-child(5) { animation-delay: -1.6s; }
.intro-slot:nth-child(6) { animation-delay: -2s; }

.intro-slot:nth-child(1) .intro-motif { animation-delay: 0.3s; }
.intro-slot:nth-child(2) .intro-motif { animation-delay: 0.4s; }
.intro-slot:nth-child(3) .intro-motif { animation-delay: 0.5s; }
.intro-slot:nth-child(4) .intro-motif { animation-delay: 0.6s; }
.intro-slot:nth-child(5) .intro-motif { animation-delay: 0.7s; }
.intro-slot:nth-child(6) .intro-motif { animation-delay: 0.8s; }

.intro-motif-pi {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.95);
  box-shadow: var(--shadow);
  font-size: 1.2rem;
}

.intro-motif-h2o {
  width: auto;
  height: 30px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.95);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-family: var(--sans);
}

.intro-motif-atom {
  width: 30px;
  height: 30px;
  border: 2px solid var(--magenta);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.95);
  box-shadow: var(--shadow);
}

.intro-motif-atom::before,
.intro-motif-atom::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid rgba(30, 58, 122, 0.45);
  border-radius: 50%;
}

.intro-motif-atom::after {
  inset: 2px -6px;
  transform: rotate(55deg);
}

.intro-motif-bat {
  width: 11px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8b1e1e 0 28%, #e8c35a 28%);
  box-shadow: var(--shadow);
}

.intro-motif-ball {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #fff 0 16%, transparent 17%),
    #111;
  border: 1px solid #fff;
  box-shadow: var(--shadow);
}

.intro-motif-book {
  width: 28px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta) 0 48%, #fffaf2 48% 52%, var(--navy) 52%);
  box-shadow: 0 2px 6px rgba(22, 53, 111, 0.2);
}

.intro-board {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 9px;
  border-radius: 14px;
  background: linear-gradient(145deg, #7a5633, #5a3d24 45%, #4a321c);
  box-shadow: 0 24px 55px rgba(22, 53, 111, 0.3);
  animation: intro-board-pop 0.85s cubic-bezier(0.34, 1.4, 0.64, 1) 0.12s both;
}

.intro-board-glow {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(120deg, transparent, rgba(239, 184, 32, 0.35), transparent 55%, rgba(5, 34, 72, 0.3), transparent);
  background-size: 220% 220%;
  animation: intro-board-shine 3.5s ease-in-out infinite;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.intro-board-inner {
  position: relative;
  z-index: 1;
  border-radius: 7px;
  padding: 1.4rem 1.3rem 1.2rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(155deg, #25684f, var(--board));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
  min-height: 176px;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  overflow: hidden;
}

.intro-chalk {
  margin: 0;
  min-height: 2.5rem;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 4.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--chalk);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
}

.intro-chalk::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: rgba(244, 240, 228, 0.75);
  animation: intro-caret 0.7s steps(1) infinite;
}

.site-intro.is-leaving .intro-chalk::after {
  display: none;
}

.intro-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: intro-brand-in 0.6s ease 0.85s both;
}

.intro-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 11px;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: intro-logo-pulse 2.4s ease-in-out infinite;
}

.intro-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
  color: #ffe6a0;
  line-height: 1.1;
}

.intro-brand span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 240, 228, 0.72);
}

.intro-tip {
  margin: 0;
  position: relative;
  z-index: 1;
  min-height: 1.4em;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--navy);
  animation: intro-brand-in 0.5s ease 1s both;
}

.intro-hint {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 242, 251, 0.72);
}

.intro-progress-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(260px, 80%);
}

.intro-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(237, 242, 251, 0.14);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

.intro-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--magenta), var(--navy) 55%, #efb820);
  background-size: 200% 100%;
  animation: intro-progress-shine 1.8s linear infinite;
  transition: width 0.35s ease;
}

.intro-percent {
  min-width: 2.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.intro-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.2rem;
  animation: intro-brand-in 0.5s ease 1.15s both;
}

.intro-bell,
.intro-enter {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.intro-bell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 250, 242, 0.92);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(22, 53, 111, 0.14);
}

.intro-bell:hover {
  transform: translateY(-2px);
}

.intro-bell.is-ringing .intro-bell-icon {
  animation: intro-bell-ring 0.55s ease;
}

.intro-bell-icon {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 45% 45%;
  background: #efb820;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.08);
  position: relative;
}

.intro-bell-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #c48910;
}

.intro-enter {
  background: linear-gradient(120deg, var(--magenta), #052248);
  color: #fff;
  box-shadow: 0 10px 24px rgba(5, 34, 72, 0.3);
}

.intro-enter:hover:not(:disabled) {
  transform: translateY(-2px);
}

.intro-enter:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.intro-enter.is-ready {
  opacity: 1;
  animation: intro-enter-pulse 1.2s ease-in-out infinite;
}

.intro-gates {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.intro-gate {
  background:
    repeating-linear-gradient(
      90deg,
      #5a3d24 0 10px,
      #6d4b2d 10px 12px,
      #5a3d24 12px 22px
    ),
    linear-gradient(180deg, #7a5633, #4a321c);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.2, 1);
}

.intro-gate-l {
  border-right: 4px solid #efb820;
  transform: translateX(0);
}

.intro-gate-r {
  border-left: 4px solid #efb820;
  transform: translateX(0);
}

@keyframes intro-sun-rise {
  from { transform: translateY(28px) scale(0.65); opacity: 0; }
  to { transform: none; opacity: 1; }
}

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

@keyframes intro-cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(16px); }
}

@keyframes intro-bird-fly {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(60vw) translateY(-10px); }
  100% { transform: translateX(120vw) translateY(4px); }
}

@keyframes intro-plane-fly {
  0% { transform: translate(-10vw, 0) rotate(-8deg); opacity: 0; }
  8% { opacity: 0.95; }
  50% { transform: translate(55vw, -18px) rotate(4deg); }
  92% { opacity: 0.95; }
  100% { transform: translate(115vw, 8px) rotate(10deg); opacity: 0; }
}

@keyframes intro-board-pop {
  from { opacity: 0; transform: scale(0.88) rotate(-1.5deg); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-board-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes intro-brand-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-motif-in {
  from { opacity: 0; transform: rotate(calc(var(--a) * -1)) translate(-50%, -50%) scale(0.55); }
  to { opacity: 0.98; transform: rotate(calc(var(--a) * -1)) translate(-50%, -50%) scale(1); }
}

@keyframes intro-slot-float {
  0%, 100% { transform: rotate(var(--a)) translateY(-126px); }
  50% { transform: rotate(var(--a)) translateY(-134px); }
}

@keyframes intro-caret {
  50% { opacity: 0; }
}

@keyframes intro-progress-shine {
  to { background-position: 200% 0; }
}

@keyframes intro-logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes intro-bell-ring {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(18deg); }
  40% { transform: rotate(-16deg); }
  60% { transform: rotate(12deg); }
  80% { transform: rotate(-8deg); }
}

@keyframes intro-enter-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(5, 34, 72, 0.3); }
  50% { box-shadow: 0 12px 30px rgba(5, 34, 72, 0.5); }
}

@keyframes intro-spark {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx, 20px), var(--sy, -30px)) scale(0.2); }
}

@media (max-width: 560px) {
  .intro-orbit {
    width: 250px;
    height: 250px;
    margin: -125px 0 0 -125px;
  }

  .intro-slot {
    transform: rotate(var(--a)) translateY(-108px);
  }

  @keyframes intro-slot-float {
    0%, 100% { transform: rotate(var(--a)) translateY(-108px); }
    50% { transform: rotate(var(--a)) translateY(-114px); }
  }

  .intro-actions {
    width: 100%;
  }

  .intro-bell,
  .intro-enter {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-sun,
  .intro-ray,
  .intro-cloud,
  .intro-bird,
  .intro-plane,
  .intro-board,
  .intro-board-glow,
  .intro-brand,
  .intro-brand img,
  .intro-kicker,
  .intro-tip,
  .intro-actions,
  .intro-motif,
  .intro-slot,
  .intro-progress-fill,
  .intro-enter.is-ready {
    animation: none !important;
  }

  .intro-motif,
  .intro-brand,
  .intro-kicker,
  .intro-tip,
  .intro-actions,
  .intro-board {
    opacity: 1;
    transform: none;
  }

  .intro-motif {
    transform: rotate(calc(var(--a) * -1)) translate(-50%, -50%);
  }

  .site-intro.is-leaving .intro-gate-l,
  .site-intro.is-leaving .intro-gate-r {
    transition-duration: 0.25s;
  }
}

.campus-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 22%, transparent 52%),
    var(--campus-bg);
  overflow: hidden;
}

html[data-theme="light"] .campus-scene {
  background:
    radial-gradient(ellipse 50% 36% at 12% 18%, rgba(5, 34, 72, 0.10), transparent 62%),
    radial-gradient(ellipse 46% 40% at 88% 12%, rgba(211, 152, 58, 0.10), transparent 58%),
    radial-gradient(ellipse 40% 36% at 78% 88%, rgba(228, 113, 10, 0.10), transparent 58%),
    #ffffff;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.glow-sun {
  top: -4%;
  right: 6%;
  width: 220px;
  height: 220px;
  background: rgba(211, 152, 58, 0.18);
  animation: pulse-soft 7s ease-in-out infinite;
}

.glow-yard {
  left: -8%;
  bottom: 8%;
  width: 320px;
  height: 320px;
  background: rgba(5, 34, 72, 0.14);
  animation: pulse-soft 9s ease-in-out infinite reverse;
}

.motif {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.motif-book {
  top: 28%;
  left: 4%;
  width: 54px;
  height: 70px;
  background: linear-gradient(90deg, #052248 0 8px, #fffaf2 8px);
  border-radius: 3px 8px 8px 3px;
  box-shadow: inset -10px 0 0 rgba(22, 53, 111, 0.08);
  transform: rotate(-14deg);
  animation: float-y 6.5s ease-in-out infinite;
}

.motif-pencil {
  top: 58%;
  right: 5%;
  width: 14px;
  height: 90px;
  background: linear-gradient(180deg, #efb820 0 18%, #f6d56a 18% 78%, #d9a016 78% 88%, #333 88%);
  border-radius: 3px;
  transform: rotate(28deg);
  animation: float-y 7.5s ease-in-out infinite reverse;
}

.motif-pencil::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid #efb820;
}

.motif-ball {
  bottom: 18%;
  left: 18%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, transparent 35%),
    radial-gradient(circle at 50% 50%, #2f9b74, #1f6e52);
  transform: rotate(-8deg);
  animation: float-y 8s ease-in-out infinite;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.stem-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.stem-symbol {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--serif);
  font-size: var(--size, 1.55rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0.22;
  user-select: none;
  animation: stem-drift var(--d, 20s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  text-shadow:
    0 1px 0 rgba(10, 16, 24, 0.8),
    0 8px 18px rgba(0, 0, 0, 0.25);
}

.stem-math {
  color: color-mix(in srgb, var(--magenta) 75%, var(--navy));
}

.stem-physics {
  color: color-mix(in srgb, var(--navy) 80%, #3d6bb5);
  font-family: var(--sans);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.stem-chem {
  color: color-mix(in srgb, var(--yard) 70%, var(--navy));
  font-family: var(--sans);
  font-weight: 750;
}

.stem-atom {
  width: 40px;
  height: 40px;
  opacity: 0.18;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(5, 34, 72, 0.45);
  animation-name: stem-spin-drift;
}

.stem-atom::before,
.stem-atom::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid color-mix(in srgb, var(--magenta) 55%, transparent);
  border-radius: 50%;
}

.stem-atom::before {
  transform: rotate(55deg) scaleX(1.15);
}

.stem-atom::after {
  transform: rotate(-55deg) scaleY(1.15);
  border-color: color-mix(in srgb, var(--yard) 55%, transparent);
}

@keyframes stem-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  25% {
    transform: translate3d(18px, -22px, 0) rotate(4deg);
  }
  50% {
    transform: translate3d(-12px, 16px, 0) rotate(-2deg);
  }
  75% {
    transform: translate3d(10px, 8px, 0) rotate(8deg);
  }
}

@keyframes stem-spin-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(14px, -18px, 0) rotate(180deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

.wrap {
  width: 100%;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.stack {
  display: grid;
  gap: 2rem;
  padding-top: 1.6rem;
  padding-bottom: 3.2rem;
}

.panel {
  position: relative;
  border-radius: var(--radius);
  padding: 2.4rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.18;
  color: var(--heading);
  margin: 0 0 0.55em;
}

em {
  font-style: italic;
  color: var(--magenta);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy-deep);
  color: white;
  padding: 0.55rem 0.9rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-sub {
  margin: -0.35rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, #052248, var(--magenta));
  color: white;
  box-shadow: 0 10px 24px rgba(5, 34, 72, 0.28);
}

.btn-quiet {
  background: var(--quiet-bg);
  color: var(--heading);
  border-color: var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(5, 34, 72, 0.22);
  box-shadow: var(--header-shadow);
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: rgba(5, 34, 72, 0.35);
  box-shadow: var(--header-shadow);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 34, 72, 0.55), rgba(5, 34, 72, 0.4), transparent);
  pointer-events: none;
}

.header-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 90% at 8% 50%, rgba(5, 34, 72, 0.08), transparent 70%),
    radial-gradient(ellipse 38% 80% at 92% 40%, rgba(5, 34, 72, 0.06), transparent 68%);
}

.header-star {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #052248;
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
  opacity: 0.28;
  animation: header-twinkle 3.6s ease-in-out infinite;
}

.header-star.s1 { top: 28%; left: 22%; }
.header-star.s2 { top: 58%; left: 46%; width: 4px; height: 4px; animation-delay: -1.2s; }
.header-star.s3 { top: 22%; right: 28%; animation-delay: -0.6s; }
.header-star.s4 { top: 64%; right: 18%; width: 3px; height: 3px; animation-delay: -2s; opacity: 0.4; }

@keyframes header-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .header-star {
    animation: none;
    opacity: 0.45;
  }
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 86px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  margin-right: auto;
}

.brand-logo-frame {
  display: block;
  height: clamp(64px, 8.2vw, 92px);
  width: auto;
  max-width: min(280px, 52vw);
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(211, 152, 58, 0.55),
    0 0 0 6px rgba(5, 34, 72, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.2rem 0.28rem;
  background: #fff;
}

.brand:hover .brand-logo-frame {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(211, 152, 58, 0.85),
    0 0 0 7px rgba(228, 113, 10, 0.18),
    0 16px 32px rgba(5, 34, 72, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: var(--nav-pill-bg);
  border: 1px solid rgba(5, 34, 72, 0.45);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  color: var(--nav-text);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: #052248;
  color: #fff;
  box-shadow: 0 8px 18px rgba(5, 34, 72, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
    gap: 0.9rem 1.1rem;
}

.site-nav a .nav-dot {
  display: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  background: #052248;
  border: 1px solid #1a8ac9;
  box-shadow: 0 8px 18px rgba(5, 34, 72, 0.4);
  margin-left: 0;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  transform: translateY(-1px);
  background: #052248;
  border-color: #052248;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(30, 58, 76, 0.35);
}

.header-phone .ico-phone,
.link-call .ico-phone {
  display: inline-grid;
  place-items: center;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
  transform-origin: 50% 50%;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.header-phone .ico-phone {
  width: 16px;
  opacity: 1;
}

.link-call .ico-phone {
  width: 0;
  overflow: hidden;
  opacity: 0;
}

.header-phone .ico-phone svg,
.link-call .ico-phone svg {
  display: block;
}

.header-phone:hover .ico-phone,
.header-phone:focus-visible .ico-phone,
.link-call:hover .ico-phone,
.link-call:focus-visible .ico-phone {
  opacity: 1;
  width: 16px;
  animation: phone-ring 0.45s ease-in-out infinite;
}

.link-call .ico-phone {
  color: #fff;
}

.link-wa .ico-wa {
  display: inline-grid;
  place-items: center;
  width: 0;
  height: 18px;
  opacity: 0;
  overflow: hidden;
  color: #25d366;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.link-wa .ico-wa svg {
  display: block;
  flex-shrink: 0;
}

.link-wa:hover .ico-wa,
.link-wa:focus-visible .ico-wa {
  opacity: 1;
  width: 18px;
  animation: wa-pop 0.35s ease;
}

.link-call,
.link-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(16deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(6deg); }
}

@keyframes wa-pop {
  0% { transform: scale(0.6); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .header-phone:hover .ico-phone,
  .link-call:hover .ico-phone,
  .link-wa:hover .ico-wa {
    animation: none;
  }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(120deg, #052248, #052248) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 210, 230, 0.28);
  box-shadow: 0 8px 18px rgba(5, 34, 72, 0.38);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(5, 34, 72, 0.5);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: var(--quiet-bg);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--heading);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle {
  display: none !important;
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 4.55rem;
  height: 2.45rem;
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 34, 72, 0.45);
  background: var(--nav-pill-bg);
  color: var(--heading);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.theme-toggle svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.theme-toggle-sun {
  color: #052248;
}

.theme-toggle-moon {
  color: var(--navy);
}

.theme-toggle-moon svg {
  fill: currentColor;
  stroke: none;
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #052248;
  box-shadow: 0 4px 10px rgba(5, 34, 72, 0.35);
  transform: translateX(2.05rem);
  transition: transform 0.25s ease, background 0.25s ease;
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(0);
  background: #052248;
  box-shadow: 0 4px 10px rgba(5, 34, 72, 0.35);
}

html[data-theme="light"] .hero h1 em {
  text-shadow: none;
}

html[data-theme="light"] .stem-symbol {
  opacity: 0.16;
  text-shadow: none;
}

html[data-theme="light"] .paper-grain {
  opacity: 0.18;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-thumb {
    transition: none;
  }
}

.hero {
  padding-top: 2rem;
  width: 100%;
  opacity: 0;
  animation: hero-fade-in 1.8s ease-in-out forwards;
}

.hero-copy {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  grid-template-areas:
    "name side"
    "facts facts";
  gap: 2.2rem 3rem;
  align-items: center;
  min-height: clamp(360px, 54vh, 540px);
  padding: 3.4rem 3.4rem 3.2rem 3.6rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.48);
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #052248 0%, #052248 100%);
  z-index: 2;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 56px;
  height: 56px;
  border-top: 2px solid rgba(5, 34, 72, 0.75);
  border-right: 2px solid rgba(5, 34, 72, 0.75);
  pointer-events: none;
  z-index: 2;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-b {
  width: 240px;
  height: 240px;
  right: -50px;
  bottom: -80px;
  background: rgba(5, 34, 72, 0.28);
  animation: hero-orb-drift 13s ease-in-out infinite reverse;
}

.hero-shine {
  display: none;
}

@keyframes hero-orb-drift {
  0%,
  100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, 18px) scale(1.12); }
}

@keyframes hero-shine {
  0% { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}

.gallery {
  padding-top: 1.4rem;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2.4 / 1;
  background: #101820;
  border: 1px solid rgba(5, 34, 72, 0.35);
  box-shadow: var(--shadow);
}

.gallery-frame {
  position: relative;
  width: 100%;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.58);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: #052248;
  outline: none;
}

.gallery-prev {
  left: 0.75rem;
}

.gallery-next {
  right: 0.75rem;
}

.gallery-nav[hidden] {
  display: none;
}

.gallery-nav svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity 1.15s ease;
}

.gallery-slide.is-active {
  opacity: 1;
}

.after-hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#about,
#gallery,
#schools,
#sports,
#contact,
#legacy,
#admissions {
  scroll-margin-top: calc(var(--header-h, 4.75rem) + 1rem);
}

body.is-page-ready .after-hero {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.after-hero .reveal {
  opacity: 1;
  transform: none;
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation-duration: 0.8s;
  }

  .hero-orb,
  .hero-shine {
    animation: none;
  }
}

.hero h1 {
  position: relative;
  z-index: 2;
  grid-area: name;
  display: grid;
  gap: 0.28rem;
  margin: 0;
  color: var(--hero-text);
  line-height: 0.95;
  max-width: none;
}

.hero-kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hero-text);
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-size: clamp(3.1rem, 9vw, 6.4rem);
  color: var(--magenta);
  letter-spacing: -0.03em;
  text-shadow:
    0 0 28px rgba(5, 34, 72, 0.45),
    0 12px 40px rgba(5, 34, 72, 0.35);
}

.hero-rest {
  display: block;
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--hero-text);
}

.hero-side {
  position: relative;
  z-index: 2;
  grid-area: side;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-left: 1.6rem;
  border-left: 1px solid rgba(5, 34, 72, 0.32);
}

.lede {
  position: relative;
  z-index: 2;
  font-size: 1.18rem;
  color: var(--hero-lede);
  max-width: none;
  font-weight: 550;
  line-height: 1.7;
  margin: 0;
  padding-left: 0;
  border-left: 0;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0;
}

.hero .btn-primary {
  min-height: 50px;
  padding-inline: 1.45rem;
  box-shadow:
    0 12px 28px rgba(5, 34, 72, 0.4),
    0 0 24px rgba(5, 34, 72, 0.28);
}

.hero .facts {
  grid-area: facts;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.fact-tile {
  position: relative;
  text-align: left;
  padding: 1.25rem 1.15rem 1.15rem;
  border-radius: 16px;
  background: var(--fact-bg);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.fact-tile::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--magenta) 10%, transparent);
}

.fact-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--magenta), #e7ba6c);
  box-shadow: 0 6px 14px rgba(5, 34, 72, 0.2);
}

.fact-icon-campus {
  background: linear-gradient(135deg, var(--navy-deep), #3d6bb5);
}

.fact-icon-cbse {
  background: linear-gradient(135deg, var(--sun), #f0cb5a);
}

.fact-icon-arena {
  background: linear-gradient(135deg, var(--yard), #55c197);
}

.fact-value {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.15rem, 2.6vw, 2.7rem);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.fact-value[data-static="CBSE"] {
  font-size: clamp(1.35rem, 1.7vw, 1.65rem);
}

.fact-label {
  display: block;
  font-family: var(--sans);
  color: var(--magenta);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.fact-note {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.fact-label-atlantis {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--navy);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.fact-atlantis {
  display: inline-block;
  margin-left: 0.12em;
  color: #e87722;
  font-family: var(--sans);
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.about h2,
.schools h2,
.sports h2,
.contact h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.about-copy p,
.sports p,
.jobs p,
.contact-details p {
  color: var(--muted);
  font-weight: 500;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.pillars li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(5, 34, 72, 0.16);
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--navy);
}

.about-photo {
  position: relative;
  overflow: hidden;
  margin: 0; /* reset UA <figure> side margins that shove the image right */
  border-radius: 20px;
  border: 5px solid rgba(237, 242, 251, 0.18);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  transform: rotate(1.5deg);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
  --spot-x: 50%;
  --spot-y: 40%;
}

.about-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.about:hover .about-photo img {
  transform: scale(1.06);
}

.photo-caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: rgba(10, 16, 24, 0.88);
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
}

.legacy {
  padding: 0.9rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(239, 184, 32, 0.16), transparent 40%),
    var(--surface);
}

.legacy-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(22, 53, 111, 0.06);
}

.legacy-frame img {
  width: 100%;
  transition: transform 0.8s ease;
}

.legacy:hover .legacy-frame img {
  transform: scale(1.02);
}

.section-head {
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 1;
}

.schools {
  overflow: visible;
}

.school-path {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 9.5rem;
  height: 3px;
  background: linear-gradient(90deg, #1e3a7a, #9a1b5c, #de1e88, #e87722, #c41e3a);
  opacity: 0.35;
  border-radius: 999px;
  pointer-events: none;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
  perspective: 1400px;
  align-items: start;
  justify-items: stretch;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.locker {
  position: relative;
  cursor: pointer;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.locker-inner {
  display: grid;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.locker.is-open .locker-inner {
  transform: rotateY(180deg);
}

.locker-front,
.locker-back {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 53, 111, 0.1);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(22, 53, 111, 0.12);
  min-width: 0;
}

.locker-front::before,
.locker-back::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--house, var(--magenta));
  z-index: 2;
}

.locker-front {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.locker-back {
  position: relative;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.1rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--house, var(--magenta)) 18%, var(--paper)), var(--paper));
}

.locker-front img {
  width: 100%;
  height: 100%;
  min-height: min(18vh, 160px);
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 0.85rem 0.7rem;
  flex: 1 1 auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}

.locker-front-meta {
  display: none;
}

.school-phone {
  display: inline-flex;
  align-items: center;
  margin: 0.15rem 0 0.65rem;
  color: var(--house, var(--magenta));
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.school-phone:hover {
  text-decoration: underline;
}

.tap-hint {
  margin: 0.35rem 0 0;
  color: var(--house, var(--magenta));
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.locker-back h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.locker-back p {
  color: var(--muted);
  font-weight: 550;
  margin: 0 0 0.85rem;
}

.locker-close {
  margin-top: 1rem;
  border: 0;
  background: rgba(237, 242, 251, 0.1);
  color: var(--heading);
  font: inherit;
  font-weight: 750;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
}

.year {
  margin: 0;
  color: var(--house, var(--magenta));
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.locker-front-meta h3,
.locker-back h3 {
  margin: 0.3rem 0 0.25rem;
  font-size: 1.05rem;
  color: var(--ink);
  font-family: var(--serif);
}

.school-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.school-links a {
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
}

.school-links .school-directions,
.locker:hover .school-links a {
  color: var(--house, var(--magenta));
}

.sports {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  min-height: 380px;
  background: #0b1220;
}

.stadium {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stadium-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.stadium-flare {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 18%, rgba(255, 248, 210, 0.18), transparent 58%),
    radial-gradient(ellipse 50% 40% at 84% 16%, rgba(255, 248, 210, 0.16), transparent 55%),
    linear-gradient(90deg, rgba(8, 12, 20, 0.2) 0%, rgba(8, 12, 20, 0.42) 48%, rgba(8, 12, 20, 0.78) 100%);
}

.sports-mark,
.sports-copy {
  position: relative;
  z-index: 1;
}

.sports-copy {
  background: transparent;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sports-copy .eyebrow,
.sports-copy h2,
.sports-copy p,
.sports-copy .join {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.sports-copy h2 {
  color: #fff;
}

.sports-copy p,
.sports-copy .join {
  color: #f3f0e8;
}

.sports-copy .join a {
  color: var(--magenta);
}

.sports-mark {
  margin: 0;
  background: white;
  padding: 1rem;
  border-radius: 22px;
  border: 2px solid rgba(47, 155, 116, 0.2);
  box-shadow: 0 14px 30px rgba(47, 155, 116, 0.14);
}

.sports-mark img {
  width: 100%;
}

.join a {
  color: var(--magenta);
  font-weight: 750;
  text-decoration: none;
}


.quote {
  display: grid;
  grid-template-columns: minmax(100px, 150px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.chalkboard {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 1.25rem clamp(0.85rem, 2vw, 1.4rem);
}

.chalkboard .chairman-photo {
  width: 100%;
  max-width: 150px;
  height: 190px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  justify-self: center;
}

.board-frame {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border: 8px solid #6d4b2d;
  border-radius: 10px;
  background: #5a3d24;
  box-shadow: var(--shadow);
  padding: 6px;
  overflow: hidden;
  box-sizing: border-box;
}

.board-surface {
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border-radius: 4px;
  padding: 1.1rem clamp(0.85rem, 2vw, 1.35rem) 1rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.07), transparent 42%),
    linear-gradient(155deg, #25684f, var(--board));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  box-sizing: border-box;
  cursor: crosshair;
}

.chalkboard p,
.chalk-quote {
  font-family: var(--sans);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--chalk);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 0 1px rgba(255, 255, 255, 0.15);
  letter-spacing: 0.01em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.chalk-board-area {
  position: relative;
  min-height: 8.5rem;
  margin-bottom: 0.85rem;
  padding-right: 4.75rem;
  padding-bottom: 4.25rem;
}

.chalk-quote {
  position: relative;
  z-index: 1;
  white-space: normal;
}

.chalk-quote .chalk-word {
  display: inline-block;
  white-space: nowrap;
}

.chalk-quote .chalk-char {
  display: inline;
  opacity: 0;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.chalk-quote .chalk-char.is-written {
  opacity: 1;
  animation: chalk-settle 0.28s ease forwards;
}

.chalk-quote .chalk-char.is-erased {
  opacity: 0;
  filter: blur(1.5px);
  animation: none;
}

.chalk-quote .chalk-space {
  display: inline;
}

@keyframes chalk-settle {
  0% {
    opacity: 0.35;
    filter: blur(0.6px);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}

/* Child stands to the right of the chalk tip (tip = left:0, top:~28 of this box) */
.chalk-child {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 90px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s ease;
}

.chalk-child.is-writing {
  opacity: 1;
}

.child-head {
  position: absolute;
  top: 2px;
  left: 42px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0c7a0;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.08);
}

.child-head::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 1px;
  right: 1px;
  height: 9px;
  border-radius: 9px 9px 2px 2px;
  background: #1e3a7a;
}

.child-body {
  position: absolute;
  top: 20px;
  left: 40px;
  width: 24px;
  height: 30px;
  border-radius: 7px;
  background: #052248;
}

.child-arm {
  position: absolute;
  top: 25px;
  left: 16px;
  width: 28px;
  height: 8px;
  border-radius: 5px;
  background: #f0c7a0;
  transform-origin: 100% 50%;
  transform: rotate(-6deg);
}

.chalk-child.is-writing .child-arm {
  animation: chalk-arm-write 0.34s ease-in-out infinite;
}

/* Fist grips mid-chalk; tip sticks out left to the letter */
.child-hand {
  position: absolute;
  left: -1px;
  top: -3px;
  width: 12px;
  height: 13px;
  border-radius: 55% 45% 50% 50%;
  background: #e8b892;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.child-hand::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 5px;
  height: 8px;
  border-radius: 2px;
  background: #e0ad82;
  transform: rotate(18deg);
}

.chalk-piece {
  position: absolute;
  left: -16px;
  top: 1px;
  width: 22px;
  height: 5px;
  border-radius: 1.5px;
  background: linear-gradient(90deg, #fffef6 0%, #f2e8cc 55%, #d9ccae 100%);
  box-shadow: 0 0 6px rgba(244, 240, 228, 0.45);
  z-index: 2;
  transform: rotate(-4deg);
  transform-origin: right center;
}

.chalk-piece::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 1px 0 0 1px;
  background: #fff;
  opacity: 0.85;
}

.child-leg {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 24px;
  border-radius: 3px;
  background: #1e3a7a;
}

.child-leg-l { left: 42px; }
.child-leg-r { left: 54px; }

@keyframes chalk-arm-write {
  0%, 100% { transform: rotate(-8deg) translateX(0); }
  50% { transform: rotate(-2deg) translateX(-1px); }
}

.board-surface cite {
  display: block;
  font-style: normal;
  font-weight: 750;
  font-size: 0.95rem;
  color: #ffe6a0;
  font-family: var(--sans);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.chalkboard.is-signed .board-surface cite {
  opacity: 1;
  transform: none;
}

.board-surface cite span {
  display: block;
  font-weight: 500;
  color: rgba(244, 240, 228, 0.72);
}



.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}

.panel.contact {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hours-badge {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: rgba(47, 155, 116, 0.12);
  color: var(--yard) !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .hours-badge {
  background: #e7f6ef;
  color: #1c6b4a !important;
  border: 1px solid rgba(47, 155, 116, 0.28);
}

.contact-map {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--map-bg);
  min-height: 320px;
}

#school-map {
  width: 100%;
  height: 360px;
  z-index: 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.9rem 1rem 0;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--legend-bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.map-legend-item:hover,
.map-legend-item.is-active {
  transform: translateY(-1px);
  border-color: var(--school-color, var(--magenta));
  box-shadow: 0 8px 18px rgba(22, 53, 111, 0.12);
}

.map-legend-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--school-color, var(--magenta));
}

.map-hint {
  margin: 0.75rem 1rem 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.school-marker-wrap {
  background: transparent;
  border: 0;
}

.school-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 140px;
  height: 52px;
  pointer-events: none;
}

.school-marker {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--marker-color, var(--magenta));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(22, 53, 111, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.school-marker-num {
  transform: rotate(45deg);
}

.school-marker-name {
  max-width: 136px;
  margin-bottom: 0.2rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #101820;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.school-marker-wrap.is-active .school-marker-name {
  opacity: 1;
  transform: translateY(0);
}

.school-marker-wrap.is-active .school-marker,
.school-marker-wrap:hover .school-marker {
  transform: rotate(-45deg) scale(1.18);
  box-shadow: 0 10px 22px rgba(22, 53, 111, 0.4);
}

.contact-details .btn {
  margin: 0 0.5rem 0.5rem 0;
}

.jobs {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 2px dashed var(--border);
}

.jobs h3 {
  font-size: 1.35rem;
}

.form-title {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: 16px;
  background: var(--form-bg);
  border: 1px solid var(--border);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--border);
  background: transparent;
  padding: 0.65rem 0.2rem;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--magenta);
}

.form-note {
  margin: 0;
  color: var(--magenta);
  font-weight: 700;
}

.site-footer {
  margin-top: 0.4rem;
  background: #ffffff;
  border-top: 0;
  box-shadow: inset 0 4px 0 0 transparent;
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #052248, #e4710a, #d3983a, #e87722);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
  padding: 1.8rem 0 1.2rem;
}

.footer-logo {
  height: 108px;
  width: auto;
  max-width: 220px;
  background: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  object-fit: contain;
}

.footer-title {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-weight: 750;
  font-size: 0.95rem;
}

.footer-info p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 550;
}

.social {
  display: flex;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
}

.footer-info > p a {
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}

.social-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
  box-shadow: 0 6px 16px rgba(5, 34, 72, 0.18);
  transition: transform 0.25s ease;
}

.social-thumb-linkedin {
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
}

.social-thumb svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.social-thumb:hover {
  transform: translateY(-3px);
}

.copyright {
  margin: 0;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid rgba(22, 53, 111, 0.1);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  font-weight: 550;
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, -14deg));
  }
  50% {
    transform: translateY(-14px) rotate(var(--rot, -14deg));
  }
}

.motif-book {
  --rot: -14deg;
}

.motif-pencil {
  --rot: 28deg;
}

.motif-ball {
  --rot: -8deg;
}

@keyframes spin-slow {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.school-card.reveal,
.locker.reveal {
  transition:
    opacity 0.7s ease,
    transform 0.2s ease,
    box-shadow 0.35s ease;
}

@media (max-width: 1100px) {
  .nav-links a {
    padding: 0.55rem 0.72rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .header-phone {
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 800px) {
  .header-star {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
  background: var(--mobile-nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border-radius: 0 0 18px 18px;
    border: 1px solid rgba(239, 184, 32, 0.28);
    border-top: 0;
    gap: 0.65rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  }

  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-radius: 16px;
  }

  .nav-links a,
  .site-nav a {
    width: 100%;
    justify-content: center;
  }

  .header-phone,
  .header-cta {
    margin-left: 0;
    justify-content: center;
  }

  .header-inner {
    position: relative;
  }

  .site-header:not(.is-scrolled) .nav-links {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }

  .site-header:not(.is-scrolled) .site-nav {
    margin-left: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .gallery-stage {
    aspect-ratio: 2 / 1;
  }

  .hero-copy {
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "side"
      "facts";
    gap: 1.5rem;
    padding: 2.1rem 1.35rem 1.8rem 1.55rem;
  }

  .hero-side {
    padding-left: 0;
    border-left: 0;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(5, 34, 72, 0.32);
  }

  .hero h1 em {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .hero-copy::after {
    width: 32px;
    height: 32px;
  }

  .about,
  .sports,
  .quote,
  .contact-grid,
  .facts-row {
    grid-template-columns: 1fr;
  }

  .quote {
    overflow: hidden;
  }

  .board-frame {
    border-width: 7px;
  }

  .chalk-board-area {
    padding-right: 3.5rem;
    padding-bottom: 3.75rem;
  }

  .chalkboard .chairman-photo {
    height: 170px;
    max-width: 140px;
  }

  .about-photo {
    transform: none;
    clip-path: none;
  }

  .school-path {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    text-align: center;
  }

  .footer-brand,
  .social {
    display: flex;
    justify-content: center;
  }

  #school-map {
    height: 280px;
  }

  .map-legend {
    justify-content: center;
  }

  .motif {
    display: none;
  }

  .stem-symbol {
    opacity: 0.16;
    font-size: calc(var(--size, 1.55rem) * 0.9);
  }
}

@media (max-width: 900px) {
  .locker-front img {
    aspect-ratio: auto;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .glow,
  .motif,
  .stem-symbol,
  .gallery-slide,
  .about-photo img,
  .legacy img,
  .sports-mark img,
  .school-card img,
  .locker img,
  .btn,
  .reveal,
  .locker {
    filter: none;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel,
  .site-header,
  .facts,
  .site-nav {
    background: rgba(12, 18, 28, 0.97);
  }
}

/* ——— Extra interactive school theme ——— */
.chalk-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  overflow: hidden;
}

.chalk-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 240, 228, 0.82);
  box-shadow: 0 0 4px rgba(244, 240, 228, 0.45);
  transform: translate(-50%, -50%);
  animation: chalk-fade 0.9s ease forwards;
  pointer-events: none;
}

@keyframes chalk-fade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
}

.btn-plane {
  background: rgba(239, 184, 32, 0.22);
  color: var(--navy);
  border-color: rgba(239, 184, 32, 0.45);
}

.about-photo {
  --spot-x: 50%;
  --spot-y: 40%;
}

.about-photo .spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 140px at var(--spot-x) var(--spot-y),
    transparent 0%,
    rgba(10, 20, 40, 0.35) 70%
  );
  pointer-events: none;
  transition: background 0.08s linear;
  mix-blend-mode: multiply;
}

.pillars .star {
  margin-left: auto;
  color: var(--magenta);
  transform: scale(1.15);
}

.legacy {
  position: relative;
}

.sticky-note {
  transform: rotate(-1deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 18px rgba(22, 53, 111, 0.08);
}

.sticky-note:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 14px 28px rgba(22, 53, 111, 0.14);
}

.sticky-note-pink {
  background: #3a2430 !important;
  color: var(--ink);
  border-radius: 12px;
  padding: 1rem;
  border-top: 0 !important;
}

html[data-theme="light"] .sticky-note-pink {
  background: #fde8f0 !important;
  color: #152033;
  border: 1px solid rgba(5, 34, 72, 0.18) !important;
  box-shadow: 0 8px 18px rgba(5, 34, 72, 0.1);
}

html[data-theme="light"] .sticky-note-pink h3 {
  color: var(--magenta);
}

html[data-theme="light"] .sticky-note-pink p {
  color: #4d5a6e;
}

.chalkboard {
  position: relative;
}

.paper-plane {
  display: none;
}

.plane-lab {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 28, 48, 0.55);
  backdrop-filter: blur(8px);
}

.plane-lab[hidden] {
  display: none !important;
}

.plane-lab__panel {
  width: min(980px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: var(--bot-panel);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 1.25rem 1.35rem 1.5rem;
}

.plane-lab__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.plane-lab__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.plane-lab__close {
  border: 0;
  background: rgba(237, 242, 251, 0.1);
  color: var(--heading);
  font: inherit;
  font-weight: 750;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
}

.plane-lab__intro {
  margin: 0.75rem 0 1.1rem;
  color: var(--muted);
  font-weight: 550;
}

.plane-lab__intro code {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(5, 34, 72, 0.1);
  color: var(--magenta);
  font-size: 0.92em;
}

.plane-lab__layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1.1rem;
  align-items: start;
}

.plane-lab__layout--quiz {
  grid-template-columns: minmax(260px, 340px) 1fr;
}

.plane-lab__controls {
  display: grid;
  gap: 0.85rem;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.quiz-subject {
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: rgba(5, 34, 72, 0.12);
  color: var(--magenta);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.quiz-subject[data-subject="science"] {
  background: rgba(47, 155, 116, 0.14);
  color: var(--yard);
}

.quiz-subject[data-subject="indian-social"] {
  background: rgba(22, 53, 111, 0.12);
  color: var(--navy);
}

.quiz-question {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--navy);
}

.quiz-options {
  display: grid;
  gap: 0.55rem;
}

.quiz-option {
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(237, 242, 251, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quiz-option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--magenta);
}

.quiz-option.is-correct {
  background: rgba(47, 155, 116, 0.22);
  border-color: var(--yard);
  color: #8ef0c4;
}

.quiz-option.is-wrong {
  background: rgba(5, 34, 72, 0.12);
  border-color: var(--magenta);
  color: var(--magenta);
}

.plane-lab__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.plane-lab__best {
  margin: 0;
  font-weight: 750;
  color: var(--navy);
}

.plane-lab__stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(22, 53, 111, 0.1);
  background: #dff0ea;
}

#plane-canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.plane-lab__hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  padding: 0.55rem 0.75rem;
  background: rgba(18, 26, 40, 0.94);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

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

.plane-lab__result {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--navy);
}

@media (max-width: 800px) {
  .plane-lab__layout,
  .plane-lab__layout--quiz {
    grid-template-columns: 1fr;
  }
}

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

/* —— Campus help bot —— */
.help-bot {
  --help-navy: #0f2a5f;
  --help-gold: #c9962b;
  --help-gold2: #ebc25a;
  --help-saffron: #f07f13;
  --help-ink: #14224a;
  --help-muted: #5b6685;
  --help-panel: #fffdf8;
  --help-line: rgba(201, 150, 43, 0.45);
  --help-them: #eaeef7;
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 420;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  font-family: "Nunito Sans", var(--sans), system-ui, sans-serif;
}

.help-bot__toggle {
  position: relative;
  display: block;
  order: 2;
  width: 128px;
  height: 160px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.25s ease;
}

.help-bot__toggle:hover {
  transform: scale(1.06);
}

.help-bot__toggle:focus-visible,
.help-bot__send:focus-visible,
.help-bot__form input:focus-visible,
.help-bot__close:focus-visible {
  outline: 3px solid var(--help-saffron);
  outline-offset: 3px;
  border-radius: 12px;
}

.help-bot__toggle svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 16px rgba(15, 42, 95, 0.4));
}

.help-bot__breathe {
  transform-origin: 76px 190px;
  animation: help-bot-breathe 3.6s ease-in-out infinite;
}

.help-bot__sway {
  transform-origin: 96px 190px;
  animation: help-bot-sway 3.6s ease-in-out infinite;
}

.help-bot__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: help-bot-blink 5s infinite;
}

@keyframes help-bot-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.012); }
}

@keyframes help-bot-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

@keyframes help-bot-blink {
  0%, 93%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

@media (prefers-reduced-motion: reduce) {
  .help-bot__toggle {
    transition: none;
  }
  .help-bot__breathe,
  .help-bot__sway,
  .help-bot__eyes {
    animation: none !important;
  }
  .help-bot__panel:not([hidden]) {
    animation: none;
  }
}

.help-bot__panel {
  order: 1;
  width: min(22rem, calc(100vw - 2.5rem));
  height: 28rem;
  max-height: calc(100dvh - 11rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--help-panel);
  border: 2px solid var(--help-gold);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 42, 95, 0.4);
  transform-origin: 90% 100%;
}

.help-bot__panel:not([hidden]) {
  animation: help-bot-pop 0.3s cubic-bezier(0.2, 1.2, 0.4, 1);
}

@keyframes help-bot-pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.help-bot__panel[hidden] {
  display: none !important;
}

.help-bot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: var(--help-navy);
  color: #fff;
  border-bottom: 4px solid var(--help-gold);
}

.help-bot__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.help-bot__motto {
  margin: 0.1rem 0 0;
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--help-gold2);
}

.help-bot__status {
  margin: 0.28rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f3eedc;
}

.help-bot__status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--help-gold2);
  box-shadow: 0 0 0 3px rgba(235, 194, 90, 0.25);
}

.help-bot__close {
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.help-bot__messages {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.help-msg {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.help-msg--bot {
  align-self: flex-start;
  background: var(--help-them);
  color: var(--help-ink);
  border-bottom-left-radius: 4px;
}

.help-msg--user {
  align-self: flex-end;
  background: var(--help-navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.help-msg a {
  color: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-msg--bot a {
  color: var(--help-navy);
}

.help-msg__meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.help-bot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--help-line);
  background: transparent;
}

.help-chip {
  border: 1px solid var(--help-line);
  background: #fff;
  color: var(--help-ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.help-chip:hover {
  border-color: var(--help-gold);
  background: #fffbef;
}

.help-bot__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--help-line);
}

.help-bot__form input {
  flex: 1;
  width: 100%;
  border: 1px solid var(--help-line);
  background: #fff;
  color: var(--help-ink);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.92rem;
}

.help-bot__form input:focus {
  outline: none;
}

.help-bot__send {
  border: 0;
  background: linear-gradient(180deg, var(--help-gold2), var(--help-gold));
  color: #14224a;
  border-radius: 999px;
  padding: 0 1.1rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
}

.help-bot__send:hover {
  filter: brightness(1.04);
}

@media (max-width: 560px) {
  .help-bot {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .help-bot.is-open .help-bot__toggle {
    display: none;
  }

  .help-bot__panel {
    height: min(70vh, 28rem);
    max-height: calc(100dvh - 5.5rem);
  }
}

/* —— Group layout (Shri Venkateshwara logo colours) —— */
.header-aura,
.header-star,
.hero-orb,
.hero-copy::before,
.hero-copy::after,
.school-path {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.about,
.about-copy,
.contact,
.contact-details,
.contact-form,
.facts,
.facts-row,
.gallery-stage,
.legacy,
.legacy-frame,
.admit-band,
.admit-band-inner {
  width: 100%;
}

.admit-band p {
  max-width: none;
}

.stack {
  gap: 1.75rem;
  padding-top: 1.6rem;
  padding-bottom: 3rem;
}

.header-inner {
  min-height: 72px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.hero {
  --header-h: 4.75rem;
  position: relative;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin-top: calc(var(--header-h) * -1);
  background: #052248;
  opacity: 1;
  animation: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  opacity: 0.28;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-prev {
  left: 0.7rem;
}

.hero-next {
  right: 0.7rem;
}

.hero-nav:hover,
.hero-nav:focus-visible {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  outline: none;
}

.hero-nav[hidden] {
  display: none;
}

.hero-nav svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.btn {
  min-height: 46px;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.nav-links {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 0.15rem;
  padding: 0;
}

.nav-links a {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: #052248;
  color: #fff;
  box-shadow: 0 8px 18px rgba(5, 34, 72, 0.35);
}

.site-header {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header::after {
  display: none;
}

.site-header .brand {
  overflow: hidden;
  max-width: min(480px, 62vw);
  transition: opacity 0.35s ease, max-width 0.35s ease, margin 0.35s ease, visibility 0.35s ease;
}

.site-header:not(.is-scrolled) .brand {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  margin-right: 0;
  pointer-events: none;
}

.site-header:not(.is-scrolled) .header-inner {
  position: relative;
}

.site-header:not(.is-scrolled) .nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: rgba(30, 58, 76, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(5, 34, 72, 0.28);
  border-radius: 999px;
  padding: 0.18rem 0.35rem;
  box-shadow: 0 10px 28px rgba(18, 48, 64, 0.28);
}

.site-header:not(.is-scrolled) .site-nav {
  margin-left: auto;
}

.site-header:not(.is-scrolled) .nav-links a,
.site-header:not(.is-scrolled) .header-cta {
  color: #fff;
}

.site-header:not(.is-scrolled) .header-phone {
  color: #fff !important;
  background: #052248;
}

.site-header:not(.is-scrolled) .nav-links a:hover,
.site-header:not(.is-scrolled) .nav-links a.is-active {
  background: #052248;
  color: #fff;
  box-shadow: 0 8px 18px rgba(5, 34, 72, 0.35);
}

.site-header.is-scrolled {
  background: rgba(8, 13, 20, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(5, 34, 72, 0.32);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(5, 34, 72, 0.18);
  box-shadow: 0 12px 28px rgba(30, 58, 76, 0.08);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.section-head .section-sub {
  margin: 0.4rem auto 0;
}

.hero-media img,
.hero-media video {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 122%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-media img.is-active,
.hero-media video.is-active {
  opacity: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 58, 76, 0.28) 0%, rgba(18, 36, 48, 0.5) 100%),
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 45%, rgba(8, 16, 24, 0.22) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.7rem;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 0.75rem) 0 1.35rem;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: none;
  grid-template-areas: none;
  container-type: inline-size;
  container-name: hero;
}

.hero-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  gap: 0.85rem;
}

.hero-intro-fill {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
}

.hero-intro-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: flex-start;
  width: 100%;
  gap: 0;
  margin-top: -0.45rem;
  padding-top: 0.15rem;
}

.hero-intro .hero-kicker {
  display: inline-flex;
  margin: 0 auto;
  width: auto;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  line-height: 1.2;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #f3dba8;
  background: #052248;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  text-shadow: none;
}

.hero-logo {
  display: block;
  height: clamp(168px, 28vw, 320px);
  width: auto;
  max-width: min(420px, 88vw);
  object-fit: contain;
  background: #fff;
  border-radius: 22px;
  padding: 0.55rem 0.7rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  filter: none;
}

.hero-ribbon {
  display: inline-flex;
  margin: 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(5, 34, 72, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1.hero-kicker,
.hero-side,
.hero .facts {
  grid-area: auto;
}

.hero h1.hero-kicker {
  text-align: center;
  width: auto;
}

.lede {
  display: inline-block;
  width: auto;
  max-width: min(96vw, 1100px);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  font-size: clamp(0.82rem, 2.35vw, 1.7rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  word-spacing: 0.12em;
  line-height: 1.4;
  background: rgba(5, 34, 72, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.lede-band {
  display: inline;
  padding: 0;
  margin: 0;
  color: #d3983a;
  font-size: 1em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: inherit;
  word-spacing: inherit;
  background: none;
  box-shadow: none;
  transform: none;
  text-shadow:
    0 0 22px rgba(5, 34, 72, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.4);
}

.lede b {
  color: #d3983a;
  font-weight: 800;
  letter-spacing: inherit;
  word-spacing: inherit;
  padding: 0;
  border-bottom: 0.08em solid rgba(243, 219, 168, 0.7);
}

.lede b:last-of-type {
  color: #f3dba8;
  border-bottom: 0;
}

@media (max-width: 700px) {
  .lede {
    white-space: normal;
    font-size: clamp(1.02rem, 4.2vw, 1.32rem);
    line-height: 1.5;
    word-spacing: 0.06em;
    padding: 0.7rem 1rem;
    margin-bottom: 0.15rem;
    border-radius: 18px;
  }
}

.hero-actions {
  justify-content: center;
}

.hero .btn-quiet,
.hero .btn-plane {
  background: #fff;
  color: #052248;
  border: 2px solid #d3983a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.hero .btn-quiet:hover,
.hero .btn-plane:hover {
  background: #052248;
  color: #fff;
  border-color: #d3983a;
}

.hero .facts,
.hero .facts-row {
  width: 100%;
}

.hero .facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero .fact-tile {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 0.9rem 0.8rem;
  isolation: isolate;
  background: linear-gradient(165deg, rgba(5, 34, 72, 0.92), rgba(30, 90, 130, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 28px rgba(18, 48, 64, 0.32);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.hero .fact-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 34%, transparent 52%);
}

.hero .fact-tile > * {
  position: relative;
  z-index: 1;
}

.hero .fact-tile:nth-child(1) {
  background: linear-gradient(165deg, rgba(5, 34, 72, 0.94), rgba(22, 92, 140, 0.9));
}

.hero .fact-tile:nth-child(2) {
  background: linear-gradient(165deg, rgba(228, 113, 10, 0.94), rgba(62, 122, 28, 0.9));
}

.hero .fact-tile:nth-child(3) {
  background: linear-gradient(165deg, rgba(30, 58, 76, 0.94), rgba(24, 78, 110, 0.9));
}

.hero .fact-tile:nth-child(4) {
  background: linear-gradient(165deg, rgba(211, 152, 58, 0.95), rgba(214, 128, 18, 0.9));
}

.hero .fact-tile::after,
.hero .fact-icon {
  display: none;
}

.hero .fact-value,
.hero .fact-label,
.hero .fact-label-atlantis,
.hero .fact-note {
  color: #fff;
  text-shadow: 0 1px 8px rgba(8, 16, 24, 0.35);
}

.hero .fact-value[data-static="CBSE"] {
  color: #d3983a;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero .fact-atlantis {
  color: #e87722;
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
}

.hero .fact-label,
.hero .fact-label-atlantis {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.hero .fact-note {
  margin-top: 0.28rem;
  font-size: clamp(0.95rem, 2.1vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff8e6;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 2px 10px rgba(8, 16, 24, 0.55);
}

.hero .fact-value {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  margin-bottom: 0.2rem;
}

.hero .fact-tile:nth-child(4) .fact-value,
.hero .fact-tile:nth-child(4) .fact-label {
  color: #052248;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.gallery {
  padding-top: 0.4rem;
}

.panel {
  border-radius: 22px;
  padding: 1.8rem 1.7rem;
}

.panel.about,
.panel.legacy {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.about-photo .spotlight {
  display: none;
}

.about .pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.pillars li {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-height: 0;
  padding: 1rem 1.05rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--heading);
}

.legacy-frame {
  max-height: none;
  overflow: hidden;
}

.legacy-head {
  display: grid;
  grid-template-columns: minmax(9.5rem, 13rem) minmax(0, 1fr) minmax(9.5rem, 13rem);
  align-items: center;
  gap: 1rem 1.4rem;
  margin: 0 auto 1.6rem;
  text-align: center;
  max-width: min(76rem, 100%);
}

.legacy-title {
  min-width: 0;
}

.legacy-head .eyebrow {
  margin-bottom: 0.55rem;
}

.legacy-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 2.45rem);
  line-height: 1.15;
  color: var(--heading);
  text-wrap: balance;
}

.legacy-head h2 em {
  color: var(--magenta);
  font-style: italic;
}

.founder-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.founder-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(108px, 15vw, 168px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid #d3983a;
  background: #052248;
  box-shadow: 0 12px 28px rgba(5, 34, 72, 0.18);
}

.founder-photo::after {
  content: "Photo";
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3dba8;
}

.founder-photo:has(img)::after {
  display: none;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.founder-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 12.5rem;
}

.founder-card strong {
  font-family: var(--serif, Cinzel, serif);
  font-size: clamp(0.78rem, 1.3vw, 0.95rem);
  font-weight: 700;
  line-height: 1.3;
  color: #052248;
}

.founder-card span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d3983a;
}

@media (max-width: 800px) {
  .legacy-head {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "left right";
  }

  .legacy-title {
    grid-area: title;
  }

  .founder-card:first-child {
    grid-area: left;
  }

  .founder-card:last-child {
    grid-area: right;
  }

  .legacy-head h2 {
    white-space: normal;
  }
}

.legacy-copy {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 2.4rem;
  text-align: left;
  align-items: start;
}

.legacy-copy p {
  margin: 0;
  position: relative;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.7;
  padding-top: 0.85rem;
  border-top: 2px solid color-mix(in srgb, var(--magenta) 55%, transparent);
}

.legacy-copy p:first-child::before,
.legacy-copy p:last-child::before {
  position: absolute;
  top: -0.7rem;
  left: 0;
  padding: 0 0.35rem 0 0;
  background: var(--page);
  color: var(--magenta);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legacy-copy p:first-child::before {
  content: "1977";
}

.legacy-copy p:last-child::before {
  content: "1986";
}

@media (max-width: 800px) {
  .legacy-copy {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    max-width: 40rem;
  }
}

.legacy-frame img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.legacy:hover .legacy-frame img {
  transform: none;
}

.admit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.admit-band .btn-quiet {
  background: rgba(5, 34, 72, 0.10);
  color: #052248;
  border-color: rgba(5, 34, 72, 0.28);
}

.admit-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.7rem;
  border-radius: 22px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, #052248, #e4710a, #d3983a, #e87722) border-box;
  border: 3px solid transparent;
  color: #052248;
  color: #fff;
  box-shadow: var(--shadow);
}

.school-grid {
  width: 100%;
}

.locker,
.locker-inner,
.locker-front,
.locker-back {
  width: 100%;
}

.locker-front img {
  width: 100%;
  height: 100%;
  min-height: min(18vh, 150px);
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 0.75rem 0.6rem;
  box-sizing: border-box;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}

.locker-front-meta {
  display: none;
}

.gallery-stage {
  border-radius: 18px;
  aspect-ratio: 2.8 / 1;
}

.pillars li strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
}

.pillars li span:not(.star) {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.pillars .star {
  position: absolute;
  top: 1.1rem;
  right: 1rem;
  margin-left: 0;
}

.admit-band {
  padding: 0;
}

.admit-band .eyebrow {
  color: #052248;
}

.admit-band h2 {
  color: #052248;
  margin-bottom: 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.admit-band p {
  margin: 0;
  color: #5a6b78;
  max-width: 36rem;
}

.admit-band .btn-primary {
  background: linear-gradient(135deg, #052248, #d3983a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(5, 34, 72, 0.28);
  flex-shrink: 0;
}

.tap-hint {
  letter-spacing: 0.08em;
}

.locker-front-meta h3 {
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .about .pillars {
    grid-template-columns: 1fr;
  }

  .admit-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .school-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    overflow: visible;
    width: 100%;
  }

  .locker {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .school-grid {
    grid-template-columns: 1fr;
  }
}

.about .pillars,
.pillars li {
  width: 100%;
}

@media (max-width: 800px) {
  .hero {
    overflow: hidden;
    min-height: auto;
    height: auto;
  }

  .hero-copy {
    min-height: 100svh;
    height: auto;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 0.35rem) 1rem 1.35rem;
    gap: 0.9rem;
  }

  .hero-intro {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding-top: 1.8rem;
    gap: 0.5rem;
  }

  .hero-intro > .hero-intro-fill:not(.hero-intro-after) {
    display: none;
  }

  .hero-intro-after {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 0;
  }

  .hero-logo {
    height: clamp(140px, 42vw, 220px);
  }

  .hero-actions {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    width: min(22rem, 100%);
    margin-inline: auto;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero .facts {
    flex: 0 0 auto;
  }

  .hero h1 em {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .hero .facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero .facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#about,
#gallery {
  --screen-fit: calc(100dvh - var(--header-h, 4.75rem) - 1rem);
  min-height: var(--screen-fit);
  max-height: var(--screen-fit);
  overflow: auto;
  box-sizing: border-box;
}

#schools {
  --screen-fit: calc(100dvh - var(--header-h, 4.75rem) - 1rem);
  min-height: var(--screen-fit);
  max-height: var(--screen-fit);
  overflow: hidden;
  box-sizing: border-box;
}

#contact {
  --screen-fit: calc(100dvh - var(--header-h, 4.75rem) - 1rem);
  min-height: var(--screen-fit);
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
}

#about {
  align-content: center;
}

#about .about-photo img {
  height: min(34vh, 320px);
  object-fit: cover;
}

#gallery {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#gallery .gallery-frame {
  flex: 1;
  min-height: 0;
  display: flex;
}

#gallery .gallery-stage {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}

@media (max-width: 800px) {
  /* Keep hamburger visible on bright/dark hero */
  .nav-toggle {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 60;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 2px solid #d3983a;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  }

  .nav-toggle span {
    width: 20px;
    height: 2.5px;
    margin: 3px auto;
    background: #052248;
  }

  .site-header:not(.is-scrolled) .nav-toggle,
  .site-header.is-scrolled .nav-toggle,
  html[data-theme="light"] .site-header.is-scrolled .nav-toggle {
    background: #ffffff;
    border-color: #d3983a;
  }

  .site-header:not(.is-scrolled) .nav-toggle span,
  .site-header.is-scrolled .nav-toggle span,
  html[data-theme="light"] .site-header.is-scrolled .nav-toggle span {
    background: #052248;
  }

  .header-inner {
    gap: 0.65rem;
  }

  /* Stop screen-fit sections from crushing images over text */
  #about,
  #gallery,
  #schools {
    min-height: 0;
    max-height: none;
    overflow: visible;
    align-content: start;
  }

  #about {
    align-items: stretch;
    gap: 1.25rem;
  }

  .about-copy,
  .about-photo,
  .about .pillars {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }

  .about-photo {
    order: 0;
    display: block;
    width: min(100%, 420px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    transform: none;
    clip-path: none;
    box-sizing: border-box;
  }

  #about .about-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(42vh, 280px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 auto;
  }

  .about .pillars {
    grid-template-columns: 1fr;
  }

  #gallery .gallery-frame {
    flex: none;
    display: block;
  }

  #gallery .gallery-stage {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: min(52vh, 420px);
  }

  .locker-front img {
    min-height: 0;
    max-height: 180px;
    width: 100%;
    object-fit: contain;
  }

  .stadium-photo {
    max-height: 240px;
    width: 100%;
    object-fit: cover;
  }

  .sports-mark img,
  .playsmart img,
  .sports img[src*="playsmart"] {
    max-width: 100%;
    height: auto;
  }

  .hero-intro,
  .hero-intro-after {
    gap: 0.85rem;
  }

  .hero-intro .hero-kicker,
  .hero-ribbon {
    position: relative;
    z-index: 2;
    margin: 0;
  }

  .hero-logo {
    position: relative;
    z-index: 1;
    margin: 0.15rem 0;
    height: clamp(120px, 34vw, 180px);
  }

  .lede {
    white-space: normal;
    border-radius: 18px;
    padding: 0.7rem 1rem;
    line-height: 1.45;
  }

  .quote {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .chalkboard .chairman-photo {
    display: block;
    margin: 0 auto 0.75rem;
    height: 160px;
    max-width: 130px;
  }

  .legacy-copy {
    grid-template-columns: 1fr;
  }

  .founder-photo {
    max-width: 100%;
  }
}

#schools {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  max-height: var(--screen-fit, calc(100dvh - var(--header-h, 4.75rem) - 1rem));
}

#schools .section-head {
  margin-bottom: 0.55rem;
  flex: 0 0 auto;
}

#schools .section-head .section-sub {
  display: none;
}

#schools .school-grid {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  align-content: center;
  padding: 0.35rem 0 0.5rem;
  gap: 1rem;
}

#schools .school-grid.is-hovering .locker:not(.is-hot) {
  opacity: 0.22;
  filter: saturate(0.5);
  transform: scale(0.92);
}

#schools .locker {
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#schools .locker.is-hot {
  z-index: 8;
  opacity: 1;
  filter: none;
  transform: translateY(-6px) scale(1.04);
}

#schools .locker.is-hot .locker-front,
#schools .locker.is-hot .locker-back {
  box-shadow:
    0 22px 44px rgba(8, 12, 20, 0.26),
    0 0 0 1px color-mix(in srgb, var(--house, #e87722) 35%, transparent);
}

#schools .locker-inner {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#schools .locker.is-hot .locker-inner {
  transform: rotateY(180deg);
}

#schools .locker-front {
  background: #fff;
  border-color: color-mix(in srgb, var(--house, #e87722) 28%, transparent);
  box-shadow: 0 10px 24px rgba(8, 12, 20, 0.12);
  min-height: min(28vh, 240px);
  aspect-ratio: 1 / 1;
}

#schools .locker-front img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 0.55rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

#schools .locker-back {
  min-height: min(28vh, 240px);
  aspect-ratio: 1 / 1;
  padding: 0.9rem 0.95rem;
}

#schools .locker-back h3 {
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  line-height: 1.25;
}

#schools .locker-back > p:not(.year) {
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
}

#schools .school-phone {
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
}

#schools .locker.is-hot .locker-close {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  #schools .locker.is-hot .locker-close {
    display: inline-flex;
  }
}

@media (max-width: 800px) {
  #schools {
    max-height: none;
    overflow: visible;
  }

  #schools .section-head .section-sub {
    display: block;
  }

  #schools .locker.is-hot {
    transform: translateY(-4px) scale(1.02);
  }

  #about .about-photo img {
    height: min(28vh, 240px);
  }

  #schools .locker-front,
  #schools .locker-back {
    min-height: min(24vh, 210px);
    aspect-ratio: 1 / 1;
  }

  #schools .locker-front img {
    padding: 0.5rem;
  }

  .site-header:not(.is-scrolled) .nav-links {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 16px;
  }
}

#contact {
  display: flex;
  flex-direction: column;
}

#contact .contact-grid {
  flex: 0 0 auto;
  min-height: 0;
  position: relative;
  z-index: 2;
}

#contact .contact-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  margin-top: 1.5rem;
}

#contact #school-map {
  height: 280px;
  min-height: 220px;
  z-index: 0;
}

html[data-theme="light"] .site-intro,
html[data-theme="light"] .intro-sky {
  background:
    radial-gradient(ellipse 45% 35% at 78% 16%, rgba(211, 152, 58, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 16% 28%, rgba(5, 34, 72, 0.12), transparent 65%),
    radial-gradient(ellipse 40% 36% at 50% 100%, rgba(228, 113, 10, 0.12), transparent 60%),
    #ffffff;
}

html[data-theme="light"] .gallery-stage {
  background: #ffffff;
  border-color: rgba(5, 34, 72, 0.16);
}

html[data-theme="light"] .gallery-nav {
  background: rgba(255, 255, 255, 0.86);
  color: #052248;
}

html[data-theme="light"] .sports {
  background: #ffffff;
}

html[data-theme="light"] .site-header:not(.is-scrolled) .nav-links {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(5, 34, 72, 0.22);
  box-shadow: 0 10px 28px rgba(30, 58, 76, 0.10);
}

html[data-theme="light"] .site-header:not(.is-scrolled) .nav-links a,
html[data-theme="light"] .site-header:not(.is-scrolled) .header-cta {
  color: #052248;
}

html[data-theme="light"] .site-header:not(.is-scrolled) .header-phone,
html[data-theme="light"] .site-header.is-scrolled .header-phone {
  color: #fff !important;
  background: #052248;
  border-color: #1a8ac9;
}

html[data-theme="light"] .site-header:not(.is-scrolled) .nav-links a:hover,
html[data-theme="light"] .site-header:not(.is-scrolled) .nav-links a.is-active {
  background: #052248;
  color: #fff;
}

html[data-theme="light"] .help-bot__panel {
  box-shadow: 0 20px 50px rgba(15, 42, 95, 0.28);
}

html[data-theme="light"] .hero-copy {
  box-shadow: none;
}

.pillars li:nth-child(1) { border-top: 4px solid #052248; }
.pillars li:nth-child(2) { border-top: 4px solid #e4710a; }
.pillars li:nth-child(3) { border-top: 4px solid #d3983a; }

.panel.schools,
.panel.contact,
.panel.quote {
  background: #ffffff;
  border: 1px solid rgba(30, 58, 76, 0.08);
}

.contact-form {
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(5, 34, 72, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #052248, #d3983a);
  box-shadow: 0 10px 24px rgba(5, 34, 72, 0.28);
}
