:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #0f1f33;
  --text: #34414f;
  --muted: #66748a;
  --faint: #94a0b3;
  --line: #e3e9f2;
  --blue: #1f5fbf;
  --blue-dark: #16448c;
  --blue-deep: #0f2f63;
  --blue-soft: #eaf1fb;
  --blue-tint: #f0f5fd;
  --content-w: 820px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue-dark);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 14px 32px;
}

.topbar-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.topbar-name:hover {
  color: var(--blue);
}

.topbar-nav {
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.topbar-nav a:hover {
  color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(circle at 88% -10%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(135deg, var(--blue-deep), var(--blue) 75%, #2d74d8);
  color: #fff;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 76px 32px 80px;
}

.hero-text {
  max-width: 560px;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-name span {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

.hero-alt {
  display: block;
  margin-top: 4px;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

.hero-affil {
  margin: 10px 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.hero-advisor {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-lead strong {
  font-weight: 600;
  color: #fff;
}

.hero-lead {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.hero-lead em {
  font-style: italic;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn.primary {
  background: #fff;
  border-color: #fff;
  color: var(--blue-dark);
}

.btn.primary:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.hero-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Content ---------- */

.content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 56px 32px 72px;
}

.block {
  margin-bottom: 52px;
}

.block:last-of-type {
  margin-bottom: 0;
}

#about p {
  margin: 0;
  font-size: 1.06rem;
}

.section-label {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 12px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.section-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}

/* Research thesis + pillars */

.research-thesis {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
}

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

.pillar {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 47, 99, 0.04);
}

.pillar-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pillar-name {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.pillar-q {
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
}

.pillar-q em {
  font-style: italic;
}

.pillar-desc {
  margin: 12px 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.pillar-works {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pillar-works span {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--blue-tint);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-dark);
}

/* Vision: self-evolving loop */

.vision-lead {
  margin: 0 0 24px;
  max-width: 70ch;
}

.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 0 0 24px;
}

.loop-fig {
  margin: 0;
}

.loop-fig img {
  display: block;
  width: 100%;
  height: auto;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.loop-fig figcaption {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.loop li {
  position: relative;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
}

.loop li:not(:last-child)::after {
  content: "\2193";
  position: absolute;
  left: 26px;
  bottom: -18px;
  transform: translateX(-50%);
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.loop-stage {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.loop-sig {
  display: block;
  margin-top: 5px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.vision-note {
  margin: 0;
  padding: 18px 20px;
  background: var(--blue-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  max-width: 74ch;
}

.vision-note strong {
  color: var(--blue-dark);
}

/* Publications */

.note {
  margin: -10px 0 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.pubs {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pub;
  display: grid;
  gap: 16px;
}

.pub {
  counter-increment: pub;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 47, 99, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pub:hover {
  box-shadow: 0 10px 26px rgba(15, 47, 99, 0.1);
  transform: translateY(-2px);
}

.pub-fig {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.pub-fig img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pub-fig:hover {
  border-color: var(--blue);
}

.pub-body {
  min-width: 0;
}

.pub-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
}

.pub-title::before {
  content: "[" counter(pub) "]\00a0\00a0";
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--faint);
}

.pub-venue {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0 0;
}

.tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag.preprint {
  background: #eef1f5;
  color: #5a6675;
}

.tag.theme {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag.oral {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(31, 95, 191, 0.28);
}

.pub-desc {
  margin: 12px 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.pub-links {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.pub-links a {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue-dark);
  font-weight: 600;
  background: var(--blue-tint);
}

.pub-links a:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

/* Experience */

.entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entries li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 6px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.entries li:first-child {
  border-top: none;
  padding-top: 0;
}

.entry-when {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
  padding-top: 1px;
}

.entry-what strong {
  color: var(--ink);
  font-weight: 600;
}

.dim {
  color: var(--faint);
}

/* Footer */

.page-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--faint);
}

.page-footer p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .topbar-nav {
    gap: 18px;
    font-size: 0.86rem;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 28px;
    padding: 52px 24px 56px;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-avatar {
    width: 92px;
    height: 92px;
    font-size: 2.1rem;
  }

  .content {
    padding: 40px 24px 56px;
  }

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

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .loop-fig img {
    max-width: 460px;
    margin: 0 auto;
  }

  .pub {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pub-fig {
    height: 170px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .topbar-inner {
    padding: 12px 20px;
  }

  .topbar-nav a:nth-child(1) {
    display: none;
  }

  .hero-inner {
    padding: 44px 20px 48px;
  }

  .content {
    padding: 36px 20px 48px;
  }

  .pub {
    padding: 16px;
  }

  .entries li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
