:root {
  --bg: #f4f7f6;
  --surface: #fbfcfb;
  --surface-strong: #ffffff;
  --text: #1f2424;
  --muted: #63706d;
  --line: #d9e0dc;
  --accent: #1f6a72;
  --accent-strong: #12444d;
  --accent-soft: #e3f0ef;
  --gold: #a66f2b;
  --green-soft: #e7efe9;
  --shadow: 0 18px 50px rgba(31, 36, 36, 0.08);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(227, 240, 239, 0.95), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-decoration-color: rgba(20, 63, 73, 0.28);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(244, 247, 246, 0.72);
  border-bottom: 1px solid rgba(217, 224, 220, 0.62);
}

.site-header-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
  min-height: 620px;
  padding: 54px 0 72px;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

h1 span {
  display: inline-block;
  color: var(--muted);
  font-weight: 520;
}

h2 {
  max-width: 820px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 0.8rem;
}

.lead {
  max-width: 710px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.hero-actions,
.link-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.tag-row {
  margin-top: 22px;
}

.tag-row span,
.count-pill,
.pub-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(31, 106, 114, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 760;
}

.button,
.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.profile-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.profile-card div {
  padding: 18px 4px 2px;
}

.profile-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.profile-card .card-title {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 780;
}

.profile-facts {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
}

.profile-facts dt {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.update-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 74px;
}

.update-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.update-strip p {
  color: var(--muted);
  font-size: 0.96rem;
}

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

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

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 780px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.03rem;
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

.research-card,
.publication-card,
.timeline article,
.talk-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.research-card {
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.research-card:hover,
.publication-card:hover,
.talk-card:hover {
  border-color: rgba(31, 106, 114, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.research-card span {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 850;
}

.research-card h3 {
  margin-top: 16px;
}

.research-card p,
.section-note,
.publication-content p,
.timeline p,
.talk-card p {
  color: var(--muted);
}

.section-note {
  max-width: 820px;
  margin-top: 22px;
  font-size: 1.02rem;
}

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

.publication-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.featured-publication {
  border-color: rgba(36, 92, 103, 0.38);
  background: linear-gradient(135deg, rgba(227, 240, 239, 0.92), rgba(255, 255, 255, 0.95));
}

.publication-media {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-strong);
}

.publication-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.publication-media img.paper-preview {
  object-fit: contain;
  background: var(--surface-strong);
}

.publication-content {
  min-width: 0;
  padding: 2px 0;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pub-meta span {
  min-height: 24px;
  padding: 3px 8px;
  border-color: rgba(166, 111, 43, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: var(--gold);
  font-size: 0.74rem;
}

.publication-content h3 {
  font-size: 1.28rem;
}

.authors {
  margin-top: 10px;
  font-size: 0.94rem;
}

.publication-content > p:not(.venue) {
  margin-top: 12px;
}

.link-row {
  margin-top: 16px;
}

.citation {
  margin-top: 14px;
}

.citation summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 760;
}

.citation pre {
  overflow-x: auto;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-strong);
  font-size: 0.82rem;
  line-height: 1.45;
}

.split-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 88px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border-left: 3px solid rgba(31, 106, 114, 0.44);
}

.timeline article.timeline-entry-wide {
  grid-template-columns: 92px minmax(0, 1fr);
}

.timeline-logo {
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 220, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.timeline-logo-wide {
  width: 82px;
}

.timeline-logo img {
  display: block;
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  object-position: center;
}

.timeline-logo-wide img {
  width: 70px;
  height: 32px;
  max-width: 70px;
  max-height: 32px;
}

.timeline-content {
  min-width: 0;
}

.timeline h3 {
  margin: 4px 0 8px;
}

.talk-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.talk-card h3 {
  margin: 4px 0 12px;
}

.talk-card img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .split-section,
  .talk-card,
  .update-strip {
    grid-template-columns: 1fr;
  }

  .publication-card {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 34vw, 300px);
    gap: 32px;
    min-height: auto;
    padding-top: 38px;
  }

  .profile-card {
    max-width: 420px;
  }

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

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

  .sticky-heading {
    position: static;
  }
}

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

  .site-nav {
    justify-content: flex-start;
  }

  main,
  .site-footer {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .site-header-inner {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .publication-card {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 56px 0;
  }

  .publication-card,
  .talk-card,
  .research-card,
  .timeline article {
    padding: 16px;
  }

  .timeline article {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline article.timeline-entry-wide {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .timeline-logo {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .timeline-logo-wide {
    width: 56px;
  }

  .timeline-logo img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  .timeline-logo-wide img {
    width: 48px;
    height: 24px;
    max-width: 48px;
    max-height: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
