/* ───────────────────────────────────────────────────────────────────────────
   OSPREXON — Client testimonials · responsive (all layouts & aspect ratios)
   Loaded after clients.css + responsive.css
   ─────────────────────────────────────────────────────────────────────── */

.clients {
  overflow-x: clip;
  max-width: 100%;
}

.clients__head,
.clients__v-envelope {
  max-width: 100%;
}

/* ── Head ── */
@media (max-width: 640px) {
  .clients__head {
    margin-bottom: clamp(24px, 5vw, 40px);
    padding-inline: max(0px, env(safe-area-inset-left))
      max(0px, env(safe-area-inset-right));
  }

  .clients__title {
    font-size: clamp(1.85rem, 8.2vw, 2.65rem);
    line-height: 1.02;
  }

  .clients__subtitle {
    font-size: clamp(0.95rem, 3.4vw, 1.05rem);
    line-height: 1.55;
    padding-inline: 0.15rem;
  }

  .clients__trust {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 8px;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .clients__eyebrow {
    letter-spacing: 0.28em;
    font-size: 0.62rem;
    padding: 5px 10px 5px 8px;
  }
}

/* ── Cinematic: progress strip ── */
@media (max-width: 640px) {
  .clients__progress {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    max-width: calc(100% - 24px);
    padding-inline: 4px;
  }

  .clients__progress-dots {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .testimonial-prev,
  .testimonial-next {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 400px) {
  .clients__progress-num {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .clients__progress-dot {
    width: 18px;
  }
}

/* ── Cinematic: pin / envelope / cards ── */
@media (max-width: 1100px) {
  .clients__pin {
    width: min(100%, 100%);
  }
}

@media (max-width: 768px) {
  .clients__pin {
    margin-bottom: clamp(12px, 3vw, 24px);
  }

  .clients__scene {
    inset: clamp(28px, 7vw, 44px) clamp(10px, 2.5vw, 20px)
      clamp(36px, 7vw, 52px);
  }

  .clients__cards {
    max-width: min(56vw, 300px);
  }

  .t-card {
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(14px, 3.5vw, 18px) clamp(14px, 3.5vw, 18px)
      clamp(12px, 3vw, 16px);
    border-radius: 14px;
  }

  .t-card::before {
    font-size: clamp(72px, 18vw, 96px);
    top: -14px;
    right: 10px;
  }

  .t-card__quote {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(0.84rem, 2.9vw, 0.94rem);
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .t-card__stars svg {
    width: 12px;
    height: 12px;
  }

  .t-card__foot {
    grid-template-columns: 38px 1fr;
    gap: 8px;
  }

  .t-card__img {
    width: 38px;
    height: 38px;
  }

  .t-card__name {
    font-size: 0.86rem;
  }

  .t-card__role {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .clients__cards {
    max-width: min(58vw, 268px);
  }

  .envelope-img {
    width: min(94vw, 400px);
  }

  .clients__envelope-shadow {
    width: min(82vw, 360px);
  }

  .clients__progress {
    top: 6px;
  }
}

@media (max-width: 390px) {
  .clients__cards {
    max-width: min(60vw, 248px);
  }

  .envelope-img {
    width: min(96vw, 372px);
  }
}

/* Short viewports — phones landscape, small laptops */
@media (max-height: 700px) and (max-width: 1024px) {
  .clients {
    padding-block: clamp(1.75rem, 5vh, 2.5rem) clamp(16px, 3vh, 28px);
    padding-block: clamp(1.75rem, 5svh, 2.5rem) clamp(16px, 3svh, 28px);
  }

  .clients__head {
    margin-bottom: clamp(16px, 3vh, 28px);
    margin-bottom: clamp(16px, 3svh, 28px);
  }

  .clients__title {
    font-size: clamp(1.65rem, 5vw, 2.2rem);
  }

  .clients__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 0;
  }

  .clients__pin {
    height: min(88vh, 520px);
    height: min(88svh, 520px);
    min-height: clamp(380px, 85vh, 460px);
    min-height: clamp(380px, 85svh, 460px);
  }

  .clients__scene {
    inset: clamp(28px, 6vw, 40px) clamp(10px, 2.5vw, 20px)
      clamp(32px, 6vw, 44px);
  }

  .clients__cards {
    bottom: clamp(72px, 11vw, 96px);
    height: clamp(150px, 32vh, 190px);
    height: clamp(150px, 32svh, 190px);
    width: min(54vw, 280px);
  }

  .envelope-img {
    width: min(88vw, 400px);
  }

  .t-card {
    padding: 16px 16px 14px;
  }

  .t-card__quote {
    font-size: clamp(0.88rem, 2.5vw, 0.98rem);
    margin-bottom: 10px;
  }
}

/* Very short — landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .clients__head .clients__subtitle {
    display: none;
  }

  .clients__trust {
    margin-top: 10px;
  }

  .clients__pin {
    height: min(92vh, 480px);
    height: min(92svh, 480px);
    min-height: clamp(340px, 90vh, 420px);
    min-height: clamp(340px, 90svh, 420px);
  }

  .clients__cards {
    bottom: clamp(60px, 11vh, 88px);
    height: clamp(160px, 36vh, 200px);
    width: min(78vw, 380px);
  }

  .envelope-img {
    width: min(52vh, 400px);
  }
}

/* Tall narrow phones */
@media (min-height: 800px) and (max-width: 480px) {
  .clients__pin {
    min-height: clamp(480px, 72vh, 580px);
    min-height: clamp(480px, 72svh, 580px);
  }
}

/* Galaxy S8 class (360px) */
@media (max-width: 360px) {
  .clients__cards {
    max-width: min(62vw, 236px);
  }
  .envelope-img {
    width: min(97vw, 350px);
  }
  .clients__progress-num {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }
}

/* Ultra-narrow: ≤320px (Galaxy Fold, budget phones) */
@media (max-width: 320px) {
  .clients__head {
    padding-inline: 0;
  }
  .clients__cards {
    max-width: min(64vw, 210px);
  }
  .envelope-img {
    width: min(98vw, 308px);
  }
  .clients__progress {
    max-width: calc(100% - 12px);
    padding-inline: 2px;
    gap: 6px;
  }
  .clients__progress-dots {
    gap: 5px;
  }
  .clients__progress-dot {
    width: 14px;
    height: 2.5px;
  }
  .testimonial-prev,
  .testimonial-next {
    min-width: 40px;
    min-height: 40px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* Ultra-wide — keep stage centered, avoid overstretch */
@media (min-width: 1400px) {
  .clients__pin {
    max-width: 1240px;
  }
}

/* Touch targets — testimonial controls */
.testimonial-prev,
.testimonial-next {
  touch-action: manipulation;
}
