:root {
  --ink: #1a120e;
  --ink-soft: #3b2a22;
  --paper: #f6f1e8;
  --parchment: #ebe1cf;
  --cream: #e0d0b4;
  --terracotta: #9b2d14;
  --terra-deep: #6f1c0b;
  --burgundy: #3f140e;
  --gold: #c4a066;
  --gold-pale: #ead7b0;
  --white: #fdfbf7;
  --muted: #7a6558;
  --line: rgba(26, 18, 14, 0.12);
  --shadow: 0 24px 60px rgba(26, 18, 14, 0.14);
  --radius: 18px;
  --nav-h: 86px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(196, 160, 102, 0.12), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(155, 45, 20, 0.06), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul { list-style: none; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Topbar + Nav ---------- */
.topbar {
  background: var(--burgundy);
  color: var(--gold-pale);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 8px 0;
  position: relative;
  z-index: 40;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold-pale); }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(26, 18, 14, 0.08); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
}
.brand-text em {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 11px;
  color: var(--ink-soft);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--terracotta); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--terracotta);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.88rem;
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terra-deep); box-shadow: 0 10px 24px rgba(155, 45, 20, 0.28); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--white); color: var(--terracotta); }
.btn-gold { background: var(--gold); color: var(--burgundy); }

.nav-cta { white-space: nowrap; }
.nav-links .nav-cta { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 2;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(26, 18, 14, 0.12) 0%,
    rgba(26, 18, 14, 0.04) 38%,
    rgba(26, 18, 14, 0.28) 68%,
    rgba(26, 18, 14, 0.72) 100%
  );
}
.hero-copy {
  max-width: 560px;
  margin: 0 0 36px;
  padding: 22px 24px 22px;
  border-radius: 22px;
  background: rgba(18, 14, 10, 0.48);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.hero h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  color: #fff;
  margin: 10px 0 10px;
  font-weight: 800;
  line-height: 1.15;
}
.hero h1 em { font-style: italic; color: var(--gold-pale); padding-left: 0.06em; }
.hero p {
  font-size: 0.95rem;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(234, 215, 176, 0.4);
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--gold-pale);
}
.hero-badge i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--burgundy);
  color: var(--gold-pale);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.stat {
  padding: 28px 12px;
  text-align: center;
  border-right: 1px solid rgba(234, 215, 176, 0.12);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; z-index: 1; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 18ch; }
.kicker { font-style: italic; color: var(--muted); font-size: 1.05rem; max-width: 42ch; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Split / About ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px 80px 8px 8px;
  box-shadow: var(--shadow);
}
.photo-frame {
  position: relative;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  border: 1px solid var(--gold);
  border-radius: 8px 80px 8px 8px;
  z-index: -1;
}
.caption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.prose p + p { margin-top: 14px; }
.prose ul {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.prose li {
  padding-left: 18px;
  position: relative;
}
.prose li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  position: absolute;
  left: 0;
  top: 0.6em;
}

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 240px; object-fit: cover; object-position: top center; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.45rem; margin: 6px 0 10px; }
.tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

.program-card {
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(155, 45, 20, 0.04), transparent 40%),
    var(--white);
}
.program-card .meta { font-family: var(--font-ui); color: var(--muted); font-size: 0.85rem; margin-bottom: auto; }
.program-card .actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- News ---------- */
.news-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
.news-feature > a, .news-side a { color: inherit; }
.news-hero-card {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: end;
}
.news-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(26, 18, 14, 0.88));
}
.news-hero-copy {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #fff;
}
.news-hero-copy h3 { font-size: 2rem; margin: 8px 0 10px; }
.news-side { display: grid; gap: 12px; }
.news-tile {
  position: relative;
  isolation: isolate;
  min-height: 168px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: end;
  color: #fff;
  box-shadow: 0 10px 28px rgba(26, 18, 14, 0.12);
}
.news-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}
.news-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(18,14,10,0.05) 20%, rgba(18,14,10,0.78) 100%);
}
.news-tile .faculty-overlay {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: calc(100% - 20px);
  margin: 10px;
  z-index: 1;
}
.news-tile h3, .news-tile h4 {
  font-size: 1rem;
  color: #fff;
  padding-right: 0;
  margin: 4px 0 4px;
}
.news-tile .date { color: var(--gold-pale); }

