/* ==========================================================================
   Jyoti Model Sr. Secondary School — Design System
   Mobile-first · warm & aspirational · "Jyoti = light"
   ========================================================================== */

/* ---- Self-hosted webfonts (latin subset, woff2, swap) ------------------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy: #1a3c6e;
  --navy-dark: #12294d;
  --navy-900: #0e2140;
  --saffron: #e87a20;
  --saffron-dark: #cf6812;
  --saffron-ink: #a8500c; /* AA-compliant (>=4.5:1 on white) for small text */
  --gold: #d4a843;
  --gold-soft: #e9cf8f;

  /* Neutrals */
  --cream: #f7f2ea;
  --cream-2: #efe7db;
  --white: #ffffff;
  --charcoal: #2d2d2d;
  --ink: #1f2733;
  --muted: #5b6675;
  --line: #e7ddcf;
  --line-2: rgba(255, 255, 255, 0.14);

  /* Semantic */
  --bg: var(--white);
  --text: var(--charcoal);
  --primary: var(--navy);
  --accent: var(--saffron);

  /* Type */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing / layout */
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(3.25rem, 8vw, 6rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(18, 41, 77, 0.06), 0 2px 8px rgba(18, 41, 77, 0.05);
  --shadow: 0 6px 20px rgba(18, 41, 77, 0.08), 0 2px 6px rgba(18, 41, 77, 0.05);
  --shadow-lg: 0 18px 48px rgba(18, 41, 77, 0.16);
  --ring: 0 0 0 3px rgba(232, 122, 32, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 68px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip; /* kill any stray horizontal scroll (e.g. off-canvas drawer) */
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.12;
  color: var(--primary);
  letter-spacing: -0.01em;
}
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.section--cream {
  background: var(--cream);
}
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #eaf0f8;
}
.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: #fff;
}

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-ink);
}
.section--navy .eyebrow {
  color: var(--gold-soft);
}
.section-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  margin-top: 0.6rem;
  margin-bottom: 0.35em;
  text-wrap: balance;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  max-width: 60ch;
  margin-top: 0.85rem;
}
.section--navy .section-lead {
  color: #cdd8e8;
}
.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-lead {
  margin-inline: auto;
}
.text-accent {
  color: var(--saffron);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--accent {
  /* deep amber — white text passes WCAG AA (5.5:1), still warm & premium */
  --btn-bg: var(--saffron-ink);
}
.btn--accent:hover {
  --btn-bg: var(--saffron-dark);
}
.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #3a2e10;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: rgba(26, 60, 110, 0.5);
  box-shadow: none;
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: rgba(26, 60, 110, 0.04);
}
.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Badge / pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(232, 122, 32, 0.12);
  color: var(--saffron-ink);
}
.badge svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.badge--gold {
  background: rgba(212, 168, 67, 0.16);
  color: #7a5a10;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(18, 41, 77, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
  max-width: min(56vw, 240px);
}
@media (min-width: 1100px) {
  .brand-text {
    max-width: 460px;
  }
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.66rem, 1.8vw, 0.82rem);
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--navy);
  overflow: hidden;
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-dark);
  font-weight: 600;
}
/* Header sitting over the hero (top of page, not scrolled) uses light text */
.site-header:not(.is-solid) .brand-name {
  color: #fff;
}
.site-header:not(.is-solid) .brand-sub {
  color: var(--gold-soft);
}

