/* ============================================================
   TDLI Muon Physics Group — base layout and components.
   The look (colours, type, light/dark) is set by editorial.css, loaded after this file.
   ============================================================ */
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-greek-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+370-3FF; }
:root { --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; --f-body: "Inter", system-ui, -apple-system, "Segoe UI", var(--cjk); --pad: clamp(16px, 5vw, 72px); --max: 1320px; --ease: cubic-bezier(.2, .7, .1, 1); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--f-display); line-height: 1.1; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* ---------- Language switching ---------- */
html[data-lang="en"] .zh, html[data-lang="zh"] .en { display: none !important; }
html[data-lang="zh"] body { font-family: var(--cjk); }
html[data-lang="zh"] .h2, html[data-lang="zh"] .hero-title { letter-spacing: 0; }
.cjk { font-family: var(--cjk); font-weight: 400; color: var(--muted); font-size: .82em; margin-left: .25em; letter-spacing: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono, .label, time, .code { font-family: var(--f-mono); }
/* ---------- Buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: var(--h); padding: 0 24px; border: 1px solid transparent; font: 500 14px/1 var(--f-body); letter-spacing: .01em; cursor: pointer; transition: background .25s var(--ease), border-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.mono-btn { font-family: var(--f-mono); font-size: 14px; }
/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); transition: background .3s, border-color .3s, backdrop-filter .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: block; flex: none; width: 34px; height: 38px; }   /* lab mark, 806.5 × 903.5 */
.brand-text { font: 500 15px/1.1 var(--f-display); letter-spacing: -0.01em; }
.brand-text b { font-weight: 700; }
.brand-text small { display: block; font: 400 14px/1.4 var(--f-mono); }
html[data-lang="zh"] .brand-text small { letter-spacing: .1em; font-family: var(--cjk); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { position: relative; padding: 8px 12px; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
/* dropdown groups */
.nd { position: relative; }
.nd-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; font: inherit; background: none; border: 0; cursor: pointer; transition: color .2s; }
.nd-btn .chev { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .7; transition: transform .25s var(--ease); }
.nd-btn:hover, .nd-btn.active, .nd.open .nd-btn, .nd:focus-within .nd-btn { color: var(--text); }
.nd-btn.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--accent); }
.nd-menu { position: absolute; top: calc(100% + 6px); left: 4px; min-width: 232px; padding: 8px; display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line-2); border-radius: 8px; backdrop-filter: blur(16px) saturate(140%); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
/* hover bridge */
.nd.open > .nd-menu, .nd:focus-within > .nd-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1241px) {
  .nd:hover > .nd-menu { opacity: 1; visibility: visible; transform: none; }
  .nd:hover .chev { transform: rotate(180deg); }
}
.nd.open .chev { transform: rotate(180deg); }
.nav-links .nd-menu a { padding: 9px 12px; border-radius: 5px; font-size: 15px; color: var(--text); white-space: nowrap; }
.nav-links .nd-menu a::after { display: none; }
html[data-lang="zh"] .nd-btn { font-family: var(--cjk); }
.lang { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 2px; font: 500 14px/1 var(--f-mono); cursor: pointer; }
.lang i { width: 1px; height: 12px; background: var(--line-2); }
.lang [data-l="zh"] { font-family: var(--cjk); }
html[data-lang="en"] .lang [data-l="en"], html[data-lang="zh"] .lang [data-l="zh"] { color: var(--accent); }
.lang:hover { border-color: var(--accent); }
.burger { display: none; width: 40px; height: 36px; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s; }
.burger i:first-child { top: 13px; }
.burger i:last-child { top: 21px; }
.burger[aria-expanded="true"] i:first-child { top: 17px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 17px; transform: rotate(-45deg); }
/* ---------- Hero ---------- */
.hero { position: relative; flex-direction: column; justify-content: center; isolation: isolate; }
#hero-canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
#hero-canvas.on { opacity: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.4 var(--f-mono); }
html[data-lang="zh"] .eyebrow { letter-spacing: .2em; font-family: var(--cjk); font-size: 14px; }
.dot, .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.live { animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero-title em { display: block; }
html[data-lang="zh"] .hero-title { font-family: var(--cjk); font-weight: 600; font-size: clamp(38px, 5.6vw, 82px); line-height: 1.15; }
html[data-lang="zh"] .hero-title em { font-weight: 300; font-size: .7em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
/* ---------- Ask the group (hero search / RAG) ---------- */
.ask { margin-top: 34px; max-width: 46em; position: relative; }
.ask-field { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 8px 0 16px; border: 1px solid var(--line-2); backdrop-filter: blur(10px); transition: border-color .25s, box-shadow .3s var(--ease); }
.ask-field:focus-within { box-shadow: var(--glow); }
.ask-prompt { color: var(--accent); font-size: 14px; letter-spacing: .04em; flex: none; }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: 400 16px/1.3 var(--f-body); outline: 0; }
.ask input::placeholder { color: var(--faint); }
.ask input::-webkit-search-cancel-button { -webkit-appearance: none; }
html[data-lang="zh"] .ask input { font-family: var(--cjk); }
.ask kbd { flex: none; font: 500 14px/1 var(--f-mono); border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; padding: 4px 7px; }
.ask-go { flex: none; width: 40px; height: 40px; border: 0; font-size: 18px; cursor: pointer; display: grid; place-items: center; transition: background .25s, box-shadow .25s; }
.ask.busy .ask-prompt { animation: blink .6s infinite; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-chips button { border: 1px solid var(--line); border-radius: 999px; font: 400 14px/1 var(--f-body); padding: 8px 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.ask-chips button:hover { border-color: var(--accent); }
html[data-lang="zh"] .ask-chips button { font-family: var(--cjk); }
.ask-panel { max-width: 46em; margin-top: 14px; border: 1px solid var(--line-2); border-radius: 4px; backdrop-filter: blur(12px); position: relative; animation: askin .35s var(--ease); }
@keyframes askin { from { opacity: 0; transform: translateY(6px); } }
.ask-panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 8px; height: 8px; border: 1px solid var(--accent); border-right: 0; border-bottom: 0; }
.ask-ans { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.ask-tag { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 10px; }
html[data-lang="zh"] .ask-tag { letter-spacing: .15em; font-family: var(--cjk); }
.ask-text { font-size: 15.5px; line-height: 1.7; color: var(--text); font-weight: 300; }
html[data-lang="zh"] .ask-text { font-family: var(--cjk); }
.ask-text .ask-cite, .ask-cite { color: var(--accent); font-family: var(--f-mono); font-size: 14px; margin-left: 2px; }
.ask-empty { color: var(--muted); font-size: 15px; }
.ask-empty a { color: var(--accent); }
.ask-llm { font-size: 14px; color: var(--faint); margin-top: 10px; letter-spacing: .04em; }
.ask-srcs { padding: 6px 0; counter-reset: s; }
.ask-src a { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 20px; transition: background .2s; }
.ask-n { font: 500 14px/1 var(--f-mono); color: var(--accent); width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; }
.ask-src-b { min-width: 0; }
.ask-src-b b { display: block; font-weight: 500; font-size: 14px; line-height: 1.35; color: var(--text); }
.ask-src-b small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-kind { display: inline-block; font: 500 14px/1 var(--f-mono); color: var(--accent); margin-bottom: 4px; }
.ask-src .arr { color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.ask-src a:hover .arr { transform: translateX(3px); color: var(--accent); }
.ask-foot { padding: 10px 20px 12px; font-size: 14px; color: var(--faint); border-top: 1px solid var(--line); letter-spacing: .03em; }
html[data-lang="zh"] .ask-foot { font-family: var(--cjk); }
@media (max-width: 640px) {
  .ask-field { height: 52px; padding-left: 12px; }
  .ask kbd { display: none; }
  .ask input { font-size: 15px; }
  .ask-chips button { padding: 7px 10px; }
  .ask-src a { padding: 10px 14px; }
  .ask-ans, .ask-foot { padding-left: 14px; padding-right: 14px; }
}
.spec-strip { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { border-right: 1px solid var(--line); margin-right: 20px; display: flex; flex-direction: column; gap: 6px; }
.spec:last-child { border-right: 0; margin-right: 0; }
.spec b { font: 400 clamp(22px, 2.2vw, 32px)/1 var(--f-display); letter-spacing: -0.02em; }
.spec b small { font-size: .5em; letter-spacing: 0; }
.spec b sup { font-size: .5em; }
/* ---------- Sections ---------- */
.sec { position: relative; }
.label { display: flex; align-items: center; gap: 12px; }
html[data-lang="zh"] .label { font-family: var(--cjk); letter-spacing: .2em; font-size: 14px; }
.label .idx { color: var(--accent); font-family: var(--f-mono); }
.label .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }
.h2 { font-size: clamp(34px, 4.6vw, 64px); }
html[data-lang="zh"] .h2 { font-family: var(--cjk); font-weight: 600; }
.lead { margin-top: 20px; max-width: 40em; }
.sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.prose p + p { margin-top: 1.2em; }
/* About */
.attrib { margin-top: 14px; font: 400 14px/1 var(--f-mono); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.stats > div { padding: 20px 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stats b { font: 400 clamp(40px, 4.4vw, 60px)/1 var(--f-display); letter-spacing: -0.04em; }
.stats span { line-height: 1.4; }
blockquote { margin: 40px 0 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--accent); font: 300 clamp(17px, 1.5vw, 21px)/1.5 var(--f-display); letter-spacing: -0.01em; }
/* Research modules */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); }
.module { position: relative; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; transition: background .4s var(--ease); overflow: hidden; }
.module::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, rgba(34, 81, 255, .16), transparent 70%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.module:hover::before { opacity: 1; }
.mod-top { display: flex; justify-content: space-between; }
.mod-art { margin: 28px -8px 24px; height: 170px; display: grid; place-items: center; }
.mod-art svg { width: 100%; height: 170px; overflow: visible; }
.mod-art .ln { fill: none; stroke-width: 1; }
.mod-art .ac { fill: none; stroke: var(--accent); stroke-width: 1; }
.mod-art .t { fill: var(--accent); font: 400 14px var(--f-mono); }
.mod-art .t.s { fill: var(--faint); font-size: 14px; letter-spacing: .14em; }
.mod-art .orbit { stroke-dasharray: 2 6; opacity: .7; }
.mod-art .spin { transform-origin: 160px 80px; animation: precess 7s ease-in-out infinite; }
@keyframes precess { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.mod-art .pulse { animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.mod-art .rays line { stroke-dasharray: 4 6; animation: flow 2.2s linear infinite; }
.mod-art .rays .weak { opacity: .35; }
.module h3 { letter-spacing: -0.03em; }
.mod-sub { margin-top: 6px; }
.specs { margin: 26px 0 22px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { padding-top: 2px; }
html[data-lang="zh"] .specs dt { font-family: var(--cjk); font-size: 14px; letter-spacing: .05em; }
html[data-lang="zh"] .specs dd { font-family: var(--cjk); }
.mod-txt { color: var(--muted); font-size: 14.5px; font-weight: 300; flex: 1; }
.mod-link { display: inline-flex; align-items: center; gap: .5em; margin-top: 24px; font: 500 14px/1 var(--f-body); align-self: flex-start; padding-bottom: 4px; border-bottom: 1px solid rgba(47, 200, 255, .3); transition: border-color .2s; }
.mod-link:hover { border-color: var(--accent); }
.mod-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.mod-links .mod-link { margin-top: 0; }
.courses h4 a { border-bottom: 1px solid rgba(47, 200, 255, .3); transition: border-color .2s, color .2s; }
.courses h4 a:hover { color: var(--accent); border-color: var(--accent); }
.courses h4 .arr { font-size: .7em; color: var(--accent); }
.mod-link .arr { transition: transform .25s var(--ease); }
.mod-link:hover .arr { transform: translate(2px, -2px); }
/* Team */
.pi { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 4vw, 64px); padding: clamp(24px, 3vw, 40px); margin-bottom: 72px; }
.pi-mark { position: relative; aspect-ratio: 1; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.pi-mark span { font: 500 44px/1 var(--f-display); letter-spacing: -0.02em; color: var(--accent); }
.pi-mark i { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 4s var(--ease) infinite; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
html[data-lang="zh"] .pi-role { font-family: var(--cjk); font-size: 14px; }
.pi h3 { font-size: clamp(28px, 3vw, 44px); margin-top: 12px; }
.cv { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.cv li { display: grid; grid-template-columns: 6.8em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.cv b { font: 400 14px/1.6 var(--f-mono); color: var(--faint); }
.pi-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; font: 500 14px/1 var(--f-mono); }
.pi-links a { color: var(--accent); }
.tier { display: flex; align-items: center; gap: 16px; font: 500 14px/1 var(--f-mono); margin: 0 0 20px; }
html[data-lang="zh"] .tier { font-family: var(--cjk); font-size: 14px; }
.tier i { flex: 1; height: 1px; background: var(--line); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: 56px; }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 18px; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.ini { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); font: 500 14px/1 var(--f-mono); color: var(--accent); letter-spacing: .04em; background: var(--bg-3); }
.person h5 { font: 500 16px/1.25 var(--f-display); letter-spacing: -0.01em; }
.person .cjk { display: block; margin: 4px 0 0; font-size: 14px; }
.tags { margin-top: 8px; font: 400 14px/1.4 var(--f-mono); color: var(--accent); }
.meta { margin-top: 4px; font-size: 14px; color: var(--faint); }
.more { margin-top: -20px; }
/* Join */
.join { overflow: hidden; }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 72px; border: 1px solid rgba(255, 255, 255, .1); }
.role { padding: 28px 24px 32px; backdrop-filter: blur(6px); transition: background .3s; }
.role .mono { font-size: 14px; color: var(--accent); letter-spacing: .12em; }
.role h4 { margin: 36px 0 12px; }
html[data-lang="zh"] .role h4 { font-family: var(--cjk); font-weight: 600; }
.role p { line-height: 1.6; }
.culture { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.culture .mono { color: var(--muted); }
html[data-lang="zh"] .culture .mono { font-family: var(--cjk); font-size: 14px; }
.culture ul { display: flex; flex-wrap: wrap; gap: 10px; }
.culture li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 100px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
/* News */
.news { border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: clamp(140px, 16vw, 220px) 1fr auto; gap: clamp(20px, 2.5vw, 40px); align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .4s var(--ease); }
.news a:hover { padding-left: 16px; }
.news time { font-size: 14px; color: var(--accent); }
.n-meta { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.n-body { min-width: 0; }
.n-img { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--bg-3); }
.n-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news a:hover .n-img img { transform: scale(1.06); }
.n-img .nc-ph { font-size: 32px; }
.n-cat { font: 400 14px/1 var(--f-mono); color: var(--faint); }
.n-t { font: 500 clamp(17px, 1.6vw, 22px)/1.3 var(--f-display); letter-spacing: -0.01em; }
html[data-lang="zh"] .n-t { font-family: var(--cjk); }
.n-t small { display: block; margin-top: 6px; font: 300 14px/1.5 var(--f-body); color: var(--muted); letter-spacing: 0; }
html[data-lang="zh"] .n-t small { font-family: var(--cjk); }
.news .arr { color: var(--faint); transition: color .2s, transform .25s var(--ease); }
.news a:hover .arr { color: var(--accent); transform: translate(2px, -2px); }
/* Education */
.edu { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.courses { border-top: 1px solid var(--line); }
.courses li { display: grid; grid-template-columns: 7.5em 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.code { font-size: 14px; color: var(--accent); letter-spacing: .06em; padding-top: 4px; }
.courses h4 { font-size: 20px; }
html[data-lang="zh"] .courses h4 { font-family: var(--cjk); font-weight: 600; }
.courses p { margin-top: 8px; font-size: 14.5px; color: var(--muted); font-weight: 300; }
.schools { position: sticky; top: 100px; padding: 24px; }
.schools > .mono { margin-bottom: 14px; }
html[data-lang="zh"] .schools > .mono { font-family: var(--cjk); font-size: 14px; }
.schools li { padding: 12px 0; border-top: 1px solid var(--line); }
.schools b { display: block; font: 400 14px/1.4 var(--f-mono); color: var(--faint); margin-bottom: 3px; }
/* Collaborations */
.labs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.lab { padding: 28px 22px 30px; min-height: 220px; display: flex; flex-direction: column; transition: background .3s; }
.lab:hover { background: var(--bg-3); }
.lab .mono { font-size: 14px; color: var(--faint); letter-spacing: .14em; }
.lab h4 { font-size: 22px; margin-top: auto; padding-top: 40px; }
.lab p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.lab em { margin-top: 16px; font: normal 400 14px/1 var(--f-mono); color: var(--accent); }
/* Timeline */
/* Contact */
.contact-dl { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-dl div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.contact-dl dt { font: 400 14px/1.9 var(--f-mono); color: var(--faint); }
html[data-lang="zh"] .contact-dl dt { font-family: var(--cjk); font-size: 14px; }
.contact-dl a { color: var(--accent); }
.contact-dl .links { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--f-mono); font-size: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(24px, 3vw, 40px); }
.form label { display: flex; flex-direction: column; gap: 8px; font: 400 14px/1 var(--f-mono); }
html[data-lang="zh"] .form label { font-family: var(--cjk); font-size: 14px; letter-spacing: .05em; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { width: 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: 2px; font: 400 15px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--faint); }
.form-note .copy-msg { font: inherit; color: var(--accent); background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; cursor: pointer; }
.form-note a { color: var(--accent); }
/* Footer */
.foot { padding: 32px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--faint); }
.brand.small { gap: 12px; }
.brand.small .brand-mark { width: 25px; height: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a:hover { color: var(--accent); }
/* ---------- Photos ---------- */
.mod-photo { position: relative; margin: 24px calc(-1 * clamp(24px, 3vw, 40px)) 28px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); border-block: 1px solid var(--line); }
.mod-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.mod-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(4, 7, 12, .7), transparent); pointer-events: none; }
.module:hover .mod-photo img { transform: scale(1.06); }
.mod-photo figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 1; font: 400 14px/1.3 var(--f-mono); letter-spacing: .08em; color: #d6e4f5; text-shadow: 0 1px 6px #000; }
html[data-lang="zh"] .mod-photo figcaption { font-family: var(--cjk); font-size: 14px; }
.ph { width: 96px; height: 96px; flex: none; object-fit: cover; border: 1px solid var(--line-2); background: var(--bg-3); transition: border-color .3s, transform .4s var(--ease); }
.person:hover .ph { border-color: var(--accent); }
.person.sm .ph { width: 80px; height: 80px; }
.pi-mark img { width: 100%; height: 100%; object-fit: cover; }
.pi-mark::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(47, 200, 255, .25); pointer-events: none; }
.pi-mark i { z-index: 1; }
.team-banner { position: relative; margin: 0 0 56px; aspect-ratio: 21 / 8; overflow: hidden; }
.team-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.team-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.team-banner figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 1; }
html[data-lang="zh"] .team-banner figcaption { font-family: var(--cjk); font-size: 14px; }
/* Gallery */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 100px; font: 500 14px/1 var(--f-body); cursor: pointer; transition: all .2s; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 220px); grid-auto-flow: dense; gap: 8px; }
.g-item.w { grid-column: span 2; }
.g-item.t { grid-row: span 2; }
.g-item[hidden] { display: none; }
.g-item button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--bg-3); cursor: zoom-in; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item button:hover img, .g-item button:focus-visible img { transform: scale(1.05); }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; text-align: left; font: 400 14px/1.35 var(--f-body); color: #eaf2fc; background: linear-gradient(0deg, rgba(4, 7, 12, .85), transparent); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
html[data-lang="zh"] .g-cap { font-family: var(--cjk); }
.g-cap small { display: block; margin-top: 3px; font: 400 14px/1 var(--f-mono); color: var(--accent); }
.g-item button:hover .g-cap, .g-item button:focus-visible .g-cap { opacity: 1; transform: none; }
.gallery + .more { margin-top: 28px; }
.lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); }
.lightbox::backdrop { background: rgba(2, 4, 8, .88); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 48px); margin: 0 auto; }
.lb-cap { padding: 12px 16px; font-size: 14px; color: var(--muted); }
.lb-close { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border: 1px solid var(--line-2); background: rgba(4, 7, 12, .7); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .g-cap { opacity: 1; transform: none; }
  .team-banner { aspect-ratio: 4 / 3; }
}
/* ============================================================
   Sub-pages
   ============================================================ */