.date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Teaching mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.mosaic .wide { grid-row: 1 / span 2; }
.learn-list { display: grid; gap: 12px; }
.learn-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}
.learn-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--burgundy);
  color: var(--gold-pale);
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.learn-card h3 { font-size: 1.12rem; margin: 4px 0 6px; }
.learn-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Cambridge ---------- */
.cambridge {
  background: var(--burgundy);
  color: var(--gold-pale);
}
.cambridge .eyebrow, .cambridge h2 { color: var(--gold-pale); }
.cambridge h2 { color: #fff; }
.cambridge .lead { color: rgba(253, 251, 247, 0.8); }
.cambridge .icon-pill {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.cert-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cert-card img { width: 100%; height: auto; }

/* ---------- Faculty cards ---------- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.faculty-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 3.9;
  border-radius: 28px;
  overflow: hidden;
  background: #1c1917;
  box-shadow: 0 18px 40px rgba(26, 18, 14, 0.16);
  text-align: left;
}
.faculty-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  z-index: 0;
}
.faculty-card:hover > img { transform: scale(1.05); }
.faculty-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 18px 16px 14px;
  border-radius: 22px;
  color: #fff;
  background: rgba(18, 16, 14, 0.52);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.faculty-overlay h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  padding-right: 42px;
  line-height: 1.25;
}
.faculty-overlay .role {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
  margin: 3px 0 8px;
  font-weight: 500;
}
.faculty-overlay .blurb {
  font-size: 0.7rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.faculty-go {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.faculty-go:hover { background: rgba(255, 255, 255, 0.24); transform: translate(1px, -1px); }
.faculty-go svg { width: 16px; height: 16px; }
.faculty-social { display: flex; gap: 8px; margin-top: 14px; }
.soc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}
.soc:hover { background: rgba(255, 255, 255, 0.2); }
.soc svg { width: 14px; height: 14px; }

.faculty-card { cursor: pointer; }

.faculty-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 12, 8, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.faculty-modal.open { display: flex; }

.profile-sheet {
  width: min(1100px, 100%);
  height: min(92vh, 920px);
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}
.profile-rail {
  background: var(--burgundy);
  color: #fff;
  padding: 28px 22px 24px;
  overflow: auto;
  min-height: 0;
}
.profile-rail img {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.12);
}
.profile-rail .eyebrow { color: var(--gold-pale); }
.profile-rail h3 {
  font-size: 1.35rem;
  color: #fff;
  margin: 8px 0 4px;
  line-height: 1.2;
}
.profile-rail .role {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-actions .btn { padding: 9px 14px; font-size: 0.8rem; }
.profile-actions .btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.profile-actions .btn-ghost:hover { background: #fff; color: var(--burgundy); }
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.count-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 10px 9px;
}
.count-pill b {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
}
.count-pill span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.profile-main {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
#facModalDetails {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 14px 20px 0;
  flex-shrink: 0;
  z-index: 1;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tab {
  border: 0;
  background: transparent;
  padding: 10px 14px 12px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.profile-panel { display: none; padding: 18px 22px 28px; gap: 14px; }
.profile-panel.is-on { display: grid; }
.profile-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.profile-section h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(155, 45, 20, 0.1);
  color: var(--terracotta);
  font-size: 0.68rem;
  letter-spacing: 0;
  font-weight: 700;
}
.pub-list { display: grid; gap: 8px; }
a.pub-item { color: inherit; }
.pub-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 12px 12px 8px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--paper);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pub-item:hover {
  border-color: var(--line);
  background: var(--white);
}
.pub-index {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--burgundy);
  color: var(--gold-pale);
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.pub-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pub-meta .icon-pill {
  padding: 4px 9px;
  font-size: 0.7rem;
  background: var(--white);
}
.pub-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 600;
}
.glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.timeline { position: relative; display: grid; gap: 0; padding-left: 4px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 12px;
}
.timeline-col { display: flex; justify-content: center; }
.timeline-dot {
  width: 54px;
  min-height: 36px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--gold-pale);
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  padding: 6px 4px;
  text-align: center;
  line-height: 1.1;
}
.timeline-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.timeline-card .icon-pill { margin-bottom: 6px; }
.timeline-card .pub-title { margin-top: 2px; }
.entry-list { display: grid; gap: 10px; }
.entry {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.entry .date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 2px;
}
.entry.no-date { grid-template-columns: 1fr; }
.faculty-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
}
.faculty-modal-close svg { width: 16px; height: 16px; }

.icon-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 100%;
}
.icon-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.icon-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-rail .icon-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.light-stats .count-pill {
  background: var(--white);
  border: 1px solid var(--line);
}
.light-stats .count-pill b { color: var(--terracotta); }
.light-stats .count-pill span { color: var(--muted); }

.hod-band {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  align-items: center;
}
.hod-band img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}
.quote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
}
.sign { margin-top: 18px; font-family: var(--font-ui); }
.sign strong { display: block; color: var(--terracotta); }

/* ---------- Facilities ---------- */
.facility {
  position: relative;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
}
.facility img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.facility figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  color: #fff;
  background: linear-gradient(transparent, rgba(26, 18, 14, 0.85));
}
.facility h3 { font-size: 1.7rem; }

/* ---------- Alumni / quotes ---------- */
.quote-card {
  background: var(--white);
  border-left: 3px solid var(--terracotta);
  padding: 24px;
  border-radius: 0 16px 16px 0;
}
.quote-card p { font-style: italic; font-size: 1.05rem; }
.quote-card cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--terracotta);
}

