:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --surface-strong: #dfeae7;
  --text: #14212b;
  --text-soft: #52616c;
  --muted: #74818a;
  --line: #d9e0df;
  --accent: #086c73;
  --accent-strong: #07545f;
  --accent-soft: #dbeceb;
  --dark: #102a30;
  --dark-soft: #173a41;
  --dark-text: #edf5f2;
  --dark-muted: #b5c8c5;
  --shadow: 0 18px 50px rgba(18, 42, 48, 0.09);
  --radius: 24px;
  --shell: 1180px;
  --header-height: 72px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Iowan Old Style, Baskerville, "Times New Roman", "Songti SC", SimSun, serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c171c;
  --surface: #122229;
  --surface-soft: #152d33;
  --surface-strong: #1d3b40;
  --text: #eef4f3;
  --text-soft: #b8c6c8;
  --muted: #8ea1a3;
  --line: #274047;
  --accent: #63c5c5;
  --accent-strong: #8dd4d2;
  --accent-soft: #183b40;
  --dark: #071114;
  --dark-soft: #10282e;
  --dark-text: #f3f7f6;
  --dark-muted: #b8c8c6;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

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

button,
a {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

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

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.06;
}

h3 {
  line-height: 1.34;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 26px rgba(16, 42, 48, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.site-nav a {
  position: relative;
  color: var(--text-soft);
  font-size: 0.91rem;
  font-weight: 650;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-toggle,
.nav-toggle {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  background: var(--surface-soft);
  transform: rotate(12deg);
}

.theme-icon {
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: clamp(52px, 8vw, 110px);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-block: clamp(70px, 10vw, 130px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  line-height: 0.92;
}

.hero h1 span {
  display: block;
  margin-top: 22px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-role {
  margin: 28px 0 20px;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 650;
}

.hero-intro {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.72;
}

.current-role {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.current-role strong {
  color: var(--text);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button span {
  transition: transform 160ms ease;
}

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

.button:hover span {
  transform: translate(2px, -2px);
}

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

.button.secondary:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin: 42px 0 0;
}

.hero-facts div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: baseline;
}

.hero-facts dt {
  color: var(--accent-strong);
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-panel {
  position: relative;
}

.profile-panel::before {
  content: "";
  position: absolute;
  top: -26px;
  right: -24px;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.72;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.86;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.profile-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 3px 17px;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-caption p {
  margin-bottom: 0;
}

.profile-location {
  color: var(--text);
  font-weight: 750;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interest-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.section {
  padding-block: clamp(88px, 11vw, 150px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(42px, 8vw, 110px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 78px);
}

.section-heading > p {
  max-width: 520px;
  margin-bottom: 5px;
  color: var(--text-soft);
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 36px;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}

.venue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.venue span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.venue strong {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.publication-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.13rem, 2vw, 1.38rem);
}

.publication-copy > p {
  max-width: 830px;
  margin-bottom: 15px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.publication-copy > p strong {
  color: var(--text);
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--accent-strong);
  font-size: 0.79rem;
  font-weight: 800;
}

.publication-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.muted-link {
  color: var(--muted);
  font-weight: 650;
}

.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}

.on-dark > p {
  color: var(--dark-muted);
}

.on-dark .eyebrow,
.section-dark .eyebrow {
  color: #7dd0cc;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 176px;
  width: 1px;
  background: rgba(255, 255, 255, 0.17);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 54px;
  padding-bottom: 48px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 169px;
  width: 15px;
  height: 15px;
  border: 4px solid var(--dark);
  border-radius: 50%;
  background: #7dd0cc;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.timeline-date {
  padding-top: 2px;
  color: var(--dark-muted);
  font-size: 0.79rem;
  font-weight: 750;
}

.timeline-body h3 {
  margin-bottom: 3px;
  font-size: 1.25rem;
}

.timeline-role {
  margin-bottom: 9px;
  color: #7dd0cc;
  font-size: 0.85rem;
  font-weight: 750;
}

.timeline-body p:last-child {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--dark-muted);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 78px;
}

.credentials-grid article {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--dark-soft);
}

.credentials-grid h3 {
  margin: 18px 0 2px;
}

.credentials-grid p:not(.eyebrow) {
  margin-bottom: 3px;
  color: var(--dark-muted);
}

.credentials-grid span {
  color: #8fa9a9;
  font-size: 0.78rem;
}

.patent-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--dark-muted);
  font-size: 0.9rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(48px, 9vw, 120px);
  align-items: start;
}

.contact h2 {
  max-width: 720px;
  margin-bottom: 26px;
}

.contact > div:first-child > p:last-child {
  max-width: 700px;
  color: var(--text-soft);
}

.contact-links {
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, color 160ms ease;
}

.contact-links a:hover {
  padding-left: 8px;
  color: var(--accent-strong);
}

.contact-links span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-links strong {
  font-size: 0.91rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 280px;
    gap: 48px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p {
    max-width: 720px;
  }

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

@media (max-width: 780px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .brand-name {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .theme-toggle {
    margin: 8px 12px 6px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .hero-copy {
    order: 2;
  }

  .profile-panel {
    order: 1;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
  }

  .profile-panel::before {
    display: none;
  }

  .portrait-frame {
    grid-row: span 2;
    border-radius: 24px;
  }

  .profile-caption {
    align-self: end;
    display: block;
    margin: 0;
  }

  .interest-list {
    align-self: start;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 5.8rem);
  }

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

  .publication {
    grid-template-columns: 100px 1fr;
    gap: 24px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 36px;
  }

  .timeline li::before {
    left: 1px;
  }

  .site-footer .shell {
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 520px) {
  .hero {
    gap: 36px;
  }

  .profile-panel {
    grid-template-columns: 112px 1fr;
  }

  .interest-list li {
    padding: 5px 8px;
    font-size: 0.64rem;
  }

  .hero-actions .button {
    flex: 1 1 140px;
  }

  .hero-facts {
    gap: 18px 28px;
  }

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

  .venue {
    flex-direction: row;
    align-items: center;
  }

  .venue strong {
    font-size: 1.25rem;
  }

  .contact-links a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .theme-toggle,
  .nav-toggle,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section-dark {
    background: #fff;
    color: #000;
  }

  .section {
    padding-block: 40px;
  }
}
