:root {
  --navy: #0b1a3a;
  --navy-700: #15295e;
  --ink: #101828;
  --text: #2b3445;
  --muted: #5f6b7f;
  --line: #e4e8f0;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eaeef6;
  --blue: #1d5be8;
  --teal: #14b8a6;
  --cyan: #0ea5e9;
  --grad: linear-gradient(100deg, #1d5be8 0%, #0ea5e9 55%, #14b8a6 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-md: 0 14px 30px -12px rgba(11, 26, 58, .22);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Manrope', var(--font-body);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 88px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 1rem/1.65 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.i { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.15em; }
.eyebrow { display: inline-block; margin: 0 0 12px; font: 700 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow a { color: inherit; }
.eyebrow-light { background: none; color: rgba(255, 255, 255, .7); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(11, 26, 58, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { height: 66px; width: auto; }
@media (max-width: 600px) { .brand img { height: 52px; } }
.site-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.uni-logo { display: block; line-height: 0; }
.uni-logo img { height: 56px; width: auto; }
@media (max-width: 1060px) { .uni-logo img { height: 46px; } }
@media (max-width: 900px) { .uni-logo { display: none; } }
.site-nav a { position: relative; padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { background: var(--surface); color: var(--navy); text-decoration: none; }
.site-nav a.active { color: var(--navy); font-weight: 600; }
.site-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; }
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; gap: 2px; padding: 10px var(--gutter) 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(11, 26, 58, .3); }
  body.nav-open .site-nav { display: flex; }
  body.nav-open .nav-toggle .i-menu { display: none; }
  body.nav-open .nav-toggle .i-close { display: block; }
  .site-nav a { padding: 12px 10px; font-size: 1.05rem; }
  .site-nav a.active::after { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 26, 58, .7); }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.link-arrow .i { transition: transform .15s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 88% 15%, rgba(29, 91, 232, .13), transparent 70%), radial-gradient(45% 45% at 8% 95%, rgba(20, 184, 166, .16), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; }
.hero-image { margin: 0; border-radius: 20px; overflow: hidden; background: #fff; aspect-ratio: 16 / 10; box-shadow: 0 30px 60px -24px rgba(11, 26, 58, .35), 0 0 0 1px rgba(11, 26, 58, .06); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image figcaption { position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(11, 26, 58, .85); color: #fff; font: 600 .75rem/1.5 var(--font-body); letter-spacing: .03em; }
.hero-grid.single { grid-template-columns: minmax(0, 1fr); }
.hero-grid.single .hero-copy { max-width: 760px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 560px; }
  .hero-image { aspect-ratio: 16 / 10; }
}

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 8px; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; gap: 10px; } }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 8px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.research-card h3 { margin: 18px 0 8px; }
.research-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; }
.icon-badge .i { width: 22px; height: 22px; }

