:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #e8ede9;
  --ink: #142019;
  --ink-soft: #34443a;
  --muted: #68746d;
  --line: #cfd7d1;
  --line-strong: #aebbb3;
  --green: #1f5b46;
  --green-dark: #173f32;
  --red: #a64c3d;
  --blue: #365f78;
  --white: #f8faf7;
  --serif: "Iowan Old Style", "Baskerville", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1160px;
  --header-h: 76px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101512;
  --surface: #171e1a;
  --surface-soft: #202923;
  --ink: #edf2ed;
  --ink-soft: #c8d1cb;
  --muted: #98a69d;
  --line: #344139;
  --line-strong: #526158;
  --green: #7ab99b;
  --green-dark: #8fc9ad;
  --red: #de8c7e;
  --blue: #87afc3;
  --white: #f4f7f3;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: color 0.3s ease, background-color 0.3s ease;
}

::selection {
  color: #ffffff;
  background: var(--green);
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
}

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

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 9px 14px;
  color: #ffffff;
  background: var(--green-dark);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  height: 68px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(120%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 30px;
  align-items: center;
  height: 100%;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 13px;
  width: fit-content;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.brand-field {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

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

.theme-toggle,
.language-toggle,
.nav-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle,
.language-toggle {
  position: relative;
}

.theme-toggle:hover,
.language-toggle:hover,
.nav-toggle:hover {
  color: var(--green);
  background: var(--surface);
  border-color: var(--line-strong);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  min-width: 52px;
  padding: 0 9px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-toggle [data-language-target] {
  color: var(--muted);
}

.theme-icon {
  position: absolute;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.nav-toggle {
  display: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 104px;
  align-items: center;
  min-height: 760px;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 76px;
}

.hero-copy {
  max-width: 650px;
}

.hero-affiliation {
  margin: 0 0 30px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 .hero-name-primary {
  display: block;
}

.hero h1 .hero-name-secondary {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 0;
  color: var(--red);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.hero-field::before {
  width: 42px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 2;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-links a:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.hero-links .primary-link {
  color: #ffffff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.hero-links .primary-link:hover {
  color: #ffffff;
  background: var(--green);
}

html[data-theme="dark"] .hero-links .primary-link {
  color: #102018;
  background: var(--green);
  border-color: var(--green);
}

.hero-portrait {
  width: 100%;
  margin: 0;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
  filter: saturate(0.84) contrast(1.03);
  box-shadow: 0 24px 60px rgba(25, 45, 34, 0.13);
  transition: filter 0.35s ease;
}

.hero-portrait:hover img {
  filter: saturate(0.96) contrast(1.02);
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Shared sections */
.section {
  padding: 122px 0;
}

.section-header {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 76px;
}

.section-label,
.aside-label {
  margin: 7px 0 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 49px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

/* About */
.section-about {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  column-gap: 76px;
  row-gap: 0;
  margin-left: 0;
}

.about-copy {
  max-width: none;
  padding: 26px 0 52px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--line);
}

.about-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.78;
}

.about-focus {
  padding: 26px 0 0;
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--line);
}

.about-focus .aside-label {
  margin-top: 0;
}

.about-focus-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.about-focus-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.about-focus-list li span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.about-focus-list li strong {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.section-about .section-header {
  grid-template-columns: 120px minmax(0, 1fr);
  margin-bottom: 58px;
}

.research-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  padding: 21px 0 0;
  margin: 36px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.research-topics li {
  padding: 0 16px;
  color: var(--blue);
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.research-topics li:first-child {
  padding-left: 0;
  border-left: 0;
}

.education {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(210px, 0.8fr) minmax(0, 1.35fr);
  column-gap: 48px;
  align-items: start;
  padding: 30px 0 0;
  border-top: 2px solid var(--red);
}

.education .aside-label {
  grid-column: 1;
  grid-row: 1;
}

.education h3 {
  grid-column: 1;
  margin: 17px 0 4px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
}

.education-degree,
.education-time {
  grid-column: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.education-time {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

.education-advisor {
  grid-column: 1;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.education-advisor a {
  color: var(--green);
  border-bottom: 1px solid color-mix(in srgb, var(--green) 42%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.education-advisor a:hover {
  color: var(--red);
  border-color: var(--red);
}

.education-stats {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-self: stretch;
  padding: 18px 0 0 30px;
  margin: 0;
  border-top: 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  border-left: 1px solid var(--line);
}

.education-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.education-stats dt,
.course-title {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.education-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.course-title {
  grid-column: 3;
  grid-row: 1;
  margin: 0 0 8px;
}

.course-list {
  grid-column: 3;
  grid-row: 2 / span 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.course-list li {
  padding: 9px 0 8px;
  border-top: 1px solid var(--line);
}

.course-list li::before {
  display: inline-block;
  width: 14px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
  content: "·";
}

/* Publications */
.section-publications {
  background: var(--bg);
}

.publications-header {
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: end;
}

.publications-header .section-label {
  margin: 0 0 15px;
}

.publications-header > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

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

.publication-item {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.publication-figure {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 18px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.publication-figure--tall {
  aspect-ratio: 14 / 10;
}

.publication-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(18, 35, 27, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.publication-figure:hover img {
  box-shadow: 0 11px 25px rgba(18, 35, 27, 0.12);
  transform: scale(1.02);
}

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

.publication-venue {
  margin: 0 0 11px;
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-body h3 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.publication-body h3 a {
  transition: color 0.2s ease;
}

.publication-body h3 a:hover {
  color: var(--green);
}

.publication-authors {
  margin: 13px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.65;
}

.publication-authors strong {
  color: var(--ink);
  font-weight: 700;
}

.publication-summary {
  max-width: 720px;
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 18px;
}

.publication-links a {
  color: var(--green);
  border-bottom: 1px solid color-mix(in srgb, var(--green) 45%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.publication-links a:hover {
  color: var(--red);
  border-color: var(--red);
}

.publication-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
}

/* Experience and honors */
.section-record {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  margin-left: 200px;
}

.record-grid h3 {
  padding-bottom: 17px;
  margin: 0;
  color: var(--green);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time,
.honors-list time {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
}

.timeline strong,
.honors-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.timeline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

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

.honors-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.honors-list time {
  flex: 0 0 auto;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: #173f32;
}

html[data-theme="dark"] .site-footer {
  background: #0a1e16;
}

.footer-contact {
  display: grid;
  grid-template-columns: 1fr minmax(380px, 0.72fr);
  gap: 80px;
  align-items: end;
  padding-top: 88px;
  padding-bottom: 88px;
}

.footer-contact .section-label {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.56);
}

.footer-contact h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-email {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 126px;
  padding: 25px 58px 25px 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-email:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.52);
}

.footer-email span {
  color: rgba(255, 255, 255, 0.51);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-email strong {
  margin-top: 12px;
  color: #ffffff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-email i {
  position: absolute;
  right: 28px;
  bottom: 27px;
  color: #e6a897;
  font-size: 18px;
  font-style: normal;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:nth-child(2) {
  text-align: center;
}

.footer-bottom a {
  justify-self: end;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Motion */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.75, 0.25, 1), transform 0.65s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js [data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .shell {
    width: min(calc(100% - 48px), var(--max));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 66px;
  }

  .hero h1 {
    font-size: 76px;
  }

  .about-grid,
  .record-grid {
    gap: 56px;
    margin-left: 150px;
  }

  .about-grid {
    margin-left: 0;
  }

  .publication-item {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
  }

  .publication-body h3 {
    font-size: 24px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 70px;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
  }

  .brand-field {
    display: none;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    grid-template-rows: repeat(2, 1px);
    gap: 6px;
    align-content: center;
    justify-self: end;
    padding: 0 9px;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 13px 24px 17px;
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 9px 5px;
    text-align: center;
  }

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

  .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 42px;
    min-height: 800px;
    padding-top: 120px;
    padding-bottom: 74px;
  }

  .hero-copy {
    max-width: 500px;
  }

  .hero-portrait {
    width: 100%;
  }

  .hero h1 {
    font-size: 66px;
  }

  .section-header {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .section-header h2 {
    font-size: 44px;
  }

  .about-grid,
  .record-grid {
    margin-left: 0;
  }

  .publications-header {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .publication-item {
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 34px;
  }

  .publication-body h3 {
    font-size: 22px;
  }

  .publication-summary {
    font-size: 12px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-email {
    width: min(100%, 520px);
  }
}

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

  .brand-name {
    font-size: 17px;
  }

  .site-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding-top: 119px;
    padding-bottom: 52px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-affiliation {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero h1 .hero-name-secondary {
    margin-top: 12px;
    font-size: 11px;
  }

  .hero-field {
    margin-top: 30px;
    font-size: 18px;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-links .primary-link {
    grid-column: 1 / -1;
  }

  .hero-portrait {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .hero-portrait img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .hero-portrait figcaption {
    display: none;
  }

  .section {
    padding: 84px 0;
  }

  .section-about {
    padding-top: 48px;
  }

  .section-header,
  .publications-header {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 48px;
  }

  .section-about .section-header {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .section-label {
    margin: 0;
  }

  .section-header h2 {
    font-size: 35px;
  }

  .publications-header > p {
    max-width: 330px;
    margin: 3px 0 0;
  }

  .about-grid,
  .record-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
    column-gap: 0;
    margin-left: 0;
  }

  .record-grid {
    row-gap: 56px;
  }

  .about-copy {
    max-width: none;
    padding: 24px 0 34px;
  }

  .about-copy p {
    font-size: 19px;
    line-height: 1.9;
  }

  .about-focus {
    padding: 28px 0 34px;
    border-top: 2px solid var(--green);
    border-bottom: 1px solid var(--line);
  }

  .about-focus-list {
    margin-top: 20px;
  }

  .education {
    display: block;
    padding-left: 25px;
    border-top: 0;
    border-left: 2px solid var(--red);
  }

  .education-stats {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    padding: 24px 0;
    margin: 26px 0 22px;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .course-title,
  .course-list {
    grid-column: auto;
    grid-row: auto;
  }

  .course-list {
    grid-template-columns: 1fr;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 36px 0 39px;
  }

  .publication-figure {
    padding: 14px;
  }

  .publication-body h3 {
    font-size: 23px;
  }

  .publication-summary {
    font-size: 13px;
  }

  .record-grid h3 {
    font-size: 19px;
  }

  .footer-contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .footer-contact h2 {
    font-size: 36px;
  }

  .footer-email {
    min-height: 120px;
    padding-left: 22px;
  }

  .footer-email strong {
    font-size: 15px;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
    padding: 25px 0;
  }

  .footer-bottom p:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 50px;
  }

  .hero-links {
    grid-template-columns: 1fr;
  }

  .hero-links .primary-link {
    grid-column: auto;
  }

  .publication-body h3 {
    font-size: 21px;
  }

  .timeline li {
    grid-template-columns: 68px 1fr;
    gap: 14px;
  }

  .honors-list strong {
    font-size: 12px;
  }
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f2f2f2;
    --ink: #111111;
    --ink-soft: #333333;
    --muted: #555555;
    --line: #cccccc;
  }

  .site-header,
  .hero-links,
  .theme-toggle,
  .site-footer {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 60px;
  }

  .section {
    padding: 55px 0;
  }

  .publication-item {
    break-inside: avoid;
  }
}
