:root {
  --ink: #111214;
  --paper: #f8f7f2;
  --white: #fffdf7;
  --muted: #686863;
  --quiet: #8a877f;
  --line: #dedbd1;
  --wash: #fbfaf5;
  --blue: #1f6feb;
  --measure: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

p {
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  padding: 0 32px;
  background: rgba(248, 247, 242, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--measure), calc(100vw - 64px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

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

.brand img {
  width: 108px;
  height: auto;
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

nav a {
  position: relative;
  padding: 28px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.home-hero {
  min-height: 690px;
  padding: 0 32px;
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(248, 247, 242, .98) 0%, rgba(248, 247, 242, .92) 45%, rgba(248, 247, 242, .40) 72%, rgba(248, 247, 242, .08) 100%),
    url("images/b1p-hero-lab.webp");
  background-size: cover;
  background-position: center right 34%;
  border-bottom: 1px solid var(--line);
}

.home-hero__content {
  width: min(var(--measure), calc(100vw - 64px));
  margin: 0 auto;
}

.home-hero h1 {
  max-width: 620px;
  font-size: 64px;
  line-height: .98;
}

.home-hero h1 span {
  display: block;
}

.home-hero .lead {
  max-width: 590px;
}

.page-hero {
  width: min(var(--measure), calc(100vw - 64px));
  margin: 0 auto;
  padding: 112px 0 74px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 560;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  font-size: 56px;
  line-height: 1.04;
}

h2 {
  font-size: 30px;
  line-height: 1.16;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #27282b;
  font-size: 19px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 750;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.hero-meta {
  max-width: 760px;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-meta span {
  min-width: 0;
  padding: 16px 18px 16px 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
}

.band,
.section,
.content-grid,
.faq-list {
  width: min(var(--measure), calc(100vw - 64px));
  margin: 0 auto;
}

.band {
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  max-width: 650px;
  color: var(--muted);
}

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

.metrics div {
  min-height: 116px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.metrics div + div {
  border-left: 1px solid var(--line);
}

.metrics strong {
  font-size: 38px;
  font-weight: 560;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section__head h2 {
  max-width: 620px;
}

.section--split {
  display: grid;
  grid-template-columns: .74fr 1fr;
  gap: 44px;
  align-items: start;
}

.section--split p:not(.eyebrow) {
  color: var(--muted);
}

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

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

.tile {
  min-height: 210px;
  min-width: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--wash);
  border: 0;
  border-radius: 0;
}

.tile:hover,
.tile:focus-visible {
  background: var(--white);
}

.tile span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tile strong {
  font-size: 20px;
  line-height: 1.24;
  font-weight: 560;
}

.tile small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.content-grid {
  padding: 74px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.text-block {
  min-width: 0;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.text-block p {
  color: var(--muted);
}

.faq-list {
  padding: 24px 0 32px;
}

details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
}

details p {
  max-width: 760px;
  color: var(--muted);
}

.site-footer {
  width: min(var(--measure), calc(100vw - 64px));
  margin: 0 auto;
  padding: 70px 0 76px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 48px;
}

.footer-brand img {
  width: 120px;
}

.footer-brand p {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-links h2 {
  margin-bottom: 14px;
  font-size: 15px;
}

.footer-links a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.footer-links a:hover {
  color: var(--blue);
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .header-inner {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  nav {
    justify-content: flex-start;
  }

  nav a {
    padding: 6px 0;
  }

  nav a::after {
    bottom: 0;
  }

  h1 {
    font-size: 42px;
  }

  .band,
  .section--split,
  .section__head,
  .content-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .metrics,
  .tiles,
  .tiles--compact,
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 14px;
  }

  .header-inner {
    min-height: 0;
    padding: 14px 0 12px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    display: none;
  }

  nav {
    width: 100%;
    gap: 8px 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 12px;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
  }

  nav a {
    white-space: nowrap;
  }

  main {
    overflow-x: hidden;
  }

  .home-hero {
    min-height: 620px;
    padding: 0 14px;
    overflow: hidden;
    background-image:
      linear-gradient(90deg, rgba(248, 247, 242, .98) 0%, rgba(248, 247, 242, .94) 72%, rgba(248, 247, 242, .64) 100%),
      url("images/b1p-hero-lab.webp");
    background-position: center right 34%;
  }

  .home-hero__content {
    width: 100%;
  }

  .home-hero h1 {
    max-width: 360px;
    font-size: 36px;
    line-height: 1.08;
  }

  .home-hero .lead {
    max-width: 340px;
    font-size: 16px;
  }

  .page-hero,
  .band,
  .section,
  .content-grid,
  .faq-list,
  .site-footer {
    width: min(calc(100% - 28px), 360px);
    max-width: 360px;
    min-width: 0;
    margin-left: 14px;
    margin-right: auto;
  }

  h1 {
    width: 100%;
    max-width: 360px;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  h2 {
    font-size: 23px;
  }

  .lead {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .hero-meta span {
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .page-hero h1,
  .page-hero .lead,
  .text-block p,
  .tile strong,
  .tile small {
    display: block;
    width: 340px !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .metrics,
  .tiles,
  .tiles--compact,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .metrics div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tile {
    min-height: 150px;
  }
}
