/* =============================================================
   YOUNGRAPH — Premium Redesigned Stylesheet
   Display: Playfair Display (600 / italic)
   Body   : Plus Jakarta Sans (400 / 500 / 600 / 700)
   Palette: Midnight Navy · Blush · Sage · Warm Gold · Soft Ivory
   ----------------------------------------------------------
   Unified design system: consistent radius scale, shadow layers,
   fluid typography, refined spacing rhythm, premium hover states.
   All motion: transform + opacity only for GPU acceleration.
   ============================================================= */

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

:root {
  /* ── Primary Palette ── */
  --night:       #13111F;
  --night2:      #1A1829;
  --night3:      #2D2A50;
  --night4:      #3A375C;

  /* ── Accent — Refined Gold ── */
  --gold:        #B8963E;
  --gold-lt:     #D4B36A;
  --gold-bg:     #FDF6E3;
  --gold-pale:   #FFFDF5;

  /* ── Pastel Accents ── */
  --blush:       #F5E6E0;
  --blush-deep:  #E8C9BF;
  --sage:        #D4E4D0;
  --sage-deep:   #B5CCAD;
  --lavender:    #E8E0F0;
  --lavender-deep:#C9B8E0;
  --sky:         #DEEDF5;
  --sky-deep:    #B8D4E8;
  --peach:       #FDE8D8;
  --peach-deep:  #F5C9A8;

  /* ── Neutrals ── */
  --ivory:       #FAF8F5;
  --ivory-dk:    #F0ECE4;
  --page:        #FDFCFB;
  --page-alt:    #F8F5F0;
  --ink:         #1A1630;
  --body:        #4A4560;
  --muted:       #7A7590;
  --border:      #E8E2DA;
  --border-dk:   #2D2A50;

  /* ── Unified Radius Scale ── */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  /* ── Layered Shadow System ── */
  --sh-xs:   0 1px 3px rgba(27,25,50,.06), 0 1px 2px rgba(27,25,50,.04);
  --sh-sm:   0 2px 8px rgba(27,25,50,.07), 0 1px 3px rgba(27,25,50,.04);
  --sh-md:   0 4px 16px rgba(27,25,50,.08), 0 2px 6px rgba(27,25,50,.05);
  --sh-lg:   0 8px 32px rgba(27,25,50,.10), 0 4px 12px rgba(27,25,50,.06);
  --sh-xl:   0 16px 48px rgba(27,25,50,.12), 0 8px 20px rgba(27,25,50,.08);
  --sh-gold: 0 4px 20px rgba(184,150,62,.25), 0 1px 4px rgba(184,150,62,.1);

  /* ── Typography ── */
  --serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

h1, h2 { font-family: var(--serif); color: var(--ink); line-height: 1.1; font-weight: 600; }
h3, h4 { font-family: var(--sans); color: var(--ink); line-height: 1.25; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { overflow: hidden; }
::selection { background: var(--gold-bg); color: var(--ink); }

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

/* Keyboard focus */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.dk :focus-visible, #mm :focus-visible, footer :focus-visible, #contact :focus-visible {
  outline-color: var(--gold-lt);
}

/* ───────────── Layout ───────────── */
.c { max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px)  { .c { padding-inline: 2rem; } }
@media (min-width: 1024px) { .c { padding-inline: 3rem; } }

.sp { padding-block: clamp(3.5rem, 3rem + 3vw, 6.5rem); }

/* ───────────── Scroll Reveal ───────────── */
.r { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,1,.3,1), transform .6s cubic-bezier(.2,1,.3,1); }
.r.v { opacity: 1; transform: none; }
.r.d1 { transition-delay: .08s; } .r.d2 { transition-delay: .16s; } .r.d3 { transition-delay: .24s; }
.r.d4 { transition-delay: .32s; } .r.d5 { transition-delay: .4s; }

/* ───────────── Eyebrow ───────────── */
.ey {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .875rem;
  border-radius: var(--r-full);
  background: var(--gold-bg);
  color: var(--gold);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ey-dk { background: rgba(212,179,106,.12); color: var(--gold-lt); }
.ey-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; flex-shrink: 0; }