.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-desktop a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.45rem 0.52rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink);
  transition: color 0.15s, background 0.15s;
}
.site-header:not(.is-solid) .nav-desktop a {
  color: rgba(255, 255, 255, 0.92);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--saffron);
}
.site-header:not(.is-solid) .nav-desktop a:hover,
.site-header:not(.is-solid) .nav-desktop a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.nav-desktop .btn {
  margin-left: 0.5rem;
  padding: 0.6rem 1.15rem;
  min-height: 42px;
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  height: 2.5px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.site-header:not(.is-solid) .nav-toggle span {
  background: #fff;
  /* keep the hamburger visible over light hero photos */
  box-shadow: 0 1px 3px rgba(14, 33, 64, 0.55);
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
body.nav-open .nav-mobile {
  transform: translateX(0);
  visibility: visible;
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile a.nav-link {
  display: block;
  padding: 0.95rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line-2);
  color: #fff;
}
.nav-mobile a.nav-link[aria-current="page"] {
  color: var(--gold-soft);
}
.nav-mobile .nav-cta {
  margin-top: 1.75rem;
}
.nav-mobile .nav-contact {
  margin-top: auto;
  padding-top: 1.75rem;
  color: #cdd8e8;
  font-size: 0.92rem;
  display: grid;
  gap: 0.5rem;
}
.nav-mobile .nav-contact a {
  color: #fff;
  font-weight: 600;
}
.nav-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.nav-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.nav-social svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Crossfade slideshow layers */
.hero__media .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__media .hero-slide.is-active {
  opacity: 1;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 33, 64, 0.55) 0%, rgba(14, 33, 64, 0.25) 55%, rgba(14, 33, 64, 0.05) 100%),
    linear-gradient(180deg, rgba(14, 33, 64, 0.5) 0%, rgba(14, 33, 64, 0.15) 40%, rgba(14, 33, 64, 0.82) 100%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  padding-top: calc(var(--header-h) + 2rem);
  max-width: 720px;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(168, 80, 12, 0.92);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.hero__kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s var(--ease) infinite;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 8vw, 4.4rem);
  line-height: 1.04;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}
.hero p {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 2.6vw, 1.25rem);
  color: #eaf0f8;
  max-width: 34ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero .btn-row {
  margin-top: 1.9rem;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: none;
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat__value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: var(--gold-soft);
  line-height: 1;
}
.stat__label {
  margin-top: 0.4rem;
  font-weight: 600;
  color: #fff;
  font-size: 0.98rem;
}
.stat__sub {
  color: #a9bad4;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

/* ==========================================================================
   Instagram strip
   ========================================================================== */
.ig-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.ig-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
}
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.ig-card:hover img {
  transform: scale(1.06);
}
.ig-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.7rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.72) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.ig-card:hover .ig-card__overlay,
.ig-card:focus-within .ig-card__overlay {
  opacity: 1;
}
.ig-card__cap {
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-card__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
.ig-card__badge svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* ==========================================================================
   Facilities grid (icon cards)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.facility {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.facility:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-soft);
}
.facility__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(232, 122, 32, 0.14), rgba(212, 168, 67, 0.14));
  color: var(--saffron-dark);
  margin-bottom: 1rem;
}
.facility__icon svg {
  width: 28px;
  height: 28px;
}
.facility h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.facility p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Split: About / Principal
   ========================================================================== */
.split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__media--framed {
  border: 6px solid #fff;
  outline: 1px solid var(--line);
}
.about-body p + p {
  margin-top: 1rem;
}
.about-body p {
  color: var(--muted);
  font-size: 1.05rem;
}
.about-body .btn {
  margin-top: 1.5rem;
}

