:root {
  --paper: #eaeee8;
  --paper-raised: #dfe3de;
  --ink: #2a3034;
  --muted: #59626a;
  --line: #c4cbc2;
  --teal: #2c7a76;
  --teal-bright: #389b95;
  --teal-light: #6fc7bf;
  --rust: #a0543c;
  --gorse: #a87f33;
  --obsidian: #181b1d;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(56 155 149 / 22%);
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.14;
}

.shell {
  width: min(1100px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: none;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(234 238 232 / 88%);
  backdrop-filter: saturate(1.1) blur(7px);
}

.masthead__inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--teal);
  font: 600 12.5px/1 var(--mono);
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

nav .nav-contact {
  padding-bottom: 3px;
  border-bottom: 1.5px solid rgb(56 155 149 / 40%);
  color: var(--teal);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 20px;
}

.contours {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 60px;
  align-items: start;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
  font: 600 12.5px/1.4 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 20px;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(46px, 6.4vw, 68px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1;
}

.hero__rule {
  width: 76px;
  height: 3px;
  margin: 24px 0 28px;
  border-radius: 2px;
  background: var(--teal);
}

.hero__lede {
  max-width: 30ch;
  margin-bottom: 20px;
  font: 400 clamp(21px, 2.5vw, 27px)/1.4 var(--serif);
}

.hero__lede em {
  color: var(--teal);
}

.hero__body {
  max-width: 55ch;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 13px;
  border: 1px solid rgb(56 155 149 / 22%);
  border-radius: 999px;
  background: rgb(56 155 149 / 10%);
  color: var(--teal);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
}

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

.button {
  display: inline-block;
  padding: 12px 23px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 180ms ease, background 160ms ease;
}

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

.button:active {
  transform: none;
}

.button--primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 1px 2px rgb(44 122 118 / 18%);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--teal-bright);
  box-shadow: 0 8px 20px -8px rgb(44 122 118 / 55%);
}

.button--outline {
  border-color: var(--teal);
  color: var(--teal);
}

.button--outline:hover,
.button--outline:focus-visible {
  background: rgb(56 155 149 / 10%);
}

.button--quiet {
  border-color: var(--line);
  color: var(--muted);
}

.hero__poster {
  margin: 19px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: 0 18px 48px -30px rgb(42 48 52 / 45%);
}

.hero__poster img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__poster figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 11.5px/1.4 var(--mono);
  letter-spacing: 0.03em;
}

.poster-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
}

.client-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 78px;
  padding: 24px 0 10px;
  border-top: 1px solid var(--line);
  color: #6c757b;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-align: center;
}

.lab {
  padding: 92px 0 78px;
  border-top: 3px solid var(--teal);
  background: var(--obsidian);
  color: #eef1ed;
}

.eyebrow--dark {
  color: var(--teal-light);
}

.lab__intro {
  max-width: 790px;
}

.lab__intro h2 {
  max-width: 24ch;
}

.lab__intro p:not(.eyebrow) {
  max-width: 68ch;
  margin-top: 18px;
  color: #9aa3a8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 40px 0 0;
  border: 1px solid #333a3f;
  border-radius: 10px;
  background: #333a3f;
}

.stats div {
  padding: 24px 22px;
  background: #1f2326;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.stats div:hover {
  background: #262b2e;
  box-shadow: inset 0 2px 0 var(--teal-light);
}

.stats dt {
  color: var(--teal-light);
  font: 600 28px/1 var(--mono);
}

.stats dd {
  margin: 8px 0 0;
  color: #9aa3a8;
  font-size: 13px;
  line-height: 1.45;
}

.pipeline {
  margin-top: 44px;
}

.pipeline img {
  width: 100%;
}

.pipeline p {
  margin: 24px 0 0;
  color: #cd7f63;
  font: 12.5px/1.5 var(--mono);
}

.track,
.services,
.contact {
  padding: 92px 0;
}

.track__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px 60px;
  margin-top: 48px;
}

.track article {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.track__number {
  color: var(--rust);
  font: 400 40px/1 var(--serif);
}

.track h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.track article p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
}

.track small {
  color: var(--teal);
  font: 11.5px/1.5 var(--mono);
  letter-spacing: 0.03em;
}

.services {
  border-block: 1px solid var(--line);
  background: var(--paper-raised);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.services article {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 11px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(42 48 52 / 3%);
  transition: transform 200ms cubic-bezier(.4, 0, .2, 1), box-shadow 200ms ease, border-color 200ms ease;
}

.services article:hover {
  transform: translateY(-3px);
  border-color: rgb(56 155 149 / 40%);
  box-shadow: 0 16px 34px -20px rgb(42 48 52 / 32%);
}

.services article.services__agentic {
  border-top-color: var(--rust);
}

.services h3 {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.services article p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact__inner {
  position: relative;
}

.contact h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.contact h2 + p {
  margin-top: 18px;
  color: var(--muted);
}

.actions--center {
  justify-content: center;
  margin-top: 36px;
}

footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: #6c757b;
  font-size: 13.5px;
}

.footer__inner,
.footer__brand {
  display: flex;
  align-items: center;
}

.footer__inner {
  justify-content: space-between;
  gap: 12px;
}

.footer__brand {
  gap: 9px;
}

.footer__note {
  color: var(--gorse);
  font: 11.5px/1.4 var(--mono);
  letter-spacing: 0.04em;
}

[data-reveal].is-reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.4, 0, .2, 1), transform 700ms cubic-bezier(.4, 0, .2, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 40px, 680px);
  }

  .masthead__inner {
    min-height: 60px;
  }

  nav {
    gap: 16px;
  }

  nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero__grid,
  .track__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 42px;
  }

  .hero__poster {
    max-width: 500px;
    margin-top: 0;
  }

  .client-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 12px;
    margin-top: 56px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .track__grid {
    gap: 38px;
  }

  .services__grid {
    gap: 16px;
  }

  .track,
  .services,
  .contact,
  .lab {
    padding-block: 68px;
  }

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

@media (max-width: 500px) {
  body {
    font-size: 16px;
  }

  .wordmark {
    font-size: 10px;
    letter-spacing: 0.17em;
  }

  .actions .button {
    width: 100%;
    text-align: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .client-wall {
    grid-template-columns: 1fr 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