/* ---------- publications ---------- */
.pub-list { border-bottom: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.pub[hidden] { display: none; }
.pub-thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pub-thumb:hover img { transform: scale(1.04); }
.pub-thumb.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), #dde5f3); color: var(--navy); font: 700 .9rem var(--font-head); letter-spacing: .05em; }
.pub-title { font-size: 1.1rem; margin: 0 0 6px; }
.pub-title a { color: var(--navy); }
.pub-title a:hover { color: var(--blue); text-decoration: none; }
.pub-authors { margin: 0 0 6px; font-size: .95rem; }
.pub-authors .me { font-weight: 600; color: var(--navy); }
.pub-venue { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.venue-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #fff; font: 600 .74rem/1.7 var(--font-body); letter-spacing: .04em; }
.award { display: inline-flex; align-items: center; gap: 6px; color: #b45309; font-weight: 600; }
.pub-note { margin: -6px 0 10px; font-size: .8rem; color: var(--muted); }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 500 .82rem/1.4 var(--font-body); cursor: pointer; transition: all .15s; }
.pill:hover, .pill[aria-expanded="true"] { text-decoration: none; border-color: var(--navy); background: var(--navy); color: #fff; }
.bib { position: relative; margin-top: 12px; }
.bib pre { margin: 0; padding: 16px 100px 16px 16px; border-radius: var(--radius-sm); background: var(--navy); color: #dbe4ff; font: .8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: auto; }
.bib .copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font-size: .78rem; cursor: pointer; }
.bib .copy:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 700px) {
  .pub { grid-template-columns: 1fr; gap: 14px; }
  .pub-thumb { max-width: 320px; }
}
.pub-toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 14px 0; margin-bottom: 8px; position: sticky; top: var(--header-h); z-index: 5; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.search { position: relative; flex: 1 1 260px; max-width: 400px; display: block; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .95rem; color: var(--ink); }
.search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 500 .82rem/1.4 var(--font-body); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pub-group { margin-bottom: 8px; }
.pub-group[hidden] { display: none; }
.pub-group-head { display: flex; align-items: baseline; gap: 12px; margin: 32px 0 8px; }
.pub-group-head h2 { font-size: 1.5rem; margin: 0; }
.pub-group-head .count { color: var(--muted); font-size: .9rem; }

/* ---------- people ---------- */
.people-group { margin-bottom: 56px; }
.people-group h2 { font-size: 1.5rem; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 1000px) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
.person-photo { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 14px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .3s; }
.person:hover .person-photo img { transform: scale(1.03); }
.avatar { display: grid; place-items: center; width: 100%; height: 100%; background: var(--grad); color: #fff; font: 700 clamp(1.6rem, 4vw, 2.4rem) var(--font-head); letter-spacing: .02em; }
.person-name { font-size: 1.05rem; margin: 0 0 2px; }
.person-name a { color: var(--navy); }
.person-name a:hover { color: var(--blue); text-decoration: none; }
.person-role { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.icon-links { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); transition: all .15s; }
.icon-links a:hover { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }
.alumni-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.alumni-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.alumni-list .role, .alumni-list .now { color: var(--muted); }
@media (max-width: 700px) { .alumni-list { columns: 1; } }
.profile { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.profile .person-photo { margin: 0 0 16px; }
.profile-email { font-size: .95rem; margin: 12px 0 0; }
.profile-pubs-title { font-size: 1.5rem; margin-top: 48px; }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } .profile .person-photo { max-width: 260px; } }

/* ---------- prose (markdown content) ---------- */
.prose { max-width: 72ch; font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 3px solid var(--teal); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--muted); }
.prose code { font-size: .9em; background: var(--surface); padding: .1em .35em; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--navy); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.prose td:first-child { font-weight: 600; color: var(--navy); }
@media (max-width: 600px) { .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; } .prose thead { display: none; } .prose td { border: 0; padding: 2px 0; } .prose tr { padding: 12px 0; border-bottom: 1px solid var(--line); } }

/* ---------- research page ---------- */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.area:first-child { border-top: 0; }
.area:nth-child(even) .area-media { order: -1; }
.area-text h2 { font-size: 1.7rem; margin: 18px 0 14px; }
.area-text .prose { font-size: 1rem; }
.area-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.area-media img { width: 100%; height: 100%; object-fit: cover; }
.area-media.placeholder { background: radial-gradient(70% 70% at 30% 20%, rgba(29, 91, 232, .14), transparent), radial-gradient(60% 60% at 80% 90%, rgba(20, 184, 166, .18), transparent), var(--surface); }
.area-media .icon-badge { width: 92px; height: 92px; border-radius: 28px; box-shadow: 0 20px 40px -16px rgba(11, 26, 58, .4); }
.area-media .icon-badge .i { width: 44px; height: 44px; }
@media (max-width: 800px) {
  .area { grid-template-columns: 1fr; gap: 24px; }
  .area:nth-child(even) .area-media { order: 0; }
  .area-media { aspect-ratio: 16 / 9; }
}

/* ---------- news ---------- */
.news-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.news-date { color: var(--muted); font-size: .9rem; font-weight: 500; padding-top: 3px; }
.news-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.news-item p { margin: 0 0 .5em; }
.news-item p:last-child { margin: 0; }
.news-year { font-size: 1.4rem; margin: 40px 0 8px; }
.news-year:first-child { margin-top: 0; }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- home: news + call to action ---------- */
.news-home { max-width: 880px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.cta-card { position: relative; overflow: hidden; border-radius: 20px; padding: 36px; background: var(--navy); color: #fff; }
.cta-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; background: var(--grad); opacity: .55; filter: blur(34px); }
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; font-size: 1.6rem; }
.cta-card p { color: rgba(255, 255, 255, .82); }
.cta-card .btn { background: #fff; color: var(--navy); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h2 { font-size: 1.3rem; }
.contact-card .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-card .row .i { margin-top: 5px; color: var(--blue); }
.contact-card .btn { margin-top: 8px; }
address { font-style: normal; line-height: 1.7; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 96px); background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 700 .76rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--navy); }
.footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.footer-uni { display: inline-block; margin-bottom: 16px; line-height: 0; }
.footer-uni img { height: 54px; width: auto; }
.footer-tagline { color: var(--muted); margin: 0; }
.footer-social { margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom a { color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- misc ---------- */
.not-found { text-align: center; padding: 96px 0; }
.not-found .lead { margin-bottom: 28px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .pub-toolbar, .hero-visual, .cta-card { display: none !important; }
  .pub { break-inside: avoid; }
}
