:root {
  --ink: #0c1c31;
  --muted: #647083;
  --soft: #f5f5f7;
  --line: rgba(24, 24, 27, 0.1);
  --red: #9b1c31;
  --red-dark: #701123;
  --red-soft: rgba(155, 28, 49, 0.09);
  --glass: rgba(255, 255, 255, 0.5);
  --shadow: 0 24px 70px rgba(24, 24, 27, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.no-smooth-scroll { scroll-behavior: auto !important; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(155, 28, 49, 0.065), transparent 27rem),
    radial-gradient(circle at 88% 18%, rgba(130, 162, 214, 0.13), transparent 30rem),
    #fbfbfd;
  font-family: Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.container,
.nav-shell,
.footer-grid,
.footer-bottom {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
  border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
#site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: 84px;
}
.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  height: 84px;
  padding: 0;
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(12, 28, 49, 0.08);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}
.nav-shell { display: flex; height: 84px; align-items: center; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; font-size: 24px; font-weight: 850; text-decoration: none; letter-spacing: 0.025em; text-transform: uppercase; }
.brand strong { color: var(--red); }
.site-nav { display: flex; height: 100%; flex: 1; align-items: center; justify-content: space-between; gap: 8px; }
.site-nav > a,
.nav-dropdown-trigger {
  position: relative;
  display: flex;
  height: 100%;
  padding: 0 4px;
  align-items: center;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  transition: 180ms ease;
}
.nav-dropdown-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.site-nav > a::after,
.nav-dropdown-trigger::after {
  position: absolute;
  right: 4px;
  bottom: 15px;
  left: 4px;
  height: 3px;
  content: "";
  background: var(--red);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}
.site-nav > a:hover,
.nav-dropdown-trigger:hover { color: var(--red); }
.site-nav > a:hover::after,
.nav-dropdown-trigger:hover::after { transform: scaleX(.45); }
.site-nav > a.is-active,
.nav-dropdown-trigger.is-active {
  color: var(--red);
  font-weight: 900;
}
.site-nav > a.is-active::after,
.nav-dropdown-trigger.is-active::after { transform: scaleX(1); }
.site-nav > a.language-switch {
  width: auto;
  height: 40px;
  padding: 0 14px;
  justify-content: center;
  border: 1px solid rgba(12,28,49,.18);
  border-radius: 999px;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: none;
}
.site-nav > a.language-switch::after { display: none; }
.site-nav > a.language-switch:hover,
.site-nav > a.language-switch:focus-visible {
  color: var(--ink);
  background: rgba(12,28,49,.065);
  outline: none;
}
html[lang^="zh"] body {
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}
html[lang^="zh"] .site-nav > a,
html[lang^="zh"] .nav-dropdown-trigger {
  letter-spacing: .025em;
}
.nav-dropdown {
  position: relative;
  display: flex;
  height: 100%;
  align-items: stretch;
}
.nav-dropdown-trigger { gap: 10px; }
.nav-chevron {
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.nav-dropdown.is-open .nav-chevron,
.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}
.nav-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% - 1px);
  left: 50%;
  min-width: 250px;
  padding: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(12,28,49,.09);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 55px rgba(12,28,49,.14);
  backdrop-filter: saturate(150%) blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 14px 16px;
  color: var(--ink);
  border-radius: 11px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--ink);
  background: rgba(12,28,49,.065);
  outline: none;
}
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; margin: 6px auto; background: var(--ink); transition: 180ms ease; }

