:root {
  --bg: #ffffff;
  --ink: #1b1b1b;
  --ink-2: #3a3a3a;
  --muted: #767676;
  --accent: #1a7ea6;
  --accent-deep: #135e7c;
  --line: #e7e7e7;
  --line-strong: #d4d4d4;
  --bg-soft: #f7f9fa;
  --maxw: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1.1rem, 4vw, 2rem);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { font-size: 1.02rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.nav-brand:hover { color: var(--ink); text-decoration: none; }
.nav-brand span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 1.45rem; list-style: none; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: .3rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ── LAYOUT ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
section { padding: 3.2rem 0; }

.section-title {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 1.6rem; padding-bottom: .55rem; border-bottom: 2px solid var(--ink);
  display: inline-block;
}

/* ── HERO ── */
.hero { padding-top: 3.4rem; }
.hero-grid { display: grid; grid-template-columns: 230px 1fr; gap: clamp(1.8rem, 5vw, 3.4rem); align-items: start; }

.profile { text-align: center; position: sticky; top: 5rem; }
.profile-photo {
  width: 170px; height: 170px; border-radius: 50%;
  object-fit: cover; object-position: center 20%;
  border: 1px solid var(--line); margin: 0 auto .9rem; display: block;
  box-shadow: 0 6px 22px -12px rgba(0,0,0,.35);
}
.profile-name { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.profile-title { font-size: .95rem; color: var(--ink-2); margin-top: .25rem; }
.profile-affil { font-size: .9rem; color: var(--muted); margin-top: .1rem; }
.profile-links { list-style: none; margin-top: 1.1rem; display: inline-flex; flex-direction: column; gap: .5rem; text-align: left; }
.profile-links a { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.profile-links a:hover { color: var(--accent); text-decoration: none; }
.profile-links svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.profile-main > p { margin-bottom: 1rem; color: var(--ink-2); max-width: 68ch; }
.profile-main > p:first-child { margin-top: -.2rem; }
.interests { list-style: none; margin: .2rem 0 1.2rem; max-width: 68ch; }
.interests li { position: relative; padding: .15rem 0 .15rem 1.3rem; color: var(--ink-2); }
.interests li::before { content: ""; position: absolute; left: .15rem; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.interests b { color: var(--ink); font-weight: 600; }

.updates-head { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin: 1.8rem 0 .9rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.updates { list-style: none; }
.updates li { display: grid; grid-template-columns: 92px 1fr; gap: .9rem; padding: .5rem 0; font-size: .95rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.updates li:last-child { border-bottom: none; }
.u-date { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── PUBLICATIONS ── */
.pub-cat-title { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .9rem; }
.pub-category:first-of-type .pub-cat-title { margin-top: 0; }
.pub-item { padding: .75rem 0 .75rem 1.1rem; border-left: 2px solid var(--line); margin-bottom: .55rem; transition: border-color .2s; }
.pub-item:hover { border-left-color: var(--accent); }
.pub-item.featured { border-left-color: var(--accent); }
.pub-badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-deep); background: #e3f0f5; padding: .12rem .5rem; border-radius: 4px; margin-bottom: .4rem; }
.pub-item .authors { font-weight: 600; color: var(--ink); }
.pub-item .me { color: var(--accent); }
.pub-item .ptitle { color: var(--ink-2); }
.pub-journal { font-size: .92rem; color: var(--muted); margin-top: .2rem; }
.pub-journal em { font-style: italic; color: var(--ink-2); }

/* ── CONFERENCES ── */
.conf-item { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.conf-item:last-child { border-bottom: none; }
.conf-year { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.conf-title { color: var(--ink); }
.conf-venue { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.badge-top { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent); padding: .08rem .42rem; border-radius: 4px; margin-left: .45rem; vertical-align: 1px; }

/* ── AWARDS ── */
.award-item { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.award-item:last-child { border-bottom: none; }
.award-year { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.award-name { font-weight: 600; color: var(--ink); }
.award-org { color: var(--muted); font-size: .9rem; }

/* ── SERVICE ── */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.service-cat-title { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.service-list { list-style: none; }
.service-list li { position: relative; padding: .35rem 0 .35rem 1.1rem; color: var(--ink-2); }
.service-list li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.service-list em { font-style: italic; color: var(--ink); }

/* ── FOOTER ── */
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem; border-top: 1px solid var(--line); }

/* ── RESPONSIVE ── */
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .profile { position: static; }
  .service-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .4rem clamp(1.1rem,4vw,2rem) .8rem; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; width: 100%; padding: .6rem 0; }
  .nav-toggle { display: inline-flex; }
}
