:root {
  --paper: #fff;
  --paper-deep: #edf4f3;
  --white: #fff;
  --ink: #17343d;
  --muted: #4d6369;
  --accent: #17655f;
  --accent-dark: #104d49;
  --line: #d5e1e0;
  --nav: #113e46;
  --nav-highlight: #23616a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --shell: 1152px;
  --masthead-height: 84px;
  --nav-height: 54px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead-height) + var(--nav-height) + 17px);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > main { flex: 1 0 auto; min-width: 0; }
body[data-page]:not([data-page="home"]) > main {
  display: flex;
  flex-direction: column;
}
body[data-page]:not([data-page="home"]) > main > :is(.section, .contact-section) { flex: 1 0 auto; }

::selection { background: #cde7e2; color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p + p { margin-top: 1em; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }

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

[hidden] { display: none !important; }

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

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

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

/* Masthead, banner and section navigation */
.masthead, .lab-banner, .site-header, .site-footer { flex: 0 0 auto; }

.masthead {
  position: sticky;
  z-index: 40;
  top: 0;
  background: var(--white);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--masthead-height);
  padding-block: 12px;
}

.brand {
  display: grid;
  grid-template-columns: 46px minmax(0, auto);
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-decoration: none;
  line-height: 1.25;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
}

.brand-wordmark { display: grid; gap: 4px; min-width: 0; }
.brand-name { font-size: 29px; font-weight: 730; line-height: 1; letter-spacing: -.055em; }
.brand-name > span { color: var(--accent); font-weight: 580; }
.brand-caption { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.language-switch > span { color: #789095; }
.language-link { padding: 9px 6px; text-decoration: none; }
.language-link:hover, .language-link[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; }
.language-link[aria-current="page"] { font-weight: 700; }

.lab-banner {
  overflow: hidden;
  height: clamp(158px, 19.3vw, 300px);
  background: #123e48;
}

.lab-banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: var(--masthead-height);
  background: var(--nav);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: var(--nav-height);
}

#site-nav { display: flex; flex: 1; align-items: stretch; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--nav-height);
  padding: 9px clamp(13px, 1.8vw, 25px);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover, #site-nav [aria-current="page"] { background: var(--nav-highlight); }

#site-nav [aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #a5d8cf;
  content: "";
}

.nav-contact { margin-inline-start: auto; }
.site-header :focus-visible { outline-color: #a5d8cf; outline-offset: -4px; }
.header-controls, .menu-toggle { display: none; }
.menu-icon { font-size: 20px; line-height: 1; }

/* Overview */
.hero { border-bottom: 1px solid var(--line); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 236px);
  align-items: start;
  gap: clamp(30px, 6vw, 84px);
  padding-block: 52px;
}

