.testimonials-page {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}
.testimonials-intro {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.testimonials-kicker {
  margin: 0 0 14px;
  color: #d9f43d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.testimonials-title {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -.065em;
  line-height: .96;
}
.testimonials-copy {
  max-width: 560px;
  margin: clamp(18px, 2.5vw, 24px) 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}
.testimonial-card {
  display: flex;
  min-height: 0;
  height: auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #171e19;
}
.testimonial-quote {
  margin: 0;
  max-height: calc(1.35em * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #fff;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -.025em;
  line-height: 1.35;
}
.testimonial-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d9f43d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.testimonial-card-more::after {
  content: '↓';
  font-size: 14px;
}
.testimonial-card.is-expanded .testimonial-quote {
  max-height: none;
  -webkit-line-clamp: unset;
  overflow: visible;
  display: block;
}
.testimonial-card.is-expanded .testimonial-card-more::after {
  content: '↑';
}
.testimonial-card-more[hidden] { display: none; }

.testimonial-author {
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d9f43d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .testimonial-card {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-page {
    width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width));
  }
}

.testimonials-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
  color: rgba(255, 255, 255, .62);
  font-size: 15px;
  line-height: 1.5;
}

.testimonials-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 36px);
}
.testimonials-shuffle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: #d9f43d;
  color: #111610;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.testimonials-shuffle:hover:not(:disabled) {
  transform: translateY(-2px);
}
.testimonials-shuffle:disabled {
  cursor: default;
  opacity: .55;
}
.testimonials-shuffle[hidden] {
  display: none;
}

/* Uniform testimonial card sizing — compact and responsive. */
.testimonial-card {
  box-sizing: border-box;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .testimonial-card {
    height: 210px;
    min-height: 210px;
    max-height: 210px;
  }
}

@media (max-width: 600px) {
  .testimonial-card {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    padding: 20px;
  }
}
