.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.testimonials {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 66px 24px 94px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(167,125,88,.11) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 78%, rgba(167,125,88,.09) 0 2px, transparent 3px),
    linear-gradient(120deg, #f4efe8 0%, #fbfaf7 48%, #eee7dd 100%);
  background-size: 44px 44px, 52px 52px, auto;
}

.testimonials::before,
.testimonials::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(139,95,59,.12);
  border-radius: 50%;
  pointer-events: none;
}

.testimonials::before {
  left: -205px;
  top: -210px;
}

.testimonials::after {
  right: -190px;
  bottom: -230px;
}

.testimonial-stage {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  min-height: 240px;
  background: rgba(251,250,247,.92);
  border: 1px solid rgba(132,91,58,.2);
  box-shadow: 0 20px 55px rgba(64,43,29,.08);
}

.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 55px 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}

.testimonial.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.quote-mark {
  height: 45px;
  color: var(--brown);
  font: 700 58px/1 var(--serif);
}

.testimonial blockquote {
  margin: 4px auto 24px;
  max-width: 700px;
  font: 400 clamp(22px, 2.25vw, 31px)/1.45 var(--display);
  color: #211812;
  text-wrap: balance;
}

.testimonial-name {
  margin: 0;
  color: var(--brown);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.testimonial-project {
  margin: 2px 0 0;
  color: #625951;
  font-size: 11px;
}

.testimonial-controls {
  position: absolute;
  z-index: 2;
  bottom: 39px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-prev,
.testimonial-next {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid rgba(115,75,46,.6);
  border-radius: 50%;
  color: var(--brown);
  background: #fbfaf7;
  box-shadow: 0 5px 15px rgba(68,43,26,.08);
  cursor: pointer;
  transition: .25s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  color: #fff;
  background: var(--brown);
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-dots button {
  width: 28px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(103,69,43,.25);
  cursor: pointer;
}

.testimonial-dots button.active {
  background: var(--brown);
}

@media (max-width:720px) {
  .testimonials {
    min-height: 500px;
    padding: 48px 18px 92px;
  }

  .testimonial-stage {
    min-height: 315px;
  }

  .testimonial {
    padding: 30px 22px 26px;
  }

  .testimonial blockquote {
    font-size: 24px;
  }
}