body.sub .nav { border-bottom-color: var(--line); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html[data-lang="zh"] .en-only { display: none; }
.phero { position: relative; overflow: hidden; }
.phero .wrap { position: relative; }
.h1 { font-size: clamp(38px, 5.6vw, 76px); letter-spacing: -0.035em; line-height: 1.05; max-width: 16em; }
html[data-lang="zh"] .h1 { font-family: var(--cjk); font-weight: 600; letter-spacing: 0; }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 18px; letter-spacing: .06em; }
.crumbs a { color: var(--accent); }
.pbody { padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 140px); }
.pbody.tight { padding-bottom: 0; }
.with-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.side { position: sticky; top: 96px; }
.toc p, .chap p { color: var(--faint); margin-bottom: 12px; }
html[data-lang="zh"] .toc p, html[data-lang="zh"] .chap p { font-family: var(--cjk); font-size: 14px; }
.toc ol, .chap ol { border-left: 1px solid var(--line); }
.toc a, .chap a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover, .chap a:hover { color: var(--text); }
.toc a.on, .chap a.on { color: var(--accent); border-left-color: var(--accent); }
.chap .mono { display: inline-block; width: 2.2em; font-size: 14px; color: var(--faint); }
/* Long-form content */
.doc { max-width: 780px; font-size: 16.5px; line-height: 1.75; font-weight: 300; overflow-wrap: anywhere; }
.with-side .doc { max-width: 820px; }
.doc > * + * { margin-top: 1.1em; }
.doc h2, .doc h3, .doc h4, .doc h5 { color: var(--text); scroll-margin-top: 96px; }
.doc h2 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 2.2em; padding-top: .9em; border-top: 1px solid var(--line); }
.doc h3 { font-size: clamp(21px, 2vw, 27px); margin-top: 2em; }
.doc h4 { font-size: 18px; margin-top: 1.6em; }
.doc h5 { font-size: 15px; margin-top: 1.4em; }
.doc > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
html[data-lang="zh"] .doc { font-family: var(--cjk); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.doc a:hover { text-decoration-color: var(--accent); }
.doc a.zoom { text-decoration: none; display: block; cursor: zoom-in; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc ul { list-style: none; }
.doc ul > li { position: relative; }
.doc ul > li::before { content: ""; position: absolute; left: -1.05em; top: .78em; width: 5px; height: 5px; border: 1px solid var(--accent); transform: rotate(45deg); }
.doc ol { list-style: decimal; }
.doc ol > li::marker { color: var(--faint); font-family: var(--f-mono); font-size: .85em; }
.doc li + li { margin-top: .5em; }
.doc li > ul, .doc li > ol { margin-top: .5em; }
.doc figure { margin: 1.8em 0; }
.doc img { width: auto; max-width: 100%; height: auto; border: 1px solid var(--line); }
.doc figure img { margin: 0 auto; }
.doc figcaption { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--faint); font-family: var(--f-body); }
.doc video { width: 100%; border: 1px solid var(--line); background: #000; }
.doc blockquote { font-size: 1.05em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.doc code { font-family: var(--f-mono); font-size: .88em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--text); font-weight: 500; background: var(--bg-2); }
.pgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 1.6em 0; }
.pgal figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.pgal a.zoom, .pgal img { width: 100%; height: 100%; }
.pgal img { object-fit: cover; border: 0; transition: transform .8s var(--ease); }
.pgal figure:hover img { transform: scale(1.05); }
.pgal figcaption { position: absolute; inset: auto 0 0; margin: 0; padding: 20px 10px 8px; font-size: 14px; color: #e6eef8; background: linear-gradient(0deg, rgba(4, 7, 12, .85), transparent); pointer-events: none; }
.pgal.pposter { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pgal.pposter figure { aspect-ratio: auto; overflow: visible; background: none; }
.pgal.pposter a.zoom { display: block; height: auto; aspect-ratio: 3 / 4; background: var(--bg-3); border-radius: 6px; overflow: hidden; }
.pgal.pposter figcaption { position: static; padding: 8px 2px 0; background: none; color: var(--muted); font-size: 14px; line-height: 1.45; }
.pgal.pposter img { object-fit: contain; }
.pgal.pposter figure:hover img { transform: none; }
/* People page */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin: 1.2em 0 0; }
.pcard { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 18px; align-items: start; margin: 0 !important; }
.pcard figure { margin: 0; }
.pcard img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line-2); }
.pcard p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.pcard p strong:first-child { display: block; font: 500 16px/1.3 var(--f-display); color: var(--text); margin-bottom: 4px; }
/* Prev / next */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; max-width: 820px; }
.pn a { display: block; padding: 18px 20px; border: 1px solid var(--line); font: 500 15px/1.4 var(--f-display); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.pn a:hover { border-color: var(--accent); }
.pn small { display: block; margin-bottom: 6px; font: 400 14px/1 var(--f-mono); color: var(--accent); }
.pn .next { text-align: right; }
html[data-lang="zh"] .pn a { font-family: var(--cjk); }
/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 32px; }
.filters .chips { flex: 1 1 auto; }
.search input { width: min(320px, 80vw); height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 2px; font: 400 14px var(--f-body); }
.search input:focus { outline: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.empty { padding: 40px 0; color: var(--faint); text-align: center; }
/* News archive */
.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ncard[hidden] { display: none; }
.ncard a { display: flex; flex-direction: column; height: 100%; transition: border-color .3s, transform .4s var(--ease); }
.ncard a:hover { transform: translateY(-3px); }
.nc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); position: relative; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ncard a:hover .nc-img img { transform: scale(1.05); }
.nc-ph { position: absolute; inset: 0; display: grid; place-items: center; font: 300 56px/1 var(--f-display); }
.nc-body { display: block; padding: 18px 18px 22px; }
.nc-body time { font: 400 14px/1 var(--f-mono); color: var(--accent); }
.nc-body h3 { margin-top: 10px; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
html[data-lang="zh"] .nc-body h3 { font-family: var(--cjk); }
.nc-body p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post { max-width: 820px; }
/* Publications */
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.pstats > div { padding: 22px 16px 22px 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.pstats b { font: 400 clamp(32px, 3.4vw, 48px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--text); }
.pubs { border-top: 1px solid var(--line); }
.pyear { padding: 34px 0 10px; font: 400 clamp(26px, 2.4vw, 34px)/1 var(--f-display); letter-spacing: -0.02em; color: var(--text); border-bottom: 1px solid var(--line); }
.pyear[hidden], .pub[hidden] { display: none; }
.pub { display: grid; grid-template-columns: 10em 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pk { color: var(--faint); padding-top: 4px; }
html[data-lang="zh"] .pk { font-family: var(--cjk); font-size: 14px; letter-spacing: .04em; }
.pt { font: 500 17px/1.4 var(--f-display); color: var(--text); letter-spacing: -0.005em; transition: color .2s; }
.pt:hover { color: var(--accent); }
.pa { margin-top: 6px; font-size: 15px; color: var(--muted); }
.pj { margin-top: 2px; font-style: italic; }
.pb { margin-top: 8px; font-size: 14px; color: var(--faint); }
.pb a { color: var(--accent); }
.cites { color: var(--muted); }
html[data-lang="zh"] .cites { font-family: var(--cjk); }
.src { margin-top: 20px; font-size: 14px; color: var(--faint); }
.curated { margin-top: 72px; max-width: none; }
.curated h2:first-child { margin-top: 0; }
@media (max-width: 1020px) {
  .with-side { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .toc, .chap { padding: 16px 18px; border: 1px solid var(--line); }
  .toc ol, .chap ol { border-left: 0; columns: 2; column-gap: 24px; }
  .toc a, .chap a { padding: 6px 0; border: 0; }
}
@media (max-width: 640px) {
  .toc ol, .chap ol { columns: 1; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pstats { grid-template-columns: 1fr 1fr; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { text-align: left; }
  .pcards { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 72px 1fr; gap: 14px; }
  .pcard img { width: 72px; height: 72px; }
  .doc { font-size: 15.5px; }
  .pgal { grid-template-columns: repeat(2, 1fr); }
  .pgal.pposter { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   Solid 3D layer — raised surfaces, depth shadows, tilt, 3D headers
   ============================================================ */
:root { --r: 8px; --solid-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .55),
    0 1px 0 rgba(0, 0, 0, .5), 0 10px 20px -10px rgba(0, 0, 0, .7), 0 30px 60px -30px rgba(0, 0, 0, .95); --solid-shadow-hi: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .55),
    0 2px 0 rgba(0, 0, 0, .5), 0 18px 30px -12px rgba(0, 0, 0, .8), 0 50px 90px -30px rgba(0, 0, 0, 1), 0 0 40px -10px rgba(47, 200, 255, .25); }
.module, .person, .role, .lab, .ncard a, .pcard, .pi, .form, .schools, .pn a, .table-wrap, .toc, .chap, .pub-card { border-radius: var(--r); background-image: var(--solid-bg); box-shadow: var(--solid-shadow); border: 1px solid rgba(150, 180, 220, .14); }
.modules, .labs, .roles { gap: 16px; background: none; border: 0; }
.mod-photo { border: 1px solid rgba(150, 180, 220, .14); margin-left: 0; margin-right: 0; }
.person .ph, .pcard img, .ini { border-radius: 6px; }
.pi-mark { border-radius: 6px; }
.team-banner, .g-item button, .pgal figure, .doc figure img, .doc video, .nc-img { border-radius: 6px; }
.team-banner, .g-item button { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .06); }
.ncard a { overflow: hidden; }
.nc-img { border-radius: 0; }
/* tilt (set by JS: --rx --ry --mx --my) */
.tilt, .js .rv.in.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; will-change: transform; }
.tilt.hot, .js .rv.in.tilt.hot { transition: transform .08s linear, box-shadow .3s, border-color .3s; --ty: -4px; box-shadow: var(--solid-shadow-hi); }
.module.tilt > *, .role.tilt > *, .lab.tilt > * { transform: translateZ(18px); }
.module.tilt .mod-photo { transform: translateZ(34px); }
/* buttons with bevel and drop */
.btn-primary { border-radius: 6px; }
.btn-ghost, .lang, .burger, .chips button { border-radius: 6px; }
.chips button { border-radius: 100px; }
.form input, .form textarea, .search input { border-radius: 6px; }
/* 3D page headers */
.phero { align-items: flex-end; }
.phero .wrap { z-index: 2; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(4, 7, 12, .75) 34%, transparent 60%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
/* join section: 3D floor */
@media (max-width: 860px) {
  .phero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(4, 7, 12, .6) 30%, transparent 55%); }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .tilt, .tilt.hot, .js .rv.in.tilt { transform: none; }
}
/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero-inner > * { opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) forwards; }
.js .hero-inner > :nth-child(2) { animation-delay: .12s; }
.js .hero-inner > :nth-child(3) { animation-delay: .24s; }
.js .hero-inner > :nth-child(4) { animation-delay: .36s; }
.js .spec-strip { opacity: 0; animation: fade 1.4s .6s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 9px; }
  .labs { grid-template-columns: repeat(3, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1240px) {
  .burger { display: block; }
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px var(--pad) 24px; background: rgba(4, 7, 12, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { max-height: calc(100vh - 68px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nd { border-bottom: 1px solid var(--line); }
  .nd-btn { width: 100%; justify-content: space-between; padding: 14px 0; }
  .nd-btn .chev { width: 14px; height: 14px; }
  .nd-btn.active::after { display: none; }
  .nd-menu { position: static; display: none; min-width: 0; padding: 0 0 8px 16px; gap: 0; border: 0; border-radius: 0; backdrop-filter: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nd.open > .nd-menu { display: flex; }
  .nd:focus-within > .nd-menu { display: none; }
  .nd.open:focus-within > .nd-menu { display: flex; }
  .nav-links .nd-menu a { padding: 11px 0; font-size: 15px; color: var(--muted); border-bottom: 0; border-radius: 0; white-space: normal; }
}
@media (max-width: 1020px) {
  .grid-2 { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .pi { grid-template-columns: 1fr; }
  .pi-mark { max-width: 160px; }
  .edu { grid-template-columns: 1fr; }
  .schools { position: static; }
}
@media (max-width: 860px) {
  .hero { justify-content: flex-end; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec { margin-right: 12px; border-bottom: 1px solid var(--line); }
  .spec:nth-child(2n) { border-right: 0; margin-right: 0; padding-left: 0; }
  .cv { grid-template-columns: 1fr; }
  .news a { grid-template-columns: 96px 1fr; gap: 16px; padding: 22px 0; align-items: start; }
  .n-meta { margin-bottom: 6px; }
  .n-cat { display: none; }
  .news .arr { display: none; }
  .culture { grid-template-columns: 1fr; gap: 14px; }
  .courses li { grid-template-columns: 1fr; gap: 6px; }
  .labs { grid-template-columns: 1fr 1fr; }
  .lab { min-height: 180px; }
  .lab:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav { gap: 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > div { padding-right: 8px; }
  .roles { grid-template-columns: 1fr; }
  .role h4 { margin-top: 20px; }
  .form { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
/* ---------- member sub-pages ---------- */
.plink { color: inherit; }
.plink:hover strong, .plink:hover { color: var(--accent); }
.pcard .pmore { display: block; width: fit-content; margin-top: 8px; font-size: 14px; color: var(--accent); letter-spacing: .04em; }
.zh-name { color: var(--muted); font-weight: 400; margin-left: .25em; }
.mphoto { margin: 0 0 24px; }
.mphoto img { width: 100%; max-width: 250px; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line-2); border-radius: 6px; }
.mlabel { color: var(--faint); margin: 0 0 10px; }
.mlinks { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mlinks a { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mlinks a b { font: 500 14px/1.2 var(--f-display); }
.mlinks a span { font: 400 14px/1.2 var(--f-mono); color: var(--faint); }
.mlinks a:hover b { color: var(--accent); }
.mlinks .faint { padding: 11px 0; font-size: 14px; color: var(--faint); }
.member .mtl { list-style: none; padding: 0; margin: 0 0 8px; border-top: 1px solid var(--line); }
.member .mtl li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.member .mtl b { font: 400 14px/1.6 var(--f-mono); color: var(--faint); }
.member .mcount { font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.member .pubs { list-style: none; padding: 0; margin-left: 0; }
@media (max-width: 860px) {
  .mphoto img { max-width: 160px; }
  .member .mtl li { grid-template-columns: 1fr; gap: 2px; }
}
.member .mtl > li::before { display: none; }
/* former members: cards like current members */
.pcard .ini { width: 96px; height: 96px; font-size: 18px; }
@media (max-width: 560px) {
  .pcard .ini { width: 72px; height: 72px; font-size: 15px; }
}
/* publications: Shanghai era markers */
.pera { list-style: none; margin: 46px 0 0; padding: 10px 14px; border-left: 2px solid var(--accent); font: 500 14px/1.4 var(--f-mono); }
.pera:first-child { margin-top: 0; }
.pera.pre { border-left-color: var(--faint); color: var(--muted); }
.pera[hidden] { display: none; }
.sh-pill { display: inline-block; vertical-align: 0.5em; margin-left: 8px; padding: 1px 6px; border: 1px solid rgba(47, 200, 255, .35); border-radius: 999px; font-size: 14px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); opacity: .85; }
/* partner institutions + major labs: one uniform tile */
.partners-h { margin: 56px 0 18px; font: 500 15px/1.3 var(--f-display); color: var(--muted); letter-spacing: .01em; }
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.partner { height: 232px; display: flex; flex-direction: column; padding: 18px 20px 20px; border-radius: 8px; overflow: hidden; }
.partner .mono { font-size: 14px; color: var(--faint); letter-spacing: .14em; }
.partner .logo { height: 58px; margin: 14px 0; display: flex; align-items: center; justify-content: center; padding: 8px 10px; border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; }
.partner .logo.dark { background: #0d2a4a; }
.partner .logo.blue { background: #0053a1; }
.partner .logo.none { background: none; padding: 0; }
.partner .logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.partner b { font: 500 19px/1.2 var(--f-display); color: var(--text); }
.partner p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.partner { color: inherit; text-decoration: none; position: relative; transition: border-color .25s, transform .25s var(--ease, ease); }
a.partner::after { content: "↗"; position: absolute; top: 14px; right: 16px; font: 400 14px/1 var(--f-mono); color: var(--faint); transition: color .25s, transform .25s; }
a.partner:hover, a.partner:focus-visible { transform: translateY(-2px); }
a.partner:hover::after, a.partner:focus-visible::after { color: var(--accent); transform: translate(2px, -2px); }
a.partner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.partner em { margin-top: auto; font: normal 400 14px/1 var(--f-mono); color: var(--accent); }
@media (max-width: 1100px) {
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .partner { height: 220px; padding: 14px; }
  .partner b { font-size: 17px; }
}
/* ---------- About Muons outreach page ---------- */
.doc .mu-hook { font-size: 18px; line-height: 1.65; color: var(--text); font-weight: 300; }
.mu-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 2em 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mu-facts > div { padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mu-facts b { display: block; font: 500 clamp(28px, 3vw, 38px)/1.1 var(--f-display); color: var(--text); letter-spacing: -0.02em; }
.mu-facts b small { font-size: .5em; color: var(--accent); margin-left: 2px; }
.mu-facts span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.mu-fig svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
.doc ol.mu-tl { list-style: none; padding-left: 0; border-left: 1px solid var(--line); margin-left: 6px; }
.doc ol.mu-tl > li { position: relative; padding: 0 0 1.4em 26px; margin: 0; }
.doc ol.mu-tl > li::before { content: ""; position: absolute; left: -5px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.mu-tl time { display: block; font: 500 14px/1.4 var(--f-mono); color: var(--accent); letter-spacing: .06em; }
.doc .mu-tl p, .doc .mu-tl p + p { margin-top: 4px; }
.doc .mu-note { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 2px solid #FFB547; }
.mu-faq { border-top: 1px solid var(--line); }
.mu-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.mu-faq summary { cursor: pointer; list-style: none; color: var(--text); font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.mu-faq summary::-webkit-details-marker { display: none; }
.mu-faq summary::after { content: "+"; color: var(--accent); font-family: var(--f-mono); transition: transform .25s var(--ease); }
.mu-faq details[open] summary::after { transform: rotate(45deg); }
.mu-faq details p { margin-top: 10px; }
.doc ul.mu-chaps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding-left: 0; }
.doc ul.mu-chaps > li { margin: 0; border-bottom: 1px solid var(--line); }
.doc ul.mu-chaps > li::before { display: none; }
.doc ul.mu-chaps a { display: block; padding: 12px 0; text-decoration: none; }
.doc ul.mu-chaps a::after { content: " →"; }
@media (max-width: 640px) {
  .mu-facts { grid-template-columns: 1fr 1fr; }
  .doc ul.mu-chaps { grid-template-columns: 1fr; }
}
/* About Muons: body text sized like the rest of the site */
.mu-doc, .mu-doc p, .prose.mu-doc p { font-size: 15.5px; line-height: 1.75; }
.mu-doc li { font-size: 15.5px; }
.mu-doc h2 { font-size: clamp(24px, 2.2vw, 30px); }
.mu-doc h3 { font-size: clamp(19px, 1.7vw, 22px); }
.mu-doc .mu-facts b { font-size: clamp(24px, 2.4vw, 32px); }
.chap { padding: 18px 18px 12px; }
.chap > p.mono { margin-bottom: 10px; }
.prose.mu-doc p.mu-hook { font-size: 18px; }
.prose.mu-doc p.mu-note { font-size: 14px; }
.doc .mu-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.doc .mu-links a { text-decoration: none; border-bottom: 1px solid rgba(47, 200, 255, .35); }
.mu-doc .mu-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; margin: 1.8em 0; }
.mu-doc .mu-pair figure { margin: 0; }
.mu-doc .mu-pair img { width: 100%; height: auto; }
.mu-doc .table-wrap table { min-width: 560px; }
@media (max-width: 560px) {
  .mu-doc .mu-pair { grid-template-columns: 1fr; }
}
.prose.mu-doc ol.mu-refs li { font-size: 14px; line-height: 1.6; color: var(--muted); }
.mu-doc ol.mu-refs a { white-space: nowrap; }
/* group film */
.film-sec .sec-head { margin-bottom: 28px; }
.film { position: relative; border: 1px solid var(--line); overflow: hidden; background: #000; max-width: 1100px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
/* Gallery: one curated strip of 8 even tiles; the archive page holds the rest */
@media (min-width: 861px) {
  #gallery .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 14vw, 220px); }
}
#gallery .g-item.w, #gallery .g-item.t { grid-column: auto; grid-row: auto; }
/* Research: four platforms side by side on wide screens */
@media (min-width: 1200px) {
  #research .modules { grid-template-columns: repeat(4, 1fr); }
  #research .module { padding: 26px 24px; }
  #research .mod-photo { margin: 20px -24px 22px; aspect-ratio: 16 / 10; }
  #research .module h3 { font-size: clamp(24px, 2vw, 30px); }
  #research .specs { margin: 18px 0 16px; }
  #research .specs div { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  #research .mod-txt { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; flex: none; margin-bottom: 18px; }
  #research .module .mod-link { margin-top: auto; }
}
@media (max-width: 860px) {
  #gallery .gallery { grid-auto-rows: 36vw; }
  #research .mod-photo { aspect-ratio: 2 / 1; }
  #research .mod-txt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: none; margin-bottom: 16px; }
  #research .specs div { padding: 7px 0; }
}
/* Team: slimmer banner, tighter tiers, denser member grid */
#team .team-banner { aspect-ratio: 21 / 6; margin-bottom: 40px; }
#team .pi { margin-bottom: 48px; }
#team .people { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 36px; }
#team .person { padding: 14px; gap: 14px; }
#team .person .ph { width: 80px; height: 80px; }
.tier-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.tier-pair .people { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .tier-pair, .tier-pair .people { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .team-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; margin-bottom: 48px; align-items: stretch; }
  #team .team-top .team-banner { aspect-ratio: auto; height: 100%; min-height: 320px; margin: 0; }
  #team .team-top .pi { grid-template-columns: 150px 1fr; gap: 28px; margin: 0; padding: 28px; }
  #team .team-top .pi h3 { font-size: clamp(26px, 2.2vw, 34px); }
  #team .team-top .cv { grid-template-columns: 1fr; margin-top: 16px; }
  #team .team-top .cv li { padding: 6px 0; font-size: 14px; }
  #team .team-top .pi-links { margin-top: 18px; gap: 16px; }
}
/* News: two columns of compact rows */
@media (min-width: 900px) {
  #news .news { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 3vw, 48px); border-top: 0; }
  #news .news a { grid-template-columns: 132px 1fr auto; gap: 20px; padding: 18px 0; }
  #news .news li:nth-child(-n/**/+2) a { border-top: 1px solid var(--line); }
  #news .n-t { font-size: clamp(16px, 1.3vw, 19px); }
  #news .n-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
}
/* Collaborations: compact logo cards — labs in one row, partners in two */
#collaborations .partners { gap: 12px; }
#collaborations .partners-h { margin-top: 40px; }
#collaborations .partner { height: auto; min-height: 0; padding: 14px 16px 16px; }
#collaborations .partner .logo { height: 42px; margin: 10px 0; }
#collaborations .partner b { font-size: 16px; }
#collaborations .partner p { font-size: 14px; -webkit-line-clamp: 2; }
#collaborations .partner em { margin-top: 8px; }
@media (min-width: 1100px) {
  #collaborations .sec-head + .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  #collaborations .partners-h + .partners { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
/* Headline results (results.html) */
.hstrip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.hstrip a { display: flex; flex-direction: column; gap: 10px; padding: 26px 20px 24px 0; border-right: 1px solid var(--line); transition: background .3s; }
.hstrip a:last-child { border-right: 0; }
.hstrip a:not(:first-child) { padding-left: 20px; }
.hstrip b { font: 400 clamp(30px,3vw,44px)/1 var(--f-display); letter-spacing: -.03em; color: var(--text); }
.hstrip small { font-size: .42em; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.hstrip span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.hstrip i { font-style: normal; font-size: 14px; color: var(--accent); margin-top: auto; }
.res { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 56px; padding: 72px 0; border-bottom: 1px solid var(--line); align-items: start; }
.res-big { margin: 18px 0 6px; font: 300 clamp(56px,6vw,92px)/.95 var(--f-display); letter-spacing: -.04em; color: var(--text); }
.res-unit { font-size: .3em; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.res h2 { font-size: clamp(21px,1.8vw,26px); line-height: 1.25; margin-top: 14px; }
.res-p { margin-top: 16px; color: var(--muted); font-size: 15px; }
.res-role { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.res-role b { display: block; font-size: 14px; letter-spacing: .14em; color: var(--faint); margin-bottom: 4px; }
.res-links { margin-top: 18px; font-size: 14px; }
.res-links a { color: var(--accent); }
.res-fig { margin: 0; padding: 22px; border: 1px solid var(--line); background: var(--bg-2); }
.res-fig img { width: 100%; border-radius: 2px; background: #fff; }
.res-fig figcaption { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--faint); }
.rplot { width: 100%; height: auto; display: block; font-family: Inter,sans-serif; }
html[data-lang="en"] .rplot .zh, html[data-lang="zh"] .rplot .en { display: none; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
@media (max-width:900px) {
  .res { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .hstrip { grid-template-columns: 1fr 1fr; }
  .hstrip a:nth-child(2) { border-right: 0; }
  .hstrip a:nth-child(3) { padding-left: 0; }
  .hstrip a:nth-child(-n/**/+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width:520px) {
  .res-fig { padding: 12px; }
}
@media (max-width:640px) {
  .res-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .res-fig .rplot { min-width: 620px; }
}
/* PI profile (kim.html) */
.kstats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.kstats div { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; font-size: 14px; color: var(--muted); }
.kstats b { font: 400 24px/1 var(--f-display); color: var(--text); letter-spacing: -0.02em; }
.mside .mlabel { margin-top: 24px; }
.kaddr { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.kaddr > b { font-weight: 500; color: var(--text); font-size: 14px; }
.mside .toc { margin-top: 28px; }
.kim .klead { font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--f-display); color: var(--text); letter-spacing: -0.01em; }
html[data-lang="zh"] .kim .klead { font-family: var(--cjk); }
.kim h2 { scroll-margin-top: 96px; }
.kfig { margin: 28px 0 0; }
.kfig img { width: 100%; border: 1px solid var(--line); border-radius: 4px; }
.kfig figcaption { margin-top: 8px; font-size: 14px; color: var(--faint); }
.kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kgrid .kfig { margin-top: 12px; }
.kgrid .kfig img { aspect-ratio: 4 / 3; object-fit: cover; }
.kpill { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.kpill a { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); transition: border-color .3s, transform .4s var(--ease); }
.kpill a:hover { transform: translateY(-2px); }
.kpill b { font: 500 18px/1.25 var(--f-display); }
.kpill b + span { font-size: 15px; line-height: 1.55; color: var(--muted); }
.kmore { margin-top: 18px; font-size: 14px; }
.kmore a { color: var(--accent); }
.kim .pubs { margin-top: 8px; }
@media (max-width: 640px) {
  .kpill, .kgrid { grid-template-columns: 1fr; }
}
.kall { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kall summary { cursor: pointer; list-style: none; padding: 14px 0; font: 500 14px/1.4 var(--f-mono); color: var(--accent); display: flex; justify-content: space-between; }
.kall summary::-webkit-details-marker { display: none; }
.kall summary::after { content: "+"; transition: transform .25s var(--ease); }
.kall[open] summary::after { transform: rotate(45deg); }
.member .ksub { font: 500 14px/1.4 var(--f-mono); color: var(--faint); margin: 28px 0 6px; }
.member .ksub:first-child { margin-top: 8px; }
.member .ktalks em { font-style: normal; }
.member .ktalks .kvenue { font-size: 14px; color: var(--muted, var(--faint)); }
.member .kall .mtl { border-top: 0; }
/* ---------- phone tab bar + app shell ---------- */
.tabbar { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 49; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; font-size: 14px; letter-spacing: .03em; border-radius: 8px; transition: color .2s; }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  html[data-lang="zh"] .tabbar a { font-family: var(--cjk); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) {
  .nav { padding-top: env(safe-area-inset-top); height: calc(68px + env(safe-area-inset-top)); }
  .nav-links { top: calc(68px + env(safe-area-inset-top)); }
}
/* ---------- hub pages: join / follow / partner / digest ---------- */
.hub .label { margin-top: 8px; }
.hub .h2 + .roles, .hub .lead + .chips { margin-top: 28px; }
.hub .h2 { margin-bottom: 18px; }
.hub .label:not(:first-child) { margin-top: clamp(56px, 7vw, 96px); }
.hub-roles { margin-top: 0; }
.hub-role-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.st { font: 500 14px/1 var(--f-mono); padding: 6px 10px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); }
.st-open { border-color: var(--accent); }
.st-rolling { color: var(--accent); }
.hub-topics { font-size: 14px !important; color: var(--accent) !important; letter-spacing: .02em; margin-bottom: 10px !important; }
.hub-who { margin-bottom: 22px; }
.hub-progs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hub-progs li { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s; }
.hub-progs li:hover { border-color: var(--line-2); }
.hub-progs li.off { display: none; }
.hub-progs h4 { margin: 0; font: 500 17px/1.3 var(--f-display); color: var(--text); }
.hub-progs p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.hub-count { font-size: 14px; color: var(--accent); letter-spacing: .06em; margin-top: auto; padding-top: 6px; }
.hub-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.hub-steps li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.hub-steps li .mono { font-size: 14px; color: var(--accent); letter-spacing: .1em; padding-top: 4px; }
.hub-steps li p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.hub-steps li h4 { margin: 0 0 6px; font: 500 17px/1.3 var(--f-display); color: var(--text); }
.hub-steps.how { grid-template-columns: repeat(4, 1fr); }
.hub .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hub-note { margin-top: 28px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 70ch; }
.hub-alumni { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hub-alumni li { display: grid; grid-template-columns: 260px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; align-items: baseline; }
.hub-alumni strong { color: var(--text); font-weight: 500; }
.hub-alumni span { color: var(--muted); }
.hub-alumni .mono { font-size: 14px; color: var(--faint); }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hub-grid.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.hub-card { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.hub-card .label { margin: 0 0 4px; }
.hub-card h3 { margin: 0; font: 500 clamp(19px, 1.8vw, 23px)/1.25 var(--f-display); color: var(--text); letter-spacing: -.01em; }
.hub-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.hub-card .btn { margin-top: 6px; }
.hub-copy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hub-copy code { font: 400 14px/1 var(--f-mono); color: var(--accent); border: 1px solid rgba(47, 200, 255, .2); padding: 10px 12px; border-radius: 4px; word-break: break-all; }
.hub-list, .hub-events { list-style: none; margin: 4px 0 0; padding: 0; }
.hub-list li a, .hub-events li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); align-items: baseline; }
.hub-list li a:hover span { color: var(--accent); }
.hub-list time, .hub-events time { font: 400 14px/1.5 var(--f-mono); color: var(--faint); }
.hub-events strong { display: block; font-weight: 500; }
.hub-events span { font-size: 14px; color: var(--muted); }
.hub-qr { border-radius: 6px; border: 1px solid var(--line-2); background: #fff; padding: 6px; align-self: flex-start; }
.dg-month { margin-bottom: 40px; }
.dg-month h2 { font: 500 clamp(20px, 2vw, 26px)/1.2 var(--f-display); color: var(--text); margin: 0 0 12px; display: flex; gap: 12px; align-items: baseline; }
.dg-month h2 .mono { font-size: 14px; color: var(--accent); }
.dg-month ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dg-month li a { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
.dg-month li a:hover span { color: var(--accent); }
.dg-month time { font: 400 14px/1.6 var(--f-mono); color: var(--faint); }
html[data-lang="zh"] .hub-progs h4, html[data-lang="zh"] .hub-card h3, html[data-lang="zh"] .hub-steps h4, html[data-lang="zh"] .dg-month h2 { font-family: var(--cjk); }
@media (max-width: 1020px) {
  .hub-grid.three { grid-template-columns: 1fr; }
  .hub-steps.how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hub-steps, .hub-grid { grid-template-columns: 1fr; }
  .hub-steps li { padding-right: 0; }
  .hub-alumni li { grid-template-columns: 1fr auto; }
  .hub-alumni li span:not(.mono) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hub-steps.how { grid-template-columns: 1fr; }
  .hub-list li a, .hub-events li { grid-template-columns: 1fr; gap: 2px; }
}
/* ---------- About Muons calculators ---------- */
.calc { margin: 2.2em 0; padding: 26px 26px 22px; }
.calc-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.calc-head .mono { font-size: 14px; color: var(--accent); letter-spacing: .14em; }
.mu-doc .calc-head h4, .calc-head h4 { margin: 0; font: 500 clamp(18px, 1.7vw, 21px)/1.3 var(--f-display); color: var(--text); }
.calc-in { display: block; font-size: 15px; color: var(--muted); letter-spacing: .02em; }
.calc-in output { font: 500 15px/1 var(--f-mono); color: var(--accent); margin-left: 6px; }
.calc-in input[type="range"] { display: block; width: 100%; margin: 10px 0 4px; accent-color: var(--accent); }
.calc-row { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 14px; }
.calc-sel { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.calc-sel select { font: 400 14px/1.2 var(--f-body); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 7px 10px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.calc-out { background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.calc-out > span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.calc-out b { font: 500 clamp(20px, 2vw, 26px)/1.1 var(--f-display); color: var(--text); letter-spacing: -.01em; }
.calc-out small { font-size: 14px; color: var(--accent); font-family: var(--f-mono); }
.mu-doc .calc-note, .calc-note { margin: 16px 0 0 !important; font-size: 14px !important; line-height: 1.6 !important; color: var(--faint) !important; }
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc { padding: 20px 16px 18px; }
  .calc-sel { flex: 1 1 100%; }
  .calc-sel select { flex: 1; min-width: 0; }
}
@media (max-width: 480px) {
  .calc-grid { grid-template-columns: 1fr; }
}
/* ---------- Outreach & impact page ---------- */
.impact-stat { text-decoration: none; color: inherit; transition: border-color .2s; }
.impact-stat:hover { border-color: var(--accent, #2251ff); }
.impact-big { font: 500 clamp(30px, 3.4vw, 44px)/1.05 var(--f-display); color: var(--text); letter-spacing: -.02em; }
.impact-stat p { margin: 0; color: var(--muted, inherit); }
.impact-toc { margin: 28px 0 8px; font-size: 14px; line-height: 2; }
.impact-sec { padding: 48px 0 8px; border-top: 1px solid var(--line); margin-top: 40px; scroll-margin-top: 80px; }
.impact-sec .h2 { margin: 6px 0 12px; }
.impact-lead { max-width: 46em; margin: 0 0 24px; }
.impact .mtl { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.impact .mtl li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.impact .mtl b { font: 400 14px/1.6 var(--f-mono); color: var(--faint); }
.impact .mtl > li::before { display: none; }
@media (max-width: 760px) {
  .impact .hub-grid.three { grid-template-columns: 1fr; }
  .impact .mtl li { grid-template-columns: 1fr; gap: 2px; }
}
/* ---- Year in review (review.html) ---- */
.review .rv-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.review .rv-toc a { font: 500 14px/1 var(--f-mono); letter-spacing: .04em; padding: 8px 14px; border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, color .2s; }
.review .rv-toc a:hover { color: var(--text); border-color: var(--accent); }
.rv-chart { margin-bottom: clamp(48px, 6vw, 80px); }
.rv-legend { display: flex; gap: 22px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.rv-leg { display: inline-flex; align-items: center; gap: 8px; }
.rv-leg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rv-year { scroll-margin-top: 90px; padding-top: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-2); }
.rv-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 28px; }
.rv-head time { font: 400 clamp(56px, 8vw, 104px)/1 var(--f-display); letter-spacing: -0.04em; color: var(--text); }
.rv-head .faint { font-size: 14px; color: var(--muted); }
.rv-stats { grid-template-columns: repeat(6, 1fr); margin-bottom: 36px; }
.rv-stats small { display: block; font-size: 14px; color: var(--accent); margin-top: 2px; }
.rv-year h3 { font: 500 clamp(18px, 1.8vw, 22px)/1.3 var(--f-display); color: var(--text); margin: 36px 0 14px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.rv-more { font: 400 14px/1 var(--f-mono); color: var(--accent); letter-spacing: .04em; }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.rv-list li a { color: var(--text); }
.rv-list li a:hover { color: var(--accent); }
.rv-list .pk { display: inline-block; min-width: 72px; margin-right: 12px; font-size: 14px; color: var(--accent); letter-spacing: .06em; }
.rv-pubs small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
.rv-pubs small:empty { display: none; }
.rv-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rv-cards a { display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; height: 100%; transition: border-color .2s; }
.rv-cards a:hover { border-color: var(--accent); }
.rv-cards img, .rv-cards .nc-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--accent); }
.rv-cards time { font-size: 14px; color: var(--accent); padding: 0 16px; }
.rv-cards span:last-child { padding: 0 16px; font-size: 14px; line-height: 1.45; color: var(--text); }
.rv-people p { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin: 0 0 8px; }
.rv-people b { color: var(--text); font-weight: 500; margin-right: 8px; }
.rv-people small { font-size: 14px; }
@media (max-width: 900px) {
  .rv-stats { grid-template-columns: repeat(3, 1fr); }
  .rv-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rv-stats { grid-template-columns: 1fr 1fr; }
  .rv-cards { grid-template-columns: 1fr; }
  .rv-head { flex-direction: column; gap: 6px; }
}
/* ---- UN SDGs (outreach.html#sdgs) ---- */
.sdg-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sdg { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 20px; align-items: start; }
.sdg-icon { margin: 0; width: 112px; height: 112px; }
.sdg-icon img { width: 112px; height: 112px; display: block; }
.sdg-txt { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; width: 112px; height: 112px; padding: 12px; border: 1px solid var(--line-2); line-height: 1.3; color: var(--muted); }
.sdg-txt b { font: 400 40px/1 var(--f-display); color: var(--text); letter-spacing: -.03em; }
html[data-lang="zh"] .sdg-txt { text-transform: none; }
.sdg-h { margin: 0 0 8px; font: 500 17px/1.3 var(--f-display); color: var(--text); }
.sdg-h .mono { font-size: 14px; color: var(--accent); letter-spacing: .06em; margin-right: 8px; }
.sdg-claim { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.sdg-ev { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.sdg-ev a { color: var(--accent); }
html[data-lang="zh"] .sdg-h { font-family: var(--cjk); }
@media (max-width: 900px) {
  .sdg-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sdg { grid-template-columns: 88px 1fr; gap: 14px; }
  .sdg-icon, .sdg-icon img, .sdg-txt { width: 88px; height: 88px; }
  .sdg-txt b { font-size: 30px; }
}
/* ---- Group culture (culture.html) ---- */
.cult-page .h2 { margin-bottom: 18px; }
.cult-page .hub-grid { margin-bottom: 8px; }
.cu-rules { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.cu-rule { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cu-n { font: 400 clamp(26px, 2.6vw, 34px)/1 var(--f-display); color: var(--accent); letter-spacing: -.02em; padding-top: 2px; }
.cu-rule h3 { margin: 0 0 8px; font: 500 clamp(18px, 1.8vw, 22px)/1.3 var(--f-display); color: var(--text); }
.cu-rule p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 68ch; }
.cu-week { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cu-day { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.cu-day h4 { margin: 0; font: 500 17px/1.3 var(--f-display); color: var(--text); }
.cu-day p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cu-close { margin: clamp(48px, 6vw, 80px) 0 0; font: 300 clamp(19px, 2vw, 24px)/1.5 var(--f-display); color: var(--text); max-width: 60ch; }
html[data-lang="zh"] .cu-rule h3, html[data-lang="zh"] .cu-day h4, html[data-lang="zh"] .cu-close { font-family: var(--cjk); }
@media (max-width: 560px) {
  .cu-rule { grid-template-columns: 48px 1fr; gap: 14px; }
}
