/* ==========================================================================
   Testimonials (between About and the final CTA)
   Pitch black. One large editorial quote at a time, using the shared
   carousel's text variant for 2+ quotes.
   ========================================================================== */

.quotes {
  --carousel-accent: var(--color-brand-orange);

  background: var(--color-pitch-black);
  color: var(--color-white);
}

.quotes__inner {
  align-items: start;
}

.quotes__head {
  grid-column: 1 / span 3;
}

.quotes__eyebrow {
  color: var(--color-gray-500);
}

.quotes__title {
  margin-top: var(--space-4);
}

.quotes__body {
  grid-column: 5 / span 8;
}

/* ---- Quote ---- */
.quote {
  margin: 0;
}

/* Opening quote mark is a text character, in the brand orange */
.quote__text p {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.quote__text p::before {
  content: "\201C";
  color: var(--color-brand-orange);
}

.quote__text p::after {
  content: "\201D";
  color: var(--color-brand-orange);
}

.quote__person {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.quote__photo {
  flex: none;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--color-gray-900);
}

.quote__name {
  display: block;
  font-weight: var(--fw-semibold);
}

.quote__role {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-gray-500);
}

.quote__case {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  border-bottom: 2px solid var(--color-brand-orange);
}

.quote__case .btn__arrow {
  width: 14px;
  height: 14px;
}

/* ---- Reveal ---- */
.js .quotes__inner > * {
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.js .quotes__body {
  transition-delay: 150ms;
}

.js .quotes:not(.is-inview) .quotes__inner > * {
  opacity: 0;
  transform: translateY(16px);
}

/* ---- Tablet / mobile ---- */
@media (max-width: 1024px) {
  .quotes__head,
  .quotes__body {
    grid-column: 1 / -1;
  }

  .quotes__body {
    margin-top: var(--space-9);
  }
}

@media (max-width: 640px) {
  .quotes__body {
    margin-top: var(--space-7);
  }

  .quote__text p {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
  }

  .quote__person {
    margin-top: var(--space-6);
  }
}
