/* =========================================================
   Trust strip — four lotus badges (image), edge to edge so
   the gold connectors in the artwork join up.
   ========================================================= */
.trust {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: 539fr 537fr 532fr 564fr;   /* matches each badge's width, so heights match */
  width: calc(100% - 2 * clamp(16px, 3vw, 40px));   /* same side gutters as the hero content */
  max-width: 900px;
  margin: clamp(100px, 13.2vw, 200px) auto clamp(30px, 2.5vw, 36px);   /* grows with the screen so the badges always sit below the zodiac wheel */
  justify-self: center;
  align-self: center;
  padding: 0;
  perspective: 900px;
}
.trust::before {                             /* soft purple glow behind the row */
  content: "";
  position: absolute;
  left: -10%; right: -10%; top: 10%; bottom: 0;
  background: radial-gradient(55% 70% at 50% 55%, rgba(120, 40, 220, .28), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.trust__item {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative;
  min-width: 0;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(40px) scale(.8);
  filter: blur(6px);
  transition: opacity .8s ease, transform 1s cubic-bezier(.34, 1.4, .64, 1), filter .8s ease;
  transition-delay: calc(var(--n, 0) * .14s);
}
.trust.is-in .trust__item { opacity: 1; transform: none; filter: none; }

.trust__badge {
  display: block;
  width: 100%;
  height: auto;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  filter: drop-shadow(0 0 0 rgba(255, 190, 90, 0));
  transition: transform .5s cubic-bezier(.34, 1.4, .64, 1), filter .4s ease;
}

/* light sweep, clipped to the badge's own shape */
.trust__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: var(--img) center / 100% 100% no-repeat;
          mask: var(--img) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 210, .5) 47%, rgba(255, 255, 255, .8) 50%, rgba(255, 240, 210, .5) 53%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateY(var(--lift));
  transition: transform .5s cubic-bezier(.34, 1.4, .64, 1);
}
.trust.is-in .trust__shine { animation: tbShine 6s ease-in-out infinite; animation-delay: calc(1s + var(--n, 0) * 1.5s); }

/* hover / focus: lift, tilt toward the cursor, golden glow */
.trust__item:hover, .trust__item:focus-visible { --lift: -8px; z-index: 2; }
.trust__item:hover .trust__badge, .trust__item:focus-visible .trust__badge {
  filter: drop-shadow(0 0 14px rgba(255, 190, 90, .55)) drop-shadow(0 0 30px rgba(170, 80, 255, .5)) brightness(1.08);
}
.trust__item:hover .trust__shine, .trust__item:focus-visible .trust__shine { animation: tbShine 1.1s ease-out 1; }
.trust__item.is-tilting .trust__badge { transition: transform .15s ease-out, filter .4s ease; }
.trust__item.is-pulse .trust__badge { animation: tbPulse .7s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes tbShine { 0% { opacity: 0; background-position: 130% 0; } 8% { opacity: 1; } 30% { opacity: 1; background-position: -30% 0; } 31%, 100% { opacity: 0; background-position: -30% 0; } }
@keyframes tbPulse { 0% { scale: 1; } 40% { scale: 1.08; filter: drop-shadow(0 0 24px rgba(255, 200, 110, .9)) brightness(1.15); } 100% { scale: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .trust { grid-template-columns: 1fr 1fr; row-gap: 6px; max-width: 420px; margin-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .trust__item { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .trust__badge, .trust__shine { animation: none !important; transition: none !important; }
}
