:root {
  --black: #0b0d10;
  --cream: #faf8f2;
  --yellow: #ffc41a;
  --blue: #4ab9f4;
  --turq: #10bbb5;
  --muted: #676b73;
  --line: #e6e4dc;
  --white: #ffffff;
  --header-h: 76px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  transform: translateY(calc(-100% - 24px));
}

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

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8f97;
  margin-bottom: 14px;
}

.lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 1.15rem 0 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 22px 13px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #1a1d22;
}

.btn:focus-visible,
.nav a:focus-visible,
.logo:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-top: 1.7px solid currentColor;
  transform: rotate(45deg);
  margin-top: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.header-inner .logo {
  justify-self: start;
}

.btn-header {
  justify-self: end;
}

.logo img {
  width: 148px;
  height: auto;
}

.nav {
  justify-self: end;
}

.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #3d4148;
  padding: 6px 0;
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--black);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--black);
}

.btn-header {
  padding: 11px 18px 11px 20px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.6px;
  background: var(--black);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 24px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 28px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: center;
  width: min(100% - 40px, var(--container));
}

.hero-visual {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-cta-pin {
  display: none;
}

.hero-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 97%, transparent 100%);
}

.side-caption {
  position: absolute;
  right: max(20px, calc((100% - var(--container)) / 2));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid #cfd2d6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8f97;
}

.side-caption span + span {
  margin-top: 8px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--cream);
}

.section[id],
.cta[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.section-intro p {
  color: var(--muted);
  max-width: 38rem;
}

.services {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 14px;
}

.services li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: subgrid;
  grid-row: span 2;
  column-gap: 12px;
  align-items: center;
}

.services img {
  display: block;
  width: 36px;
  height: 36px;
}

.services p {
  grid-column: 1 / -1;
}

.services h3,
.process h3,
.why h3 {
  margin-bottom: 10px;
}

.services p,
.process p,
.why p {
  color: var(--muted);
  font-size: 0.98rem;
}

.process {
  list-style: none;
  padding: 28px 0 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 14px;
}

.process li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: subgrid;
  grid-row: span 2;
  column-gap: 12px;
  align-items: center;
}

.process img {
  display: block;
  width: 36px;
  height: 36px;
}

.process h3 {
  margin-bottom: 0;
}

.process p {
  grid-column: 1 / -1;
}

.why {
  list-style: none;
  padding: 28px 0 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

#why-heading {
  white-space: nowrap;
}

.why li {
  padding: 0 24px 8px 0;
}

.why-num {
  display: block;
  padding-top: 14px;
  margin-bottom: 14px;
  border-top: 2px solid var(--turq);
  color: #8a8f97;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.why-num[data-color="yellow"] { border-top-color: var(--yellow); }
.why-num[data-color="blue"] { border-top-color: var(--blue); }
.why-num[data-color="turq"] { border-top-color: var(--turq); }

.cta {
  position: relative;
  overflow-x: clip;
  display: flex;
  align-items: center;
  padding: 96px 0;
  background: var(--cream);
  min-height: 520px;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(220px, 0.7fr);
  align-items: center;
}

.cta-copy {
  position: relative;
  z-index: 2;
}

.cta-copy h2 {
  white-space: nowrap;
}

.cta-copy .eyebrow {
  margin-bottom: 12px;
}

.cta-description {
  max-width: none;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.cta-copy .btn {
  margin-top: 22px;
}

.cta-visual {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 110%;
  width: max-content;
  line-height: 0;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.cta-wave {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.side-caption-end {
  position: relative;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 1;
  justify-self: end;
  align-self: center;
  transform: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner .logo img {
  width: 118px;
}

@media (max-width: 980px) {
  .hero-grid,
  .cta-grid,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 0;
  }

  .hero-grid {
    position: relative;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-cta-flow {
    display: none;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    min-height: 0;
    padding-right: 0;
    margin-top: 12px;
    z-index: 1;
    pointer-events: none;
  }

  .hero-cta-pin {
    display: inline-flex;
    position: absolute;
    left: 0;
    top: 53.75%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: auto;
  }

  .cta-copy h2,
  #why-heading {
    white-space: normal;
  }

  .cta-description {
    white-space: normal;
  }

  .hero-art {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    width: min(118%, 520px);
    height: auto;
    margin: 0 auto;
    transform: translateX(-4%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }

  .side-caption,
  .side-caption-end {
    display: none;
  }

  .why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 36px;
    margin-top: 0;
  }

  .services {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .services li {
    grid-template-rows: none;
    grid-row: auto;
    row-gap: 14px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
    margin-top: 0;
  }

  .process li {
    grid-template-rows: none;
    grid-row: auto;
    row-gap: 14px;
  }

  .section-intro {
    gap: 16px;
    margin-bottom: 40px;
  }
}

@media (max-width: 820px) {
  body.nav-open {
    overflow: hidden;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: block;
    z-index: 61;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle span {
    pointer-events: none;
  }

  .btn-header {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    z-index: 80;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(11, 13, 16, 0.06);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    transition: max-height 0.28s var(--ease), opacity 0.2s ease, visibility 0.28s;
  }

  .nav.is-open {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
  }

  .nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 72px 0;
  }

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

  .cta {
    padding: 72px 0;
  }

  .hero-copy .lead {
    margin-bottom: 0;
  }

  .hero-art {
    width: 136%;
    max-width: none;
    transform: translateX(-6%);
  }
}

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

  .btn,
  .nav,
  .nav-toggle span {
    transition: none;
  }
}
