.home-services {
  --services-bg: #fff;
  --services-text: #191919;
  --services-muted: #666;
  --services-line: #00000026;
  position: relative;
  padding: clamp(48px, 5vw, 80px) clamp(24px, 8vw, 128px) clamp(64px, 6vw, 96px);
  background: var(--services-bg);
  color: var(--services-text);
}
:root[data-theme="dark"] .home-services {
  --services-bg: #000;
  --services-text: #f1f0eb;
  --services-muted: #a5a5a0;
  --services-line: #ffffff26;
}
.home-services-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 0 20px;
}
.home-services-heading h2 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  margin: 0px;
}
.home-services-kicker {
  display: block;
  font-size: clamp(12px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  margin-bottom: 9px;
}
.home-services-dot {
  color: var(--orange);
}
.home-services-description {
  max-width: 390px;
  justify-self: start;
  margin: 0px 0px 31px;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--services-muted);
  letter-spacing: -0.02em;
}
.home-services-layout {
  display: grid;
  grid-template-columns: minmax(0px, 0.85fr) minmax(0px, 1.35fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.service-showcase {
  position: sticky;
  top: clamp(24px, 5svh, 56px);
  min-width: 0px;
}
.service-showcase-art {
  position: relative;
  aspect-ratio: 1 / 1.12;
  max-height: clamp(120px, calc(100svh - 380px), 520px);
  overflow: hidden;
  background: rgb(18, 18, 18);
  color: rgb(255, 255, 255);
  clip-path: polygon(
    0px 0px,
    calc(100% - 22px) 0px,
    100% 22px,
    100% 100%,
    22px 100%,
    0px calc(100% - 22px)
  );
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-showcase-art::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.208);
  pointer-events: none;
}
.service-art-layer {
  position: absolute;
  inset: -3%;
  filter: blur(10px);
  opacity: 0;
  transform: scale(1.13);
  transition:
    opacity 0.65s,
    filter 0.8s,
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-art-layer[data-active="true"] {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}
.service-art-shade {
  position: absolute;
  inset: 0px;
  background: linear-gradient(
    rgba(0, 0, 0, 0.333),
    transparent 30%,
    rgba(0, 0, 0, 0.267) 55%,
    rgba(0, 0, 0, 0.867)
  );
}
.service-art-label {
  position: absolute;
  top: 28px;
  left: 28px;
  font:
    10px "JetBrains Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.service-art-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-art-caption > [data-service-count] {
  font-size: clamp(64px, 8vw, 116px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.085em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.service-art-caption strong {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.service-art-steps {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 6px;
}
.service-art-steps i {
  height: 2px;
  flex: 1 1 0%;
  background: rgba(255, 255, 255, 0.27);
  transition: background 0.35s;
}
.service-art-steps i[data-active="true"] {
  background: var(--orange);
}
.service-features {
  min-width: 0px;
  border-top: 1px solid var(--services-line);
}
.service-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0px, 1fr) 42px;
  align-items: start;
  gap: 20px;
  padding: 32px 0px;
  border-bottom: 1px solid var(--services-line);
  isolation: isolate;
}
@media (min-width: 801px) {
  .service-feature {
    min-height: clamp(240px, 35svh, 360px);
    align-content: center;
  }
}
.service-feature::before {
  content: "";
  position: absolute;
  inset: 0px -14px;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--orange) 8%, transparent),
    transparent 70%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s;
}
.service-feature[data-active="true"]::before {
  opacity: 1;
}
.service-feature-copy {
  min-width: 0px;
}
.service-feature h3 {
  max-width: 480px;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.045em;
  margin: 0px;
  transition:
    color 0.3s,
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-feature-copy > p {
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  color: var(--services-muted);
  max-width: 440px;
  margin: 13px 0px 17px;
}
.service-feature-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--services-line);
  border-radius: 50%;
  font-size: 23px;
  color: var(--services-text);
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s,
    transform 0.4s;
}
.service-feature[data-active="true"] h3 {
  color: var(--orange);
}
.service-feature[data-active="true"] .service-feature-arrow {
  background: var(--orange);
  border-color: var(--orange);
  color: rgb(255, 255, 255);
  transform: rotate(45deg);
}
.service-feature-thumb {
  display: none;
}
.service-feature:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 6px;
}
.home-services-heading .letter-reveal-ready .reveal-letter {
  transform: translateY(0.65em);
  filter: none;
}
.home-services-heading .letter-reveal-ready.is-revealed .reveal-letter {
  animation-name: service-letter-in;
  animation-duration: 0.8s;
  animation-delay: calc(var(--letter-index) * 0.038s);
}
@keyframes service-letter-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.home-services.motion-ready .home-services-description,
.home-services.motion-ready .service-showcase-art,
.home-services.motion-ready .home-services-bottom,
.home-services.motion-ready .service-feature {
  opacity: 0;
  translate: 0 36px;
  transition:
    opacity 0.8s,
    translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.home-services.motion-ready .home-services-description {
  translate: 0 22px;
  transition-delay: 0.18s;
}
.home-services.motion-ready .service-showcase-art {
  transition:
    opacity 0.8s,
    translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.home-services.motion-ready
  .home-services-heading.is-visible
  + .home-services-description,
.home-services.motion-ready .service-showcase-art.is-visible,
.home-services.motion-ready .home-services-bottom.is-visible,
.home-services.motion-ready .service-feature.is-visible {
  opacity: 1;
  translate: 0 0;
}
.home-services.motion-ready .service-feature-copy {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.7s 0.12s,
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s;
}
.home-services.motion-ready .service-feature.is-visible .service-feature-copy {
  opacity: 1;
  translate: 0 0;
}
.home-services-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 32px;
  font-size: 13px;
}
.home-services-bottom p {
  margin: 0px;
  color: var(--services-muted);
}
.home-services-bottom a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  font-weight: 600;
}
.home-services-bottom a > span {
  font-size: 22px;
  color: var(--orange);
  transition: transform 0.25s;
}
.home-services-bottom a:hover > span {
  transform: translate(3px, -3px);
}
@media (hover: hover) {
  .service-feature:hover h3 {
    transform: translateX(4px);
  }
}
@media (min-width: 1800px) {
  .home-services-layout {
    grid-template-columns: minmax(0px, 0.75fr) minmax(0px, 1.25fr);
  }
  .service-showcase-art {
    max-height: 650px;
  }
  .service-feature {
    padding-block: 40px;
  }
  .service-feature h3 {
    font-size: 34px;
    max-width: 600px;
  }
  .service-feature-copy > p {
    font-size: 16px;
    max-width: 550px;
  }
}
@media (max-width: 1000px) {
  .home-services {
    padding-inline: 100px 40px;
  }
  .home-services-layout {
    gap: 32px;
    grid-template-columns: minmax(0px, 0.7fr) minmax(0px, 1fr);
  }
  .service-feature {
    grid-template-columns: minmax(0px, 1fr);
    gap: 12px;
  }
  .service-feature-arrow {
    display: none;
  }
  .service-feature h3 {
    font-size: 23px;
  }
  .service-art-caption {
    left: 20px;
    right: 20px;
  }
  .service-art-caption strong {
    font-size: 26px;
  }
  .service-feature-copy > p {
    font-size: 13px;
  }
}
@media (max-width: 800px) {
  .home-services {
    --services-mobile-gutter: 24px;
    padding: 48px 24px 64px;
  }
  .home-services-heading {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 3;
    background: var(--services-bg);
    padding: 16px var(--services-mobile-gutter);
    grid-template-columns: 1fr;
    gap: 24px;
    margin: -16px calc(-1 * var(--services-mobile-gutter)) 8px;
  }
  .home-services-description {
    justify-self: start;
    max-width: 400px;
    padding-right: 54px;
    font-size: 14px;
    margin-bottom: 35px;
  }
  .home-services-layout {
    display: block;
  }
  .service-showcase {
    display: contents;
  }
  .service-showcase-art {
    display: none;
  }
  .service-feature {
    grid-template-columns: minmax(0px, 1fr) 58px;
    gap: 14px 24px;
    padding: 26px 0px 28px;
  }
  .service-feature-copy {
    grid-area: 1 / 1;
  }
  .service-feature h3 {
    font-size: 24px;
    max-width: 480px;
  }
  .service-feature-thumb {
    display: block;
    width: 58px;
    height: 72px;
    grid-area: 1 / 2;
    clip-path: polygon(
      0px 0px,
      calc(100% - 10px) 0px,
      100% 10px,
      100% 100%,
      0px 100%
    );
    opacity: 0.65;
    transform: translateY(2px);
    transition:
      opacity 0.4s,
      transform 0.4s;
  }
  .service-feature[data-active="true"] .service-feature-thumb {
    opacity: 1;
    transform: translateY(-3px);
  }
  .home-services-bottom {
    justify-content: flex-start;
    gap: 4px 20px;
    padding-right: 64px;
  }
  .home-services-bottom p {
    width: 100%;
  }
}
@media (max-width: 400px) {
  .home-services {
    --services-mobile-gutter: 20px;
    padding-inline: 20px;
  }
  .service-feature {
    grid-template-columns: minmax(0px, 1fr) 54px;
    gap: 12px 20px;
  }
  .service-feature-thumb {
    width: 54px;
    height: 66px;
  }
  .service-feature h3 {
    font-size: 21px;
  }
  .service-feature-copy > p {
    font-size: 13px;
  }
  .home-services-heading h2 {
    font-size: 42px;
  }
  .home-services-description {
    padding-right: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-services-heading .letter-reveal-ready .reveal-letter,
  .home-services-heading .letter-reveal-ready.is-revealed .reveal-letter {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .home-services.motion-ready .home-services-description,
  .home-services.motion-ready .service-showcase-art,
  .home-services.motion-ready .home-services-bottom,
  .home-services.motion-ready .service-feature-copy,
  .home-services.motion-ready .service-feature {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .service-art-layer,
  .service-feature h3,
  .service-feature-arrow,
  .service-feature-thumb,
  .service-feature::before,
  .service-art-steps i,
  .home-services-bottom a > span {
    transition: none;
  }
  .service-showcase-art,
  .service-art-layer,
  .service-feature:hover h3,
  .service-feature[data-active="true"] .service-feature-arrow,
  .service-feature[data-active="true"] .service-feature-thumb,
  .home-services-bottom a:hover > span {
    transform: none;
    transition: none;
  }
  .service-art-layer {
    filter: none;
  }
}
