/* voices — testimonial cards.
   Baseball scopes this grid under `body.v4` and a competing `.variant-root`
   rule set, leftovers of an A/B test. Unscoped here. */
.voices .sec__inner { display: flex; flex-direction: column; align-items: flex-start; }
.voices__grid { width: 100%; }

.voice-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--color-white);
  display: block;
  border-radius: var(--radius-card);
  background: var(--color-navy);
  transition: transform var(--transition-fast);
}
a.voice-card:hover { transform: translateY(-3px); }

.voice-card__img   { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voice-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0000 35%, #000000bf); pointer-events: none; }
.voice-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 4; display: none; background: #000; }
.voice-card.is-playing .voice-card__video   { display: block; }
.voice-card.is-playing .voice-card__caption { display: none; }

.voice-card__btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: #00000099;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border-radius: 6px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
}
.voice-card__btn::before {
  content: "";
  width: 11px;
  aspect-ratio: 23 / 13;
  background: var(--accent-decor);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.voice-card__btn--pause::before { clip-path: polygon(0 0, 38% 0, 38% 100%, 0 100%, 0 0); aspect-ratio: 1; width: 9px; }
.voice-card__btn--pause,
.voice-card.is-playing .voice-card__btn--play { display: none; }
.voice-card.is-playing .voice-card__btn--pause { display: inline-flex; }

.voice-card__caption { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 4px; }
.voice-card__name {
  font-family: var(--font-display);
  font-weight: var(--weight-poster-heavy);
  text-transform: uppercase;
  font-size: var(--fs-h2);
  line-height: 1.05;
  color: var(--color-white);
}
/* Pastel #100: Zach asked for each quote to carry a visual, cut to its
   strongest line and set larger. The card already had the photo and the
   scrim; this is the line itself. Display face, because at this size it is
   the thing being read, not a caption under a face. */
.voice-card__quote {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: var(--weight-poster-heavy);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.18;
  text-wrap: pretty;
  margin-bottom: 10px;
}
/* The quotation marks come from here, not from the stored copy. An editor
   pasting a review should not have to remember to type curly quotes, four
   cards should not disagree about which kind they used, and a card with an
   empty quote field renders no stray pair of marks because the element it
   hangs off is not printed at all. */
.voice-card__quote::before { content: '\201C'; }
.voice-card__quote::after  { content: '\201D'; }
/* A quoted caption is several lines tall, so the stock scrim -- transparent
   until 35% -- runs out above the text. It starts earlier and ends darker
   only on cards that carry a quote, so an unquoted grid is untouched. */
.voice-card--quoted .voice-card__shade {
  background: linear-gradient(180deg, #0000 8%, #00000047 38%, #000000d9);
}

.voice-card__role { color: #ffffffb3; font-family: var(--font-body); font-weight: var(--weight-bold); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