/* ───────────── Divider ───────────── */
.div-line { width: 2.5rem; height: 2px; background: var(--gold); border-radius: var(--r-full); margin: .875rem 0; }
.div-line.c { margin-inline: auto; }
.div-line.dk { background: var(--gold-lt); opacity: .5; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  min-height: 46px;
  letter-spacing: -0.01em;
}
.btn-gold { background: var(--gold); color: #fff; box-shadow: var(--sh-gold); }
.btn-ghost-lt { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); border: 1.5px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.btn-ghost-dk { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-white { background: #fff; color: var(--gold); font-weight: 700; box-shadow: var(--sh-sm); }
.btn svg { flex-shrink: 0; }

@media (hover: hover) {
  .btn-gold:hover { background: #9C7E2E; box-shadow: 0 6px 28px rgba(184,150,62,.35); transform: translateY(-2px); }
  .btn-ghost-lt:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); transform: translateY(-1px); }
  .btn-ghost-dk:hover { background: var(--gold); color: #fff; box-shadow: var(--sh-gold); transform: translateY(-1px); }
  .btn-white:hover { background: var(--gold-pale); transform: translateY(-2px); box-shadow: var(--sh-md); }
}

/* ───────────── Card Base ───────────── */
.card {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) { .card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); } }

/* ───────────── NAV / HEADER ───────────── */
#nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
#nav.dk {
  background: rgba(19,17,31,.85);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  box-shadow: 0 1px 24px rgba(0,0,0,.15), inset 0 -1px 0 rgba(255,255,255,.04);
}
#nav.lt {
  background: rgba(253,252,251,.96);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 12px rgba(0,0,0,.04);
}
.ni { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (max-width: 480px) { .ni { height: 3.5rem; } .logo-n { font-size: 1rem; } .logo-t { display: none; } .logo img { height: 2rem; } }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo img { height: 2.25rem; width: auto; border-radius: var(--r-xs); }
.logo-n {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .06em;
  display: block;
  transition: color .3s;
  font-family: var(--sans);
}
.logo-t {
  font-size: .575rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: .05rem;
  transition: color .3s;
  font-weight: 500;
}
#nav.dk .logo-n { color: #fff; }
#nav.dk .logo-t { color: rgba(255,255,255,.5); }

.nav-r { display: flex; align-items: center; gap: .75rem; }
.nl { display: none; list-style: none; gap: .25rem; align-items: center; }
@media (min-width: 1024px) { .nl { display: flex; } }
.nl a {
  display: flex; align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--body);
  border-radius: var(--r-xs);
  transition: color .2s, background-color .2s;
  letter-spacing: -0.005em;
}
#nav.dk .nl a { color: rgba(255,255,255,.7); }
@media (hover: hover) {
  .nl a:hover { color: var(--ink); background: var(--blush); }
  #nav.dk .nl a:hover { color: #fff; background: rgba(255,255,255,.08); }
}

.ncta {
  display: none;
  padding: .6rem 1.375rem;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  transition: background-color .2s, box-shadow .2s;
  box-shadow: var(--sh-gold);
  letter-spacing: -0.005em;
}
#nav.dk .ncta { background: rgba(212,179,106,.2); color: var(--gold-lt); box-shadow: none; border: 1.5px solid rgba(212,179,106,.3); }
@media (hover: hover) {
  .ncta:hover { background: #9C7E2E; box-shadow: 0 4px 20px rgba(184,150,62,.35); }
  #nav.dk .ncta:hover { background: rgba(212,179,106,.3); border-color: rgba(212,179,106,.5); }
}
@media (min-width: 640px) { .ncta { display: inline-block; } }

.ham {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: .5rem; min-width: 44px; min-height: 44px;
  border-radius: var(--r-xs);
  transition: background-color .15s;
}
@media (hover: hover) { .ham:hover { background: rgba(0,0,0,.04); } }
.ham span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: var(--r-full); transition: background-color .25s, transform .3s cubic-bezier(.2,1,.3,1); }
#nav.dk .ham span { background: rgba(255,255,255,.8); }
@media (min-width: 1024px) { .ham { display: none; } }

