/* ==========================================================================
   Product page — Block 02: revolving review strip.
   One row of review cards that scrolls by itself (pauses on hover / focus).
   PLACEHOLDER reviews; swap in real photos + reviews later.
   ========================================================================== */

.rstrip {
  padding: 88px 0 96px;
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rstrip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1160px;
  margin: 0 auto 40px;
  padding: 0 var(--gutter);
}

.rstrip__head .eyebrow { color: var(--c-accent); }
.rstrip__head .display { font-size: clamp(44px, 5.5vw, 80px); }

.rstrip__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.rstrip__summary strong {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.rstrip__summary span { display: block; }

/* stars: volt fill over grey, --pct = rating */
.rstrip .stars {
  --pct: 100%;
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;               /* no spacing, so --pct maps exactly to whole stars */
  color: rgba(255, 255, 255, 0.2);
}

.rstrip .stars::before { content: "★★★★★"; }

.rstrip .stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: var(--pct);
  overflow: hidden;
  color: var(--c-accent);
}

/* ---------- the moving row ---------- */

.rstrip__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.rstrip__track {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: rstrip-scroll var(--speed, 60s) linear infinite;
}

.rstrip__viewport:hover .rstrip__track,
.rstrip__viewport:focus-within .rstrip__track { animation-play-state: paused; }

/* the track holds the cards twice, so moving it by half loops seamlessly */
@keyframes rstrip-scroll {
  to { transform: translateX(calc(-50% - 8px)); }
}

/* ---------- card ---------- */

.rcard {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 300px;
  overflow: hidden;
  border-radius: 18px;
  background: #161616;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* customer photo slot */
.rcard__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(212, 255, 0, 0.1), transparent 70%),
    linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
}

.rcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.rcard__photo-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.rcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 20px;
}

.rcard blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.rcard__who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
}

.rcard__who strong { font-weight: 700; }

.rcard__team {
  font: 700 10px/1 var(--font-mono);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.rcard__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-accent);
}

@media (max-width: 600px) {
  .rstrip { padding: 64px 0 72px; }
  .rstrip__head { margin-bottom: 28px; }
  .rcard { width: 260px; }
}

/* reduced motion: no auto-scroll, swipe/scroll by hand instead */
@media (prefers-reduced-motion: reduce) {
  .rstrip__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); }
  .rstrip__track { animation: none; }
  .rstrip__track [aria-hidden="true"] { display: none; }
}