/* Principal quote card */
.quote {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  line-height: 1.4;
  color: #fff;
  font-style: italic;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 0.5;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.quote-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.quote-author img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.quote-author strong {
  display: block;
  color: #fff;
  font-family: var(--font-sans);
}
.quote-author span {
  color: #a9bad4;
  font-size: 0.9rem;
}

/* ==========================================================================
   Video / YouTube
   ========================================================================== */
.video-wrap {
  display: grid;
  gap: 1.25rem;
}
.video-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  cursor: pointer;
}
.video-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.video-main:hover img {
  transform: scale(1.04);
  opacity: 1;
}
.video-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  background: rgba(232, 122, 32, 0.95);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.video-main:hover .play-btn {
  transform: scale(1.08);
  background: var(--saffron);
}
.play-btn svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}
.video-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}
.video-list {
  display: grid;
  gap: 0.7rem;
}
.video-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 12px;
  transition: background 0.15s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  background: transparent;
  border: none;
}
.video-item:hover {
  background: rgba(26, 60, 110, 0.06);
}
.section--navy .video-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.video-item__thumb {
  position: relative;
  width: 116px;
  flex: none;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.video-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.section--navy .video-item__title {
  color: #fff;
}

/* ==========================================================================
   News / Events
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card__body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.news-cat {
  font-weight: 600;
  color: var(--saffron-ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-card h3 {
  font-size: 1.2rem;
}
.news-card p {
  color: var(--muted);
  font-size: 0.93rem;
}
.news-card .news-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.news-card .news-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.news-card:hover .news-link svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Contact / CTA
   ========================================================================== */
.contact-cta {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.register-steps {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
  counter-reset: step;
}
.register-steps li {
  position: relative;
  padding-left: 2.4rem;
  color: #cdd8e8;
  font-size: 0.95rem;
}
.register-steps li strong {
  color: #fff;
}
.register-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #3a2e10;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
@media (min-width: 768px) {
  .register-rail {
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.contact-info {
  display: grid;
  gap: 1.1rem;
}
.contact-line {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.contact-line__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-soft);
}
.section--navy .contact-line__icon svg,
.contact-line__icon svg {
  width: 20px;
  height: 20px;
}
.contact-line__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a9bad4;
}
.contact-line__value {
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
}
.contact-line__value a {
  color: #fff;
}
.contact-lines--on-light .contact-line__icon {
  background: rgba(26, 60, 110, 0.08);
  color: var(--saffron-ink);
}
.contact-lines--on-light .contact-line__label {
  color: var(--muted);
}
.contact-lines--on-light .contact-line__value,
.contact-lines--on-light .contact-line__value a {
  color: var(--ink);
}
.contact-lines--on-light .contact-line__value--sub {
  color: var(--muted);
}
.contact-line__value--sub {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: #a9bad4;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-2);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.05);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.section--navy .form-card h2,
.section--navy .form-card h3,
.section--navy .chair-card h3 {
  color: var(--navy);
}
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field .req {
  color: var(--saffron);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 48px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--saffron);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 122, 32, 0.14);
}
.field-row {
  display: grid;
  gap: 1.1rem;
}
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-status--ok {
  background: rgba(46, 160, 87, 0.12);
  color: #1c7a3e;
  border: 1px solid rgba(46, 160, 87, 0.3);
}
.form-status--err {
  background: rgba(214, 69, 69, 0.1);
  color: #b02a2a;
  border: 1px solid rgba(214, 69, 69, 0.3);
}

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.accordion {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.acc-item + .acc-item {
  border-top: 1px solid var(--line);
}
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
}
.acc-trigger:hover {
  background: var(--cream);
}
.acc-icon {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--saffron);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.acc-icon::before {
  width: 14px;
  height: 2.5px;
}
.acc-icon::after {
  width: 2.5px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.acc-trigger[aria-expanded="true"] .acc-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.acc-panel > div {
  overflow: hidden;
}
.acc-trigger[aria-expanded="true"] + .acc-panel {
  grid-template-rows: 1fr;
}
/* When the trigger is wrapped in a heading (policy accordion), the panel is no
   longer an adjacent sibling of the button — open it via the item instead. */
.acc-heading {
  margin: 0;
  font: inherit;
}
.acc-item:has(.acc-trigger[aria-expanded="true"]) > .acc-panel {
  grid-template-rows: 1fr;
}
.acc-panel p {
  padding: 0 1.3rem 1.25rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.07);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip.is-active,
.filter-chip:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 20, 36, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 4.5rem)) 0 clamp(2.5rem, 7vw, 4rem);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero {
  border-bottom: 3px solid var(--gold);
}
.page-hero::after {
  content: "1969";
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-42%);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(6rem, 16vw, 13rem);
  line-height: 1;
  color: rgba(212, 168, 67, 0.09);
  pointer-events: none;
  display: none;
}
@media (min-width: 720px) {
  .page-hero::after {
    display: block;
  }
}
.page-hero h1 {
  text-wrap: balance;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.2rem);
  position: relative;
}
.page-hero p {
  margin-top: 0.85rem;
  color: #cdd8e8;
  max-width: 56ch;
  font-size: 1.08rem;
  position: relative;
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: #9fb2cf;
  margin-bottom: 1rem;
  position: relative;
}
.breadcrumb a:hover {
  color: #fff;
}

