:root {
  --ink: #111827;
  --muted: #667085;
  --navy: #0a3f91;
  --blue: #075bb8;
  --line: #d9e0ea;
  --soft: #f4f8fd;
  --paper: #ffffff;
  --preprint: #5f6773;
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.48;
}
a { color: var(--blue); }
.page-shell { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 50; background: white; padding: 8px 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-wrap { width: min(calc(100% - 64px), var(--max)); margin: auto; min-height: 56px; display: flex; justify-content: center; align-items: center; }
nav { display: flex; gap: 44px; }
nav a { color: #283044; text-decoration: none; font-size: .92rem; padding: 18px 0 15px; border-bottom: 2px solid transparent; }
nav a:hover, nav a:focus { color: var(--navy); border-bottom-color: var(--blue); }
.menu-button { display: none; }

.profile-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) 215px;
  align-items: center;
  gap: 54px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}
h1 { margin: 0; font-size: clamp(1.7rem, 2.5vw, 2.35rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; }
.position { margin: 6px 0 16px; color: #344054; font-size: 1.08rem; font-weight: 500; }
.affiliation-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.divider, .link-divider { width: 1px; height: 24px; background: var(--line); display: inline-block; }
.profile-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.profile-links a { text-decoration: none; font-weight: 600; }
.cv-button { margin-left: 10px; background: var(--navy); color: white !important; padding: 9px 15px; border-radius: 6px; box-shadow: 0 2px 6px rgba(10,63,145,.18); }
.portrait { margin: 0; justify-self: end; }
.portrait img { width: 215px; height: 267px; image-rendering: auto; object-fit: cover; object-position: center top; display: block; border-radius: 7px; }

.research-intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 42px;
  padding: 26px 0 30px;
  align-items: stretch;
}
.research-copy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff 0%, #ffffff 68%);
  border: 1px solid #d6e2f1;
  border-radius: 12px;
  padding: 24px 26px 22px;
  box-shadow: 0 10px 28px rgba(10,63,145,.055);
}
.research-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), #7aa7df);
}
.research-kicker {
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.research-copy h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.research-lead { margin: 0 0 14px; max-width: 900px; color: #344054; }
.research-subheading { margin: 0 0 8px; font-weight: 400; color: #1f2d44; }
.research-topics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 12px;
}
.research-topics li {
  position: relative;
  margin: 0;
  padding: 8px 10px 8px 28px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  break-inside: avoid;
  display: flex;
  align-items: center;
  font-size: .91rem;
}
.research-topics li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(7,91,184,.10);
}
.interest-card {
  background: linear-gradient(145deg,#0a3f91,#0d5db4);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 22px 22px;
  box-shadow: 0 12px 30px rgba(10,63,145,.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.interest-card h2 { margin: 0 0 12px; color: white; font-size: 1.22rem; letter-spacing: -.015em; }
.interest-card p { margin: 0; color: rgba(255,255,255,.9); line-height: 1.65; }

.content-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(340px,1fr); gap: 76px; align-items: start; padding-bottom: 54px; }
.section-heading { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 1.35rem; letter-spacing: -.02em; }

.publication-list { margin: 0; padding-left: 28px; }
.publication-list > li { padding-left: 10px; margin: 0 0 20px; }
.publication h3 { margin: 0 0 3px; font-size: 1.04rem; line-height: 1.35; font-weight: 650; }
.authors { color: var(--muted); margin: 0; font-size: .94rem; }
.authors strong { color: #263246; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 7px; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .015em;
  border: 1px solid transparent;
  box-shadow: 0 2px 5px rgba(17,24,39,.10);
}
.badge-preprint {
  background: #626b77;
  border-color: #555e69;
}
.badge-venue {
  background: linear-gradient(180deg, #1673d1, #075bb8);
  border-color: #0752a6;
}
.badge-journal {
  background: linear-gradient(180deg, #d94a4a, #c62828);
  border-color: #b51f1f;
}
.badge-thesis {
  background: linear-gradient(180deg, #e5b93f, #d39e1f);
  border-color: #bd8b18;
}
a.badge:hover,
a.badge:focus {
  transform: translateY(-1px);
  filter: brightness(.97);
  box-shadow: 0 4px 9px rgba(17,24,39,.16);
}

span.badge {
  cursor: default;
}

.note {
  color: var(--muted);
  font-size: .82rem;
  font-style: italic;
}

.note-highlight {
  color: #1f4f85;
  font-size: .9rem;
  font-style: normal;
  font-weight: 700;
  background: #eef5ff;
  border: 1px solid #cfe0f6;
  border-radius: 999px;
  padding: 4px 10px;
}

.side-column { min-width: 0; }
.sidebar-section { margin-bottom: 26px; }
.compact-entry { margin-bottom: 14px; }
.compact-entry h3 { margin: 2px 0; font-size: .94rem; }
.compact-entry p { margin: 1px 0; font-size: .88rem; }
.date { color: var(--blue); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.timeline { display: grid; gap: 12px; }
.timeline article { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 11px; }
.timeline p { margin: 0; font-size: .88rem; }
.timeline .muted { color: var(--muted); margin-top: 2px; }
.timeline a { text-decoration: none; font-weight: 600; }
.institution { margin: 0 0 8px; font-weight: 600; font-size: .9rem; }
.teaching-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.teaching-list li { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 10px; font-size: .87rem; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-inner { padding: 20px 0; }

@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr; gap: 38px; }
  .side-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
  .sidebar-section:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .page-shell, .nav-wrap { width: min(calc(100% - 30px), var(--max)); }
  .menu-button { display: block; margin-left: auto; border: 1px solid var(--line); background: white; border-radius: 5px; padding: 6px 10px; }
  .nav-wrap { justify-content: flex-end; }
  nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); padding: 12px 15px; flex-direction: column; gap: 4px; }
  nav.open { display: flex; }
  nav a { padding: 8px 0; }
  .profile-header { grid-template-columns: 1fr; gap: 20px; }
  .portrait { justify-self: start; order: -1; }
  .portrait img { width: 165px; height: 205px; image-rendering: auto; }
  .affiliation-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .divider, .link-divider { display: none; }
  .profile-links { align-items: flex-start; gap: 10px 18px; }
  .cv-button { margin-left: 0; }
  .research-intro { grid-template-columns: 1fr; gap: 22px; }
  .research-topics { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr; }
  .sidebar-section:last-child { grid-column: auto; }
  .content-grid { padding-bottom: 34px; }
}


.interest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.interest-list li {
  padding-bottom: 0.62rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.45;
}

.interest-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Announcement box */
.announcement-box {
  border: 4px solid #d4a72c;
  border-radius: 10px;
  background: transparent;
  padding: 18px 20px;
}
.announcement-box h2 {
  margin: -18px -20px 12px;
  padding: 10px 16px;
  background: #d4a72c;
  color: #ffffff;
  font-size: 1.1rem;
}
.announcement-box p { margin: 0; text-align: justify;}
