/* ============================================================
   PRE-FOOTER WAVE GALLERY + SOCIAL PROOF
   (reference: two sine-wave photo ribbons moving opposite ways,
    calm centered editorial content). Light brand background.
   ============================================================ */
.wg {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  min-height: 96vh;
  display: grid;
  place-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
  isolation: isolate;
}

/* ---- ribbons ---- */
.wg__ribbon {
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.wg__ribbon--top { top: clamp(2.5rem, 8vh, 7rem); transform: translateX(7vw); }
.wg__ribbon--bottom { bottom: clamp(2.5rem, 8vh, 7rem); transform: translateX(-7vw); }
.wg--in .wg__ribbon { opacity: 1; transform: none; }

.wg__track {
  display: flex;
  align-items: center;
  gap: 15px;
  width: max-content;
  will-change: transform;
  animation: wgScroll 46s linear infinite;
}
.wg__ribbon--bottom .wg__track { animation-duration: 52s; animation-direction: reverse; }
@keyframes wgScroll { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .wg__track { animation-duration: 160s; }
}

.wg-tile {
  flex: none;
  width: 74px;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper-3);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  pointer-events: auto;
}
.wg-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--op, center);
  display: block;
}
.wg-tile--wide { width: 96px; aspect-ratio: 4 / 3; }
@media (hover: hover) and (pointer: fine) {
  .wg-tile:hover {
    transform: translateY(var(--y, 0)) rotate(0deg) scale(1.06);
    box-shadow: 0 18px 36px -14px rgba(16, 24, 32, .4);
    z-index: 3;
  }
}

/* ---- central content ---- */
.wg__center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 40rem;
  padding-inline: 1.5rem;
}
.wg__center .eyebrow { justify-content: center; margin-bottom: 1.2rem; }
.wg__center h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
.wg__center p {
  margin-top: 1.1rem;
  color: var(--ink-60);
  font-size: 1.05rem;
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 34rem;
  margin-inline: auto;
}
.wg__trust {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-60);
}
.wg__trust .stars { display: inline-flex; gap: .1rem; color: var(--green); }
.wg__trust .stars svg { width: 15px; height: 15px; }
.wg__actions {
  margin-top: 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.wg__glink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
}
.wg__glink:hover { color: var(--blue-deep); }

/* entrance stagger for central text */
.wg__center .reveal { transition-delay: var(--d, 0s); }

/* ---- mobile ---- */
@media (max-width: 760px) {
  .wg { min-height: 88vh; }
  .wg-tile { width: 58px; border-radius: 7px; }
  .wg-tile--wide { width: 74px; }
  .wg__track { gap: 11px; animation-duration: 32s; }
  .wg__ribbon--bottom .wg__track { animation-duration: 38s; }
  .wg__center h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .wg__center p { font-size: 1rem; }
}