/* ───────────── Mobile Menu ───────────── */
#mm {
  position: fixed; inset: 0;
  background: var(--night);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 1.75rem;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,1,.3,1);
}
#mm.open { transform: none; }
.mm-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.mm-logo { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: .06em; font-family: var(--sans); }
.mm-x {
  background: rgba(255,255,255,.07); border: none;
  color: rgba(255,255,255,.65);
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.25rem;
  transition: background-color .2s, color .2s;
}
@media (hover: hover) { .mm-x:hover { background: rgba(255,255,255,.12); color: #fff; } }
#mm nav { display: flex; flex-direction: column; }
#mm nav a {
  display: block;
  min-height: 44px;
  font-size: clamp(1.5rem, 1.1rem + 4vw, 2rem);
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s, padding-left .2s;
  font-family: var(--serif);
  font-style: italic;
}
@media (hover: hover) { #mm nav a:hover { color: var(--gold-lt); padding-left: .5rem; } }
.mm-bot { margin-top: auto; padding-top: 2rem; }
.mm-enq {
  display: inline-block;
  padding: .9rem 2.25rem;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-gold);
  letter-spacing: -0.005em;
}

/* ───────────── HERO ───────────── */
#home {
  min-height: 100svh;
  background: var(--night);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
#home::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: transparent;
  pointer-events: none;
}
.hg {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 6.5rem;
  padding-bottom: 7rem;
}
@media (min-width: 1024px) { .hg { grid-template-columns: 1.2fr .8fr; gap: 4.5rem; align-items: center; padding-top: 8rem; padding-bottom: 8rem; } }
@media (max-width: 767px) { .hg { text-align: center; } }

.h1 {
  font-size: clamp(2.25rem, 1.7rem + 3.5vw, 5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.h1 em { font-style: italic; color: var(--gold-lt); }
.h-sub {
  margin-top: 1.25rem;
  font-size: clamp(.9375rem, .87rem + .4vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  max-width: 28rem;
  font-weight: 400;
}
@media (min-width: 768px) { .h-sub { margin-top: 1.5rem; } }
@media (max-width: 767px) { .h-sub { margin-inline: auto; } }

.h-locs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
@media (max-width: 767px) { .h-locs { justify-content: center; } }
.h-loc {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.h-loc svg { width: 11px; height: 11px; flex-shrink: 0; opacity: .55; }

.h-acts { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.25rem; }
.h-acts .btn { width: 100%; }
@media (min-width: 480px) { .h-acts { flex-direction: row; flex-wrap: wrap; gap: .875rem; } .h-acts .btn { width: auto; } }
@media (max-width: 767px) { .h-acts { justify-content: center; } }

.h-trust {
  position: relative; z-index: 3;
  display: flex; align-items: flex-start; gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
  max-width: 30rem;
}
@media (max-width: 767px) { .h-trust { text-align: left; margin-inline: auto; max-width: 22rem; } }
.h-trust-ic {
  flex-shrink: 0;
  width: 1.625rem; height: 1.625rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(184,150,62,.3);
}
.h-trust p { font-size: .8125rem; line-height: 1.7; color: rgba(255,255,255,.72); font-weight: 400; }
.h-trust p strong { color: rgba(255,255,255,.92); font-weight: 600; }

/* Stats Grid */
.stats-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 8px 40px rgba(0,0,0,.15), 0 2px 12px rgba(0,0,0,.1);
  backdrop-filter: blur(16px);
  background: rgba(35,32,64,.6);
}
.stat {
  background: var(--night2);
  padding: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem) clamp(1rem, .8rem + .8vw, 1.5rem);
  transition: background-color .2s;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,179,106,.04), transparent);
  pointer-events: none;
}
@media (hover: hover) { .stat:hover { background: var(--night3); } }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.04); }
.stat:nth-child(n+3) { border-top: none; }
.sn {
  font-size: clamp(1.75rem, 1.4rem + 2vw, 2.875rem);
  font-weight: 600;
  color: var(--gold-lt);
  line-height: 1;
  letter-spacing: -.03em;
  font-family: var(--serif);
}
.sl {
  font-size: clamp(.65rem, .6rem + .25vw, .72rem);
  color: rgba(255,255,255,.68);
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: .35rem;
  line-height: 1.4;
}

.scroll-ic {
  position: absolute; bottom: 5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.25);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .575rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: bob 2.6s ease-in-out infinite;
  text-decoration: none;
  font-weight: 500;
}
.scroll-ic svg { width: 16px; height: 16px; }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* Hero reveal — never start hidden */
#home .r, .pgh .r { opacity: 1; transform: none; transition: none; }

/* ───────────── Shape Divider (curved arch) ───────────── */
.shape-divider {
  position: absolute; bottom: 0; left: 0;
  width: 100%; line-height: 0; z-index: 2;
  pointer-events: none;
}
.shape-divider svg { display: block; width: 100%; height: auto; }

