/* =====================================================================
   Hasan Lab website stylesheet
   Colours and fonts are set once here in :root; change them to restyle.
   ===================================================================== */

:root {
  --ink: #0b1323;
  --ink-2: #16203a;
  --ink-3: #24304f;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #5a6478;
  --line: #e6e1d7;
  --crimson: #b8233f;
  --crimson-soft: #f8e6ea;
  --teal: #0e8a8c;
  --teal-soft: #e0f2f1;
  --violet: #6c5ce7;
  --gold: #b7862b;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 19, 35, .04), 0 8px 24px rgba(11, 19, 35, .06);
  --shadow-lg: 0 2px 4px rgba(11, 19, 35, .05), 0 22px 48px rgba(11, 19, 35, .12);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8f1a30; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #d6dbe6; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--ink .eyebrow { color: #ff8fa3; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); }
.section-head p { color: var(--muted); font-size: 18px; }
.section--ink .section-head p { color: #aab3c5; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: #9e1d35; color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .nav-cta { margin-left: 8px; background: var(--crimson); color: #fff; padding: 9px 16px; border-radius: 999px; }
.nav .nav-cta:hover { background: #9e1d35; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

.site-header.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-color: var(--line); }
.site-header.is-solid .brand { color: var(--ink); }
.site-header.is-solid .nav a { color: var(--muted); }
.site-header.is-solid .nav a:hover, .site-header.is-solid .nav a.is-active { color: var(--ink); background: rgba(11, 19, 35, .05); }
.site-header.is-solid .nav .nav-cta { color: #fff; background: var(--crimson); }
.site-header.is-solid .nav-toggle { color: var(--ink); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: 8px var(--gutter) 20px; box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a, .site-header .nav a { color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:hover { background: none; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border: 0; border-radius: 999px; color: #fff; }
  body.menu-open .site-header { background: var(--surface); }
  body.menu-open .site-header .brand, body.menu-open .site-header .nav-toggle { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(184, 35, 63, .28), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(14, 138, 140, .22), transparent 60%),
    linear-gradient(180deg, #0a1120 0%, var(--ink) 100%);
  color: #cfd6e4; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 48px) 0 44px;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 17, 32, .82) 0%, rgba(10, 17, 32, .35) 55%, rgba(10, 17, 32, 0) 100%);
}
.hero-inner { max-width: 780px; }
.hero .eyebrow { color: #ff9aac; }
.hero h1 {
  color: #fff; font-size: clamp(40px, 6.4vw, 76px); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: #ffb4c1; }
.hero-lead { font-size: clamp(17px, 1.6vw, 19.5px); max-width: 640px; color: #c3cbdb; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-affil {
  width: 100%; margin-top: clamp(48px, 9vh, 96px); font-size: 13px; letter-spacing: .04em; color: #8e98ad;
}
@media (max-width: 600px) {
  .hero .hero-affil .container { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero-affil span + span::before { display: none; }
}
.hero-affil .container { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.hero-affil span + span::before { content: "·"; margin-right: 18px; opacity: .6; }


/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-statement { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; color: var(--ink); font-weight: 400; letter-spacing: -.01em; }
.about-statement strong { font-weight: 500; color: var(--crimson); }
.about-body { color: var(--muted); margin-top: 22px; }
.tag-group + .tag-group { margin-top: 26px; }
.tag-group h4 { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.tag--disease { background: var(--crimson-soft); border-color: transparent; color: #7d1428; font-weight: 500; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Research themes ---------- */
.themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.theme {
  grid-column: span 2; position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px 28px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.theme:nth-child(4), .theme:nth-child(5) { grid-column: span 3; }
.theme:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; background: var(--surface); }
.theme-num { position: absolute; top: 20px; right: 24px; font-family: var(--font-display); font-size: 15px; color: #b4ad9f; }
.theme-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--ink); color: #fff;
}
.theme:nth-child(2) .theme-icon { background: var(--crimson); }
.theme:nth-child(3) .theme-icon { background: var(--teal); }
.theme:nth-child(4) .theme-icon { background: var(--violet); }
.theme:nth-child(5) .theme-icon { background: var(--gold); }
.theme-icon svg { width: 26px; height: 26px; }
.theme h3 { font-size: 22px; margin-bottom: 12px; }
.theme p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 960px) { .themes { grid-template-columns: 1fr 1fr; } .theme, .theme:nth-child(4), .theme:nth-child(5) { grid-column: span 1; } .theme:nth-child(5) { grid-column: span 2; } }
@media (max-width: 640px) { .themes { grid-template-columns: 1fr; } .theme:nth-child(5) { grid-column: span 1; } }

/* ---------- Impact ---------- */
.impact { position: relative; overflow: hidden; }
.impact::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 35, 63, .22), transparent 60%); pointer-events: none;
}
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; position: relative; }
.impact-card {
  background: linear-gradient(160deg, var(--ink-2), #111a2f); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px);
}
.impact-label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.impact-label--teal { background: rgba(14, 138, 140, .18); color: #5fd6d2; }
.impact-label--crimson { background: rgba(184, 35, 63, .2); color: #ff9aac; }
.impact-card h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px; }
.impact-card p { color: #aab3c5; font-size: 16px; }
.impact-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.impact-metric strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 26px; color: #fff; line-height: 1.1; }
.impact-metric span { font-size: 13px; color: #8e98ad; line-height: 1.35; display: block; margin-top: 4px; }
.pipeline { display: flex; gap: 6px; margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pipeline-step { flex: 1; text-align: center; font-size: 12.5px; color: #8e98ad; }
.pipeline-step i { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin-bottom: 10px; }
.pipeline-step.done i { background: linear-gradient(90deg, #ff6f8a, var(--crimson)); }
.pipeline-step.next i { background: repeating-linear-gradient(90deg, rgba(255, 111, 138, .55) 0 6px, transparent 6px 10px); }
.pipeline-step.done, .pipeline-step.next { color: #e8ecf3; }
.summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; position: relative; }
.summary-item h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.summary-item h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff6f8a; }
.summary-item p { font-size: 14.5px; color: #8e98ad; margin: 0; }
@media (max-width: 860px) { .impact-grid { grid-template-columns: 1fr; } .summary-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .summary-row { grid-template-columns: 1fr; } .impact-metrics { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- PI ---------- */
.pi-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.pi-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--ink-2), var(--ink)); box-shadow: var(--shadow-lg);
}
.pi-photo img { width: 100%; height: 100%; object-fit: cover; }
.pi-photo .initials { font-size: 96px; }
.pi-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.pi-contact { margin-top: 20px; display: grid; gap: 10px; font-size: 15px; }
.pi-contact a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.pi-contact a:hover { color: var(--crimson); }
.pi-contact svg { width: 18px; height: 18px; color: var(--crimson); flex: none; }
.pi-name { font-size: clamp(34px, 4vw, 46px); margin-bottom: 6px; }
.pi-title { font-size: 17px; color: var(--crimson); font-weight: 500; margin-bottom: 24px; }
.pi-bio p { color: #3b4458; }
.pi-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 8px; }
.pi-fact { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; }
.pi-fact h4 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pi-fact p { margin: 0; font-size: 15px; color: var(--ink); }
.pi-tabs { margin-top: 36px; }
.tablist { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: 0; padding: 12px 14px; font: 500 15px var(--font-body); color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--crimson); }
.tab:hover { color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 124px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-family: var(--font-display); color: var(--crimson); font-size: 16px; font-variant-numeric: lining-nums tabular-nums; }
.timeline .what { color: var(--ink); font-size: 15.5px; }
.timeline .what small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.callout {
  margin-top: 22px; padding: 18px 22px; border-radius: var(--radius); background: var(--teal-soft); color: #0b4f50; font-size: 15px;
  border-left: 3px solid var(--teal);
}
@media (max-width: 900px) { .pi-grid { grid-template-columns: 1fr; } .pi-aside { position: static; max-width: 340px; } }
@media (max-width: 560px) { .pi-facts { grid-template-columns: 1fr; } .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.person { text-align: left; }
.person-photo {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px; position: relative;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
  transition: transform .3s ease, box-shadow .3s ease;
}
.person:hover .person-photo { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.person-photo img, .pi-photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.person:nth-child(3n+2) .person-photo { background: linear-gradient(150deg, #c03a55, #6e1426); }
.person:nth-child(3n+3) .person-photo { background: linear-gradient(150deg, #179c9e, #0a4f50); }
.initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 56px; color: rgba(255, 255, 255, .9); letter-spacing: .02em;
}
.person h3 { font-size: 19px; margin-bottom: 2px; }
.person .role { font-size: 14.5px; color: var(--crimson); font-weight: 500; }
.person .topic { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.person .links { margin-top: 8px; font-size: 14px; display: flex; gap: 12px; align-items: center; }
.li-link { display: inline-flex; align-items: center; gap: 6px; color: #0a66c2; text-decoration: none; font-weight: 500; }
.li-link svg { width: 16px; height: 16px; }
.li-link:hover { text-decoration: underline; color: #004182; }
.li-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 8px; vertical-align: -4px; border-radius: 5px; color: #0a66c2; transition: background .2s; }
.li-icon svg { width: 15px; height: 15px; }
.li-icon:hover { background: rgba(10, 102, 194, .1); color: #004182; }
.subhead { font-size: 26px; margin: 64px 0 22px; display: flex; align-items: baseline; gap: 12px; }
.subhead .count { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 500; }
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.alum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.alum-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 500 16px var(--font-display); position: relative; overflow: hidden; }
.alum-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* "Life in the lab" entry card (photos themselves open only in the pop-up) */
.life-card {
  margin-top: clamp(40px, 6vw, 64px); display: flex; align-items: center; gap: 20px; padding: 22px 26px;
  border-radius: var(--radius-lg); text-decoration: none; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(420px 180px at 100% 0%, rgba(184, 35, 63, .45), transparent 70%), linear-gradient(135deg, var(--ink-2), var(--ink));
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.life-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.life-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.life-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #ffb4c1; }
.life-icon svg { width: 26px; height: 26px; }
.life-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.life-title { font-family: var(--font-display); font-size: 23px; line-height: 1.2; }
.life-sub { color: #aab3c5; font-size: 14.5px; }
.life-go {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--crimson); font-weight: 600; font-size: 14.5px; transition: background .2s;
}
.life-card:hover .life-go { background: #9e1d35; }
.life-go svg { width: 15px; height: 15px; }
@media (max-width: 600px) {
  .life-card { flex-wrap: wrap; padding: 20px; }
  .life-go { margin-left: 0; width: 100%; justify-content: center; }
}

/* Pop-up: photo grid + single-photo viewer */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(6, 10, 20, .97); animation: lb-in .2s ease; color: #fff;
}
.lightbox.is-viewing { overflow: hidden; }
.lightbox[hidden], .lightbox [hidden] { display: none !important; }
@keyframes lb-in { from { opacity: 0; } }
.lb-head {
  position: sticky; top: 0; z-index: 2; height: 72px; display: flex; align-items: center; gap: 16px;
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: rgba(6, 10, 20, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.lb-titles { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.lb-titles h2 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); margin: 0; white-space: nowrap; }
.lb-sub { color: #8e98ad; font-size: 14px; white-space: nowrap; }
.lb-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: 500 14px var(--font-body);
}
.lb-back:hover { background: rgba(255, 255, 255, .14); }
.lb-back svg { width: 18px; height: 18px; }
.lb-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); flex: none;
  background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:focus-visible, .lb-back:focus-visible, .lb-thumb:focus-visible { outline: 2px solid #2cc3c4; outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { margin-left: auto; }
.lb-grid {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 56px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.lb-thumb {
  display: block; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: #111a2c; position: relative;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, opacity .3s; opacity: .92; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.lb-thumb:hover img { transform: scale(1.04); opacity: 1; }
.lb-view { position: fixed; inset: 72px 0 0 0; display: grid; place-items: center; padding: 20px 80px 28px; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-frame { position: relative; line-height: 0; }
.lb-img {
  max-width: min(1400px, calc(100vw - 160px)); max-height: calc(100vh - 72px - 100px); width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; pointer-events: none;
}
.lb-shield { position: absolute; inset: 0; } /* sits over the photo so "Save image" isn't offered */
.lb-caption { color: #aab3c5; font-size: 14px; letter-spacing: .04em; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
@media (max-width: 640px) {
  .lb-head { height: 64px; gap: 10px; }
  .lb-view { inset: 64px 0 0 0; padding: 12px 12px 88px; }
  .lb-img { max-width: calc(100vw - 24px); max-height: calc(100vh - 64px - 150px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 58px); } .lb-next { right: calc(50% - 58px); }
  .lb-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; }
  .lightbox.is-viewing .lb-titles { display: none; }
}
@media print { .lightbox, .life-card { display: none !important; } }
.research-map { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 760px; text-align: center; }
.research-map a { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .25s; }
.research-map a:hover { box-shadow: var(--shadow-lg); }
.research-map img { display: block; width: 100%; height: auto; }
.research-map figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.alum h4 { font-family: var(--font-body); font-size: 16px; font-weight: 600; margin: 0 0 2px; }
.alum .meta { font-size: 13.5px; color: var(--muted); }
.alum .now { font-size: 14px; color: var(--ink); margin-top: 8px; display: flex; gap: 6px; }
.alum .now::before { content: "→"; color: var(--teal); font-weight: 600; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 0 6px 8px 0; color: var(--ink); }
.chip small { color: var(--teal); font-size: 12.5px; }
@media (max-width: 760px) { .alumni-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .people-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .person h3 { font-size: 16.5px; } .person .role { font-size: 13px; } .initials { font-size: 40px; } }

/* ---------- Projects ---------- */
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 8px 15px; border-radius: 999px;
  font: 500 14px var(--font-body); cursor: pointer; transition: all .2s;
}
.pill:hover { color: var(--ink); border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.projects { display: grid; gap: 14px; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 130px 1fr; overflow: hidden; transition: box-shadow .25s, border-color .25s;
}
.project:hover { box-shadow: var(--shadow); border-color: #d9d3c6; }
.project-years { padding: 24px 20px; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.project-years strong { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--ink); line-height: 1.15; font-variant-numeric: lining-nums; }
.status { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #ece8df; color: var(--muted); }
.status--ongoing { background: var(--teal-soft); color: #0b6b6d; }
.status--ongoing::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 6px; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.project-body { padding: 22px 26px; }
.project-body h3 { font-family: var(--font-body); font-size: 17.5px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.project-meta b { color: var(--ink); font-weight: 500; }
.project details { margin-top: 12px; }
.project summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--crimson); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.project summary::-webkit-details-marker { display: none; }
.project summary::after { content: "+"; font-size: 17px; line-height: 1; }
.project details[open] summary::after { content: "–"; }
.project details p { margin: 10px 0 0; font-size: 15px; color: #3b4458; }
.disease-dot { display: inline-flex; align-items: center; gap: 6px; }
.disease-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--muted)); }
@media (max-width: 620px) {
  .project { grid-template-columns: 1fr; }
  .project-years { flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .project-body { padding: 18px 20px; }
}

/* ---------- Publications (shared) ---------- */
.journals {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.journals-track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; }
.journals-track span { font-family: var(--font-display); font-style: italic; font-size: 22px; color: #8a8374; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; }
.pub:first-child { border-top: 1px solid var(--line); }
.pub-title { font-family: var(--font-display); font-size: 19.5px; line-height: 1.35; color: var(--ink); margin: 0 0 6px; font-weight: 500; }
.pub-title a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--crimson), var(--crimson)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.pub-title a:hover { background-size: 100% 1px; color: var(--ink); }
.pub-authors { font-size: 14.5px; color: var(--muted); margin: 0 0 4px; }
.pub-authors b { color: var(--ink); font-weight: 600; }
.pub-venue { font-size: 14.5px; color: var(--ink); margin: 0; }
.pub-venue i { font-weight: 500; }
.pub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 96px; }
.badge { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: #ece8df; color: var(--muted); }
.badge--Original { background: var(--crimson-soft); color: #7d1428; }
.badge--Review { background: var(--teal-soft); color: #0b5c5e; }
.badge--Editorial { background: #ece8fb; color: #4a3db0; }
.pub-side a { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.pub-year { font-family: var(--font-display); color: var(--crimson); font-size: 15px; }
@media (max-width: 620px) { .pub { grid-template-columns: 1fr; } .pub-side { flex-direction: row; align-items: center; justify-content: flex-start; } }
.center { text-align: center; }
.more-row { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- Join ---------- */
.join {
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(184, 35, 63, .45), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(14, 138, 140, .35), transparent 70%),
    var(--ink);
  color: #c3cbdb; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.join h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); }
.join p { margin: 0; }
.join-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.join-actions small { color: #8e98ad; font-size: 13.5px; }
@media (max-width: 820px) { .join { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contact-card h3 { font-size: 21px; margin-bottom: 4px; }
.contact-card .muted { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; color: var(--crimson); flex: none; margin-top: 3px; }
.contact-list a { color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--crimson); text-decoration: underline; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #8e98ad; padding: 64px 0 32px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer .brand { margin-bottom: 16px; }
.site-footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #cfd6e4; font-weight: 600; margin-bottom: 14px; }
.funders { display: flex; flex-wrap: wrap; gap: 8px; }
.funders span { border: 1px solid rgba(255, 255, 255, .12); padding: 7px 12px; border-radius: 8px; color: #cfd6e4; font-size: 13.5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13.5px; }
.site-footer a { color: #cfd6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Publications page ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(184, 35, 63, .3), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(14, 138, 140, .22), transparent 60%),
    var(--ink);
  color: #c3cbdb; padding: calc(var(--header-h) + 64px) 0 64px;
}
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 60px); font-weight: 400; letter-spacing: -.02em; }
.page-hero p { max-width: 640px; font-size: 18px; margin: 0; }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20; background: rgba(247, 245, 240, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 16px 0;
}
.toolbar .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { position: relative; flex: 1 1 280px; }
.search input {
  width: 100%; padding: 12px 14px 12px 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: 15px var(--font-body); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 138, 140, .15); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.select {
  padding: 11px 36px 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235a6478' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: 500 14px var(--font-body); color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.result-count { font-size: 14px; color: var(--muted); margin-left: auto; }
.year-group { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding-top: 28px; }
.year-label { font-family: var(--font-display); font-size: 34px; color: var(--ink); position: sticky; top: calc(var(--header-h) + 90px); align-self: start; line-height: 1; font-variant-numeric: lining-nums; }
.year-group .pub:first-child { border-top: 0; padding-top: 4px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 2px; }
@media (max-width: 720px) { .year-group { grid-template-columns: 1fr; gap: 8px; } .year-label { position: static; font-size: 28px; } .result-count { margin-left: 0; width: 100%; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .journals-track, .status--ongoing::before { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero canvas, .toolbar, .join, .nav-toggle { display: none !important; }
  .hero, .page-hero, .section--ink, .site-footer { background: none !important; color: #000 !important; }
  .hero h1, .page-hero h1 { color: #000 !important; }
}
