@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&display=swap');

:root {
  --bg: #0f0f0f;
  --surface: #161616;
  --surface2: #1e1e1e;
  --border: #2a2a2a;
  --border-light: #333;
  --text: #e8e4dc;
  --text-muted: #8a8680;
  --text-dim: #5a5650;
  --accent: #c8a96e;
  --accent-dim: #8a7048;
  --accent-glow: rgba(200, 169, 110, 0.08);
  --link: #c8a96e;
  --tag-bg: #1e1c18;
  --tag-border: #3a3428;
  --serif: 'Source Serif 4', Georgia, serif;
  --display: 'DM Serif Display', Georgia, serif;
  --mono: 'DM Mono', 'Courier New', monospace;
  --nav-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.nav-brand {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── LAYOUT ── */

.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* ── HERO ── */

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.hero-text h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.hero-text .title-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1rem;
}

.hero-text p:first-of-type {
  color: var(--text);
  font-size: 1.05rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0f0f0f;
  font-weight: 500;
}

.btn-primary:hover {
  background: #dfc080;
}

.btn-ghost {
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 4px;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* ── SECTION HEADERS ── */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ABOUT INTERESTS ── */

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── TIMELINE (Education & Experience) ── */

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  transform: translateX(-3px);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.timeline-role {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.timeline-org a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}

.timeline-org a:hover { color: var(--accent); }

.timeline-advisor {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.timeline-body {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.timeline-body ul {
  list-style: none;
  padding: 0;
}

.timeline-body ul li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.2rem;
}

.timeline-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* ── PUBLICATIONS ── */

.pub-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.pub-filter {
  padding: 0.3rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.pub-filter:hover,
.pub-filter.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.pub-group-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pub-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.pub-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-item.hidden { display: none; }

.pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 0.3rem;
}

.pub-status {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.pub-authors strong {
  color: var(--text-muted);
  font-weight: 600;
}

.pub-venue {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.pub-award {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid var(--accent-dim);
  border-radius: 2px;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.pub-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pub-link {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  transition: all 0.2s;
}

.pub-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ── MISC SECTIONS ── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.list-clean {
  list-style: none;
}

.list-clean li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.list-clean li:last-child { border-bottom: none; }

.list-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.awards-list {
  list-style: none;
}

.awards-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.awards-list li:last-child { border-bottom: none; }

.awards-list li::before {
  content: '◆ ';
  color: var(--accent-dim);
  font-size: 0.5rem;
  vertical-align: middle;
}

/* ── CONTACT ── */

.contact-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-email {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  transition: all 0.2s;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ── FOOTER ── */

footer {
  padding: 2rem 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ── */

@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { width: 110px; height: 110px; order: -1; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.65rem; }
}

/* ── ANIMATIONS ── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text h1     { animation: fadeUp 0.6s ease both; }
.hero-text .title-line { animation: fadeUp 0.6s 0.1s ease both; }
.hero-text p      { animation: fadeUp 0.6s 0.2s ease both; }
.hero-links       { animation: fadeUp 0.6s 0.3s ease both; }
.hero-photo       { animation: fadeUp 0.6s 0.15s ease both; }
