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

:root {
  color-scheme: light;
  --site-nav-height: 58px;
  --content-max: 980px;
  --font-sans: "Segoe UI", Arial, "Noto Sans SC", sans-serif;
  --font-mono: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
  --base-size: 14.5px;
  --line-height: 1.65;

  --paper: #f5f7fa;
  --paper-grid: rgba(19, 91, 120, 0.065);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-code: #eef4f8;
  --ink-strong: #0b1320;
  --ink: #202b37;
  --ink-soft: #536271;
  --muted: #738191;
  --line: #cfd9e4;
  --line-soft: #e5ebf1;
  --brand: #0d6b87;
  --brand-deep: #08766f;
  --accent: #9c6200;
  --warm: #c66a2b;
  --shadow: 0 18px 44px rgba(9, 29, 48, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #07111b;
  --paper-grid: rgba(110, 231, 249, 0.07);
  --surface: rgba(12, 23, 35, 0.9);
  --surface-solid: #0c1723;
  --surface-code: #0f1f2d;
  --ink-strong: #edf6ff;
  --ink: #d4e0ec;
  --ink-soft: #a7b6c5;
  --muted: #8193a6;
  --line: #263a4f;
  --line-soft: #16283a;
  --brand: #6ee7f9;
  --brand-deep: #5eead4;
  --accent: #f6c453;
  --warm: #f09a5b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(var(--paper-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  font-family: var(--font-sans);
  font-size: var(--base-size);
  line-height: var(--line-height);
}

body,
td,
th,
tr,
p,
a,
strong {
  font-family: var(--font-sans);
  font-size: var(--base-size);
  line-height: var(--line-height);
}

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand), transparent 70%);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--warm);
  border-bottom-color: currentColor;
}

img {
  display: block;
}

figure {
  margin: 0;
}

.responsive-img {
  max-width: 100%;
  height: auto;
}

.center {
  text-align: center;
}

.small,
.muted-note {
  color: var(--muted);
  font-size: 12px;
}

.small-center {
  display: flex;
  justify-content: center;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 8px 10px;
  background: var(--surface-solid);
  color: var(--ink-strong);
  border: 1px solid var(--line);
  transform: translateY(-140%);
}

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

.lab-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.neural-canvas,
.lab-aurora,
.lab-mesh,
.lab-scanline {
  position: absolute;
  inset: 0;
}

.neural-canvas {
  opacity: 0.22;
}

.lab-aurora {
  opacity: 0.24;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--brand), transparent 52%) 0 1px, transparent 1.5px) 18px 18px / 92px 92px,
    radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 58%) 0 1px, transparent 1.5px) 64px 44px / 148px 148px;
}

.lab-mesh {
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 0 39px, color-mix(in srgb, var(--brand), transparent 78%) 40px, transparent 41px) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 0 39px, color-mix(in srgb, var(--brand-deep), transparent 82%) 40px, transparent 41px) 0 0 / 120px 120px,
    linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--brand), transparent 88%) 18px 34px, transparent 34px 100%) 30px 30px / 240px 160px,
    linear-gradient(0deg, transparent 0 28px, color-mix(in srgb, var(--brand-deep), transparent 88%) 28px 44px, transparent 44px 100%) 80px 70px / 220px 180px;
  animation: circuitDrift 46s linear infinite;
}

.lab-scanline {
  opacity: 0.1;
  background:
    linear-gradient(90deg, transparent 0 8%, color-mix(in srgb, var(--brand), transparent 62%) 8% 8.4%, transparent 8.4% 34%, color-mix(in srgb, var(--brand-deep), transparent 70%) 34% 34.35%, transparent 34.35% 100%) 0 12% / 100% 160px,
    linear-gradient(90deg, transparent 0 58%, color-mix(in srgb, var(--accent), transparent 68%) 58% 58.3%, transparent 58.3% 100%) 0 0 / 100% 220px;
  animation: circuitBlink 7s steps(1, end) infinite;
}

