.testimonials {
  position: relative;
  isolation: isolate;
  font-family: "Open Sauce One", sans-serif;
  padding: 64px 0;
  overflow: clip;
  background: var(--bg);
  color: var(--text);
}
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse, #000, transparent 75%);
}
.testimonials::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238457ff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
[data-theme="dark"] .testimonials::after {
  display: none;
}
[data-theme="dark"] .testimonials::before {
  opacity: 0.15;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 65%);
}
.reviews-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
  padding: 0 16px;
}
.reviews-heading p {
  margin: 0;
  padding: 4px 12px;
  border-radius: 40px;
  background: var(--pink);
  color: #1c1917;
  font-size: 14px;
  line-height: 18px;
}
.reviews-heading h2 {
  margin: 0;
  font:
    700 50.08px/1.1 "Open Sauce One",
    sans-serif;
  letter-spacing: -0.02em;
  text-align: center;
}
.testimonial-stage {
  max-width: 1200px;
  padding: 0 32px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px minmax(0, 1fr);
  align-items: center;
}
.review-column {
  height: 527px;
  overflow: hidden;
  mask: linear-gradient(transparent, #000 14.8849% 84.5821%, transparent);
}
.review-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  animation: review-scroll 22s linear infinite paused;
}
.review-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.review-column-left .review-track {
  animation-direction: reverse;
}
.review-card {
  flex: none;
  width: 299px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.review-stars {
  color: #ffb900;
  font-size: 18px;
  line-height: 16px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.review-card blockquote {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}
.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.3;
}
.review-card img {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.review-card figcaption span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-card strong {
  font-weight: 400;
}
.review-card small {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
}
.review-player {
  position: relative;
  width: 304px;
  height: 566px;
  overflow: hidden;
  border-radius: 32px;
  background: #15121f;
  color: #fff;
}
.review-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-player::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
.review-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-progress {
  flex: 1;
  display: flex;
  gap: 4px;
}
.review-progress button {
  position: relative;
  flex: 1;
  height: 20px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.review-progress button::before,
.review-progress span {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}
.review-progress span {
  width: var(--progress, 0%);
  background: #fff;
}
.review-controls > button,
.review-arrow {
  display: grid;
  place-items: center;
  padding: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.review-controls button:hover,
.review-arrow:hover {
  opacity: 1;
}
.review-mute svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.review-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  font-size: 30px;
  font-family: "Open Sauce One", sans-serif;
}
.review-prev {
  left: 16px;
}
.review-next {
  right: 16px;
}
.review-hearts {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  right: 16px;
  pointer-events: none;
}
.review-hearts span {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 28px;
  color: var(--pink);
  opacity: 0;
  animation: review-heart 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite paused;
}
.review-hearts span:nth-child(2) {
  right: 12px;
  font-size: 20px;
  animation-delay: 0.5s;
}
.review-hearts span:nth-child(3) {
  right: -4px;
  animation-delay: 1s;
}
.review-hearts span:nth-child(4) {
  right: 20px;
  font-size: 36px;
  animation-delay: 1.5s;
}
.review-hearts span:nth-child(5) {
  right: 6px;
  animation-delay: 2s;
}
.testimonials.is-active .review-track,
.testimonials.is-active .review-hearts span {
  animation-play-state: running;
}
.review-column {
  touch-action: pan-y;
}
.review-column:focus-within .review-track {
  animation-play-state: paused;
}
@keyframes review-scroll {
  to {
    transform: translateY(calc(-50% - 8px));
  }
}
@keyframes review-heart {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.85) rotate(-10deg);
  }
  10% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(8px, -120px) scale(1.15) rotate(10deg);
  }
}
@media (max-width: 1199.98px) {
  .testimonials {
    padding: 48px 0;
  }
  .reviews-heading {
    margin-bottom: 48px;
  }
  .testimonial-stage {
    max-width: 700px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .review-player {
    width: 400px;
    height: auto;
    aspect-ratio: 304/566;
  }
  .review-column {
    width: 100%;
    height: auto;
    mask: linear-gradient(90deg, transparent, #000 15% 85%, transparent);
  }
  .review-track,
  .review-group {
    flex-direction: row;
    width: max-content;
  }
  .review-track {
    animation-name: review-scroll-horizontal;
  }
  .review-card {
    width: 299px;
  }
  @keyframes review-scroll-horizontal {
    to {
      transform: translateX(calc(-50% - 8px));
    }
  }
}
@media (max-width: 809.98px) {
  .testimonials {
    padding: 40px 0;
  }
  .reviews-heading {
    margin-bottom: 40px;
  }
  .reviews-heading h2 {
    font-size: 32px;
  }
  .testimonial-stage {
    max-width: 400px;
    padding: 0 16px;
  }
  .review-player {
    width: 100%;
  }
  .review-column {
    mask: none;
    overflow: visible;
  }
  .review-track,
  .review-group {
    width: 100%;
    flex-direction: column;
    animation: none;
  }
  .review-card {
    width: 100%;
  }
  .review-group[aria-hidden="true"] {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-track,
  .review-hearts span {
    animation: none;
  }
  .review-column {
    overflow: auto;
  }
}
