/*
 * Skills photographs start mostly monochrome with a natural-color center.
 * The color reveal grows from the center on hover or keyboard focus. Keep this
 * scoped to the home-page Skills cards; no turquoise tint is applied.
 */
body.frame-page.home-page .services .service-card .card-img-wrap {
  border: none !important;
  box-shadow: 0 3px 14px rgba(20, 39, 52, 0.08) !important;
}

body.frame-page.home-page .services .service-card .card-img-wrap::before {
  display: none !important;
  content: none !important;
}

body.frame-page.home-page .services .service-card .card-img-wrap::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 60%;
  height: 60%;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    width 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease 1.1s;
}

body.frame-page.home-page .services .service-card .card-img-wrap > img:first-child {
  filter: grayscale(1) saturate(0.78) contrast(1.02) !important;
  transition: filter 0.35s ease, scale 0.22s ease !important;
}

body.frame-page.home-page .services .service-card .card-img-wrap .service-card-color-image {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  clip-path: circle(30% at 50% 50%);
  transition:
    clip-path 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.22s ease !important;
  will-change: clip-path;
}

body.frame-page.home-page .services .service-card:hover .card-img-wrap .service-card-color-image,
body.frame-page.home-page .services .service-card:focus-within .card-img-wrap .service-card-color-image {
  clip-path: circle(100% at 50% 50%);
}

body.frame-page.home-page .services .service-card:hover .card-img-wrap::after,
body.frame-page.home-page .services .service-card:focus-within .card-img-wrap::after {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  opacity: 0;
  transition:
    width 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease 1.1s;
}

body.frame-page.home-page .services .service-card:hover .card-img-wrap > img:not(.service-card-search-icon),
body.frame-page.home-page .services .service-card:focus-within .card-img-wrap > img:not(.service-card-search-icon) {
  transform: none !important;
  scale: 1.012 !important;
}

body.frame-page.home-page .services .service-card .card-img-wrap .service-card-search-icon {
  z-index: 6;
}

@media (prefers-reduced-motion: reduce) {
  body.frame-page.home-page .services .service-card .card-img-wrap > img,
  body.frame-page.home-page .services .service-card .card-img-wrap .service-card-color-image,
  body.frame-page.home-page .services .service-card .card-img-wrap::after {
    transition: none !important;
  }

  body.frame-page.home-page .services .service-card:hover .card-img-wrap > img:not(.service-card-search-icon),
  body.frame-page.home-page .services .service-card:focus-within .card-img-wrap > img:not(.service-card-search-icon) {
    transform: none !important;
    scale: 1 !important;
  }
}