.site-nav,
.main-wrapper {
  position: relative;
  z-index: 1;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid), transparent 8%);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(var(--content-max), calc(100% - 32px));
  min-height: var(--site-nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-brand {
  flex: 0 0 auto;
  color: var(--ink-strong);
  border-bottom: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.nav-brand::before {
  content: "cd ";
  color: var(--brand-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 15px;
}

.nav-links a {
  color: var(--ink-soft);
  border-bottom: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

.nav-links .nav-cv-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--brand-deep);
}

.nav-cv-date {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.theme-toggle,
.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-code);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.theme-icon {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  background: currentColor;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 31px;
  align-items: center;
  justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 17px;
  height: 2px;
  display: block;
  background: currentColor;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.main-wrapper {
  width: min(var(--content-max), calc(100% - 36px));
  max-width: var(--content-max);
  margin: 24px auto 48px;
  display: block;
}

#profile,
#research,
#publications,
#patents,
#honors,
#affiliations {
  scroll-margin-top: 86px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}

#profile {
  padding-top: 4px;
  border-top: 0;
}

.full-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.pad-2-5 {
  padding: 2.5%;
}

.pad-16 {
  padding: 16px;
}

.pad-8 {
  padding: 8px;
}

.vcenter {
  vertical-align: middle;
}

.col-20 {
  width: 20%;
}

.col-37 {
  width: 37%;
}

.col-63 {
  width: 63%;
}

.col-80 {
  width: 80%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ink-strong);
  letter-spacing: 0;
}

h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 760;
}

h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--brand);
  background: color-mix(in srgb, var(--brand), transparent 72%);
}

p {
  margin: 0 0 10px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 286px);
  gap: 36px;
  align-items: start;
  padding: 16px 0 14px;
}

.profile-copy {
  min-width: 0;
}

.name {
  margin: 0 0 13px;
  color: var(--ink-strong);
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 780;
  line-height: 1.08;
}

.name::after {
  content: "Video Generation / Long Video Generation / Video World Models / Distillation / Memory";
  display: block;
  margin-top: 9px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-intro {
  max-width: 670px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin: 13px 0 0;
  color: var(--muted);
}

.profile-links a,
.wechat-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.profile-portrait {
  justify-self: end;
  text-align: right;
}

.portrait-link {
  display: inline-block;
  border-bottom: 0;
}

.profile-photo {
  width: min(100%, 268px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-code);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--brand), transparent 86%);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.profile-photo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 11px 11px 0 color-mix(in srgb, var(--brand), transparent 82%);
}

.portrait-caption {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.research-console {
  position: relative;
  overflow: hidden;
  margin: 15px 0 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background:
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--surface-code);
}

.research-console::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand), transparent 86%), transparent);
  opacity: 0;
  pointer-events: none;
}

.research-console:hover::after {
  opacity: 1;
  animation: terminalSweep 1.2s ease-out;
}

.console-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.console-prompt {
  color: var(--brand-deep);
  font-weight: 700;
}

.console-prompt::before {
  content: "$ ";
  color: var(--accent);
}

.console-path {
  color: var(--muted);
}

.console-cursor {
  width: 7px;
  height: 13px;
  background: var(--brand);
  animation: cursorBlink 1.05s steps(1, end) infinite;
}

.console-grid,
.keyword-strip,
.collab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.console-grid span,
.keyword-strip span,
.collab-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 0;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 14px;
  margin: 8px 0 0;
}

.meta-card,
.academic-service,
.collab-callout,
.research-focus {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

.academic-service,
.collab-callout {
  margin: 0;
  padding: 13px 14px;
}

.academic-service {
  border-left: 3px solid var(--brand-deep);
}

.service-label,
.collab-kicker,
.focus-index,
.period-title {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.service-label {
  display: block;
  margin-bottom: 6px;
}

.collab-callout {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.collab-callout::before,
.research-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid color-mix(in srgb, var(--brand), transparent 42%);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 180ms ease, transform 260ms ease;
  pointer-events: none;
}

.collab-callout:hover::before,
.research-focus:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.collab-status {
  display: grid;
  grid-template-columns: 8px 26px;
  align-items: center;
  gap: 8px;
  padding-top: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent), transparent 42%);
  animation: statusBlink 1.8s ease-in-out infinite;
}

