:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #102a43;
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: #102a43;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: #334e68;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #0b67a6;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  width: 100%;
}

.profile-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-badge img {
  width: 136px;
  height: 136px;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid rgba(11, 103, 166, 0.18);
  image-rendering: auto;
  box-shadow: 0 18px 42px rgba(15, 45, 83, 0.14);
}

.profile-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: #0b6e99;
}

.hero-subtitle {
  margin: 0.25rem 0 0;
  color: #334e68;
  font-size: 1rem;
}

.hero-intro {
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  max-width: 620px;
}

.home-panel {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dbe9f8;
}

.panel-group {
  display: grid;
  gap: 0.75rem;
}

.panel-label {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0b6e99;
}

.home-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.home-panel li a {
  color: #0b3c78;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.home-panel li a:hover {
  color: #084c8f;
  opacity: 0.9;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0b6e99;
}

.section-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.section-text {
  max-width: 600px;
}

.publication-list {
  display: grid;
  gap: 1.25rem;
}

.publication {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid #dbe9f8;
  background: #ffffff;
}

.publication h3 {
  margin-top: 0.5rem;
}

.pub-meta {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #627d98;
}

.card.cluster {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
}

.card-subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #334e68;
}

.award-list span {
  display: block;
  margin-top: 0.25rem;
  color: #627d98;
  font-size: 0.95rem;
}

.award-list small {
  display: block;
  margin-top: 0.15rem;
  color: #7b8fa3;
  font-size: 0.85rem;
}

.award-list small a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.teaching-blocks {
  display: grid;
  gap: 1.25rem;
}

.teaching-list {
  display: grid;
  gap: 1rem;
}

.teaching-list article {
  padding-bottom: 1rem;
  border-bottom: 1px solid #dbe9f8;
}

.teaching-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.teaching-list h4,
.teaching-list p {
  margin: 0;
}

.teaching-list h4 {
  color: #102a43;
  font-size: 1rem;
}

.teaching-list p {
  margin-top: 0.25rem;
  color: #334e68;
}

.teaching-list span {
  display: block;
  margin-top: 0.25rem;
  color: #0b6e99;
  font-size: 0.95rem;
  font-weight: 600;
}

.work-in-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.work-in-progress h3,
.work-in-progress p {
  margin: 0;
}

.work-in-progress p {
  margin-top: 0.35rem;
  color: #334e68;
}

.loading-dot {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #0b67a6;
  box-shadow: 0 0 0 0 rgba(11, 103, 166, 0.32);
  animation: pulse-loading 1.6s ease-out infinite;
}

@keyframes pulse-loading {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 103, 166, 0.32);
  }

  70% {
    box-shadow: 0 0 0 0.75rem rgba(11, 103, 166, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(11, 103, 166, 0);
  }
}

.contact-details {
  margin-top: 1rem;
  color: #334e68;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .site-header,
  .footer-inner,
  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 4rem;
  }

}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button {
  background: #0b67a6;
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
}

.button-secondary {
  background: #eef5fb;
  color: #0b67a6;
}

.cv-download {
  margin-top: 1rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #ffffff;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #f8fbff;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: 24px;
  background: #0b67a6;
  color: #ffffff;
}

.contact-panel p,
.contact-panel h2 {
  color: inherit;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.site-footer p {
  margin: 0;
  color: #627d98;
}

@media (max-width: 768px) {
  .site-header,
  .footer-inner,
  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 4rem;
  }
}
