/* =========================================================
   CSIS — CANADIAN STANDARD INTERNATIONAL SCHOOL — STYLESHEET   
   1.  Design tokens (day + night)      13. Campus bento
   2.  Reset                            14. Student life clubs
   3.  Typography + language            15. Pathways band
   4.  Utilities + buttons              16. Principal
   5.  Header (topbar, navbar, drop)    17. Voices
   6.  Mobile menu                      18. News
   7.  Hero slider                      19. Gallery + lightbox
   8.  Motto ribbon                     20. Admissions
   9.  About + vision/mission/values    21. Contact
   10. Pillars                          22. Footer + crest
   11. Academics journey                23. Offer pass + floating buttons
   12. Global                           24. Keyframes / 25. Responsive / 26. Accessibility
========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   Brand colours come from the CSIS crest: maple red + royal navy.
   Change the brand here; every component reads these tokens.
========================================================= */
:root {
  /* Brand palette */
  --red: #E31E24;
  --red-600: #C4151B;
  --red-soft: #FDE9E9;
  --navy: #2E3192;
  --navy-700: #23267A;
  --navy-900: #15175C;
  --midnight: #0C0E36;
  --sky: #5B8DEF;
  --sky-soft: #E7EEFF;
  --ice: #F2F5FC;
  --white: #FFFFFF;
  --wa: #25D366;

  /* Semantic roles: day mode */
  --bg: #FFFFFF;
  --bg-alt: var(--ice);
  --surface: #FFFFFF;
  --surface-2: #F6F8FE;
  --text: #1C1F4D;
  --heading: var(--navy-900);
  --muted: #555A86;
  --border: rgba(21, 23, 92, .12);
  --accent-ink: var(--navy);
  --chip-bg: #EDF0FB;
  --header-bg: rgba(255, 255, 255, .88);
  --shadow: 0 22px 44px -26px rgba(21, 23, 92, .5);
  --shadow-sm: 0 8px 20px -12px rgba(21, 23, 92, .35);
  --focus: var(--red);

  /* Typography */
  --ff-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --ff-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --ff-bn: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-lg: clamp(1.1rem, 1.04rem + .3vw, 1.3rem);
  --fs-xl: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --fs-2xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  --fs-3xl: clamp(2.8rem, 2rem + 4vw, 5.2rem);
  --lh: 1.6;

  /* Spacing + layout */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --container: 1280px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --topbar-h: 40px;
  --nav-h: 76px;

  /* Shape */
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .2s; --t-med: .45s; --t-slow: .9s;
  --slide-time: 6.5s;
}

/* Night mode: same brand, deep navy surfaces */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0D2E;
  --bg-alt: #0F1240;
  --surface: #151948;
  --surface-2: #1B2056;
  --text: #E3E6FF;
  --heading: #FFFFFF;
  --muted: #A8AED9;
  --border: rgba(255, 255, 255, .12);
  --accent-ink: #9FB3FF;
  --chip-bg: rgba(255, 255, 255, .08);
  --header-bg: rgba(11, 13, 46, .88);
  --shadow: 0 22px 44px -24px rgba(0, 0, 0, .8);
  --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, .7);
  --red-soft: rgba(227, 30, 36, .16);
  --sky-soft: rgba(91, 141, 239, .16);
}

/* =========================================================
   2. RESET
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--ff-body); font-size: var(--fs-base); line-height: var(--lh);
  color: var(--text); background: var(--bg); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s, color .5s;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
dialog { padding: 0; border: 0; margin: auto; color: inherit; }
[hidden] { display: none !important; }

/* =========================================================
   3. TYPOGRAPHY + LANGUAGE SWITCHING
========================================================= */
html[lang="en"] body [lang="bn"],
html[lang="bn"] body [lang="en"] { display: none !important; }
html[lang="bn"] body { font-family: var(--ff-bn); --lh: 1.75; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 700; line-height: 1.02; color: var(--heading); letter-spacing: -.005em; text-wrap: balance; }
html[lang="bn"] :is(h1, h2, h3) { font-family: var(--ff-bn); line-height: 1.3; letter-spacing: 0; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { max-width: 70ch; text-wrap: pretty; }
strong { font-weight: 700; }
.bn-font { font-family: var(--ff-bn) !important; }

/* =========================================================
   4. UTILITIES + BUTTONS
========================================================= */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 300; padding: .6rem 1.2rem; border-radius: var(--r-pill); background: var(--red); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.section-head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--split { align-items: end; }

/* Image frame with branded fallback */
.media { position: relative; overflow: hidden; background: var(--chip-bg); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; opacity: .35;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4l7 14 10-5-3 21 11-12 3 9 14-3-5 15 7 4-22 18 3 8-21-3 1 26h-10l1-26-21 3 3-8L6 47l7-4-5-15 14 3 3-9 11 12-3-21 10 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4l7 14 10-5-3 21 11-12 3 9 14-3-5 15 7 4-22 18 3 8-21-3 1 26h-10l1-26-21 3 3-8L6 47l7-4-5-15 14 3 3-9 11 12-3-21 10 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.45em; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap;
  transition: color var(--t-med) var(--ease), transform var(--t-fast), box-shadow var(--t-med);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding-inline: 1.15em; }
.btn--lg { min-height: 56px; padding-inline: 1.8em; font-size: 1rem; }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -12px rgba(227, 30, 36, .8); }
.btn--red::before { background: var(--navy-900); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy::before { background: var(--red); }
.btn--line { color: var(--accent-ink); box-shadow: inset 0 0 0 2px currentColor; }
.btn--line::before { background: currentColor; opacity: .1; }
.btn--glass { color: var(--white); background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn--glass::before { background: rgba(255, 255, 255, .2); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chips li { padding: .4em .9em; border-radius: var(--r-pill); background: var(--chip-bg); color: var(--accent-ink); font-size: var(--fs-sm); font-weight: 600; }

.filters { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; }
.filter { flex: none; min-height: 42px; padding: 0 1.1em; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--border); transition: all var(--t-med); }
.filter:hover { color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--heading); }
.filter.is-active { background: var(--navy); color: var(--white); box-shadow: none; }

.round-btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--border); transition: background-color var(--t-med), color var(--t-med), transform var(--t-fast); }
.round-btn:hover { background: var(--red); color: var(--white); box-shadow: none; }
.round-btn:active { transform: scale(.94); }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 210; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--navy)); transform-origin: left; transform: scaleX(0); }

/* =========================================================
   5. HEADER
========================================================= */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform .5s var(--ease); }
/* Once scrolled, the topbar folds up and the navbar sticks at the top */
.header.is-scrolled { transform: translateY(calc(var(--topbar-h) * -1)); }
.header.is-hidden { transform: translateY(calc((var(--topbar-h) + var(--nav-h)) * -1)); }

