* {
  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;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.carousel-section {
  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;
}

.wrap {
  margin: 3rem auto 0;
  max-width: 42rem;
}

.viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 2rem;
  text-align: center;
  margin: 0;
}

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

.quote {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 500;
  color: #262626;
}

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

.author img {
  width: 3rem;
  height: 3rem;
  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;
}

.controls {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #525252;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}

.arrow svg {
  width: 1.125rem;
  height: 1.125rem;
}

.arrow:hover {
  border-color: #171717;
  color: #171717;
}

.arrow:focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}

.dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  background: #e5e5e5;
  padding: 0;
  cursor: pointer;
  transition:
    width 300ms ease,
    background-color 300ms ease;
}

.dot:hover {
  background: #d4d4d4;
}

.dot.is-active {
  width: 1.5rem;
  background: #171717;
}

.dot:focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .quote {
    font-size: 1.25rem;
  }
}

/*
 * Testimonials 03 — "directional slide transition" animation identity.
 * Same canonical keyframes as `Testimonials03.tailwind.css`; see
 * script.js for the direction/aria-live logic and the reflow trick that
 * restarts the animation on every navigation. Direct-manipulation
 * feedback driven by the visitor's own click/swipe/keypress, so it stays
 * active under reduced motion — only shortened to a near-instant
 * cross-fade there, since the slide itself is how a visitor confirms
 * their action did something.
 */
@keyframes al-testimonials03-from-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes al-testimonials03-from-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes al-testimonials03-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide[data-direction="next"] {
  animation: al-testimonials03-from-right 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide[data-direction="prev"] {
  animation: al-testimonials03-from-left 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .slide[data-direction] {
    animation: al-testimonials03-fade 120ms linear both;
  }
}
