
.client-stories {
  padding: 68px 24px 88px;
  background: linear-gradient(135deg, #f1f8ff 0%, #f8fbff 48%, #eff9ff 100%);
  color: #080d30;
  overflow: hidden;
}
.client-stories *, .story-dialog * { box-sizing: border-box; letter-spacing: 0; }
.client-stories__shell { max-width: 1180px; margin: 0 auto; }
.client-stories__intro { position: relative; text-align: center; margin: 0 auto 38px; }
.client-stories__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border-radius: 30px; background: #e7f2ff; color: #4d5ff0;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
}
.client-stories__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(120deg,#00c9ff,#673dff); box-shadow: 0 0 8px #4aaeff66; }
.client-stories__intro h2 { margin: 18px 0 12px; font-size: 42px; line-height: 1.12; font-weight: 850; letter-spacing: 0; }
.client-stories__intro h2 span { display: block; }
.client-stories__intro h2 span:last-child { background: linear-gradient(100deg,#098dff 20%,#3156ff 54%,#a51eff 85%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.client-stories__intro p { max-width: 510px; margin: 0 auto; color: #7383a4; font-size: 15px; line-height: 1.5; font-weight: 500; }
.client-stories__note { position: absolute; right: 10px; bottom: -14px; color: #7c84d8; font: 17px/1.2 "Segoe Print", cursive; transform: rotate(-10deg); }
.client-stories__note svg { display: block; width: 32px; height: 32px; margin: 8px auto 0; }
.client-stories__carousel { position: relative; }
.client-stories__rail {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 20px;
  scroll-behavior: smooth;
}
.client-stories__rail::-webkit-scrollbar { display: none; }
.client-story {
  position: relative; flex: 0 0 220px; min-width: 0; aspect-ratio: 9 / 16;
  border-radius: 8px; overflow: hidden; scroll-snap-align: start;
  background: #56616b; box-shadow: 0 8px 18px #31496316;
}
.client-story__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .4s ease; }
.client-story:hover .client-story__poster { transform: scale(1.035); }
.client-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#000a 0%,#0002 30%,transparent 55%,#000b 100%); pointer-events: none; }
.client-story__play {
  position: absolute; z-index: 2; left: 50%; top: 53%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border: 1px solid #ffffffd9; border-radius: 50%;
  display: grid; place-items: center; background: #ffffff2e; color: white;
  backdrop-filter: blur(7px); cursor: pointer; transition: background .2s, box-shadow .2s;
}
.client-story__play:hover { background: #1b88ffb3; box-shadow: 0 0 0 5px #ffffff22; }
.client-story__play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.client-story__meta { position: absolute; z-index: 1; bottom: 15px; left: 12px; right: 12px; display: flex; align-items: center; gap: 7px; color: white; }
.client-story__avatar { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; border: 1px solid #ffffffaa; flex-shrink: 0; }
.client-story__identity { flex: 1; min-width: 0; }
.client-story__identity strong { display: block; font-size: 11px; line-height: 1.4; font-weight: 750; }
.client-story__identity span { display: block; font-size: 9px; line-height: 1.4; color: #e5e9ef; }
.client-story__sample { position: absolute; z-index: 1; right: 12px; bottom: 57px; color: white; font-size: 9px; background: #0007; padding: 3px 6px; border: 1px solid #ffffff44; border-radius: 4px; }
.client-stories__arrow {
  position: absolute; z-index: 3; top: calc(50% - 8px); transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; background: white;
  border: 1px solid #e2edff; border-radius: 50%; color: #677de2;
  box-shadow: 0 4px 14px #3661ac1a; cursor: pointer;
}
.client-stories__arrow svg { width: 21px; height: 21px; }
.client-stories__arrow--previous { left: -18px; }
.client-stories__arrow--next { right: -18px; }
.client-stories__arrow:disabled { opacity: .5; cursor: default; }
.client-stories__pagination { display: flex; align-items: center; justify-content: center; gap: 1px; min-height: 32px; margin: 0 0 20px; }
.client-stories__dot { display: grid; place-items: center; padding: 0; border: 0; width: 23px; height: 28px; background: transparent; cursor: pointer; }
.client-stories__dot::before { content: ""; width: 6px; height: 6px; border-radius: 6px; background: #d7e2f4; transition: width .2s; }
.client-stories__dot[aria-current="true"]::before { width: 15px; background: linear-gradient(90deg,#05c8ff,#6240ff); box-shadow: 0 2px 6px #258bff33; }
.client-stories__stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: #ffffff80; border-top: 1px solid #e0eafa; border-bottom: 1px solid #e0eafa; padding: 24px 0; }
.client-stories__stat { text-align: center; padding: 0 8px; }
.client-stories__stat + .client-stories__stat { border-left: 1px solid #dfe7fb; }
.client-stories__stat-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 9px; border-radius: 50%; background: #f1f8ff; color: #0d9dff; box-shadow: 0 3px 15px #5698fa12; }
.client-stories__stat-icon svg { width: 23px; height: 23px; }
.client-stories__stat strong { display: block; font-size: 22px; line-height: 1.35; font-weight: 800; }
.client-stories__stat small { display: block; color: #7483a6; font-size: 12px; line-height: 1.5; }
.client-stories__disclosure { color: #7889a2; font-size: 10px; text-align: center; margin: 10px 0 0; }
.client-stories button:focus-visible, .client-stories__rail:focus-visible, .story-dialog button:focus-visible { outline: 3px solid #126dff; outline-offset: 3px; }
.story-dialog {
  padding: 0;
  border: 0;
  border-radius: 18px;
  width: min(430px, calc(100vw - 28px));
  height: min(780px, calc(100dvh - 34px));
  max-height: calc(100dvh - 34px);
  overflow: hidden;
  color: white;
  background: #05070d;
  box-shadow: 0 28px 90px rgba(3, 8, 22, 0.55);
}
.story-dialog::backdrop { background: rgba(6, 14, 28, 0.78); backdrop-filter: blur(12px); }
.story-dialog__close {
  position: absolute; right: 12px; top: 12px; z-index: 4; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%; display: grid; place-items: center;
  color: white; background: rgba(9,18,34,.64); box-shadow: 0 10px 26px rgba(0,0,0,.24);
  backdrop-filter: blur(14px); cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.story-dialog__close:hover { background: rgba(19,38,72,.86); border-color: rgba(255,255,255,.42); transform: scale(1.04); }
.story-dialog__close svg { width: 18px; height: 18px; }
.story-dialog__media { position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, #1d3358, #05070d 64%); }
.story-dialog__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.24) 0%, transparent 25%, transparent 56%, rgba(0,0,0,.74) 100%);
}
.story-dialog__media > img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .48; filter: blur(2px) saturate(.9); }
.story-dialog__media video, .story-dialog__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #05070d; object-fit: contain; }
.story-dialog__pending { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 24px; color: white; text-align: center; background: linear-gradient(180deg, rgba(5,7,13,.15), rgba(5,7,13,.72)); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.story-dialog__pending svg { width: 38px; height: 38px; }
.story-dialog__pending strong { font-size: 19px; }
.story-dialog__pending span { font-size: 13px; color: rgba(255,255,255,.78); }
.story-dialog__copy {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: 18px 70px 62px 18px;
  background: linear-gradient(180deg, rgba(5,7,13,.88), rgba(5,7,13,.52) 48%, transparent);
  color: white; pointer-events: none;
}
.story-dialog__copy h3 { margin: 0 0 4px; font-size: 22px; line-height: 1.12; font-weight: 850; color: white; }
.story-dialog__copy p { display: inline-flex; width: max-content; max-width: 100%; margin: 3px 0 0; padding: 4px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.10); font-size: 12px; line-height: 1.2; color: rgba(255,255,255,.78); font-weight: 700; backdrop-filter: blur(8px); }
.story-dialog__copy blockquote { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.82); }
.client-story--fallback::before {
  content: var(--story-initial); position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.76); font-size: 76px; font-weight: 850;
  background: radial-gradient(circle at 30% 15%, #2aa7ff 0%, #3156ff 36%, #111827 72%);
}
.client-story--fallback .client-story__poster { opacity: 0; }
@media (max-width: 1000px) { .client-stories__note { display: none; } }
@media (max-width: 760px) {
  .client-stories { padding: 48px 20px 112px; }
  .client-stories__intro { margin-bottom: 25px; }
  .client-stories__intro h2 { font-size: 26px; margin-top: 16px; }
  .client-stories__intro p { max-width: 360px; font-size: 14px; }
  .client-stories__rail { gap: 12px; }
  .client-story { flex-basis: 185px; }
    .client-stories__arrow { width: 34px; height: 34px; }
  .client-stories__arrow--previous { left: -15px; }
  .client-stories__arrow--next { right: -15px; }
  .client-stories__stats { padding: 20px 0; }
  .client-stories__stat strong { font-size: 19px; }
  .client-stories__stat small { font-size: 10px; }
}
@media (max-width: 400px) {
  .client-stories__intro h2 { font-size: 22px; }
  .client-stories__intro p { font-size: 13px; }
  .client-story { flex-basis: 172px; }
}
@media (max-width: 340px) { .client-stories__intro h2 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .client-stories__rail { scroll-behavior: auto; }
  .client-story__poster, .client-story__play, .client-stories__dot::before { transition: none; }
}
/* Final testimonial video lightbox alignment */
.story-dialog {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: min(430px, calc(100vw - 32px), calc((100dvh - 72px) * 9 / 16)) !important;
  height: auto !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 72px) !important;
  aspect-ratio: 9 / 16 !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 24px !important;
  overflow: visible !important;
  background:
    linear-gradient(180deg, rgba(16, 27, 48, .98), rgba(4, 8, 16, .98)) !important;
  box-shadow:
    0 34px 110px rgba(3, 8, 22, .58),
    0 0 0 1px rgba(255, 255, 255, .06) inset !important;
}

.story-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(52, 111, 224, .20), transparent 34%),
    rgba(5, 12, 24, .82) !important;
  backdrop-filter: blur(14px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.05) !important;
}

.story-dialog__media {
  position: absolute !important;
  inset: 10px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #05070d !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
}

.story-dialog__media::before {
  border-radius: inherit !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, transparent 24%, transparent 62%, rgba(0, 0, 0, .55) 100%) !important;
}

.story-dialog__media video,
.story-dialog__media iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: #05070d !important;
  object-fit: contain !important;
}

.story-dialog__media > img {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
}

.story-dialog__copy {
  left: 10px !important;
  right: 10px !important;
  top: 10px !important;
  padding: 18px 70px 72px 18px !important;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(180deg, rgba(5, 7, 13, .86), rgba(5, 7, 13, .42) 56%, transparent) !important;
}

.story-dialog__close {
  right: 18px !important;
  top: 18px !important;
  width: 44px !important;
  height: 44px !important;
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(13, 23, 42, .78) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28) !important;
}

.story-dialog__close:hover {
  background: rgba(21, 41, 76, .92) !important;
}

@media (max-width: 520px) {
  .story-dialog {
    width: min(calc(100vw - 28px), calc((100dvh - 58px) * 9 / 16)) !important;
    max-width: calc(100vw - 28px) !important;
    max-height: calc(100dvh - 58px) !important;
    padding: 8px !important;
    border-radius: 22px !important;
  }

  .story-dialog__media {
    inset: 8px !important;
    border-radius: 16px !important;
  }

  .story-dialog__copy {
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
    padding: 16px 62px 62px 16px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .story-dialog__copy h3 {
    font-size: 20px !important;
  }

  .story-dialog__close {
    right: 14px !important;
    top: 14px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-height: 620px) {
  .story-dialog {
    width: min(360px, calc(100vw - 28px), calc((100dvh - 36px) * 9 / 16)) !important;
    max-height: calc(100dvh - 36px) !important;
  }

  .story-dialog__copy {
    padding-bottom: 48px !important;
  }
}



