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

  .shell {
    width: calc(100% - 28px);
  }

  .hero .name-lockup {
    gap: 9px;
  }

  .hero .name-lockup h1 {
    min-width: 0;
    font-size: 38px !important;
    line-height: 1.04;
  }

  .hero .name-divider,
  .hero .name-cn {
    margin-left: 4px;
    font-size: 24px !important;
  }

  .hero-subtitle {
    font-size: 18px !important;
    line-height: 1.35;
  }

  .hero-note {
    max-width: 100%;
    padding: 9px 11px;
    overflow-wrap: anywhere;
  }

  .hero-links {
    width: 100%;
    gap: 8px;
    row-gap: 8px;
  }

  .hero-links .button {
    min-width: 0;
    padding: 9px 11px;
  }

  .hero-facts {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-facts .research-tags {
    max-width: 100%;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .hero-facts .research-tags::-webkit-scrollbar {
    display: none;
  }

  .hero-contact {
    width: 100%;
    margin-top: 22px;
    padding: 18px 16px;
  }

  .hero-contact h2 {
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  .hero-contact .contact-inner {
    padding: 0;
  }

  .hero-contact .button-light {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .floating-opportunity {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin-top: 30px;
  }

  .team-copy h2,
  .section-title-row h2,
  .team-info-box,
  .team-info-box p,
  .education-logo-card,
  .education-logo-name,
  .education-logo-detail,
  .experience-main,
  .experience-heading h3,
  .experience-heading h3 a,
  .pub-body h3,
  .authors,
  .pub-affiliation {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .publication-card,
  .publication-card .pub-body {
    min-width: 0;
  }

  .pub-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 70px;
  }

  body .site-header {
    position: fixed !important;
    left: 50%;
    width: calc(100% - var(--nav-shrink, 0px));
    max-width: none;
    margin-inline: auto;
    transform: translateX(-50%);
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: width, top, border-radius;
  }

  /* Keep the header glass on a sibling layer so the menu can blur the page. */
  body .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background: var(--nav-bg, #183243);
    backdrop-filter: blur(var(--nav-blur, 12px)) saturate(var(--nav-saturation, 100%));
    -webkit-backdrop-filter: blur(var(--nav-blur, 12px)) saturate(var(--nav-saturation, 100%));
    transition: background-color .35s ease, backdrop-filter .35s ease,
      -webkit-backdrop-filter .35s ease;
  }

  body[data-theme="dark"] .site-header {
    background: transparent !important;
  }

  .site-nav {
    display: flex;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scaleY(.96);
    transform-origin: top center;
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    width: 50%;
    padding-top: 0;
    padding-bottom: 0;
    border: 1px solid transparent;
    border-radius: 18px;
    background: var(--nav-bg, #183243) !important;
    backdrop-filter: blur(var(--nav-blur, 12px)) saturate(var(--nav-saturation, 100%));
    -webkit-backdrop-filter: blur(var(--nav-blur, 12px)) saturate(var(--nav-saturation, 100%));
    box-shadow: none;
    border-bottom-color: transparent;
    transition: max-height .34s ease, opacity .24s ease, transform .3s ease,
      padding .34s ease, border-color .24s ease, background-color .35s ease,
      backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease,
      visibility 0s linear .34s;
  }

  .site-nav > * {
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity .2s ease, transform .25s ease;
  }

  .site-nav.is-open {
    max-height: 520px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
    padding-top: 13px;
    padding-bottom: 18px;
    border-color: rgba(57, 117, 142, .72);
    box-shadow: 0 10px 26px rgba(17, 52, 68, var(--nav-shadow-alpha, .18));
    transition: max-height .38s ease, opacity .24s ease, transform .3s ease,
      padding .34s ease, border-color .24s ease, background-color .35s ease,
      backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease;
  }

  .site-nav.is-open > * {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav.is-open > *:nth-child(1) { transition-delay: .03s; }
  .site-nav.is-open > *:nth-child(2) { transition-delay: .06s; }
  .site-nav.is-open > *:nth-child(3) { transition-delay: .09s; }
  .site-nav.is-open > *:nth-child(4) { transition-delay: .12s; }
  .site-nav.is-open > *:nth-child(5) { transition-delay: .15s; }
  .site-nav.is-open > *:nth-child(6) { transition-delay: .18s; }
  .site-nav.is-open > *:nth-child(7) { transition-delay: .21s; }
}

@media (max-width: 600px) {
  body {
    padding-top: 62px;
  }
}

body[data-theme="dark"] .site-nav.is-open {
  border-color: rgba(198, 215, 223, .78);
}
