/* =========================================================
   PROOF STACK (Sticky proof wall + rising pills)
   - No new files
   - Proof wall stays sticky longer while pills rise over it
   - Sticky ends when the scene ends (normal scroll)
   ========================================================= */

.im-proof-stack{
  position: relative;
  /* This is what makes it stick "long enough" */
  min-height: 240vh;
  overflow: visible;
}

.im-proof-stack__sticky{
  position: sticky;
  top: 0;            /* if header is sticky, change to header height (e.g. 76px) */
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.im-proof-stack__sticky .im-proof-wall{
  height: 100%;
  display: flex;
  align-items: center;
}

.im-proof-stack__pills{
  position: relative;
  z-index: 2;

  /* KEY: pulls pills upward over the sticky proof wall */
  margin-top: -55vh;
}

/* Mobile tuning */
@media (max-width: 700px){
  .im-proof-stack{
    min-height: 210vh;
  }
  .im-proof-stack__pills{
    margin-top: -45vh;
  }
}

/* =========================================================
   PROOF WALL (2-row marquee)
   - Super lightweight: no blur, no heavy shadows
   - Premium look: borders + subtle sheen
   - Two rows scrolling opposite directions
   ========================================================= */

.im-proof-wall {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

.im-proof-wall__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.im-proof-wall__mask {
  position: relative;
  overflow: hidden;
}

/* Subtle edge fades (cheap). */
.im-proof-wall__mask::before,
.im-proof-wall__mask::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.25;
}

.im-proof-wall__mask::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,1), rgba(0,0,0,0));
}

.im-proof-wall__mask::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Rows stack */
.im-proof-wall__rows {
  display: grid;
  gap: 18px;
}

/* Each row is a marquee */
.im-proof-wall__row {
  position: relative;
  overflow: hidden;
}

/* Track */
.im-proof-wall__track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  animation: im-proof-marquee-left 42s linear infinite;
}

/* Opposite direction */
.im-proof-wall__row--right .im-proof-wall__track {
  animation-name: im-proof-marquee-right;
}

/* Pause on hover (desktop only) */
@media (hover:hover) and (pointer:fine) {
  .im-proof-wall__row:hover .im-proof-wall__track {
    animation-play-state: paused;
  }
}

@keyframes im-proof-marquee-left {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

@keyframes im-proof-marquee-right {
  from { transform: translate3d(-50%,0,0); }
  to   { transform: translate3d(0,0,0); }
}

/* =========================
   Card base (premium + clear)
   ========================= */

.im-proof-card {
  position: relative;
  flex: 0 0 auto;
  width: 340px;
  min-height: 160px;
  padding: 22px 22px;
  border-radius: 16px;
  background: rgba(14, 18, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
  overflow: hidden;
}

.im-proof-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.00) 48%),
    linear-gradient(135deg, rgba(120,160,255,0.10), rgba(120,160,255,0.00) 55%);
  opacity: 0.55;
}

/* Glass style (no blur) */
.im-proof-card.is-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
}

.im-proof-card.is-tint-b:not(.is-glass) {
  background: rgba(16, 22, 34, 0.92);
}

/* Quote card */
.im-proof-card--quote {
  display: grid;
  gap: 12px;
}

.im-proof-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.im-proof-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  flex: 0 0 auto;
}

.im-proof-card__name {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.im-proof-card__quote {
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  line-height: 1.5;
}

/* Stat card */
.im-proof-card--stat {
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.im-proof-card__big {
  font-size: 64px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.96);
}

.im-proof-card__small {
  font-size: 14px;
  color: rgba(255,255,255,0.80);
}

/* Screen reader list hidden visually */
.im-proof-wall__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Responsive */
@media (max-width: 900px) {
  .im-proof-wall {
    padding: 70px 0;
  }

  .im-proof-wall__wrap {
    padding: 0 18px;
  }

  .im-proof-card {
    width: 300px;
    min-height: 150px;
  }

  .im-proof-card__big {
    font-size: 56px;
  }
}

@media (max-width: 700px) {
  .im-proof-wall {
    padding: 54px 0;
  }

  .im-proof-wall__wrap {
    padding: 0 16px;
  }

  .im-proof-wall__mask::before,
  .im-proof-wall__mask::after {
    width: 60px;
    opacity: 0.18;
  }

  .im-proof-wall__track {
    gap: 14px;
    animation-duration: 34s;
  }

  .im-proof-card {
    width: 260px;
    min-height: 140px;
    padding: 18px 18px;
    border-radius: 14px;
  }

  .im-proof-card__big {
    font-size: 48px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .im-proof-wall__track {
    animation: none !important;
    transform: none !important;
  }

  .im-proof-stack{
    min-height: auto;
  }

  .im-proof-stack__sticky{
    position: relative;
    height: auto;
    overflow: visible;
  }

  .im-proof-stack__pills{
    margin-top: 0;
  }
}