.alumni-profile { aspect-ratio: 3 / 4.05; }
.alumni-profile .faculty-overlay h3 { padding-right: 0; }
.alumni-profile .alumni-quote {
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.4;
  -webkit-line-clamp: 5;
  color: rgba(255, 255, 255, 0.9);
}
.alumni-quote-card {
  background:
    linear-gradient(165deg, rgba(155, 45, 20, 0.92), rgba(26, 18, 14, 0.94));
}
.alumni-quote-card .faculty-overlay {
  inset: 14px;
  bottom: 14px;
  top: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(18, 16, 14, 0.2);
}
.alumni-quote-card .faculty-overlay::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.7;
  color: rgba(255, 255, 255, 0.18);
  position: absolute;
  top: 18px;
  left: 16px;
  font-weight: 700;
}
.alumni-quote-card .alumni-quote { -webkit-line-clamp: 8; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(120deg, rgba(26, 18, 14, 0.72), rgba(111, 28, 11, 0.7)),
    url("../assets/images/idea-hub.webp") center/cover;
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 16px; }
.cta-band p { max-width: 52ch; margin: 0 auto 24px; color: rgba(255,255,255,0.86); }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 90% 10%, rgba(196, 160, 102, 0.22), transparent 40%),
    var(--parchment);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.crumbs {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.crumbs a:hover { color: var(--terracotta); }

/* ---------- Vision / mission ---------- */
.vm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.vm article {
  background: var(--white);
  padding: 32px;
  border-radius: 18px;
  border-top: 4px solid var(--terracotta);
}
.vm h3 { font-size: 2rem; margin-bottom: 12px; }
.vm ol { display: grid; gap: 12px; }
.vm li { padding-left: 0; }
.vm li b { color: var(--terracotta); display: block; font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--parchment);
}
td:first-child { font-weight: 600; white-space: nowrap; }

.semester {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.semester h3 { margin-bottom: 6px; }
.credits { font-family: var(--font-ui); font-size: 0.8rem; color: var(--terracotta); margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta); font-family: var(--font-ui); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- Filters ---------- */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}
.search {
  flex: 1;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--font-ui);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
}
.chip.active, .chip:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}
.info-tile {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 16px;
  margin-bottom: 14px;
}
.info-tile h3 { font-size: 1.3rem; margin-bottom: 6px; }
.info-tile a { color: var(--terracotta); font-weight: 600; }

form {
  background: var(--white);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
label { font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-ok {
  display: none;
  background: #e8f3e6;
  color: #215c28;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-ui);
}
.map {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 380px; border: 0; }

/* ---------- Research stats ---------- */
.rs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.rs article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}
.rs b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--terracotta); }
.rs span { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.thrust {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.thrust h3 { color: var(--terracotta); font-size: 1.4rem; margin-bottom: 10px; }
.thrust li { padding-left: 16px; position: relative; margin: 6px 0; font-size: 0.95rem; }
.thrust li::before { content: "–"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(253, 251, 247, 0.78);
  padding: 56px 0 24px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.site-footer a { color: var(--gold-pale); }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: grid; gap: 8px; font-family: var(--font-ui); font-size: 0.9rem; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.footer-brand img { width: 44px; height: 44px; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s ease forwards; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-style: italic;
}

.career {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--line);
}
.career .pct {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--terracotta);
  line-height: 1;
}
.career h3 { margin: 4px 0 10px; }

.notif {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.notif h3 { font-size: 1.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    align-items: flex-start;
    gap: 4px;
  }
  .nav-links.open .nav-cta {
    display: inline-flex;
    margin-top: 10px;
  }
  .site-header { position: sticky; }
  .grid-3, .grid-4, .footer-grid, .split, .news-feature, .vm, .contact-grid, .hod-band, .profile-sheet {
    grid-template-columns: 1fr;
  }
  .profile-sheet {
    grid-template-columns: 1fr;
    height: 92vh;
    overflow: hidden;
  }
  .profile-rail { max-height: 42vh; overflow: auto; }
  .profile-rail img { max-height: 200px; width: min(180px, 100%); }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .rs { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: 220px 200px 200px; }
  .mosaic .wide { grid-row: auto; }
  .split img, .hod-band img { height: 360px; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(234, 215, 176, 0.12); }
  .form-row { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
  .topbar .wrap span:last-child { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .hero { min-height: 70vh; }
  .hero-copy { margin: 0 0 20px; padding: 18px 18px 16px; max-width: 100%; }
  .section { padding: 56px 0; }
  .news-tile { min-height: 200px; }
  .legal { flex-direction: column; }
  .stats-grid, .rs { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: 1fr; }
  .faculty-card { aspect-ratio: 3 / 3.6; max-width: 420px; margin-inline: auto; width: 100%; }
  .entry { grid-template-columns: 1fr; gap: 2px; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 26px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.05rem; }
  .nav-row { gap: 10px; min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