/* Prose (inner page rich text) */
.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 2rem 0 0.85rem;
}
.prose h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.6rem;
}
.prose p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.03rem;
}
ul.ticks {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}
ul.ticks li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(232, 122, 32, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cf6812' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Timeline (about/history) */
.timeline {
  display: grid;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--saffron);
}
.timeline .t-year {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
}
.timeline p {
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Feature list two-col */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.mini-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}
.mini-card .grades {
  color: var(--saffron-ink);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.mini-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 0.4rem;
}
.panel-cream {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
}
.panel-cream .section-title {
  font-size: 1.5rem;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   Leadership · Legacy · Legal Aid · Toppers · Team
   ========================================================================== */
.motto-strip {
  background: var(--navy-900);
  color: #fff;
}
.motto-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
  justify-content: center;
  padding-block: 0.85rem;
  text-align: center;
}
.motto-strip strong {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-style: italic;
}
.motto-strip svg {
  display: inline-block;
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  color: var(--gold);
}
.motto-strip__meta {
  color: #9fb2cf;
  font-size: 0.84rem;
}

.legacy-list {
  display: grid;
  gap: 1rem;
}
.legacy-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
}
.legacy-gen {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}
.legacy-name {
  display: block;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0.15rem 0 0.35rem;
}
.legacy-item p {
  color: #cdd8e8;
  font-size: 0.92rem;
}
/* Light-background variant (used on About's cream section) */
.legacy-list--row .legacy-item {
  background: #fff;
  border-color: var(--line);
  border-left-color: var(--saffron);
}
.legacy-list--row .legacy-name {
  color: var(--navy);
}
.legacy-list--row .legacy-gen {
  color: var(--saffron-ink);
}
.legacy-list--row .legacy-item p {
  color: var(--muted);
}

.chair-message {
  margin-top: 1.1rem;
}
.chair-message p {
  color: #dbe6f5;
  margin-bottom: 0.9rem;
  font-size: 1.02rem;
}
.chair-signoff {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
.chair-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.chair-monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--saffron), var(--gold));
  color: #fff;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.chair-card h3 {
  font-size: 1.25rem;
}
.chair-role {
  color: var(--saffron-ink);
  font-weight: 600;
  margin-top: 0.15rem;
}
.chair-cred {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}
.chair-card hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
}
.chair-profile {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Legal Aid Cell */
.legal-aid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.75rem;
}
.legal-aid__intro .badge {
  margin-bottom: 0.75rem;
}
.legal-aid__intro p,
.legal-aid__desc {
  max-width: 62ch;
}
.legal-aid__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.legal-aid__card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.legal-aid__card h4 {
  font-size: 1.1rem;
  margin: 0.6rem 0 0.35rem;
}
.legal-aid__card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Toppers / Pride wall */
.pride-wall {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  background: linear-gradient(160deg, rgba(232, 122, 32, 0.08), rgba(212, 168, 67, 0.1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
}
.pride-wall__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
  background: linear-gradient(150deg, var(--saffron), var(--gold));
  color: #fff;
}
.pride-wall__icon svg {
  width: 34px;
  height: 34px;
}
.pride-wall h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}
.pride-wall p {
  color: var(--muted);
  margin: 0.75rem 0 1.5rem;
}
.topper-card,
.staff-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.topper-card__media,
.staff-card__media {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--cream-2);
  color: var(--saffron-ink);
}
.topper-card__media img,
.staff-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topper-card__ach {
  color: var(--saffron-ink);
  font-weight: 600;
  margin-top: 0.2rem;
}
.topper-card__detail,
.staff-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Team note */
.team-note {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
}
.team-note .facility__icon {
  flex: none;
  margin: 0;
  margin-top: 0.2rem;
}
@media (max-width: 560px) {
  .team-note {
    flex-direction: column;
  }
}
.team-note h3 {
  font-size: 1.25rem;
}
.team-note p {
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Policy accordion */
.pol-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
}
.pol-ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(232, 122, 32, 0.14), rgba(212, 168, 67, 0.14));
  color: var(--saffron-ink);
}
.pol-ic svg {
  width: 21px;
  height: 21px;
}
.pol-titles {
  display: flex;
  flex-direction: column;
}
.pol-title {
  font-family: var(--font-serif);
}
.pol-sum {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}
.pol-body p {
  padding: 0 1.3rem 1rem;
  color: var(--muted);
}
.pol-body p:first-child {
  padding-top: 0.5rem;
}

