/* =========================================================================
   MCF2 Lab — site stylesheet
   Palette drawn from the lab's flow renders: deep navy, teal and amber.
   ========================================================================= */

:root {
  --navy-950: #071427;
  --navy-900: #0a1b33;
  --navy-800: #10284a;
  --navy-700: #183a66;
  --navy-600: #24518a;
  --teal: #38b6c9;
  --teal-600: #1f8fa1;
  --amber: #e9a83a;
  --amber-600: #b97a12;

  --ink: #0f1c2e;
  --text: #253246;
  --muted: #5d687a;
  --line: #e2e7ef;
  --line-strong: #cfd7e3;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --link: #1c5fb8;
  --link-hover: #0e3f82;

  --s1: #2a78d6;   /* chart series 1 */
  --s2: #eb6834;   /* chart series 2 */

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, .06), 0 2px 8px rgba(15, 28, 46, .05);
  --shadow: 0 2px 4px rgba(15, 28, 46, .05), 0 12px 32px rgba(15, 28, 46, .09);
  --shadow-lg: 0 8px 20px rgba(15, 28, 46, .10), 0 24px 60px rgba(15, 28, 46, .14);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
sup { line-height: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
.icon { flex: none; vertical-align: -0.2em; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(56, 182, 201, .18), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #d8e1ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head__lead { color: #b9c6d8; }

.eyebrow { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 .7rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow--light { color: var(--teal); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: .35em; }
.section-head__lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .98rem/1 var(--font-sans); padding: .9em 1.35em; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn--primary { background: var(--amber); color: var(--navy-950); box-shadow: 0 6px 18px rgba(233, 168, 58, .32); }
.btn--primary:hover { background: #f2b852; color: var(--navy-950); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(233, 168, 58, .4); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn--outline { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.btn--outline:hover { color: var(--ink); border-color: var(--ink); }
.btn--sm { font-size: .88rem; padding: .7em 1.1em; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, box-shadow .3s; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 700 1.22rem/1.1 var(--font-serif); letter-spacing: -.01em; }
.brand__name sup { font-size: .62em; vertical-align: .55em; }
.brand__sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: .5rem .7rem; font-size: .93rem; font-weight: 500; color: var(--text); text-decoration: none; border-radius: 8px; position: relative; transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.site-nav a.is-active { color: var(--ink); font-weight: 600; }
.site-nav a.is-active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--amber); }
.site-nav a.nav-cta { margin-left: 8px; background: var(--navy-800); color: #fff; padding: .55rem 1rem; border-radius: 999px; }
.site-nav a.nav-cta:hover { background: var(--navy-600); color: #fff; }
.site-nav a.nav-cta.is-active::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; border-radius: 8px; }
.nav-toggle__close { display: none; }

/* overlay header on the home hero */
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--overlay .brand, .site-header--overlay .brand:hover { color: #fff; }
.site-header--overlay .brand__sub { color: #a9b9d0; }
.site-header--overlay .site-nav a { color: #dbe4f1; }
.site-header--overlay .site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-header--overlay .site-nav a.nav-cta { background: var(--amber); color: var(--navy-950); }
.site-header--overlay .nav-toggle { color: #fff; }
.site-header--overlay.is-scrolled { background: rgba(10, 27, 51, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: rgba(255, 255, 255, .08); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a, .site-header--overlay .site-nav a { color: var(--text); padding: .8rem .6rem; font-size: 1.02rem; }
  .site-nav a.is-active::after { left: .6rem; right: auto; width: 24px; }
  .site-nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: block; }
  .nav-open .site-header--overlay { background: var(--navy-900); }
}

/* ---------- Home hero ---------- */
.hero { position: relative; color: #dbe4f1; padding: calc(var(--header-h) + 64px) 0 96px; overflow: hidden; background: var(--navy-900); }
.hero__bg { position: absolute; inset: 0; background:
  radial-gradient(900px 520px at 80% 20%, rgba(56, 182, 201, .22), transparent 60%),
  radial-gradient(700px 420px at 10% 110%, rgba(233, 168, 58, .14), transparent 60%),
  linear-gradient(165deg, #12305a 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin-bottom: .4em; }
.hero__lead { font-size: 1.18rem; line-height: 1.6; color: #c3d0e2; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__show { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: #132c51; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active img { transform: scale(1); }
.slide--contain { background: #fff; }
.slide--contain img { object-fit: contain; padding: 8% 6% 22%; }
.slide--fit img { object-fit: contain; padding: 0 0 18%; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 46px; font-size: .95rem; color: #fff; background: linear-gradient(to top, rgba(5, 14, 28, .88), transparent); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.slide-dots { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 8px; z-index: 2; }
.slide-dot { width: 28px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s, width .3s; }
.slide-dot.is-active { background: var(--amber); width: 44px; }
.slide-dot::before { content: ""; display: block; height: 20px; margin-top: -8px; }

.sponsor-pill { display: inline-block; font: 700 .7rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; padding: .45em .7em; border-radius: 6px; background: color-mix(in srgb, var(--accent, var(--navy-700)) 14%, #fff); color: color-mix(in srgb, var(--accent, var(--navy-700)) 75%, #000); white-space: nowrap; }
.sponsor-pill--light { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 2; margin-top: -1px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats__grid .stat:last-child { border-right: 0; }
.stat__value { font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__label { font-size: .86rem; color: var(--muted); }
.stat--light { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: left; padding: 22px; }

/* ---------- Theme cards (home) ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theme-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.theme-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--teal), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.theme-card:hover::before { transform: scaleX(1); }
.theme-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(56, 182, 201, .14), rgba(42, 120, 214, .12)); color: var(--navy-700); margin-bottom: 18px; }
.theme-card h3 { margin-bottom: .35em; }
.theme-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.theme-card__more { font-weight: 600; font-size: .9rem; color: var(--link); display: inline-flex; gap: 6px; align-items: center; }
.theme-card:hover .theme-card__more .icon { transform: translateX(4px); }
.theme-card__more .icon { transition: transform .25s var(--ease); }

/* ---------- Project cards (home) ---------- */
.project-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.project-card { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--text); }
.project-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__img img { transform: scale(1.06); }
.project-card__img--contain { background: #fff; border-bottom: 1px solid var(--line); }
.project-card__img--contain img { object-fit: contain; padding: 12px; }
.project-card__body { padding: 22px 24px 26px; border-top: 3px solid var(--accent); flex: 1; }
.project-card__sponsor { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5em; }
.project-card h3 { font-size: 1.12rem; margin-bottom: .45em; }
.project-card p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card[hidden] { display: none; }
.news-card__link { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.news-card__link:hover { color: var(--text); }
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__media--empty { display: grid; place-items: center; color: #fff; background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 18px 18px, radial-gradient(420px 220px at 85% 0%, rgba(56, 182, 201, .35), transparent 70%), linear-gradient(135deg, var(--navy-700), var(--navy-950)); }
.news-card__ph { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 .8rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #b9c6d8; transition: transform .6s var(--ease); }
.news-card__ph .icon { color: var(--amber); }
.news-card:hover .news-card__ph { transform: scale(1.06); }
.news-card__media img { object-position: 50% 20%; }
.news-card__body { padding: 20px 22px 24px; }
.news-card time { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.news-card h3 { font-size: 1.1rem; margin: .35em 0 .5em; }
.news-card p { font-size: .93rem; color: var(--muted); margin: 0; }
.badge { position: absolute; left: 14px; top: 14px; font: 600 .72rem/1 var(--font-sans); padding: .5em .75em; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.badge--graduation { background: #fff3d9; color: #7a4a00; }
.badge--conference { background: #e3efff; color: #123f80; }
.badge--scholarship-and-awards { background: #e6f7ef; color: #0c5a39; }
.badge--outreach-activities, .badge--seminar { background: #f0eaff; color: #45318f; }

/* ---------- PI teaser ---------- */
.pi-teaser { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.pi-teaser__photo { width: 220px; height: 232px; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .35); }
.pi-teaser p { color: #c3d0e2; font-size: 1.05rem; max-width: 52em; }

/* ---------- Funders & CTA ---------- */
.funders__label { text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.funders { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.funders li { font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem; color: var(--navy-700); padding: .55em 1.1em; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 72px 0 64px; color: #d8e1ee; overflow: hidden; background:
  radial-gradient(800px 360px at 90% -20%, rgba(56, 182, 201, .25), transparent 60%),
  radial-gradient(600px 300px at -10% 120%, rgba(233, 168, 58, .16), transparent 60%),
  linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to right, transparent, #000 70%); -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3em; max-width: 22em; }
.page-hero .eyebrow { color: var(--teal); }
.page-hero .lead { font-size: 1.16rem; color: #c3d0e2; max-width: 48em; margin: 0; }
.page-hero--post h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.post-meta { color: #b9c6d8; margin: 0; font-size: .95rem; }

/* ---------- Sub-navigation ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 14px; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover, .subnav a.is-current { color: var(--ink); border-color: var(--amber); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 28px 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.post-body p:has(> img) { margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav__link { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.post-nav__link span { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.post-nav__link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); color: var(--ink); }
.post-nav__link--next { text-align: right; grid-column: 2; }

/* ---------- Research: themes ---------- */
.theme-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 48px; }
.theme-row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.theme-row__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--navy-800); color: var(--amber); }
.theme-row p { color: var(--text); font-size: 1rem; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-size: .78rem; font-weight: 500; color: var(--navy-700); background: #eef3fa; border-radius: 999px; padding: .3em .8em; }

/* ---------- Research: funded projects ---------- */
.project-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 48px; }
.project-jump a { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); text-decoration: none; color: var(--text); font-size: .88rem; line-height: 1.4; transition: box-shadow .2s, transform .2s var(--ease); }
.project-jump a:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.project-stack { display: grid; gap: 40px; }
.project { display: grid; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 64px); }
.project--split { grid-template-columns: 1fr 1fr; }
.project--split .project__media { order: 2; border-left: 4px solid var(--accent); }
.project--wide { grid-template-columns: 1fr; }
.project--wide .project__media { border-bottom: 4px solid var(--accent); }
.project--wide .project__media img, .project--wide .project__media video { max-height: 620px; object-fit: contain; margin: 0 auto; }
.project__media { background: var(--media-bg, var(--navy-900)); display: flex; flex-direction: column; justify-content: center; }
.project__media--contain { background: #fff; }
.project--wide .project__media--contain { border-bottom-color: var(--accent); }
.project__media img, .project__media video { width: 100%; }
.project__media--contain img { padding: 24px; }
.project__caption { font-size: .84rem; color: #aebbd0; padding: 14px 24px 18px; margin: 0; line-height: 1.5; }
.project__media--contain .project__caption { color: var(--muted); }
.zoomable { display: block; cursor: zoom-in; position: relative; overflow: hidden; }
.zoomable img { transition: transform .6s var(--ease); }
.zoomable:hover img { transform: scale(1.03); }
.project__body { padding: 36px 40px 40px; }
.project--wide .project__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.project--wide .project__side { padding-top: 6px; }
.project__summary { margin-bottom: 18px; }
.project__sponsor { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project__title { font-size: clamp(1.35rem, 2.1vw, 1.7rem); margin-bottom: .6em; }
.project__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project__meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project__meta dd { margin: 0; font-size: .9rem; color: var(--ink); font-weight: 500; }
.project__also { font-size: .93rem; background: #f6f4ff; color: #3e3196; padding: 10px 14px; border-radius: var(--radius-sm); }
.project__related { margin: 0 0 16px; }
.project__related-h { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.project__related ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.project .tag-list { margin-bottom: 20px; }
.ack { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 18px; border-left: 3px solid var(--accent, var(--navy-600)); }
.ack p { margin: 0; font-size: .88rem; color: var(--text); }
.ack .ack__h { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.ack--wide { margin-top: 40px; }

.video-frame { position: relative; }
.video-toggle { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(7, 20, 39, .7); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.video-toggle:hover { background: rgba(7, 20, 39, .9); }
.video-toggle__play { display: none; }
.video-toggle.is-paused .video-toggle__play { display: block; }
.video-toggle.is-paused .video-toggle__pause { display: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item--contain { background: #fff; border: 1px solid var(--line); }
.gallery__item--contain img { object-fit: contain; padding: 10px; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: .86rem; font-weight: 500; background: linear-gradient(to top, rgba(5, 14, 28, .85), transparent); transform: translateY(6px); opacity: .92; transition: transform .3s var(--ease), opacity .3s; }
.gallery__item:hover .gallery__cap { transform: none; opacity: 1; }
.gallery__play { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--navy-950); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(233, 168, 58, .2), rgba(233, 168, 58, .08)); color: var(--amber-600); margin-bottom: 16px; }
.card__icon--lg { width: 64px; height: 64px; border-radius: 16px; margin: 0; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.card__links { font-size: .9rem; font-weight: 500; }
.card__links a { text-decoration: none; }

/* ---------- Funding list ---------- */
.funding-list { list-style: none; padding: 0; margin: 0; }
.funding-year { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.funding-year__label { font: 700 1.6rem/1 var(--font-serif); color: var(--navy-700); }
.funding-year ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.funding-year li { display: grid; grid-template-columns: minmax(180px, 280px) 1fr auto; gap: 16px; align-items: baseline; }
.funding__sponsor { font-weight: 600; color: var(--ink); font-size: .95rem; }
.funding__title { color: var(--text); font-size: .95rem; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; background: #eef3fa; color: var(--navy-700); white-space: nowrap; text-decoration: none; }
.chip--edu { background: #f0eaff; color: #45318f; }
.chip--student { background: #fff3d9; color: #7a4a00; }
.chip--topic { background: #eef3fa; color: var(--navy-700); }
.chip--link { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.chip--link:hover { border-color: var(--line-strong); color: var(--link); }

/* ---------- Filters ---------- */
.filters { margin-bottom: 36px; display: grid; gap: 12px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-btn { font: 500 .9rem/1 var(--font-sans); padding: .7em 1.1em; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter-btn:hover { border-color: var(--navy-600); }
.filter-btn.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filter-btn--soft.is-active { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
.filters__count { margin: 0; font-size: .88rem; color: var(--muted); }
.select select, .search input { font: 400 .95rem var(--font-sans); padding: .65em .9em; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text); }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding-left: 38px; }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--navy-700); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Publications ---------- */
.pub-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.pub-group { margin-bottom: 48px; }
.pub-group[hidden] { display: none; }
.pub-group__h { font-size: 1.45rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pub[hidden] { display: none; }
.pub__id { font: 600 .82rem/1.9 var(--font-sans); color: var(--muted); }
.pub__body p { margin: 0 0 4px; }
.pub__title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pub__title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--amber), var(--amber)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.pub__title a:hover { background-size: 100% 2px; color: var(--ink); }
.pub__authors { font-size: .94rem; color: var(--text); }
.pub__authors .me { color: var(--ink); }
.stu { font: 700 .62rem/1 var(--font-sans); color: #7a4a00; background: #fff3d9; padding: 2px 4px; border-radius: 4px; margin-left: 1px; vertical-align: .5em; }
.stu--g { color: #123f80; background: #e3efff; }
.pub__venue { font-size: .92rem; color: var(--muted); }
.pub__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }

/* ---------- Charts ---------- */
.viz { margin: 0; background: #fcfcfb; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 16px; box-shadow: var(--shadow-sm); }
.viz__title { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 8px; }
.viz__legend { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.viz__legend span { display: inline-flex; gap: 6px; align-items: center; }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key--s1 { background: var(--s1); }
.key--s2 { background: var(--s2); }
.viz__plot { position: relative; width: 100%; }
.viz__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz__plot .axis text { font: 12px var(--font-sans); fill: #52514e; }
.viz__plot .grid line { stroke: #e6e8ec; stroke-width: 1; }
.viz__plot .hit { fill: transparent; cursor: pointer; }
.viz-tip { position: absolute; pointer-events: none; z-index: 5; background: #0f1c2e; color: #fff; font-size: .82rem; line-height: 1.4; padding: 8px 10px; border-radius: 8px; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.viz-tip.is-on { opacity: 1; }
.viz-tip b { font-weight: 600; }
.viz__table { margin-top: 10px; font-size: .88rem; }
.viz__table summary { cursor: pointer; color: var(--link); font-weight: 500; padding: 6px 0; }
.viz__table table { border-collapse: collapse; margin-top: 8px; min-width: 280px; }
.viz__table th, .viz__table td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); }
.viz__table td:last-child, .viz__table th:last-child { text-align: right; }

/* ---------- People ---------- */
.pi-card { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; padding: 32px; border-radius: 20px; background: linear-gradient(135deg, #fff, #f3f7fc); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 80px; }
.pi-card img { width: 180px; height: 190px; object-fit: cover; border-radius: 16px; }
.pi-card h2 { margin-bottom: .1em; }
.pi-card__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.member h3 { font-size: 1.06rem; margin: 0 0 2px; }
.member__role { font-size: .88rem; font-weight: 600; color: var(--teal-600); margin: 0; }
.member__meta { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.member__topic { font-size: .86rem; color: var(--text); margin: 8px 0 0; font-style: italic; }
.avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.avatar--initials { display: grid; place-items: center; font: 700 1rem/1 var(--font-sans); color: #fff; background: linear-gradient(135deg, var(--navy-600), var(--teal-600)); letter-spacing: .02em; }
.avatar--plus { display: grid; place-items: center; font-size: 1.6rem; color: var(--navy-700); border: 2px dashed var(--line-strong); }
.member--join { border-style: dashed; background: transparent; box-shadow: none; }
.destinations { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.destinations li { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: #fff; padding: .55em 1.1em; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s; }
.destinations li:hover { background: rgba(233, 168, 58, .16); border-color: rgba(233, 168, 58, .5); }
.alumni-group { margin-bottom: 52px; }
.alumni-group[hidden] { display: none; }
.alumni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.alum { position: relative; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.alum__year { position: absolute; top: 18px; right: 20px; margin: 0; font: 700 .82rem/1 var(--font-sans); color: var(--muted); }
.alum h3 { font-size: 1.05rem; margin: 0 0 2px; padding-right: 48px; }
.alum__degree { font-size: .85rem; color: var(--teal-600); font-weight: 600; margin: 0 0 8px; }
.alum__thesis { font-size: .9rem; color: var(--text); margin: 0 0 8px; }
.alum__next { font-size: .86rem; font-weight: 600; color: var(--amber-600); margin: 0; display: flex; gap: 6px; align-items: center; }

/* ---------- PI page ---------- */
.pi-layout { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.pi-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.pi-aside img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 20px; }
.pi-contact { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; font-size: .93rem; }
.pi-contact li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.pi-aside__h { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pi-main .prose { max-width: none; font-size: 1.04rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(to bottom, var(--line-strong), var(--teal) 70%, var(--amber)); }
.timeline__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 18px; }
.timeline__item::before { content: ""; position: absolute; left: 50%; top: 22px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-600); z-index: 1; }
.timeline__year { grid-column: 1; text-align: right; font: 700 1.6rem/1 var(--font-serif); color: var(--navy-700); padding-top: 14px; }
.timeline__card { grid-column: 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm); }
.timeline__item:nth-child(even) .timeline__year { grid-column: 2; grid-row: 1; text-align: left; }
.timeline__item:nth-child(even) .timeline__card { grid-column: 1; grid-row: 1; }
.timeline__card h3 { font-size: 1.08rem; margin: 0 0 .25em; }
.timeline__card p { margin: 0; font-size: .93rem; color: var(--muted); }
.timeline__item--now::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(233, 168, 58, .25); }
.timeline__item--now .timeline__card { border-color: rgba(233, 168, 58, .6); box-shadow: 0 10px 30px rgba(233, 168, 58, .18); }
.timeline__item--next::before { background: var(--navy-800); border-color: var(--navy-800); }
.timeline__item--next .timeline__card { background: var(--navy-800); border-color: var(--navy-800); }
.timeline__item--next .timeline__card h3 { color: #fff; }
.timeline__item--next .timeline__card p { color: #c3d0e2; }
.timeline__item--next .timeline__year { color: var(--amber-600); }

.cv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.cv-block h2 { font-size: 1.35rem; display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cv-block h2 .icon { color: var(--teal-600); }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cv-list__when { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }

/* ---------- Teaching ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.split--top { align-items: start; margin-bottom: 0; }
.pull-quote { margin: 0; padding: 30px 32px; border-radius: 18px; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); color: #e6ecf5; position: relative; box-shadow: var(--shadow-lg); }
.pull-quote .icon { color: var(--amber); margin-bottom: 10px; }
.pull-quote p { font: 500 1.18rem/1.55 var(--font-serif); font-style: italic; margin-bottom: 14px; }
.pull-quote cite { font-style: normal; font-size: .85rem; color: #9fb0c8; }
.card--practice .card__icon { background: linear-gradient(135deg, rgba(56, 182, 201, .2), rgba(56, 182, 201, .06)); color: var(--teal-600); }
.access-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.access { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.access__n { font: 700 2rem/1 var(--font-serif); color: var(--amber); display: block; margin-bottom: 12px; }
.access h3 { font-size: 1.08rem; }
.access p { font-size: .93rem; color: var(--muted); margin: 0; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.course { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course__head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.course__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--navy-800); color: var(--amber); }
.course__code { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 2px; }
.course h3 { margin: 0; font-size: 1.15rem; }
.course > p { font-size: .94rem; color: var(--muted); flex: 1; }
.course__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.course__facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.course__facts dd { margin: 0; font: 700 1.15rem/1.3 var(--font-serif); color: var(--ink); }
.course__facts dd .muted { font: 400 .8rem var(--font-sans); }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote-card { margin: 0; padding: 26px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.quote-card .icon { color: var(--teal-600); }
.quote-card p { font: 500 1.05rem/1.55 var(--font-serif); font-style: italic; color: var(--ink); margin: 8px 0 12px; }
.quote-card cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(56, 182, 201, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8fa1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check-list--2col { grid-template-columns: repeat(2, 1fr); }
.mini-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-strong); }
.mini-timeline li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 0 0 18px 20px; position: relative; font-size: .93rem; }
.mini-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--teal-600); }
.mini-timeline__year { font-weight: 700; color: var(--navy-700); }

/* ---------- Facilities ---------- */
.facility { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); max-width: 900px; }
.facility h2 { font-size: 1.6rem; }
.facility p:last-child { margin: 0; }
.spec-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 28px 0 12px; }
.spec { padding: 18px; border-radius: var(--radius-sm); background: var(--navy-800); color: #c3d0e2; }
.spec__v { display: block; font: 700 1.4rem/1.2 var(--font-serif); color: #fff; font-variant-numeric: tabular-nums; }
.spec__l { font-size: .8rem; }

/* ---------- Join ---------- */
.apply-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.apply-card h2 { font-size: 1.6rem; }
.subject-line { display: flex; align-items: center; gap: 10px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .95rem; background: var(--bg-alt); padding: 10px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); color: var(--ink); }
.subject-line span { font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.num-list { padding-left: 1.3em; font-size: .94rem; margin: 0 0 22px; }
.num-list li { margin-bottom: 4px; }
.empty-card { padding: 32px; border-radius: var(--radius); border: 2px dashed var(--line-strong); color: var(--muted); max-width: 760px; }
.empty-card p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0c8; padding: 64px 0 28px; font-size: .93rem; }
.site-footer a { color: #dbe4f1; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand img { border-radius: 10px; margin-bottom: 14px; }
.footer-brand__name { font: 600 1.15rem/1.3 var(--font-serif); color: #fff; margin-bottom: 6px; }
.footer-muted { color: #9fb0c8; }
.footer-h { font: 700 .74rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-social { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.footer-social a:hover { background: rgba(233, 168, 58, .18); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(5, 12, 24, .92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1400px, 92vw); max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox__media img, .lightbox__media video { max-width: 100%; max-height: 80vh; width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.lightbox figcaption { color: #c3d0e2; font-size: .95rem; margin-top: 14px; max-width: 900px; text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide img { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .project-jump { grid-template-columns: repeat(3, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 36px) 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__show { aspect-ratio: 4 / 3; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid .stat:nth-child(2) { border-right: 0; }
  .stats__grid .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .theme-grid, .news-grid, .card-grid--3, .course-grid, .alumni-grid { grid-template-columns: repeat(2, 1fr); }
  .project-cards { grid-template-columns: repeat(2, 1fr); }
  .project-card { grid-column: span 1; }
  .project--split, .project--wide .project__body { grid-template-columns: 1fr; }
  .project--split .project__media { order: 0; border-left: 0; border-bottom: 4px solid var(--accent); }
  .project--wide .project__body { gap: 8px; }
  .theme-list, .cv-grid, .split, .pi-layout { grid-template-columns: 1fr; }
  .pi-aside, .apply-card { position: static; }
  .pi-aside img { max-width: 320px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pub-summary { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pi-teaser { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { left: 8px; }
  .timeline__item, .timeline__item:nth-child(even) { grid-template-columns: 1fr; gap: 6px; padding-left: 36px; }
  .timeline__item::before { left: 8px; top: 4px; }
  .timeline__year, .timeline__item:nth-child(even) .timeline__year { grid-column: 1; grid-row: 1; text-align: left; padding-top: 0; font-size: 1.3rem; }
  .timeline__card, .timeline__item:nth-child(even) .timeline__card { grid-column: 1; grid-row: 2; }
  .funding-year { grid-template-columns: 1fr; gap: 10px; }
  .funding-year li { grid-template-columns: 1fr; gap: 2px; }
  .funding-year .chip { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .brand__sub { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid .stat { border-right: 0 !important; border-top: 1px solid var(--line); }
  .stats__grid .stat:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .stats__grid .stat:first-child, .stats__grid .stat:nth-child(2) { border-top: 0; }
  .theme-grid, .news-grid, .card-grid--2, .card-grid--3, .course-grid, .alumni-grid, .member-grid, .access-grid, .quote-grid, .project-cards { grid-template-columns: 1fr; }
  .project-jump { grid-template-columns: 1fr 1fr; }
  .project__body { padding: 26px 22px 28px; }
  .project__meta { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: span 1; }
  .pi-card { grid-template-columns: 1fr; padding: 24px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 2px; }
  .check-list--2col { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { grid-column: 1; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .subnav, .filters, .hero__show, .video-toggle { display: none !important; }
  .page-hero, .hero, .section--dark { background: none !important; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* gallery: figures on white get a solid caption bar */
.gallery__item--contain img { height: calc(100% - 38px); }
.gallery__item--contain .gallery__cap { background: var(--navy-800); padding: 10px 14px; transform: none; opacity: 1; }

.pi-links { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.pi-links a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500; background: #fff; transition: border-color .2s, box-shadow .2s; }
.pi-links a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); color: var(--ink); }
.pi-links .icon { color: var(--teal-600); }
.project__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pub-summary--2 { grid-template-columns: repeat(2, minmax(0, 280px)); }
.card-grid--2x { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .pub-summary--2 { grid-template-columns: 1fr 1fr; } .card-grid--2x { grid-template-columns: 1fr; } }

/* funder logos */
.funder-logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.funder-logos a { display: flex; align-items: center; justify-content: center; height: 88px; padding: 6px; transition: transform .3s var(--ease); }
.funder-logos a:hover { transform: translateY(-3px); }
.funder-logos img { max-height: 80px; max-width: 200px; width: auto; height: auto; }
.project__logo { height: 30px; width: auto; max-width: 110px; object-fit: contain; }
@media (max-width: 640px) { .funder-logos { gap: 18px 28px; } .funder-logos a { height: 56px; } .funder-logos img { max-height: 46px; max-width: 130px; } }
