:root {
  --ink: #152033;
  --muted: #5e6878;
  --line: #dce3ed;
  --paper: #fbfcfe;
  --band: #edf4f8;
  --accent: #0e5a84;
  --accent-dark: #083d5d;
  --accent-soft: #cfe3ee;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(21, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(251, 252, 254, 0.92);
  border-bottom: 1px solid rgba(220, 227, 237, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.publication-tools {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.86rem;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a:hover,
footer a:hover {
  color: var(--accent);
}

.section,
.hero,
.quick-facts,
footer {
  padding-inline: clamp(18px, 5vw, 64px);
}

.section {
  padding-block: clamp(54px, 8vw, 92px);
}

.section-band {
  background: linear-gradient(180deg, var(--band), #f7fbfd);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 71px);
  padding-block: clamp(42px, 8vw, 96px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lede {
  max-width: 740px;
  margin-bottom: 28px;
  color: #344155;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.button.primary {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.hero-portrait {
  justify-self: center;
  width: min(420px, 82vw);
}

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

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  padding-block: 1px;
}

.quick-facts div {
  min-height: 132px;
  padding: 24px;
  background: var(--white);
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-facts span {
  color: #2f3b4c;
  font-size: 1.05rem;
  font-weight: 720;
  line-height: 1.35;
}

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

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.two-column,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 64px);
}

.two-column p,
.skills-grid p,
.research-grid p,
.timeline p,
.publication p,
.note {
  color: var(--muted);
}

.two-column p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.research-grid article {
  min-height: 260px;
  padding: 24px;
  background: var(--white);
}

.research-grid span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--accent);
  font-weight: 850;
}

.timeline {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 26px;
  background: var(--white);
}

.timeline time {
  color: var(--accent);
  font-weight: 800;
}

.timeline p {
  margin-bottom: 6px;
}

.publication-tools {
  gap: 8px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-button {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: var(--white);
  background: var(--accent);
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publication.is-hidden {
  display: none;
}

.presentation-group + .presentation-group {
  margin-top: 42px;
}

.presentation-group > h3 {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 1.35rem;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication a,
.contact-card a {
  color: var(--accent);
  font-weight: 800;
}

.publication a:hover,
.contact-card a:hover {
  color: var(--accent-dark);
}

.note {
  margin: 20px 0 0;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.software-grid a {
  display: flex;
  min-height: 166px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 160ms ease, border-color 160ms ease;
}

.software-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.software-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.software-grid strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.skills-grid > div,
.contact-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .quick-facts,
  .research-grid,
  .software-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .two-column,
  .skills-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-portrait {
    justify-self: start;
    width: min(360px, 100%);
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .quick-facts,
  .research-grid,
  .software-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts div,
  .research-grid article {
    min-height: auto;
  }

  .publication-tools {
    width: 100%;
    justify-content: space-between;
  }

  footer {
    flex-direction: column;
  }
}
