/* ============================================================
   Wipe Carousel — replica of Framer Marketplace "Smooth Wipe Carousel".
   Measured from smooth-carousel.framer.website
   ============================================================ */

.wipe {
  /* ---- motion (measured) ----
     The incoming slide sits ON TOP and uncovers itself with
        clip-path: inset(0 0 0 X%)   X: 100 -> 0
     while its scale runs in exact lockstep:
        scale = 1 + 0.02 * (X / 100)
     over ~960ms on an ease-in-out-cubic.                        */
  --wp-dur: 960ms;
  --wp-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --wp-zoom: 0.02;

  /* ---- controls (measured) ---- */
  --wp-btn: 48px;
  --wp-btn-bg: rgb(229, 229, 221);
  --wp-btn-gap: 10px;

  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

.wipe__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: clip-path, transform;
}

/* resting slide */
.wipe__slide { clip-path: inset(0 0 0 0); transform: scale(1); }

/* an incoming slide starts fully clipped away and slightly enlarged */
.wipe__slide.is-entering-right { clip-path: inset(0 0 0 100%); transform: scale(calc(1 + var(--wp-zoom))); }
.wipe__slide.is-entering-left  { clip-path: inset(0 100% 0 0); transform: scale(calc(1 + var(--wp-zoom))); }

.wipe__slide.is-animating {
  transition: clip-path var(--wp-dur) var(--wp-ease),
              transform var(--wp-dur) var(--wp-ease);
}

/* ---- controls ---- */
.wipe__nav {
  position: absolute;
  left: 50%;
  bottom: 48px;
  translate: -50% 0;
  display: flex;
  gap: var(--wp-btn-gap);
  z-index: 20;
}

.wipe__btn {
  width: var(--wp-btn);
  height: var(--wp-btn);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--wp-btn-bg);
  color: #1a1a1a;
  cursor: pointer;
  transition: background 180ms ease;
}
.wipe__btn:hover { background: #fff; }
.wipe__btn svg { width: 17px; height: 17px; }

@media (prefers-reduced-motion: reduce) {
  .wipe__slide.is-animating { transition-duration: 1ms; }
}
