@charset "UTF-8";
/* LI ZHOUJIAN — local academic portfolio. No external font or icon dependencies. */
:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #f5f5f7;
    --tint: #f0f4fa;
    --ink: #1d1d1f;
    --body: #45454c;
    --muted: #696970;
    --accent: #0071e3;
    --accent-hover: #005bb8;
    --button-bg: #0071e3;
    --border: #e5e5eb;
    --border-strong: #cbd2dc;
    --tag-bg: #f0f3f8;
    --gold: #8b6119;
    --gold-bg: #fbf6e9;
    --nav-bg: rgba(246, 250, 255, .28);
    --shadow: 0 10px 32px rgba(24, 45, 80, .05);
    --radius: 22px;
    --nav-height: 80px;
}
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101012;
    --surface: #1c1c1f;
    --soft: #161619;
    --tint: #1c2332;
    --ink: #f5f5f7;
    --body: #d1d1d6;
    --muted: #a6a6b0;
    --accent: #71b5ff;
    --accent-hover: #abd3ff;
    --button-bg: #0875dd;
    --border: #303037;
    --border-strong: #4a4d59;
    --tag-bg: #272b35;
    --gold: #e9c77e;
    --gold-bg: #2b271e;
    --nav-bg: rgba(23, 29, 42, .38);
    --shadow: 0 10px 32px rgba(0, 0, 0, .12);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body { margin: 0; background: var(--bg); color: var(--body); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; }
h1, h2 { letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3vw, 2.35rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
::selection { color: var(--ink); background: var(--tag-bg); }
[hidden] { display: none !important; }
.container { width: min(100%, 1376px); margin-inline: auto; padding-inline: 36px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; left: 20px; top: -80px; padding: 10px 18px; background: var(--surface); border: 2px solid var(--accent); z-index: 100; }
.skip-link:focus { top: 12px; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; margin-bottom: 12px; }
.date { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* Navigation: visibility is independent of transforms. */
.navbar {
    --glass-sheen: rgba(255, 255, 255, .4);
    --glass-edge: rgba(255, 255, 255, .74);
    --glass-rim: rgba(255, 255, 255, .92);
    --glass-shadow: rgba(29, 51, 84, .1);
    --glass-highlight: linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .16));
    --glass-control-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), inset 0 0 0 1px rgba(255, 255, 255, .38), 0 2px 7px rgba(27, 47, 77, .07);
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: min(1120px, calc(100% - 40px)); height: 64px;
    background: transparent;
    border: 1px solid var(--glass-edge); border-radius: 100px;
    box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 -1px 0 rgba(67, 87, 120, .12), 0 8px 30px var(--glass-shadow);
    z-index: 20;
}
.navbar::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: linear-gradient(115deg, var(--glass-sheen), transparent 42%, rgba(255, 255, 255, .06)), var(--nav-bg);
    -webkit-backdrop-filter: blur(18px) saturate(1.65); backdrop-filter: blur(18px) saturate(1.65);
}
.navbar::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(160deg, var(--glass-rim), transparent 28%, transparent 72%, var(--glass-sheen));
    padding: 1px; mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
}
.navbar.scrolled { --nav-bg: rgba(246, 250, 255, .52); box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 -1px 0 rgba(67, 87, 120, .12), 0 10px 34px var(--glass-shadow); }
[data-theme="dark"] .navbar {
    --glass-sheen: rgba(223, 236, 255, .09);
    --glass-edge: rgba(222, 235, 255, .2);
    --glass-rim: rgba(230, 241, 255, .3);
    --glass-shadow: rgba(0, 0, 0, .22);
    --glass-highlight: linear-gradient(135deg, rgba(217, 233, 255, .16), rgba(191, 216, 255, .05));
    --glass-control-shadow: inset 0 1px 0 rgba(232, 242, 255, .24), inset 0 0 0 1px rgba(218, 233, 255, .09), 0 2px 8px rgba(0, 0, 0, .12);
}
[data-theme="dark"] .navbar.scrolled { --nav-bg: rgba(23, 29, 42, .52); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 28px; padding-inline: 22px 10px; }
.nav-logo { color: var(--ink); font-size: 1.9rem; line-height: 1; font-weight: 800; letter-spacing: -.07em; padding-block: 10px; }
.nav-logo span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav-link { display: flex; align-items: center; min-height: 44px; padding: 6px 16px; color: var(--body); font-weight: 550; font-size: .94rem; border-radius: 100px; transition: color .18s ease, background .18s ease; }
.nav-link:hover { color: var(--accent); background: var(--glass-highlight); }
.nav-link[aria-current="location"] { color: var(--ink); background: var(--glass-highlight); box-shadow: var(--glass-control-shadow); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); transition: color .18s ease, border-color .18s ease, background .18s ease; }
.icon-button:hover { color: var(--accent); border-color: var(--border-strong); background: var(--soft); }
.navbar .icon-button { background: var(--glass-highlight); border-color: transparent; box-shadow: var(--glass-control-shadow); }
.navbar .icon-button:hover { border-color: var(--glass-edge); background: var(--glass-highlight); }
.theme-toggle, .nav-toggle, .close-icon, .theme-sun { display: none; }
.js .theme-toggle { display: inline-flex; }
[data-theme="dark"] .theme-sun { display: inline-block; }
[data-theme="dark"] .theme-moon { display: none; }
.nav-toggle[aria-expanded="true"] .close-icon { display: inline-block; }
.nav-toggle[aria-expanded="true"] .menu-icon { display: none; }
.home-anchor { position: absolute; top: 0; }

