/* Shared Chinese / English mobile layer. Load after styles and interactions. */
.mobile-menu-toggle { display: none; }
.mobile-nav-contact { display: none; }
@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  body { min-width: 0; width: 100%; font-size: 15px; overflow-wrap: break-word; }
  .wrap,.section,.compute-inner,.join-inner,.contact-inner { width: calc(100% - 40px); max-width: none; }
  main,section,article,aside,nav,figure,.hero-copy,.research-text,.fund-item>div { min-width: 0; }
  h1,h2,h3,h4,p,a,strong,small { overflow-wrap: anywhere; }
  h2 { font-size: clamp(29px, 6.5vw, 38px); line-height: 1.45; }
  h3 { font-size: 20px; }
  .section { padding-block: 62px; }
  .section-kicker { font-size: 11px; letter-spacing: .09em; margin-bottom: 15px; }
  .section-intro,.body-copy,.section-heading>p { font-size: 15px; line-height: 1.9; max-width: none; }
  .body-copy { margin-top: 19px; }
  .section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
  .about:before,.collaboration:before,.funding:before,.spaces:before,.growth:before { inset-inline: -20px; }

  .site-header { height: auto; min-height: 72px; padding: 12px 20px; gap: 8px 12px; flex-wrap: wrap; }
  .brand { gap: 9px; max-width: calc(100% - 105px); flex-shrink: 1; }
  .brand-mark { height: 35px; flex: 0 0 3px; }
  .brand strong { display: block; font-size: 19px; letter-spacing: 0; white-space: nowrap; }
  .brand small { margin-top: 7px; font-size: 8px; letter-spacing: .12em; }
  .site-header>.nav-contact { display: none; }
  .site-header>.lang-switch { margin: 0; padding: 8px 7px; font-size: 12px; line-height: 1.2; flex-shrink: 0; order: 2; white-space: nowrap; }
  .site-header #primary-nav { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 4px 19px; padding-top: 8px; }
  #primary-nav a { font-size: 14px; padding: 9px 0; min-height: 42px; }
  .mobile-nav-ready .site-header { height: 72px; flex-wrap: nowrap; }
  .mobile-nav-ready .brand { order: 1; }
  .mobile-nav-ready .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; order: 3; flex-shrink: 0; min-height: 42px; min-width: 57px; padding: 8px 6px; border: 0; background: transparent; color: var(--ink); font-size: 12px; line-height: 1; }
  .mobile-menu-icon { position: relative; display: block; width: 16px; height: 12px; border-block: 1px solid currentColor; }
  .mobile-menu-icon::before { content: ""; position: absolute; inset: 5px 0 auto; height: 1px; background: currentColor; }
  .mobile-menu-toggle[aria-expanded=true] .mobile-menu-icon { border: 0; }
  .mobile-menu-toggle[aria-expanded=true] .mobile-menu-icon::before,
  .mobile-menu-toggle[aria-expanded=true] .mobile-menu-icon::after { content: ""; position: absolute; top: 5px; left: 0; width: 16px; height: 1px; background: currentColor; transform: rotate(45deg); }
  .mobile-menu-toggle[aria-expanded=true] .mobile-menu-icon::after { transform: rotate(-45deg); }
  .mobile-menu-toggle:focus-visible { outline-offset: 1px; }
  .mobile-nav-ready .site-header #primary-nav { position: absolute; top: 100%; left: 0; right: 0; width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; padding: 12px 24px 20px; background: #f7faf7fa; backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); box-shadow: 0 15px 23px #233e3b12; max-height: min(70vh,450px); max-height: min(70dvh,450px); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav-ready #primary-nav[hidden] { display: none !important; }
  .mobile-nav-ready #primary-nav a { padding: 12px 0; min-height: 46px; line-height: 1.5; }
  .mobile-nav-ready #primary-nav .mobile-nav-contact { display: flex; align-items: center; justify-content: space-between; grid-column: 1/-1; margin-top: 8px; padding: 11px 14px; background: var(--ink); color: var(--white); }
  #primary-nav .lang-switch { grid-column: 1/-1; border-top: 1px solid var(--line); margin-top: 8px; }
  .skip-link { left: 16px; max-width: calc(100% - 32px); }

  .hero { padding-bottom: 22px; }
  .hero-inner { height: auto; display: grid; grid-template-columns: minmax(0,1fr); padding-top: 37px; }
  .hero-copy { padding-bottom: 0; }
  .university { font-size: 11px; line-height: 1.8; letter-spacing: .06em; margin-bottom: 21px; }
  h1 { font-size: clamp(34px,10.5vw,46px); line-height: 1.4; letter-spacing: .015em; white-space: normal; }
  .hero-lead { font-size: 15px; line-height: 1.9; margin-top: 21px; max-width: none; }
  .hero-actions { gap: 12px 18px; margin-top: 25px; flex-wrap: wrap; }
  .button { padding: 13px 17px; font-size: 12px; gap: 15px; min-height: 45px; }
  .button-ghost { padding-inline: 3px; }
  .hero-meta { margin-top: 20px; font-size: 10px; line-height: 1.8; }
  .hero-visual { width: 100%; height: 340px; margin: 12px 0 0; transform: none !important; }
  .hero-visual #hero-canvas,.hero-visual .molecular-fallback { width: 100%; height: 100%; translate: none !important; }
  .hero-visual .visual-note { top: 9px; left: 0; gap: 8px; letter-spacing: .05em; font-size: 10px; }
  .hero-phase-strip { left: 0; right: 0; bottom: 6px; gap: 8px; padding-bottom: 11px; font-size: 10px; line-height: 1.6; letter-spacing: 0; }
  .hero-phase-strip span { white-space: normal; }
  .hero-phase-strip b { font-size: 10px; margin-right: 3px; }
  .motion-control { position: static; justify-self: end; min-height: 42px; padding: 11px 0; font-size: 11px; margin: 0 0 6px; }
  .hero-bottom { align-items: flex-start; gap: 17px; font-size: 10px; line-height: 1.8; padding-top: 17px; }
  .hero-bottom>span { flex: 1; }
  .hero-bottom a { gap: 10px; flex-shrink: 0; }
  html[lang^=en] h1 { font-size: clamp(32px,8.7vw,45px); line-height: 1.2; letter-spacing: -.02em; }
  html[lang^=en] .hero-bottom a { max-width: 38%; }

  .research { padding-block: 53px 58px; }
  .research-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
  .research-heading h2 { font-size: clamp(29px,6.5vw,38px); line-height: 1.45; }
  .research-heading>p { padding-bottom: 0; font-size: 14px; line-height: 1.9; }
  .research-heading>p br { display: none; }
  .research-tabs { max-width: 100%; gap: 26px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #aaa8bf transparent; -webkit-overflow-scrolling: touch; scroll-padding-inline: 4px; }
  .research-tabs button { flex: 0 0 auto; font-size: 15px; gap: 9px; padding: 14px 1px 16px; white-space: nowrap; min-height: 48px; }
  .research-tabs button>span { font-size: 11px; }
  .research-tabs button:focus-visible { outline-offset: -3px; }
  .research-stage { grid-template-columns: minmax(0,1fr); gap: 17px; min-height: 0; padding-top: 16px; }
  .research-model { width: 100%; height: 346px; min-width: 0; }
  #catalysis-canvas { inset: 0 0 44px; width: 100%; height: calc(100% - 44px); border-radius: 2px; touch-action: pan-y; }
  #research-canvas { position: absolute; inset: 0 0 44px; width: 100%; height: calc(100% - 44px); touch-action: pan-y; }
  .research-poster { height: calc(100% - 44px); }
  .research-model-caption { bottom: 0; gap: 9px; font-size: 10px; line-height: 1.65; min-height: 38px; align-items: flex-start; }
  #research-model-label { flex: 1; padding-top: 9px; min-width: 0; }
  .research-motion { flex-shrink: 0; font-size: 10px; min-height: 38px; padding: 8px 0; }
  .research-model .catalysis-legend,.research-model[data-topic=discovery] .catalysis-legend { top: 10px; left: 10px; gap: 12px; font-size: 9px; padding: 6px 8px; }
  .catalysis-legend small { display: none; }
  .catalysis-legend i { width: 7px; height: 7px; }
  .catalysis-pointer-hint { display: none !important; }
  .research-text { padding: 0; align-self: stretch; }
  .research-text [role=tabpanel] { min-height: 0; }
  .research-question { font-size: 11px; letter-spacing: .08em; margin-bottom: 12px; }
  .research-text h3 { font-size: 27px; line-height: 1.5; }
  .research-description { font-size: 15px; line-height: 1.95; margin-top: 16px; max-width: none; }
  .research-topics { margin-top: 21px; font-size: 13px; gap: 9px; }

  .about-grid,.collab-grid,.funding-layout,.space-grid,.growth-layout,.contact-inner { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .acronym { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 14px; }
  .acronym span { white-space: normal; min-width: 0; font-size: 12px; gap: 8px; overflow-wrap: anywhere; }
  .acronym b { font-size: 35px; width: 27px; flex: 0 0 27px; }
  .team-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px 15px; margin-top: 34px; padding: 27px 0 20px; }
  .team-strip>div { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
  .team-strip strong { font-size: 45px; }
  .team-strip span { font-size: 12px; }
  .team-strip .faculty-stat { display: grid; grid-column: 1/-1; grid-template-columns: auto minmax(0,1fr); gap: 0 17px; }
  .faculty-stat-note { font-size: 11px !important; }
  .team-strip>p { font-size: 11px; }
  .members-heading { margin: 34px 0 22px; gap: 16px; align-items: baseline; }
  .members-heading h3 { font-size: 24px; }
  .members-heading>span { font-size: 10px; flex-shrink: 0; }
  .cohort-grid { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .cohort>header { padding-bottom: 12px; margin-bottom: 14px; }
  .cohort header h4 { font-size: 17px; }
  .cohort header span { font-size: 12px; }
  .member-names,.single-column,.cohort:nth-child(3) .member-names { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px 15px; font-size: 14px; }
  .member-names li,.member-names a { min-width: 0; overflow-wrap: anywhere; }
  .alumni { margin-top: 0; }
  .alumni summary { gap: 12px; flex-wrap: wrap; font-size: 14px; }
  .alumni-count,.expand-label { font-size: 11px; }
  .alumni .member-names { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 17px; padding-bottom: 20px; }
  .member-legend { font-size: 10px; }

  .collaboration { padding-block: 59px; }
  .micro-label { font-size: 11px; margin-bottom: 14px; }
  .partners h3 { font-size: 28px; }
  .partners>p:not(.micro-label) { font-size: 15px; max-width: none; }
  .partners .affiliation-note { font-size: 12px !important; }
  .outcomes { padding: 25px 23px; box-shadow: 8px 8px 0 #e8d9d19c; }
  .journal-cloud { gap: 13px 18px; }
  .journal-cloud span { font-size: 24px; max-width: 100%; }
  .journal-cloud span:nth-child(n+5) { font-size: 17px; }
  .undergrad { display: block; padding-top: 25px; }
  .undergrad h3 { font-size: 24px; }
  .undergrad>p:last-child { font-size: 15px; margin-top: 15px; line-height: 1.95; }
  .funding-title { gap: 16px; }
  .funding-title>img { width: 45px; height: 45px; flex-shrink: 0; }
  .funding-title .section-kicker { margin-bottom: 7px; }
  .funding-title h2 { font-size: 29px; }
  .funding-layout { gap: 30px; }
  .fund-item { gap: 15px; padding: 23px 0; }
  .fund-item>span { font-size: 12px; flex-shrink: 0; }
  .fund-item h3 { font-size: 18px; line-height: 1.7; }
  .fund-item p { font-size: 11px; line-height: 1.8; margin-bottom: 8px; }
  .fund-item small { font-size: 12px; }
  .fund-feature { padding: 22px 17px !important; }
  .fund-feature h3 { font-size: 21px !important; line-height: 1.65 !important; }
  .industry { padding: 23px; }
  .industry ul { font-size: 13px; }
  .space-main .space-image { height: 250px; }
  .space-plan>img { height: 235px; padding: 8px; }
  .space-grid { gap: 30px; }
  .space-grid article>p { font-size: 11px; margin-top: 14px; }
  .space-grid h3 { font-size: 18px; }

  .compute { padding-block: 58px; }
  .compute-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .compute-heading h2 { font-size: 34px; max-width: none; }
  .compute-heading p { font-size: 14px; max-width: none; }
  .gpu-wall { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; margin-top: 30px; padding-block: 24px; }
  .gpu-wall>span { font-size: 27px; min-width: 0; white-space: normal; line-height: 1.3; }
  .gpu-wall small { font-size: 10px; line-height: 1.7; margin-top: 6px; }
  .compute-plan { font-size: 11px; margin-top: 17px; line-height: 1.9; }
  .growth-layout { gap: 27px; padding-bottom: 0; }
  .growth-points article { gap: 14px; margin-bottom: 25px; }
  .growth-points article>span { font-size: 11px; }
  .growth-points h3 { font-size: 18px; }
  .growth-points p { font-size: 14px; }
  .photo-grid { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .photo-grid figure:nth-child(2),.photo-grid figure:nth-child(4) { transform: none; }
  .photo-open { height: auto; aspect-ratio: 3/2; }
  .photo-open img { height: 100%; }
  .photo-grid figcaption { font-size: 11px; margin-top: 8px; }
  .photo-expand { width: 31px; height: 31px; line-height: 31px; }
  .photo-dialog { padding: 15px 16px; width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: 90vh; }
  .photo-dialog>img { max-height: 65vh; }
  .lightbox-top { font-size: 12px; gap: 12px; align-items: flex-start; }
  .photo-close { flex-shrink: 0; }
  .photo-close,.lightbox-controls button { font-size: 11px; min-height: 39px; padding-inline: 9px; }
  .photo-counter { font-size: 11px; }
  .lightbox-controls { gap: 10px; }

  .join { padding-block: 57px; }
  .join-title { flex-direction: column; align-items: flex-start; gap: 17px; }
  .join-title>p { font-size: 15px; max-width: none; }
  .traits { grid-template-columns: minmax(0,1fr); gap: 24px; margin-top: 30px; }
  .traits article { border-top: 1px solid #d9c7c8; padding-top: 19px; }
  .traits article>span { margin-bottom: 8px; font-size: 11px; }
  .traits h3 { font-size: 19px; margin-bottom: 8px; }
  .traits p { font-size: 14px; }
  .backgrounds { gap: 16px; margin-top: 29px; padding-top: 23px; flex-wrap: wrap; }
  .backgrounds p { font-size: 14px; }
  .background-copy { font-size: 13px; }
  .contact { padding-block: 59px; }
  .contact-inner { gap: 0; }
  .contact .eyebrow { font-size: 11px; margin-bottom: 18px; }
  .contact h2 { font-size: 37px; line-height: 1.45; }
  .contact-lead { font-size: 14px; margin-top: 20px; }
  .contacts { grid-column: 1; grid-row: auto; padding: 9px 20px 12px; margin-top: 28px; min-width: 0; }
  .contacts a { padding-block: 17px; }
  .contacts span { font-size: 11px; }
  .contacts strong { font-size: clamp(17px,5.2vw,23px); }
  footer { flex-wrap: wrap; gap: 11px 20px; padding-block: 23px; font-size: 10px; }
  footer>span:first-child { font-size: 14px; flex: 1 0 100%; }
  footer>span:nth-child(2) { flex: 1; }
  footer>a { flex-shrink: 0; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .wrap,.section,.compute-inner,.join-inner,.contact-inner { width: calc(100% - 64px); }
  .about:before,.collaboration:before,.funding:before,.spaces:before,.growth:before { inset-inline: -32px; }
  .site-header { padding-inline: 32px; }
  .hero-inner { padding-top: 45px; }
  .hero-visual { height: 410px; }
  .research-model { height: 390px; }
  .research-text h3 { font-size: 31px; }
  .acronym { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px; }
  .gpu-wall { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .alumni .member-names { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .member-names,.single-column,.cohort:nth-child(3) .member-names { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 359px) {
  .site-header { padding-inline: 16px; gap: 5px; }
  .brand { max-width: calc(100% - 95px); gap: 7px; }
  .brand strong { font-size: 18px; }
  .site-header>.lang-switch { padding-inline: 4px; }
  .mobile-nav-ready .mobile-menu-toggle { min-width: 53px; gap: 6px; padding-inline: 4px; }
  .hero-actions { gap: 12px; }
  .button { padding-inline: 13px; gap: 10px; }
  .button-ghost { padding-inline: 2px; }
  .hero-visual { height: 318px; }
  .research-model { height: 326px; }
  .research-text h3 { font-size: 25px; }
  .gpu-wall>span { font-size: 25px; }
  .contacts { padding-inline: 15px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-menu-icon,.mobile-menu-icon::before,.mobile-menu-icon::after { transition: none; }
}
/* Match the language-specific desktop selectors at mobile sizes. */
@media(max-width:900px){
 html[lang="en"] .research-heading h2{font-size:clamp(27px,7.2vw,34px);line-height:1.3}
 html[lang="en"] .research-heading>p{font-size:14px;max-width:none;line-height:1.8}
 html[lang="en"] .section-heading h2,html[lang="en"] .about h2,html[lang="en"] .compute-heading h2,html[lang="en"] .join-title h2{font-size:clamp(28px,7.4vw,34px);line-height:1.3}
 html[lang="en"] .research-text h3{font-size:27px;line-height:1.35}
 html[lang="en"] .hero-phase-strip{font-size:10px;gap:7px}
}
@media(max-width:900px){html[lang="zh-CN"] .research-heading h2 em{display:block}}
