:root {
  --ink: #101c34;
  --ink-soft: #4f5d72;
  --paper: #fbfcfe;
  --paper-warm: #f5f2ec;
  --line: #dce2eb;
  --accent: #245ee7;
  --accent-dark: #1746b5;
  --mint: #b8f1de;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(16, 28, 52, 0.13);
  --radius: 24px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(circle at 15% 20%, rgba(36, 94, 231, 0.045), transparent 25%),
    linear-gradient(rgba(16, 28, 52, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 28, 52, 0.024) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 226, 235, 0.78);
  background: rgba(251, 252, 254, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  height: 76px;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  text-decoration: none;
}

.wordmark > span {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--ink);
  border-radius: 50%;
  place-items: center;
}

.wordmark strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  justify-self: end;
  padding: 7px 10px;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.language-switch span {
  opacity: 0.45;
}

.language-switch span.active {
  color: var(--accent);
  font-weight: 800;
  opacity: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 82px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-block: 80px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  margin-top: 12px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 640px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(36, 94, 231, 0.23);
}

.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 16px 32px rgba(36, 94, 231, 0.3);
}

.button-primary svg {
  fill: currentColor;
}

.button-quiet {
  background: var(--white);
  border: 1px solid var(--line);
}

.button-quiet svg,
.paper-links svg,
.email-link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-facts {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 48px;
  margin: 46px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quick-facts div {
  display: grid;
  gap: 2px;
}

.quick-facts dt {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

.portrait-column {
  position: relative;
  max-width: 450px;
  justify-self: end;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: #dfe7e3;
  border: 10px solid var(--white);
  border-radius: 200px 200px 28px 28px;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(16, 28, 52, 0.08);
  pointer-events: none;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.trajectory {
  position: absolute;
  top: -70px;
  right: -62px;
  bottom: -30px;
  left: -80px;
  z-index: 1;
}

.trajectory svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trajectory path {
  stroke: var(--accent);
  stroke-dasharray: 7 10;
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0.5;
}

.trajectory circle:first-of-type {
  fill: var(--accent);
}

.trajectory circle:last-of-type {
  fill: var(--mint);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.portrait-note {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 9px;
  align-items: center;
  width: max-content;
  max-width: 88%;
  margin: -24px auto 0;
  padding: 13px 16px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(16, 28, 52, 0.2);
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(184, 241, 222, 0.12);
}

.band {
  background: var(--paper-warm);
  border-block: 1px solid rgba(16, 28, 52, 0.06);
}

.research,
.publications,
.education {
  padding-block: 112px;
}

.section-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  max-width: 810px;
  margin-bottom: 58px;
}

.section-index {
  margin: 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

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

.research-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 28, 52, 0.08);
  border-radius: var(--radius);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(16, 28, 52, 0.08);
}

.card-number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: #8792a4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.card-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 42px;
  color: var(--accent);
  background: rgba(36, 94, 231, 0.08);
  border-radius: 50%;
  place-items: center;
}

.card-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.research-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.research-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.publication-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(16, 28, 52, 0.08);
}

.publication-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
}

.publication-year span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
}

.publication-year small {
  margin-top: 12px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.publication-body {
  padding: 48px 52px;
}

.paper-type {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.publication-body h3 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.authors {
  margin: 20px 0 2px;
  color: var(--ink-soft);
}

.authors strong {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 5px;
  text-underline-offset: 1px;
}

.venue {
  margin: 0;
  font-size: 14px;
  font-style: italic;
}

.paper-summary {
  max-width: 760px;
  margin: 24px 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paper-links a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.paper-links a:first-child {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.paper-links svg {
  width: 15px;
  height: 15px;
}

.timeline {
  max-width: 930px;
  margin: 0 0 0 70px;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 160px 28px 1fr;
  gap: 24px;
  min-height: 146px;
}

.timeline-date {
  padding-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.timeline-mark {
  position: relative;
}

.timeline-mark::before {
  position: absolute;
  top: 8px;
  left: 7px;
  z-index: 2;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--paper-warm);
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.timeline-mark::after {
  position: absolute;
  top: 19px;
  bottom: -8px;
  left: 14px;
  width: 1px;
  content: "";
  background: #bdc6d4;
}

.timeline li:last-child .timeline-mark::after {
  display: none;
}

.timeline-content h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.timeline-content p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  padding-block: 120px;
}

.contact h2 {
  max-width: 730px;
}

.email-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 8px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.email-link svg {
  width: 20px;
  height: 20px;
}

footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.footer-inner svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 46px;
  }

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

  .research-card {
    min-height: 0;
  }

  .card-icon {
    margin-bottom: 28px;
  }

  .contact {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .section-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav-shell {
    height: 68px;
  }

  .wordmark strong {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 68px 90px;
  }

  .hero-copy {
    order: 2;
  }

  .portrait-column {
    order: 1;
    width: min(76vw, 360px);
    margin-inline: auto;
    justify-self: center;
  }

  .quick-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .research,
  .publications,
  .education {
    padding-block: 80px;
  }

  .section-heading {
    grid-template-columns: 44px 1fr;
    margin-bottom: 42px;
  }

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

  .publication-year {
    flex-direction: row;
    gap: 14px;
    align-items: baseline;
    justify-content: flex-start;
    padding: 24px 28px;
  }

  .publication-year span {
    font-size: 30px;
  }

  .publication-year small {
    margin-top: 0;
  }

  .publication-body {
    padding: 32px 28px 38px;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: auto;
    margin-bottom: 42px;
    padding-left: 24px;
    border-left: 2px solid var(--line);
  }

  .timeline-mark {
    display: none;
  }

  .contact {
    gap: 36px;
    padding-block: 88px;
  }

  .email-link {
    max-width: 100%;
  }

  .email-link span {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
    padding-block: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 3px solid rgba(36, 94, 231, 0.42);
  outline-offset: 4px;
}
