*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --gray-dark: #444;
  --gray-mid: #888;
  --gray-light: #e8e8e4;
  --gray-bg: #f7f7f5;
  --accent: #2a5bd7;
  --accent-soft: #eef2fc;
  --white: #fff;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max: 780px;
  --nav-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
}
.nav-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--black);
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* --- LAYOUT --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--gray-light);
}
section:last-child { border-bottom: none; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 40px;
}

h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 24px;
}

/* --- HERO --- */
#about {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 48px;
  align-items: start;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}
.hero-role {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-dark);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hero-bio {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; }
.avatar-col {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent); }
.btn-outline {
  border: 1px solid var(--gray-light);
  color: var(--gray-dark);
}
.btn-outline:hover { border-color: var(--black); color: var(--black); }

.avatar-wrap {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--gray-bg);
  border: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-initials {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--gray-mid);
  letter-spacing: -0.02em;
  position: absolute;
}

.affil-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 20px;
}

/* --- PUBLICATIONS --- */
.pub-list { display: flex; flex-direction: column; gap: 28px; }
.pub-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.pub-year {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-mid);
  padding-top: 3px;
}
.pub-venue {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.pub-venue.findings {
  background: var(--accent);
}
.pub-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 6px;
}
.pub-authors {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-dark);
  margin-bottom: 8px;
}
.pub-authors strong { font-weight: 500; color: var(--black); }
.pub-links { display: flex; gap: 10px; }
.pub-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.pub-link:hover { text-decoration: underline; }

/* --- PROJECTS --- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.proj-card {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.proj-card:hover {
  border-color: var(--black);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.proj-emoji {
  font-size: 24px;
  margin-bottom: 14px;
  display: block;
}
.proj-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--black);
}
.proj-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}
.proj-award {
  font-size: 11px;
  font-weight: 500;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}
.proj-tech {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.tech-chip {
  font-size: 11px;
  color: var(--gray-dark);
  background: var(--gray-bg);
  padding: 2px 7px;
  border-radius: 3px;
}

/* --- EDUCATION --- */
.edu-list { display: flex; flex-direction: column; gap: 0; }
.edu-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-light);
}
.edu-item:last-child { border-bottom: none; }
.edu-year {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-mid);
  padding-top: 3px;
  line-height: 1.5;
}
.edu-degree {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 3px;
}
.edu-school {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-dark);
  margin-bottom: 6px;
}
.edu-detail {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 1.6;
}
.edu-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid currentColor;
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

/* --- CONTACT --- */
#contact { border-bottom: none; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--black);
  transition: all 0.18s;
}
.contact-item:hover {
  border-color: var(--black);
  background: var(--gray-bg);
}
.contact-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 2px;
}
.contact-val {
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
}

/* --- FOOTER --- */
footer {
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--gray-light);
}

/* --- FADE-IN --- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --- MOBILE --- */
@media (max-width: 600px) {
  .hero-grid { grid-template-columns: 1fr; }
  .avatar-wrap { width: 100px; height: 100px; }
  .avatar-initials { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  nav { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }
}