.topbar { height: var(--topbar-h); background: var(--navy-900); color: rgba(255, 255, 255, .88); font-size: var(--fs-xs); }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.topbar__info { display: flex; align-items: center; gap: var(--sp-5); min-width: 0; }
.topbar__info a, .topbar__info > span { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.topbar__info a:hover { color: var(--white); }
.topbar__info .icon { color: #FF8A8E; }
.topbar__tools { display: flex; align-items: center; gap: var(--sp-3); }
.topbar .lang-switch { background: rgba(255, 255, 255, .1); }
.topbar .lang-switch button { min-height: 28px; color: rgba(255, 255, 255, .75); }

.lang-switch { position: relative; display: flex; padding: 3px; border-radius: var(--r-pill); background: var(--chip-bg); }
.lang-switch button { position: relative; z-index: 1; min-width: 40px; min-height: 34px; padding: 0 .7em; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; color: var(--muted); transition: color var(--t-med); }
.lang-switch button[data-set-lang="bn"] { font-family: var(--ff-bn); }
.lang-switch button[aria-pressed="true"] { color: var(--white) !important; }
.lang-switch__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 40px; border-radius: var(--r-pill); background: var(--red); transition: transform var(--t-med) var(--ease), width var(--t-med) var(--ease); }

/* Day/night toggle: a sliding knob with sun and moon */
.theme-toggle { display: inline-flex; align-items: center; gap: .6em; min-height: 34px; }
.theme-toggle__track { position: relative; width: 52px; height: 28px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: background-color .5s; }
.theme-toggle__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #FFD34E; color: #8A5A00; transition: transform .5s var(--ease), background-color .5s, color .5s; }
.theme-toggle__knob .icon { position: absolute; width: 14px; height: 14px; transition: opacity .35s, transform .5s var(--ease); }
.i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle__track { background: var(--sky); }
[data-theme="dark"] .theme-toggle__knob { transform: translateX(24px); background: var(--midnight); color: #CFD8FF; }
[data-theme="dark"] .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .i-moon { opacity: 1; transform: none; }

.navbar { height: var(--nav-h); transition: background-color .45s, box-shadow .45s, color .45s; color: var(--white); }
.header.is-scrolled .navbar, .header.is-solid .navbar { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--border), var(--shadow-sm); color: var(--text); }
.navbar__inner { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }

.brand { display: flex; align-items: center; gap: var(--sp-3); flex: none; min-width: 0; }
.brand__crest { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .8s var(--ease); }
.brand__crest img { width: 86%; height: auto; }
.brand:hover .brand__crest { transform: rotate(-10deg) scale(1.06); }
.brand__text { display: grid; line-height: 1.05; min-width: 0; }
.brand__text strong { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 800; letter-spacing: .04em; }
.brand__text small { font-size: .74rem; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header.is-scrolled .brand__text strong, .header.is-solid .brand__text strong { color: var(--heading); }

.nav { position: relative; display: none; margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .3em; padding: .55em .95em; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); transition: color var(--t-fast); }
.nav__link.is-active { color: var(--red); }
.header:not(.is-scrolled):not(.is-solid) .nav__link.is-active { color: var(--white); }
.nav__chev { width: .9em; height: .9em; transition: transform var(--t-med) var(--ease); }
.nav__item--drop.is-open .nav__chev { transform: rotate(180deg); }
/* Sliding highlight behind the hovered / active link */
.nav__indicator { position: absolute; top: 50%; left: 0; height: 40px; margin-top: -20px; width: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }
.header.is-scrolled .nav__indicator, .header.is-solid .nav__indicator { background: var(--red-soft); }

.nav__item--drop { position: relative; }
.drop {
  position: absolute; left: 50%; top: calc(100% + 14px); width: 520px; translate: -50% 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px;
  border-radius: var(--r-md); background: var(--surface); color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--border);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top center;
  transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item--drop.is-open .drop { opacity: 1; visibility: visible; transform: none; }
.drop__item { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3); border-radius: var(--r-sm); transition: background-color var(--t-fast); }
.drop__item:hover, .drop__item:focus-visible { background: var(--surface-2); }
.drop__item strong { display: block; font-size: var(--fs-sm); color: var(--heading); }
.drop__item small { color: var(--muted); font-size: var(--fs-xs); }
.drop__dot { flex: none; width: 12px; height: 12px; margin-top: .35em; border-radius: 50%; }
.drop__dot--1 { background: var(--red); } .drop__dot--2 { background: var(--navy); } .drop__dot--3 { background: var(--sky); } .drop__dot--4 { background: var(--navy-900); box-shadow: 0 0 0 2px var(--sky-soft); }
.drop__wide { grid-column: 1 / -1; padding: var(--sp-3); border-radius: var(--r-sm); background: var(--red-soft); color: var(--red); font-weight: 700; font-size: var(--fs-sm); text-align: center; }

.navbar__actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.header.is-scrolled .burger, .header.is-solid .burger { background: var(--chip-bg); }
.burger__lines { position: relative; width: 20px; height: 14px; }
.burger__lines i { position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor; transition: width .35s var(--ease); }
.burger__lines i:nth-child(1) { top: 0; width: 100%; }
.burger__lines i:nth-child(2) { top: 6px; width: 70%; }
.burger__lines i:nth-child(3) { top: 12px; width: 45%; }
.burger:hover .burger__lines i { width: 100%; }

