:root {
  --text: #1a1a2e;
  --muted: #6b7280;
  --accent: #1b4f72;
  --accent-bg: #eaf4fb;
  --border: #e2e8f0;
  --bg: #f0f5fb;
  --white: #ffffff;
  --max: 780px;
  --nav-h: 60px;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(240,245,251,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-name {
  font-family: var(--serif); font-size: .95rem; font-weight: 700;
  color: var(--accent); white-space: nowrap; text-decoration: none;
}
.nav-name:hover { text-decoration: none; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  display: inline-block;
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  color: var(--muted); padding: 5px 11px; border-radius: 6px;
  transition: color .15s, background .15s; text-decoration: none;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-bg); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 600; background: var(--accent-bg); }
.nav-burger { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text); padding: 4px; }

/* ── MAIN ── */
main { max-width: var(--max); margin: 0 auto; padding: 52px 24px 80px; }

/* ── HERO ── */
.hero {
  display: flex; gap: 48px; align-items: center;
  margin-bottom: 44px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.hero-photo-wrap {
  position: relative; width: 186px; height: 186px; flex-shrink: 0;
}
.hero-photo-wrap::before {
  content: ''; position: absolute; top: -14px; left: -14px;
  width: calc(100% + 28px); height: calc(100% + 28px);
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 12px 12px; opacity: .12; border-radius: 50%;
}
.hero-photo-wrap img {
  position: relative; z-index: 1;
  width: 186px; height: 186px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 4px solid var(--white);
  box-shadow: 0 6px 28px rgba(0,0,0,.13);
}
.hero-info { flex: 1; min-width: 0; }
.hero-info h1 {
  font-family: var(--serif); font-size: 2.45rem; font-weight: 700;
  line-height: 1.15; color: var(--text); margin-bottom: 20px;
}
.hero-roles { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.hero-role {
  display: flex; align-items: center; gap: 10px;
  font-size: .89rem; color: var(--muted);
}
.hero-role i { color: var(--accent); width: 16px; text-align: center; font-size: .83rem; flex-shrink: 0; }
.hero-role a { color: inherit; font-weight: 500; }
.hero-role a:hover { color: var(--accent); text-decoration: none; }
.hero-divider { width: 38px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 18px; opacity: .45; }
.hero-intro { font-size: .93rem; line-height: 1.88; color: var(--text); }

/* ── ABOUT CARD ── */
.about-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  padding: 30px 32px; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05); margin-bottom: 32px;
}
.about-card-title {
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-bg);
}
.about-bio p { font-size: .93rem; line-height: 1.9; margin-bottom: 13px; }
.about-bio p:last-child { margin-bottom: 0; }

/* ── CHIPS ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 500; color: var(--text);
  padding: 6px 13px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color .15s, background .15s;
}
.chip i { font-size: .73rem; color: var(--accent); }
.chip:hover { border-color: var(--accent); background: var(--accent-bg); }

/* ── PILLS ── */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--white);
  font-size: .82rem; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.pill i, .pill .ai { font-size: .95rem; color: var(--accent); }
.pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); text-decoration: none; }

/* ── SHARED SECTION TITLE ── */
.page-title {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700;
  margin-bottom: 32px; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-bg);
}
.section-sub {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
  margin-bottom: 14px; margin-top: 36px;
}
.section-sub:first-of-type { margin-top: 0; }

