/* ==========================================================================
   Subharti College of Naturopathy & Yogic Sciences — site stylesheet
   Palette aligned with Swami Vivekanand Subharti University (subharti.org)
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("../fonts/source-serif-600-latin.woff2") format("woff2");
}

:root {
  --teal-900: #00232e;
  --teal-800: #06323f;
  --teal-700: #176b68;
  --teal-100: #e3eeec;
  --gold: #c7a86c;
  --gold-600: #a8884c;
  --gold-100: #f6efe1;
  --bg: #f5f7f6;
  --white: #fff;
  --text: #263238;
  --muted: #55646b;
  --line: #dbe3e1;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(0, 35, 46, .06), 0 2px 8px rgba(0, 35, 46, .06);
  --shadow-2: 0 2px 4px rgba(0, 35, 46, .05), 0 12px 32px -8px rgba(0, 35, 46, .18);
  --shadow-3: 0 30px 60px -20px rgba(0, 35, 46, .45), 0 10px 20px -10px rgba(0, 35, 46, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --topbar-h: 40px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--sans);
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
picture { display: contents; }
a { color: var(--teal-700); text-underline-offset: .18em; }
a:hover { color: var(--teal-900); }
h1, h2, h3, h4 { color: var(--teal-900); line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
table { border-collapse: collapse; }
address { font-style: normal; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--teal-900); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons & tags ---------- */
.btn {
  --b: var(--teal-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.35em; border-radius: 999px;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--b); background: var(--b); color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn--gold { --b: var(--gold); color: var(--teal-900); }
.btn--gold:hover { background: #d4b97f; color: var(--teal-900); }
.btn--teal { --b: var(--teal-700); }
.btn--outline { background: transparent; color: var(--teal-900); }
.btn--outline:hover { background: var(--teal-900); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--teal-900); border-color: var(--line); }
.btn--ghost-dark:hover { color: var(--teal-900); border-color: var(--teal-900); }
.btn--sm { min-height: 38px; padding: .5em 1.05em; font-size: .88rem; }

.tag { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--teal-100); color: var(--teal-700); }
.tag--gold { background: var(--gold); color: var(--teal-900); }

.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.eyebrow--light { color: var(--gold); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: calc(var(--topbar-h) * -1); z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--teal-900); color: #d6e2e0; font-size: .82rem; height: var(--topbar-h); }
.topbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__note { margin: 0; display: flex; align-items: center; gap: .6em; min-width: 0; }
.topbar__note a { color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__note a:hover { text-decoration: underline; }
.topbar__links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex: none; }
.topbar__links a { color: #d6e2e0; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar__links a:hover { color: var(--gold); }

.brandbar__in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; flex: 1; }
.brand__logo { width: 168px; height: auto; flex: none; }
.brand__naac { width: auto; height: 40px; flex: none; margin-left: -6px; }
.brand__text { display: none; border-left: 1px solid var(--line); padding-left: 16px; min-width: 0; }
.brand__text strong { display: block; font: 600 1.02rem/1.25 var(--serif); color: var(--teal-900); }
.brand__text small { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); letter-spacing: .01em; }
.brandbar__cta { display: none; }

.nav-toggle { margin-left: auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--teal-900); cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Mobile navigation drawer */
.mainnav { display: none; background: #fff; border-top: 1px solid var(--line); max-height: calc(100vh - 76px); overflow-y: auto; overscroll-behavior: contain; }
.mainnav.is-open { display: block; }
.menu { list-style: none; margin: 0; padding: 8px 0; }
.menu__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.menu__link { flex: 1; display: block; padding: 14px 4px; color: var(--teal-900); font-weight: 600; text-decoration: none; }
.menu__item.is-active > .menu__link { color: var(--teal-700); }
.sub-toggle { width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--teal-900); cursor: pointer; border-radius: 10px; }
.sub-toggle .ico { transition: transform .25s var(--ease); }
.sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.submenu { display: none; width: 100%; list-style: none; margin: 0 0 10px; padding: 4px 0 4px 12px; border-left: 2px solid var(--gold); }
.submenu.is-open { display: block; }
.submenu a { display: flex; align-items: center; gap: .4em; padding: 9px 8px; color: var(--text); text-decoration: none; border-radius: 6px; font-size: .95rem; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--bg); color: var(--teal-900); }
.submenu .ico { width: .9em; height: .9em; opacity: .6; }
.mainnav__mobile-extra { display: flex; gap: 10px; padding: 16px 0 20px; }
.mainnav__mobile-extra .btn { flex: 1; }

