:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-alt: #1a1e27;
  --text: #e6e8ec;
  --muted: #9aa1ad;
  --accent: #5b8cff;
  --accent-hover: #7aa3ff;
  --border: #262b35;
  --max-width: 880px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--accent);
}

sup {
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8f5bff);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.1;
}
.role {
  color: var(--text);
  font-size: 1.15rem;
  margin-top: 0.5rem;
}
.location {
  color: var(--muted);
  margin-top: 0.15rem;
}
.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
}
.socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.socials a:hover {
  color: var(--accent);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--surface-alt);
}
.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.section p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.section p:last-child {
  margin-bottom: 0;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Timeline */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.timeline-content h3 {
  font-size: 1.1rem;
}
.timeline-org {
  color: var(--text);
  font-weight: 500;
  margin: 0.15rem 0 0.4rem;
}
.timeline-content p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.card-sub {
  color: var(--accent);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Publications */
.pub-note {
  font-size: 0.9rem;
}
.pub-year {
  font-size: 1rem;
  color: var(--accent);
  margin: 1.5rem 0 0.6rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pub-list li {
  color: var(--text);
  font-size: 0.95rem;
  padding-left: 1rem;
  position: relative;
}
.pub-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.pub-list em {
  color: var(--muted);
}

/* Highlights */
.highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.highlights li {
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}
.highlights li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.highlights strong {
  color: var(--text);
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin-top: 1rem;
}
.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.contact-links a:hover {
  color: var(--accent-hover);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.site-footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open {
    max-height: 400px;
  }
  .nav-links li {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
  }
}
