/* ==========================================================================
   Reviews — vertical masonry wall (4 / 3 / 2 columns) + "Show more".
   Cards fade up as they scroll into view.
   Shopify: fill the same card markup from Loox (metafields / API).
   ========================================================================== */

.reviews {
  padding: 96px var(--gutter);
  background: var(--c-ink);
  color: #fff;
}

@media (min-width: 990px) {
  .reviews { padding: 140px var(--gutter); }
}

.reviews__inner { max-width: 1320px; margin: 0 auto; }

.reviews__head { margin-bottom: 48px; text-align: center; }
.reviews__head .eyebrow { color: var(--c-accent); }
.reviews__head .display { font-size: clamp(48px, 6vw, 92px); }

.reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.reviews__summary strong {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

/* ---------- stars ---------- */

.stars {
  --pct: 100%;
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.2);
}

.stars::before { content: "★★★★★"; }

.stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: var(--pct);
  overflow: hidden;
  color: var(--c-accent);
}

/* ---------- masonry wall ---------- */

.reviews__wall {
  column-count: 2;
  column-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 750px) { .reviews__wall { column-count: 3; column-gap: 16px; } }
@media (min-width: 990px) { .reviews__wall { column-count: 4; column-gap: 20px; } }

.review {
  display: inline-block;           /* keeps a card in one column */
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 18px;
  background: #161616;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (min-width: 750px) { .review { margin-bottom: 16px; } }
@media (min-width: 990px) { .review { margin-bottom: 20px; } }

.review[hidden] { display: none; }

/* fade-up when it scrolls into view (class set by JS) */
.js .review { opacity: 0; transform: translateY(24px); }

.review.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.review__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
}

.review__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.review:hover .review__media > img { transform: scale(1.04); }

/* PLACEHOLDER: LED box until there are customer photos */
.review__device { width: 80%; }

.review__body { padding: 16px 16px 18px; }

.review__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 8px;
  font-size: 14px;
}

.review__who strong { font-weight: 600; }

.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--c-accent);
}

.review__body blockquote {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.review__team {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 480px) {
  .review__body { padding: 12px 12px 14px; }
  .review__body blockquote { font-size: 13px; }
  .review__who { font-size: 13px; }
  .stars { font-size: 13px; }
}

/* ---------- show more ---------- */

.reviews__more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.reviews__more[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js .review { opacity: 1; transform: none; }
}