/* ───────────── ABOUT ───────────── */
#about { background: var(--ivory); }
.about-g { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: start; }
@media (min-width: 1024px) { .about-g { grid-template-columns: 1.1fr .9fr; gap: 5rem; } }
@media (max-width: 767px) { .about-g .r { text-align: center; } .about-g .r .div-line, .about-g .r .blockq { margin-inline: auto; } }

.about-h2 {
  font-size: clamp(1.875rem, 1.5rem + 1.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -.015em;
  margin: .875rem 0 1.25rem;
  line-height: 1.12;
}
.about-h2 em { font-style: italic; color: var(--gold); }
.about-p {
  font-size: clamp(.9375rem, .89rem + .25vw, 1.0625rem);
  color: var(--body);
  line-height: 1.8;
  font-weight: 400;
}
.blockq { margin-top: .75rem; padding: .5rem 0 0; text-align: center; }
.blockq p { font-family: var(--serif); font-size: 1.125rem; font-style: italic; color: var(--gold); line-height: 1.5; }

.feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  text-align: left;
  background: var(--page);
}
.feat {
  padding: clamp(1rem, .8rem + .8vw, 1.75rem);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background-color .2s;
  position: relative;
}
@media (hover: hover) { .feat:hover { background: var(--blush); } }
.feat:nth-child(2n) { border-right: none; }
.feat:nth-child(n+3) { border-bottom: none; }
.feat-mark {
  width: 1.5rem; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  margin-bottom: .875rem;
  border-radius: var(--r-full);
}
.feat h3 { font-size: clamp(.8125rem, .78rem + .15vw, .9375rem); font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.feat p { font-size: clamp(.75rem, .72rem + .12vw, .8125rem); color: var(--body); line-height: 1.7; font-weight: 400; }

/* ───────────── COURSES ───────────── */
#courses { background: var(--page); }
.sh-h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.75vw, 3rem);
  font-weight: 600;
  letter-spacing: -.015em;
  margin: .875rem 0;
  line-height: 1.12;
}
.sh-h2 em { font-style: italic; color: var(--gold); }
.sh-p {
  font-size: clamp(.9375rem, .89rem + .25vw, 1.0625rem);
  color: var(--body);
  max-width: 32rem;
  line-height: 1.75;
  font-weight: 400;
}

.ctabs {
  display: flex; flex-direction: column;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  background: var(--page);
}
@media (min-width: 768px) { .ctabs { flex-direction: row; } }

.tnav {
  display: flex; flex-direction: row;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--ivory-dk);
}
.tnav::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tnav { flex-direction: column; border-bottom: none; border-right: 1px solid var(--border); min-width: 210px; overflow-x: visible; } }

.tb {
  flex-shrink: 0;
  min-height: 50px;
  padding: .875rem 1.25rem;
  background: none; border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  transition: color .2s, background-color .2s;
}
@media (min-width: 768px) { .tb { white-space: normal; padding: 1.125rem 1.5rem; } }
.tb.a { color: var(--ink); background: var(--page); }
.tb::after {
  content: '';
  position: absolute;
  background: var(--gold);
  opacity: 0;
  transition: opacity .2s;
  bottom: 0; left: 0; right: 0; height: 2px;
}
@media (min-width: 768px) { .tb::after { left: 0; top: 0; bottom: 0; width: 3px; height: auto; right: auto; } }
.tb.a::after { opacity: 1; }
.tsub { display: none; font-size: .6875rem; color: var(--muted); font-weight: 400; margin-top: .125rem; }
@media (min-width: 768px) { .tsub { display: block; } }