/* =========================================================
   6. MOBILE MENU
========================================================= */
.mmenu { position: fixed; inset: 0; z-index: 200; }
.mmenu::before { content: ""; position: absolute; inset: 0; background: rgba(12, 14, 54, .55); opacity: 0; transition: opacity .4s; }
.mmenu.is-open::before { opacity: 1; }
.mmenu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px); overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-5) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  background: var(--surface); color: var(--text); transform: translateX(100%); transition: transform .55s var(--ease);
  background-image: radial-gradient(circle at 110% -10%, var(--red-soft), transparent 45%);
}
.mmenu.is-open .mmenu__panel { transform: none; }
.mmenu__head { display: flex; align-items: center; justify-content: space-between; }
.mmenu__close { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--chip-bg); font-size: 1.8rem; line-height: 1; transition: transform .4s var(--ease), background-color .3s; }
.mmenu__close:hover { transform: rotate(90deg); background: var(--red); color: var(--white); }
.mmenu__nav { display: grid; }
.mmenu__nav > a, .mmenu__acc {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .45em 0; border-bottom: 1px solid var(--border);
  font-family: var(--ff-display); font-weight: 700; font-size: 1.9rem; color: var(--heading); text-align: left;
  opacity: 0; transform: translateX(30px); transition: opacity .4s, transform .5s var(--ease), color .2s;
}
html[lang="bn"] .mmenu__nav > a, html[lang="bn"] .mmenu__acc { font-family: var(--ff-bn); font-size: 1.4rem; }
.mmenu__group { opacity: 0; transform: translateX(30px); transition: opacity .4s, transform .5s var(--ease); }
.mmenu__group .mmenu__acc { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__nav > *, .mmenu.is-open .mmenu__acc { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__nav > * { transition-delay: calc(.12s + var(--i) * .045s); }
.mmenu__nav > a:hover, .mmenu__acc:hover { color: var(--red); }
.mmenu__acc .icon { transition: transform .4s var(--ease); }
.mmenu__acc[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mmenu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.mmenu__acc[aria-expanded="true"] + .mmenu__sub { grid-template-rows: 1fr; }
.mmenu__sub > div { overflow: hidden; display: grid; }
.mmenu__sub a { padding: .6em 0 .6em 1em; border-left: 3px solid var(--red); margin: .2em 0; color: var(--muted); font-weight: 600; }
.mmenu__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.quick { display: grid; justify-items: center; gap: 4px; padding: var(--sp-3) var(--sp-2); border-radius: var(--r-md); background: var(--chip-bg); font-weight: 700; font-size: var(--fs-sm); color: var(--heading); }
.quick .icon { width: 22px; height: 22px; color: var(--navy); }
[data-theme="dark"] .quick .icon { color: var(--accent-ink); }
.quick--red { background: var(--red); color: var(--white); }
.quick--red .icon { color: var(--white) !important; }
.mmenu__tools { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; }
.mmenu .theme-toggle__track { background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--border); }
.mmenu .theme-toggle__label { font-weight: 600; font-size: var(--fs-sm); }

/* =========================================================
   7. HERO SLIDER
========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--midnight); color: var(--white); isolation: isolate; --ov: .85; }
.hero[data-ov="strong"] { --ov: .92; }
.hero[data-ov="soft"] { --ov: .7; }
.hero__slides { position: absolute; inset: 0; z-index: -3; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-io); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-leaving { opacity: 0; z-index: 2; transition: opacity 1.2s var(--ease-io); }
.slide__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.slide.is-active .slide__img { animation: kenburns calc(var(--slide-time) + 2s) linear both; }
.slide:nth-child(even).is-active .slide__img { animation-name: kenburns-alt; }
/* Smart overlay: strong on the text side, clear on the photo side; strength follows the slide */
.hero__overlay {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 14, 54, var(--ov)) 0%, rgba(12, 14, 54, calc(var(--ov) - .3)) 42%, rgba(12, 14, 54, 0) 78%),
    linear-gradient(0deg, rgba(12, 14, 54, .9) 0%, rgba(12, 14, 54, 0) 45%),
    linear-gradient(180deg, rgba(12, 14, 54, .55) 0%, rgba(12, 14, 54, 0) 25%);
  transition: background .8s;
}
.hero__overlay::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--red), var(--navy)); }
.hero__leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.leaf { position: absolute; top: -40px; left: var(--x); width: var(--s); height: var(--s); color: var(--red); opacity: .55; animation: fall var(--d) linear var(--delay) infinite; }
.leaf svg { width: 100%; height: 100%; animation: sway calc(var(--d) / 3) ease-in-out infinite alternate; }

.hero__content { position: relative; padding-top: calc(var(--topbar-h) + var(--nav-h) + var(--sp-7)); padding-bottom: calc(var(--sp-9) + 40px); display: grid; gap: var(--sp-5); }
.hero__name { display: grid; gap: .1em; color: var(--white); }
.hero__csis {
  font-family: var(--ff-display); font-weight: 800; font-size: clamp(5.5rem, 3rem + 13vw, 13rem); line-height: .82; letter-spacing: .02em;
  background: linear-gradient(180deg, #FFFFFF 55%, #C9D3FF); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: csisIn 1.4s var(--ease) both;
}
.hero__full { position: relative; font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.2rem, .9rem + 1.4vw, 2.1rem); letter-spacing: .06em; padding-left: 1.2em; animation: fadeUp 1s .3s var(--ease) both; }
html[lang="bn"] .hero__full { font-family: var(--ff-bn); letter-spacing: 0; }
.hero__full::before { content: ""; position: absolute; left: 0; top: 50%; width: .8em; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--red); }
.hero__place { display: inline-flex; align-items: center; gap: .4em; font-size: var(--fs-sm); opacity: .85; animation: fadeUp 1s .45s var(--ease) both; }

.hero__captions { display: grid; max-width: 640px; min-height: 7.5em; }
.caption { grid-area: 1 / 1; display: grid; gap: var(--sp-2); align-content: start; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .6s, transform .8s var(--ease), visibility .6s; }
.caption.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .25s; }
.caption__title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); line-height: 1.05; }
html[lang="bn"] .caption__title { font-family: var(--ff-bn); line-height: 1.35; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); }
.caption__text { color: rgba(255, 255, 255, .85); font-size: var(--fs-lg); }

.hero__values { display: flex; flex-wrap: wrap; gap: var(--sp-2); animation: fadeUp 1s .6s var(--ease) both; }
.hero__values li { display: inline-flex; align-items: center; gap: .45em; padding: .45em 1em; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(6px); font-weight: 600; font-size: var(--fs-sm); }
.hero__values li:nth-child(2) { background: rgba(227, 30, 36, .55); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); animation: fadeUp 1s .75s var(--ease) both; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: var(--sp-6); display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-5); }
.hero__dots { display: flex; gap: var(--sp-4); }
.hero__dot { display: grid; gap: 6px; width: 64px; text-align: left; font-family: var(--ff-display); font-weight: 700; font-size: 1rem; color: rgba(255, 255, 255, .6); transition: color .3s; }
.hero__dot i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__dot b { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active { color: var(--white); }
.hero__dot.is-active b { animation: timer var(--slide-time) linear forwards; }
.hero.is-paused .hero__dot.is-active b { animation-play-state: paused; }
.hero__arrows { display: flex; gap: var(--sp-2); }
.hero__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(6px); transition: background-color .3s, transform .2s; }
.hero__arrow:hover { background: var(--red); box-shadow: none; }
.hero__arrow:active { transform: scale(.92); }
.hero__pause .i-play { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }
.hero.is-paused .hero__pause .i-pause { display: none; }
.hero__scroll { position: absolute; left: 50%; bottom: var(--sp-6); width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: wheel 1.8s var(--ease) infinite; }

/* =========================================================
   8. MOTTO RIBBON
========================================================= */
.ribbon { position: relative; z-index: 2; background: var(--red); color: var(--white); overflow: hidden; padding-block: .9rem; margin-top: -1px; box-shadow: 0 -1px 0 var(--red); }
.ribbon__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 30s linear infinite; }
.ribbon__track span { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); letter-spacing: .06em; white-space: nowrap; }
.ribbon__leaf { width: 22px; height: 22px; color: rgba(255, 255, 255, .7); flex: none; animation: spin 8s linear infinite; }