/* Shared buttons. */
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border: 1px solid transparent; border-radius: 100px; font-size: .95rem; font-weight: 600; transition: background .18s ease, border-color .18s ease; }
.button-primary { background: var(--button-bg); color: #fff; }
.button-primary:hover { background: #005bb8; }
.button-secondary { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.button-secondary:hover { border-color: var(--accent); background: var(--soft); }
.button .icon { width: 17px; height: 17px; flex-basis: 17px; }
.button-language { font-size: .72rem; color: var(--muted); font-weight: 650; }

/* Shared sections and links. */
.section { padding-block: 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-note { color: var(--muted); font-size: .9rem; padding-bottom: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--accent); font-size: .92rem; font-weight: 600; }
.text-link:hover { color: var(--accent-hover); text-decoration: underline; }
.video-note { margin-bottom: 12px; color: var(--muted); font-size: .85rem; }
.text-link .icon { width: 15px; height: 15px; flex-basis: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 9px; background: var(--tag-bg); border: 1px solid transparent; border-radius: 5px; color: var(--body); font-size: .8rem; line-height: 1.7; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: var(--muted); }
.badge { color: var(--accent); background: var(--tag-bg); border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; font-size: .78rem; letter-spacing: .02em; font-weight: 650; }
.badge-neutral { background: var(--soft); color: var(--body); }
.featured-label { margin-left: auto; color: var(--accent); font-size: .8rem; }

/* Publications use real grid columns, with no scaled images or padding offsets. */
.publication-list { display: grid; gap: 22px; }
.publication-card { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 38px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: var(--surface); }
.publication-card.featured { border-color: var(--border-strong); border-left: 3px solid var(--accent); padding-left: 28px; }
.pub-content { min-width: 0; }
.pub-content h3 { font-size: 1.32rem; line-height: 1.45; margin: 13px 0 12px; }
.pub-authors { font-size: .92rem; color: var(--body); }
.pub-authors sup { font-size: .7em; }
.pub-contribution { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.pub-authors strong { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.pub-venue { font-size: .88rem; color: var(--muted); margin-top: 5px; }
.pub-summary { font-size: 1rem; margin-block: 16px; line-height: 1.7; }
.pub-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 23px; margin-top: 12px; }
.file-size { font-size: .8rem; color: var(--muted); font-weight: 400; }
.pub-figure { min-width: 0; }
.figure-link { display: flex; min-height: 212px; flex-direction: column; justify-content: center; gap: 18px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; cursor: zoom-in; }
.figure-link img { width: 100%; object-fit: contain; }
.figure-link:hover { border-color: var(--accent); }
.figure-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #4b5e77; font-size: .8rem; }
.figure-action .icon { width: 14px; height: 14px; flex-basis: 14px; }
.pub-figure figcaption { margin-top: 11px; text-align: center; font-size: .8rem; color: var(--muted); }

/* Projects put the contribution and result ahead of expandable detail. */
.research { background: var(--soft); border-block: 1px solid var(--border); }
.research-list { display: grid; gap: 20px; }
.research-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 96px; }
.project-index { font-size: 1rem; color: var(--accent); font-weight: 650; padding-top: 3px; font-variant-numeric: tabular-nums; }
.project-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.project-heading h3 { max-width: 610px; font-size: 1.33rem; }
.project-heading .date { white-space: nowrap; padding-top: 3px; }
.project-context { font-size: .88rem; color: var(--accent); margin-top: 8px; }
.project-question { color: var(--muted); font-size: 1rem; margin-top: 16px; }
.project-demo { width: min(100%, 800px); margin: 24px auto; }
.project-demo video { display: block; width: 100%; height: auto; background: #17191c; border: 1px solid var(--border); border-radius: 7px; }
.project-demo figcaption { display: grid; gap: 3px; margin-top: 10px; line-height: 1.6; }
.project-demo figcaption strong { color: var(--ink); font-size: .9rem; font-weight: 600; }
.project-demo figcaption span, .project-media-error { color: var(--muted); font-size: .85rem; }
.project-media-error { margin-top: 10px; }
.project-findings { display: grid; gap: 10px; margin: 18px 0; }
.project-findings > div { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 14px; }
.project-findings dt { color: var(--ink); font-size: .93rem; font-weight: 650; }
.project-findings dd { font-size: 1rem; line-height: 1.65; }
details summary { display: flex; width: fit-content; align-items: center; gap: 12px; min-height: 44px; color: var(--accent); cursor: pointer; font-size: .9rem; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary .icon { width: 14px; height: 14px; flex-basis: 14px; transition: transform .18s ease; }
details[open] > summary .icon { transform: rotate(45deg); }
.project-details { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 2px; }
.project-details ul { list-style: disc; margin: 6px 0 6px 18px; color: var(--muted); font-size: .96rem; }
.project-details li + li { margin-top: 6px; }

/* Education and professional experience. */
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.education-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 28px; }
.education-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.school-logo { display: flex; align-items: center; justify-content: center; width: 124px; height: 70px; background: #fff; border-radius: 5px; padding: 5px; }
.school-logo img { max-height: 100%; width: 100%; object-fit: contain; }
.education-card h3 { font-size: 1.28rem; }
.school-name { font-size: .94rem; margin-top: 7px; color: var(--muted); }
.education-focus { font-size: 1rem; line-height: 1.75; margin-top: 20px; }
.coursework { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 17px; font-size: .94rem; }
.coursework h4 { font-size: .93rem; margin-bottom: 7px; }
.coursework > p, .coursework details p { color: var(--muted); line-height: 1.8; }
.coursework details p { padding: 3px 0 8px; }
.academic-stats { display: flex; gap: 36px; margin-top: 23px; }
.academic-stats p { display: flex; flex-direction: column; gap: 3px; }
.academic-stats strong { color: var(--ink); font-size: 2rem; font-weight: 650; line-height: 1.4; letter-spacing: -.03em; }
.academic-stats strong span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.academic-stats p > span { font-size: .87rem; color: var(--muted); }
.education-honors { display: grid; gap: 8px; border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; font-size: .9rem; }
.education-honors li span { color: var(--muted); white-space: nowrap; }
.education-honors li span::before { content: " \00b7\00a0"; }
.experience { padding-top: 0; }
.experience-list { border-top: 1px solid var(--border); }
.experience-item { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--border); }
.experience-meta { display: grid; align-content: start; gap: 16px; min-width: 0; }
.experience-meta > .date { padding-top: 4px; }
.experience-content { min-width: 0; }
/* Equal visual space, with each organization mark kept in its original proportions. */
.experience-logo { display: flex; align-items: center; justify-content: center; width: 176px; height: 80px; }
.experience-logo img { object-fit: contain; }
.experience-logo--galbot img { width: 176px; height: auto; }
[data-theme="dark"] .experience-logo--galbot img { filter: brightness(0) invert(1); }
.experience-logo--suxiang img { width: 80px; height: 80px; }
/* The transparent SVG adapts its wordmark to the page's color scheme. */
.experience-logo--pku { height: 100px; }
.experience-logo--pku img { width: 100%; height: auto; max-height: 100%; }
.experience-item h3 { font-size: 1.25rem; }
.company { font-size: .94rem; margin-top: 5px; color: var(--muted); }
.experience-item ul { margin-top: 12px; font-size: 1rem; padding-left: 17px; list-style: disc; }
.experience-item li + li { margin-top: 3px; }

/* Skills and honors stay scannable without arbitrary proficiency scores. */
.skills { background: var(--soft); border-block: 1px solid var(--border); }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.skill-group { display: flex; flex-direction: column; align-items: flex-start; }
.skill-group + .skill-group { border-left: 1px solid var(--border); padding-left: 30px; }
.skill-number { color: var(--accent); font-size: .84rem; margin-bottom: 11px; }
.skill-group h3 { font-size: 1.15rem; margin-bottom: 16px; }
.skill-list { font-size: 1rem; line-height: 2; margin-bottom: 12px; }
.skill-projects { display: flex; flex-direction: column; align-items: flex-start; margin-top: auto; padding-top: 10px; }
.skill-projects > p { color: var(--muted); font-size: .8rem; margin-bottom: 3px; }
.skills-foundation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; border-top: 1px solid var(--border); margin-top: 28px; padding-top: 22px; }
.skills-foundation h3 { font-size: 1rem; }
.skills-foundation ul { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--body); font-size: .95rem; }
.skills .languages { border-top: 0; margin-top: 16px; padding-top: 0; }
.languages { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 22px; }
.languages h3 { font-size: 1rem; margin-right: 12px; }
.languages p { color: var(--ink); font-size: .95rem; }
.languages p span { color: var(--muted); margin-left: 10px; }

/* Contact, footer, and figure viewer. */
.contact { background: var(--tint); border-top: 1px solid var(--border); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact h2 { font-size: clamp(2rem, 3vw, 2.5rem); }
.contact-intro { color: var(--muted); font-size: 1rem; max-width: 420px; margin-top: 14px; }
.contact-actions { justify-self: end; max-width: 100%; }
.contact-email { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; color: var(--ink); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 550; border-bottom: 1px solid var(--border-strong); padding-bottom: 8px; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-social { display: flex; gap: 28px; margin-top: 15px; }
.footer { padding-block: 24px; background: var(--bg); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .83rem; padding-right: 86px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; z-index: 10; box-shadow: var(--shadow); }
body.figure-open { overflow: hidden; }
.lightbox { width: min(1160px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); margin: auto; box-shadow: 0 30px 100px rgba(0, 0, 0, .3); }
.lightbox::backdrop { background: rgba(7, 13, 25, .82); }
.lightbox-panel { padding: 18px; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.lightbox-toolbar p { color: var(--body); font-size: .94rem; }
.lightbox-toolbar form { flex-shrink: 0; }
.lightbox img { background: #fff; width: 100%; max-height: calc(100dvh - 175px); object-fit: contain; border-radius: 5px; }
.lightbox-error { padding: 40px 16px; font-size: 1rem; }
.lightbox-error a { text-decoration: underline; color: var(--accent); }

@media (max-width: 992px) {
    :root { --nav-height: 70px; }
    .nav-container { gap: 16px; }
    .navbar { top: 12px; width: calc(100% - 28px); height: 60px; }
    .nav-actions { margin-left: auto; }
    .js .nav-toggle { display: inline-flex; }
    .js .nav-menu { position: absolute; top: 70px; left: 0; right: 0; display: none; padding: 12px; max-height: calc(100dvh - 100px); overflow-y: auto; background: rgba(245, 249, 255, .84); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--glass-edge); border-radius: 26px; box-shadow: inset 0 1px 0 var(--glass-rim), 0 16px 40px rgba(20, 25, 40, .13); }
    .js[data-theme="dark"] .nav-menu { background: rgba(24, 31, 45, .88); }
    .js .nav-menu.is-open { display: grid; gap: 3px; }
    .js .nav-link { min-height: 48px; }
    .section-note { max-width: 200px; text-align: right; }
    .publication-card { grid-template-columns: minmax(0, 1fr) 245px; gap: 24px; padding: 24px; }
    .publication-card.featured { padding-left: 22px; }
    .figure-link { min-height: 185px; padding: 10px; }
    .project-heading { flex-direction: column; gap: 7px; }
    .project-context { margin-top: 10px; }
    .education-card { padding: 24px; }
    .education-top { flex-direction: column; align-items: flex-start; }
    .skills-grid { gap: 22px; }
    .skill-group + .skill-group { padding-left: 22px; }
    .contact-layout { gap: 36px; }
}
@media (max-width: 720px) {
    .publication-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .pub-figure { width: 100%; max-width: 440px; }
    .figure-link { min-height: 0; padding: 20px 18px 14px; }
    .figure-link img { max-height: 200px; }
    .education-grid { grid-template-columns: minmax(0, 1fr); }
    .education-top { flex-direction: row; align-items: center; }
    .research-card { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 24px; }
    .project-findings > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .skills-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .skill-group + .skill-group { border-left: 0; padding: 22px 0 0; border-top: 1px solid var(--border); }
    .skill-group h3 { margin-bottom: 10px; }
    .skill-list { display: grid; gap: 2px; margin-bottom: 4px; line-height: 1.7; }
    .skill-projects { flex-direction: row; flex-wrap: wrap; gap: 0 20px; margin-top: 6px; }
    .skill-projects > p { flex-basis: 100%; }
    .skill-number { margin-bottom: 5px; }
    .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .contact-actions { justify-self: start; }
}
@media (max-width: 640px) {
    html { font-size: 17px; }
    .container { padding-inline: 20px; }
    .button { font-size: .95rem; padding-inline: 12px; gap: 7px; flex: 1 1 auto; }
    .section { padding-block: 44px; }
    .section-heading { display: block; margin-bottom: 23px; }
    .section-heading .eyebrow { font-size: .8rem; }
    .section-note { max-width: none; text-align: left; margin-top: 8px; font-size: .9rem; }
    .publication-card { padding: 20px; }
    .publication-card.featured { padding-left: 18px; }
    .pub-content h3 { font-size: 1.32rem; line-height: 1.5; }
    .featured-label { margin-left: 0; }
    .meta-row { gap: 8px 10px; }
    .pub-authors { font-size: .92rem; }
    .pub-venue { font-size: .88rem; }
    .pub-summary { font-size: 1rem; }
    .pub-figure figcaption { font-size: .8rem; }
    .pub-links { gap: 6px 19px; }
    .research-card { grid-template-columns: minmax(0, 1fr); padding: 21px; gap: 9px; }
    .project-index { font-size: 1rem; }
    .project-heading h3 { font-size: 1.33rem; }
    .project-heading .date { font-size: .88rem; }
    .project-context { font-size: .88rem; }
    .project-question, .project-findings dd { font-size: 1rem; }
    .education-card { padding: 22px; }
    .education-top { gap: 10px; margin-bottom: 19px; }
    .education-top .date { font-size: .86rem; }
    .school-logo { width: 112px; height: 64px; }
    .education-card h3 { font-size: 1.28rem; }
    .education-focus { margin-top: 16px; }
    .experience { padding-top: 0; }
    .experience-item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 23px; }
    .experience-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
    .experience-meta > .date { padding-top: 0; }
    .experience-logo { width: 112px; height: 62px; }
    .experience-logo--galbot img { width: 112px; }
    .experience-logo--suxiang img { width: 62px; height: 62px; }
    .experience-logo--pku { height: 64px; }
    .experience-item h3 { font-size: 1.25rem; }
    .languages { gap: 12px 24px; margin-top: 22px; }
    .languages h3 { flex-basis: 100%; }
    .languages p { font-size: .95rem; }
    .languages p span { margin-left: 6px; }
    .contact-email { font-size: clamp(1.1rem, 2vw, 1.5rem); gap: 12px; }
    .contact-intro { font-size: 1rem; }
    .footer-content { flex-direction: column; gap: 5px; padding-right: 72px; font-size: .83rem; }
    .back-to-top { bottom: 14px; right: 14px; }
    .lightbox { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
    .lightbox-panel { padding: 12px; }
    .lightbox-toolbar { gap: 12px; }
    .lightbox-toolbar p { font-size: .94rem; }
    .lightbox img { max-height: calc(100dvh - 170px); }
}
/* Without JavaScript, navigation and all research content remain available. */
@media (max-width: 992px) {
    html:not(.js) .navbar { position: static; height: auto; transform: none; margin: 12px auto 0; border-radius: 24px; }
    html:not(.js) .nav-container { flex-wrap: wrap; padding-block: 12px; gap: 8px; }
    html:not(.js) .nav-menu { flex-wrap: wrap; gap: 0; margin: 0; }
    html:not(.js) .hero { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
    :root, [data-theme="dark"] { --bg: white; --surface: white; --soft: white; --tint: white; --ink: #111; --body: #222; --muted: #444; --border: #ddd; --accent: #1745ac; }
    .navbar, .back-to-top, .skip-link, .hero-actions, .figure-action, .lightbox { display: none !important; }
    .project-demo { display: none; }
    .container { width: 100%; }
    .publication-card, .research-card, .education-card, .experience-item, .awards-list > li { break-inside: avoid; }
    .reveal { animation: none; }
    [data-theme="dark"] .experience-logo--galbot img { filter: none; }
    .experience-logo--pku { color-scheme: light; }
}
