/* Shared OFEL system UI. Faculty layout refinements remain page-scoped. */
:root {
  --ui-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ui-radius-sm: 14px;
  --ui-radius-md: 20px;
  --ui-radius-lg: 28px;
  --ui-radius-pill: 999px;
  --ui-border: #d4e0ec;
  --ui-surface: #fff;
  --ui-canvas: #edf3f8;
  --ui-shadow: 0 12px 36px rgba(20, 48, 78, .075), 0 1px 3px rgba(20, 48, 78, .025);
  --ui-hero: radial-gradient(ellipse at 88% 12%, rgba(83, 143, 201, .18), transparent 55%), radial-gradient(ellipse at 3% 85%, rgba(73, 151, 163, .1), transparent 50%), linear-gradient(125deg, #f2f6fa 6%, #e8f0f8 58%, #e4edf7);
  --ui-section: linear-gradient(180deg, #f8fbfd, #edf3f9);
  --ui-lower: radial-gradient(ellipse at 100% 100%, rgba(99, 151, 194, .1), transparent 62%), linear-gradient(130deg, #dfeaf4, #e9f0f7);
}
body { font-family: var(--ui-font); font-weight: 450; background: var(--ui-canvas); }
body :is(h1, h2, h3, h4, button, input, select, textarea) {
  font-family: var(--ui-font);
}
body :is(h1, h2, h3, h4) { font-weight: 700; }
body .icon { stroke-width: 1.8; }
body .site-header { background: rgba(248, 251, 254, .92); border-bottom-color: #d9e4ef; }
body .brand strong { font-weight: 750; }
body .nav-submenu {
  border-radius: var(--ui-radius-md);
  box-shadow: 0 14px 42px rgba(20, 48, 78, .13);
}
body :is(.nav-contact, .menu-toggle) { border-radius: var(--ui-radius-pill); }

body[data-page="fan-zhang"] .faculty-hero {
  background:
    radial-gradient(ellipse at 88% 12%, rgba(83, 143, 201, .18), transparent 55%),
    radial-gradient(ellipse at 3% 85%, rgba(73, 151, 163, .1), transparent 50%),
    linear-gradient(125deg, #f2f6fa 6%, #e8f0f8 58%, #e4edf7);
  border-bottom: 1px solid #dbe6ef;
}
body[data-page="fan-zhang"] .faculty-intro .faculty-name {
  font-size: clamp(56px, 6.4vw, 88px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -.05em;
}
body[data-page="fan-zhang"] .faculty-intro .faculty-name span { font-family: var(--ui-font); font-weight: 600; }
body[data-page="fan-zhang"] .faculty-title { font-size: 18px; }
body[data-page="fan-zhang"] .faculty-affiliation { font-weight: 500; }
body[data-page="fan-zhang"] .faculty-bio { font-size: 17px; line-height: 1.85; }
body[data-page="fan-zhang"] .faculty-actions { gap: 12px; }
body[data-page="fan-zhang"] .faculty-actions :is(.button, .faculty-contact) {
  min-height: 48px;
  padding: 12px 19px;
  border-radius: var(--ui-radius-pill);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
body[data-page="fan-zhang"] .faculty-contact {
  border: 1px solid #cbd9e6;
  background: var(--ui-surface);
}
body[data-page="fan-zhang"] .faculty-contact:hover { border-color: #8eacc6; background: #edf4fa; }
body[data-page="fan-zhang"] .faculty-profile-links {
  gap: 9px;
  margin-top: 25px;
  padding-top: 0;
  border-top: 0;
}
body[data-page="fan-zhang"] .faculty-profile-links a {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-pill);
  background: var(--ui-surface);
  color: #3c566e;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
body[data-page="fan-zhang"] .faculty-profile-links a:hover { background: #eaf2f9; border-color: #aac2d7; }
body[data-page="fan-zhang"] .faculty-photo {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}
body[data-page="fan-zhang"] .faculty-photo > img { border-radius: var(--ui-radius-md); }
body[data-page="fan-zhang"] .faculty-photo figcaption { margin-top: 0; padding: 17px 12px 9px; border-left: 0; }
body[data-page="fan-zhang"] .faculty-photo figcaption span { font-size: 13px; font-weight: 700; }
body[data-page="fan-zhang"] .faculty-photo figcaption small { font-size: 11px; font-weight: 500; }

body[data-page="fan-zhang"] .faculty-research { background: linear-gradient(180deg, #f8fbfd, #edf3f9); }
body[data-page="fan-zhang"] .faculty-research h2 { font-size: clamp(32px, 3vw, 43px); line-height: 1.18; letter-spacing: -.035em; }
body[data-page="fan-zhang"] .faculty-research-intro > p:not(.eyebrow) { font-weight: 450; }
body[data-page="fan-zhang"] .faculty-interests { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 14px; }
body[data-page="fan-zhang"] .faculty-interests li {
  padding: 8px 12px;
  border: 0;
  border-radius: var(--ui-radius-pill);
  background: #edf3f9;
  color: #365672;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
}
body[data-page="fan-zhang"] .faculty-work-heading { border-bottom: 0; padding-bottom: 16px; }
body[data-page="fan-zhang"] .faculty-work-heading h3 { font-size: 12px; letter-spacing: .04em; }
body[data-page="fan-zhang"] .faculty-work-heading > a { font-weight: 600; }
body[data-page="fan-zhang"] .faculty-paper-list { display: grid; gap: 13px; }
body[data-page="fan-zhang"] .faculty-paper-list > li {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface);
  box-shadow: 0 6px 22px rgba(20, 48, 78, .045);
}
body[data-page="fan-zhang"] .faculty-paper {
  padding: 22px 24px;
  border-radius: inherit;
  transition: background .2s;
}
body[data-page="fan-zhang"] .faculty-paper:hover { background: #f3f8fc; }
body[data-page="fan-zhang"] .faculty-paper-meta { color: #52677d; font-weight: 550; }
body[data-page="fan-zhang"] .faculty-paper h4 {
  font-family: var(--ui-font);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -.02em;
}
body[data-page="fan-zhang"] .faculty-paper:hover h4 { text-decoration: none; }
body[data-page="fan-zhang"] .faculty-paper-read { margin-top: 15px; font-size: 12px; font-weight: 650; }

body[data-page="fan-zhang"] .faculty-background {
  background:
    radial-gradient(ellipse at 100% 100%, rgba(99, 151, 194, .1), transparent 62%),
    linear-gradient(130deg, #dfeaf4, #e9f0f7);
  border-top-color: #d5e1ec;
}
body[data-page="fan-zhang"] .faculty-background-grid { gap: 24px; }
body[data-page="fan-zhang"] .faculty-background-grid > section {
  padding: 29px 30px 13px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}
body[data-page="fan-zhang"] .faculty-background h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
body[data-page="fan-zhang"] :is(.faculty-role-list, .faculty-education-list) { margin-top: 24px; }
body[data-page="fan-zhang"] :is(.faculty-role-list > div, .faculty-education-list li) { border-top-color: #e4ebf2; }
body[data-page="fan-zhang"] .faculty-role-list dd strong { font-weight: 650; }
body[data-page="fan-zhang"] .faculty-education-list h3 { font-size: 15px; font-weight: 650; }
body[data-page="fan-zhang"] .faculty-education-list li > span { font-weight: 600; }
body .site-footer { background: #f8fbfd; border-top: 1px solid #d7e3ee; }
body .footer-top > a:last-child {
  padding: 9px 15px;
  min-height: 44px;
  border-radius: var(--ui-radius-pill);
  background: #edf3f9;
  font-weight: 600;
}
@media (max-width: 1100px) {
  body[data-page="fan-zhang"] .faculty-background-grid > section { padding: 25px 23px 10px; }
}
@media (max-width: 960px) {
  body[data-page="fan-zhang"] .faculty-photo { max-width: 680px; justify-self: start; }
}
@media (max-width: 700px) {
  body[data-page="fan-zhang"] .faculty-intro .faculty-name { font-size: clamp(48px, 12vw, 64px); letter-spacing: -.045em; }
  body[data-page="fan-zhang"] .faculty-title { font-size: 17px; }
  body[data-page="fan-zhang"] .faculty-bio { font-size: 16px; }
  body[data-page="fan-zhang"] .faculty-actions { gap: 10px; }
  body[data-page="fan-zhang"] .faculty-actions :is(.button, .faculty-contact) { font-size: 12px; padding-inline: 16px; }
  body[data-page="fan-zhang"] .faculty-profile-links { gap: 8px; }
  body[data-page="fan-zhang"] .faculty-profile-links a { padding-inline: 11px; }
  body[data-page="fan-zhang"] .faculty-photo { padding: 8px; border-radius: 24px; }
  body[data-page="fan-zhang"] .faculty-photo > img { border-radius: 17px; }
  body[data-page="fan-zhang"] .faculty-photo figcaption { padding: 15px 10px 9px; }
  body[data-page="fan-zhang"] .faculty-research h2 { font-size: 32px; }
  body[data-page="fan-zhang"] .faculty-paper { padding: 20px; }
  body[data-page="fan-zhang"] .faculty-paper h4 { font-size: 18px; }
  body[data-page="fan-zhang"] .faculty-background-grid { gap: 20px; }
  body[data-page="fan-zhang"] .faculty-background-grid > section { padding: 25px 20px 9px; border-radius: 24px; }
  body[data-page="fan-zhang"] .faculty-background h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="fan-zhang"] .faculty-paper { transition: none; }
}

/* Shared typography and controls. Font sizes retain their page-specific scale. */
body .page-heading h1, body .profile-content h1, body .news-article h1 { font-weight: 750; letter-spacing: -.04em; line-height: 1.15; }
body .home-hero h1, body .home-cta h2, body .gateway-heading h2 { font-weight: 700; }
body .gateway-copy h3, body .reel-card h3, body .publication h3, body .research-item h2,
body .blog-post h2, body .member-details h3, body .news-paper strong { font-weight: 650; }
body .mock-panel strong, body .mock-news strong { font-weight: 650; }
body .profile-pager .pager-badge { font-family: var(--ui-font); font-weight: 750; }
.nav-submenu { border-top: 1px solid var(--ui-border); }
.nav-submenu a { border-radius: 12px; font-weight: 550; }
.nav-dropdown-toggle { font-weight: 650; }
.button, .cta-button, .filter-button, .news-filter, .collection-button,
.copy-citation, .publication-expand button, .software-links .button,
.contact-primary-email, .visit-campus .contact-map-links a {
  border-radius: var(--ui-radius-pill); font-weight: 650;
}
#publication-reset { border-radius: var(--ui-radius-pill); font-weight: 600; }
.button, .cta-button { min-height: 46px; }
.paper-arrow, .member-link { border-radius: 50%; }
.member-links { flex-wrap: wrap; }
.publication-discovery input, .publication-discovery select, .citation-text, .contact-email-manual input {
  border-radius: var(--ui-radius-sm); font-family: var(--ui-font); border-color: #bccfe0;
}
.publication-discovery input, .publication-discovery select { min-height: 46px; }
.publication-discovery { padding: 24px; border-radius: var(--ui-radius-lg); background: var(--ui-surface); border-color: var(--ui-border); box-shadow: var(--ui-shadow); }
.publication-attribution span, .news-category { border-radius: var(--ui-radius-pill); }
.publication-collections, .resource-tabs { width: fit-content; max-width: 100%; padding: 6px; gap: 6px; border: 1px solid #d6e2ed; border-radius: 24px; background: #e4edf5; }
.publication-collections .collection-button, .resource-tabs a { padding: 11px 18px; min-height: 44px; border: 0; border-radius: var(--ui-radius-pill); font-size: 14px; line-height: 1.5; font-weight: 650; }
.publication-collections .collection-button.is-active, .resource-tabs a[aria-current="page"] { color: var(--navy); background: white; box-shadow: 0 2px 7px rgba(20, 48, 78, .08); }
.resource-tabs a:hover { background: #f5f9fc; }
.filter-button { background: white; min-height: 44px; }
.filter-button.is-active, .news-filter.is-active { color: white; background: var(--navy); border-color: var(--navy); }

/* Light pages use the same low-saturation ocean canvas as the approved faculty page. */
body .people, body .research.detail-page, body .resources, body .reference-page,
body .publications, body[data-page="blog"] .detail-page { background: var(--ui-hero); }
.page-heading { padding-bottom: 8px; }
.member-card, .reference-card, .software-feature {
  border-radius: var(--ui-radius-lg); border-color: var(--ui-border); box-shadow: var(--ui-shadow);
}
.member-photo, .member-photo-placeholder { border-radius: var(--ui-radius-sm); }
.alumni-tile { border-radius: var(--ui-radius-md); border-color: var(--ui-border); box-shadow: var(--ui-shadow); }
.alumni-tile .alumni-photo, .alumni-tile .member-photo-placeholder { border-radius: 0; }
.profile-photo { padding: 10px; border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--ui-radius-lg); background: white; box-shadow: var(--ui-shadow); }
.profile-photo .profile-img, .profile-photo .member-photo-placeholder { border-radius: var(--ui-radius-md); }
.profile-photo-enhanced .profile-img { background: linear-gradient(145deg, #edf3f8, #dce8f1); }
.profile-content .pi-links { gap: 9px; }
.profile-content .pi-links a { min-height: 42px; padding: 8px 12px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-pill); background: white; font-size: 13px; }
.profile-content .pi-links a:hover { background: #eaf3fa; border-color: #aac2d7; }
.profile-bio-original { padding: 15px 18px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); background: rgba(255, 255, 255, .7); }
.profile-cv { margin-top: 56px; }
.profile-cv-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.profile-cv-nav a { display: grid; place-items: center; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #c7dbe9; border-radius: var(--ui-radius-pill); background: #ffffffb3; color: #275675; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.4; transition: background .2s, border-color .2s; }
.profile-cv-nav a:hover { background: #fff; border-color: #6ca7cb; text-decoration: none; }
.profile-cv-nav a:focus-visible { outline: 3px solid #3e91c8; outline-offset: 3px; }
.profile-cv-section, .profile-cv .profile-publications { margin-top: 52px; padding-top: 0; border-top: 0; }
.profile-cv-section h2, .profile-cv .profile-publications h2 { margin-bottom: 22px; font: 750 clamp(25px, 3vw, 34px)/1.2 var(--ui-font); letter-spacing: -.035em; text-transform: none; scroll-margin-top: calc(var(--header-height) + 28px); }
.profile-cv-grid { display: grid; gap: 18px; }
.profile-cv-grid[data-layout="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-cv-grid[data-layout="skills"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-cv-card { min-width: 0; padding: clamp(22px, 3vw, 32px); border: 1px solid #ffffffed; border-radius: var(--ui-radius-lg); background: #ffffffbf; box-shadow: 0 12px 35px #163e6310; }
.profile-cv-card h3 { margin: 0; color: #173651; font: 700 clamp(18px, 2vw, 22px)/1.35 var(--ui-font); letter-spacing: -.025em; overflow-wrap: anywhere; }
.profile-cv-card p { margin-top: 14px; color: #4e6b84; font-size: 16px; line-height: 1.8; }
.profile-cv-card .profile-cv-period { margin: 0 0 13px; color: #126b9b; font-size: 12px; font-weight: 700; letter-spacing: .055em; }
.profile-cv-card .profile-cv-subtitle { margin-top: 9px; color: #315b7b; font-size: 15px; font-weight: 550; }
.profile-cv-card .profile-cv-authors { font-size: 14px; }
.profile-cv-note { margin-bottom: 22px; max-width: 850px; color: #4e6b84; font-size: 15px; line-height: 1.8; }
@media (max-width: 760px) {
  .profile-cv-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-cv-grid[data-layout="compact"], .profile-cv-grid[data-layout="skills"] { grid-template-columns: minmax(0, 1fr); }
  .profile-cv-section, .profile-cv .profile-publications { margin-top: 38px; }
}
.profile-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-top-color: #c8dce9; }
.profile-pager a, .profile-pager a:hover { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 18px; min-width: 0; min-height: 112px; width: 100%; margin: 0; padding: 22px; border: 1px solid #d0dfec; border-radius: 24px; background: #ffffffdb; color: var(--ink); text-decoration: none; transition: background .25s, border-color .25s, box-shadow .25s, transform .25s; }
.profile-pager .profile-prev { grid-column: 1; text-align: left; }
.profile-pager .profile-next, .profile-pager .profile-next:hover { grid-column: 2; grid-template-columns: minmax(0, 1fr) 48px; text-align: right; }
.profile-pager .pager-badge { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #d7e5ef; border-radius: 50%; color: #235e8b; background: #edf5fb; box-shadow: none; transition: background .25s, color .25s, border-color .25s; }
.profile-pager .pager-badge .icon { width: 22px; height: 22px; stroke-width: 2; }
.profile-pager .pager-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-pager .profile-prev .pager-text { align-items: flex-start; }
.profile-pager .profile-next .pager-text { align-items: flex-end; }
.profile-pager .pager-dir { color: #59748c; font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.profile-pager .pager-name { color: #183a56; font-size: clamp(17px, 1.8vw, 23px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.profile-pager a:is(:hover, :focus-visible) { background: #f6fbff; border-color: #80b5d9; box-shadow: 0 12px 28px #174a741a; transform: translateY(-3px); }
.profile-pager a:is(:hover, :focus-visible) .pager-badge { background: #185b90; border-color: #185b90; color: white; box-shadow: none; }
.profile-pager a:is(:hover, :focus-visible) .pager-name { color: #0d659f; text-decoration: none; }
.profile-pager a:focus-visible { outline: 2px solid #3e91c8; outline-offset: 4px; }

/* Full-screen member portraits: editorial copy left, extracted subject centre, research lower right. */
body[data-member-hero] .site-header { position: fixed; inset: 0 0 auto; transition: background .25s; }
body[data-member-hero] main { padding-top: 0; }
body[data-member-hero] .site-header:not(.is-past-member) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
body[data-member-hero] .site-header:not(.is-past-member) :is(.brand, .main-nav > a, .nav-dropdown-toggle) { color: #fff; }
body[data-member-hero] .site-header:not(.is-past-member) .brand small { color: #c3d4e5; }
body[data-member-hero] .site-header:not(.is-past-member) .menu-toggle { border-color: #a3b8ca; }
body[data-member-hero] .site-header:not(.is-past-member) .menu-toggle span { background: #fff; }
body[data-member-hero] .shou-link img { padding: 2px; border-radius: 50%; background: #fff; }
.member-intro { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; background: #040b14; color: #fff; }
.member-intro::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #030913f5 0%, #040c18d9 35%, #040c1880 65%, #030913e8 100%), linear-gradient(0deg, #030913, transparent 60%); pointer-events: none; }
.member-intro-wash { position: absolute; inset: -20px; z-index: -2; width: calc(100% + 40px); max-width: none; height: calc(100% + 40px); object-fit: cover; filter: blur(14px) saturate(.65); pointer-events: none; }
.member-intro[data-background-light="sunlight"]::after { background: linear-gradient(90deg, #030913f0 0%, #040c18a8 35%, #040c184d 65%, #030913a3 100%), linear-gradient(0deg, #030913, transparent 65%); }
.member-intro[data-background-light="sunlight"] .member-intro-wash { filter: blur(8px) saturate(.9); object-position: 64% 50%; }
.member-intro-color { background: radial-gradient(ellipse at 58% 36%, var(--member-tint), transparent 66%), #081323; }
.member-intro-watermark { position: absolute; z-index: 0; left: 18%; top: 24%; color: #c4dcff09; font-size: clamp(140px, 25vw, 420px); font-weight: 850; letter-spacing: -.08em; line-height: 1; pointer-events: none; }
/* Fit the mask to the image itself so letterboxing cannot expose a hard crop. */
.member-intro-portrait { --portrait-side-feather: 6%; --portrait-top-feather: 0%; --portrait-bottom-solid: 82%; position: absolute; z-index: 1; left: 34%; width: 43%; top: calc(var(--header-height) + 18px); bottom: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.member-intro-portrait[data-portrait-feather] { --portrait-side-feather: 14%; --portrait-bottom-solid: 68%; }
.member-intro-portrait[data-portrait-feather="cropped"] { --portrait-top-feather: 8%; }
.member-intro-photo { display: block; flex: none; width: auto; height: auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center bottom !important; filter: drop-shadow(0 0 35px #4d92e41a);
  --portrait-mask: linear-gradient(90deg, transparent, #000 var(--portrait-side-feather), #000 calc(100% - var(--portrait-side-feather)), transparent), linear-gradient(180deg, transparent, #000 var(--portrait-top-feather), #000 var(--portrait-bottom-solid), transparent);
  -webkit-mask-image: var(--portrait-mask); mask-image: var(--portrait-mask);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.member-intro-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 34% 39% 27%; align-items: center; min-height: 100svh; padding-block: calc(var(--header-height) + 40px) 100px; }
.member-intro-copy { min-width: 0; max-width: 390px; }
.member-intro-identity { display: contents; }
.member-intro-greeting { font-size: clamp(24px, 2.3vw, 36px); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.member-intro h1 { margin-top: 4px; color: #fff; font: 800 clamp(48px, 5.5vw, 88px)/.98 var(--ui-font); letter-spacing: -.055em; }
.member-intro h1 span { display: block; }
.member-intro h1 span:first-child { color: #7dbbff; }
.member-intro-role { margin-top: 19px; color: #e2ecf8; font-size: 16px; line-height: 1.5; font-weight: 650; }
.member-intro-summary { margin-top: 22px; color: #c5d2e1; font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.person-name-zh { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; font-weight: 550; letter-spacing: .06em; }
.member-intro .person-name-zh { margin-top: 12px; color: #d5e4f3; font-size: 18px; }
.profile-content .person-name-zh { margin-top: 10px; color: #426585; font-size: 20px; }
.fz-hero-id .person-name-zh { margin: 12px 0 0; color: #d5e4f3; font-size: 18px; }
.faculty-intro .person-name-zh { margin-top: 10px; color: #426585; font-size: 20px; }
.directory-person-label .person-name-zh { color: #bbd5ea; }
.member-intro .pi-links { margin-top: 24px; gap: 8px; }
.member-intro .pi-links a { min-height: 44px; max-width: 100%; padding: 9px 13px; border: 1px solid #c9e1f538; border-radius: var(--ui-radius-pill); background: #b5d9ff0d; color: #e3efff; font-size: 12px; overflow-wrap: anywhere; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.member-intro .pi-links a:hover { background: #b5d9ff26; border-color: #93c2f3; }
.member-intro .pi-links .icon { flex-shrink: 0; }
.member-intro-research { grid-column: 3; align-self: end; text-align: right; padding-bottom: 36px; text-shadow: 0 2px 20px #020711; }
.member-intro-research > p { color: #8fbaff; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; }
.member-intro-research > div { display: grid; gap: 8px; }
.member-intro-research span { font-size: clamp(20px, 2.3vw, 36px); line-height: 1.12; font-weight: 750; letter-spacing: -.035em; text-wrap: balance; }
.member-intro-research .member-intro-topic-pending { font-size: 20px; color: #bacadd; font-weight: 550; }
.member-intro-more { position: absolute; z-index: 3; bottom: 26px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; color: #bdd4e8; font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.member-intro-more .icon { width: 24px; height: 24px; }
.member-intro a:focus-visible { outline: 3px solid #afd5ff; outline-offset: 4px; }
.member-details-heading { font: 750 52px/1.15 var(--ui-font); letter-spacing: -.04em; margin-top: 14px; scroll-margin-top: calc(var(--header-height) + 28px); }
@media (max-width: 1050px) and (min-width: 761px) {
  .member-intro-layout { grid-template-columns: 37% 35% 28%; }
  .member-intro-portrait { left: 35%; width: 43%; }
  .member-intro-summary { font-size: 14px; }
  .member-intro h1 { font-size: 54px; }
}
@media (max-width: 760px) {
  body[data-member-hero] .site-header:has(.main-nav.is-open) { background: #08182af5; }
  body[data-member-hero] .site-header:not(.is-past-member) .main-nav :is(a, .nav-dropdown-toggle) { color: var(--ink); }
  .member-intro-layout { grid-template-columns: 1fr; align-content: end; gap: 28px; padding-top: calc(var(--header-height) + 350px); padding-bottom: 100px; }
  .member-intro-portrait { --portrait-bottom-solid: 55%; left: 22%; width: 76%; top: calc(var(--header-height) + 10px); bottom: auto; height: 430px; }
  .member-intro-portrait[data-portrait-feather] { --portrait-side-feather: 10%; --portrait-bottom-solid: 55%; }
  .member-intro-watermark { top: 18%; left: 0; font-size: 40vw; }
  .member-intro-copy { max-width: none; }
  .member-intro h1 { font-size: clamp(44px, 11vw, 64px); }
  .member-intro h1 span { display: inline; }
  .member-intro h1 span + span::before { content: ' '; }
  .member-intro-greeting { font-size: 24px; }
  .member-intro-summary { font-size: 15px; max-width: 560px; }
  .member-intro-research { grid-column: 1; text-align: left; padding: 0; }
  .member-intro-research > p { font-size: 10px; margin-bottom: 10px; }
  .member-intro-research > div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .member-intro-research span { font-size: 21px; }
  .member-details-heading { font-size: 39px; }
}
@media (prefers-reduced-transparency: reduce) {
  .member-intro-wash { display: none; }
  .member-intro .pi-links a { background: #13283c; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Original photo scenes place introduction copy beside the subject. */
.member-intro-photo-scene { background: #263644; }
.member-intro-scene-image { position: absolute; inset: 0 0 0 auto; z-index: -2; width: auto; min-width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right bottom !important; }
.member-intro-photo-scene::after { background:
  linear-gradient(180deg, #04162c80, transparent 30%),
  linear-gradient(90deg, #04162c99, #04162c66 36%, transparent 64%),
  linear-gradient(0deg, #04162c99, transparent 45%); }
.member-intro-photo-scene .member-intro-layout { width: auto; max-width: none; margin-left: clamp(24px, 6vw, 96px); margin-right: 54%; padding: calc(var(--header-height) + 44px) 0 110px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; gap: 36px; }
.member-intro-photo-scene .member-intro-copy { text-shadow: 0 2px 18px #04162c66; }
.member-intro-photo-scene .member-intro-research { grid-column: 1; text-align: left; padding: 0; }
/* Mirror the copy placement for photos with a subject on the left. */
.member-intro[data-photo-copy="right"] .member-intro-scene-image { width: 100%; object-position: left 15% !important; }
.member-intro[data-photo-copy="right"] .member-intro-layout { margin-left: 54%; margin-right: clamp(24px, 6vw, 96px); }
.member-intro[data-photo-copy="right"]::after { background:
  linear-gradient(180deg, #04162c66, transparent 30%),
  linear-gradient(90deg, transparent 30%, #04162cbf 62%, #04162cd9),
  linear-gradient(0deg, #04162c88, transparent 40%); }
@media (max-width: 760px) {
  .member-intro-photo-scene .member-intro-scene-image { top: var(--header-height); width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .member-intro-photo-scene::after { background: none; }
  .member-intro-photo-scene .member-intro-layout { margin-inline: 24px; padding-top: calc(var(--header-height) + 66.667vw + 24px); padding-bottom: 110px; grid-template-rows: auto; gap: 30px; }
  .member-intro[data-photo-copy="right"] .member-intro-scene-image { aspect-ratio: var(--scene-ratio); }
  .member-intro[data-photo-copy="right"]::after { background: none; }
  .member-intro[data-photo-copy="right"] .member-intro-layout { margin-inline: 24px; padding-top: calc(var(--header-height) + 100vw * var(--scene-inverse-ratio) + 24px); }
}
.directory-empty, .publication-empty, .news-empty { border: 1px solid var(--ui-border); padding: 28px; background: white; border-radius: var(--ui-radius-md); }

/* Keep self-selected display photos complete and at their supplied resolution. */
.member-intro[data-photo-display="contained"] { background: radial-gradient(ellipse at 78% 45%, #19374b, #061626 72%); }
.member-intro[data-photo-display="contained"]::after { background: linear-gradient(0deg, #04162c88, transparent 20%); }
/* Feather complete display photos into the canvas while keeping their centre clear. */
.member-intro[data-photo-display="contained"] .member-intro-scene-image { top: 50%; right: 6vw; bottom: auto; width: min(38vw, var(--scene-width), calc((100svh - var(--header-height) - 80px) / var(--scene-inverse-ratio))); min-width: 0; height: auto; max-height: none; aspect-ratio: var(--scene-ratio); object-fit: contain; border-radius: 0; transform: translateY(-50%);
  --scene-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 2%, #000 94%, transparent);
  -webkit-mask-image: var(--scene-mask); mask-image: var(--scene-mask);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
@media (max-width: 760px) {
  .member-intro[data-photo-display="contained"] .member-intro-scene-image { top: calc(var(--header-height) + 24px); right: auto; left: 50%; width: min(calc(100vw - 48px), var(--scene-width)); max-height: none; transform: translateX(-50%); }
  .member-intro[data-photo-display="contained"] .member-intro-layout { padding-top: calc(var(--header-height) + min(calc(100vw - 48px), var(--scene-width)) * var(--scene-inverse-ratio) + 48px); }
}

/* Members directory: aligned portrait tiles on the shared ocean-blue canvas. */
body:is([data-page="members"], [data-page="alumni"]) { background: #06182b; color: #e7f2fc; }
body:is([data-page="members"], [data-page="alumni"]) .site-header { background: rgba(6, 24, 43, .94); border-bottom-color: #b3d9fa1c; }
body:is([data-page="members"], [data-page="alumni"]) :is(.brand, .main-nav > a, .nav-dropdown-toggle) { color: #edf6ff; }
body:is([data-page="members"], [data-page="alumni"]) .brand small { color: #adc6dd; }
body:is([data-page="members"], [data-page="alumni"]) .brand-dot { color: #8ec5ef; }
body:is([data-page="members"], [data-page="alumni"]) .shou-link { border-right-color: #b3d9fa33; }
body:is([data-page="members"], [data-page="alumni"]) .shou-link img { padding: 2px; border-radius: 50%; background: #fff; }
body:is([data-page="members"], [data-page="alumni"]) .nav-submenu a { color: var(--ink); }
body:is([data-page="members"], [data-page="alumni"]) .menu-toggle { border-color: #93b4d177; }
body:is([data-page="members"], [data-page="alumni"]) .menu-toggle span { background: #e7f2fc; }
body:is([data-page="members"], [data-page="alumni"]) .member-directory { padding-block: 70px 120px; background: radial-gradient(ellipse at 85% 0, #1437578c, transparent 55%), #06182b; }
.directory-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.directory-list { list-style: none; margin: 0; padding: 0; }
.directory-cohort { margin-top: 30px; }
.directory-cohort > h2 { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #b3d9fa26; color: #c6def1; font-size: 20px; line-height: 1.4; font-weight: 650; letter-spacing: -.02em; }
.directory-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #b3d9fa26; }
.directory-footer .text-link { color: #abd7fa; }
.directory-footer .directory-sort-note { margin: 0 0 0 auto; }
.directory-intro { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 40px; padding-bottom: 28px; }
.directory-intro .eyebrow { grid-column: 1 / -1; color: #89b4d8; font-size: 11px; letter-spacing: .14em; }
.directory-intro :is(h1, h2) { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; font-weight: 780; letter-spacing: -.055em; color: #edf6ff; }
.directory-intro :is(h1, h2) span { color: #88c8ff; }
.directory-intro > p:last-child { margin: 0 0 4px; color: #b2cadf; font-size: 15px; line-height: 1.7; }
.directory-sort-note { grid-column: 1 / -1; margin: 8px 0 0; text-align: right; color: #93afc5; font-size: 12px; line-height: 1.6; }
.directory-person { min-width: 0; position: relative; scroll-margin-top: 120px; }
.directory-person:focus-within { z-index: 2; }
.directory-person-link { display: flex; flex-direction: column; position: relative; min-width: 0; height: 100%; border-radius: 20px; background: #17334e; box-shadow: 0 12px 30px #020c1826; transform-origin: center; transition: transform .35s cubic-bezier(.2, .65, .3, 1), box-shadow .35s; }
.directory-person-label { order: 2; flex: 1; min-height: 104px; padding: 22px 20px 18px; border-radius: 0 0 20px 20px; background: linear-gradient(180deg, #081c30c9, #081c30f5); border-top: 1px solid #d2eaff26; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.directory-person-label :is(h2, h3) { margin: 0; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.15; font-weight: 700; letter-spacing: -.035em; color: #edf6ff; overflow-wrap: anywhere; transition: color .25s; }
.directory-person-label p { margin-top: 7px; color: #bbd5ea; font-size: 12px; line-height: 1.45; }
.directory-photo { position: relative; flex: none; overflow: hidden; width: 100%; aspect-ratio: 3 / 4; border-radius: 20px 20px 0 0; background: #17334e; border: 1px solid #b4dcff26; transition: border-color .25s; }
.directory-photo > .directory-person-img, .directory-photo > .member-photo-placeholder { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.directory-photo > .directory-person-img { object-position: 50% 50%; transform: scale(var(--directory-photo-scale, 1)); transform-origin: 50% 100%; }
.directory-photo > .member-photo-placeholder { display: grid; background: linear-gradient(145deg, #234968, #10283f); }
.directory-photo .member-photo-placeholder svg { fill: #658aa7; stroke: #7399b6; }
.directory-person-link:focus-visible { outline: 2px solid #9fd6ff; outline-offset: 5px; transform: scale(1.035); }
.directory-person-link:focus-visible :is(h2, h3) { color: #8fceff; }
.directory-person-link:active { transform: scale(1.02); }
@media (hover: hover) {
  .directory-person:has(.directory-person-link:hover) { z-index: 2; }
  .directory-person-link:hover { transform: scale(1.035); box-shadow: 0 22px 45px #020b1866; }
  .directory-person-link:hover :is(h2, h3) { color: #8fceff; }
  .directory-person-link:hover .directory-photo { border-color: #85bfe4a6; }
}
body:is([data-page="members"], [data-page="alumni"]) .site-footer { background: #051321; color: #e2f0fc; }
body:is([data-page="members"], [data-page="alumni"]) .footer-brand small { color: #a5bfd5; border-color: #7099b544; }
body:is([data-page="members"], [data-page="alumni"]) .footer-brand > span { color: #8ec5ef; }
body:is([data-page="members"], [data-page="alumni"]) .footer-bottom { color: #a5bfd5; border-color: #7099b52e; }
body:is([data-page="members"], [data-page="alumni"]) .footer-top > a:last-child { color: #e1f0fc; background: #14314a; border-color: #436984; }
@media (max-width: 1100px) {
  .directory-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .directory-intro { gap: 14px 28px; }
}
@media (max-width: 760px) {
  .directory-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .directory-intro { grid-template-columns: 1fr; gap: 18px; padding-bottom: 16px; }
  .directory-intro :is(h1, h2) { font-size: clamp(40px, 7.5vw, 58px); }
  .directory-person-label :is(h2, h3) { font-size: clamp(18px, 3.5vw, 25px); }
}
@media (max-width: 700px) {
  body:is([data-page="members"], [data-page="alumni"]) .main-nav { background: #0c253c; border-color: #31516b; }
  body:is([data-page="members"], [data-page="alumni"]) .main-nav > a { color: #e7f2fc; }
  body:is([data-page="members"], [data-page="alumni"]) .member-directory { padding-block: 42px 76px; }
  .directory-intro .eyebrow { font-size: 10px; }
  .directory-intro > p:last-child { font-size: 14px; }
}
@media (max-width: 480px) {
  .directory-board { gap: 12px; }
  .directory-person-link { border-radius: 16px; }
  .directory-photo { border-radius: 16px 16px 0 0; }
  .directory-person-label { min-height: 94px; padding: 15px 12px 13px; border-radius: 0 0 16px 16px; }
  .directory-person-label :is(h2, h3) { font-size: clamp(16px, 4.1vw, 20px); }
  .directory-person-label p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .directory-person-link, .directory-person-link:hover, .directory-person-link:focus-visible, .directory-person-link:active { transform: none; transition: none; }
  .directory-person-label :is(h2, h3), .directory-photo { transition: none; }
}

.alumni-hero { overflow: hidden; color: #e8f4ff; background: radial-gradient(ellipse at 80% 45%, #1c476a80, transparent 62%), #06182b; border-bottom: 1px solid #b2d9f420; }
.alumni-hero-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; min-height: max(660px, calc(100svh - var(--header-height))); padding-block: 64px; }
.alumni-hero-copy .eyebrow { color: #9ebed7; font-size: 11px; letter-spacing: .16em; }
.alumni-hero-copy h1 { margin-top: 24px; color: #edf7ff; font-size: clamp(48px, 5.7vw, 80px); font-weight: 770; line-height: 1.04; letter-spacing: -.055em; }
.alumni-hero-copy h1 span { color: #8ec9f6; }
.alumni-hero-copy > p:last-of-type { margin-top: 24px; color: #b0cade; font-size: 16px; line-height: 1.7; }
.alumni-explore { display: inline-flex; align-items: center; gap: 22px; min-height: 48px; margin-top: 28px; padding: 12px 20px; border: 1px solid #bfdff838; border-radius: 999px; color: #ddf0ff; background: #b3ddff0a; font-size: 13px; font-weight: 600; }
.alumni-explore:hover { border-color: #a1d4f4; background: #a1d4f41a; }
.alumni-overview { display: flex; gap: 40px; margin: 44px 0 0; }
.alumni-overview > div { display: flex; flex-direction: column-reverse; gap: 7px; }
.alumni-overview dt { color: #9bbbd4; font-size: 11px; letter-spacing: .04em; }
.alumni-overview dd { margin: 0; color: #e9f6ff; font-size: 34px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.alumni-orbit { position: relative; min-width: 0; height: 500px; }
.alumni-globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.alumni-orbit-center { position: absolute; top: 50%; left: 50%; translate: -50% -50%; color: #cce9ff; font-size: 44px; font-weight: 750; letter-spacing: -.05em; text-align: center; text-shadow: 0 3px 20px #06182b; pointer-events: none; }
.alumni-orbit-center span { display: block; margin-top: 8px; color: #91b6d0; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.alumni-cohort-hop { position: absolute; display: flex; flex-direction: column; width: 43%; min-height: 118px; padding: 20px; border: 1px solid #b0d9f24a; border-radius: 22px; color: #e1f0fc; background: linear-gradient(145deg, #173a54e8, #0b243ae8); box-shadow: 0 16px 36px #020f1e40; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .25s, border-color .25s, box-shadow .25s; }
.alumni-cohort-hop:nth-of-type(1) { top: 4%; right: 0; }
.alumni-cohort-hop:nth-of-type(2) { top: 60%; left: 0; }
.alumni-cohort-hop:nth-of-type(3) { bottom: 0; right: 3%; }
.alumni-cohort-hop > span { color: #92b7d3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.alumni-cohort-hop strong { margin-top: 9px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.alumni-cohort-hop small { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: #aacbe3; font-size: 11px; }
.alumni-cohort-hop:is(:hover, :focus-visible) { transform: translateY(-4px); border-color: #94d2ffb3; box-shadow: 0 20px 40px #020d1f66; }
.alumni-cohort-hop:focus-visible, .alumni-explore:focus-visible { outline: 2px solid #a9dcff; outline-offset: 5px; }
@media (max-width: 1000px) {
  .alumni-hero-layout { gap: 30px; }
  .alumni-hero-copy h1 { font-size: 52px; }
  .alumni-orbit { height: 430px; }
  .alumni-cohort-hop { width: 47%; padding: 16px; }
}
@media (max-width: 760px) {
  .alumni-hero-layout { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-block: 48px 40px; }
  .alumni-hero-copy h1 { font-size: clamp(42px, 8.5vw, 64px); }
  .alumni-overview { margin-top: 32px; gap: 32px; }
  .alumni-orbit { height: 390px; width: min(100%, 520px); margin: auto; }
  .alumni-cohort-hop { width: 44%; min-height: 106px; padding: 15px; border-radius: 20px; }
  .alumni-cohort-hop strong { font-size: 22px; }
  .alumni-orbit-center { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .alumni-cohort-hop { transition: none; }
  .alumni-cohort-hop:is(:hover, :focus-visible) { transform: none; }
}

.profile-gallery { margin-top: 72px; }
.profile-gallery-heading { margin-bottom: 28px; }
.profile-gallery-heading h2 { margin-top: 12px; color: var(--ink); font-size: clamp(30px, 3.3vw, 46px); line-height: 1.1; font-weight: 730; letter-spacing: -.04em; }
.profile-gallery-heading > p:last-child { margin-top: 14px; color: var(--muted); line-height: 1.6; }
.profile-gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.profile-gallery-item { grid-column: span 5; min-width: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #102d46; box-shadow: 0 12px 30px #0a284018; }
.profile-gallery-item:first-child { grid-column: span 7; grid-row: span 2; }
.profile-gallery-item:nth-child(n + 4) { grid-column: span 6; }
.profile-gallery-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #071d30; }
.profile-gallery-item:first-child .profile-gallery-image { flex: 1; aspect-ratio: auto; min-height: 280px; }
.profile-gallery-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.profile-gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 15px 20px; color: #d9ebfb; font-size: 13px; font-weight: 600; }
.profile-gallery-item:is(:hover, :focus-visible) .profile-gallery-caption { background: #1c4566; }
.profile-gallery-item:focus-visible { outline: 3px solid #237db8; outline-offset: 4px; }
.profile-gallery-viewer { position: fixed; inset: 0; width: min(94vw, 1500px); max-width: none; max-height: 94svh; margin: auto; padding: 48px 24px 20px; border: 1px solid #8cb6d850; border-radius: 24px; color: #e2f0fc; background: #081c2e; box-shadow: 0 30px 100px #0008; }
.profile-gallery-viewer::backdrop { background: #03101be6; backdrop-filter: blur(10px); }
.profile-gallery-viewer figure { margin: 0; }
.profile-gallery-viewer figure img { display: block; width: 100%; height: min(70svh, 900px); object-fit: contain; }
.profile-gallery-viewer figcaption { margin-top: 16px; text-align: center; font-size: 14px; line-height: 1.5; }
.gallery-close { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #d9edff; background: transparent; font-size: 28px; cursor: pointer; }
.gallery-viewer-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 12px; font-size: 12px; }
.gallery-viewer-controls button { width: 44px; height: 44px; border: 1px solid #8db8d855; border-radius: 50%; color: #d9edff; background: #15344d; font-size: 20px; cursor: pointer; }
body:has(.profile-gallery-viewer[open]) { overflow: hidden; }
@media (max-width: 760px) {
  .profile-gallery { margin-top: 48px; }
  .profile-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .profile-gallery-item, .profile-gallery-item:nth-child(n + 4) { grid-column: span 1; }
  .profile-gallery-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .profile-gallery-item:first-child .profile-gallery-image { aspect-ratio: 4 / 3; min-height: 0; }
  .profile-gallery-caption { min-height: 56px; padding: 12px; font-size: 11px; }
  .profile-gallery-viewer { width: 96vw; padding-inline: 10px; border-radius: 18px; }
  .profile-gallery-viewer figure img { height: 65svh; }
}

/* A photographic first screen sits above the unchanged, ordered team directory. */
.team-space { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #173a5799, transparent 62%), #06182b; border-bottom: 1px solid #b3d9fa1c; }
.team-space-stage { position: relative; max-width: 1600px; min-height: max(760px, calc(100svh - var(--header-height))); margin: auto; }
.team-space-photos { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.team-space-card { position: absolute; left: var(--photo-x); top: var(--photo-y); width: clamp(60px, var(--photo-size), 190px); transform: translate(-50%, -50%); }
.team-space-person { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: 0 18px 40px #010a1c66; transition: scale .3s, box-shadow .3s; }
.team-space-photo { display: block; position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #17334e; border: 1px solid #d9edff40; }
.team-space-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--directory-photo-scale, 1)); transform-origin: 50% 100%; }
.team-space-name { position: absolute; inset: auto 0 0; padding: 14px 8px 10px; background: linear-gradient(transparent, #06182bef); border-radius: 0 0 22px 22px; color: #f0f8ff; font-size: clamp(10px, 1.05vw, 14px); font-weight: 650; line-height: 1.25; text-align: center; opacity: 0; transition: opacity .25s; pointer-events: none; }
.team-space-person:is(:hover, :focus-visible) { scale: 1.06; box-shadow: 0 24px 50px #01081899; }
.team-space-person:is(:hover, :focus-visible) .team-space-name { opacity: 1; }
.team-space-person:focus-visible { outline: 2px solid #a7d9ff; outline-offset: 5px; }
.team-space-card:has(.team-space-person:is(:hover, :focus-visible)) { z-index: 3; }
.team-space-copy { z-index: 2; pointer-events: none; position: absolute; left: 50%; top: 46%; width: min(64%, 660px); transform: translate(-50%, -50%); text-align: center; }
.team-space-copy::before { content: ""; position: absolute; z-index: -1; inset: -40px -30px; pointer-events: none; background: radial-gradient(ellipse, #06182be6 0, #06182b99 38%, transparent 72%); }
.team-space-copy .eyebrow { color: #a9c7df; font-size: clamp(9px, .8vw, 12px); letter-spacing: .13em; line-height: 1.6; }
.team-space-copy h1 { text-shadow: 0 2px 12px #04142ae6; margin: 16px 0 22px; color: #f0f7ff; font-size: clamp(46px, 5.4vw, 78px); font-weight: 780; letter-spacing: -.055em; line-height: 1.02; }
.team-space-copy h1 span { color: #8fcaff; }
.team-space-explore { pointer-events: auto; display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 10px 18px; border: 1px solid #d3eaff40; border-radius: 999px; background: #b8dfff0c; color: #dcefff; font-size: 13px; font-weight: 600; }
.team-space-explore:hover { background: #b8dfff1f; }
.team-space-motion { z-index: 4; position: absolute; right: 24px; bottom: 16px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: #a3bfd6; font: 500 11px var(--ui-font); cursor: pointer; }
.team-space-motion:hover { background: #b8dfff12; color: #ecf7ff; }
.team-space-card:nth-child(1) { --photo-x: 26%; --photo-y: 19%; --photo-size: 12%; }
.team-space-card:nth-child(2) { --photo-x: 52%; --photo-y: 18%; --photo-size: 11%; }
.team-space-card:nth-child(3) { --photo-x: 79%; --photo-y: 19%; --photo-size: 12%; }
.team-space-card:nth-child(4) { --photo-x: 10%; --photo-y: 41%; --photo-size: 10%; }
.team-space-card:nth-child(5) { --photo-x: 90%; --photo-y: 47%; --photo-size: 9%; }
.team-space-card:nth-child(6) { --photo-x: 21%; --photo-y: 73%; --photo-size: 13%; }
.team-space-card:nth-child(7) { --photo-x: 78%; --photo-y: 75%; --photo-size: 12%; }
.team-space-card:nth-child(8) { --photo-x: 49%; --photo-y: 83%; --photo-size: 9%; }
.team-space-card:nth-child(9) { --photo-x: 7%; --photo-y: 81%; --photo-size: 8%; }
.team-space-card:nth-child(10) { --photo-x: 92%; --photo-y: 82%; --photo-size: 8%; }
.team-space-card:nth-child(11) { --photo-x: 7%; --photo-y: 14%; --photo-size: 6%; }
.team-space.has-free-motion .team-space-card { left: 0; top: 0; will-change: transform; }
@media (max-width: 700px) {
  .team-space-stage { min-height: max(720px, calc(100svh - var(--header-height))); }
  .team-space-card { width: clamp(42px, var(--photo-size), 116px); }
  .team-space-person { border-radius: 16px; }
  .team-space-name { border-radius: 0 0 16px 16px; font-size: 10px; }
  .team-space-copy { width: 64%; top: 46%; }
  .team-space-copy h1 { font-size: clamp(40px, 10vw, 64px); margin-block: 14px 18px; }
  .team-space-copy .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .team-space-explore { font-size: 11px; gap: 12px; padding-inline: 14px; }
  .team-space-card:nth-child(1) { --photo-x: 25%; --photo-y: 16%; --photo-size: 25%; }
  .team-space-card:nth-child(2) { --photo-x: 61%; --photo-y: 13%; --photo-size: 22%; }
  .team-space-card:nth-child(3) { --photo-x: 88%; --photo-y: 24%; --photo-size: 18%; }
  .team-space-card:nth-child(4) { --photo-x: 13%; --photo-y: 40%; --photo-size: 18%; }
  .team-space-card:nth-child(5) { --photo-x: 87%; --photo-y: 52%; --photo-size: 16%; }
  .team-space-card:nth-child(6) { --photo-x: 25%; --photo-y: 76%; --photo-size: 25%; }
  .team-space-card:nth-child(7) { --photo-x: 76%; --photo-y: 77%; --photo-size: 24%; }
  .team-space-card:nth-child(8) { --photo-x: 50%; --photo-y: 87%; --photo-size: 17%; }
  .team-space-card:nth-child(9) { --photo-x: 10%; --photo-y: 88%; --photo-size: 12%; }
  .team-space-card:nth-child(10) { --photo-x: 90%; --photo-y: 89%; --photo-size: 12%; }
  .team-space-card:nth-child(11) { --photo-x: 10%; --photo-y: 11%; --photo-size: 12%; }
}
@media (prefers-reduced-motion: reduce) {
  .team-space.has-free-motion .team-space-card { will-change: auto; }
  .team-space-person, .team-space-name { transition: none; }
  .team-space-person:is(:hover, :focus-visible) { scale: none; }
}

/* Research keeps its hierarchy and shared header rows, inside softer white panels. */
.research-item, .research-item.research-item-secondary { padding: 18px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); background: white; box-shadow: var(--ui-shadow); }
.research-art { border-radius: 17px; }
.research-copy { padding-inline: 4px; }
.research-item-secondary .research-copy { padding-inline: 0; }
.research-evidence { padding-inline: 4px; }
.research-software { border-radius: var(--ui-radius-sm); }
.research-item h2 { min-height: 0; }

/* Publication rows stay searchable and keep full citations; only their framing changes. */
.publication-list { display: grid; gap: 15px; }
.publication { min-width: 0; padding: 26px; background: white; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); box-shadow: 0 6px 22px rgba(20, 48, 78, .035); }
.publication:last-child { border-bottom: 1px solid var(--ui-border); }
.publication > div { min-width: 0; }
.publication h3 { font-size: 22px; line-height: 1.45; overflow-wrap: anywhere; }
.publication-year { font-weight: 650; font-size: 25px; }
.citation-manual { max-width: 100%; }
.citation-text { max-width: 100%; }

/* News images keep their existing framing, dates, and categories. */
.blog-post { margin-bottom: 18px; padding: 22px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); background: white; box-shadow: var(--ui-shadow); }
.blog-post-link { gap: 30px; }
.blog-post-link img, .blog-post-placeholder { border-radius: 18px; }
body[data-page="news-post"] { background: var(--ui-hero); }
.news-article { background: transparent; }
.news-container { padding: 42px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); background: white; box-shadow: var(--ui-shadow); }
.news-article h1 { font-size: clamp(32px, 4vw, 47px); }
.news-summary { font-size: 19px; }
.news-figure img { border-radius: var(--ui-radius-md); }
.news-event-details, .news-paper a, .news-inline-figure a { border-radius: var(--ui-radius-md); border-color: var(--ui-border); }
.news-paper a > span { min-width: 0; }
.news-paper strong { font-size: 17px; overflow-wrap: anywhere; }
.news-paper-cover, .news-paper-logo { border-radius: 10px; }
.news-inline-figure img { border-radius: 12px; }
.news-body h2 { font-weight: 700; }

/* Contact uses the same light intro and blue-gray visiting section as the faculty page. */
.contact-intro { background: var(--ui-hero); color: var(--ink); border-bottom: 1px solid #dbe6ef; }
.contact-intro .eyebrow { color: var(--teal); }
.contact-intro h1 { font-weight: 750; letter-spacing: -.04em; }
.contact-intro-description { color: #435c72; }
.contact-person-label, .contact-person > p { color: var(--muted); }
.contact-person > a:hover { color: var(--teal); }
.contact-primary-email { background: var(--navy); color: white; }
.contact-primary-email:hover { background: #164b7d; }
.contact-intro .contact-email-options > p { color: var(--muted); }
.contact-intro .contact-webmail-links a, .contact-intro .contact-webmail-links button { color: #245c8a; font-weight: 650; }
.contact-intro .contact-webmail-links a:hover, .contact-intro .contact-webmail-links button:hover { color: var(--navy); }
.contact-intro .contact-email-manual { color: var(--muted); }
.contact-intro .contact-email-options .contact-email-status:not(:empty) { color: #285679; }
.contact-section-links a { color: #365e7c; font-weight: 600; }
.contact-section-links a:hover { color: var(--navy); }
.contact-campus-art { border-radius: var(--ui-radius-lg); box-shadow: var(--ui-shadow); }
.contact-campus-art figcaption { color: white; }
.contact-opportunities { background: var(--ui-section); }
.contact-pathway { padding: 25px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); background: white; box-shadow: var(--ui-shadow); }
.contact-pathway h3 { font-weight: 700; }
.visit-campus { background: var(--ui-lower); }
.visit-campus .contact-map { border-radius: var(--ui-radius-lg); box-shadow: var(--ui-shadow); }

/* Homepage retains the ocean artwork and dark setting, with shared system typography. */
body[data-page="index"] .home-showcase { background: linear-gradient(180deg, #061e3c, #09192b); }
body[data-page="index"] .home-gateways { background: radial-gradient(ellipse at 90% 0, #102c45, transparent 65%), #050e1a; }
body[data-page="index"] .home-cta { background: linear-gradient(160deg, #050e1a, #071c30); }
.gateway-card, .gateway-card:nth-child(n), .gateway-card:hover, .gateway-card:nth-child(n):hover { border-radius: var(--ui-radius-lg); }
.reel-card { border-radius: var(--ui-radius-lg); }
.mock-panel, .mock-news { border-radius: var(--ui-radius-md); }
.home-film-player { border-radius: var(--ui-radius-md); }
body[data-page="index"] .footer-top > a:last-child { background: #14283d; color: #dcecf9; border: 1px solid #2e4960; }

/* Keep all four gateway headings on the same top baseline. */
body[data-page="index"] .gateway-card-journal .gateway-copy::before { display: none; }
body[data-page="index"] .gateway-card-journal .gateway-bg { filter: blur(3px) saturate(.85) brightness(.86); }
body[data-page="index"] .gateway-card-journal::after {
  background: linear-gradient(180deg, rgba(3, 21, 35, .72), rgba(3, 21, 35, .18) 38%, rgba(3, 21, 35, .68) 65%, #0b344b 90%);
}

/* Research previews use the same image-backed, frosted caption treatment. */
body[data-page="index"] .reel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 6 / 5;
  min-height: 360px;
  isolation: isolate;
  background: #0b2439;
  color: #fff;
}
body[data-page="index"] .reel-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
body[data-page="index"] .reel-card-copy {
  padding: 58px 24px 28px;
  isolation: isolate;
  background: linear-gradient(180deg, transparent, rgba(8, 24, 40, .56) 35%, rgba(8, 24, 40, .88));
}
body[data-page="index"] .reel-card-copy > span:first-child { color: #c6e4f5; line-height: 1.6; letter-spacing: .11em; }
body[data-page="index"] .reel-card h3 { color: #fff; }
body[data-page="index"] .reel-card:focus-visible { outline: 3px solid #8ec5ef; outline-offset: -4px; }

/* Full-width frosted captions blend into the homepage photographs. */
body[data-page="index"] .gateway-visual {
  flex: 0 0 auto;
  display: block;
  margin: auto -24px -24px;
  padding: 56px 24px 74px;
  isolation: isolate;
  background: linear-gradient(180deg, transparent, rgba(8, 24, 40, .56) 35%, rgba(8, 24, 40, .88));
  transform: none;
  transition: none;
}
body[data-page="index"] .gateway-visual::before,
body[data-page="index"] .reel-card-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(165, 202, 220, .1);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 42%);
  mask-image: linear-gradient(180deg, transparent, #000 42%);
  pointer-events: none;
}
body[data-page="index"] .gateway-visual .mock-panel {
  width: 100%;
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}
body[data-page="index"] .gateway-visual .mock-label { color: #c6e4f5; line-height: 1.6; letter-spacing: .11em; }
body[data-page="index"] .gateway-visual .mock-panel strong { font-size: 15px; line-height: 1.45; font-weight: 650; }
body[data-page="index"] .gateway-visual .mock-panel small { color: #d2e1ed; font-size: 11px; line-height: 1.6; }
body[data-page="index"] .gateway-publication-meta { border-color: rgba(214, 236, 249, .22); }
body[data-page="index"] .gateway-go {
  z-index: 2;
  border: 1px solid rgba(221, 240, 252, .3);
  background: rgba(216, 237, 249, .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body[data-page="index"] .gateway-card:hover .gateway-go,
body[data-page="index"] .gateway-card:focus-visible .gateway-go { background: #e7f4fc; color: #102b40; }

@media (prefers-reduced-transparency: reduce) {
  body[data-page="index"] .gateway-visual,
  body[data-page="index"] .reel-card-copy { background: linear-gradient(180deg, transparent, #10283d 35%); }
  body[data-page="index"] .gateway-visual::before,
  body[data-page="index"] .reel-card-copy::before { display: none; }
}

@media (max-width: 1100px) {
  .publication { padding: 23px; }
  .contact-pathway { padding: 22px; }
}
@media (max-width: 700px) {
  .footer-top { flex-wrap: wrap; row-gap: 20px; }
  .footer-top > a:last-child { flex-shrink: 0; }
  .footer-brand { max-width: 100%; }
  .footer-brand small { font-size: 11px; }
  .footer-links { flex-wrap: wrap; }
  .main-nav { left: 12px; right: 12px; max-height: calc(100dvh - var(--header-height) - 16px); border: 1px solid var(--ui-border); border-radius: 22px; box-shadow: 0 16px 38px rgba(10, 35, 60, .16); }
  body .nav-submenu { border-radius: 14px; box-shadow: none; background: #f2f6fa; border: 0; padding: 6px; }
  .nav-submenu a { border-radius: 10px; }
  .publication-collections, .resource-tabs { border-radius: 22px; }
  .publication-collections .collection-button, .resource-tabs a { font-size: 13px; padding: 10px 13px; }
  .publication-discovery { padding: 18px; border-radius: 22px; }
  .member-card { padding: 17px; gap: 16px; border-radius: 22px; }
  .member-details h3 { font-size: 22px; }
  .member-details .member-role { font-size: 13px; }
  .profile-photo { padding: 8px; border-radius: 24px; }
  .profile-photo .profile-img, .profile-photo .member-photo-placeholder { border-radius: 17px; }
  body .profile-content h1 { font-size: 39px; overflow-wrap: anywhere; }
  .profile-pager { gap: 12px; }
  .profile-pager a, .profile-pager a:hover { grid-template-columns: minmax(0, 1fr); min-height: 100px; padding: 16px 14px; gap: 8px; border-radius: 20px; }
  .profile-pager .profile-prev, .profile-pager .profile-next, .profile-pager .profile-next:hover { grid-template-columns: minmax(0, 1fr); }
  .profile-pager .pager-badge { display: none; }
  .profile-pager .pager-name { font-size: clamp(15px, 3.6vw, 20px); }
  .profile-pager .pager-dir { font-size: 9px; letter-spacing: .08em; }
  .research-item, .research-item.research-item-secondary { padding: 16px; border-radius: 24px; }
  .research-art { border-radius: 14px; }
  .publication { padding: 20px; border-radius: 22px; }
  .publication h3 { font-size: 20px; }
  .publication-year { font-size: 23px; }
  .paper-arrow { width: 34px; height: 34px; }
  .blog-post { padding: 17px; border-radius: 24px; }
  .blog-post-link { gap: 20px; }
  .blog-post h2 { font-size: 23px; }
  .news-container { width: calc(100% - 24px); padding: 24px 20px; border-radius: 24px; }
  .news-article h1 { font-size: 31px; line-height: 1.2; }
  .news-summary { font-size: 17px; }
  .news-paper a { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .news-paper-logo { width: 70px; padding: 9px; }
  .news-paper a > .icon:last-child { display: none; }
  .news-paper strong { font-size: 16px; }
  .news-event-details, .news-paper a, .news-inline-figure a { border-radius: 16px; }
  .news-inline-figure a { padding: 8px; }
  .contact-intro h1 { font-size: clamp(39px, 10.8vw, 56px); }
  .contact-pathway { padding: 22px; border-radius: 24px; }
  .contact-campus-art, .visit-campus .contact-map { border-radius: 24px; }
  body .home-hero h1 { font-size: clamp(35px, 9.8vw, 54px); line-height: 1.08; }
  body .home-cta h2 { font-size: clamp(36px, 9vw, 48px); line-height: 1.1; }
  .gateway-card, .gateway-card:nth-child(n), .gateway-card:hover, .gateway-card:nth-child(n):hover { border-radius: 24px; }
  .gateway-copy h3 { font-size: 25px; }
  body[data-page="index"] .reel-card-copy { padding: 48px 20px 24px; }
  body[data-page="index"] .gateway-visual { margin-inline: -20px; margin-bottom: -20px; padding: 48px 20px 72px; }
  .software-feature { border-radius: 24px; }
  .reference-card { border-radius: 24px; }
}

/* Fan Zhang profile: full-screen hero (photo, cut-out portrait in front of a frosted search bar, speech bubble, topic cards).
   The header floats transparently over the hero and returns to the standard white bar once the hero has scrolled away. */
body[data-page="fan-zhang"] .site-header { position: fixed; inset: 0 0 auto; transition: background .35s, border-color .35s, backdrop-filter .35s; }
body[data-page="fan-zhang"] .site-header:not(.is-past) { background: transparent; border-bottom: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-page="fan-zhang"] .site-header:not(.is-past) :is(.brand, .main-nav > a, .nav-dropdown-toggle) { color: #fff; }
body[data-page="fan-zhang"] .site-header:not(.is-past) .brand small { color: rgba(225, 240, 252, .85); }
body[data-page="fan-zhang"] .site-header:not(.is-past) .brand-dot { color: #7cc3f5; }
body[data-page="fan-zhang"] .site-header:not(.is-past) .shou-link { border-right-color: rgba(255, 255, 255, .25); }
body[data-page="fan-zhang"] .shou-link img { padding: 2px; border-radius: 50%; background: white; }
body[data-page="fan-zhang"] .site-header:not(.is-past) .menu-toggle { border-color: rgba(255, 255, 255, .45); }
body[data-page="fan-zhang"] .site-header:not(.is-past) .menu-toggle span { background: #fff; }
body[data-page="fan-zhang"] .site-header:not(.is-past) .main-nav > a:not(.nav-contact)::after { background: #7cc3f5; }
body[data-page="fan-zhang"] main { padding-top: 0; }
@media (max-width: 700px) {
  body[data-page="fan-zhang"] .site-header:not(.is-past) .main-nav :is(a, .nav-dropdown-toggle) { color: var(--ink); }
  body[data-page="fan-zhang"] .site-header:has(.main-nav.is-open) { background: rgba(4, 16, 32, .94); }
}
.fz-hero { position: relative; min-height: 100svh; overflow: hidden; overflow: clip; background: #061e3c; color: #fff; isolation: isolate; }
.fz-stage { position: absolute; inset: 0; pointer-events: none; }
.fz-stage-back { z-index: 0; } .fz-stage-front { z-index: 5; }
.fz-settle { position: absolute; inset: 0; transform: scale(1.04); animation: fz-settle 2.4s cubic-bezier(.2,.65,.3,1) forwards; }
@keyframes fz-settle { to { transform: none; } }
.fz-layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 18%; }
/* One continuous, person-free background eliminates differently scaled side seams. */
.fz-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fz-stage-front .fz-settle { animation: none; transform: none; }
.fz-workspace { position: relative; z-index: 6; margin-left: 52%; margin-right: clamp(24px, 4vw, 72px); height: 100svh; min-height: 680px; padding: calc(var(--header-height, 80px) + 32px) 0 48px; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); align-content: start; gap: 18px; }
.fz-hero-shade { z-index: 1; }
.fz-hero-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(0deg, rgba(4, 22, 44, .65), transparent 45%),
  linear-gradient(90deg, rgba(4, 22, 44, .1) 42%, rgba(4, 22, 44, .3) 62%, rgba(4, 22, 44, .48)),
  linear-gradient(180deg, rgba(4, 22, 44, .48), transparent 30%); }
.fz-bubble { position: absolute; z-index: 4; left: 66%; top: 22%; margin: 0; padding: 14px 20px; max-width: calc(100% - 32px); border-radius: 24px; box-sizing: border-box;
  background: rgba(255, 255, 255, .94); color: #0b2f55; font-size: clamp(14px, 1.1vw, 18px); font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); opacity: 0; translate: 0 10px; animation: fz-in .7s .9s cubic-bezier(.2,.65,.3,1) forwards; }
.fz-bubble.is-left i { left: auto; right: 22px; border-radius: 0 0 18px 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.fz-bubble i { position: absolute; left: 22px; bottom: -9px; width: 20px; height: 20px; background: inherit; border-radius: 0 0 0 18px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.fz-bubble [data-fz-bubble]::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: currentColor; animation: fz-caret 1s steps(1) infinite; }
@keyframes fz-caret { 50% { opacity: 0; } }
@keyframes fz-in { to { opacity: 1; translate: none; } }
.fz-hero-center { position: relative; min-width: 0; width: 100%; }
.fz-chips-wrap { position: relative; min-width: 0; width: 100%; }
.fz-search { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25); opacity: 0; translate: 0 14px; animation: fz-in .8s .4s cubic-bezier(.2,.65,.3,1) forwards; }
.fz-search svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fz-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: #fff; font: inherit; font-size: 18px; outline: none; }
.fz-search input::placeholder { color: rgba(255, 255, 255, .78); }
.fz-search button { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer; }
.fz-search button svg { stroke: #0b2f55; }
.fz-search:focus-within { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .2); }
.fz-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0; opacity: 0; animation: fz-in .8s .65s cubic-bezier(.2,.65,.3,1) forwards; translate: 0 10px; }
.fz-chips button { min-width: 0; min-height: 48px; padding: 8px 5px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(6, 30, 60, .52); color: #fff; font: 600 clamp(11px, .95vw, 15px)/1.3 var(--ui-font); text-wrap: balance; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer; transition: background .2s, border-color .2s; }
.fz-chips button:hover, .fz-chips button:focus-visible, .fz-chips button.is-match, .fz-chips button[aria-pressed="true"] { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .7); translate: 0 -2px; }
.fz-chips button:focus-visible, .fz-card-close:focus-visible, .fz-search button:focus-visible { outline: 2px solid #9fd2ff; outline-offset: 3px; }
.fz-hero-id { position: relative; min-width: 0; margin-bottom: 6px; text-align: left; text-shadow: 0 2px 18px rgba(4, 22, 44, .45); }
.fz-hero-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.fz-hero-id h1 { margin: 0; font-size: clamp(40px, 4.3vw, 76px); line-height: 1; letter-spacing: -.03em; color: #fff; }
.fz-hero-id h1 span { margin-left: .3em; font-size: .32em; letter-spacing: 0; vertical-align: .9em; opacity: .8; }
.fz-hero-id p:last-child { margin: 12px 0 0; font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .88); }
.fz-scroll { position: absolute; z-index: 4; left: 50%; translate: -50% 0; bottom: clamp(28px, 7vh, 72px); display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.fz-scroll svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; animation: fz-bob 1.8s ease-in-out infinite; }
@keyframes fz-bob { 50% { translate: 0 5px; } }
/* pop-up card */
.fz-card-layer { position: relative; min-height: 0; width: 100%; pointer-events: none; }
.fz-card-layer[hidden] { display: none; }
.fz-card { pointer-events: auto; width: 100%; max-height: var(--fz-card-max, 100%); overflow: auto; padding: 26px 28px 28px; border-radius: 28px; color: #0b2f55;
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); animation: fz-pop .35s cubic-bezier(.2,.8,.3,1.2); outline: none; }
@keyframes fz-pop { from { opacity: 0; transform: translate(12px, 10px) scale(.96); } }
.fz-card header { position: relative; padding-right: 48px; }
.fz-card-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #2c6ea8; }
.fz-card h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.02em; color: #0b2f55; }
.fz-card-close { position: absolute; top: -4px; right: -6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #e8f0f8; cursor: pointer; }
.fz-card-close svg { width: 18px; height: 18px; fill: none; stroke: #0b2f55; stroke-width: 2.2; stroke-linecap: round; }
.fz-card-body { margin-top: 18px; font-size: 15.5px; line-height: 1.55; color: #33506d; }
.fz-card-body ul, .fz-card-body ol, .fz-card-body dl { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fz-card-body li, .fz-card-body dl > div { padding: 14px 16px; border-radius: 16px; background: #f1f6fb; }
.fz-card-body h3, .fz-card-body h4, .fz-card-body strong { color: #0b2f55; }
.fz-card-body h3, .fz-card-body h4 { margin: 0; font-size: 16px; }
.fz-card-body a { color: #1f5f96; }
.fz-card-body .faculty-paper { display: block; text-decoration: none; }
.fz-card-body .faculty-paper-read, .fz-card-body dd svg, .fz-card-body .sr-only { display: none; }
.fz-card-body .faculty-education-list li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.fz-card-body .faculty-education-list span { font-weight: 700; color: #2c6ea8; }
.fz-card-body dl dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2c6ea8; }
.fz-card-body dd { margin: 4px 0 0; display: grid; gap: 2px; }
.fz-card-more { display: inline-flex; margin-top: 16px; font-weight: 650; color: #1f5f96; }
.fz-card-body .faculty-profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fz-card-body .faculty-profile-links a { padding: 8px 12px; border-radius: 999px; background: #f1f6fb; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.fz-card-body .faculty-profile-links svg, .fz-card-body .faculty-profile-links img { width: 18px; height: 18px; }
/* Compact screens place controls below the portrait, so cards still avoid the face. */
.fz-hero.is-compact .fz-workspace { margin-inline: 20px; padding-top: var(--fz-portrait-bottom, 540px); padding-bottom: 40px; height: auto; min-height: 0; grid-template-rows: auto; }
.fz-hero.is-compact .fz-bubble { font-size: 14px; padding: 12px 16px; }
.fz-hero.is-compact .fz-hero-id { text-align: left; }
.fz-hero.is-compact .fz-hero-id h1 { font-size: clamp(40px, 7vw, 64px); }
.fz-hero.is-compact .fz-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.fz-hero.is-compact .fz-chips button { grid-column: span 2; padding: 8px; font-size: 13px; border-radius: 999px; }
.fz-hero.is-compact .fz-chips button:nth-child(n + 4) { grid-column: span 3; }
.fz-hero.is-compact .fz-scroll { display: none; }
.fz-hero.is-compact .fz-search { height: 56px; }
.fz-hero.is-compact .fz-search input { font-size: 16px; }
@media (max-width: 999px), (max-aspect-ratio: 6/5) {
  .fz-workspace { margin-inline: 20px; padding-top: 540px; height: auto; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fz-hero *, .fz-hero-photo img { animation: none !important; opacity: 1 !important; translate: none !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; translate: none; transition: none; }
}

/* Unframed text-and-arrow scroll entries on faculty and member introductions. */
:is(.member-intro-more, .fz-scroll) { min-width: 0; min-height: 56px; padding: 8px 12px; gap: 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #c4d9ed; opacity: .85; -webkit-backdrop-filter: none; backdrop-filter: none; transition: scale .28s, color .28s, opacity .28s, text-shadow .28s; }
:is(.member-intro-more, .fz-scroll) :is(.icon, svg) { animation: none; transition: translate .28s; }
:is(.member-intro-more, .fz-scroll):is(:hover, :focus-visible) { scale: 1.08; opacity: 1; color: #fff; text-shadow: 0 0 16px #89caff80; }
:is(.member-intro-more, .fz-scroll):is(:hover, :focus-visible) :is(.icon, svg) { translate: 0 3px; }
.member-intro .member-intro-more:focus-visible, .fz-scroll:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
  :is(.member-intro-more, .fz-scroll), :is(.member-intro-more, .fz-scroll) :is(.icon, svg), .profile-pager a { transition: none; }
  :is(.member-intro-more, .fz-scroll):is(:hover, :focus-visible) { scale: 1; }
  :is(.member-intro-more, .fz-scroll):is(:hover, :focus-visible) :is(.icon, svg) { translate: none; }
  .profile-pager a:is(:hover, :focus-visible) { transform: none; }
}

/* Phone layout. Keep these overrides below the desktop system to leave PC views intact. */
@media (max-width: 760px) {
  :root { --header-height: 76px; }
  html { scroll-padding-top: calc(var(--header-height) + 18px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { font-size: 16px; line-height: 1.7; }
  body.is-navigation-open { overflow: hidden; }
  .container { width: calc(100% - 32px); }
  .section { padding-block: 52px; }
  .header-inner { gap: 12px; }
  .header-brands { gap: 10px; }
  .brand { min-width: 0; gap: 9px; }
  .brand strong { font-size: 29px; }
  .brand small { display: none; }
  .header-brands img { width: 36px; height: 36px; }
  .shou-link { padding-right: 10px; }
  .menu-toggle { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 10px; gap: 6px; border: 1px solid var(--line); background: transparent; }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); }
  body[data-page] .site-header .main-nav { --ink: #172f4d; --muted: #526984; --teal: #1768b5; position: fixed; inset: var(--header-height) 12px auto; display: none; align-items: stretch; gap: 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - var(--header-height) - 12px); max-height: calc(100dvh - var(--header-height) - 12px); overflow-y: auto; overscroll-behavior: contain; background: #f8fbfd; color: #172f4d; border: 1px solid #d4e0ec; border-radius: 20px; box-shadow: 0 16px 38px #0a233c29; }
  body[data-page] .site-header .main-nav.is-open { display: flex; flex-direction: column; }
  body[data-page] .site-header .main-nav.is-open :is(a, .nav-dropdown-toggle) { color: #172f4d; }
  body[data-page] .site-header .main-nav > a, body[data-page] .site-header .main-nav .nav-dropdown-toggle { width: 100%; min-height: 48px; padding: 12px 10px; display: flex; align-items: center; justify-content: space-between; color: #172f4d; font-size: 16px; line-height: 1.5; text-align: left; }
  body[data-page] .site-header .main-nav > a::after { display: none; }
  .main-nav .nav-group { width: 100%; border-top: 1px solid #d9e4ef; }
  body[data-page] .site-header .nav-submenu { position: static; width: 100%; min-width: 0; margin: 0 0 8px; padding: 6px; border: 0; border-radius: 14px; background: #eaf1f7; box-shadow: none; }
  body[data-page] .site-header .nav-submenu a { min-height: 44px; padding: 11px 12px; color: #172f4d; font-size: 15px; overflow-wrap: anywhere; }
  body[data-page] .site-header .nav-submenu a span { color: #526984; }
  body[data-page] .site-header .main-nav.is-open .nav-submenu a:is(:hover, :focus-visible, [aria-current]) { color: #095c9a; background: #dcebf6; }
  body[data-member-hero] .site-header:has(.main-nav.is-open), body[data-page="fan-zhang"] .site-header:has(.main-nav.is-open) { background: #08182af5; }
  input, select, textarea, .fz-search input { font-size: 16px; }
  :is(.button, .text-link, .filter-button, .news-filter, .collection-button, .copy-citation, .resource-tabs a, .faculty-profile-links a, .pi-links a, .contact-map-links a, .reference-card-links a) { min-height: 44px; }
  :is(.page-heading h1, .member-details-heading, .profile-content h1, .profile-cv-card h3, .reference-full-name) { overflow-wrap: anywhere; }
  :is(.profile-content, .research-copy, .faculty-intro, .news-body, .contact-intro-copy, .software-feature > *, .reference-card-content, .profile-cv-card) { min-width: 0; }
  :is(.profile-bio, .news-body, .contact-email-notes, .faculty-profile-links, .publication-citation, .reference-card-links) a { overflow-wrap: anywhere; }
  .page-heading { margin-bottom: 28px; }
  .page-heading h1 { font-size: clamp(34px, 9vw, 48px); }
  .page-heading > p:last-child { font-size: 16px; }
  .section-heading, .research-grid, .research-secondary-grid, .profile-grid, .faculty-background-grid, .visit-campus-grid, .contact-section-heading, .reference-card-grid, .reference-professional-grid, .software-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .research-grid > .research-item, .research-item.research-item-secondary { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .research-item-secondary .research-art { aspect-ratio: 3 / 2; }
  .research-item h2 { font-size: 24px; }
  .reference-card-content, .reference-card-featured .reference-card-content, .software-feature { padding: 20px; }
  .resource-tabs, .publication-collections { display: flex; flex-wrap: wrap; width: 100%; gap: 6px; }
  .resource-tabs a, .publication-collections .collection-button { min-width: 0; padding: 10px 12px; line-height: 1.4; text-align: left; }
  .footer-top, .footer-bottom { flex-wrap: wrap; gap: 18px; }
  .footer-top { align-items: flex-start; }
  .footer-brand { width: 100%; max-width: 100%; }
  .footer-brand small { white-space: normal; }
  .footer-links { flex-wrap: wrap; gap: 12px 22px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom { font-size: 12px; }

  /* Phone portraits sit on the right beside the identity; longer copy follows below. */
  .member-intro { --mobile-portrait-stage: clamp(260px, 80vw, 390px); }
  .member-intro:not(.member-intro-photo-scene) { padding-top: 0; }
  .member-intro:not(.member-intro-photo-scene) .member-intro-portrait {
    position: absolute; inset: calc(var(--header-height) + 72px) 0 auto auto; display: block;
    width: min(60%, calc(var(--mobile-portrait-stage) * var(--mobile-portrait-ratio)));
    height: auto; aspect-ratio: var(--mobile-portrait-ratio); margin: 0; overflow: hidden;
    --portrait-side-feather: 5%; --portrait-bottom-solid: var(--mobile-fade-start, 92%);
    -webkit-mask-image: var(--portrait-mask); mask-image: var(--portrait-mask);
    --portrait-mask: linear-gradient(90deg, transparent, #000 var(--portrait-side-feather), #000 calc(100% - var(--portrait-side-feather)), transparent), linear-gradient(180deg, transparent, #000 var(--portrait-top-feather), #000 var(--portrait-bottom-solid), transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  }
  .member-intro:not(.member-intro-photo-scene) .member-intro-portrait[data-portrait-feather] { --portrait-side-feather: 7%; --portrait-bottom-solid: var(--mobile-fade-start, 92%); }
  .member-intro:not(.member-intro-photo-scene) .member-intro-photo {
    position: absolute; left: var(--mobile-image-left); top: var(--mobile-image-top);
    width: var(--mobile-image-width); height: auto; max-width: none; max-height: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .member-intro:not(.member-intro-photo-scene) .member-intro-watermark { top: calc(var(--header-height) + 115px); left: 5%; font-size: 43vw; }
  .member-intro:not(.member-intro-photo-scene) .member-intro-layout { min-height: 100svh; margin-top: 0; padding: calc(var(--header-height) + 120px) 0 calc(108px + env(safe-area-inset-bottom, 0px)); align-content: start; gap: 28px; }
  .member-intro-copy { max-width: none; }
  .member-intro-identity { display: flex; flex-direction: column; justify-content: center; width: 40%; min-height: calc(var(--mobile-portrait-stage) - 48px); }
  .member-intro h1 { font-size: clamp(21px, var(--mobile-name-size, 7.5vw), 44px); line-height: 1.08; overflow-wrap: normal; }
  .member-intro h1 span { display: block; }
  .member-intro h1 span + span::before { content: none; }
  .member-intro-greeting { font-size: 20px; }
  .member-intro .person-name-zh { font-size: 15px; margin-top: 10px; }
  .member-intro-role { font-size: 14px; margin-top: 12px; }
  .member-intro-summary { font-size: 16px; line-height: 1.75; margin-top: 18px; }
  .member-intro .pi-links { display: flex; flex-wrap: wrap; margin-top: 20px; }
  .member-intro .pi-links a { font-size: 13px; }
  .member-intro-research span { font-size: clamp(20px, 5.3vw, 25px); }
  .member-intro-more { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  body[data-member-hero] .member-intro-photo-scene { padding-top: 0; background: #0b1c2c; }
  body[data-member-hero] .member-intro-photo-scene .member-intro-scene-image { position: absolute; inset: calc(var(--header-height) + 72px) 0 auto auto; z-index: 1; width: 60%; min-width: 0; height: var(--mobile-portrait-stage); max-height: none; aspect-ratio: auto; object-fit: cover; transform: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%), linear-gradient(#000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%), linear-gradient(#000 92%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
  body[data-member-hero] .member-intro[data-photo-display="contained"] .member-intro-scene-image { width: min(60%, calc(var(--mobile-portrait-stage) / var(--scene-inverse-ratio))); height: auto; aspect-ratio: var(--scene-ratio); object-fit: contain; -webkit-mask-image: var(--scene-mask); mask-image: var(--scene-mask); }
  body[data-member-hero] .member-intro-photo-scene .member-intro-layout { width: auto; margin-inline: 16px; padding: calc(var(--header-height) + 120px) 0 112px; min-height: 100svh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; align-content: start; gap: 28px; }
  .profile-gallery-viewer { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 52px 12px calc(16px + env(safe-area-inset-bottom, 0px)); overflow: auto; }
  .profile-gallery-viewer figure img { height: clamp(100px, calc(100svh - 230px), 620px); }
  .gallery-close { width: 44px; height: 44px; }
  .profile-grid { gap: 26px; }
  .profile-photo { width: min(100%, 280px); max-width: none; justify-self: center; }
  .profile-bio { font-size: 16px; line-height: 1.85; }
  .profile-content .pi-links { flex-wrap: wrap; }
  .profile-content .pi-links a { max-width: 100%; font-size: 13px; overflow-wrap: anywhere; }
  .profile-bio-original { padding: 14px; }
  .profile-bio-original summary { min-height: 44px; cursor: pointer; }
  .profile-cv-card { padding: 20px; }
  .profile-pager { gap: 12px; }
  .profile-pager a, .profile-pager a:hover, .profile-pager .profile-next, .profile-pager .profile-next:hover { grid-template-columns: minmax(0, 1fr); padding: 16px 12px; min-height: 100px; gap: 8px; }
  .profile-pager .pager-badge { display: none; }
  .profile-pager .pager-name { font-size: clamp(16px, 4.2vw, 20px); }
  .directory-board { gap: 12px; }
  .directory-person-label { padding: 16px 12px; }
  .directory-person-label :is(h2, h3) { font-size: clamp(18px, 4.5vw, 24px); }
  .directory-person-label p { font-size: 13px; }
  .alumni-hero-layout { min-height: 0; padding-block: 44px; gap: 30px; }
  .team-space-stage { min-height: max(520px, calc(100svh - var(--header-height))); }
  .team-space-card { width: clamp(52px, var(--photo-size), 116px); }
  .team-space-copy { width: calc(100% - 76px); }
  .team-space-copy h1 { font-size: clamp(37px, 9.5vw, 56px); }

  /* Give paper titles the whole card width; keep the external-link target separate. */
  .publication { position: relative; display: block; padding: 20px 18px; }
  .publication .publication-year { display: block; padding-right: 52px; margin-bottom: 12px; font-size: 24px; }
  .publication h3 { font-size: 20px; line-height: 1.5; }
  .publication .paper-arrow { position: absolute; top: 13px; right: 13px; width: 44px; height: 44px; }
  .publication-discovery { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .publication-search-label { grid-column: auto; }
  .publication-discovery label { min-width: 0; }
  #publication-reset { min-height: 46px; }
  .publication-toolbar { align-items: flex-start; gap: 14px; }
  .publication-filters { gap: 8px; }
  .publication-citation { gap: 10px; }
  .citation-manual { flex-basis: 100%; }
  .citation-text { width: 100%; font-size: 16px; overflow-wrap: anywhere; }
  .blog-post-link { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .news-container { width: calc(100% - 24px); padding: 24px 18px; }
  .news-article h1 { font-size: clamp(28px, 7.3vw, 38px); overflow-wrap: anywhere; }
  .news-summary, .news-body { font-size: 16px; }
  .news-event-details > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .news-people { flex-wrap: wrap; }
  .news-people a { white-space: normal; }
  .news-paper a { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .news-paper-logo { width: 58px; padding: 6px; }
  .news-paper a > .icon:last-child { display: none; }
  .news-body :is(pre, code), .software-feature code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .contact-primary-email { max-width: 100%; font-size: clamp(17px, 5vw, 22px); }
  .contact-campus-art { height: auto; aspect-ratio: 4 / 3; }
  .contact-pathway { grid-template-columns: minmax(0, 1fr); }
  .contact-pathway > :not(.contact-pathway-icon) { grid-column: 1; }
  .contact-pathway-icon { grid-row: auto; }
  .visit-campus .contact-map-links { flex-wrap: wrap; }

  body .home-hero h1 { font-size: clamp(34px, 9.2vw, 52px); line-height: 1.12; }
  .home-hero { min-height: calc(84svh - var(--header-height)); }
  .home-hero-copy { padding-block: 64px 108px; }
  .home-hero-tagline { font-size: 16px; line-height: 1.7; }
  .research-track { --slide-width: calc(100vw - 48px); gap: 16px; padding-inline: 24px; }
  .reel-footer { align-items: flex-start; flex-wrap: wrap; gap: 14px; font-size: 13px; }
  .gateway-heading h2 { font-size: clamp(29px, 7.5vw, 38px); }
  .gateway-heading h2 br { display: none; }
  .gateway-grid { display: flex; gap: 14px; margin-inline: -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .gateway-card, .gateway-card:nth-child(n), .gateway-card:hover, .gateway-card:nth-child(n):hover { flex: 0 0 calc(100% - 24px); min-height: clamp(470px, 72svh, 560px); padding: 22px 20px 20px; scroll-snap-align: start; }
  .gateway-copy h3 { font-size: 26px; }
  body[data-page="index"] .gateway-visual { margin-inline: -20px; margin-bottom: -20px; padding: 48px 20px 72px; }
  .gateway-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 18px; }
  .gateway-step, .gateway-dot { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; color: #e7f3ff; background: transparent; border: 1px solid #52748e; }
  .gateway-step { flex: none; font-size: 23px; }
  .gateway-step:disabled { opacity: .3; cursor: default; }
  .gateway-dots { display: flex; gap: 0; }
  .gateway-dot { border: 0; }
  .gateway-dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #66829a; }
  .gateway-dot[aria-current="true"]::after { width: 22px; border-radius: 5px; background: #b2e0ff; }
  .home-gateways { padding-block: 48px; }
  .home-cta h2 { font-size: clamp(32px, 8.3vw, 46px); }
  .home-film-player { width: 100%; height: auto; }

  /* Topic cards use page scrolling rather than a second small scroll panel on phones. */
  .fz-hero { --mobile-portrait-stage: clamp(260px, 80vw, 390px); }
  .fz-hero.is-compact .fz-workspace { margin-inline: 16px; gap: 18px; padding-top: calc(var(--header-height) + 120px); padding-bottom: 36px; }
  .fz-hero.is-compact .fz-hero-id { display: flex; flex-direction: column; justify-content: center; width: 40%; min-height: calc(var(--mobile-portrait-stage) - 48px); }
  .fz-hero.is-compact .fz-hero-id h1 { font-size: clamp(28px, 8.2vw, 44px); line-height: 1.12; overflow-wrap: normal; }
  .fz-hero-id .person-name-zh { font-size: 15px; }
  .fz-hero-id p:last-child { font-size: 14px; }
  .fz-stage-front .fz-layer { -webkit-mask-image: linear-gradient(#000 94%, transparent 100%); mask-image: linear-gradient(#000 94%, transparent 100%); }
  .fz-hero.is-compact .fz-bubble { max-width: calc(100% - 48px); padding: 10px 15px; border-radius: 18px; }
  .fz-bubble [data-fz-bubble]::after { display: none; }
  .fz-bubble i { left: var(--fz-tail, 50%); width: 12px; height: 12px; bottom: -8px; transform: translateX(-50%); border-radius: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .fz-hero-shade { background: linear-gradient(180deg, #04162c55, transparent 25%, #04162c88 60%, #04162ced); }
  .fz-hero-kicker { display: none; }
  .fz-hero.is-compact .fz-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fz-hero.is-compact .fz-chips button, .fz-hero.is-compact .fz-chips button:nth-child(n + 4) { grid-column: auto; min-height: 46px; font-size: 14px; }
  .fz-hero.is-compact .fz-chips button:last-child { grid-column: 1 / -1; }
  .fz-search { padding-left: 14px; gap: 8px; }
  .fz-card { max-height: none; overflow: visible; padding: 22px 18px; }
  .fz-card-close { width: 44px; height: 44px; }
  .fz-card h2 { font-size: 26px; }
  .fz-card-body { overflow-wrap: anywhere; font-size: 16px; }
  .fz-card-body .faculty-education-list li { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .faculty-breadcrumb { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .profile-gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-gallery-item, .profile-gallery-item:nth-child(n + 4) { grid-column: 1; }
  body[data-page="fan-zhang"] .faculty-role-list > div, body[data-page="fan-zhang"] .faculty-education-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 760px) and (hover: none) {
  .team-space-name { opacity: 1; padding: 14px 5px 8px; font-size: 11px; line-height: 1.3; }
}

/* Full scenes retain the supplied frame; phones show the photo above the copy. */
body[data-member-hero] .member-intro[data-photo-display="full"] { min-height: 0; background: #0b1c2c; }
body[data-member-hero] .member-intro[data-photo-display="full"] .member-intro-scene-image {
  position: relative; display: block; inset: auto; z-index: -2;
  width: 100%; min-width: 0; height: auto; max-height: none;
  aspect-ratio: var(--scene-ratio); object-fit: contain; transform: none;
  -webkit-mask-image: none; mask-image: none;
}
body[data-member-hero] .member-intro[data-photo-display="full"] .member-intro-layout {
  position: absolute; inset: 0 auto 0 0; width: 32%; min-height: 0;
  margin-left: clamp(24px, 5vw, 80px); margin-right: 0;
  padding: calc(var(--header-height) + 40px) 0 96px;
}
@media (max-width: 760px) {
  body[data-member-hero] .member-intro[data-photo-display="full"] { padding-top: var(--header-height); }
  body[data-member-hero] .member-intro[data-photo-display="full"]::after { background: none; }
  body[data-member-hero] .member-intro[data-photo-display="full"] .member-intro-layout {
    position: relative; inset: auto; width: auto; margin-inline: 24px;
    min-height: 0; padding: 28px 0 100px; gap: 28px;
  }
  .member-intro[data-photo-display="full"] .member-intro-identity { width: 100%; min-height: 0; }
  .member-intro[data-photo-display="full"] h1 { font-size: clamp(36px, 9vw, 60px); }
  .member-intro[data-photo-display="full"] h1 span { display: inline; }
  .member-intro[data-photo-display="full"] h1 span + span::before { content: ' '; }
}