/* The Light Within callout */
.light-within {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2rem);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.light-within__mark {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--saffron), var(--gold));
  color: #fff;
}
.light-within__mark svg {
  width: 26px;
  height: 26px;
}
.light-within h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  margin-bottom: 0.4rem;
}
.light-within p {
  color: var(--muted);
}
.light-within em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12em;
  color: var(--navy);
}

/* Story timeline */
.story-list {
  display: grid;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  position: relative;
}
@media (min-width: 800px) {
  .story-list {
    padding-left: 2.5rem;
  }
  .story-list::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(212, 168, 67, 0.15));
  }
  .story-card {
    position: relative;
  }
  .story-card::before {
    content: "";
    position: absolute;
    left: calc(-2.5rem + 2px);
    top: 2.1rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.18);
  }
}
.story-card {
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.story-card__media {
  aspect-ratio: 16 / 9;
  background: var(--cream-2);
}
.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card__body {
  padding: 1.5rem;
}
.story-year {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--saffron-ink);
  font-size: 1.05rem;
}
.story-card h3 {
  font-size: 1.35rem;
  margin: 0.15rem 0 0.5rem;
}
.story-card__body p {
  color: var(--muted);
  max-width: 62ch;
}
.story-card--noimg {
  background: #fff;
}
@media (min-width: 800px) {
  .story-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    overflow: visible;
  }
  .story-card--noimg {
    grid-template-columns: 1fr;
  }
  .story-card__media {
    position: relative;
    aspect-ratio: auto;
    min-height: 340px;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .story-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }
  .story-card:nth-child(even) .story-card__media {
    order: 2;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
  .story-card__body {
    display: grid;
    align-content: center;
  }
}

