/* Layout: a calm institutional site. Navy header, photo hero with the rounded
   crest, then white and tinted bands that take the aspirant from "why Nova"
   through courses, schedule, fees, results and admission. */
:root {
  --navy: #1B3A6B;
  --navy-deep: #0D1F3C;
  --navy-light: #2C5496;
  --gold: #E0A82E;
  --gold-light: #F6CF6E;
  --on-brand: #FFFFFF;
  --on-brand-muted: #C9D6EE;

  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #EDF1F7;
  --ink: #0F1B30;
  --muted: #55627C;
  --line: #DAE1EC;
  --accent: #1B3A6B;
  --accent-ink: #FFFFFF;
  --gold-text: #7A5A00;
  --gold-soft: #FFF3D1;
  --ok: #157347;
  --shadow: 0 1px 2px rgba(13,31,60,.05), 0 10px 30px rgba(13,31,60,.07);

  --font-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.8vw, 4.5rem);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09121F; --surface: #101D34; --surface-2: #162642; --ink: #E8EDF6; --muted: #9DAAC4;
    --line: #243858; --accent: #A9C7FF; --accent-ink: #0D1F3C; --gold-text: #F6CF6E; --gold-soft: #2B2410;
    --ok: #5FD394; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09121F; --surface: #101D34; --surface-2: #162642; --ink: #E8EDF6; --muted: #9DAAC4;
  --line: #243858; --accent: #A9C7FF; --accent-ink: #0D1F3C; --gold-text: #F6CF6E; --gold-soft: #2B2410;
  --ok: #5FD394; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy-deep); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: calc(var(--wrap) + 32px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(60px, 8vw, 110px); }
.section--tint { background: var(--surface-2); }
.section--navy { background: var(--navy-deep); color: var(--on-brand); }

.eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.section--navy .eyebrow { color: var(--gold-light); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1.1; letter-spacing: -.005em; }
.section-head p { color: var(--muted); font-size: var(--step-1); max-width: 64ch; }
.section--navy .section-head p { color: var(--on-brand-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: var(--r-md); font: 700 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost-light { color: var(--on-brand); border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy-deep); color: var(--on-brand-muted); font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; min-height: 36px; align-items: center; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--gold-light); }
.topbar b { color: var(--gold-light); font-weight: 700; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(13,31,60,.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); color: var(--on-brand); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { width: 52px; height: 52px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; flex: none; overflow: hidden; box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(0,0,0,.25); }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand__sub { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links a { display: block; padding: 8px 13px; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--on-brand-muted); }
.nav__links a:hover { color: var(--on-brand); background: rgba(255,255,255,.07); }
.nav__cta { min-height: 44px; padding: 0 20px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--on-brand); cursor: pointer; place-items: center; }
.nav__toggle svg { width: 22px; height: 22px; }
.mobile-menu { border-top: 1px solid rgba(255,255,255,.08); padding-block: 8px 20px; }
.mobile-menu ul { list-style: none; display: grid; }
.mobile-menu a { display: block; padding: 13px 4px; text-decoration: none; color: var(--on-brand); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-brand); background: radial-gradient(1000px 600px at 90% 0%, rgba(44,84,150,.6), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(224,168,46,.12), transparent 60%), var(--navy-deep); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 100px) clamp(64px, 8vw, 104px); }
.hero__copy { display: grid; gap: 26px; min-width: 0; }
.hero__badge { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: var(--on-brand-muted); }
.hero__badge b { background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: 4px 11px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-4); line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
.hero__lede { font-size: var(--step-1); color: var(--on-brand-muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__stats b { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--gold-light); font-variant-numeric: lining-nums tabular-nums; }
.hero__stats span { font-size: .8rem; color: var(--on-brand-muted); }

.hero__visual { position: relative; min-width: 0; }
.hero__photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.1); aspect-ratio: 4 / 3; max-width: 100%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.slider { position: relative; isolation: isolate; }
.hero__card, .hero__crest { z-index: 2; }
.slider__track { position: absolute; inset: 0; }
.slider__track img { position: absolute; inset: 0; opacity: 0; transform: scale(1); transition: opacity .9s ease, transform 6s linear; }
.slider__track img.is-active { opacity: 1; transform: scale(1.05); z-index: 1; }
.slider__dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; padding: 6px 10px; border-radius: 999px; background: rgba(13,31,60,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.slider__dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.slider__dot.is-active { width: 24px; background: var(--gold); }
.slider__nav { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 8px; z-index: 3; }
.slider__nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(13,31,60,.55); color: #FFFFFF; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s ease; }
.slider__nav button:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.slider__nav svg { width: 18px; height: 18px; }
.hero__crest { position: absolute; left: -22px; bottom: -22px; width: 150px; height: 150px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--navy-deep), 0 0 0 7px var(--gold), 0 20px 50px rgba(0,0,0,.4); }
.hero__crest img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero__card { position: absolute; right: -16px; top: 24px; background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 14px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); display: grid; gap: 4px; min-width: 190px; }
.hero__card small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero__card b { font-size: 1rem; }
.hero__card .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why__item { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.why__item svg { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); }
.why__item h3 { font-size: 1.02rem; font-weight: 700; }
.why__item p { font-size: .9rem; color: var(--muted); }