.tpp { flex: 1; }
.tp { display: none; padding: 1.75rem 1.5rem; }
@media (min-width: 768px) { .tp { padding: 2.25rem 2.5rem; } }
.tp.a { display: block; }
.tp-lv { font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.tp-h {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  margin: .3rem 0;
  letter-spacing: -.015em;
  font-family: var(--serif);
}
.tp-g { font-size: .8125rem; color: var(--body); margin-bottom: 1.375rem; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.375rem; }
.chip {
  padding: .35rem .9rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--blush);
  background: var(--blush);
  font-size: .7rem;
  font-weight: 600;
  color: var(--body);
  transition: border-color .2s, background-color .2s;
}
@media (hover: hover) { .chip:hover { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); } }
.tp-sl { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.dlist { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.dlist li {
  display: flex; align-items: flex-start; gap: .875rem;
  font-size: .9375rem;
  color: var(--body);
  font-weight: 400;
}
.dlist li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: .55rem;
  opacity: .7;
}

/* ───────────── FACULTY ───────────── */
#faculty { background: var(--ivory); }
.fg { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .fg { grid-template-columns: repeat(3, 1fr); } }
.fc {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) { .fc:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); } }
.fc.dir { border-top: 3px solid var(--gold); }
.fc-ph { width: 100%; aspect-ratio: 4/5; overflow: hidden; background: var(--ivory); position: relative; }
.fc-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 5%; transition: transform .4s ease; }
@media (hover: hover) { .fc:hover .fc-ph img { transform: scale(1.05); } }
.fc-init { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 600; color: var(--gold); background: var(--gold-bg); font-family: var(--serif); }
.fc-b { padding: 1.375rem 1.5rem; }
.fc-role { display: inline-block; padding: .25rem .75rem; border-radius: var(--r-full); background: var(--gold-bg); color: var(--gold); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .625rem; }
.fc.dir .fc-role { background: var(--gold); color: #fff; }
.fc-name { font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.2; letter-spacing: -.01em; font-family: var(--serif); }
.fc-subj { font-size: .8125rem; font-weight: 600; color: var(--gold); margin-top: .3rem; }
.fc-qual { font-size: .775rem; color: var(--muted); margin-top: .375rem; line-height: 1.55; font-weight: 400; }
.fc-exp { font-size: .8125rem; font-style: italic; color: var(--body); margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); font-weight: 400; }

