/* Reveal category hover effects. */
/* Pattern: each effect starts with the image hidden under a
   colored ::before layer, then "reveals" the image on
   hover/focus by shrinking that layer via clip-path geometry
   (circle, inset, wipe, diagonal, corner, etc). The reveal
   motion is the dominant visual behavior; do not combine
   with 3D transforms here. The underlying <img> stays
   untouched. */
.hover-effect.circle-reveal{
  position: relative;
  display: block;
}
.hover-effect.circle-reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.5s ease;
  pointer-events: none;
}
.hover-effect.circle-reveal:hover::before,
.hover-effect.circle-reveal:focus-visible::before{
  clip-path: circle(0% at 50% 50%);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.circle-reveal::before{
    transition: none;
  }
  .hover-effect.circle-reveal:hover::before,
  .hover-effect.circle-reveal:focus-visible::before{
    clip-path: circle(0% at 50% 50%);
  }
}

/* ---- circle-conceal ---- */
/* Inverse of circle-reveal: at idle the image is visible, on
   hover/focus a colored circle grows from center to cover the
   image (concealing it). */
.hover-effect.circle-conceal{
  position: relative;
  display: block;
}
.hover-effect.circle-conceal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.5s ease;
  pointer-events: none;
}
.hover-effect.circle-conceal:hover::before,
.hover-effect.circle-conceal:focus-visible::before{
  clip-path: circle(150% at 50% 50%);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.circle-conceal::before{
    transition: none;
  }
  .hover-effect.circle-conceal:hover::before,
  .hover-effect.circle-conceal:focus-visible::before{
    clip-path: circle(150% at 50% 50%);
  }
}

/* ---- inset-reveal ---- */
/* Overlay covers the image at idle, then shrinks inward from
   each edge on hover/focus (clip-path: inset 0 -> inset 40%),
   revealing a centered "window" of the image. */
.hover-effect.inset-reveal{
  position: relative;
  display: block;
}
.hover-effect.inset-reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  clip-path: inset(0);
  transition: clip-path 0.5s ease;
  pointer-events: none;
}
.hover-effect.inset-reveal:hover::before,
.hover-effect.inset-reveal:focus-visible::before{
  clip-path: inset(40%);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.inset-reveal::before{
    transition: none;
  }
  .hover-effect.inset-reveal:hover::before,
  .hover-effect.inset-reveal:focus-visible::before{
    clip-path: inset(40%);
  }
}

/* ---- wipe-reveal ---- */
/* Overlay covers the image at idle, then wipes off to the left
   on hover/focus via clip-path: inset(0 0 0 0) -> inset(0 0 0
   100%), progressively revealing the image like a horizontal
   wipe. */
.hover-effect.wipe-reveal{
  position: relative;
  display: block;
}
.hover-effect.wipe-reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.5s ease;
  pointer-events: none;
}
.hover-effect.wipe-reveal:hover::before,
.hover-effect.wipe-reveal:focus-visible::before{
  clip-path: inset(0 0 0 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.wipe-reveal::before{
    transition: none;
  }
  .hover-effect.wipe-reveal:hover::before,
  .hover-effect.wipe-reveal:focus-visible::before{
    clip-path: inset(0 0 0 100%);
  }
}

/* ---- diagonal-reveal ---- */
/* Overlay covers the image at idle, then collapses to the
   top-left point via clip-path: polygon(...full...) ->
   polygon(0 0, 0 0, 0 0, 0 0) on hover/focus, producing a
   diagonal wipe. */
.hover-effect.diagonal-reveal{
  position: relative;
  display: block;
}
.hover-effect.diagonal-reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s ease;
  pointer-events: none;
}
.hover-effect.diagonal-reveal:hover::before,
.hover-effect.diagonal-reveal:focus-visible::before{
  clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.diagonal-reveal::before{
    transition: none;
  }
  .hover-effect.diagonal-reveal:hover::before,
  .hover-effect.diagonal-reveal:focus-visible::before{
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  }
}

/* ---- corner-reveal ---- */
/* Overlay covers the image at idle, then shrinks to a small
   triangle at the bottom-right corner on hover/focus, revealing
   the rest of the image as a corner-tuck wipe.
   NOTE: both polygons use 4 vertices — browsers cannot
   interpolate between polygons of different vertex counts, so
   keeping the count equal is what makes the transition animate.
   Two of the hover vertices coincide at (100%, 100%) to form a
   visible triangle identical to a 3-vertex polygon. */
