:root {
  /* Core Palette — Vascular & Academic Monograph */
  --paper: #faf8f3;
  --paper-elevated: #ffffff;
  --soft: #f2efe8;
  --soft-hover: #eae6dc;
  --ink: #131b18;
  --ink-secondary: #2e3a35;
  --muted: #55625c;
  --line: #dedad0;
  --line-subtle: #e9e5dc;

  /* Biomedical Pigments */
  --green: #1a6350;
  --green-soft: rgba(26, 99, 80, 0.09);
  --blue: #29527a;
  --blue-soft: rgba(41, 82, 122, 0.09);
  --red: #8e352e;
  --red-soft: rgba(142, 53, 46, 0.09);
  --gold: #9e7329;
  --gold-soft: rgba(158, 115, 41, 0.11);
  --white: #ffffff;

  /* Typography */
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", "Noto Serif SC", Georgia, serif;

  /* Elevation & Layout */
  --shadow-sm: 0 4px 14px rgba(19, 27, 24, 0.05);
  --shadow: 0 20px 50px rgba(19, 27, 24, 0.09);
  --shadow-lg: 0 30px 70px rgba(19, 27, 24, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container-max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 64px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

/* ==============================================
   Accessibility Skip Link
   ============================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 20px;
  z-index: 1000;
  padding: 10px 20px;
  background: var(--green);
  color: #ffffff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 0;
}

/* ==============================================
   Site Header & Navigation
   ============================================== */
.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  border-bottom: 1px solid rgba(19, 27, 24, 0.06);
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.site-header[data-scrolled="true"] {
  border-color: var(--line);
  background: rgba(250, 248, 243, 0.94);
  box-shadow: 0 8px 28px rgba(19, 27, 24, 0.06);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--green), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.08s linear;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 64px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(26, 99, 80, 0.28);
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.brand:hover .brand-mark {
  background: var(--green);
  color: #ffffff;
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  color: var(--ink-secondary);
  font-size: 14.5px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-grid;
  place-items: center;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
  background: var(--paper-elevated);
  border-color: var(--green);
  color: var(--green);
}

html[data-theme="dark"] .lang-switch {
  background: var(--paper-elevated);
}

.theme-toggle,
.nav-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.nav-toggle:hover {
  background: var(--paper-elevated);
  border-color: var(--green);
  color: var(--green);
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-toggle {
  display: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.8px;
  margin: 3.5px auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

/* ==============================================
   Hero Section
   ============================================== */
.hero {
  position: relative;
  padding: clamp(114px, 13vw, 152px) 0 clamp(64px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 22%, rgba(26, 99, 80, 0.07), transparent 44%),
    radial-gradient(circle at 86% 75%, rgba(142, 53, 46, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(242, 239, 232, 0.45) 0%, rgba(250, 248, 243, 0) 100%);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 410px);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.affiliation-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(26, 99, 80, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 99, 80, 0.18);
}

h1 {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 22px;
}

h1 .name-zh {
  font-family: var(--font-serif);
  font-size: clamp(46px, 6.2vw, 74px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 .name-en {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
}

h1 .name-en em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  font-size: 0.88em;
}

.hero-role {
  margin-bottom: 22px;
  color: var(--ink-secondary);
  font-size: clamp(16px, 1.5vw, 18.5px);
  font-weight: 600;
}

.lead {
  max-width: 64ch;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.8;
}

.lead strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-tags span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button,
.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.link-row a:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 10px 26px rgba(26, 99, 80, 0.22);
}

.button.primary:hover {
  background: #145141;
  box-shadow: 0 14px 32px rgba(26, 99, 80, 0.3);
}

.button.secondary,
.link-row a {
  border: 1px solid var(--line);
  background: var(--paper-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover,
.link-row a:hover {
  border-color: var(--green);
  color: var(--green);
}

.button.ghost {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding-inline: 14px;
}

.button.ghost:hover {
  color: var(--ink);
  background: rgba(19, 27, 24, 0.04);
}

/* Portrait Frame */
.portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}

.portrait-frame {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-elevated);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid rgba(26, 99, 80, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(26, 99, 80, 0.06), rgba(41, 82, 122, 0.05));
  content: "";
}

.portrait-image-box {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #d8d9dd;
}

.portrait-image-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: 50% 14%;
  filter: contrast(1.02) saturate(1.02);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-frame:hover .portrait-image-box img {
  transform: scale(1.02);
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 8px 4px;
}

.caption-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.caption-main strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.caption-main span {
  font-size: 12px;
  color: var(--muted);
}

.caption-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==============================================
   Key Metrics Bar
   ============================================== */
.stats-bar {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-cell {
  padding: clamp(24px, 3.2vw, 36px) clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--line);
}

.stat-cell:first-child {
  padding-left: 0;
}

.stat-cell:last-child {
  border-right: 0;
  padding-right: 0;
}

.stat-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.stats strong {
  color: var(--red);
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

.stat-title {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.stat-desc {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ==============================================
   Sections & Editorial Headings
   ============================================== */
.section {
  padding: clamp(68px, 9vw, 116px) 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--soft);
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.section-heading h2,
.intro-grid h2,
.contact-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-sub {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}

/* ==============================================
   About & Mechanism Atlas
   ============================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  padding-bottom: clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--line-subtle);
}

.intro-text {
  display: grid;
  gap: 18px;
  color: var(--ink-secondary);
  font-size: 17px;
  line-height: 1.82;
}

.intro-text p {
  margin: 0;
}

.intro-text strong {
  color: var(--ink);
  font-weight: 600;
}

.atlas-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 52px);
  margin-bottom: 24px;
}

.atlas-header h3 {
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.atlas-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.profile-figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-elevated);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
}

.profile-figure:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.figure-media {
  position: relative;
  padding: 14px;
  background: #fdfcf9;
  border-bottom: 1px solid var(--line-subtle);
  cursor: zoom-in;
}

.figure-media:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.profile-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.35s ease;
}

.figure-media:hover img {
  transform: scale(1.03);
}

.figure-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(19, 27, 24, 0.75);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.figure-media:hover .figure-zoom-hint,
.figure-media:focus-visible .figure-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.profile-figure figcaption {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.figcaption-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.figure-tag {
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.figure-journal {
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
}

.profile-figure figcaption h4 {
  margin-bottom: 8px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.profile-figure figcaption p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
  flex: 1;
}

.profile-paper-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-paper-link:hover {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

/* ==============================================
   Research Pillar Cards
   ============================================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.research-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.2vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.accent-green::before { background: var(--green); }
.accent-blue::before  { background: var(--blue); }
.accent-red::before   { background: var(--red); }

.research-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.research-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.research-domain {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
}

.accent-green .research-domain { color: var(--green); }
.accent-blue .research-domain  { color: var(--blue); }
.accent-red .research-domain   { color: var(--red); }

.research-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.accent-green .research-icon {
  background: var(--green-soft);
  color: var(--green);
}

.accent-blue .research-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.accent-red .research-icon {
  background: var(--red-soft);
  color: var(--red);
}

.research-item h3 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}

.research-item > p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.research-highlights {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-subtle);
  list-style: none;
  flex: 1;
}

.research-highlights li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.62;
}

.research-highlights li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
}

.accent-green .research-highlights li::before { background: var(--green); }
.accent-blue .research-highlights li::before  { background: var(--blue); }
.accent-red .research-highlights li::before   { background: var(--red); }

.research-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.research-keywords span {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* ==============================================
   Publications Section (56 Verified Records)
   ============================================== */
.split-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.64fr) minmax(0, 1.36fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 96px;
  margin-bottom: 0;
}

.pub-summary {
  margin-top: 14px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.inline-highlight {
  color: var(--red);
  font-weight: 700;
}

.author-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--muted);
  font-size: 12.5px;
}

.author-legend sup {
  color: var(--red);
  font-weight: 700;
}

.publication-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.publication-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  color: var(--ink);
  background: rgba(19, 27, 24, 0.05);
}

.tab.active {
  background: var(--ink);
  color: #ffffff;
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(19, 27, 24, 0.08);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
}

.publication-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  justify-content: flex-end;
}

.pub-search-wrap {
  flex: 1 1 200px;
  max-width: 280px;
}

.pub-search,
.pub-year-select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-elevated);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-search {
  width: 100%;
}

.pub-year-select {
  cursor: pointer;
  font-weight: 500;
}

.pub-search:focus,
.pub-year-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 99, 80, 0.14);
}