@media (min-width: 720px) {
  .legal-aid {
    grid-template-columns: 1fr;
  }
  .legal-aid__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .legacy-list--row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: #b9c6db;
  padding-top: clamp(3rem, 7vw, 4.5rem);
}
.footer-top {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-2);
}
.footer-brand .brand-name {
  color: #fff;
  font-size: 1.15rem;
}
.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  max-width: 42ch;
}
.footer-brand .brand {
  margin-bottom: 0;
}
.footer-col .footer-title {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.6rem;
}
.footer-col a,
.footer-col li {
  font-size: 0.93rem;
  color: #b9c6db;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--gold-soft);
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.footer-social a:hover {
  background: var(--saffron);
}
.footer-social svg {
  width: 19px;
  height: 19px;
  color: #fff;
}
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #8296b2;
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-motto {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-style: italic;
}

/* ==========================================================================
   Mobile sticky action bar
   ========================================================================== */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(18, 41, 77, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.55rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  min-height: 56px;
  justify-content: center;
}
.mobile-bar a svg {
  width: 21px;
  height: 21px;
}
.mobile-bar a.is-primary {
  color: var(--saffron-dark);
}
.mobile-bar a:active {
  background: var(--cream);
}
body {
  padding-bottom: 0;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive — tablet & up
   ========================================================================== */
@media (min-width: 560px) {
  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 76px;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--pair {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
    margin-inline: auto;
  }
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ig-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ig-grid .ig-card:nth-child(n + 5) {
    display: block;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .video-wrap {
    grid-template-columns: 1.7fr 1fr;
  }
  .contact-cta {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero__scroll {
    display: block;
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid--pair {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
  }
  .contact-cta {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
}

/* Full desktop nav only at widths that fit all nav items; below this the
   hamburger + mobile bar handle navigation. */
@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-bar {
    display: none;
  }
}

/* On desktop the mobile bar is hidden, so no bottom padding needed.
   On mobile, add breathing room so the sticky bar never covers content. */
@media (max-width: 1023px) {
  body {
    /* reserve the mobile action bar's real height incl. notch safe-area */
    padding-bottom: calc(56px + env(safe-area-inset-bottom) + 8px);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print */
@media print {
  .site-header,
  .mobile-bar,
  .nav-mobile,
  .hero__scroll {
    display: none !important;
  }
}

/* ==========================================================================
   Premium accents (blue + gold, understated luxury)
   ========================================================================== */
.section-title {
  letter-spacing: -0.015em;
}
.eyebrow {
  font-weight: 700;
}
.facility:hover,
.mini-card:hover,
.news-card:hover {
  border-color: var(--gold);
}
.site-header.is-solid {
  box-shadow: 0 1px 0 rgba(212, 168, 67, 0.4), 0 6px 22px rgba(18, 41, 77, 0.07);
}
.btn--gold {
  box-shadow: var(--shadow-sm);
}
/* thin gold divider utility */
.gold-rule {
  height: 2px;
  width: 64px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border: 0;
  margin: 1rem 0;
}

/* ==========================================================================
   Principal message · bio · pull-quote
   ========================================================================== */
.principal-msg p {
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-size: 1.02rem;
}
.principal-signoff {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--saffron-ink);
  font-size: 1.08rem;
  margin-top: 0.6rem;
}
.principal-card {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
}
.principal-card strong {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.15rem;
}
.principal-card span {
  color: var(--muted);
  font-size: 0.9rem;
}
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.4;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0 0;
}

/* ==========================================================================
   The Jyoti Family (staff)
   ========================================================================== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.staff-card__media {
  position: relative;
}
.staff-monogram {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--navy);
}
.staff-monogram svg {
  width: 40%;
  height: 40%;
}
.staff-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold);
  color: #3a2e10;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 999px;
}
.staff-role {
  color: var(--saffron-ink);
  font-weight: 600;
  margin-top: 0.2rem;
}
.staff-tenure {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

/* ==========================================================================
   Alma maters strip
   ========================================================================== */
.alma-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}
.alma-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 116px;
  text-align: center;
  transition: transform 0.2s var(--ease);
}
.alma-item:hover {
  transform: translateY(-4px);
}
.alma-item img {
  width: 88px;
  height: 88px;
}
.alma-name {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   Alumni cards + checkbox row
   ========================================================================== */
.alumnus-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.alumnus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.alumnus-card__media {
  width: 92px;
  height: 92px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--cream-2);
  color: var(--navy);
}
.alumnus-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alumnus-batch {
  color: var(--saffron-ink);
  font-weight: 600;
  margin-top: 0.15rem;
}
.alumnus-role {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}
.alumnus-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}
.alumnus-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}
.alumnus-link svg {
  width: 15px;
  height: 15px;
}
.check-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.25rem 0 1.1rem;
}
.check-row input {
  margin-top: 3px;
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--saffron);
}

/* ==========================================================================
   Policy document (rendered from markdown, inside the accordion)
   ========================================================================== */