.hero-copy, .portrait-panel { min-width: 0; }

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.status-line::before {
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.hero-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.hero-title > span { color: var(--accent); }

.hero-subtitle {
  max-width: 640px;
  margin-top: 13px;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 550;
  line-height: 1.4;
}

.hero-description {
  max-width: 64ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button.secondary { border-color: #9bb5b5; background: transparent; color: var(--accent-dark); }
.button.secondary:hover { border-color: var(--accent); background: var(--paper-deep); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 19px; }
.social-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.social-links a:hover { color: var(--accent-dark); text-decoration: underline; }

.portrait-panel {
  border: 1px solid var(--line);
  background: #f4f8f7;
}

.portrait-frame { background: var(--paper-deep); }

.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 25%;
}

.portrait-caption { padding: 12px 13px; border-top: 1px solid var(--line); }
.portrait-name { display: block; font-size: 13px; font-weight: 650; }
.portrait-role { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Section headings and research topics */
.section { padding-block: 66px; }
.section + .section { border-top: 1px solid var(--line); }
.section-white { background: #f5f9f8; }
.section-heading { margin-bottom: 30px; }

.section-heading :is(h1, h2) {
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 47px);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: -.035em;
}

.research-grid { border-top: 1px solid var(--line); }

.research-item {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(23px, 4vw, 52px);
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.research-figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.research-figure img { width: 100%; height: auto; }

.research-copy { min-width: 0; align-self: center; }

.research-copy h3 {
  color: var(--ink);
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.research-copy > p {
  max-width: 66ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.research-copy .text-link {
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 13px;
}

html:lang(zh) {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --serif: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
}

html:lang(zh) body { line-height: 1.8; }
html:lang(zh) .brand-caption { letter-spacing: .09em; }
html:lang(zh) .hero-subtitle { line-height: 1.55; }
html:lang(zh) .hero-description, html:lang(zh) .research-copy > p { line-height: 1.95; }
html:lang(zh) .section-heading :is(h1, h2), html:lang(zh) .contact-section h1 { line-height: 1.4; letter-spacing: 0; }
html:lang(zh) .research-copy h3 { line-height: 1.45; letter-spacing: 0; }
html:lang(zh) .publication-title { font-family: var(--sans); font-size: 20px; font-weight: 550; line-height: 1.6; letter-spacing: 0; }
html:lang(zh) .software-item h3 { line-height: 1.5; }
html:lang(zh) .software-item > p, html:lang(zh) .timeline-content { line-height: 1.95; }
html:lang(zh) .teaching-title { font-family: var(--sans); font-size: 18px; line-height: 1.8; }

.publication-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: -5px;
  margin-bottom: 8px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--ink);
}
.publication-toolbar input,
.publication-toolbar select {
  min-height: 47px;
  border: 1px solid var(--line);
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  font-size: 13px;
}
.publication-toolbar input {
  width: min(100%, 390px);
  min-width: 0;
  padding: 12px 15px;
}
.publication-toolbar input::placeholder { color: #6a7478; opacity: 1; }
.publication-toolbar select { min-width: 140px; padding: 12px 30px 12px 13px; }
.result-count { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.search-label, .year-label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .035em; }
.search-label { flex: 1 1 390px; max-width: 440px; min-width: 0; }
.year-label { flex: 0 0 145px; }
.search-label input, .year-label select { width: 100%; }
.publication-toolbar .result-count { align-self: flex-end; padding-bottom: 14px; }
.publications-list { margin: 0; padding: 0; list-style: none; }
.publication {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.publication-year { padding-top: 3px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.publication-body { min-width: 0; }
.publication-title { max-width: 1040px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.35; letter-spacing: -.015em; }
.publication-title, .teaching-title { overflow-wrap: anywhere; }
.publication-title a { text-decoration: none; transition: color .18s ease; }
.publication-title a:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-color: #91b7b2; }
.publication-authors { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.publication-authors strong { color: var(--ink); font-weight: 650; }
.publication-journal { margin-top: 5px; color: var(--ink); font-size: 12px; line-height: 1.7; }
.publication-journal em { font-style: italic; }
.publication-notes { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.citation-details { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.citation-details summary { display: list-item; width: fit-content; cursor: pointer; color: var(--muted); font-size: 10px; text-underline-offset: 3px; }
.citation-details summary:hover { color: var(--accent); }
.citation-details > p { margin-top: 11px; padding-left: 13px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.citation-details a { color: var(--ink); text-decoration-color: #c0c5be; }
.empty-state { padding: 38px 0; color: var(--muted); }
#show-all { margin-top: 30px; }

.software-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 68px; }
.software-item { min-width: 0; padding: 25px 0 31px; border-top: 1px solid var(--line); }
.software-item h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.software-item h3 a { text-decoration: none; overflow-wrap: anywhere; }
.software-item h3 a:hover { color: var(--accent); }
.software-item > p { max-width: 480px; margin-top: 15px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.text-link { display: inline-block; margin-top: 22px; color: var(--ink); font-size: 11px; font-weight: 650; letter-spacing: .02em; text-decoration: none; }
.text-link:hover { color: var(--accent); text-decoration: underline; }

.teaching-list { border-top: 1px solid var(--ink); }
.teaching-row { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 50px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.teaching-title { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.4; letter-spacing: -.015em; }
.teaching-detail { align-self: center; color: var(--muted); font-size: 12px; line-height: 1.8; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; }
.about-grid > div { min-width: 0; }
.about-grid h3 { margin-bottom: 24px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 20px; padding-block: 23px; border-bottom: 1px solid var(--line); }
.timeline-year { padding-top: 2px; color: var(--accent); font-size: 11px; line-height: 1.7; }
.timeline-content { font-size: 13px; line-height: 1.8; }
.timeline-content p + p { margin-top: 7px; }
.timeline-content strong { font-weight: 600; }
.timeline-content ul { margin: 9px 0 0; padding-left: 16px; color: var(--muted); font-size: 11px; }
.timeline-content li + li { margin-top: 6px; }
.timeline-content a { text-decoration-color: #b7bbb4; }
.timeline-content a:hover { color: var(--accent); }
.people-grid,
.students-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}
.people-grid { margin: 0; max-width: 770px; }
.person-card { min-width: 0; }
.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--paper-deep);
}
.person-card .pi-role { object-fit: cover; object-position: center top; }
.person-card h2 {
  margin-top: 14px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
}
.person-card h2 > span { display: block; margin-top: 4px; font-size: .75em; }
.person-card > p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.students-list { margin: 18px 0 0; }
.students-block { margin-top: 48px; }
.students-block > h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.3; }
.student-item { min-width: 0; padding-top: 17px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.student-item h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.student-item strong { display: block; font-weight: 600; }
.student-item p { color: var(--muted); font-size: 12px; }
.student-item a { color: var(--accent-dark); text-underline-offset: 3px; }
.students-bookmark { margin-top: 28px; color: var(--accent-dark); font-size: 14px; }
.talks-disclosure { margin-top: 43px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.talks-disclosure summary { position: relative; padding: 24px 45px 24px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 25px; line-height: 1.35; letter-spacing: -.025em; }
.talks-disclosure summary::-webkit-details-marker { display: none; }
.talks-disclosure summary::after { position: absolute; top: 23px; right: 2px; content: "+"; color: var(--accent); font-family: var(--sans); font-size: 25px; font-weight: 300; }
.talks-disclosure[open] summary::after { content: "−"; }
.talks-disclosure summary:hover { color: var(--accent-dark); }
.disclosure-icon { display: none; }
.talk-count { display: inline-block; margin-left: 12px; color: var(--muted); font-family: var(--sans); font-size: 10px; font-weight: 400; letter-spacing: .03em; vertical-align: middle; }
.talks-list { margin: 0; padding: 0 0 15px; list-style: none; }
.talk-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding-block: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.85; }
.talk-row > span { color: var(--accent); font-size: 11px; }
.talk-row > p { margin: 0; }
.talk-row a { color: var(--ink); }
.service-note { max-width: 1050px; margin-top: 35px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.service-note strong { color: var(--ink); font-weight: 600; }
.service-disclosure { margin-top: 0; border-top: none; }
.service-disclosure .service-note { margin-top: 0; padding-bottom: 25px; }

.contact-section { padding-block: 68px; background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 68px; }
.contact-section .eyebrow { color: #9ad2c8; }
.contact-section h1 { max-width: 530px; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; }
.contact-copy { max-width: 475px; margin-top: 23px; color: #c3cdce; font-size: 14px; line-height: 1.85; }
.contact-grid > div + div { padding-top: 35px; }
.contact-email { display: inline-block; max-width: 100%; padding-bottom: 9px; border-bottom: 1px solid #697781; font-family: var(--serif); font-size: clamp(19px, 2.25vw, 29px); line-height: 1.3; letter-spacing: -.025em; text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { color: #a8d9d0; border-color: #a8d9d0; }
.contact-address { max-width: 450px; margin-top: 25px; color: #c3cdce; font-size: 13px; line-height: 1.95; }
.contact-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.contact-links a { color: #c3cdce; font-size: 11px; text-decoration: none; }
.contact-links a:hover { color: var(--white); text-decoration: underline; }
.contact-section :focus-visible { outline-color: #a8d9d0; }
.site-footer { padding-block: 23px; background: #103039; color: #aebac0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; font-size: 10px; letter-spacing: .025em; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 1160px) {
  .shell { width: calc(100% - 72px); }
  .software-grid, .about-grid, .contact-grid { column-gap: 42px; }
  .timeline-item { grid-template-columns: 93px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 920px) {
  :root { --masthead-height: 74px; --nav-height: 49px; }

  .shell { width: calc(100% - 56px); }
  .brand { grid-template-columns: 40px minmax(0, auto); gap: 11px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 26px; }
  .brand-caption { font-size: 9px; }

  /* Keep direct links available while the menu script is unavailable. */
  body:not([data-nav-ready]) .site-header { position: static; }

  #site-nav {
    flex-wrap: wrap;
    padding-block: 4px;
  }

  body[data-nav-ready] .header-controls { display: flex; width: 100%; }

  body[data-nav-ready] .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: var(--nav-height);
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 650;
  }

  body[data-nav-ready] #site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: min(470px, calc(100dvh - var(--masthead-height) - var(--nav-height) - 18px));
    overflow-y: auto;
    padding: 6px 28px 12px;
    border-top: 1px solid #4b757a;
    background: var(--nav);
    box-shadow: 0 10px 20px #17343d24;
  }

  body[data-nav-ready] #site-nav.open { display: flex; }
  .nav-link { min-height: 43px; padding: 9px 12px; }
  body[data-nav-ready] #site-nav [aria-current="page"]::after {
    inset: 0 auto 0 0;
    width: 3px;
    height: auto;
  }
  .nav-contact { margin-inline-start: 0; }
  .hero-grid { padding-block: 43px; }
  .publication { grid-template-columns: 53px minmax(0, 1fr); gap: 15px; }
  .publication-title { font-size: 21px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .contact-email { font-size: 24px; }
}

@media (max-width: 680px) {
  :root { --masthead-height: 66px; }

  .shell { width: calc(100% - 40px); }
  .masthead-inner { gap: 9px; }
  .brand { grid-template-columns: 37px minmax(0, auto); gap: 9px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-name { font-size: 23px; }
  .brand-caption { font-size: 8px; letter-spacing: .07em; }
  .language-switch { gap: 3px; font-size: 11px; }
  .language-link { padding-inline: 4px; }
  .lab-banner { height: clamp(106px, 28vw, 150px); }
  body[data-nav-ready] #site-nav { padding-inline: 20px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 33px; }
  .hero-title { font-size: clamp(39px, 10vw, 51px); }
  .hero-subtitle { margin-top: 10px; font-size: 19px; }
  .hero-description { font-size: 14px; }
  .portrait-panel { width: min(100%, 198px); }
  .portrait-caption { padding: 9px 11px; }
  .button { min-height: 42px; padding: 9px 13px; font-size: 12px; }

  .section { padding-block: 46px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading :is(h1, h2) { font-size: 34px; }
  .research-item { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 20px 24px; }
  .research-copy h3 { font-size: 23px; }
  .research-copy > p { font-size: 14px; }

  .publication-toolbar { flex-wrap: wrap; gap: 10px; padding-bottom: 15px; }
  .search-label { flex-basis: 100%; max-width: none; }
  .year-label { flex-basis: 127px; }
  .publication-toolbar select { min-width: 127px; min-height: 43px; padding-block: 10px; font-size: 12px; }
  .result-count { margin-left: auto; font-size: 10px; white-space: normal; }
  .publication { grid-template-columns: minmax(0, 1fr); gap: 7px; padding-block: 21px; }
  .publication-year { padding: 0; font-size: 11px; }
  .publication-title { font-size: 21px; }
  .publication-authors, .publication-journal { font-size: 12px; }
  #show-all { width: 100%; margin-top: 23px; }

  .software-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .software-grid { gap: 0; }
  .software-item { padding-block: 21px 25px; }
  .software-item h3 { font-size: 26px; }
  .teaching-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 19px; }
  .teaching-title { font-size: 21px; }
  .about-grid { gap: 30px; }
  .about-grid h3 { margin-bottom: 16px; font-size: 26px; }
  .timeline-item { grid-template-columns: 83px minmax(0, 1fr); gap: 11px; padding-block: 17px; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .students-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 15px; }
  .student-item { padding-block: 14px; }
  .talks-disclosure { margin-top: 28px; }
  .service-disclosure { margin-top: 0; }
  .talks-disclosure summary { padding-block: 18px; font-size: 22px; }
  .talks-disclosure summary::after { top: 17px; }
  .talk-row { grid-template-columns: 83px minmax(0, 1fr); gap: 12px; }
  .students-block { margin-top: 31px; }

  .contact-section { padding-block: 47px; }
  .contact-grid { gap: 23px; }
  .contact-grid > div + div { padding-top: 0; }
  .contact-address { margin-top: 19px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }

  html:lang(zh) .publication-title { font-size: 18px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 32px); }
  .brand-caption { font-size: 7px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body, body[data-page]:not([data-page="home"]) > main { display: block; min-height: 0; }
  .masthead { position: static; }
  .site-header, .lab-banner, .language-switch, .hero-actions, .publication-toolbar, #show-all { display: none !important; }
  body, .section-white, .contact-section, .site-footer { background: white; color: var(--ink); }
  .shell { width: 100%; }
  .section, .contact-section, .hero-grid { padding-block: 26px; }
  .research-item, .publication, .software-item, .teaching-row, .timeline-item { break-inside: avoid; }
  .contact-section p, .contact-section a { color: var(--ink); }
  a { text-decoration: none; }
}