/* ---------- director ---------- */
.director { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.director__quote { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 600; line-height: 1.25; }
.director__quote em { color: var(--gold-light); font-style: italic; font-weight: 500; }
.director__who { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.director__initial { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; flex: none; }
.director__who b { display: block; font-size: 1.02rem; }
.director__who span { font-size: .85rem; color: var(--on-brand-muted); }
.director__body { display: grid; gap: 16px; color: var(--on-brand-muted); font-size: 1.02rem; max-width: 64ch; }
.director__body strong { color: var(--on-brand); font-weight: 600; }

/* ---------- courses ---------- */
.courses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.course { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.course:hover { border-color: var(--accent); transform: translateY(-2px); }
.course__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.course__icon svg { width: 24px; height: 24px; }
.course h3 { font-size: 1.05rem; font-weight: 700; }
.course p { font-size: .9rem; color: var(--muted); }
.subjects { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.subjects__col { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.subjects__col h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.subjects__col > p { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 7px 13px; border-radius: 999px; font-size: .86rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.chips--gold li { background: var(--gold-soft); color: var(--gold-text); border-color: transparent; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.group h4 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.group .chips li { font-size: .82rem; padding: 5px 11px; }
.subjects__note { margin-top: 18px; font-size: .84rem; color: var(--muted); }

/* ---------- schedule ---------- */
.schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sched { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.sched--gold { background: var(--navy); border-color: var(--navy); color: var(--on-brand); }
.sched small { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.sched--gold small { color: var(--gold-light); }
.sched b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sched p { font-size: .9rem; color: var(--muted); }
.sched--gold p { color: var(--on-brand-muted); }

/* ---------- fees ---------- */
.fees { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.fee-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.fee-table__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.fee-table__head h3 { font-size: 1.05rem; font-weight: 700; }
.fee-table__head span { font-size: .82rem; color: var(--muted); }
.fee-table table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.fee-table th { text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 24px; background: var(--surface-2); }
.fee-table th:last-child { text-align: right; }
.fee-table td { padding: 13px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table .sub { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.fee-table .row--total td { background: var(--surface-2); font-weight: 700; border-top: 2px solid var(--line); }
.fee-side { display: grid; gap: 18px; }
.plan { padding: 26px; border-radius: var(--r-lg); background: var(--navy); color: var(--on-brand); display: grid; gap: 14px; }
.plan h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.plan .price small { font: 600 .85rem var(--font-body); color: var(--on-brand-muted); margin-left: 6px; }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: .92rem; color: var(--on-brand-muted); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-1px); }
.plan .btn { justify-self: start; }
.offer { padding: 20px 24px; border-radius: var(--r-lg); background: var(--gold-soft); color: var(--gold-text); display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.offer b { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 700; }
.offer span { font-size: .92rem; font-weight: 600; }
.hostel { margin-top: 24px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.hostel h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.hostel p { font-size: .92rem; color: var(--muted); }
.hostel__rates { display: grid; gap: 10px; }
.hostel__rates div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .9rem; }
.hostel__rates b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fine { margin-top: 18px; font-size: .82rem; color: var(--muted); }

/* ---------- results ---------- */
.results { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.results__photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); min-width: 0; }
.results__photo img { width: 100%; height: 100%; object-fit: cover; }
.results__photo figcaption { position: absolute; inset: auto 0 0; padding: 48px 20px 18px; color: #FFFFFF; font-size: .9rem; font-weight: 600; background: linear-gradient(180deg, rgba(13,31,60,0), rgba(13,31,60,.85)); }
.stars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-content: stretch; }
.star { padding: 22px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; justify-items: center; text-align: center; }
.star__badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 3px var(--gold-soft); }
.star b { font-size: .95rem; line-height: 1.3; }
.star span { font-size: .8rem; color: var(--muted); }
.story { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border-radius: var(--r-lg); overflow: hidden; background: var(--navy-deep); color: var(--on-brand); box-shadow: var(--shadow); }
.story__photo { position: relative; min-height: 320px; background: var(--navy); }
.story__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__photo--empty { display: grid; place-items: center; padding: 32px; text-align: center; }
.story__photo--empty b { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; line-height: 1; color: var(--gold-light); }
.story__photo--empty span { display: block; margin-top: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-brand-muted); }
.story__body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: center; }
.story__body .eyebrow { color: var(--gold-light); }
.story__body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; }
.story__body p { color: var(--on-brand-muted); font-size: .98rem; max-width: 62ch; }
.story__body blockquote { margin: 4px 0 0; padding-left: 14px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--on-brand); }
.alumni { margin-top: 28px; font-size: .9rem; color: var(--muted); max-width: 90ch; }
.alumni strong { color: var(--ink); }

/* ---------- celebration video ---------- */
.video { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.video__player { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); aspect-ratio: 16 / 9; max-width: 100%; }
.video__player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(180deg, rgba(13,31,60,.1), rgba(13,31,60,.55)); cursor: pointer; display: grid; place-items: center; color: var(--on-brand); padding: 0; }
.video__play span { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(224,168,46,.25), 0 16px 40px rgba(0,0,0,.4); transition: transform .2s ease; }
.video__play:hover span { transform: scale(1.06); }
.video__play svg { width: 36px; height: 36px; margin-left: 4px; }
.video__play small { position: absolute; left: 20px; bottom: 18px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-brand-muted); }
.video__copy { display: grid; gap: 14px; }
.video__copy h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1.1; }
.video__copy h2 em { color: var(--gold-light); font-style: italic; font-weight: 500; }
.video__copy p { color: var(--on-brand-muted); font-size: 1rem; max-width: 50ch; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.review .stars { color: var(--gold); letter-spacing: 2px; }
.review p { font-size: .95rem; color: var(--ink); }
.review footer { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); }
.review footer i { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--accent); }
.review footer b { color: var(--ink); display: block; }
.google-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.google-pill .stars { color: var(--gold); letter-spacing: 1px; }

/* ---------- app ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 32px 0; list-style: none; }
.features li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; }
.features svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-text); }
.features b { font-size: .98rem; }
.features span { font-size: .88rem; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores__note { margin-top: 10px; font-size: .82rem; color: var(--muted); }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: var(--r-md); background: var(--ink); color: var(--bg); text-decoration: none; border: 1px solid transparent; }
.store-btn--soon { background: transparent; color: var(--ink); border-color: var(--line); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: .7rem; opacity: .75; line-height: 1.2; }
.store-btn strong { font-size: 1.05rem; line-height: 1.2; }
/* Phone mockup: a replica of the app's real home screen (fragment_home.xml) in
   its Material 3 light theme. Colors here are the app's own and stay fixed. */
.phone-stage { position: relative; justify-self: center; width: min(320px, 100%); padding: 24px 0; margin-left: clamp(0px, 12vw, 110px); }
.phone-stage::before { content: ""; position: absolute; inset: 10% -20% 10% -20%; background: radial-gradient(closest-side, rgba(224,168,46,.22), transparent 70%); z-index: 0; pointer-events: none; }
.phone { position: relative; z-index: 1; aspect-ratio: 9 / 20; max-width: 100%; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #2B3446, #0B101B 55%, #1A2232); box-shadow: 0 50px 90px rgba(13,31,60,.4), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 2px #0A0E17; }
.phone::before, .phone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 2px; background: #3A4458; }
.phone::before { top: 22%; height: 11%; }
.phone::after { top: 36%; height: 7%; }
.phone__screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #0D1F3C; }
.ph-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 999px; background: #0A0E17; z-index: 5; }
.ph-status { position: absolute; top: 12px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: #FFFFFF; z-index: 4; font-family: var(--font-body); }
.ph-status i { display: inline-flex; gap: 3px; align-items: flex-end; font-style: normal; }
.ph-status i b { display: block; width: 3px; background: #FFFFFF; border-radius: 1px; }
.ph-shot { position: absolute; top: 34px; left: 0; width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: top; }
.phone--back .ph-shot { top: 0; height: 100%; }
.ph-shot--dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-shot--light { display: none; } :root:not([data-theme="light"]) .ph-shot--dark { display: block; } }
:root[data-theme="dark"] .ph-shot--light { display: none; }
:root[data-theme="dark"] .ph-shot--dark { display: block; }
.phone--back { position: absolute; left: -34%; top: 14%; width: 62%; z-index: 0; transform: rotate(-8deg); opacity: .92; border-radius: 34px; padding: 7px; box-shadow: 0 30px 60px rgba(13,31,60,.35), 0 0 0 1px rgba(255,255,255,.06), inset 0 0 0 2px #0A0E17; }
.phone--back::before, .phone--back::after { display: none; }
.phone--back .phone__screen { border-radius: 27px; }
.phone--back .ph-notch { width: 52px; height: 15px; top: 7px; }
.ph-home-ind { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 90px; height: 4px; border-radius: 999px; background: #FFFFFF; opacity: .7; z-index: 4; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__year { position: absolute; left: 20px; bottom: 20px; background: var(--navy-deep); color: var(--on-brand); padding: 12px 18px; border-radius: var(--r-md); display: grid; line-height: 1.1; }
.about__year b { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-light); }
.about__year span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-brand-muted); }
.about__body { display: grid; gap: 16px; color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.about__body strong { color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.pillars div { padding-top: 14px; border-top: 2px solid var(--gold); }
.pillars b { display: block; color: var(--ink); font-size: .96rem; }
.pillars span { font-size: .86rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); min-width: 0; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery .is-wide { aspect-ratio: 16 / 10; }
.gallery .is-tall { grid-row: span 2; }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: #FFFFFF; font-size: .86rem; font-weight: 600; background: linear-gradient(180deg, rgba(13,31,60,0), rgba(13,31,60,.85)); }
.gallery__tile { display: grid; align-content: center; justify-items: start; gap: 8px; padding: 24px; border-radius: var(--r-lg); background: var(--navy); color: var(--on-brand); text-decoration: none; min-width: 0; transition: background-color .2s ease; }
.gallery__tile:hover { background: var(--navy-light); }
.gallery__tile svg { width: 34px; height: 34px; color: var(--gold-light); }
.gallery__tile b { font-size: 1.1rem; }
.gallery__tile span { font-size: .88rem; color: var(--on-brand-muted); }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--gold-text); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 18px 22px 22px; color: var(--muted); font-size: .95rem; }

/* ---------- admission ---------- */
.admission { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.steps { list-style: none; margin-top: 28px; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.steps li::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .92rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); font-weight: 600; cursor: pointer; }
.choice input { accent-color: var(--navy); }
.form__error { color: #C0392B; font-size: .88rem; }
.form__done { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.form__done b { color: var(--ok); }
.form__note { font-size: .82rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.contact__card { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.contact__card svg { width: 26px; height: 26px; color: var(--gold-text); }
.contact__card h3 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.contact__value + .contact__value { margin-top: -4px; }
.contact__small { font-size: .84rem; color: var(--muted); }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .9rem; }
.contact__links a, .contact__links button { color: var(--accent); font: inherit; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hours { margin-top: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.hours svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); }
.hours b { display: block; }
.hours span { font-size: .9rem; color: var(--muted); }

/* ---------- cta + footer ---------- */
.cta-band { background: var(--navy-deep); color: var(--on-brand); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 60px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1.1; max-width: 24ch; }
.cta-band h2 em { color: var(--gold-light); font-style: italic; font-weight: 500; }
.cta-band p { color: var(--on-brand-muted); margin-top: 10px; max-width: 60ch; }
.site-footer { background: #081427; color: var(--on-brand-muted); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 32px; }
.site-footer h4 { margin: 0 0 12px; color: var(--on-brand); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.socials svg { width: 18px; height: 18px; }
.footer__wordmark { width: 150px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .9; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; z-index: 70; }

/* ---------- chat assistant ---------- */
.nc-bubble { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--navy-deep); background: var(--gold); box-shadow: 0 8px 24px rgba(13,31,60,.35); display: grid; place-items: center; cursor: pointer; z-index: 80; padding: 0; transition: transform .2s ease; }
.nc-bubble:hover { transform: scale(1.06); }
.nc-bubble img { width: 50px; height: 50px; border-radius: 50%; }
.nc-bubble .nc-x { display: none; width: 28px; height: 28px; color: var(--navy-deep); }
.nc-bubble[aria-expanded="true"] img { display: none; }
.nc-bubble[aria-expanded="true"] .nc-x { display: block; }
.nc-label { position: fixed; right: calc(96px + env(safe-area-inset-right, 0px)); bottom: calc(34px + env(safe-area-inset-bottom, 0px)); background: var(--navy-deep); color: var(--on-brand); padding: 9px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 79; white-space: nowrap; pointer-events: none; }
.nc-label::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; background: var(--navy-deep); transform: translateY(-50%) rotate(45deg); }
.nc-panel { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: 390px; max-width: calc(100vw - 32px); height: 620px; max-height: calc(100vh - 120px - env(safe-area-inset-top, 0px)); background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: hidden; z-index: 81; }
.nc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy-deep); color: var(--on-brand); }
.nc-head img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.nc-head b { display: block; font-size: 1rem; line-height: 1.2; }
.nc-head small { display: block; font-size: .74rem; color: var(--on-brand-muted); }
.nc-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--gold-light); }
.nc-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.nc-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); scroll-behavior: smooth; }
.nc-row { display: flex; }
.nc-row.user { justify-content: flex-end; }
.nc-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.nc-row.bot .nc-msg { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.nc-row.user .nc-msg { background: var(--navy); color: var(--on-brand); border-bottom-right-radius: 6px; }
.nc-msg p { margin: 0; }
.nc-msg p + p, .nc-msg ul + p, .nc-msg p + ul { margin-top: 8px; }
.nc-msg ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.nc-msg a { color: var(--accent); font-weight: 700; }
.nc-row.user .nc-msg a { color: var(--gold-light); }
.nc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-chip { border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 999px; padding: 7px 13px; font: 600 .82rem var(--font-body); cursor: pointer; }
.nc-chip:hover { background: var(--accent); color: var(--accent-ink); }
.nc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 6px; }
.nc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: nc-blink 1.2s infinite; }
.nc-typing span:nth-child(2) { animation-delay: .2s; } .nc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes nc-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.nc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.nc-form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem; }
.nc-form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.nc-form button { width: 46px; height: 46px; border-radius: var(--r-md); border: 0; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; cursor: pointer; flex: none; }
.nc-form button svg { width: 20px; height: 20px; }
.nc-foot { padding: 6px 12px 10px; font-size: .7rem; color: var(--muted); text-align: center; background: var(--surface); }
@media (max-width: 640px) {
  .nc-label { display: none; }
  .nc-panel { right: 16px; left: 16px; width: auto; max-width: none; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); height: calc(100vh - 110px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .nc-typing span { animation: none; opacity: .6; } .nc-bubble { transition: none; } .nc-msgs { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .why, .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .topbar { display: none; }
  .hero__grid, .director, .app, .about, .admission, .fees, .subjects, .hostel, .results, .story, .video { grid-template-columns: minmax(0, 1fr); }
  .story__photo { min-height: 0; aspect-ratio: 1 / 1; }
  .story__photo--empty { aspect-ratio: auto; min-height: 180px; }
  .results__photo { aspect-ratio: 7 / 6; }
  .hero__visual { padding: 0 0 22px 22px; }
  .hero__crest { width: 120px; height: 120px; left: 0; bottom: 0; }
  .hero__card { right: 0; top: 12px; }
  .reviews, .schedule { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app .phone-stage { order: -1; }
}
@media (max-width: 640px) {
  .why, .courses, .features, .form__row, .contact, .pillars, .groups, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .stars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .is-tall { grid-row: auto; aspect-ratio: 4 / 5; }
  .hero__card { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.25rem; }
  .fee-table th, .fee-table td { padding-inline: 16px; }
  .hours { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .course { transition: none; }
  .slider__track img { transition: opacity .3s ease; transform: none !important; }
}
@media (max-width: 640px) {
  .slider__nav { display: none; }
}

/* keep the app mockup's glow and tilted back phone from widening the page */
#app { overflow: hidden; }
@media (max-width: 960px) { .phone-stage { margin-left: 0; } }