.topbar .tag { white-space: nowrap; }
@media (max-width: 599px) {
  .hide-sm { display: none; }
  .topbar__note a { display: none; }
}
@media (min-width: 600px) {
  .brand__logo { width: 210px; }
  .brand__naac { height: 50px; }
}
@media (min-width: 760px) {
  .brand__text { display: block; }
}
@media (min-width: 1100px) {
  .brandbar__in { min-height: 88px; }
  .brand__logo { width: 230px; }
  .brand__naac { height: 58px; }
  .brand__text strong { font-size: 1.12rem; }
  .brandbar__cta { display: block; margin-left: auto; }
  .nav-toggle, .mainnav__mobile-extra { display: none; }
  .mainnav, .mainnav.is-open { display: block; overflow: visible; max-height: none; background: var(--teal-900); border: 0; }
  .menu { display: flex; justify-content: space-between; padding: 0; }
  .menu__item { border: 0; flex-wrap: nowrap; }
  .menu__link { padding: 15px 4px 15px 12px; color: #e7efee; font-size: .93rem; font-weight: 500; white-space: nowrap; }
  .menu__item:first-child .menu__link { padding-left: 0; }
  .menu__item:not(.has-sub) .menu__link { padding-right: 12px; }
  .menu__link:hover, .menu__item.is-active > .menu__link { color: #fff; }
  .menu__item.is-active > .menu__link { box-shadow: inset 0 -3px 0 var(--gold); }
  .sub-toggle { width: 28px; height: 28px; color: #c5d4d2; }
  .submenu {
    display: block; position: absolute; top: 100%; left: 0; z-index: 20; width: max-content; min-width: 250px; max-width: 340px;
    margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-3);
    opacity: 0; visibility: hidden; transform: perspective(800px) rotateX(-8deg) translateY(-6px); transform-origin: top center;
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu__item:last-child .submenu, .menu__item:nth-last-child(2) .submenu { left: auto; right: 0; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .submenu.is-open {
    opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .25s var(--ease);
  }
  .has-sub.is-dismissed > .submenu:not(.is-open) { opacity: 0; visibility: hidden; transform: perspective(800px) rotateX(-8deg) translateY(-6px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--teal-900); color: #dbe7e5; padding: 44px 0 52px; }
.page-hero__grid { position: absolute; left: 25%; right: 0; bottom: 0; height: 100%; background: url("../img/grid-floor.svg") center bottom / cover no-repeat; opacity: .9; }
.page-hero__in { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); margin: 0; max-width: 22ch; }
.page-hero__lead { margin: 14px 0 0; max-width: 62ch; font-size: 1.05rem; color: #c3d3d1; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .85rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.crumbs a { color: #c3d3d1; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--bg); }
.section--dark { background: var(--teal-900); color: #cfdcda; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 34px; }
.section__title { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.45rem); margin: 0; max-width: 24ch; }
.section__intro { max-width: 60ch; margin: 12px 0 0; color: var(--muted); font-size: 1.04rem; }
.section--dark .section__intro { color: #b7c8c6; }
@media (min-width: 900px) { .section { padding: 92px 0; } }
/* Off-screen sections skip layout/paint until scrolled near — keeps font swaps and first render cheap. */
.section, .cta-band, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.cta-band { contain-intrinsic-size: auto 240px; }

.grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-1); }
.card h3 { font-size: 1.18rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal-900); color: #d3e0de; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(23, 107, 104, .55), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(199, 168, 108, .14), transparent 70%);
}
/* Perspective floor drawn as a static SVG (tools/build-grid-svg.php): same depth cue, far cheaper to paint
   than a CSS 3D-transformed, masked element. */
.hero__grid { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 58%; background: url("../img/grid-floor.svg") center bottom / cover no-repeat; }
.hero__in { display: grid; gap: 40px; align-items: center; padding: 52px 20px 64px; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.08; margin: 0 0 20px; max-width: 16ch; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); max-width: 52ch; color: #c3d3d1; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); list-style: none; font-size: .9rem; }
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta strong { font: 600 1.35rem/1.2 var(--serif); color: #fff; }

/* Layered 3D image stage */
.stage { position: relative; perspective: 1400px; height: 360px; }
.stage__stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -10deg)); transition: transform .6s var(--ease); }
.stage__layer { position: absolute; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-3); background: var(--teal-800); }
.stage__layer img { width: 100%; height: 100%; object-fit: cover; }
.stage__layer--main { inset: 0 10% 12% 0; transform: translateZ(0); }
.stage__layer--a { width: 46%; aspect-ratio: 1; right: 0; bottom: 0; transform: translateZ(70px) translateY(var(--py, 0px)); border: 4px solid #fff; }
.stage__layer--b { width: 38%; aspect-ratio: 3 / 2; left: -4%; bottom: -6%; transform: translateZ(40px) translateY(calc(var(--py, 0px) * -.6)); border: 4px solid #fff; display: none; }
@media (min-width: 640px) { .stage { height: 440px; } .stage__layer--b { display: block; } }
@media (min-width: 1000px) {
  .hero__in { grid-template-columns: 1.02fr 1fr; padding-top: 84px; padding-bottom: 104px; gap: 56px; }
  .stage { height: 520px; }
}

/* Notice ribbon below hero */
.ribbon { background: var(--gold-100); border-bottom: 1px solid #eadfc8; }
.ribbon__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 20px; font-size: .92rem; }
.ribbon__label { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--teal-900); }
.ribbon ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.ribbon a { color: var(--teal-900); }

/* ---------- About block ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about__media { position: relative; perspective: 1200px; }
.about__frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-3); transform: rotateY(8deg) rotateX(2deg); transform-origin: left center; transition: transform .8s var(--ease); }
.about__media:hover .about__frame { transform: none; }
.about__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__logo { position: absolute; right: -6px; bottom: -22px; width: 62%; background: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-2); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; padding: 0; list-style: none; }
.facts li { padding: 16px 18px; background: var(--bg); border-radius: 12px; border-left: 3px solid var(--gold); }
.facts strong { display: block; font: 600 1.25rem/1.2 var(--serif); color: var(--teal-900); }
.facts span { font-size: .88rem; color: var(--muted); }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1.1fr; gap: 72px; } }

/* ---------- 3D tilt cards ---------- */
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0); transition: transform .5s var(--ease), box-shadow .3s var(--ease); will-change: transform; }
.tilt:hover { box-shadow: var(--shadow-3); }
.tilt.is-tilting { transition: transform .08s linear, box-shadow .3s var(--ease); }
.tilt__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .5), transparent 55%); opacity: 0; transition: opacity .3s; }
.tilt.is-tilting .tilt__glare { opacity: .6; }

