html,
body.services-page {
  width: 100%;
  min-height: 100%;
}

body.services-page {
  margin: 0;
  overflow: hidden;
  background: #071d18;
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
}

.services-showcase {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #071d18;
}

.services-backgrounds,
.services-background,
.services-background::after,
.services-shade {
  position: absolute;
  inset: 0;
}

.services-backgrounds {
  z-index: -4;
}

.services-background {
  margin: 0;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .85s ease, transform 1.3s cubic-bezier(.22, .61, .36, 1);
}

.services-background.is-active {
  opacity: 1;
  transform: scale(1);
}

.services-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.06) brightness(.78);
}

.services-background::after {
  content: "";
  background: linear-gradient(90deg, rgba(3, 27, 22, .88) 0%, rgba(3, 27, 22, .64) 34%, rgba(3, 27, 22, .26) 61%, rgba(3, 27, 22, .12) 100%);
}

.services-shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 17, 14, .26) 0%, transparent 26%, transparent 70%, rgba(2, 17, 14, .34) 100%),
    radial-gradient(circle at 78% 45%, transparent 0%, transparent 28%, rgba(2, 17, 14, .12) 74%);
}

.services-home {
  position: absolute;
  top: clamp(22px, 3vw, 38px);
  right: clamp(22px, 3vw, 42px);
  z-index: 7;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(3, 27, 22, .28);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.services-home svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-home:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .62);
  transform: translateY(-2px);
}

.services-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(590px, 1.22fr);
  gap: clamp(34px, 5vw, 88px);
  align-items: center;
  width: min(calc(100% - 72px), 1500px);
  height: 100%;
  margin-inline: auto;
}

.services-copy {
  align-self: center;
  min-width: 0;
  padding-bottom: 2vh;
}

.services-count {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .66);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.services-title {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 4.25vw, 5rem);
  line-height: .94;
  letter-spacing: -.05em;
  text-transform: uppercase;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .22);
}

.services-description {
  max-width: 500px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(.82rem, .94vw, .96rem);
  line-height: 1.7;
}

.services-interest {
  margin-top: 24px;
  min-width: 142px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 2px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.services-interest:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .78);
  transform: translateY(-2px);
}

.services-rail {
  position: absolute;
  left: max(10px, calc((100vw - min(calc(100vw - 72px), 1500px)) / 2 - 22px));
  top: 12vh;
  bottom: 12vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.services-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .18);
}

.services-rail-dot {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .12);
  transition: transform .35s ease, background-color .35s ease, border-color .35s ease;
}

.services-rail-dot.is-active {
  transform: scale(1.7);
  border-color: #fff;
  background: #fff;
}

.services-carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-width: 0;
  height: clamp(390px, 60vh, 620px);
  justify-self: end;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.services-carousel.is-dragging {
  cursor: grabbing;
}

.services-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.service-category-card {
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(190px, 14.5vw, 225px);
  height: clamp(270px, 34vh, 350px);
  overflow: hidden;
  border-radius: 3px;
  outline: none;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
  opacity: var(--card-opacity, 0);
  transform: translate3d(var(--card-x, 0px), -50%, 0) scale(var(--card-scale, .94));
  pointer-events: var(--card-pointer, none);
  transition:
    width .58s cubic-bezier(.22, .61, .36, 1),
    height .58s cubic-bezier(.22, .61, .36, 1),
    transform .72s cubic-bezier(.22, .61, .36, 1),
    opacity .42s ease,
    box-shadow .45s ease;
  cursor: pointer;
  will-change: width, height, transform, opacity;
}

.service-category-card.is-active {
  width: clamp(235px, 19vw, 292px);
  height: clamp(360px, 54vh, 540px);
  opacity: 1;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
}

.service-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, transparent 48%, rgba(0, 0, 0, .48) 100%);
}

.service-category-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.22, .61, .36, 1), filter .45s ease;
  filter: saturate(.82) brightness(.92);
}

.service-category-card.is-active img {
  transform: scale(1.025);
  filter: saturate(.94) brightness(.97);
}

.service-card-label {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}

.service-card-label span {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .76;
}

.service-card-label strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(.9rem, 1.08vw, 1.08rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.service-card-index {
  flex: 0 0 auto;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .11em;
  opacity: .74;
}

@media (hover: hover) and (pointer: fine) {
  .service-category-card:hover:not(.is-active) {
    filter: brightness(1.04);
  }
}

@media (max-width: 1100px) {
  .services-layout {
    grid-template-columns: minmax(250px, .68fr) minmax(500px, 1.32fr);
    width: min(calc(100% - 48px), 1200px);
    gap: 28px;
  }

  .services-title {
    font-size: clamp(2.6rem, 4.8vw, 4.25rem);
  }
}

@media (max-width: 760px) {
  body.services-page {
    overflow: hidden;
  }

  .services-showcase {
    min-height: 100svh;
  }

  .services-background::after {
    background: linear-gradient(180deg, rgba(3, 27, 22, .42) 0%, rgba(3, 27, 22, .24) 42%, rgba(3, 27, 22, .62) 100%);
  }

  .services-home {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .services-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 20px;
    width: calc(100% - 32px);
    padding: 76px 0 24px;
  }

  .services-copy {
    padding: 0 2px;
  }

  .services-count {
    margin-bottom: 9px;
    font-size: .56rem;
  }

  .services-title {
    max-width: 88vw;
    font-size: clamp(2.5rem, 12vw, 4.1rem);
    line-height: .92;
  }

  .services-description {
    max-width: 88vw;
    margin-top: 13px;
    font-size: .75rem;
    line-height: 1.52;
  }

  .services-interest {
    margin-top: 16px;
    padding: 11px 16px;
    font-size: .72rem;
  }

  .services-carousel {
    max-width: none;
    height: min(42vh, 390px);
    margin-right: -16px;
  }

  .service-category-card {
    width: min(38vw, 155px);
    height: min(54vw, 220px);
  }

  .service-category-card.is-active {
    width: min(52vw, 210px);
    height: min(38vh, 340px);
  }

  .services-rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-background,
  .service-category-card,
  .service-category-card img,
  .services-rail-dot,
  .services-home,
  .services-interest {
    transition-duration: .01ms !important;
  }
}