.testimonials-section {
  background: var(--linen);
  overflow: hidden;
}

.testimonials-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 50px;
}

.testimonials-heading h2 {
  max-width: 12ch;
  margin-top: 18px;
}

.testimonials-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.testimonials-arrow {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--olive);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.testimonials-arrow:hover,
.testimonials-arrow:focus-visible {
  background: var(--olive-dark);
  transform: translateY(-2px);
}

.testimonials-arrow:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.testimonials-arrow:disabled {
  opacity: .3;
  cursor: default;
  transform: none;
}

.testimonials-track {
  display: flex;
  gap: 22px;
  margin-right: calc(var(--pad) * -1);
  padding-right: var(--pad);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.testimonial {
  flex: 0 0 min(84vw, 380px);
  min-height: 470px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 28px 0 24px;
  border-top: 1px solid rgba(16, 15, 15, .22);
}

.testimonial h3 {
  margin-top: 0;
  max-width: 14ch;
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  line-height: 1.02;
}

.testimonial blockquote {
  margin: 27px 0 0;
}

.testimonial blockquote p {
  font-size: 1.05rem;
  line-height: 1.65;
}

.testimonial-meta {
  margin-top: auto;
  padding-top: 32px;
  font: 500 .72rem/1.4 "DM Mono", monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(16, 15, 15, .58);
}

.testimonials-progress {
  height: 3px;
  margin-top: 34px;
  overflow: hidden;
  background: rgba(16, 15, 15, .15);
}

.testimonials-progress span {
  display: block;
  width: 18%;
  height: 100%;
  background: var(--olive);
  transform-origin: left center;
  transition: width .25s ease;
}

.testimonials-note {
  max-width: 64ch;
  margin-top: 22px;
  color: rgba(16, 15, 15, .58);
  font-size: .84rem;
  line-height: 1.55;
}

@media (max-width: 719px) {
  .testimonials-heading {
    align-items: flex-start;
    margin-bottom: 36px;
  }

  .testimonials-heading h2 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .testimonials-controls {
    display: none;
  }
}

@media (min-width: 720px) {
  .testimonials-track {
    gap: 30px;
  }

  .testimonial {
    flex-basis: calc((100% - 60px) / 3);
    min-height: 520px;
    padding-top: 32px;
  }

  .testimonial h3 {
    margin-top: 0;
  }
}
