:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-muted: #eef2ef;
  --text: #17211f;
  --muted: #53615d;
  --line: #dce3df;
  --accent: #146b5c;
  --accent-dark: #0d4d43;
  --link: #116a8b;
  --shadow: 0 18px 45px rgba(19, 35, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Avenir, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 107, 92, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 107, 92, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 223, 0.86);
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-weight: 750;
  font-size: 1rem;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent-dark);
}

main,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  padding: 72px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
}

.hero-heading {
  max-width: 900px;
}

.hero-profile {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 58px);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 0.92;
  font-weight: 830;
}

.tagline {
  max-width: none;
  margin-bottom: 0;
  color: #2c3936;
  font-size: clamp(1.18rem, 2.1vw, 1.35rem);
  line-height: 1.45;
  font-weight: 500;
  white-space: nowrap;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.18;
  font-weight: 760;
}

.research-control {
  color: var(--accent-dark);
  font-weight: 850;
}

.research-mobility {
  color: #143c5c;
  font-weight: 850;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 760;
}

.lead {
  max-width: 780px;
  color: #2c3936;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.affiliation {
  max-width: 760px;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.contact-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-weight: 700;
}

.contact-links a:hover,
.contact-links a:focus {
  border-color: rgba(20, 107, 92, 0.35);
  background: var(--surface);
  text-decoration: none;
}

.portrait-wrap {
  margin: 0;
}

.portrait {
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

@media (min-width: 1000px) {
  .hero-profile {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .portrait {
    width: min(300px, 100%);
  }
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 980px;
}

.section-intro p:last-child {
  max-width: none;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 28px;
}

.publication {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.publication:first-of-type {
  border-top: 0;
}

.publication img {
  width: 240px;
  height: 160px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface);
}

.title-link {
  color: var(--link);
  font-size: 0.9em;
  font-weight: 750;
  white-space: nowrap;
}

.authors,
.venue {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.venue {
  color: var(--accent-dark);
  font-style: italic;
}

.publication p:last-child,
.activity p,
.simple-list,
.news-list {
  color: var(--muted);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.activity {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(19, 35, 31, 0.04);
}

.activity img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-muted);
}

.activity h3,
.activity p {
  padding: 0 18px;
}

.activity h3 {
  margin-top: 18px;
}

.activity p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.compact-section {
  max-width: 850px;
}

.simple-list,
.news-list {
  padding-left: 0;
  list-style: none;
}

.simple-list li,
.news-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.news-list time {
  display: inline-block;
  min-width: 138px;
  color: var(--text);
  font-weight: 750;
}

.highlight-red {
  color: #8f1d1d;
  font-weight: 850;
}

.footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 0;
    padding-top: 46px;
    gap: 28px;
  }

  .portrait {
    width: 220px;
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main,
  .footer,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .tagline {
    white-space: normal;
  }

  .section {
    padding: 54px 0;
  }

  .hero-profile {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .publication img {
    width: min(100%, 360px);
    height: auto;
    max-height: 230px;
    object-fit: contain;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .news-list time {
    display: block;
    min-width: 0;
    margin-bottom: 4px;
  }

  .footer {
    display: block;
  }

  .footer p + p {
    margin-top: 8px;
  }
}