/* Programme cards */
.prog { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.prog__top { position: relative; padding: 24px 26px 20px; background: linear-gradient(135deg, var(--teal-900), var(--teal-700)); color: #fff; }
.prog__code { font: 600 2rem/1 var(--serif); color: #fff; transform: translateZ(30px); }
.prog__name { margin: 8px 0 0; color: #d7e5e3; font-size: .96rem; }
.prog__level { display: inline-block; margin-bottom: 12px; }
.prog__body { flex: 1; display: flex; flex-direction: column; padding: 22px 26px 26px; }
.prog dl { margin: 0 0 18px; display: grid; gap: 12px; }
.prog dt { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.prog dd { margin: 2px 0 0; font-size: .95rem; }
.prog__spec { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0 0; }
.prog__spec li { font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: var(--teal-100); color: var(--teal-900); }
.prog__note { font-size: .84rem; color: var(--muted); padding: 10px 12px; background: var(--gold-100); border-radius: 8px; margin: 0 0 18px; }
.prog__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* Admission steps */
.steps { counter-reset: step; display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 74px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; font: 600 1.6rem/1 var(--serif); color: var(--gold-600); }
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { margin: 0 0 .6em; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* Department chips */
.dept-group h3 { display: flex; align-items: center; gap: .5em; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 7px 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; transition: transform .25s var(--ease), border-color .2s; }
.chips li:hover { transform: translateY(-2px); border-color: var(--teal-700); }

/* Faculty */
.faculty-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 640px) { .faculty-grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
@media (min-width: 980px) { .faculty-grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .fac__body { padding: 12px 12px 14px; } .fac__name { font-size: .95rem; } .fac__qual { font-size: .8rem; } .fac__role { font-size: .7rem; } }
.fac { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; }
.fac__photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--teal-100), #fff); overflow: hidden; }
.fac__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s var(--ease); }
.fac:hover .fac__photo img { transform: scale(1.04); }
.fac__body { padding: 16px 18px 18px; }
.fac__name { font-size: 1.02rem; margin: 0 0 4px; }
.fac__role { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 6px; }
.fac__qual { font-size: .88rem; color: var(--muted); margin: 0; }
.fac__mail { display: block; margin-top: 8px; font-size: .8rem; word-break: break-all; }
.fac--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .fac--lead { grid-template-columns: 220px 1fr; align-items: center; }
  .fac--lead .fac__photo { height: 100%; }
  .fac--lead .fac__body { padding: 28px; }
  .fac--lead .fac__name { font: 600 1.5rem/1.2 var(--serif); }
}

/* Distinguished alumni video */
.alumni-video { margin: 0 auto; max-width: 1040px; }
.alumni-video__frame { border-radius: var(--radius); overflow: hidden; background: var(--teal-900); box-shadow: var(--shadow-3); aspect-ratio: 16 / 9; }
.alumni-video__frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.alumni-video__caption { margin-top: 12px; text-align: center; font-size: .86rem; color: var(--muted); }
.alumni-video__text { max-width: 1040px; margin: 22px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.alumni-video__text summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--teal-900); }
.alumni-video__text[open] summary { margin-bottom: 8px; }
.alumni-video__text .table-wrap { margin-bottom: 16px; }
.alumni-video__text th { text-align: left; }
.muted { color: var(--muted); font-size: .88em; }

/* Placement logo wall */
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 640px) { .logo-wall { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.logo-wall__item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 14px 16px; }
.logo-wall__num { position: absolute; top: 10px; left: 12px; font: 600 .8rem/1 var(--serif); color: var(--gold-600); }
.logo-wall__logo { display: grid; place-items: center; width: 100%; height: 110px; margin-bottom: 14px; }
.logo-wall__logo img { max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; }
.logo-wall__name { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--teal-900); line-height: 1.35; }
.logo-wall__place { margin: 0; font-size: .74rem; color: var(--muted); line-height: 1.35; }

/* Media tiles (labs, infrastructure, campus life) */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--teal-800); box-shadow: var(--shadow-1); }
.tile img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 35, 46, .88)); }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tiles--feature .tile:first-child { grid-column: span 2; grid-row: span 2; }
}

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ico { color: var(--teal-700); margin-top: .2em; }
.section--dark .info-list .ico { color: var(--gold); }