.hover-effect.corner-reveal{
  position: relative;
  display: block;
}
.hover-effect.corner-reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s ease;
  pointer-events: none;
}
.hover-effect.corner-reveal:hover::before,
.hover-effect.corner-reveal:focus-visible::before{
  clip-path: polygon(100% 100%, 100% 100%, 100% 50%, 50% 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.corner-reveal::before{
    transition: none;
  }
  .hover-effect.corner-reveal:hover::before,
  .hover-effect.corner-reveal:focus-visible::before{
    clip-path: polygon(100% 100%, 100% 100%, 100% 50%, 50% 100%);
  }
}

/* ---- horizontal-split ---- */
/* Two halves (::before and ::after) cover the image at idle,
   then slide apart (translateX(0) -> translateX(±100%)) on
   hover/focus, revealing the image as the overlay splits
   horizontally. */
.hover-effect.horizontal-split{
  position: relative;
  display: block;
  overflow: hidden;
}
.hover-effect.horizontal-split::before,
.hover-effect.horizontal-split::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  transition: transform 0.5s ease;
}
.hover-effect.horizontal-split::before{
  left: 0;
  background: rgba(15, 23, 42, 0.85);
  transform: translateX(0);
}
.hover-effect.horizontal-split::after{
  right: 0;
  background: rgba(15, 23, 42, 0.85);
  transform: translateX(0);
}
.hover-effect.horizontal-split:hover::before,
.hover-effect.horizontal-split:focus-visible::before{
  transform: translateX(-100%);
}
.hover-effect.horizontal-split:hover::after,
.hover-effect.horizontal-split:focus-visible::after{
  transform: translateX(100%);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.horizontal-split::before,
  .hover-effect.horizontal-split::after{
    transition: none;
  }
  .hover-effect.horizontal-split:hover::before,
  .hover-effect.horizontal-split:focus-visible::before{
    transform: translateX(-100%);
  }
  .hover-effect.horizontal-split:hover::after,
  .hover-effect.horizontal-split:focus-visible::after{
    transform: translateX(100%);
  }
}

/* ---- vertical-split ---- */
/* Two halves (::before and ::after) cover the image at idle,
   then slide apart vertically (translateY(0) -> translateY(
   ±100%)) on hover/focus, revealing the image as the overlay
   splits vertically. */
.hover-effect.vertical-split{
  position: relative;
  display: block;
  overflow: hidden;
}
.hover-effect.vertical-split::before,
.hover-effect.vertical-split::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  pointer-events: none;
  transition: transform 0.5s ease;
}
.hover-effect.vertical-split::before{
  top: 0;
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(0);
}
.hover-effect.vertical-split::after{
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(0);
}
.hover-effect.vertical-split:hover::before,
.hover-effect.vertical-split:focus-visible::before{
  transform: translateY(-100%);
}
.hover-effect.vertical-split:hover::after,
.hover-effect.vertical-split:focus-visible::after{
  transform: translateY(100%);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.vertical-split::before,
  .hover-effect.vertical-split::after{
    transition: none;
  }
  .hover-effect.vertical-split:hover::before,
  .hover-effect.vertical-split:focus-visible::before{
    transform: translateY(-100%);
  }
  .hover-effect.vertical-split:hover::after,
  .hover-effect.vertical-split:focus-visible::after{
    transform: translateY(100%);
  }
}

/* ---- diamond-reveal ---- */
/* Overlay covers the image at idle, then shrinks from a full
   rectangle to a centered diamond polygon (50% 0, 100% 50%,
   50% 100%, 0 50%) on hover/focus, revealing the four corners
   of the image first while keeping a diamond-shaped overlay. */
.hover-effect.diamond-reveal{
  position: relative;
  display: block;
}
.hover-effect.diamond-reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s ease;
  pointer-events: none;
}
.hover-effect.diamond-reveal:hover::before,
.hover-effect.diamond-reveal:focus-visible::before{
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.diamond-reveal::before{
    transition: none;
  }
  .hover-effect.diamond-reveal:hover::before,
  .hover-effect.diamond-reveal:focus-visible::before{
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
}

/* ---- rounded-reveal ---- */
/* Overlay covers the image at idle, then grows a large
   border-radius on hover/focus so its corners retract inward,
   revealing the four corners of the image as an elliptical/
   rounded overlay. */
.hover-effect.rounded-reveal{
  position: relative;
  display: block;
}
.hover-effect.rounded-reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 0;
  transition: border-radius 0.5s ease;
  pointer-events: none;
}
.hover-effect.rounded-reveal:hover::before,
.hover-effect.rounded-reveal:focus-visible::before{
  border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.rounded-reveal::before{
    transition: none;
  }
  .hover-effect.rounded-reveal:hover::before,
  .hover-effect.rounded-reveal:focus-visible::before{
    border-radius: 50%;
  }
}
