:root {
  --ink: #17242d;
  --muted: #5d6b73;
  --line: #d8e0e4;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --soft-green: #e7f0ec;
  --blue: #24485f;
  --green: #4f8b7d;
  --coral: #d85b49;
  --shadow: 0 20px 55px rgba(23, 36, 45, 0.09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 76px;
  height: 58px;
  object-fit: contain;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--blue);
}

.language-toggle,
.nav-toggle,
.button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.language-toggle {
  min-width: 64px;
  padding: 8px 12px;
  color: var(--blue);
  background: var(--soft-green);
  border-radius: 8px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(64px, 8vw, 108px) 5vw 54px;
}

.hero-copy {
  max-width: 760px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.hero-lede,
.section-heading p,
.rich-text p,
.participate-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 32px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

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

.button.secondary {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-visual {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow));
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 5vw;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-item {
  min-height: 118px;
  padding: 28px;
  background: var(--soft);
}

.stat-item strong {
  display: block;
  color: var(--blue);
  font-size: 1.35rem;
}

.stat-item span {
  color: var(--muted);
}

.content-section,
.split-section,
.participate-section {
  padding: clamp(72px, 9vw, 128px) 5vw;
}

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

.grid {
  display: grid;
  gap: 18px;
}

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

.info-card,
.person-card {
  min-height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card p,
.person-card p,
.publication-item p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  background: var(--soft);
}

.rich-text {
  max-width: 760px;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  border-bottom: 2px solid var(--green);
}

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

.person-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 4 / 5;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.member-photo {
  width: 88px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.person-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
}

.role {
  margin-bottom: 10px;
  color: var(--coral) !important;
  font-weight: 800;
}

.publications-section {
  background: #fbfcfc;
}

.publication-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.publication-item {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.publication-item > span {
  color: var(--coral);
  font-weight: 900;
}

.publication-actions {
  display: flex;
  gap: 8px;
  justify-content: end;
}

.publication-actions a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  color: var(--blue);
  background: var(--soft-green);
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.82rem;
}

.participate-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 32px;
  align-items: center;
  color: #fff;
  background: var(--blue);
}

.participate-section .eyebrow,
.participate-copy p {
  color: #d9eee8;
}

.participate-copy {
  max-width: 820px;
}

.notice {
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--coral);
}

.recruiting-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.recruiting-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.recruiting-heading .eyebrow,
.recruiting-heading h3,
.recruiting-heading p {
  margin: 0;
}

.recruiting-heading h3 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.recruiting-heading p {
  max-width: 560px;
  color: #d9eee8;
}

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

.recruiting-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 100%;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.recruiting-card-header,
.recruiting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.study-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--blue);
  background: var(--soft-green);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.recruiting-card h4 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

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

.study-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.study-meta div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
}

.study-meta dt {
  color: var(--coral);
  font-weight: 900;
}

.study-meta dd {
  margin: 0;
  color: var(--ink);
}

.button.ghost {
  color: var(--blue);
  background: var(--soft);
  border: 1px solid var(--line);
}

.site-footer {
  display: grid;
  gap: 0;
  color: #dce6ea;
  background: #101b22;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(54px, 7vw, 84px) 5vw;
  background: #13232c;
}

.contact-heading {
  max-width: 820px;
}

.contact-heading .eyebrow,
.contact-heading h2,
.contact-heading p {
  margin: 0;
}

.contact-heading h2 {
  max-width: 680px;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.05;
}

.contact-heading p {
  max-width: 760px;
  margin-top: 22px;
  color: #aebcc3;
  font-size: 1.12rem;
  line-height: 1.7;
}

.contact-direct {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-direct span {
  color: #d9eee8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-copy {
  min-height: 0;
  padding: 0 0 4px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
}

.email-copy.is-copied {
  color: #d9eee8;
  border-color: #d9eee8;
}

.contact-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.contact-meta div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
}

.contact-meta dt {
  color: #d9eee8;
  font-weight: 900;
}

.contact-meta dd {
  margin: 0;
}

.footer-lab-info {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, auto);
  gap: 28px;
  align-items: end;
  padding: 34px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-lab-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer-lab-info p {
  max-width: 560px;
  margin: 0;
  color: #aebcc3;
}

address {
  display: grid;
  gap: 6px;
  color: #aebcc3;
  font-style: normal;
  text-align: right;
}

address a {
  color: #fff;
}

.admin-link {
  display: inline-flex;
  justify-self: start;
  color: #aebcc3;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(174, 188, 195, 0.45);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 27, 34, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: min(100%, 560px);
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-dialog h2 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.modal-dialog p {
  color: var(--muted);
}

.modal-english {
  padding-top: 4px;
  font-size: 0.96rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.modal-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--coral);
  font-weight: 800;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--blue);
  background: var(--soft-green);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.poster-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(88vh, 920px);
  padding: 22px;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.poster-dialog h2 {
  margin: 0 46px 16px 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.poster-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 5vw;
    left: 5vw;
    display: none;
    align-items: stretch;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .language-toggle {
    justify-self: start;
  }

  .hero-section,
  .split-section,
  .participate-section {
    grid-template-columns: 1fr;
  }

  .recruiting-heading,
  .recruiting-grid {
    grid-template-columns: 1fr;
  }

  .recruiting-heading {
    display: grid;
  }

  .hero-section {
    min-height: 0;
    padding-top: 50px;
  }

  .hero-visual {
    justify-self: start;
    max-width: 560px;
  }

  .research-grid,
  .people-grid,
  .footer-lab-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participate-actions {
    justify-content: start;
  }
}

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

  .brand-mark {
    width: 68px;
    height: 52px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.55rem;
  }

  .intro-band,
  .research-grid,
  .people-grid,
  .contact-panel,
  .footer-lab-info {
    grid-template-columns: 1fr;
  }

  address {
    text-align: left;
  }

  .person-card,
  .publication-item,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .publication-item {
    gap: 8px;
  }

  .site-footer {
    display: grid;
  }

  address {
    text-align: left;
  }
}