/* ───────────── TESTIMONIALS ───────────── */
#testimonials { background: var(--page); position: relative; padding-bottom: 2rem; }
.tcar { max-width: 52rem; margin-inline: auto; }
@media (max-width: 767px) { .tcar { text-align: center; } }
.qm { display: none; }
.qt {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -.005em;
  font-family: var(--serif);
  font-style: italic;
}
.qst { display: none; }
.qau { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
@media (max-width: 767px) { .qau { justify-content: center; } }
.qav {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184,150,62,.25);
  font-family: var(--serif);
}
.qn { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.qg { font-size: .8125rem; color: var(--muted); margin-top: .1rem; font-weight: 400; }
.cctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 2.5rem; }
.cdots { display: flex; gap: .4rem; align-items: center; }
.cdot {
  width: 6px; height: 6px; min-width: 6px;
  border-radius: var(--r-full);
  background: var(--border);
  border: none; cursor: pointer; padding: 0;
  transition: background-color .25s, width .25s;
}
.cdot.a { background: var(--gold); width: 24px; }
.carr { display: flex; gap: .625rem; }
.ca {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--border);
  background: var(--page);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--body);
  font-size: .9375rem;
  transition: color .2s, border-color .2s, background-color .2s, transform .2s;
}
@media (hover: hover) { .ca:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); transform: translateY(-1px); } }
.mcards { display: none; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 2rem; text-align: left; }
@media (min-width: 1024px) { .mcards { display: grid; } }
.mc {
  padding: 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.mc:hover, .mc.a { border-color: var(--gold); background: var(--gold-bg); box-shadow: var(--sh-xs); }
.mcs { font-size: .625rem; color: var(--gold); letter-spacing: .1em; }
.mcq { font-size: .8125rem; color: var(--body); line-height: 1.6; margin-top: .4rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; }
.mcn { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-top: .75rem; }
.mcg { font-size: .75rem; color: var(--muted); font-weight: 400; }

/* ───────────── CONTACT ───────────── */
#contact {
  background: var(--night);
  position: relative;
  padding-top: 3.5rem;
}
#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--page) 0%, var(--night) 100%);
  pointer-events: none;
}
#contact .r { text-align: center; }
#contact .div-line { margin-inline: auto; }
.cg { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .cg { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.cis { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 767px) { .cis { align-items: stretch; } }
.ci {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.375rem;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.025);
  color: inherit;
  transition: border-color .25s, background-color .25s, transform .25s, box-shadow .25s;
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
@media (hover: hover) { a.ci:hover { border-color: rgba(184,150,62,.25); background: rgba(184,150,62,.05); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); } }
.ci-ic {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  background: rgba(212,179,106,.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-lt);
  overflow: hidden;
  border: 1px solid rgba(212,179,106,.12);
}
.ci-ic svg { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.ci-l { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .2rem; }
.ci-v { font-weight: 600; color: #fff; font-size: .9375rem; }
.ci-s { font-size: .8125rem; color: rgba(255,255,255,.65); margin-top: .25rem; line-height: 1.55; font-weight: 400; }
.cmap { border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(255,255,255,.06); min-height: 20rem; box-shadow: var(--sh-lg); }
.cmap iframe { width: 100%; height: 100%; min-height: 20rem; border: none; display: block; }

/* ───────────── FOOTER ───────────── */
footer { background: var(--night); }

.f-cta {
  background: linear-gradient(130deg, var(--night2) 0%, var(--night) 50%, var(--night2) 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.04);
}
.f-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(212,179,106,.06) 0%, transparent 60%);
  pointer-events: none;
}
.f-cta-inner {
  display: flex; flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 599px) { .f-cta-inner { align-items: center; text-align: center; } }
@media (min-width: 600px) { .f-cta-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 2.5rem; } }
.f-cta-eyebrow {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: .5rem;
  opacity: .8;
}
.f-cta-h {
  font-size: clamp(1.2rem, 1rem + 1.4vw, 1.65rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.25;
  font-family: var(--serif);
}
.f-cta-h em {
  font-style: italic;
  color: var(--gold-lt);
}
.f-cta-btn {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem;
  min-height: 46px;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transition: background-color .2s, box-shadow .2s, transform .2s;
  font-family: var(--sans);
  box-shadow: var(--sh-gold);
  letter-spacing: -0.005em;
}
@media (hover: hover) { .f-cta-btn:hover { background: #9C7E2E; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(184,150,62,.35); } }
.f-cta-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.f-body { background: var(--night); padding: 3.5rem 0 2rem; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
@media (max-width: 759px) {
  .f-grid { grid-template-columns: 1fr; text-align: center; }
  .f-brand { grid-column: auto; padding-bottom: 1.5rem; }
  .f-brand .f-desc { margin-inline: auto; }
  .f-logo-link { justify-content: center; }
  .f-socials { justify-content: center; }
  .f-col { text-align: center; }
  .f-nav-list { display: flex; flex-direction: column; align-items: center; }
  .f-list { display: flex; flex-direction: column; align-items: center; }
  .f-address { display: flex; flex-direction: column; align-items: center; }
  .f-contact-row { justify-content: center; }
}
@media (max-width: 480px) { .f-grid { grid-template-columns: 1fr; gap: 2rem; } }
@media (min-width: 760px)  { .f-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem 3rem; } }
@media (min-width: 1024px) { .f-grid { grid-template-columns: 1.8fr 1fr 1fr 1.1fr; gap: 2rem 3.5rem; } }
.f-brand { grid-column: 1 / -1; padding-bottom: 1.5rem; /* Original style */ }
@media (min-width: 760px) { .f-brand { grid-column: 1; padding-bottom: 0; } }
.f-brand .f-desc { max-width: 100%; }
@media (min-width: 760px) { .f-brand .f-desc { max-width: 20rem; } }
.f-logo-link { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-bottom: .75rem; }
.f-logo-img { border-radius: 6px; flex-shrink: 0; width: 30px; height: 30px; object-fit: contain; }
.f-logo-name { font-size: 1rem; font-weight: 700; letter-spacing: .08em; color: #fff; font-family: var(--sans); }
.f-tagline { font-size: .575rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .75rem; font-weight: 500; }
.f-desc { font-size: .8125rem; line-height: 1.75; color: rgba(255,255,255,.42); max-width: 100%; font-weight: 400; }
.f-socials { display: flex; gap: .5rem; margin-top: 1rem; }
.f-social-link {
  display: inline-flex;
  width: 2rem; height: 2rem;
  border-radius: var(--r-xs);
  border: 1px solid rgba(255,255,255,.08);
  align-items: center; justify-content: center;
  color: rgba(255,255,255,.35);
  transition: color .2s, border-color .2s, background-color .2s;
  text-decoration: none;
}
@media (hover: hover) { .f-social-link:hover { color: var(--gold-lt); border-color: rgba(212,179,106,.35); background: rgba(212,179,106,.08); } }
.f-social-link svg { width: 14px; height: 14px; flex-shrink: 0; display: block; }

.f-col-heading {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.25rem;
  opacity: .65;
  padding-bottom: .625rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.f-col > .f-col-heading {
  margin-top: 0;
}
.f-nav-list { display: flex; flex-direction: column; gap: .625rem; }
.f-nav-list a {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s, transform .2s;
  font-weight: 400;
  line-height: 1.5;
  display: block;
  min-height: 28px;
}
@media (hover: hover) { .f-nav-list a:hover { color: var(--gold-lt); transform: translateX(3px); } }
.f-list { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.f-list li { font-size: .8125rem; color: rgba(255,255,255,.45); line-height: 1.5; font-weight: 400; }

.f-address { font-style: normal; }
.f-contact-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; text-decoration: none; }
.f-contact-icon { color: var(--gold); flex-shrink: 0; opacity: .7; width: 12px; height: 12px; display: block; margin-top: .2rem; }
.f-contact-row span { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.65; }
.f-contact-link { font-size: .8rem; color: rgba(255,255,255,.55); transition: color .2s; font-weight: 400; }
@media (hover: hover) { .f-contact-link:hover { color: var(--gold-lt); } }

.f-divider { border: none; border-top: 1px solid rgba(255,255,255,.03); margin: 0; }
.f-bottom { background: var(--night); padding: 1rem 0; }
.f-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; }
@media (min-width: 600px) { .f-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.f-copy, .f-made { font-size: .6875rem; color: rgba(255,255,255,.28); font-weight: 400; letter-spacing: .02em; }

/* ───────────── WhatsApp FAB ───────────── */
.wa {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 50;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.3), 0 2px 8px rgba(37,211,102,.15);
  transition: transform .25s, box-shadow .25s;
  color: #fff;
}
.wa svg { width: 24px; height: 24px; display: block; }
@media (hover: hover) { .wa:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,.4), 0 4px 12px rgba(37,211,102,.2); } }

/* ───────────── Page Hero (sub-pages) ───────────── */
.pgh {
  background: var(--night);
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.pgh .c { text-align: center; max-width: 48rem; margin-inline: auto; }
.pgh .ey-dk { display: inline-flex; margin-bottom: .875rem; }
.pgh h1 {
  font-size: clamp(2.25rem, 1.85rem + 2.5vw, 3.75rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.pgh h1 em { font-style: italic; color: var(--gold-lt); }
.pgh p {
  margin-top: 1rem;
  font-size: clamp(.9375rem, .89rem + .25vw, 1.0625rem);
  color: rgba(255,255,255,.68);
  max-width: 30rem;
  margin-inline: auto;
  line-height: 1.75;
  font-weight: 400;
}

/* ───────────── TOPPERS PAGE ───────────── */
.table-wrap { overflow-x: auto; }

.board-tabs {
  display: flex; width: fit-content;
  margin-inline: auto;
  gap: 0;
  margin-bottom: 2.5rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  background: var(--page);
  box-shadow: var(--sh-xs);
  max-width: 100%;
}
@media (max-width: 767px) { .board-tabs { width: 100%; display: flex; } }
.board-tab {
  flex: none;
  padding: .8rem 1.75rem;
  min-height: 46px;
  border: none;
  border-right: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background-color .2s, color .2s;
  white-space: nowrap;
}
@media (max-width: 767px) { .board-tab { flex: 1; text-align: center; padding: .8rem .5rem; font-size: .8125rem; } }
.board-tab:last-child { border-right: none; }
.board-tab.active { background: var(--gold); color: #fff; }
@media (hover: hover) { .board-tab:hover:not(.active) { background: var(--gold-bg); color: var(--gold); } }
.board-pane { display: none; }
.board-pane.active { display: block; }
@media (max-width: 767px) { .board-tabs { justify-content: center; } }

.board-pane > .r { text-align: center; }
.board-pane .sh-p { margin-inline: auto; }
.board-pane .subj-tabs { justify-content: center; }

.subj-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.subj-tab {
  padding: .45rem 1.125rem;
  min-height: 38px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--page);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.subj-tab.active { background: var(--gold); color: #fff; border-color: var(--gold); }
@media (hover: hover) { .subj-tab:hover:not(.active) { background: var(--gold-bg); color: var(--gold); border-color: var(--gold); } }
.subj-pane { display: none; }
.subj-pane.active { display: block; }

.section-divider { display: flex; align-items: center; gap: 1.5rem; margin: 0 0 2.5rem; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-divider span { font-size: .625rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* SSC / ICSE topper card grids */
.ssc-grid, .ic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 2rem; }
@media (min-width: 480px) { .ssc-grid, .ic-grid { gap: 1rem; } }
@media (min-width: 640px)  { .ssc-grid, .ic-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ssc-grid, .ic-grid { grid-template-columns: repeat(4, 1fr); } }

.ssc-card, .ic-card {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--page);
  box-shadow: var(--sh-xs);
  position: relative;
  display: block;
  transition: opacity .5s cubic-bezier(.2,1,.3,1), transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
@media (hover: hover) {
  .ssc-card:hover, .ic-card:hover { box-shadow: var(--sh-lg); transform: translateY(-5px); }
}

.ssc-rank, .ic-rank {
  position: absolute; top: .625rem; left: .625rem; z-index: 10;
  width: 1.875rem; height: 1.875rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6875rem; font-weight: 700;
  color: #fff; line-height: 1;
  font-family: var(--sans);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ssc-rank.r1, .ic-rank.r1 { background: linear-gradient(135deg, #D4AF37, #B8860B); }
.ssc-rank.r2, .ic-rank.r2 { background: linear-gradient(135deg, #B0B3B8, #6E6E6E); }
.ssc-rank.r3, .ic-rank.r3 { background: linear-gradient(135deg, #C67C3C, #8B4513); }
.ssc-rank.r4, .ic-rank.r4 { background: rgba(0,0,0,.4); }

.ssc-img, .ic-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; display: block; transition: transform .4s ease; }
@media (hover: hover) { .ssc-card:hover .ssc-img, .ic-card:hover .ic-img { transform: scale(1.05); } }
.ssc-init, .ic-init { width: 100%; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.5rem); font-weight: 600; color: var(--gold); background: var(--gold-bg); font-family: var(--serif); }

.ssc-body, .ic-info { padding: .875rem 1rem; }
@media (min-width: 480px) { .ssc-body, .ic-info { padding: 1rem 1.125rem; } }
.ssc-pct, .ic-score { font-size: clamp(1.125rem, 1rem + .5vw, 1.25rem); font-weight: 600; color: var(--gold); letter-spacing: -.02em; line-height: 1; font-family: var(--serif); }
.ssc-name, .ic-name { font-size: clamp(.75rem, .7rem + .2vw, .8125rem); font-weight: 600; color: var(--ink); margin-top: .35rem; line-height: 1.3; }
.ssc-school, .ic-school { font-size: clamp(.65rem, .6rem + .15vw, .7rem); color: var(--muted); margin-top: .15rem; font-weight: 400; }

/* Merit table */
.merit-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; font-size: .875rem; box-shadow: var(--sh-xs); }
.merit-table th { background: var(--ivory-dk); padding: .85rem 1rem; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 1px solid var(--border); }
.merit-table td { padding: .85rem 1rem; color: var(--body); border-bottom: 1px solid var(--border); font-weight: 400; }
.merit-table tr:last-child td { border-bottom: none; }
.merit-table tr:nth-child(even) td { background: var(--ivory); }
.merit-table .marks { font-weight: 600; color: var(--gold); font-size: .9375rem; font-family: var(--serif); }

/* ───────────── GALLERY ───────────── */
.gal-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .gal-grid { gap: 1rem; } }
@media (min-width: 640px)  { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }
.gal-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--ivory);
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  transition: box-shadow .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) { .gal-item:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); } }
.gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) { .gal-item:hover img { transform: scale(1.05); } }
.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,25,50,.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  display: flex; align-items: flex-end;
  padding: 1.5rem;
}
@media (hover: hover) { .gal-item:hover .gal-overlay { opacity: 1; } }
@media (hover: none) { .gal-overlay { opacity: 1; background: linear-gradient(to top, rgba(27,25,50,.7) 0%, transparent 65%); padding: 1rem; } }
.gal-lbl { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.9); letter-spacing: .04em; }

.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(27,25,50,.96);
  z-index: 300;
  align-items: center; justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}
.lightbox.open { display: flex; }
.lb-img { max-width: 100%; max-height: 88vh; border-radius: var(--r-md); object-fit: contain; box-shadow: var(--sh-xl); }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: none; color: #fff;
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .2s;
  backdrop-filter: blur(8px);
}
@media (hover: hover) { .lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); } }
.lb-close { top: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; min-width: 44px; min-height: 44px; font-size: 1.25rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; min-width: 44px; min-height: 44px; font-size: 1.125rem; }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
@media (max-width: 639px) { .lb-prev { left: .5rem; } .lb-next { right: .5rem; } }

/* ───────────── Touch-device tap targets ───────────── */
@media (hover: none) {
  .nl a, .tb, .ham { min-height: 44px; }
}
