* {
  box-sizing: border-box;
}

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

.wall {
  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: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 1.25rem;
}

.quote {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #262626;
}

.quote--lg {
  font-size: 1rem;
  line-height: 1.6;
}

.author {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

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

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

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

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

  .card--lg {
    grid-column: span 2 / span 2;
  }

  .quote--lg {
    font-size: 1.125rem;
  }
}

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

  .card {
    padding: 1.5rem;
  }
}

/*
 * Testimonials 04 — "depth stagger" animation identity. Same canonical
 * keyframe as `Testimonials04.tailwind.css`; see script.js for the
 * IntersectionObserver that adds `is-visible` once.
 */
@keyframes al-testimonials04-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .al-testimonials04.al-testimonials04-js .card {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  .al-testimonials04.al-testimonials04-js.is-visible .card {
    animation: al-testimonials04-rise 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
