* {
  box-sizing: border-box;
}

:root {
  --rd-stack-bg: #f7f5f3;
  --rd-stack-text: #171717;
  --rd-stack-card-width: 360px;
  --rd-stack-stage-height: 540px;
  --rd-stack-radius: 20px;
  --rd-stack-offset-one: 275px;
  --rd-stack-offset-two: 505px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--rd-stack-text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.rd-stack-carousel {
  width: 100%;
  overflow: hidden;
  padding: 58px 0 62px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.88), transparent 42%),
    var(--rd-stack-bg);
  color: var(--rd-stack-text);
}

.rd-stack-carousel__inner {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 44px);
}

.rd-stack-carousel__stage {
  position: relative;
  width: 100%;
  height: var(--rd-stack-stage-height);
  margin: 0 auto;
  overflow: visible;
  perspective: 1450px;
  touch-action: pan-y;
  user-select: none;
  isolation: isolate;
  cursor: grab;
}

.rd-stack-carousel__stage.is-dragging {
  cursor: grabbing;
}

.rd-stack-carousel__slide {
  --rd-x: 0px;
  --rd-y: 0px;
  --rd-scale: .4;
  --rd-rotate: 0deg;
  --rd-opacity: 0;
  --rd-blur: 5px;
  --rd-saturation: .72;
  --rd-shadow-alpha: .08;

  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: min(var(--rd-stack-card-width), 29vw);
  aspect-ratio: 74 / 100;
  color: inherit;
  text-decoration: none;
  opacity: var(--rd-opacity);
  filter:
    blur(var(--rd-blur))
    saturate(var(--rd-saturation));
  pointer-events: none;
  transform:
    translate3d(
      calc(-50% + var(--rd-x)),
      calc(-50% + var(--rd-y)),
      0
    )
    rotateY(var(--rd-rotate))
    scale(var(--rd-scale));
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform 760ms cubic-bezier(.16, 1, .3, 1),
    opacity 440ms ease,
    filter 560ms ease;
}

.rd-stack-carousel__stage.is-dragging .rd-stack-carousel__slide {
  transition: none;
}

.rd-stack-carousel__slide.is-visible {
  pointer-events: auto;
}

.rd-stack-carousel__slide.is-active {
  z-index: 6;
}

.rd-stack-carousel__card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.96);
  border-radius: var(--rd-stack-radius);
  background: #e9e6e3;
  box-shadow:
    0 24px 58px rgba(18, 15, 13, calc(.10 + var(--rd-shadow-alpha))),
    0 8px 18px rgba(18, 15, 13, .08);
  transform: translateZ(0);
  transition:
    transform 360ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 360ms ease;
}

.rd-stack-carousel__slide.is-active:hover .rd-stack-carousel__card {
  transform: translateY(-7px) scale(1.012);
  box-shadow:
    0 34px 74px rgba(18, 15, 13, .25),
    0 10px 22px rgba(18, 15, 13, .12);
}

.rd-stack-carousel__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 850ms cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

.rd-stack-carousel__slide.is-active:hover .rd-stack-carousel__image {
  transform: scale(1.065);
}

.rd-stack-carousel__shine {
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 38%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,.05) 20%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.08) 78%,
    transparent 100%
  );
  opacity: 0;
  transform: skewX(-15deg);
  pointer-events: none;
}

.rd-stack-carousel__slide.is-active:hover .rd-stack-carousel__shine {
  opacity: 1;
  animation: rd-stack-shine 900ms ease forwards;
}

@keyframes rd-stack-shine {
  from {
    left: -65%;
  }
  to {
    left: 135%;
  }
}

.rd-stack-carousel__card-title {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #151515;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  transition:
    background-color 240ms ease,
    transform 360ms cubic-bezier(.16, 1, .3, 1);
}

.rd-stack-carousel__slide.is-active:hover .rd-stack-carousel__card-title {
  background: rgba(255,255,255,.95);
  transform: translateY(-3px);
}

.rd-stack-carousel__explore {
  display: grid;
  width: min(100%, 540px);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(22px, 5vw, 72px);
  margin: 25px auto 0;
}

