:root {
  --ink: #101010;
  --muted: #626262;
  --line: #dedbd6;
  --paper: #f5f2ed;
  --white: #ffffff;
  --dark: #030303;
  --steel: #758092;
  --steel-dark: #202838;
  --max: 1180px;
}

* {
  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;
  text-rendering: geometricPrecision;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 24px auto 0;
  width: calc(100% - 48px);
  max-width: 1180px;
  height: 72px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  color: rgba(8, 8, 8, 0.86);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
  pointer-events: none;
}

.site-header.on-light {
  color: rgba(8, 8, 8, 0.86);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
}

.brand-lockup,
nav,
nav a {
  pointer-events: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.10));
}

.brand-type {
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  color: #111;
}

.brand-type span {
  display: block;
  text-align: left;
}

.brand-type span:last-child {
  color: rgba(17, 17, 17, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(8, 8, 8, 0.44);
  transition: color 180ms ease;
}

.site-header.on-light nav {
  color: rgba(8, 8, 8, 0.44);
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: #080808;
}

.site-header.on-light nav a:hover {
  color: #080808;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: 0;
  background: var(--paper);
  color: #080808;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.02), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.04)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.015 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.hero-bg spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
}

.hero-content,
.hero-wordmark,
.hero-overlay,
.hero-gradient {
  pointer-events: none;
}

.hero-actions,
.hero-actions * {
  pointer-events: auto;
}

.hero-wordmark {
  position: absolute;
  left: clamp(18px, 6vw, 92px);
  right: clamp(18px, 6vw, 92px);
  bottom: clamp(12px, 2vh, 30px);
  z-index: 1;
  color: rgba(8, 8, 8, 0.03);
  font-size: clamp(88px, 18vw, 260px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  filter: blur(0);
  animation: wordmarkZoomOut 4s ease-out forwards;
}

@keyframes wordmarkZoomOut {
  0% {
    transform: translateY(40px) scale(1.18);
    opacity: 0.08;
    filter: blur(0);
  }

  100% {
    transform: translateY(-90px) scale(0.82);
    opacity: 0.03;
    filter: blur(1px);
  }
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: min(var(--max), calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(112px, 14vh, 164px) 0 clamp(40px, 6vh, 80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(520px, 100%);
  padding: 0;
  margin: 0;
  background: none;
  border-left: none;
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-logo {
  width: clamp(56px, 7vw, 96px);
  height: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 20px;
}

@keyframes heroFadeIn {
  to {
    opacity: 0.82;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(8, 8, 8, 0.48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  margin: 0 0 10px;
  color: #080808;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 560px;
  font-weight: 800;
}

.hero-lede {
  margin-bottom: clamp(24px, 3vw, 36px);
  color: rgba(8, 8, 8, 0.56);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

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

.hero-actions .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid rgba(8, 8, 8, 0.25);
  color: #080808;
  background: transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hero-actions .button.primary {
  background: #080808;
  border-color: #080808;
  color: var(--white);
}

.hero-actions .button.primary:hover {
  background: rgba(8, 8, 8, 0.85);
  border-color: rgba(8, 8, 8, 0.85);
  color: var(--white);
}

.hero-actions .button.ghost {
  background: transparent;
  border-color: rgba(8, 8, 8, 0.25);
  color: #080808;
}

.hero-actions .button.ghost:hover {
  background: rgba(8, 8, 8, 0.05);
  border-color: #080808;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button.primary:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: var(--white);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(74px, 11vw, 140px) 0;
}

.intro {
  border-bottom: 1px solid var(--line);
}

.statement {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(28px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.service {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

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

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
}

.service p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.lab-preview {
  border-bottom: 1px solid var(--line);
}

.lab-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.lab-heading h2 {
  width: min(760px, 100%);
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.lab-card {
  min-height: 310px;
  padding: clamp(24px, 4vw, 42px);
  background: #efede8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lab-card.featured {
  background: var(--dark);
  color: var(--white);
}

.lab-card span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-card h3 {
  margin: auto 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.lab-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.lab-card.featured p {
  color: rgba(255, 255, 255, 0.68);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  max-width: none;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.proof-strip div {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 44px);
  background: var(--dark);
}

.proof-strip strong {
  font-size: 22px;
}

.proof-strip span {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 16px;
}

.contact {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact h2 {
  max-width: 940px;
  margin-bottom: 36px;
}

.contact-link {
  width: fit-content;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.contact-link:hover {
  border-bottom-color: currentColor;
}

.social-link {
  width: fit-content;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 44px clamp(20px, 5vw, 72px);
  background: var(--dark);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-footer p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.56);
}

.footer-links {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 820px) {
  .site-header {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    margin: 16px auto 0;
    width: calc(100% - 24px);
    height: 60px;
    padding: 8px 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-type {
    height: 36px;
    font-size: 11px;
    gap: 1px;
  }

  nav {
    gap: clamp(10px, 2.5vw, 16px);
    font-size: 12px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero::before {
    background: radial-gradient(circle at center, rgba(117, 128, 146, 0.03), transparent 70%);
  }

  .hero-bg {
    inset: 0;
    width: 100%;
    height: 62svh;
  }

  .hero-bg spline-viewer {
    transform: scale(1.16) translateY(-3%);
    transform-origin: center top;
  }

  .hero-wordmark {
    left: 20px;
    right: 20px;
    bottom: 35svh;
    font-size: clamp(56px, 18vw, 120px);
    white-space: normal;
  }

  .hero-inner {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .hero-lede {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 24px;
  }

  .split-section,
  .lab-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .lab-heading {
    display: block;
  }

  .proof-strip div {
    min-height: 132px;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    margin-top: 24px;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .hero-bg {
    inset: 72px 0 80px;
    width: 100%;
    height: auto;
  }

  .hero-bg spline-viewer {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .hero-content {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
    animation: heroFadeInMobile 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  }
}

@keyframes heroFadeInMobile {
  to {
    opacity: 0.82;
    transform: scale(0.88) translateY(0);
  }
}

@media (max-width: 560px) {
  nav a[href="#approach"] {
    display: none;
  }

  .site-header {
    overflow-x: visible;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    flex: 1 1 100%;
  }

  .hero-logo {
    width: 52px;
    height: 52px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