.status-line {
  width: 26px;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, var(--brand), var(--brand-deep), transparent) 0 0 / 200% 100%;
  animation: statusFlow 1.7s linear infinite;
}

.collab-copy p {
  margin: 5px 0 10px;
  color: var(--ink);
}

.collab-tags span {
  min-height: 22px;
  padding: 2px 7px;
  color: var(--ink-soft);
  background: var(--surface-code);
}

.section-block {
  padding: 8px 0 10px;
}

.research-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  margin: 15px 0 12px;
}

.research-focus {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  padding: 13px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.research-focus:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand), var(--line) 42%);
  background: color-mix(in srgb, var(--surface-solid), var(--surface-code) 28%);
}

.research-focus h3 {
  margin: 8px 0 7px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.research-focus p {
  margin: auto 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.keyword-strip {
  margin-top: 8px;
}

.spaced-rows {
  border-collapse: collapse;
}

.spaced-rows > tbody > tr > td {
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line-soft);
}

.spaced-rows > tbody > tr:first-child > td {
  border-top: 0;
}

#publications .spaced-rows td:first-child,
#patents .spaced-rows td:first-child {
  width: 26%;
  min-width: 190px;
}

#publications .spaced-rows td:last-child,
#patents .spaced-rows td:last-child {
  width: 74%;
}

.papertitle {
  color: var(--ink-strong);
  font-weight: 780;
}

em {
  color: var(--ink-soft);
}

.publication-thumbnail,
.publication-thumbnail--fluid {
  position: relative;
  width: 100%;
  max-width: 205px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--surface-code);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--brand), transparent 90%);
}

.publication-thumbnail {
  aspect-ratio: 16 / 10;
}

.publication-thumbnail--fluid {
  max-width: 225px;
  aspect-ratio: 4 / 3;
}

.publication-thumbnail img,
.publication-thumbnail__overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-thumbnail img.publication-thumbnail__image--contain {
  object-fit: contain;
}

.publication-thumbnail__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

.publication-thumbnail:hover .publication-thumbnail__overlay {
  opacity: 1;
}

.patent-img {
  transition: opacity 220ms ease;
}

#honors .full-table + .full-table tr + tr td {
  border-top: 1px solid var(--line-soft);
}

.period-title {
  margin: 0;
  text-align: left;
}

#honors p {
  margin: 0 0 5px;
}

.honors-section {
  padding-bottom: 4px;
}

.honors-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.35fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 11px;
  margin-top: 14px;
  overflow: visible;
}

.honor-card {
  min-height: 0;
  height: 190px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background:
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px) 0 0 / 18px 18px,
    color-mix(in srgb, var(--surface-code), transparent 26%);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: color-mix(in srgb, var(--brand), transparent 35%) transparent;
  scrollbar-width: thin;
}

.honor-card::-webkit-scrollbar {
  width: 6px;
}

.honor-card::-webkit-scrollbar-track {
  background: transparent;
}

.honor-card::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand), transparent 42%);
  border-radius: 0;
}

.honor-card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.honor-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}

.honor-list li {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.honor-list span {
  display: inline-block;
  min-width: 52px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

hr {
  height: 1px;
  margin: 6px 0 18px;
  border: 0;
  background: var(--line-soft);
}

.institution-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px auto 20px;
}

.institution-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0;
  background: transparent;
}

.institution-logos img {
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(0.08) saturate(0.86) contrast(1.14);
  opacity: 0.82;
}

.institution-logos.single {
  margin-bottom: 10px;
}

.institution-logos.single img {
  max-width: 280px;
  max-height: 92px;
}

