/* Who We Build For: one image per card, shown at the 16:9 shape of the pictures */
.pv-img {
  height: auto;
  aspect-ratio: 1672 / 941;
}
.pv-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
/* Images are shown whole (no zoom, no crop). The 3D effect below only tilts and nudges them a few pixels. */
.pv-3d {
  perspective: 900px;
}
.pv-3d img,
.card:hover .pv-3d img {
  transform: translate(calc((var(--px, 0.5) - 0.5) * -6px), calc((var(--py, 0.5) - 0.5) * -4px))
    rotateX(calc((var(--py, 0.5) - 0.5) * -4deg)) rotateY(calc((var(--px, 0.5) - 0.5) * 5deg));
  transition: transform 0.25s ease-out;
}
.pv-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    circle at calc(var(--px, 0.5) * 100%) calc(var(--py, 0.5) * 100%),
    rgba(255, 255, 255, 0.3),
    transparent 45%
  );
}
.pv-3d[data-dots='gold']::after {
  background: radial-gradient(
    circle at calc(var(--px, 0.5) * 100%) calc(var(--py, 0.5) * 100%),
    rgba(255, 214, 120, 0.4),
    transparent 45%
  );
}
.card:hover .pv-3d::after {
  opacity: 1;
}
.pv-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