/* Research highlights */
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-100); color: var(--teal-700); }
.feature__icon .ico { width: 24px; height: 24px; }
.section--dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; color: #cfdcda; }
.section--dark .feature__icon { background: rgba(199, 168, 108, .14); color: var(--gold); }
.section--dark a { color: var(--gold); }

/* Notices & downloads */
.notices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notices li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.notices__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-100); color: var(--teal-700); }
.notices a { color: var(--teal-900); font-weight: 600; text-decoration: none; }
.notices a:hover { text-decoration: underline; color: var(--teal-700); }
.notices__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; font-size: .8rem; color: var(--muted); align-items: center; }

.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.dl:hover { transform: translateX(4px); border-color: var(--teal-700); box-shadow: var(--shadow-1); color: var(--teal-900); }
.dl__icon { flex: none; color: var(--teal-700); }
.dl__title { flex: 1; font-weight: 600; font-size: .94rem; }
.dl__meta { flex: none; font-size: .76rem; color: var(--muted); text-align: right; white-space: nowrap; }
.dl-group { margin-bottom: 38px; }
.dl-group h2 { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
@media (min-width: 760px) { .dl-list--cols { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--teal-100) center / cover; min-height: 320px; box-shadow: var(--shadow-1); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; background: linear-gradient(135deg, rgba(0, 35, 46, .9), rgba(23, 107, 104, .85)); color: #fff; border: 0; width: 100%; cursor: pointer; font: inherit; }
.map__load strong { font: 600 1.2rem/1.3 var(--serif); }
.map__load span { color: var(--gold); font-weight: 700; }

/* Forms */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--teal-900); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid #c9d3d1; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(23, 107, 104, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .84rem; margin-top: 5px; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--teal-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.alert--ok { background: #e6f4ea; color: #12512b; border: 1px solid #b6dfc3; }
.alert--err { background: #fdecea; color: #7a1a14; border: 1px solid #f3c2bd; }

/* ---------- Generic content (hand-built and migrated pages) ---------- */
.content { padding: 48px 0 72px; }
.content__layout { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.content__layout > * { min-width: 0; }
.prose { overflow-wrap: anywhere; }
.prose .table-wrap { overflow-wrap: normal; }
@media (min-width: 1100px) { .content__layout--aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; } }
.aside { align-self: start; position: sticky; top: 150px; display: grid; gap: 18px; }
.aside .card { padding: 20px; }
.aside h2 { font: 700 .8rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .94rem; }
.aside li a:hover, .aside li a[aria-current="page"] { color: var(--teal-700); font-weight: 600; }
@media (max-width: 1099px) { .aside { position: static; } }

.prose { max-width: 100%; font-size: 1.02rem; }
.prose > * { max-width: 78ch; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose img { border-radius: 10px; }
.prose ul li, .prose ol li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: var(--bg); border-radius: 0 10px 10px 0; }

/* Profile (Principal page) */
.profile { display: grid; gap: 22px; align-items: center; margin: 0 0 1.8em; max-width: 100% !important; }
.profile__photo { margin: 0; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.profile__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0 !important; }
.profile__photo figcaption { padding: 14px 18px 16px; border-top: 3px solid var(--gold); }
.profile__photo figcaption strong { display: block; font: 600 1.15rem/1.25 var(--serif); color: var(--teal-900); }
.profile__photo figcaption span { display: block; font-size: .86rem; color: var(--muted); }
.profile__intro p { font-size: 1.08rem; margin: 0; }
@media (min-width: 760px) { .profile { grid-template-columns: 300px 1fr; gap: 36px; } }

/* Photos restored from the legacy pages */
.page-figure { margin: 0 0 1.8em; max-width: 100% !important; }
.page-figure img { width: 100%; height: auto; border-radius: var(--radius) !important; box-shadow: var(--shadow-2); }
.page-figure--narrow { max-width: 520px !important; }
.page-figures { display: grid; gap: 18px; margin: 0 0 1.8em; max-width: 100% !important; }
.page-figures .page-figure { margin: 0; }
@media (min-width: 760px) { .page-figures { grid-template-columns: 1fr 1fr; } }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-evenly; gap: 18px 28px; margin: 0 0 1.8em; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 100% !important; }
.logo-row img { height: 72px; width: auto; max-width: 100%; border-radius: 0 !important; }

/* Data tables */
.table-wrap { max-width: 100% !important; overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 520px; font-size: .94rem; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap tr:first-child > * { background: var(--teal-900); color: #fff; font-weight: 600; }
.table-wrap tr:nth-child(even) > td { background: var(--bg); }
.table-wrap tr:last-child > * { border-bottom: 0; }
.table-wrap a { font-weight: 600; }

/* Layout grids produced from the legacy table layouts */
.lg { max-width: 100% !important; display: grid; gap: 18px; margin: 0 0 1.6em; grid-template-columns: minmax(0, 1fr); }
.lg > * { min-width: 0; }
.lg-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: start; }
.lg-cell { min-width: 0; }
.lg-cell > :last-child { margin-bottom: 0; }
.lg-cell img { margin: 0 auto; border-radius: 10px; }
.lg-row:has(> .lg-cell img:only-child) { align-items: stretch; }
.legacy-h { font-family: var(--serif); font-weight: 600; color: var(--teal-900); }
.media-embed { position: relative; max-width: 100% !important; aspect-ratio: 16 / 9; margin: 0 0 1.6em; border-radius: 12px; overflow: hidden; background: #000; }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-embed--doc { aspect-ratio: auto; height: 80vh; background: var(--bg); }
.yt { position: absolute; inset: 0; display: block; color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; opacity: .9; transition: opacity .3s; }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 22px 12px 44px; border-radius: 999px; background: rgba(0, 35, 46, .88); font-weight: 700; font-size: .92rem; }
.yt__play::before { content: ""; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--gold); }
.prose video { width: 100%; height: auto; border-radius: 12px; background: #000; margin: 0 0 1.6em; }
.prose .map { margin: 0 0 1.6em; }
.prose .lg .media-embed { margin: 0; }
.doc-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; }

/* ---------- CTA band & footer ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--teal-700), var(--teal-900) 70%); color: #d9e6e4; }
.cta-band__in { display: grid; gap: 22px; padding: 46px 20px; align-items: center; }
.cta-band__title { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); margin: 0; max-width: 26ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) { .cta-band__in { grid-template-columns: 1fr auto; padding: 56px 20px; } }

.site-footer { background: #001a22; color: #a9bcbb; font-size: .93rem; }
.site-footer a { color: #d6e2e0; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__grid { display: grid; gap: 36px; padding-top: 60px; padding-bottom: 40px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.footer__logo { width: 300px; max-width: 100%; background: #fff; padding: 10px 12px; border-radius: 10px; margin-bottom: 20px; }
.footer__about address p { display: flex; gap: 10px; margin-bottom: 12px; }
.footer__about .ico { color: var(--gold); margin-top: .2em; }
.footer__h { font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.footer__social a { display: inline-block; padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .84rem; }
.footer__colleges { padding-bottom: 36px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 28px; }
.footer__colleges ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__bottom-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__antiragging { width: 260px; background: #fff; border-radius: 8px; padding: 4px; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-900); color: #fff; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.to-top .ico { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--gold); }

/* ---------- Scroll reveal (only when JS is active) ---------- */
/* 2D on purpose: a static 3D transform on dozens of elements forces a compositor layer for each at load. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stage__stack, .tilt, .about__frame { transform: none !important; }
  .stage__layer--a, .stage__layer--b { transform: none !important; }
}

@media print {
  .site-header, .cta-band, .site-footer, .to-top, .aside { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero__title { color: #000; }
}
