:root {
  --ink: #19211f;
  --muted: #65706b;
  --paper: #f6f2ea;
  --panel: #fffdf8;
  --line: #ddd4c5;
  --teal: #0f766e;
  --rust: #b45309;
  --gold: #e7b85b;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(24, 27, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 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;
  gap: 24px;
  min-height: 72px;
  padding: 14px 40px;
  background: rgba(246, 242, 234, 0.92);
  border-bottom: 1px solid rgba(221, 212, 197, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}

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

.nav-links a:hover {
  color: var(--ink);
}

.language-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  background: #ebe4d8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-switch button {
  min-width: 48px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.language-switch button.is-active {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(8, 12, 11, 0.92), rgba(8, 12, 11, 0.62) 42%, rgba(8, 12, 11, 0.1)),
    url("lab_fig/c8151d3c455afd020b50a0e118ecd80c.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin: 0 0 120px 6vw;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--rust);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: 5rem;
  line-height: 0.98;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.hero-stats div {
  padding: 20px;
  background: rgba(11, 16, 15, 0.74);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.section-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-section,
.people-section,
.apply-section {
  padding: 90px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.12;
}

.intro-grid > p,
.apply-copy p,
.culture-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 90px;
}

.research-grid article,
.people-grid article {
  min-height: 260px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(66, 54, 37, 0.08);
}

.research-grid span {
  color: var(--rust);
  font-weight: 900;
}

.research-grid h3,
.people-grid h3 {
  margin: 22px 0 12px;
  font-size: 1.18rem;
}

.research-grid p,
.people-grid p {
  margin: 0;
  color: var(--muted);
}

.lab-gallery-section {
  padding: 64px 0;
  background: #eee7da;
}

.lab-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 350px));
  justify-content: center;
  justify-items: center;
  gap: 16px;
}

.lab-gallery-item {
  width: 100%;
  max-width: 350px;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(66, 54, 37, 0.1);
}

.lab-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e4ddd1;
}

.lab-gallery-item figcaption {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
}

.lab-gallery-item strong {
  font-size: 1.12rem;
}

.lab-gallery-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.lab-band {
  padding: 76px 0;
  color: var(--white);
  background: #18201e;
}

.lab-band-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 68px;
  align-items: center;
}

.chips,
.opening-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chips span,
.opening-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(231, 184, 91, 0.42);
  border-radius: 8px;
  color: #f9e8c5;
}

#publications {
  padding: 90px 0;
}

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

.publication-list a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.publication-list span {
  color: var(--rust);
  font-weight: 900;
}

.publication-list strong {
  font-size: 1.04rem;
}

.news-section {
  padding: 90px 0;
  background: #eee7da;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(66, 54, 37, 0.08);
}

.news-card + .news-card {
  margin-top: 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--rust);
  font-weight: 900;
}

.news-meta span {
  display: inline-flex;
  padding: 4px 10px;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.news-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.news-certificate {
  margin: 0;
  overflow: hidden;
  background: #e9e2d6;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(30, 26, 20, 0.14);
}

.news-certificate img {
  display: block;
  width: 100%;
  height: auto;
}

.news-image-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1.44fr);
  gap: 10px;
  margin: 0;
}

.news-image-grid img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #111414;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.people-section {
  background: var(--paper);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role {
  display: inline-block;
  color: var(--teal);
  font-weight: 900;
  font-size: 0.86rem;
}

.apply-section {
  background: var(--ink);
  color: var(--white);
}

.apply-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 46px;
  align-items: start;
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: #fffaf0;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfc6b7;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.submit-button {
  min-height: 50px;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px;
  color: rgba(255, 255, 255, 0.74);
  background: #101513;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    overflow-x: auto;
  }

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

  .hero {
    min-height: 84vh;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto 82px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-stats,
  .intro-grid,
  .lab-band-grid,
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .research-grid,
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-gallery {
    grid-template-columns: repeat(2, minmax(0, 350px));
  }

  .lab-gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .section-shell,
  .hero-stats {
    width: calc(100% - 28px);
  }

  .research-grid,
  .people-grid,
  .application-form,
  .lab-gallery {
    grid-template-columns: 1fr;
  }

  .lab-gallery-item:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .publication-list a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .news-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .news-meta {
    align-items: center;
    margin-bottom: 16px;
  }

  .news-image-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}
