* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #171717;
}

.testimonials {
  padding: 4rem 1rem;
}

.intro {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.heading {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
}

.copy {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #737373;
}

.grid {
  margin: 3.5rem auto 0;
  max-width: 72rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 1.5rem;
  transition: box-shadow 300ms ease;
}

.card:hover {
  box-shadow: 0 20px 40px -20px rgba(23, 23, 23, 0.15);
}

.quote-mark {
  width: 1.5rem;
  height: 1.5rem;
  color: #e5e5e5;
}

.quote {
  flex: 1;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #404040;
}

.author {
  margin: 1.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author img {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  object-fit: cover;
}

.author__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
}

.author__role {
  margin: 0;
  font-size: 0.75rem;
  color: #737373;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    padding: 1.75rem;
  }
}

/*
 * Testimonials 01 — "stagger reveal" animation identity. Same canonical
 * keyframe as `Testimonials01.tailwind.css`; see script.js for the
 * IntersectionObserver that adds `is-visible` once. The hover elevation
 * above is direct-manipulation feedback and stays active regardless.
 */
@keyframes al-testimonials01-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .al-testimonials01.al-testimonials01-js .card {
    opacity: 0;
    transform: translateY(18px);
  }

  .al-testimonials01.al-testimonials01-js.is-visible .card {
    animation: al-testimonials01-up 550ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
