:root {
  --red: #9f1f2b;
  --red-dark: #76151f;
  --ink: #18212f;
  --muted: #667081;
  --line: #e5e8ec;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --aqua: #0d7b83;
  --gold: #b7894b;
  --shadow: 0 18px 50px rgba(18, 29, 46, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(229, 232, 236, .88);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 1 420px;
}

.brand img {
  width: min(420px, 58vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 34px);
  color: #354051;
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  min-height: calc(86vh - 78px);
  padding: clamp(78px, 10vw, 132px) clamp(22px, 6vw, 90px) clamp(58px, 7vw, 86px);
  overflow: hidden;
  color: #fff;
  background: #1b2531;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 24, 31, .86) 0%, rgba(20, 24, 31, .66) 44%, rgba(20, 24, 31, .28) 100%),
    linear-gradient(0deg, rgba(16, 25, 37, .72), rgba(16, 25, 37, .12)),
    url("assets/hero-labs.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content,
.hero-panel {
  position: relative;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd7d7;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(159, 31, 43, .28);
}

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

.hero-panel {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  color: #fff;
  font-size: 20px;
}

.hero-panel span {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .74);
  line-height: 1.5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  min-height: 126px;
  padding: 28px clamp(18px, 3vw, 38px);
  background: #fff;
}

.metrics strong,
.detail-metrics strong {
  display: block;
  color: var(--red);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.metrics span,
.detail-metrics span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: clamp(72px, 9vw, 116px) clamp(22px, 6vw, 90px);
}

.section-heading {
  max-width: 1160px;
  margin: 0 auto 34px;
  border-left: 8px solid var(--red);
  padding-left: 18px;
}

.section-heading h2,
.proof-copy h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 5vw, 74px);
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

.copy {
  font-size: 17px;
  line-height: 2.05;
  color: #424b59;
}

.copy p {
  margin: 0 0 18px;
}

.copy .lead {
  color: var(--red-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.75;
}

.about-note {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 4px solid var(--aqua);
  background: #fff;
  box-shadow: var(--shadow);
}

.about-note span {
  color: var(--aqua);
  font-size: 13px;
  font-weight: 800;
}

.about-note strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.35;
}

.about-note p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.lab-section {
  background: #f3e8e6;
}

.lab-intro {
  max-width: 1160px;
  margin: 0 auto 30px;
  color: #4b5564;
  font-size: 17px;
  line-height: 1.9;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 54px);
  max-width: 1160px;
  margin: 0 auto;
}

.lab-card {
  overflow: hidden;
  border: 1px solid rgba(142, 91, 91, .22);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lab-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lab-card div {
  padding: 22px 24px 26px;
}

.lab-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.lab-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1160px;
  margin: 30px auto 0;
}

.detail-metrics div {
  padding: 24px 26px;
  border-left: 5px solid var(--red);
  border-radius: 6px;
  background: rgba(255, 255, 255, .76);
}

.services {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.service-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--aqua);
  font-weight: 800;
}

.service-grid h3 {
  margin: 24px 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  background: #18212f;
  color: #fff;
}

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

.proof-copy .section-kicker {
  color: #efb9bd;
}

.proof-copy p:last-child {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 17px;
  line-height: 1.9;
}

.proof-list {
  display: grid;
  gap: 12px;
}

.proof-list span {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(56px, 8vw, 86px) clamp(22px, 6vw, 90px);
  background: #fff;
}

.contact-band > div {
  max-width: 760px;
}

.contact-band > div > p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-info span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #4b5564;
  background: var(--soft);
  font-size: 14px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 20px 32px;
  border-top: 1px solid var(--line);
  color: #5e6877;
  background: #f8f9fa;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.gateway-footer-ICP,
.gateway-footer-ICP-II,
.copyright-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.gateway-footer-ICP-II {
  gap: 5px;
}

.gateway-footer-ICP-II img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.gateway-footer-icp-content {
  color: #5e6877;
}

.gateway-footer-icp-content:hover {
  color: var(--red);
}

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

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .about-layout,
  .proof {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 440px;
  }

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

  .lab-grid,
  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    min-height: 0;
  }

  .brand img {
    width: 100%;
  }

  .brand {
    flex: 0 1 auto;
  }

  .site-nav {
    gap: 18px;
    font-size: 14px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metrics,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: 100px;
  }

  .section-heading {
    padding-left: 14px;
    border-left-width: 6px;
  }

  .copy {
    font-size: 16px;
    line-height: 1.92;
  }

  .copy .lead {
    font-size: 18px;
  }

  .service-grid article {
    min-height: 0;
  }
}