.publication-statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line-subtle);
  background: rgba(242, 239, 232, 0.4);
  font-size: 12.5px;
  color: var(--muted);
}

.status-count {
  font-weight: 700;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.publication-list {
  display: grid;
}

.publication-list:focus {
  outline: none;
}

.publication {
  display: grid;
  grid-template-columns: clamp(220px, 31%, 290px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color 0.2s ease;
}

.publication:last-child {
  border-bottom: 0;
}

.publication[hidden] {
  display: none;
}

.publication:hover {
  background-color: rgba(242, 239, 232, 0.55);
}

.publication-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pub-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.publication-meta time {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pub-month {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.if-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pub-journal {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.35;
}

.pub-journal strong em {
  color: var(--green);
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
}

.pub-authors {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.58;
}

.pub-authors .me {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(26, 99, 80, 0.45);
  text-underline-offset: 3px;
}

.pub-authors sup {
  position: relative;
  top: -0.28em;
  margin-left: 1px;
  color: var(--red);
  font-size: 0.75em;
  font-weight: 800;
}

.authors-details {
  margin-top: 6px;
}

.authors-details summary {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.authors-details summary:hover {
  border-color: var(--green);
  color: var(--green);
}

.authors-details p {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.publication-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.publication-main h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.65vw, 20px);
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
}

.publication-main h3 a {
  transition: color 0.18s ease;
}

.publication-main h3 a:hover {
  color: var(--green);
}

.pub-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pub-citation {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.paper-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pubmed-link,
.doi-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--paper);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pubmed-link {
  color: var(--blue);
}

.doi-link {
  color: var(--green);
}

.pubmed-link::after,
.doi-link::after {
  content: "↗";
  font-size: 10.5px;
}

.pubmed-link:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.doi-link:hover {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.pub-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}

.pub-empty[hidden] {
  display: none;
}

.pub-empty p {
  margin: 0;
  font-size: 15px;
}

/* ==============================================
   Academic Timeline
   ============================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline-card.current {
  border-top: 3px solid var(--green);
}

.timeline-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.timeline-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 14px;
}

.timeline time {
  color: var(--green);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.timeline h3 {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.timeline-role {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ==============================================
   Funding & Honors
   ============================================== */
.two-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4.5vw, 48px);
}

.list-block {
  padding: clamp(24px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius-md);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-sm);
}

.list-block.honors {
  border-top-color: var(--red);
}

.list-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.list-block h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.list-block ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-block li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.list-block li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.item-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-main strong {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.grant-code {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.item-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.grant-amount {
  color: var(--green);
  font-weight: 700;
}

.honor-year {
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==============================================
   Contact Section
   ============================================== */
.contact-section {
  background: #131c19;
  color: #f4f1ea;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.contact-section .section-index {
  color: #77c2aa;
}

.contact-section h2 {
  color: #faf8f3;
  margin-bottom: 0;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3.2vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  font-style: normal;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-label {
  color: rgba(244, 241, 234, 0.52);
  font-size: 12px;
  font-weight: 500;
}

.contact-row a,
.contact-row span:not(.contact-label) {
  color: #faf8f3;
  font-size: 16px;
  font-weight: 500;
}

.contact-row .contact-main-link {
  color: #77c2aa;
  font-size: 18px;
  font-weight: 700;
}

.contact-row a:hover {
  text-decoration: underline;
}

/* ==============================================
   Footer
   ============================================== */
footer {
  background: #0e1513;
  color: rgba(244, 241, 234, 0.6);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a {
  color: rgba(244, 241, 234, 0.82);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #77c2aa;
}

/* ==============================================
   Lightbox Modal
   ============================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 15, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-elevated);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.lightbox-content img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #fdfcf9;
  padding: 20px;
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
}

.lightbox-caption-text {
  flex: 1 1 420px;
}

.lightbox-caption h4 {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 19px;
}

.lightbox-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ==============================================
   Entrance Motion
   ============================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.animate-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.animate-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }

.animate-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll.is-visible,
  .animate-stagger > *,
  .animate-stagger.is-visible > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==============================================
   Dark Mode Theme
   ============================================== */
html[data-theme="dark"] {
  --paper: #0f1412;
  --paper-elevated: #171e1b;
  --soft: #131917;
  --soft-hover: #1d2622;
  --ink: #eae6dd;
  --ink-secondary: #c5c1b7;
  --muted: #939188;
  --line: #26302b;
  --line-subtle: #1e2723;

  --green: #52b695;
  --green-soft: rgba(82, 182, 149, 0.14);
  --blue: #6da1d9;
  --blue-soft: rgba(109, 161, 217, 0.14);
  --red: #d47b71;
  --red-soft: rgba(212, 123, 113, 0.14);
  --gold: #d4a656;
  --gold-soft: rgba(212, 166, 86, 0.15);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 20, 18, 0.84);
  border-color: rgba(234, 230, 221, 0.06);
}

html[data-theme="dark"] .site-header[data-scrolled="true"] {
  background: rgba(15, 20, 18, 0.94);
  border-color: var(--line);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .nav-toggle {
  background: var(--paper-elevated);
}

html[data-theme="dark"] .affiliation-pill {
  background: rgba(23, 30, 27, 0.85);
  border-color: rgba(82, 182, 149, 0.28);
}

html[data-theme="dark"] .hero-tags span {
  background: rgba(23, 30, 27, 0.75);
}

html[data-theme="dark"] .button.primary {
  background: var(--green);
  color: #0d1311;
}

html[data-theme="dark"] .button.primary:hover {
  background: #66c5a6;
}

html[data-theme="dark"] .figure-media,
html[data-theme="dark"] .lightbox-content img {
  background: #f6f4ee;
}

html[data-theme="dark"] .tab.active {
  background: var(--green);
  color: #0f1412;
}

html[data-theme="dark"] .tab.active .tab-count {
  background: rgba(15, 20, 18, 0.22);
}

html[data-theme="dark"] .publication-statusbar {
  background: rgba(19, 25, 23, 0.6);
}

html[data-theme="dark"] .publication:hover {
  background-color: rgba(234, 230, 221, 0.03);
}

/* ==============================================
   Responsive Design
   ============================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .intro-grid,
  .split-section,
  .contact-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    max-width: 340px;
    margin-inline: 0;
  }

  .profile-visuals,
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 64px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper-elevated);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover {
    background: var(--soft);
  }

  .site-nav a::after {
    display: none;
  }

  .stats,
  .profile-visuals,
  .research-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-cell:last-child {
    border-bottom: 0;
  }

  .publication-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .publication-filters {
    flex: 1 1 auto;
    justify-content: stretch;
  }

  .pub-search-wrap {
    max-width: none;
    flex: 1 1 180px;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
