.testimonials {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: linear-gradient(160deg, #1a1006 0%, #0d0a06 25%, #060608 55%, #0d0a06 85%, #1a1006 100%);
}
@media (min-width: 1024px) { .testimonials { padding: 9rem 0; } }

.testimonials__glow { position: absolute; inset: 0; pointer-events: none; }
.testimonials__glow--tl { background: radial-gradient(ellipse at 20% 0%, rgba(230, 183, 58, 0.14) 0%, transparent 55%); }
.testimonials__glow--br { background: radial-gradient(ellipse at 80% 100%, rgba(212, 160, 23, 0.12) 0%, transparent 55%); }
.testimonials__glow--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(212, 160, 23, 0.08);
  border-radius: 9999px;
  filter: blur(140px);
  inset: auto;
}

.testimonials__header { position: relative; text-align: center; margin-bottom: 4rem; }
.testimonials__eyebrow { display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--gold-400); font-size: 0.8125rem; margin: 0 0 1rem; }
.testimonials__eyebrow-icon { width: 2.25rem; height: 2.25rem; }
.testimonials__eyebrow-stars { display: flex; align-items: center; gap: 0.125rem; }
.testimonials__eyebrow-star { color: var(--gold-400); }

.testimonials__underline {
  display: block;
  width: 4rem;
  height: 1px;
  background: var(--gold-400);
  margin: 0 auto 1.5rem;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 700ms var(--ease-silk);
  transition-delay: 400ms;
}
[data-reveal].is-visible .testimonials__underline { transform: scaleX(1); }

.testimonials__title { font-weight: 600; font-size: 2.25rem; color: #fff; letter-spacing: -0.02em; line-height: 1; margin: 0 0 0.5rem; }
@media (min-width: 1024px) { .testimonials__title { font-size: 3rem; } }
.testimonials__title-accent { font-style: italic; font-size: 3rem; }
@media (min-width: 1024px) { .testimonials__title-accent { font-size: 3.75rem; } }
.testimonials__intro { color: var(--ink-300); font-size: 1rem; max-width: 32rem; margin: 1.5rem auto 0; }

.testimonials__wall {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.testimonials__wall > .testimonials__row:not(:last-child) { margin-bottom: 1.5rem; }
.testimonials__row { display: flex; align-items: stretch; gap: 1.5rem; width: max-content; }
.testimonials__row-group { display: flex; align-items: stretch; gap: 1.5rem; padding-right: 1.5rem; flex-shrink: 0; }

.testimonial-card {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(38, 38, 44, 0.6);
  background: rgba(13, 13, 17, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 640px) { .testimonial-card { width: 380px; } }
.testimonial-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.5rem;
}
.testimonial-card__photo { position: relative; flex-shrink: 0; height: 140px; }
.testimonial-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.testimonial-card__photo-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(3, 3, 5, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--gold-300);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.testimonial-card--has-photo .testimonial-card__body { padding-top: 1.25rem; }
/* The content block (stars+quote) fills all the space above the footer and
   centers its own text within that space, so a short quote leaves breathing
   room evenly above/below it instead of one dead gap stranded at the
   bottom — the footer still stays pinned flush to the card's bottom edge
   either way, since this block always claims the full remaining height. */
.testimonial-card__content { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.testimonial-card__stars { flex-shrink: 0; display: flex; align-items: center; gap: 0.25rem; margin-bottom: 1rem; }
.testimonial-card__star { color: var(--gold-400); }
.testimonial-card__quote {
  color: var(--ink-100);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.testimonial-card__footer { flex-shrink: 0; margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--ink-800);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.testimonial-card__attribution { text-align: left; }
.testimonial-card__name { color: #fff; font-weight: 500; font-size: 0.875rem; margin: 0; }
.testimonial-card__role { color: var(--ink-400); font-size: 0.75rem; margin: 0.125rem 0 0; }

.testimonials__meta {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.testimonials__count { color: var(--ink-200); font-size: 0.8125rem; letter-spacing: 0.2em; }
.testimonials__divider { display: none; width: 1px; height: 1rem; background: var(--ink-700); }
@media (min-width: 640px) { .testimonials__divider { display: block; } }
.testimonials__google-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold-400); font-size: 0.875rem; transition: color 300ms ease; }
.testimonials__google-link:hover { color: var(--gold-300); }
.testimonials__google-link span { transition: transform 300ms ease; }
.testimonials__google-link:hover span { transform: translateX(4px); }

/* Mobile: the card text (name, quote, meta) was sized for desktop viewing
   distance and read too small on a phone — bump it up here. */
@media (max-width: 640px) {
  .testimonials__intro { font-size: 1rem; }
  .testimonial-card__quote { font-size: 1.0625rem; line-height: 1.7; }
  .testimonial-card__name { font-size: 1.0625rem; }
  .testimonial-card__avatar { width: 2.75rem; height: 2.75rem; font-size: 0.9375rem; }
  .testimonial-card__star { width: 18px; height: 18px; }
  .testimonial-card__photo-badge { font-size: 0.75rem; }
  .testimonials__count { font-size: 0.8125rem; }
  .testimonials__google-link { font-size: 0.9375rem; }
}
