.video-showcase {
  display: none;
  padding-block: 6vi;
  background: var(--color-white);
  overflow-x: clip;
  overflow-y: visible;
}

.video-showcase__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Header */
.video-showcase__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-inline-size: 800px;
}

.video-showcase__heading {
  font-size: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.video-showcase__subtitle {
  font-size: clamp(0.875rem, 0.6rem + 0.7vw, 1.25rem);
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.6;
}

/* Carousel wrapper */
.video-showcase__carousel {
  width: 100%;
  position: relative;
}

/* 3D Scene — from reference implementation */
.video-showcase__scene {
  display: grid;
  perspective: 35em;
  mask: linear-gradient(90deg, #0000, red 15% 85%, #0000);
  -webkit-mask: linear-gradient(90deg, #0000, red 15% 85%, #0000);
  mask-size: 200% 300%;
  -webkit-mask-size: 100% 300%;
  mask-position: center;
  -webkit-mask-position: center;
  padding-block: 60px;
}

.video-showcase__cylinder {
  display: grid;
  place-self: center;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Cards on the cylinder */
.video-showcase__card {
  --w: 13em;
  --ba: calc(1turn / var(--n));
  grid-area: 1 / 1;
  width: var(--w);
  text-align: center;
  backface-visibility: hidden;
  transform:
    rotateY(calc(var(--i) * var(--ba)))
    translateZ(calc(-1 * (.5 * var(--w) + 1em) / tan(.5 * var(--ba))));
}

.video-showcase__slide-wrapper {
  position: relative;
}

.video-showcase__slide-image {
  width: 100%;
  border-radius: 16px;
  display: block;
  aspect-ratio: 5 / 7;
  object-fit: cover;
}

/* Play button overlay */
.video-showcase__slide-play {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 48px;
  height: 48px;
  border: none;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-showcase__slide-play:hover {
  transform: scale(1.08);
}

.video-showcase__slide-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

/* Playing state: hide play button, show on hover */
.video-showcase__card.is-playing .video-showcase__slide-play {
  opacity: 0;
}

.video-showcase__card.is-playing:hover .video-showcase__slide-play {
  opacity: 1;
}

.video-showcase__card.is-playing .video-showcase__slide-play svg {
  display: none;
}

.video-showcase__card.is-playing .video-showcase__slide-play::before {
  content: "";
  display: block;
  width: 16px;
  height: 18px;
  border-left: 5px solid var(--color-text);
  border-right: 5px solid var(--color-text);
}

.video-showcase__slide-image {
  cursor: pointer;
}

/* Slide label */
.video-showcase__slide-label {
  font-size: clamp(0.75rem, 0.5rem + 0.5vw, 1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: 12px;
}

/* Navigation arrows */
.video-showcase__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  border: none;
  transition: transform 0.2s ease;
}

.video-showcase__nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.video-showcase__nav svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-showcase__nav--prev {
  left: 31px;
}

.video-showcase__nav--next {
  right: 31px;
}

/* Pagination */
.video-showcase__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.video-showcase__dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(26, 26, 26, 0.2);
  transition: all 0.3s ease;
}

.video-showcase__dot--active {
  background: var(--color-text);
  width: 24px;
}

@media (max-width: 768px) {
  .video-showcase__nav {
    width: 48px;
    height: 48px;
  }

  .video-showcase__nav--prev {
    left: 8px;
  }

  .video-showcase__nav--next {
    right: 8px;
  }

  .video-showcase__card {
    --w: 10em;
  }
}