.institution-logos.pair img {
  max-width: 76px;
  max-height: 58px;
}

.wechat-container {
  position: relative;
}

.wechat-popup {
  display: none;
  width: min(72vw, 260px);
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  z-index: 1800;
}

.wechat-popup.open,
.wechat-popup.is-fixed {
  display: block;
  position: fixed;
}

.wechat-popup img {
  width: 100%;
}

body.wechat-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(3, 9, 15, 0.42);
}

:root[data-theme="dark"] .profile-photo {
  filter: brightness(0.92) contrast(1.05);
}

:root[data-theme="dark"] .institution-logos img {
  mix-blend-mode: normal;
  filter: brightness(1.12) saturate(0.95);
  opacity: 0.94;
}

@keyframes circuitDrift {
  from {
    background-position: 0 0, 0 0, 30px 30px, 80px 70px;
  }

  to {
    background-position: 120px 120px, 120px 120px, 270px 190px, 300px 250px;
  }
}

@keyframes circuitBlink {
  0%,
  100% {
    opacity: 0.07;
  }

  42% {
    opacity: 0.12;
  }

  43% {
    opacity: 0.04;
  }

  45% {
    opacity: 0.11;
  }
}

@keyframes sectionBoot {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes cursorBlink {
  0%,
  46% {
    opacity: 0.95;
  }

  47%,
  100% {
    opacity: 0.18;
  }
}

@keyframes terminalSweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes statusBlink {
  0%,
  100% {
    opacity: 0.46;
  }

  45% {
    opacity: 1;
  }
}

@keyframes statusFlow {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

.main-wrapper > section,
.main-wrapper > footer {
  animation: sectionBoot 520ms cubic-bezier(.2, .8, .2, 1) both;
}

.main-wrapper > :nth-child(1) { animation-delay: 30ms; }
.main-wrapper > :nth-child(2) { animation-delay: 80ms; }
.main-wrapper > :nth-child(3) { animation-delay: 130ms; }
.main-wrapper > :nth-child(4) { animation-delay: 180ms; }
.main-wrapper > :nth-child(5) { animation-delay: 230ms; }
.main-wrapper > :nth-child(6) { animation-delay: 280ms; }

@media (max-width: 980px) {
  .research-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }

  .nav-brand {
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 0;
  }

  .theme-toggle {
    order: 2;
  }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex: 0 0 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-links.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-portrait {
    justify-self: center;
    text-align: center;
  }

  .profile-photo {
    width: min(72vw, 242px);
  }

  .profile-meta-grid {
    grid-template-columns: 1fr;
  }

  #publications .spaced-rows tbody,
  #publications .spaced-rows tr,
  #publications .spaced-rows td,
  #patents .spaced-rows tbody,
  #patents .spaced-rows tr,
  #patents .spaced-rows td,
  #honors .full-table tbody,
  #honors .full-table tr,
  #honors .full-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .publication-thumbnail,
  .publication-thumbnail--fluid {
    max-width: 280px;
    margin: 0 auto 12px;
  }

  .period-title {
    margin-bottom: 7px;
  }

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

  .honor-card {
    height: 180px;
  }

  .institution-logos {
    gap: 14px;
  }

  .institution-logos.single img {
    max-width: min(78vw, 260px);
  }

  .institution-logos.pair img {
    max-width: 70px;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  .main-wrapper {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .nav-links.open,
  .research-stack,
  .console-grid {
    grid-template-columns: 1fr;
  }

  .name {
    font-size: 29px;
  }

  .name::after {
    font-size: 11px;
    line-height: 1.45;
  }

  .profile-links {
    justify-content: flex-start;
  }

  .collab-callout {
    grid-template-columns: 1fr;
  }

  .console-grid span,
  .keyword-strip span,
  .collab-tags span {
    justify-content: flex-start;
    white-space: normal;
  }

  .research-focus {
    min-height: auto;
  }
}

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

  .neural-canvas,
  .lab-scanline {
    display: none;
  }
}
