/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

body {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Not also clipping overflow-x here (html already does, above) — an
     overflow value other than visible on this ancestor makes body the
     containing block for every position:sticky element on the page, and
     since body itself never scrolls, that silently breaks sticky sitewide. */
}

section {
  position: relative;
}

/* .site-header is fixed with no reserved layout space (sections start at
   the very top intentionally, e.g. the hero bleeds under it) — but that
   same overlap means jumping straight to an anchor's top edge would land
   it right under the header. scroll-margin-top only affects fragment/
   scrollIntoView landing position, not normal in-page scroll, so it can't
   reintroduce the sticky/pin issues that come from actual layout offsets. */
section[id], #main {
  scroll-margin-top: 104px;
}

main {
  position: relative;
  z-index: 1;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: var(--lh-normal);
  letter-spacing: -0.01em;
  color: var(--ink);
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-5);
}
p {
  margin-bottom: var(--sp-5);
}
p:only-of-type {
  margin-bottom: 0;
}

.lead {
  font-size: var(--fs-body-thulo);
  line-height: var(--lh-normal);
}

/* Prevent grid/flex children with long text from blowing out the layout
   width (default min-width:auto lets content force tracks wider than
   their fr/% share). */
.layers__copy > *,
.logos__grid > *,
.pricing__grid > *,
.team__grid > *,
.research__grid > *,
.partner__copy > *,
.not-list__diagram > * { min-width: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg { flex: none; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-dark {
  background: var(--btn-dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--btn-dark-hover); transform: translateY(-1px); }

.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-pill);
}
.btn-light:hover { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(33, 30, 33, 0.18);
  font-weight: 600;
}
.btn-outline:hover {
  background: rgba(33, 30, 33, 0.06);
  transform: translateY(-1px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.btn-text:hover {
  color: var(--accent-blue);
}
.btn-text svg {
  flex: none;
  transition: transform 0.2s ease;
}
.btn-text:hover svg {
  transform: translateX(3px);
}

.btn-link {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-link svg {
  transition: transform 0.2s ease;
}
.btn-link:hover svg {
  transform: translateX(3px);
}

/* ============================================
   Focus visibility (a11y)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  z-index: 999;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* Visually hidden but present for screen readers/crawlers — for cases like
   the hero h1 where the visible heading is a styled logo image, so real
   text still exists in the accessible tree/DOM instead of only an alt. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
