:root {
  --bg: #ffffff;
  --surface: #f9fcfc;
  --surface-2: #e8f2f2;
  --text: #1d3033;
  --muted: #5d7275;
  --line: #d7e4e5;
  --accent: #004953;
  --accent-2: #287881;
  --ink: #06383f;
  --shadow: 0 24px 70px rgba(0, 73, 83, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }

.section-frame {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 252, 252, 0.86);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.93rem;
}
.nav a {
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.nav a:hover {
  background: rgba(232, 242, 242, 0.85);
  text-decoration: none;
}
.nav .nav-cv {
  background: var(--accent);
  color: white;
}

.hero {
  padding: clamp(1rem, 2vw, 1.75rem) 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
}
.profile-card,
.content-section {
  background: rgba(249, 252, 252, 0.9);
  border: 1px solid rgba(215, 228, 229, 0.95);
  box-shadow: var(--shadow);
}
.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  padding: 1.5rem;
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 230px);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(140deg, rgba(0, 73, 83, 0.96), rgba(40, 120, 129, 0.88)),
    radial-gradient(circle at 20% 20%, white, transparent 30%);
  z-index: 0;
}
.profile-card > * { position: relative; z-index: 1; }
.avatar {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
}
.profile-details {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}
.profile-card h1 {
  margin: 1rem 0 0.15rem;
  color: white;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}
.role,
.affiliation {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}
.role { font-weight: 700; }
.affiliation {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin-top: 0.7rem;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.profile-links a {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
}
.profile-links a:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }

.hero-copy {
  align-self: center;
  padding: 1rem 0;
}
.eyebrow,
.section-kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.65rem;
}
.hero-copy h2 {
  margin: 0 0 1.25rem;
  max-width: 830px;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}
.lead {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  color: var(--ink);
}
.hero-copy p:not(.eyebrow) { max-width: none; }
.hero-copy a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}
.stats div {
  background: rgba(249, 252, 252, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.stats strong {
  display: block;
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
}
.stats span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-grid {
  padding-bottom: 4rem;
}
.content-stack { display: grid; gap: 1.25rem; }
.content-section {
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
}
.section-heading {
  margin-bottom: 1.25rem;
}
.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.with-action {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}
.button-link {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.button-link:hover { text-decoration: none; background: white; }
.cards {
  display: grid;
  gap: 1rem;
}
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
  background: linear-gradient(180deg, white, #f3f9f9);
}
.card-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}
.card h3,
.publication-list h3,
.timeline h3 {
  margin: 0.9rem 0 0.35rem;
  color: var(--ink);
  line-height: 1.2;
}
.card p,
.publication-list p,
.timeline p,
.split-copy p,
.contact-section p { color: var(--muted); }
.card p { margin-bottom: 0; }
.publication-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.publication-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}
.pub-year {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 850;
  font-size: 0.92rem;
}
.publication-list h3 { margin-top: 0; font-size: 1rem; }
.publication-list p { margin: 0; }
.publication-list .pub-doi {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}
.pub-doi a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--line);
}
.timeline article {
  position: relative;
  padding: 0.05rem 0 0.05rem 2.6rem;
}
.timeline article::before {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.36rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--surface-2);
}
.timeline span {
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 800;
}
.timeline h3 { margin-top: 0.1rem; }
.timeline p { margin: 0; }
.timeline p a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 3vw, 2rem);
}
.split-copy p:first-child { margin-top: 0; }
.split-copy p:last-child { margin-bottom: 0; }
.split-copy a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 1.25rem;
  align-items: center;
  background: var(--ink);
  color: white;
}
.contact-section .section-kicker { color: #9dd5d5; }
.contact-section h2,
.contact-section p { color: white; }
.contact-card {
  display: grid;
  gap: 0.75rem;
}
.contact-card a {
  display: block;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.08);
}
.contact-card a:hover { text-decoration: none; background: rgba(255,255,255,0.14); }
.footer {
  color: var(--muted);
  padding: 0 0 3rem;
  font-size: 0.92rem;
}

@media (max-width: 940px) {
  .hero-grid,
  .split-section,
  .contact-section { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr; }
  .profile-card { min-height: 320px; }
}

@media (max-width: 680px) {
  .topbar-inner { align-items: flex-start; padding: 0.8rem 0; }
  .nav { justify-content: flex-start; }
  .hero { padding-top: 0.75rem; }
  .profile-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .avatar {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 190px);
    justify-self: end;
  }
  .profile-details {
    grid-row: 2;
  }
  .stats { grid-template-columns: 1fr; }
  .publication-list li { grid-template-columns: 1fr; }
  .pub-year { width: fit-content; height: auto; padding: 0.35rem 0.55rem; border-radius: 999px; }
}
