:root {
  --ink: #0f1720;
  --muted: #64707d;
  --paper: #f6f8fa;
  --white: #ffffff;
  --line: #dbe2e8;
  --red: #18c7c9;
  --teal: #5de7e2;
  --blue: #4aa8ff;
  --graphite: #071b2b;
  --shadow: 0 24px 70px rgba(15, 23, 32, 0.16);
}

* {
  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", sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(15, 23, 32, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: auto;
  height: 42px;
  border: 1px solid currentColor;
  font-weight: 800;
  padding-inline: 14px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid currentColor;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 14, 22, 0.88), rgba(7, 14, 22, 0.52) 44%, rgba(7, 14, 22, 0.1)),
    linear-gradient(0deg, rgba(15, 23, 32, 0.52), transparent 46%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

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

.hero .eyebrow {
  color: #ffffff;
}

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

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 650px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: inherit;
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.06);
}

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

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  background: var(--white);
}

.intro-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

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

.stats div {
  min-height: 138px;
  padding: 24px;
  background: var(--white);
}

.stats strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 6vw, 88px);
  background: #eef3f6;
}

.split p {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.05rem;
}

.research-grid,
.service-list,
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.research-grid article,
.service-list article,
.office-grid article {
  min-height: 190px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 48px rgba(15, 23, 32, 0.05);
}

.research-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 900;
}

.research-grid p,
.service-list p,
.office-grid p,
.lab-panel p,
.contact p {
  margin: 0;
  color: var(--muted);
}

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

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

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

.service-list article {
  border-top: 4px solid var(--red);
}

.labs {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(24, 33, 43, 0.96), rgba(21, 57, 71, 0.94)),
    var(--graphite);
}

.labs .eyebrow {
  color: #68e1d9;
}

.lab-panel p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.lab-topics {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 12px;
}

.lab-topics span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.offices {
  background: #f7f9fb;
}

.office-grid article {
  min-height: 150px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(54px, 7vw, 86px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .intro,
  .split,
  .labs,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .contact {
    align-items: start;
  }
}

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

  .brand strong {
    max-width: 210px;
    font-size: 0.92rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    border: 0;
  }

  .hero {
    min-height: 86vh;
    padding-top: 108px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 14, 22, 0.9), rgba(7, 14, 22, 0.6));
  }

  .stats,
  .research-grid,
  .service-list,
  .office-grid {
    grid-template-columns: 1fr;
  }

  .stats div,
  .research-grid article,
  .service-list article,
  .office-grid article {
    min-height: auto;
  }
}

.language-switcher {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
}

.language-switcher [data-lang] {
  width: 88px;
  min-width: 88px;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.language-switcher [data-lang].is-active {
  color: var(--ink);
  background: var(--white);
}