.acc-panel > .policy-doc {
  max-height: 62vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  position: relative;
}
.acc-panel > .policy-doc > :last-child {
  margin-bottom: 1rem;
}
.pol-download {
  padding: 0.85rem 1.3rem 0.25rem !important;
}
.pol-download .btn {
  min-height: 42px;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
}
.pol-download .btn svg {
  width: 17px;
  height: 17px;
}
.policy-doc h3 {
  font-size: 1.06rem;
  color: var(--navy);
  margin: 1.1rem 1.3rem 0.4rem;
}
.policy-doc h4 {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0.9rem 1.3rem 0.3rem;
}
.policy-doc p {
  padding: 0 1.3rem 0.85rem;
  color: var(--muted);
  max-width: 68ch;
}
.policy-doc ul,
.policy-doc ol {
  padding: 0 1.3rem 0.85rem 2.6rem;
  color: var(--muted);
  max-width: 68ch;
}
.policy-doc li {
  margin-bottom: 0.35rem;
}
.policy-doc strong {
  color: var(--ink);
}
.policy-doc blockquote {
  margin: 0.5rem 1.3rem 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--ink);
}
.policy-doc table {
  width: calc(100% - 2.6rem);
  margin: 0.5rem 1.3rem 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.policy-doc th,
.policy-doc td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  text-align: left;
  color: var(--muted);
}
.policy-doc th {
  background: var(--cream);
  color: var(--ink);
}
.policy-doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem 1.3rem;
}
.policy-doc p:first-of-type {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

@media (min-width: 560px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Fee schedule: readable, responsive and aligned with the school palette. */
.fee-table-wrap { border:1px solid var(--line);border-radius:var(--radius);overflow-x:auto;background:#fff; }
.fee-table { width:100%;border-collapse:collapse;text-align:left;min-width:480px; }
.fee-table thead { background:var(--navy);color:#fff; }
.fee-table th,.fee-table td { padding:1.2rem 1.5rem; }
.fee-table tbody tr+tr { border-top:1px solid var(--line); }
.fee-table tbody tr:nth-child(even) { background:var(--cream,#faf8f4); }
.fee-table tbody th { color:var(--navy);font-weight:600; }
.fee-table td { font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap; }
.fee-period { font-weight:400;font-size:.85em;color:var(--muted); }
@media(max-width:600px) { .fee-table th,.fee-table td { padding:1rem .85rem; } }

/* Board result archive */
.results-year{padding-top:3rem;scroll-margin-top:7rem}
.results-rate{font-size:2.8rem;font-weight:700;color:var(--navy,#243b65);margin:1rem 0}
.results-rate span{font-size:1rem;font-weight:400}
.results-counts{display:flex;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}
.results-counts dt{font-size:.8rem;color:#5c6268}.results-counts dd{margin:0;font-weight:700;font-size:1.3rem}

.result-highlight{background:linear-gradient(135deg,#fff,#f7f3ed)}
.result-highlight .result-highlight__rate{font-size:3.5rem;line-height:1.1;margin:1.5rem 0 .5rem;color:#243b65}
.result-highlight__rate span{display:block;font-size:1.1rem;font-family:var(--font-body, sans-serif);margin-top:.7rem}
.result-highlight__source{font-size:.75rem;color:#656b73}
.results-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;text-align:center}
.result-highlight .results-counts dd{font-size:1.5rem}

.result-toppers{margin-top:1.5rem;border-top:1px solid #ddd4ca;padding-top:1.5rem;text-align:left}
.result-toppers h4{margin:0;font-size:1.1rem}.result-toppers__method{font-size:.75rem;color:#656b73}
.result-toppers ol{list-style:decimal;padding-left:1.25rem;margin:1rem 0 0}
.result-toppers li{padding:.65rem 0 .65rem .35rem;border-bottom:1px solid #eee8e1}
.result-toppers li:last-child{border-bottom:0}.result-toppers strong{float:right;color:#243b65;font-variant-numeric:tabular-nums}

.result-stream{margin-top:1.5rem}.result-stream h5{font-size:1rem;margin:0;color:#243b65}.result-stream ol{margin-top:.5rem}

.result-subjects{margin-top:1.5rem;border-top:1px solid #ddd4ca;padding-top:1.5rem;text-align:left}
.result-subjects h4{font-size:1.1rem;margin:0}.subject-topper-list{list-style:none;padding:0;margin:.75rem 0 0}
.subject-topper-list li{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:.75rem 0;border-bottom:1px solid #eee8e1}
.subject-topper-list li:last-child{border-bottom:0}.subject-topper-list strong{display:block;font-size:.9rem}.subject-topper-list span{display:block;font-size:.85rem;margin-top:.2rem;color:#656b73}.subject-topper-list b{white-space:nowrap;color:#243b65;font-variant-numeric:tabular-nums}.subject-topper-list small{font-size:.7rem;font-weight:400}