/* ── WORK ── */
.job-group {
  padding: 14px 18px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.job-group-name {
  font-size: .82rem; font-weight: 600; color: var(--accent);
  margin-bottom: 9px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.job-sub { padding: 7px 0; border-bottom: 1px solid var(--border); }
.job-sub:last-of-type { border-bottom: none; padding-bottom: 0; }
.job-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.job-title { font-size: .93rem; font-weight: 600; }
.job-dates { font-size: .79rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.job-desc { font-size: .83rem; color: var(--muted); margin-top: 3px; line-height: 1.6; }

/* ── RESEARCH GROUPS ── */
.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.group-card { padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.g-role {
  font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--white); background: var(--accent);
  padding: 2px 9px; border-radius: 20px; display: inline-block; margin-bottom: 9px;
}
.group-card h3 { font-family: var(--serif); font-size: .95rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.group-card .g-inst { font-size: .82rem; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.group-card p { font-size: .855rem; color: var(--muted); line-height: 1.65; }

/* ── PUBLICATIONS ── */
.pub-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.pub-tabs button {
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 9px 18px; font-family: var(--sans); font-size: .84rem; font-weight: 500;
  color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s;
}
.pub-tabs button:hover { color: var(--accent); }
.pub-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.pub { padding: 17px 0; border-bottom: 1px solid var(--border); }
.pub:last-child { border-bottom: none; }
.pub-yr {
  display: inline-block; font-size: .7rem; font-weight: 700;
  color: var(--accent); background: var(--accent-bg);
  padding: 1px 8px; border-radius: 4px; margin-bottom: 6px; letter-spacing: .04em;
}
.pub-title { font-size: .94rem; font-weight: 600; line-height: 1.5; margin-bottom: 3px; }
.pub-authors { font-size: .83rem; color: var(--muted); margin-bottom: 3px; }
.pub-venue { font-size: .83rem; color: var(--accent); font-style: italic; }
.pub-links { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.pub-link {
  font-size: .73rem; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); padding: 2px 10px; border-radius: 4px;
  text-decoration: none; transition: all .15s;
}
.pub-link:hover { background: var(--accent); color: #fff; text-decoration: none; }
.pub-link.soon { color: var(--muted); border-color: var(--border); pointer-events: none; opacity: .6; }

.wp-item {
  padding: 16px 18px; margin-bottom: 12px;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.wp-status { font-size: .68rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.wp-title { font-size: .94rem; font-weight: 600; line-height: 1.5; margin-bottom: 4px; }
.wp-authors { font-size: .83rem; color: var(--muted); margin-bottom: 8px; }

/* ── DATA & SOFTWARE ── */
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sw-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.sw-type {
  font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-bg); border: 1px solid #b8ddf4;
  padding: 2px 9px; border-radius: 20px; display: inline-block; margin-bottom: 9px;
}
.sw-card h3 { font-size: .95rem; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.sw-card .sw-auth { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.sw-card p { font-size: .855rem; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }

/* ── TEACHING ── */
.t-block { margin-bottom: 36px; }
.t-block:last-child { margin-bottom: 0; }
.t-block-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.course { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.course:last-child { border-bottom: none; }
.course-name { font-size: .94rem; font-weight: 600; margin-bottom: 2px; }
.course-role { font-size: .82rem; color: var(--accent); font-weight: 500; margin-bottom: 3px; }
.course-desc { font-size: .83rem; color: var(--muted); line-height: 1.6; }
.course-meta { text-align: right; min-width: 110px; }
.course-inst { font-size: .82rem; font-weight: 500; margin-bottom: 2px; }
.course-yr { font-size: .79rem; color: var(--muted); margin-bottom: 4px; }
.course-lvl { font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--accent-bg); color: var(--accent); padding: 2px 8px; border-radius: 10px; display: inline-block; }
.workshop { padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; background: var(--white); box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.workshop h4 { font-size: .94rem; font-weight: 600; line-height: 1.4; margin-bottom: 5px; }
.workshop-meta { font-size: .8rem; color: var(--muted); margin-bottom: 9px; }
.workshop p { font-size: .855rem; color: var(--muted); line-height: 1.7; }

/* ── AWARDS & DISTINCTIONS ── */
.award-item { padding: 11px 0; border-bottom: 1px solid var(--border); }
.award-item:last-child { border-bottom: none; }
.award-yr { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--accent-bg); padding: 1px 8px; border-radius: 4px; margin-bottom: 5px; letter-spacing: .04em; }
.award-title { font-size: .91rem; font-weight: 600; line-height: 1.5; margin-bottom: 1px; }
.award-org { font-size: .81rem; color: var(--muted); }

/* ── AWARDS TIMELINE (awards.html) ── */
.timeline { padding-left: 24px; position: relative; max-width: 620px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--accent), var(--accent-bg)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.tl-year { font-size: .72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.tl-title { font-size: .93rem; font-weight: 600; line-height: 1.4; margin-bottom: 1px; }
.tl-org { font-size: .81rem; color: var(--muted); }

/* ── FOOTER ── */
footer { background: #111827; color: #9ca3af; padding: 40px 24px 32px; text-align: center; }
.ft-name { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.ft-sub { font-size: .82rem; color: #6b7280; margin-bottom: 20px; }
.ft-social { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.ft-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #374151; color: #9ca3af; font-size: .85rem; transition: all .15s; text-decoration: none; }
.ft-social a:hover { border-color: #fff; color: #fff; }
.ft-emails { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.ft-emails a { font-size: .81rem; color: #6b7280; transition: color .15s; text-decoration: none; }
.ft-emails a:hover { color: #fff; }
.ft-copy { font-size: .73rem; color: #4b5563; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero { flex-direction: column; text-align: center; gap: 24px; }
  .hero-photo-wrap { align-self: center; }
  .hero-roles { align-items: center; }
  .hero-divider { margin: 0 auto 18px; }
  .about-card { grid-template-columns: 1fr; gap: 28px; }
  .chips { justify-content: center; }
  .pills { justify-content: center; }
  .group-grid, .sw-grid { grid-template-columns: 1fr; }
  .course { grid-template-columns: 1fr; }
  .course-meta { text-align: left; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 10px 16px; gap: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  main { padding: 40px 16px 60px; }
}
