/* ─────────────────────────────────────────────────────────
   TESTIMONIALS — animated quote with avatar pills
   ───────────────────────────────────────────────────────── */

.testimonials {
  background: #ffffff;
  padding: 140px var(--pad) 160px;
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.testimonials-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0824b;
}

/* Quote block */
.testimonial-quote-wrap {
  position: relative;
  padding: 0 40px;
  max-width: 820px;
  width: 100%;
  text-align: center;
}

.testimonial-quote-mark {
  position: absolute;
  font-family: 'Times New Roman', Times, serif;
  font-size: 140px;
  line-height: 1;
  color: rgba(20, 20, 22, 0.06);
  user-select: none;
  pointer-events: none;
  font-weight: 400;
}

.testimonial-quote-mark.left {
  top: -48px;
  left: 0;
}

.testimonial-quote-mark.right {
  bottom: -88px;
  right: 0;
}

.testimonial-quote {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.testimonial-quote.is-animating {
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.98);
}

.testimonial-quote .accent {
  color: #f0824b;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 400;
}

/* Role line under the quote */
.testimonial-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.testimonial-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-role.is-animating {
  opacity: 0;
  transform: translateY(8px);
}

/* Avatar pill row */
.testimonial-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.testimonial-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
  font-family: inherit;
}

.testimonial-pill:hover {
  background: #f3f3f0;
}

.testimonial-pill.active {
  background: var(--text);
  padding: 6px 16px 6px 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.testimonial-pill-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #eaeae6;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
}

.testimonial-pill.active .testimonial-pill-avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.30);
}

.testimonial-pill:not(.active):hover .testimonial-pill-avatar {
  transform: scale(1.06);
}

.testimonial-pill-name {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  margin-left: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-pill.active .testimonial-pill-name {
  max-width: 200px;
  opacity: 1;
  margin-left: 10px;
}

@media (max-width: 700px) {
  .testimonials {
    padding: 90px var(--pad) 110px;
  }

  .testimonial-quote-mark {
    font-size: 90px;
  }

  .testimonial-quote-mark.left {
    top: -30px;
  }

  .testimonial-quote-mark.right {
    bottom: -60px;
  }
}