/* =========================================================
   9. ABOUT + VISION / MISSION / VALUES
========================================================= */
.about__grid { display: grid; gap: var(--sp-8); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.about__img--a { aspect-ratio: 4 / 3.2; }
.about__img--b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--bg); border-radius: var(--r-lg); transition: border-color .5s; }
.about__badge {
  position: absolute; left: -12px; top: -18px; width: 118px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; background: var(--red); color: var(--white);
  box-shadow: 0 16px 30px -14px rgba(227, 30, 36, .8); animation: bob 5s ease-in-out infinite;
}
.about__badge strong { font-family: var(--ff-display); font-size: 2.2rem; line-height: 1; }
.about__badge span { font-size: .72rem; font-weight: 600; }
.about__leaf { position: absolute; right: 38%; bottom: 2%; width: 64px; height: 64px; color: var(--navy); opacity: .9; animation: spin 18s linear infinite; }
[data-theme="dark"] .about__leaf { color: var(--sky); }
.about__copy { display: grid; gap: var(--sp-5); }
.about__lead { font-size: var(--fs-lg); color: var(--muted); }

.vmv { border-radius: var(--r-lg); background: var(--surface-2); box-shadow: 0 0 0 1px var(--border); padding: var(--sp-3); }
.vmv__tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--chip-bg); }
.vmv__tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; border-radius: 14px; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); transition: color .35s; }
.vmv__tabs button[aria-selected="true"] { color: var(--white); }
.vmv__ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px) / 3); border-radius: 14px; background: var(--navy); transition: transform .5s var(--ease); }
.vmv__panel { padding: var(--sp-5) var(--sp-4) var(--sp-3); animation: fadeUp .6s var(--ease); }
.vmv__panel > p { font-size: var(--fs-lg); color: var(--heading); font-weight: 500; }
.vmv__values { display: grid; gap: var(--sp-3); }
.vmv__values li { display: grid; gap: 2px; padding-left: var(--sp-4); border-left: 3px solid var(--red); color: var(--muted); }
.vmv__values strong { color: var(--heading); }
.about__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* =========================================================
   10. PILLARS (tilt + flip cards)
========================================================= */
.pillars { background: var(--bg-alt); }
.pillars__grid { display: grid; gap: var(--sp-4); }
.pillar { --c: var(--red); --t: var(--white); perspective: 1000px; }
.pillar--navy { --c: var(--navy); }
.pillar--sky { --c: var(--sky); }
.pillar--ink { --c: var(--navy-900); }
.pillar__card {
  --rx: 0deg; --ry: 0deg; --flip: 0deg;
  position: relative; display: block; width: 100%; height: 300px; text-align: left;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
  transition: transform .8s var(--ease);
}
.pillar__card.is-tilting { transition: transform .15s linear; }
.pillar__card[aria-pressed="true"] { --flip: 180deg; }
.pillar__face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: var(--sp-6); border-radius: var(--r-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.pillar__front { background: var(--c); color: var(--t); box-shadow: var(--shadow); }
.pillar__front::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .1); transition: transform .8s var(--ease); }
.pillar__card:hover .pillar__front::after { transform: scale(1.3); }
.pillar__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: rgba(255, 255, 255, .16); }
.pillar__icon svg { width: 38px; height: 38px; }
.pillar__front strong { font-family: var(--ff-display); font-size: 2rem; line-height: 1; }
html[lang="bn"] .pillar__front strong, html[lang="bn"] .pillar__back strong { font-family: var(--ff-bn); font-size: 1.5rem; line-height: 1.3; }
.pillar__hint { font-size: var(--fs-xs); font-weight: 600; opacity: .75; }
.pillar__back { transform: rotateY(180deg); background: var(--surface); box-shadow: inset 0 0 0 2px var(--c), var(--shadow); justify-content: center; gap: var(--sp-4); }
.pillar__back strong { font-family: var(--ff-display); font-size: 1.7rem; line-height: 1; color: var(--c); }
[data-theme="dark"] .pillar--ink .pillar__back strong { color: var(--accent-ink); }
.pillar__text { color: var(--text); font-size: var(--fs-base); }

/* =========================================================
   11. ACADEMICS JOURNEY
========================================================= */
.journey { display: grid; gap: var(--sp-6); }
.journey > * { min-width: 0; }
.journey__track {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: var(--sp-3);
  overflow-x: auto; scrollbar-width: none; padding: 8px 2px 4px; scroll-snap-type: x mandatory;
}
.journey__track::-webkit-scrollbar { display: none; }
.journey__path { display: none; }
.stage {
  position: relative; z-index: 1; scroll-snap-align: start; display: grid; justify-items: start; gap: 4px; text-align: left;
  padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow .4s, transform .5s var(--ease), background-color .4s;
}
.stage:hover { transform: translateY(-3px); }
.stage__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--chip-bg); color: var(--accent-ink); font-family: var(--ff-display); font-weight: 800; font-size: 1.2rem; transition: background-color .4s, color .4s, transform .6s var(--ease); }
.stage__name { font-weight: 800; color: var(--heading); }
.stage small { color: var(--muted); font-size: var(--fs-xs); }
.stage__timer { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; }
.stage.is-active { box-shadow: 0 0 0 2px var(--red), var(--shadow); }
.stage.is-active .stage__n { background: var(--red); color: var(--white); transform: rotate(360deg); }
.journey.is-auto .stage.is-active .stage__timer { animation: timer 6s linear forwards; }