.rd-stack-carousel__explore-text {
  position: relative;
  color: #171717;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.rd-stack-carousel__explore-text::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms ease;
}

.rd-stack-carousel__explore-text:hover::after {
  transform: scaleX(1);
}

.rd-stack-carousel__nav {
  display: inline-flex;
  min-width: 80px;
  height: 34px;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.rd-stack-carousel__nav-line {
  display: block;
  width: 48px;
  height: 1px;
  background: currentColor;
  transition: width 280ms cubic-bezier(.16, 1, .3, 1);
}

.rd-stack-carousel__nav svg {
  display: block;
  width: 19px;
  height: 19px;
  transition: transform 280ms cubic-bezier(.16, 1, .3, 1);
}

.rd-stack-carousel__nav--prev {
  justify-content: flex-end;
}

.rd-stack-carousel__nav--prev svg {
  order: -1;
  margin-right: -2px;
}

.rd-stack-carousel__nav--next {
  justify-content: flex-start;
}

.rd-stack-carousel__nav--next svg {
  margin-left: -2px;
}

.rd-stack-carousel__nav:hover .rd-stack-carousel__nav-line {
  width: 58px;
}

.rd-stack-carousel__nav--prev:hover svg {
  transform: translateX(-4px);
}

.rd-stack-carousel__nav--next:hover svg {
  transform: translateX(4px);
}

.rd-stack-carousel__nav:focus-visible,
.rd-stack-carousel__slide:focus-visible,
.rd-stack-carousel__stage:focus-visible,
.rd-stack-carousel__explore-text:focus-visible {
  outline: 2px solid #1e1e1e;
  outline-offset: 5px;
}

.rd-stack-carousel__progress {
  position: relative;
  width: 92px;
  height: 2px;
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}

.rd-stack-carousel__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #171717;
  transform-origin: left;
}

.rd-stack-carousel.is-autoplaying .rd-stack-carousel__progress span {
  animation: rd-stack-progress var(--rd-autoplay-speed, 4000ms) linear forwards;
}

@keyframes rd-stack-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 989px) {
  :root {
    --rd-stack-card-width: 200px;
    --rd-stack-stage-height: 305px;
    --rd-stack-offset-one: 138px;
    --rd-stack-offset-two: 255px;
  }

  .rd-stack-carousel {
    padding: 24px 0 34px;
  }

  .rd-stack-carousel__inner {
    padding: 0;
  }

  .rd-stack-carousel__stage {
    overflow: hidden;
  }

  .rd-stack-carousel__slide {
    width: min(var(--rd-stack-card-width), 52vw);
  }

  .rd-stack-carousel__card {
    border-width: 2px;
    border-radius: 16px;
  }

  .rd-stack-carousel__card-title {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-height: 35px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .rd-stack-carousel__explore {
    width: min(100% - 44px, 380px);
    column-gap: 17px;
    margin-top: 16px;
  }

  .rd-stack-carousel__explore-text {
    font-size: 14px;
  }

  .rd-stack-carousel__nav {
    min-width: 56px;
    height: 30px;
  }

  .rd-stack-carousel__nav-line {
    width: 36px;
  }

  .rd-stack-carousel__nav:hover .rd-stack-carousel__nav-line {
    width: 40px;
  }

  .rd-stack-carousel__nav svg {
    width: 16px;
    height: 16px;
  }

  .rd-stack-carousel__progress {
    margin-top: 17px;
  }
}

@media (max-width: 430px) {
  :root {
    --rd-stack-card-width: min(190px, 48vw);
    --rd-stack-stage-height: 288px;
    --rd-stack-offset-one: 126px;
    --rd-stack-offset-two: 228px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rd-stack-carousel__slide,
  .rd-stack-carousel__card,
  .rd-stack-carousel__image,
  .rd-stack-carousel__card-title,
  .rd-stack-carousel__nav-line,
  .rd-stack-carousel__nav svg {
    transition: none !important;
  }

  .rd-stack-carousel__shine,
  .rd-stack-carousel__progress span {
    animation: none !important;
  }
}
