:root {
  --services-navy: #1b285c;
  --services-ink: #000026;
  --services-blue: #3ba3d0;
  --services-action: #1743da;
  --services-grey: #f5f6f7;
  --services-line: rgba(0, 0, 38, 0.16);
}

.services-page {
  background-color: #f5f6f7;
  color: var(--services-ink);
  will-change: background-color;
}

.services-intro,
.services-directory {
  background: transparent;
}

.services-shell {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .services-shell {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .services-shell {
    padding-inline: 32px;
  }
}

.services-hero {
  position: relative;
  min-height: min(820px, calc(100svh - 112px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--services-navy);
  color: #ffffff;
}

.services-hero::before,
.services-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.services-hero::before {
  width: min(62vw, 850px);
  aspect-ratio: 1;
  right: -18vw;
  top: -34%;
  border: 1px solid rgba(110, 193, 228, 0.22);
}

.services-hero::after {
  width: min(36vw, 520px);
  aspect-ratio: 1;
  right: 5vw;
  top: 8%;
  background: radial-gradient(circle, rgba(59, 163, 208, 0.20), rgba(59, 163, 208, 0));
}

.services-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(90px, 12vw, 170px) clamp(64px, 8vw, 110px);
}

.services-kicker {
  margin: 0 0 24px;
  color: var(--services-blue);
  font-size: 0.84rem;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.services-hero h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(3.75rem, 8.2vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 300;
}

.services-hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-top: clamp(48px, 8vw, 100px);
}

.services-hero__bottom p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  line-height: 1.55;
}

.services-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--services-action);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.services-primary-button:hover {
  transform: translateY(-2px);
  background: #1139c3;
}

.services-proof {
  background: #ffffff;
  border-bottom: 1px solid var(--services-line);
}

.services-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.services-proof__grid > div {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px clamp(18px, 3vw, 42px);
  border-right: 1px solid var(--services-line);
}

.services-proof__grid > div:first-child { padding-left: 0; }
.services-proof__grid > div:last-child { border-right: 0; }

.services-proof strong {
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1;
  font-weight: 400;
}

.services-proof span {
  color: rgba(0,0,38,0.60);
  font-size: 0.95rem;
}

.services-intro {
  padding: clamp(80px, 11vw, 160px) 0 clamp(60px, 8vw, 110px);
}

.services-intro__grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.services-intro p {
  max-width: 760px;
  margin: 0;
  color: rgba(0, 0, 38, 0.66);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.services-intro h1,
.services-process h2,
.services-cta h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 300;
}

.services-intro p {
  margin: 12px 0 0;
  color: rgba(0,0,38,0.66);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.services-directory {
  padding-bottom: clamp(90px, 12vw, 170px);
}

.services-group {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 2fr);
  gap: clamp(44px, 7vw, 110px);
  padding: clamp(56px, 8vw, 100px) 0;
  border-top: 1px solid var(--services-line);
}

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

.services-group__heading {
  align-self: start;
  position: sticky;
  top: 140px;
}

.services-group__heading > span {
  color: var(--services-blue);
  font-size: 0.84rem;
  letter-spacing: 0.13em;
}

.services-group__heading h2 {
  max-width: 420px;
  margin: 22px 0 22px;
  font-size: clamp(2rem, 3.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 300;
}

.services-group__heading p {
  max-width: 410px;
  margin: 0;
  color: rgba(0,0,38,0.62);
  line-height: 1.65;
}

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

.services-list__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 34px;
  gap: 24px;
  align-items: start;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--services-line);
  color: var(--services-ink);
  text-decoration: none;
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease, padding 220ms ease;
}

.services-list__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-list__item:hover {
  padding-left: 16px;
}

.services-list__number {
  color: var(--services-blue);
  font-size: 0.85rem;
}

.services-list__copy {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.services-list__eyebrow {
  color: rgba(0,0,38,0.50);
  font-size: 0.77rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.services-list__copy strong {
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 300;
}

.services-list__copy > span:last-child {
  max-width: 690px;
  color: rgba(0,0,38,0.65);
  line-height: 1.6;
}

.services-list__arrow {
  justify-self: end;
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.services-list__item:hover .services-list__arrow {
  transform: translate(4px, -4px);
}

.services-process {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--services-grey);
}

.services-process__intro {
  max-width: 980px;
  margin-bottom: clamp(60px, 9vw, 120px);
}

.services-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--services-line);
  border-bottom: 1px solid var(--services-line);
}

.services-process__steps article {
  min-height: 330px;
  padding: 32px clamp(18px, 3vw, 38px);
  border-right: 1px solid var(--services-line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.services-process__steps article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-process__steps article:last-child { border-right: 0; }
.services-process__steps span { color: var(--services-blue); font-size: 0.82rem; }
.services-process__steps h3 { margin: 90px 0 18px; font-size: 2rem; font-weight: 300; letter-spacing: -0.035em; }
.services-process__steps p { margin: 0; color: rgba(0,0,38,0.62); line-height: 1.6; }

.services-cta {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--services-navy);
  color: #ffffff;
}

.services-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: end;
}

.services-cta__inner > div:last-child p {
  margin: 0 0 32px;
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  line-height: 1.65;
}

.services-primary-button--light {
  background: #ffffff;
  color: var(--services-action);
}

.services-primary-button--light:hover {
  background: #eef3ff;
}

@media (max-width: 900px) {
  .services-hero { min-height: 720px; }
  .services-hero__bottom,
  .services-intro__grid,
  .services-cta__inner { grid-template-columns: 1fr; }
  .services-hero__bottom { align-items: start; }
  .services-hero__bottom .services-primary-button { justify-self: start; }
  .services-proof__grid { grid-template-columns: repeat(2, 1fr); }
  .services-proof__grid > div:nth-child(2) { border-right: 0; }
  .services-proof__grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--services-line); }
  .services-proof__grid > div:nth-child(3) { padding-left: 0; }
  .services-group { grid-template-columns: 1fr; }
  .services-group__heading { position: static; }
  .services-process__steps { grid-template-columns: repeat(2, 1fr); }
  .services-process__steps article:nth-child(2) { border-right: 0; }
  .services-process__steps article:nth-child(-n+2) { border-bottom: 1px solid var(--services-line); }
}

@media (max-width: 600px) {
  .services-hero { min-height: 650px; }
  .services-hero__inner { padding-top: 76px; }
  .services-hero h1 { font-size: clamp(3.25rem, 16vw, 5.2rem); }
  .services-proof__grid { grid-template-columns: 1fr; }
  .services-proof__grid > div,
  .services-proof__grid > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--services-line); padding-left: 0; min-height: 112px; }
  .services-proof__grid > div:last-child { border-bottom: 0; }
  .services-list__item { grid-template-columns: 38px minmax(0,1fr) 24px; gap: 12px; }
  .services-list__item:hover { padding-left: 0; }
  .services-list__copy strong { font-size: clamp(1.7rem, 9vw, 2.6rem); }
  .services-process__steps { grid-template-columns: 1fr; }
  .services-process__steps article,
  .services-process__steps article:nth-child(2) { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--services-line); }
  .services-process__steps article:last-child { border-bottom: 0; }
  .services-process__steps h3 { margin-top: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .services-list__item,
  .services-process__steps article {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .services-list__item:hover { padding-left: 0; }
}

.services-group {
  border-top: 0;
}

.services-group:last-child {
  border-bottom: 0;
}

.services-process__steps {
  border-top: 0;
  border-bottom: 0;
}

#scrollHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

#scrollHeader.scroll-header-visible {
  transform: translateY(0);
}

#scrollHeader.scroll-header-no-transition {
  transition: none;
}