.journey__panels { display: grid; }
.spanel { grid-area: 1 / 1; display: grid; gap: var(--sp-6); align-items: center; padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface-2); box-shadow: 0 0 0 1px var(--border); }
.spanel.is-active { animation: panelIn .7s var(--ease); }
.spanel__media { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.spanel__body { display: grid; gap: var(--sp-3); padding: var(--sp-2); }
.spanel__grades { font-weight: 700; color: var(--red); }
.spanel__body > p:not(.spanel__grades) { color: var(--muted); }
.spanel .chips li { animation: fadeUp .5s var(--ease) both; }
.spanel .chips li:nth-child(2) { animation-delay: .05s; } .spanel .chips li:nth-child(3) { animation-delay: .1s; }
.spanel .chips li:nth-child(4) { animation-delay: .15s; } .spanel .chips li:nth-child(5) { animation-delay: .2s; } .spanel .chips li:nth-child(6) { animation-delay: .25s; }

/* =========================================================
   12. GLOBAL (looping globe)
========================================================= */
.global {
  position: relative; overflow: hidden; padding-block: var(--section-y); color: var(--white);
  background: radial-gradient(circle at 20% 20%, #23287F 0%, var(--midnight) 60%);
}
.global::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 70%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 10% 70%, #fff, transparent), radial-gradient(1.2px 1.2px at 55% 45%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.global__grid { position: relative; display: grid; gap: var(--sp-7); align-items: center; }
.globe { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin-inline: auto; }
.globe__svg { width: 100%; height: 100%; overflow: visible; }
.globe__halo { fill: none; stroke: rgba(91, 141, 239, .35); stroke-width: 1.5; stroke-dasharray: 3 9; animation: spin 60s linear infinite; transform-origin: 250px 250px; }
.globe__lines ellipse, .globe__lines line { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }
.globe__arcs path { fill: none; stroke: #FF6B70; stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; animation: flow 1.2s linear infinite; }
.globe__arcs path:nth-child(even) { stroke: #9FB3FF; }
.globe__plane { fill: #FFFFFF; filter: drop-shadow(0 0 4px #FF6B70); }
.globe__plane--sky { filter: drop-shadow(0 0 4px #9FB3FF); }
.globe__home { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
.globe__ping { fill: none; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
.globe__tag { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; padding: .25em .75em; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(4px); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.globe__tag--home { background: var(--red); box-shadow: none; }
.global__copy { display: grid; gap: var(--sp-5); }
.global__copy h2 { color: var(--white); }
.global__copy > p { color: rgba(255, 255, 255, .8); font-size: var(--fs-lg); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.stats li { padding: var(--sp-5); border-radius: var(--r-md); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); display: grid; gap: 2px; transition: transform .4s var(--ease), background-color .4s; }
.stats li:hover { transform: translateY(-4px); background: rgba(227, 30, 36, .25); }
.stats strong { font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; color: var(--white); }
.stats li > span { color: rgba(255, 255, 255, .75); font-size: var(--fs-sm); }

/* =========================================================
   13. CAMPUS BENTO
========================================================= */
.bento { display: grid; gap: var(--sp-3); }
.tile { position: relative; min-height: 250px; border-radius: var(--r-lg); overflow: hidden; color: var(--white); isolation: isolate; outline-offset: 4px; }
.tile .media { position: absolute; inset: 0; z-index: -2; }
.tile .media img { transition: transform 1.2s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 14, 54, .92) 0%, rgba(12, 14, 54, .35) 50%, rgba(12, 14, 54, 0) 75%); transition: background .5s; }
.tile:hover .media img, .tile:focus-visible .media img { transform: scale(1.08); }
.tile:hover::before, .tile:focus-visible::before { background: linear-gradient(0deg, rgba(227, 30, 36, .9) 0%, rgba(12, 14, 54, .4) 60%, rgba(12, 14, 54, 0) 85%); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-5); display: grid; gap: var(--sp-2); }
.tile__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { color: var(--white); font-size: 1.7rem; }
html[lang="bn"] .tile h3 { font-size: 1.3rem; }
.tile p { font-size: var(--fs-sm); color: rgba(255, 255, 255, .88); }

/* =========================================================
   14. STUDENT LIFE CLUBS
========================================================= */
.life { overflow: hidden; background: var(--bg-alt); }
.life__head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.life__nav { display: flex; gap: var(--sp-2); }
.clubs {
  display: flex; gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  padding: 10px max(var(--gutter), calc((100vw - var(--container)) / 2)) 24px;
}
.clubs::-webkit-scrollbar { display: none; }
.clubs.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.clubs.is-dragging .club { pointer-events: none; }
.club {
  --c: var(--red); flex: none; width: min(78vw, 280px); min-height: 330px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-5);
  border-radius: var(--r-lg); background: var(--c); color: var(--white); position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.club:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow); }
.club--navy { --c: var(--navy); } .club--sky { --c: var(--sky); } .club--ink { --c: var(--navy-900); }
.club__icon { position: absolute; top: var(--sp-5); left: var(--sp-5); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .16); transition: transform .6s var(--ease); }
.club:hover .club__icon { transform: rotate(-12deg) scale(1.1); }
.club__icon svg { width: 34px; height: 34px; }
.club::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.club h3 { color: var(--white); font-size: 1.8rem; }
html[lang="bn"] .club h3 { font-size: 1.35rem; }
.club p { color: rgba(255, 255, 255, .85); font-size: var(--fs-sm); }
.clubs__bar { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.clubs__bar span { display: block; height: 100%; width: 30%; border-radius: 4px; background: var(--red); transform-origin: left; transition: transform .2s linear; }

/* =========================================================
   15. PATHWAYS BAND
========================================================= */
.paths { padding-block: var(--sp-8) var(--sp-3); overflow: hidden; }
.paths__title { font-family: var(--ff-body); font-weight: 700; font-size: var(--fs-lg); color: var(--muted); text-align: center; margin-bottom: var(--sp-5); }
html[lang="bn"] .paths__title { font-family: var(--ff-bn); }
.paths__band { background: var(--navy); color: var(--white); overflow: hidden; padding-block: 1.3rem;  margin-inline: -2%; }
.paths__track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: marquee 34s linear infinite reverse; }
.paths__track > span { font-family: var(--ff-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1; white-space: nowrap; }
html[lang="bn"] .paths__track > span { font-family: var(--ff-bn); font-weight: 700; }
.paths__track > span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9); }
.paths__leaf { width: 30px; height: 30px; color: var(--red); flex: none; }

/* =========================================================
   16. PRINCIPAL
========================================================= */
.principal__grid { display: grid; gap: var(--sp-8); align-items: center; }
.principal__photo { position: relative; width: min(100%, 420px); margin-inline: auto; padding: 0 0 20px 20px; }
.principal__photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 80%; height: 80%; border-radius: var(--r-lg); background: var(--red); transform: rotate(-4deg); }
.principal__frame { position: relative; display: block; aspect-ratio: 600 / 760; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.principal__leaf { position: absolute; right: 0; top: -18px; width: 70px; height: 70px; color: var(--navy); animation: spin 20s linear infinite; }
[data-theme="dark"] .principal__leaf { color: var(--sky); }
.principal__copy { display: grid; gap: var(--sp-5); }
.principal__quote { display: grid; gap: var(--sp-4); }
.principal__quote p { font-size: var(--fs-lg); color: var(--text); }
.principal__quote p:first-child { font-family: var(--ff-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 600; line-height: 1.15; color: var(--heading); }
html[lang="bn"] .principal__quote p:first-child { font-family: var(--ff-bn); font-size: 1.35rem; line-height: 1.6; }
.principal__quote .ln { display: inline; background: linear-gradient(var(--red-soft), var(--red-soft)) no-repeat 0 88% / 0% 40%; transition: background-size 1.2s var(--ease); }
.principal__quote.is-in .ln { background-size: 100% 40%; }
.principal__sign { display: grid; gap: 2px; padding-left: var(--sp-4); border-left: 4px solid var(--red); }
.principal__sign strong { color: var(--heading); font-size: var(--fs-lg); }
.principal__sign > span { color: var(--muted); font-size: var(--fs-sm); }

/* =========================================================
   17. VOICES (two looping rows)
========================================================= */
.voices { background: var(--bg-alt); overflow: hidden; }
.voices__rows { display: grid; gap: var(--sp-4); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.voices__row { overflow: hidden; }
.voices__track { display: flex; gap: var(--sp-4); width: max-content; animation: marquee 48s linear infinite; }
.voices__row--rev .voices__track { animation-direction: reverse; animation-duration: 54s; }
.voices__rows:hover .voices__track { animation-play-state: paused; }
.voice { flex: none; width: min(80vw, 380px); display: grid; gap: var(--sp-4); align-content: space-between; padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.voice blockquote { position: relative; font-size: var(--fs-lg); color: var(--heading); font-weight: 500; }
.voice blockquote::before { content: "“"; display: block; font-family: var(--ff-display); font-size: 3.4rem; line-height: .6; color: var(--red); margin-bottom: .1em; }
.voice figcaption { display: flex; align-items: center; gap: var(--sp-3); }
.voice figcaption small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.voice__av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 800; }
.voice__av--navy { background: var(--navy); } .voice__av--sky { background: var(--sky); }

/* =========================================================
   18. NEWS
========================================================= */
.news__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.posts { display: grid; gap: var(--sp-4); }
.post { display: grid; grid-template-columns: 38% 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--border); transition: transform .5s var(--ease), box-shadow .5s; }
.post:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.post.is-hidden { display: none; }
.post.is-entering { animation: fadeUp .5s var(--ease); }
.post__media { min-height: 170px; }
.post__media img { transition: transform 1s var(--ease); }
.post:hover .post__media img { transform: scale(1.07); }
.post__body { position: relative; display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-5); }
.post__date { position: absolute; top: var(--sp-4); right: var(--sp-4); display: grid; justify-items: center; min-width: 56px; padding: .4em .5em; border-radius: 12px; background: var(--red); color: var(--white); line-height: 1; }
.post__date strong { font-family: var(--ff-display); font-size: 1.6rem; }
.post__date span { font-size: .72rem; font-weight: 700; }
.post__type { justify-self: start; padding: .2em .7em; border-radius: var(--r-pill); background: var(--sky-soft); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 700; }
.post h3 { font-size: 1.6rem; padding-right: 64px; }
html[lang="bn"] .post h3 { font-size: 1.25rem; }
.post p { color: var(--muted); font-size: var(--fs-sm); }

/* =========================================================
   19. GALLERY + LIGHTBOX
========================================================= */
.masonry { columns: 2 160px; column-gap: var(--sp-3); }
.masonry li { break-inside: avoid; margin-bottom: var(--sp-3); }
.shot { position: relative; display: block; width: 100%; border-radius: var(--r-md); cursor: zoom-in; }
.shot img { height: auto; transition: transform 1s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); }
.shot__cap { position: absolute; left: 10px; bottom: 10px; padding: .3em .8em; border-radius: var(--r-pill); background: rgba(12, 14, 54, .8); color: var(--white); font-size: var(--fs-xs); font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; }
.lightbox::backdrop { background: rgba(12, 14, 54, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-8) var(--sp-4); }
.lightbox__fig img { max-width: min(92vw, 1100px); max-height: 78vh; width: auto; border-radius: var(--r-md); animation: zoomIn .45s var(--ease); }
.lightbox__fig figcaption { color: var(--white); font-weight: 600; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--navy-900); font-size: 1.8rem; box-shadow: var(--shadow-sm); }
.lightbox__btn:hover { background: var(--red); color: var(--white); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -26px; }

/* =========================================================
   20. ADMISSIONS
========================================================= */
.admit { background: var(--bg-alt); }
.admit__grid { display: grid; gap: var(--sp-7); }
.admit__intro { display: grid; gap: var(--sp-4); align-content: start; }
.admit__intro > p:not(.admit__live) { color: var(--muted); font-size: var(--fs-lg); }
.admit__live { justify-self: start; display: inline-flex; align-items: center; gap: .6em; padding: .45em 1.1em; border-radius: var(--r-pill); background: var(--red-soft); color: var(--red); font-weight: 800; font-size: var(--fs-sm); }
.admit__live i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.admit__live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: pingDot 1.6s ease-out infinite; }
.admit__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }

.steps { --p: 0; position: relative; display: grid; gap: var(--sp-3); padding-left: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; background: var(--border); }
.steps::after { background: linear-gradient(var(--red), var(--navy)); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; z-index: 1; display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--border); transition: transform .5s var(--ease), box-shadow .5s; }
.step:hover { transform: translateX(6px); box-shadow: 0 0 0 2px var(--red); }
.step__n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 2px 0 0 -2px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 3px var(--border); font-family: var(--ff-display); font-weight: 800; font-size: .95rem; color: var(--muted); transition: all .5s var(--ease); }
.step.is-on .step__n { width: 34px; height: 34px; margin: -3px 0 0 -7px; background: var(--red); color: var(--white); box-shadow: 0 0 0 5px var(--red-soft); }
.step h3 { font-size: 1.5rem; }
html[lang="bn"] .step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: var(--fs-sm); }

.docs { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--navy); color: var(--white); display: grid; gap: var(--sp-3); align-content: start; }
.docs h3 { color: var(--white); }
.docs ul { display: grid; gap: var(--sp-2); }
.docs li { display: flex; gap: .6em; align-items: flex-start; }
.docs li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .15em; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.docs__fees { font-size: var(--fs-sm); color: rgba(255, 255, 255, .8); }
.docs__fees a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   21. CONTACT
========================================================= */
.contact__grid { display: grid; gap: var(--sp-5); }
.contact__card { display: grid; gap: var(--sp-5); padding: var(--sp-6); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.contact__list { display: grid; gap: var(--sp-3); }
.contact__list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.contact__ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.contact__list a { color: var(--accent-ink); font-weight: 700; }
.contact__list p { padding-top: .45em; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.contact__map { min-height: 340px; border-radius: var(--r-lg); overflow: hidden; background: var(--chip-bg); box-shadow: 0 0 0 1px var(--border); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
[data-theme="dark"] .contact__map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }

/* =========================================================
   22. FOOTER + CREST
========================================================= */
.footer { position: relative; overflow: hidden; background: var(--midnight); color: rgba(255, 255, 255, .8); --focus: #FF6B70; }
.footer__band { overflow: hidden; padding-block: var(--sp-6) var(--sp-3); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__band-track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; }
.footer__band-track span { font-family: var(--ff-display); font-weight: 800; font-size: clamp(3.5rem, 2rem + 7vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22); white-space: nowrap; }
.footer__band-track span:nth-of-type(4n+1) { color: var(--red); -webkit-text-stroke: 0; }
.footer__band-track svg { width: 44px; height: 44px; color: rgba(255, 255, 255, .25); flex: none; }

.footer__top { display: grid; gap: var(--sp-7); justify-items: center; text-align: center; padding-block: var(--sp-8); }
/* Crest: turning laurel, counter-turning motto ring, breathing medal, falling leaves */
.crest { position: relative; width: clamp(260px, 72vw, 380px); aspect-ratio: 1; }
.crest__laurel, .crest__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crest__laurel { fill: var(--red); animation: spin 40s linear infinite; }
.crest__laurel ellipse:nth-child(3n) { fill: #FF5A5F; }
.crest__ring { animation: spin 26s linear infinite reverse; }
.crest__ring text { font-family: var(--ff-display); font-weight: 700; font-size: 17px; letter-spacing: .18em; fill: rgba(255, 255, 255, .9); }
.crest__medal { position: absolute; inset: 24%; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(227, 30, 36, .5), 0 0 60px 10px rgba(91, 141, 239, .35); animation: breathe 5s ease-in-out infinite; }
.crest__medal img { width: 88%; height: auto; }
.crest:hover .crest__laurel, .crest:hover .crest__ring { animation-play-state: paused; }
.crest__leaves { position: absolute; inset: -20% -30%; pointer-events: none; overflow: hidden; -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); mask-image: radial-gradient(circle, #000 55%, transparent 72%); }
.crest__leaves .leaf { opacity: .8; }

.footer__lead { display: grid; gap: var(--sp-4); justify-items: center; }
.footer__lead h2 { color: var(--white); font-size: var(--fs-3xl); }
.footer__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.footer__cols { display: grid; gap: var(--sp-6); padding-block: var(--sp-7); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__cols h3 { font-family: var(--ff-body); font-size: var(--fs-sm); font-weight: 800; color: #FF6B70; margin-bottom: var(--sp-3); }
html[lang="bn"] .footer__cols h3 { font-family: var(--ff-bn); }
.footer__cols ul { display: grid; gap: var(--sp-2); }
.footer__cols a { transition: color .2s; }
.footer__cols a:hover { color: var(--white); }
.footer__cols p { font-size: var(--fs-sm); }
.socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--red); transform: translateY(-3px); color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-xs); }
.footer__dev a { color: #FF8A8E; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.footer__dev a:hover { color: var(--white); text-decoration-color: currentColor; }
.footer__top:hover { color: var(--white); }


/* =========================================================
   23. OFFER PASS (boarding-pass style) + FLOATING BUTTONS
========================================================= */
.offer { width: min(92vw, 440px); max-height: 94vh; overflow: auto; background: transparent; border-radius: 26px; scrollbar-width: none; }
.offer::backdrop { background: rgba(12, 14, 54, .7); backdrop-filter: blur(4px); }
.offer[open] { animation: passIn .8s var(--ease) both; }
.pass { position: relative; overflow: hidden; border-radius: 26px; background: var(--surface); color: var(--text); }
.pass:focus { outline: none; }
.pass__handle { display: none; }
.pass__head { position: relative; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-5); background: var(--navy); color: var(--white); background-image: radial-gradient(circle at 100% 0%, rgba(227, 30, 36, .6), transparent 55%); }
.pass__crest { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); }
.pass__crest img { width: 86%; }
.pass__head > div { flex: 1; }
.pass__kicker { font-size: var(--fs-xs); font-weight: 700; opacity: .8; }
.pass__title { color: var(--white); font-size: 2.2rem; line-height: 1; }
.pass__min { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .15); font-size: 1.6rem; transition: transform .4s var(--ease), background-color .3s; }
.pass__min:hover { background: var(--red); transform: rotate(180deg); }
.pass__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-3); }
.pass__route > div { display: grid; line-height: 1.1; }
.pass__route > div:last-child { text-align: right; }
.pass__route small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.pass__route strong { font-family: var(--ff-display); font-size: 2.4rem; color: var(--heading); }
.pass__route span { font-size: var(--fs-xs); color: var(--muted); }
.pass__flight { position: relative; height: 24px; }
.pass__flight span { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--border); }
.pass__flight .icon { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin-top: -11px; color: var(--red); transform: rotate(90deg); animation: fly 3.2s var(--ease-io) infinite; }
.pass__offers { display: grid; gap: var(--sp-3); padding: 0 var(--sp-5) var(--sp-4); }
.pass__offers li { display: flex; gap: var(--sp-3); align-items: center; }
.pass__offers li > span:last-child { display: grid; line-height: 1.3; }
.pass__offers strong { color: var(--heading); }
.pass__offers small { color: var(--muted); font-size: var(--fs-xs); }
.offer[open] .pass__offers li { animation: fadeUp .5s var(--ease) both; }
.offer[open] .pass__offers li:nth-child(1) { animation-delay: .3s; } .offer[open] .pass__offers li:nth-child(2) { animation-delay: .4s; } .offer[open] .pass__offers li:nth-child(3) { animation-delay: .5s; }
.pass__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--white); }
.pass__ico--red { background: var(--red); } .pass__ico--navy { background: var(--navy); } .pass__ico--sky { background: var(--sky); }
/* Perforated tear line with punched notches */
.pass__tear { position: relative; height: 22px; margin-inline: 0; }
.pass__tear::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--border); }
.pass__tear::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0 50%, rgba(12, 14, 54, .85) 10px, transparent 11px), radial-gradient(circle at 100% 50%, rgba(12, 14, 54, .85) 10px, transparent 11px); }
.pass__stub { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5); }
.pass__meta { display: flex; gap: var(--sp-5); }
.pass__meta > div { display: grid; line-height: 1.2; }
.pass__meta small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.pass__meta strong { color: var(--heading); font-size: var(--fs-sm); }
.pass__barcode { flex: none; width: 96px; height: 40px; background: repeating-linear-gradient(90deg, var(--heading) 0 2px, transparent 2px 4px, var(--heading) 4px 5px, transparent 5px 8px, var(--heading) 8px 11px, transparent 11px 13px); opacity: .85; }
.pass__actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5) var(--sp-5); }
.pass__confetti { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.pass__confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; background: var(--c); opacity: 0; animation: confetti var(--d) var(--delay) cubic-bezier(.3, .6, .5, 1) forwards; }

