:root {
  color-scheme: light;
  --ink: #10202a;
  --muted: #5b6b76;
  --line: #dce5e8;
  --paper: #ffffff;
  --soft: #f4f8f7;
  --deep: #0d3b52;
  --green: #1e6b5c;
  --accent: #b8742a;
  --shadow: 0 20px 50px rgba(16, 32, 42, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 32, 42, 0.1);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.site-nav a {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--deep);
  background: #e8f2ef;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  background: #f1f6f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-option {
  min-width: 42px;
  padding: 6px 9px;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--deep);
  outline: 2px solid rgba(30, 107, 92, 0.22);
  outline-offset: 1px;
}

.language-option.active {
  color: #fff;
  background: var(--deep);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

main > section {
  padding: 92px clamp(18px, 5vw, 56px);
}

.section-anchor {
  scroll-margin-top: 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 72px);
  max-width: none;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 59, 82, 0.96), rgba(30, 107, 92, 0.82)),
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.22), transparent 34%),
    #0d3b52;
}

.hero-copy,
.hero-visual,
.content-band > *,
main > section:not(.hero):not(.content-band):not(.join) > *,
.join > * {
  max-width: var(--max);
}

.hero-copy {
  justify-self: end;
  width: min(100%, 600px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c27d;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.35rem, 4.6vw, 4.9rem);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-actions,
.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  position: relative;
  justify-self: start;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
}

.logo-hero {
  display: grid;
  align-content: center;
}

.research-hero {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(100%, 500px);
  aspect-ratio: auto;
}

.research-graphic-card {
  position: relative;
  width: min(100%, 430px);
  padding: clamp(14px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.research-graphic {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.cell-field {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  overflow: hidden;
}

.cell-field span {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 18px solid rgba(177, 226, 214, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.cell-field span:nth-child(1) {
  top: 12%;
  left: 10%;
}

.cell-field span:nth-child(2) {
  top: 42%;
  left: 24%;
  width: 144px;
  height: 144px;
}

.cell-field span:nth-child(3) {
  top: 18%;
  right: 12%;
  width: 126px;
  height: 126px;
}

.cell-field span:nth-child(4) {
  right: 18%;
  bottom: 12%;
}

.cell-field span:nth-child(5) {
  left: 8%;
  bottom: 10%;
  width: 78px;
  height: 78px;
}

.logo-card {
  position: relative;
  display: grid;
  gap: 22px;
  align-content: center;
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.logo-card img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

.logo-card .profile-photo {
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(16, 32, 42, 0.16);
}

.logo-card strong {
  display: block;
  color: var(--deep);
  font-size: 1.25rem;
}

.logo-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.content-band {
  background: var(--soft);
}

.content-band > *,
main > section:not(.hero):not(.content-band):not(.join) > *,
.join > * {
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.metrics,
.research-grid,
.team-grid,
.resource-grid,
.about-gallery,
.collaboration-grid {
  display: grid;
  gap: 18px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.metrics div,
.research-grid article,
.person,
.publication-list article,
.resource-card,
.collaboration-panel,
.collab-card,
.timeline article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metrics strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.metrics span,
.role,
.publication-list span,
.timeline time {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.research-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 24px auto 0;
}

.about-gallery-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 32, 42, 0.08);
}

.about-gallery img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: #f7f4eb;
}

.card-index {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 850;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person.pi {
  background: #edf5f2;
}

.profile-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.profile-identity,
.member-identity {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.profile-identity {
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
}

.member-identity {
  grid-template-rows: auto auto;
  align-content: start;
}

.profile-identity h3,
.member-identity h3 {
  margin-bottom: 0;
}

.profile-identity .role {
  align-self: end;
  margin: 0;
}

.profile-bio p {
  margin: 0;
  font-size: 1.05rem;
}

.member-card {
  display: grid;
  grid-template-columns: minmax(104px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.member-copy {
  min-width: 0;
}

.member-copy .role {
  margin: 0 0 12px;
}

.profile-link {
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.person p:last-child {
  margin-bottom: 0;
}

.person-photo {
  display: block;
  width: min(100%, 160px);
  aspect-ratio: 1 / 1;
  margin: 0;
  object-fit: cover;
  object-position: center 18%;
  background: #dfe7e8;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 32, 42, 0.14);
}

.profile-identity .person-photo {
  width: min(100%, 280px);
  margin-bottom: 8px;
}

.avatar {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  font-weight: 850;
  background: var(--deep);
  border-radius: 8px;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.filter {
  color: var(--deep);
  background: #eff5f3;
  border-color: var(--line);
}

.filter.active {
  color: #fff;
  background: var(--green);
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-source {
  max-width: 900px;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.publication-list article[hidden] {
  display: none;
}

.publication-list .citation {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.publication-list em {
  color: var(--deep);
  font-style: italic;
}

.publication-list a {
  color: var(--green);
  font-weight: 750;
}

.resource-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.resource-card.featured {
  grid-column: 1 / -1;
}

.resource-card:not(.featured) {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
}

.resource-card:nth-of-type(2) {
  grid-column: 2 / span 2;
}

.resource-card:nth-of-type(3) {
  grid-column: 4 / span 2;
}

.resource-grid strong,
.resource-grid span {
  display: block;
}

.resource-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.resource-image {
  display: block;
  width: 100%;
  max-height: 250px;
  margin-top: 18px;
  aspect-ratio: 3.2 / 1;
  object-fit: contain;
  background: #f7f4eb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource-photo {
  align-self: end;
  max-height: 210px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.collaboration-panel {
  margin-top: 18px;
}

.collaboration-panel h3 {
  margin-bottom: 18px;
}

.collaboration-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.collab-card {
  display: grid;
  grid-template-rows: 52px auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 10px;
  text-align: center;
}

.collab-logo,
.collab-logo-placeholder {
  display: block;
  width: 100%;
  max-width: 86px;
  height: 52px;
  margin: 0 auto;
}

.collab-logo {
  max-width: 86px;
  object-fit: contain;
}

.collab-logo-wide {
  max-width: 126px;
}

.collab-logo-placeholder {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f6f8f8;
}

.collab-card strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline p {
  margin-bottom: 0;
}

.timeline a {
  color: var(--deep);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.timeline .text-link {
  color: var(--green);
  font-size: 0.92rem;
}

.join {
  color: #fff;
  background: var(--deep);
}

.join .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.join-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.join-contact {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.join-contact a {
  color: #fff;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .language-switcher {
    margin-left: auto;
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  h1 {
    max-width: 13ch;
  }

  .hero-copy,
  .hero-visual {
    justify-self: center;
    width: min(100%, var(--max));
  }

  .metrics,
  .research-grid,
  .resource-grid,
  .collaboration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 681px) {
  .about-gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .resource-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .collaboration-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 52px;
    height: 40px;
  }

  .brand small {
    display: none;
  }

  .language-option {
    min-width: 38px;
    padding: 6px 8px;
  }

  main > section {
    padding: 64px 18px;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .two-column,
  .metrics,
  .research-grid,
  .team-grid,
  .resource-grid,
  .about-gallery,
  .collaboration-grid,
  .site-nav.open {
    grid-template-columns: 1fr;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-card {
    grid-template-columns: 1fr;
  }

  .resource-card:not(.featured) {
    grid-column: 1 / -1;
  }

  .logo-card {
    min-height: 280px;
  }

  .person-photo,
  .profile-identity .person-photo {
    width: min(100%, 220px);
  }

  .member-card .person-photo {
    margin-bottom: 14px;
  }
}
