/* Client stories carousel */
.reviews {
  display: block;
  padding-right: 0;
  background: var(--ivory);
}

.testimonials-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  max-width: 1250px;
  padding-right: 6vw;
  margin-bottom: 42px;
}

.testimonials-head h2 {
  margin: 10px 0 18px;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  line-height: .93;
}

.testimonials-head h2 em {
  color: var(--gold-dark);
  font-weight: 400;
}

.testimonials-head > div > p:last-child {
  max-width: 620px;
  color: var(--ink-soft);
}

.testimonials-head .rating-card {
  position: static;
  grid-area: auto;
  width: auto;
  min-height: 0;
  padding: 24px;
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}

.testimonials-head .rating-card strong {
  display: block;
  font: 400 3.6rem/1 var(--serif);
}

.testimonials-head .rating-card p {
  margin: 6px 0 0;
  font-size: .78rem;
}

.testimonial-shell {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 6vw 16px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  flex: 0 0 min(78vw, 820px);
  min-height: 520px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
}

.testimonial-video {
  display: grid;
  grid-template-columns: .82fr 1fr;
  background: var(--navy);
  color: #fff;
}

.testimonial-video video {
  width: 100%;
  height: 520px;
  object-fit: cover;
  background: #020b13;
}

.testimonial-copy {
  align-self: end;
  padding: clamp(28px, 4vw, 54px);
}

.testimonial-copy span,
.testimonial-quote footer span {
  color: var(--gold);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.testimonial-copy h3 {
  margin: 12px 0 18px;
  font: 400 clamp(2.2rem, 3.5vw, 3.7rem)/.98 var(--serif);
}

.testimonial-copy p {
  color: #bec8d0;
  font-size: .86rem;
}

.testimonial-quote {
  display: grid;
  grid-template-columns: .9fr 1fr;
}

.testimonial-quote > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.testimonial-quote blockquote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  margin: 0;
  padding: clamp(34px, 5vw, 62px);
}

.testimonial-quote blockquote > p {
  margin: 0;
  font: 400 clamp(2.2rem, 3.8vw, 4.2rem)/1.02 var(--serif);
  color: var(--navy);
}

.testimonial-quote footer {
  display: grid;
  gap: 8px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.testimonial-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}

.testimonial-controls button:hover,
.testimonial-controls button:focus-visible {
  background: var(--navy);
  color: #fff;
  transform: scale(1.04);
}

.testimonial-controls span {
  min-width: 58px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .7rem;
  letter-spacing: .12em;
}

.reviews .reviews-cta {
  display: inline-flex;
  margin-top: 30px;
}

@media (max-width: 760px) {
  .testimonials-head {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-right: 20px;
    margin-bottom: 28px;
  }

  .testimonials-head h2 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .testimonials-head .rating-card {
    width: min(100%, 260px);
  }

  .testimonial-track {
    gap: 14px;
    padding-right: 20px;
  }

  .testimonial-slide {
    flex-basis: calc(100vw - 38px);
    min-height: 590px;
  }

  .testimonial-video,
  .testimonial-quote {
    grid-template-columns: 1fr;
    grid-template-rows: 345px 1fr;
  }

  .testimonial-video video,
  .testimonial-quote > img {
    height: 345px;
    min-height: 345px;
  }

  .testimonial-copy,
  .testimonial-quote blockquote {
    padding: 28px;
  }

  .testimonial-copy h3,
  .testimonial-quote blockquote > p {
    font-size: 2.15rem;
  }
}

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