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

body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  color: #0d1b3e;
  min-height: 100vh;
}

/* ── Nav ── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: #fff;
  border-bottom: 1px solid #eaedf3;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b3e;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #6b7a99;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #0d1b3e;
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 4rem 3rem;
  gap: 4rem;
  border-bottom: 1px solid #eaedf3;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #ff5500;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0d1b3e;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-role {
  font-size: 0.92rem;
  color: #6b7a99;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid #eaedf3;
  color: #0d1b3e;
  font-size: 0.76rem;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.15s;
  border-radius: 4px;
}

.hero-link:hover {
  border-color: #3dffd8;
  background: #3dffd8;
  color: #0d1b3e;
}

.photo-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 4px solid #3dffd8;
  overflow: hidden;
  flex-shrink: 0;
}

.photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── Page layout ── */

.page {
  display: grid;
  grid-template-columns: 1fr 260px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 4rem;
  padding: 3.5rem 3rem;
}

.page-full {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
}

/* ── Section labels ── */

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff5500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* ── Body text ── */

.about-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #2a3350;
  font-weight: 300;
  margin-bottom: 0.9rem;
}

.about-text a {
  color: #e830f8;
  text-decoration: none;
  border-bottom: 1px solid #e830f8;
}

.about-text a:hover {
  opacity: 0.7;
}

/* ── Research interests ── */

.interests-list {
  list-style: none;
  margin-top: 0.5rem;
}

.interests-list li {
  font-size: 0.88rem;
  color: #2a3350;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f2f8;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.dash {
  width: 18px;
  height: 2px;
  background: #e830f8;
  flex-shrink: 0;
  border-radius: 2px;
}

/* ── Sidebar cards ── */

.side-card {
  background: #f7f9ff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.side-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff5500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.edu-item {
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid #3dffd8;
}

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

.edu-degree {
  font-size: 0.85rem;
  color: #0d1b3e;
  font-weight: 400;
  line-height: 1.4;
}

.edu-detail {
  font-size: 0.75rem;
  color: #6b7a99;
  margin-top: 0.2rem;
  font-weight: 300;
}

.affil-card {
  background: #0d1b3e;
  border-radius: 8px;
  padding: 1.5rem;
}

.affil-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3dffd8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.affil-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid #f7f9ff;
  background: #f7f9ff;
  color: #0d1b3e;
  font-size: 0.76rem;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.15s;
  border-radius: 4px;
}

.affil-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.affil-link:hover {
  border-color: #ff5500;
  background: #ff5500;
  color: #0d1b3e;
}

/* ── Publications ── */

.pub-section {
  margin-bottom: 3rem;
}

.pub-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b3e;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ff5500;
}

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

.pub-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f2f8;
  font-size: 0.88rem;
  color: #2a3350;
  font-weight: 300;
  line-height: 1.7;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

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

.pub-item .dash {
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.pub-item a {
  color: #e830f8;
  text-decoration: none;
  border-bottom: 1px solid #e830f8;
}

.pub-item a:hover {
  opacity: 0.7;
}

/* ── CV card ── */

.cv-card {
  background: none;
  border-radius: 8px;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cv-link {
  display: block;
  text-align: center;
  padding: 0.4rem 1rem;
  border: 1px solid #EF6FFB;
  background: #EF6FFB;
  color: #0d1b3e;
  font-size: 0.76rem;
  text-decoration: none;
  margin-top: 1rem;
  font-weight: 400;
  transition: all 0.15s;
  border-radius: 4px;
}

.cv-link:hover {
  border-color: #eaedf3;
  background: #ffffff;
  color: #0d1b3e;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .photo-ring {
    width: 140px;
    height: 140px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .page {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2.5rem;
  }

  .page-full {
    padding: 2.5rem 1.5rem;
  }

  footer {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    padding: 1rem 1.5rem;
  }
}