.offer-tab { position: fixed; left: var(--sp-4); bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 1.1em; border-radius: var(--r-pill); background: var(--red); color: var(--white); font-weight: 800; font-size: var(--fs-sm); box-shadow: 0 12px 26px -10px rgba(227, 30, 36, .8); animation: tabIn .6s var(--ease) both; }
.offer-tab[hidden] { display: none; }
.offer-tab:hover { transform: translateY(-3px); }
.offer-tab .icon { animation: wiggle 2.4s ease-in-out infinite; }
.wa-float { position: fixed; right: var(--sp-4); bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: waPulse 2.4s ease-out infinite; }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }

/* =========================================================
   24. KEYFRAMES
========================================================= */
@keyframes kenburns { from { transform: scale(1.14) translate(0, 0); } to { transform: scale(1) translate(-1.5%, -1%); } }
@keyframes kenburns-alt { from { transform: scale(1) translate(-1.5%, 0); } to { transform: scale(1.14) translate(1%, 1%); } }
@keyframes csisIn { from { opacity: 0; letter-spacing: .3em; filter: blur(8px); } to { opacity: 1; letter-spacing: .02em; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes fall { 0% { transform: translate3d(0, -40px, 0) rotate(0); } 100% { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }
@keyframes sway { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
@keyframes pingDot { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }
@keyframes twinkle { from { opacity: .25; } to { opacity: .6; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes fly { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 22px); opacity: 0; } }
@keyframes passIn { from { opacity: 0; transform: translateY(40px) rotate(-4deg) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes confetti { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--dx), 560px, 0) rotate(var(--r)); } }
@keyframes tabIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }

/* =========================================================
   25. RESPONSIVE (mobile first)
========================================================= */
@media (max-width: 380px) {
  .topbar__info a[href^="tel"] { font-size: 0; gap: 0; }
  .topbar__info a[href^="tel"] .icon { font-size: .8125rem; width: 16px; height: 16px; }
  .hero__pause { display: none !important; }
  .hero .hero__dot { width: 34px; }
  .hero .hero__dots { gap: 6px; }
}
@media (max-width: 420px) {
  .brand__text small { display: none; }
  .navbar__actions .btn { display: none; }
  .hero__csis { font-size: 5rem; }
}
@media (max-width: 599px) {
  :root { --topbar-h: 36px; --nav-h: 68px; }
  .hide-sm { display: none !important; }
  .brand__crest { width: 46px; height: 46px; }
  .brand__text strong { font-size: 1.45rem; }
  .brand__text small { max-width: 44vw; font-size: .66rem; }
  .topbar__tools .theme-toggle__track { width: 46px; height: 26px; }
  .topbar__tools .theme-toggle__knob { width: 20px; height: 20px; }
  [data-theme="dark"] .topbar__tools .theme-toggle__knob { transform: translateX(20px); }
  .hero { align-items: flex-end; }
  .hero__content { padding-top: calc(var(--topbar-h) + var(--nav-h) + 84px); padding-bottom: calc(var(--sp-8) + 30px); gap: var(--sp-4); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__captions { min-height: 9em; }
  .hero__full { letter-spacing: .02em; font-size: 1.1rem; }
  .hero__controls { top: calc(var(--topbar-h) + var(--nav-h) + 14px); bottom: auto; justify-content: space-between; }
  .hero__dots { gap: var(--sp-2); }
  .hero__dot { width: 44px; font-size: .85rem; }
  .hero__arrow { width: 42px; height: 42px; }
  .about__badge { width: 96px; left: -6px; }
  .about__badge strong { font-size: 1.8rem; }
  .pillar__card { height: 260px; }
  .spanel { padding: var(--sp-3); }
  .life__nav { display: none; }
  .post { grid-template-columns: 1fr; }
  .post__media { aspect-ratio: 16 / 9; min-height: 0; }
  .contact__card { padding: var(--sp-5); }
  .footer__bottom { justify-content: center; text-align: center; }
  /* Offer pass becomes a bottom sheet */
  .offer { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; border-radius: 26px 26px 0 0; }
  .offer[open] { animation: sheetUp .6s var(--ease) both; }
  .pass { border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pass__handle { display: block; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: rgba(255, 255, 255, .5); z-index: 2; }
  .pass__actions { grid-template-columns: 1fr; }
}
@media (min-width: 600px) {
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 250px; }
  .tile--xl { grid-column: 1 / -1; }
  .tile--wide { grid-column: 1 / -1; }
  .masonry { columns: 3 200px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .hide-md { display: none !important; }
}
@media (min-width: 768px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; }
  .spanel { grid-template-columns: 1fr 1.1fr; padding: var(--sp-5); }
  .admit__grid { grid-template-columns: 1fr 1fr; }
  .docs { grid-column: 1; }
  .steps { grid-row: span 2; }
  .contact__grid { grid-template-columns: 1fr 1.2fr; }
  .stats li { padding: var(--sp-6) var(--sp-5); }
}
@media (min-width: 900px) {
  .hero__scroll { display: block; }
  .journey__track { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding-top: 60px; }
  .journey__path { display: block; position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 70px; overflow: visible; }
  .journey__path path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 6 10; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: flow 1.4s linear infinite; }
  .posts { grid-template-columns: 1.1fr 1fr; }
  .post--feature { grid-row: span 3; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .post--feature .post__media { aspect-ratio: 16 / 10; }
  .post--feature h3 { font-size: 2.2rem; }
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-9); }
  .pillars__grid { grid-template-columns: repeat(4, 1fr); }
  .pillar:nth-child(even) { margin-top: var(--sp-7); }
  .global__grid { grid-template-columns: 1.05fr 1fr; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; }
  .tile--xl { grid-column: span 2; grid-row: span 2; }
  .tile--wide { grid-column: span 2; }
  .tile p { max-height: 0; opacity: 0; transform: translateY(8px); transition: max-height .5s var(--ease), opacity .4s, transform .5s var(--ease); }
  .tile:hover p, .tile:focus-visible p, .tile--xl p { max-height: 4em; opacity: 1; transform: none; }
  .principal__grid { grid-template-columns: 5fr 7fr; }
  .masonry { columns: 4 220px; }
  .footer__top { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: var(--sp-9); align-items: center; }
  .footer__lead { justify-items: start; }
  .footer__cta { justify-content: flex-start; }
  .footer__cols { grid-template-columns: 1fr 1fr 1.2fr 1.2fr; }
}
@media (min-width: 1100px) {
  .nav { display: block; }
  .burger { display: none; }
}
@media (min-width: 1440px) {
  .hero__content { padding-bottom: calc(var(--sp-9) + 60px); }
}

/* =========================================================
   26. ACCESSIBILITY + REDUCED MOTION
========================================================= */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .filter:focus-visible { border-radius: var(--r-pill); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .ribbon__track, .paths__track, .voices__track, .footer__band-track, .crest__laurel, .crest__ring, .leaf { animation: none !important; }
  .slide__img { transform: none !important; }
}