/* Shared typography and sections */
main {
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 4%, rgba(155,28,49,.065), transparent 27rem),
    radial-gradient(circle at 88% 18%, rgba(130,162,214,.13), transparent 30rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f6f9 100%);
}
.page-hero,
.home-hero { position: relative; overflow: hidden; }
.home-hero { min-height: 700px; display: grid; align-items: center; padding: 110px 0 120px; }
main::before {
  position: absolute;
  z-index: 0;
  content: "";
  width: 500px;
  height: 500px;
  right: -150px;
  top: -120px;
  background: linear-gradient(145deg, rgba(155, 28, 49, 0.095), rgba(119, 155, 216, 0.15));
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}
main > * { position: relative; z-index: 1; }
.hero-content { position: relative; z-index: 1; max-width: 920px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-hero h1,
.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.home-hero h1 span { color: var(--red); }
.hero-lead {
  max-width: 690px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}
.home-hero .hero-content { max-width: var(--content); }
.home-hero .home-title { max-width: 1100px; font-size: clamp(46px, 6.4vw, 84px); }
.hero-introduction { max-width: 850px; margin-top: 32px; }
.hero-introduction p { margin: 0 0 16px; color: var(--muted); font-size: 20px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 27px;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(155, 28, 49, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(155, 28, 49, 0.24); }
.button.secondary { color: var(--ink); background: rgba(255,255,255,.62); border-color: var(--line); box-shadow: none; backdrop-filter: blur(12px); }
.page-hero { padding: 115px 0 88px; }
.page-hero h1 { font-size: clamp(48px, 7vw, 82px); }
.section { padding: 100px 0; }
.section.soft { background: transparent; border-block: 1px solid rgba(255,255,255,.62); }
.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading.compact { margin-bottom: 28px; }
.section-heading h2,
.split-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.section-heading p:last-child,
.split-copy > p { margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.glass-grid,
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.glass-card {
  min-height: 280px;
  padding: 32px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass-card .number { display: inline-grid; width: 42px; height: 42px; margin-bottom: 54px; color: var(--red); background: var(--red-soft); border-radius: 13px; place-items: center; font-weight: 750; }
.glass-card h3 { margin: 0; font-size: 24px; line-height: 1.18; letter-spacing: -0.025em; }
.glass-card p { margin: 15px 0 0; color: var(--muted); }
.home-research-grid { grid-template-columns: repeat(2, 1fr); }
.home-research-grid .glass-card { min-height: 0; padding: 26px 30px; }
.home-explore-grid { grid-template-columns: repeat(2, 1fr); }
.explore-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.explore-card .eyebrow { margin-bottom: 28px; color: var(--red); }
.explore-card:hover {
  color: var(--ink);
  border-color: rgba(155, 28, 49, 0.24);
  box-shadow: 0 28px 76px rgba(24, 24, 27, 0.13);
  transform: translateY(-4px);
}
.philosophy-panel {
  display: grid;
  padding: 54px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.philosophy-panel .section-heading { margin: 0; }
.philosophy-copy p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.stat-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 30px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-md); box-shadow: 0 18px 50px rgba(24,24,27,.07); }
.stat strong { display: block; color: var(--red); font-size: 38px; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 14px; }

/* Vacancies */
.vacancies-page { padding-top: 110px; background: transparent; }
.vacancies-page .section-heading { max-width: 880px; }
.vacancies-page .section-heading h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.vacancies-grid .glass-card { min-height: 0; padding: 32px; }
.vacancies-grid .glass-card h2 { margin: 0; font-size: 27px; line-height: 1.18; letter-spacing: -.025em; }
.vacancies-grid .glass-card p { margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.vacancies-apply-panel {
  display: grid;
  padding: 50px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}
.vacancies-apply-panel h2 { margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.vacancies-apply-copy > p { margin: 0; color: var(--muted); font-size: 18px; }
.vacancies-apply-copy ul { margin: 22px 0 30px; padding-left: 22px; color: var(--ink); font-size: 17px; line-height: 1.8; }
.vacancies-apply-copy li { margin-bottom: 5px; }
body[data-page="vacancies"] .site-footer { margin-top: 0; }

/* Research */
.research-page { padding-top: 110px; background: transparent; }
.research-overview { max-width: 940px; margin-bottom: 0; }
.research-overview h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.research-overview > p:last-child { max-width: 880px; font-size: 20px; line-height: 1.75; }
.research-section-heading { max-width: 800px; margin-bottom: 40px; }
.research-section-heading h2 { margin: 0; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -.04em; }
.research-area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.research-area-card,
.research-platform-card {
  padding: 27px 30px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.research-area-card h2,
.research-platform-card h2 { margin: 0; font-size: 25px; line-height: 1.18; letter-spacing: -.025em; }
.research-area-card h2 { min-height: 60px; }
.research-area-card p { min-height: 86px; margin: 12px 0 15px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.research-area-card ul,
.research-platform-card ul { margin: 0; padding-left: 21px; color: var(--ink); font-size: 15px; line-height: 1.65; }
.research-area-card li,
.research-platform-card li { margin-bottom: 5px; }
.research-platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.research-platform-card h2 { margin-bottom: 20px; color: var(--red); }
.research-philosophy-compact {
  display: grid;
  margin-top: 30px;
  padding: 28px 32px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: center;
}
.research-philosophy-compact .eyebrow { margin-bottom: 10px; }
.research-philosophy-compact h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.research-philosophy-compact > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
body[data-page="research"] .site-footer { margin-top: 0; }

/* Publications */
.publications-directory { padding-top: 72px; }
.year-group { display: grid; grid-template-columns: 160px 1fr; gap: 28px; margin-bottom: 70px; }
.year-label { font-size: 28px; font-weight: 750; letter-spacing: -.04em; }
.year-label span { position: sticky; top: 100px; }
.publication-grid { display: grid; gap: 24px; }
.publication-card { display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; overflow: hidden; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.publication-card--text-only { grid-template-columns: 1fr; }
.publication-visual { min-height: 280px; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(255,255,255,.82); }
.publication-visual img { display: block; width: auto; height: auto; max-width: 100%; max-height: 420px; object-fit: contain; object-position: center; }
.publication-copy { padding: 34px; }
.publication-copy h3 { margin: 0 0 14px; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.18; letter-spacing: -.03em; }
.publication-copy p { margin: 9px 0; }
.authors, .journal, .summary { color: var(--muted); }
.summary { padding-top: 9px; border-top: 1px solid var(--line); }
.text-links { display: flex; gap: 20px; margin-top: 20px; }
.text-links a { color: var(--red); font-size: 13px; font-weight: 750; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.text-links .doi-link { text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }

/* Members */
.members-directory { padding-top: 72px; }
.member-group { margin-bottom: 90px; }
.members-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.director-grid { grid-template-columns: minmax(0, 900px); }
.member-card { overflow: hidden; color: var(--ink); background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.member-card-link { text-decoration: none; }
.member-card-link:hover { color: var(--ink); border-color: rgba(155,28,49,.25); box-shadow: 0 28px 72px rgba(24,24,27,.13); transform: translateY(-3px); }
.member-photo { aspect-ratio: 4 / 4.5; overflow: hidden; background: #e9e9ec; }
.director-grid .member-card { display: grid; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); }
.director-grid .member-photo { min-height: 0; aspect-ratio: 1 / 1; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member-photo img[src$="wei-li.jpg"] {
  object-position: 50% 45%;
  transform: scale(1.42);
  transform-origin: 50% 52%;
}
.member-copy { padding: 22px 24px 25px; }
.director-grid .member-copy { display: flex; padding: 38px; flex-direction: column; justify-content: center; align-items: flex-start; }
.member-copy h3 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.director-grid .member-copy h3 { font-size: clamp(22px, 6.7vw, 42px); white-space: nowrap; }
.member-copy p { margin: 9px 0 0; color: var(--muted); }
.member-copy .member-role { color: var(--red); font-size: 13px; font-weight: 750; letter-spacing: .035em; }
.member-profile-label { display: inline-flex; margin-top: 28px; color: var(--red); align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.alumni-group { margin-bottom: 60px; }
.alumni-list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; }
.alumni-list li { padding: 18px 20px; color: var(--ink); background: rgba(255,255,255,.46); border: 1px solid rgba(12,28,49,.08); border-radius: 16px; font-size: 18px; font-weight: 700; }

/* Principal investigator profile */
.profile-page { padding: 88px 0 120px; background: transparent; }
.profile-layout { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.profile-sidebar { display: flex; min-height: 100%; flex-direction: column; }
.profile-photo-card,
.profile-contact-card,
.profile-section { background: rgba(255,255,255,.54); border: 1px solid rgba(255,255,255,.78); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.profile-photo-card { overflow: hidden; }
.profile-photo-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; }
.profile-contact-card { flex: 1; margin-top: 20px; padding: 28px; }
.profile-contact-card h2 { margin: 0 0 18px; color: var(--red); font-size: 16px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.profile-contact-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.profile-contact-card p:last-child { margin-bottom: 0; }
.profile-contact-card strong { color: var(--ink); }
.profile-contact-card a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.profile-contact-card a:hover { color: var(--red); }
.profile-heading { padding: 10px 0 42px; }
.profile-heading .eyebrow { margin-bottom: 12px; }
.profile-heading h1 { margin: 0; font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; }
.profile-title { margin: 24px 0 0; color: var(--muted); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.5; }
.profile-section { margin-bottom: 24px; padding: 38px 42px; }
.profile-section h2 { margin: 0 0 24px; color: var(--red); font-size: 20px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.profile-section p { margin: 0 0 18px; color: var(--ink); font-size: 18px; line-height: 1.82; }
.profile-section p:last-child { margin-bottom: 0; }
.profile-timeline { width: 100%; border-collapse: collapse; table-layout: fixed; }
.profile-timeline td { padding: 16px 0; border-bottom: 1px solid rgba(12,28,49,.09); vertical-align: top; font-size: 17px; }
.profile-timeline tr:last-child td { border-bottom: 0; }
.profile-timeline .profile-year { width: 160px; padding-right: 30px; color: var(--red); font-weight: 850; white-space: nowrap; }
.profile-timeline .profile-role { width: 220px; padding-right: 30px; font-weight: 800; }
.profile-note { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.profile-tags { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: 12px; list-style: none; }
.profile-tags li { padding: 11px 16px; background: rgba(155,28,49,.07); border: 1px solid rgba(155,28,49,.13); border-radius: 999px; font-size: 16px; font-weight: 750; }
.profile-projects { margin: 0; padding-left: 24px; }
.profile-projects li { margin-bottom: 10px; padding-left: 5px; font-size: 17px; line-height: 1.7; }
.profile-links { display: flex; flex-wrap: wrap; gap: 14px; }
.profile-links a { display: inline-flex; min-height: 48px; padding: 12px 18px; color: #fff; background: var(--red); border-radius: 14px; align-items: center; text-decoration: none; font-weight: 800; }
.profile-links a:hover { background: var(--red-dark); }

/* Contact */
.contact-page { padding-top: 110px; background: transparent; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact-card, .map-card { overflow: hidden; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-card { padding: 42px; }
.contact-block h2,
.location-panel > h2 {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-block p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.contact-block .laboratory-name { margin-bottom: 6px; color: var(--ink); font-size: 30px; font-weight: 800; line-height: 1.2; }
.contact-block a { color: var(--ink); text-decoration: none; }
.contact-block a:hover { color: var(--red); }
.contact-divider { height: 1px; margin: 30px 0; background: rgba(12, 28, 49, 0.1); }
.resource-links { display: grid; gap: 12px; }
.resource-links a {
  display: block;
  padding: 17px 19px;
  color: var(--ink);
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(12,28,49,.09);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.resource-links a:hover {
  color: var(--ink);
  border-color: rgba(155,28,49,.3);
  box-shadow: 0 12px 30px rgba(24,24,27,.08);
  transform: translateY(-2px);
}
.resource-links strong { display: block; margin-bottom: 3px; font-size: 18px; }
.resource-links span { display: block; color: var(--muted); font-size: 15px; }
.location-panel > h2 { margin-bottom: 24px; font-size: 24px; }
.map-card { min-height: 480px; }
.map-card img { width: 100%; height: 100%; object-fit: cover; }
.contact-location-text {
  margin-top: 28px;
  color: var(--ink);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.65;
}
.contact-note { margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
body[data-page="contact"] .site-footer { margin-top: 0; }
.image-placeholder { display: grid; width: 100%; height: 100%; min-height: inherit; color: #8a8a91; background: linear-gradient(145deg, #f0f0f3, #e6e6ea); place-items: center; text-align: center; }
.publication-placeholder span { padding: 20px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.member-placeholder span { display: grid; width: 94px; height: 94px; color: white; background: var(--red); border-radius: 50%; place-items: center; font: 600 42px/1 Arial, sans-serif; }
.data-message { padding: 30px; color: var(--muted); background: rgba(255,255,255,.7); border-radius: var(--radius-md); }

/* Footer */
.site-footer {
  margin-top: 90px;
  padding: 78px 0 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(24, 24, 27, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.footer-main {
  display: grid;
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
  padding-bottom: 68px;
  grid-template-columns: 1.25fr .72fr 1.05fr;
  gap: 80px;
}
.footer-lab-name {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.footer-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.footer-contact .footer-affiliation { margin-bottom: 34px; }
.footer-contact h3 {
  margin: 27px 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}
.footer-contact a,
.footer-column a,
.footer-records a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-column h2 {
  margin: 0 0 28px;
  color: var(--red);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-column a {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}
.footer-logo-mark {
  display: flex;
  width: min(100%, 300px);
  margin-top: auto;
  padding: 0;
  align-self: flex-end;
  justify-content: flex-end;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.footer-logo-mark img {
  width: 100%;
  height: auto;
}
.footer-contact a:hover,
.footer-column a:hover,
.footer-records a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #8b94a1;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
  font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-records {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
  text-align: right;
}

.back-to-top {
  position: fixed;
  z-index: 950;
  right: 28px;
  bottom: 28px;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  color: #fff;
  background: linear-gradient(145deg, #9f2b40, var(--red-dark));
  border: 2px solid rgba(255,255,255,.62);
  border-radius: 50%;
  box-shadow: 0 15px 36px rgba(12,28,49,.24), inset 0 1px 0 rgba(255,255,255,.18);
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background 180ms ease;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: linear-gradient(145deg, #ad3048, #681223);
  outline: 3px solid rgba(126,22,40,.18);
  outline-offset: 3px;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top.is-visible:hover { transform: translateY(-3px); }
.back-to-top span {
  position: relative;
  display: block;
  width: 24px;
  height: 30px;
}
.back-to-top span::before {
  position: absolute;
  top: 7px;
  bottom: 1px;
  left: 50%;
  width: 4px;
  content: "";
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
}
.back-to-top span::after {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 13px;
  height: 13px;
  content: "";
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  border-radius: 2px 0 0;
  transform: translateX(-50%) rotate(45deg);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 901px) and (min-height: 720px) and (prefers-reduced-motion: no-preference) {
  html.section-scroll {
    scroll-padding-top: 84px;
    scroll-snap-type: y proximity;
  }
  body[data-page="home"] main > section,
  body[data-page="research"] main > section,
  body[data-page="vacancies"] main > section {
    display: flex;
    min-height: calc(100vh - 84px);
    padding-block: 42px;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  body[data-page="home"] main > section > .container,
  body[data-page="research"] main > section > .container,
  body[data-page="vacancies"] main > section > .container { width: min(calc(100% - 40px), var(--content)); }
  body[data-page="home"] .home-hero { min-height: calc(100vh - 84px); }
  body[data-page="home"] .site-footer,
  body[data-page="research"] .site-footer,
  body[data-page="vacancies"] .site-footer { margin-top: 0; }
  body[data-page="research"] .research-areas-screen .research-section-heading { margin-bottom: 26px; }
  body[data-page="research"] .research-platforms-screen .research-section-heading { margin-bottom: 24px; }
  body[data-page="research"] .research-platform-card { padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  #site-header,
  .site-header,
  .nav-shell { height: 74px; }
  .site-header {
    background: rgba(255,255,255,.98);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
  }
  .nav-shell { justify-content: space-between; }
  .nav-toggle { display: block; position: relative; z-index: 2; margin-left: auto; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 1;
    inset: 74px 0 0;
    display: flex;
    height: calc(100dvh - 74px);
    padding: 24px 24px 40px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 180ms ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a,
  .nav-dropdown-trigger {
    width: 100%;
    height: auto;
    padding: 13px 18px;
    justify-content: space-between;
    font-size: 22px;
  }
  .site-nav > a.language-switch {
    width: fit-content;
    height: auto;
    margin: 12px 18px 0;
    padding: 8px 14px;
  }
  .nav-dropdown { display: block; width: 100%; height: auto; }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    padding: 0 6px;
    overflow: hidden;
    border-width: 0;
    border-radius: 14px;
    background: #f6f7f9;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 180px;
    padding: 6px;
    border-width: 1px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown-menu a { padding: 12px 14px 12px 30px; font-size: 18px; }
  .glass-grid, .research-grid, .members-grid { grid-template-columns: repeat(2, 1fr); }
  .director-grid { grid-template-columns: 1fr; }
  .alumni-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: 1fr; gap: 46px; }
  .profile-sidebar { position: static; display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 22px; align-items: stretch; }
  .profile-contact-card { margin-top: 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .philosophy-panel { grid-template-columns: 1fr; gap: 34px; }
  .vacancies-apply-panel { grid-template-columns: 1fr; gap: 32px; }
  .publication-card { grid-template-columns: 1fr; }
  .publication-visual { min-height: 340px; }
  .footer-main { grid-template-columns: 1.25fr .75fr; gap: 58px; }
  .footer-useful { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container, .nav-shell, .footer-grid, .footer-bottom { width: min(calc(100% - 28px), var(--content)); }
  .home-hero { min-height: 620px; padding: 90px 0; }
  .home-hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .page-hero { padding: 82px 0 62px; }
  .section { padding: 72px 0; }
  .glass-grid, .research-grid, .members-grid, .stat-panel { grid-template-columns: 1fr; }
  .home-research-grid { grid-template-columns: 1fr; }
  .home-research-grid .glass-card { min-height: 0; }
  .home-explore-grid { grid-template-columns: 1fr; }
  .philosophy-panel { padding: 30px; }
  .vacancies-page { padding-top: 72px; }
  .vacancies-apply-panel { padding: 30px; }
  .research-page { padding-top: 72px; }
  .research-overview { margin-bottom: 64px; }
  .research-area-grid,
  .research-platform-grid { grid-template-columns: 1fr; }
  .research-area-card,
  .research-platform-card { padding: 28px; }
  .research-area-card h2,
  .research-area-card p { min-height: 0; }
  .research-philosophy-compact { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .glass-card { min-height: 240px; }
  .research-item { grid-template-columns: 1fr; gap: 20px; padding: 30px; }
  .year-group { grid-template-columns: 1fr; gap: 18px; }
  .year-label span { position: static; }
  .publication-visual { min-height: 240px; }
  .publication-copy, .member-copy { padding: 24px; }
  .director-grid .member-card { grid-template-columns: 1fr; }
  .director-grid .member-photo { min-height: 0; }
  .alumni-list { grid-template-columns: 1fr; }
  .profile-page { padding: 64px 0 90px; }
  .profile-sidebar { display: block; }
  .profile-contact-card { margin-top: 18px; }
  .profile-heading { padding: 8px 0 34px; }
  .profile-section { padding: 28px; }
  .profile-timeline,
  .profile-timeline tbody,
  .profile-timeline tr,
  .profile-timeline td { display: block; width: 100% !important; }
  .profile-timeline tr { padding: 14px 0; border-bottom: 1px solid rgba(12,28,49,.09); }
  .profile-timeline tr:last-child { border-bottom: 0; }
  .profile-timeline td { padding: 2px 0; border-bottom: 0; }
  .profile-timeline .profile-year { margin-bottom: 4px; }
  .contact-card { padding: 30px; }
  .map-card { min-height: 360px; }
  .contact-page { padding-top: 72px; }
  .contact-block .nowrap { white-space: normal; }
  .site-footer { margin-top: 64px; padding-top: 58px; }
  .back-to-top { right: 18px; bottom: 18px; width: 50px; height: 50px; }
  .back-to-top span { transform: scale(.86); }
  .footer-logo-mark { width: min(100%, 260px); margin-top: 10px; }
  .footer-main { width: min(calc(100% - 28px), var(--content)); grid-template-columns: 1fr; gap: 48px; padding-bottom: 46px; }
  .footer-useful { grid-column: auto; }
  .footer-lab-name { font-size: 32px; }
  .footer-column h2 { font-size: 19px; }
  .footer-contact p, .footer-column a { font-size: 16px; }
  .footer-bottom { width: min(calc(100% - 28px), var(--content)); flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-records { justify-content: flex-start; text-align: left; }
}
