/* Wise client stories — straight portrait cards in a continuous horizontal ribbon. */
.testimonials {
  --story-width: 324px;
  --story-gap: 28px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #0a142b;
  color: #f3f7ff;
  padding: 108px 0 74px;
  border-top: 1px solid #213153;
  border-bottom: 1px solid #213153;
}
.testimonials::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 74%, #1c396b55, transparent 72%);
}
.testimonials-header {
  text-align: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.testimonials-header h2 {
  font-size: clamp(38px, 4.2vw, 66px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.036em;
  max-width: 840px;
  margin: auto;
}
.testimonials-header h2 span { color: #75c9ff; }
.testimonials-lead {
  color: #b5c8e8;
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 14px;
  line-height: 1.75;
}
.testimonials-window {
  position: relative;
  width: 100%;
  height: 492px;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, black 4.5%, black 95.5%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4.5%, black 95.5%, transparent);
}
.testimonials-track {
  display: flex;
  width: max-content;
  flex: 0 0 auto;
  margin-left: -115px;
  animation: wise-stories-circulate 62s linear infinite;
  will-change: transform;
}
.testimonials-set {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  gap: var(--story-gap);
  padding-right: var(--story-gap);
}
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 var(--story-width);
  width: var(--story-width);
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3f5e90;
  border-radius: 15px;
  background: linear-gradient(148deg, #152d52 0%, #0e203e 54%, #13284b 100%);
  box-shadow: 10px 22px 33px -26px #000b;
  transform: none;
  backface-visibility: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.testimonial-card:focus-visible {
  transform: translateY(-8px);
  border-color: #75c9ff;
  outline: 2px solid #75c9ff;
  outline-offset: 4px;
  box-shadow: 0 18px 36px -18px #000c;
}
@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover {
    transform: translateY(-8px);
    border-color: #75c9ff;
    box-shadow: 0 18px 36px -18px #000c;
  }
}
.testimonial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, #7ccfff0d, transparent 51%);
}
.testimonial-card-head {
  position: relative;
  flex: 0 0 auto;
}
.testimonial-card-count {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #0a142b;
  color: #90d4ff;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.testimonial-portrait {
  width: 100%;
  height: 220px;
  border-radius: 0;
  background: #345278;
  object-fit: cover;
  object-position: center 40%;
}
.testimonial-card-body { position: relative; z-index: 1; padding: 25px 26px 28px; }
.testimonial-card-body h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}
.testimonial-card-body p {
  color: #cbdaf0;
  font-size: 14px;
  line-height: 1.78;
}
.testimonials[data-paused="true"] .testimonials-track,
.testimonials-window:hover .testimonials-track,
.testimonials-window:focus-within .testimonials-track {
  animation-play-state: paused;
}
@keyframes wise-stories-circulate { to { transform: translateX(-50%); } }
@media (max-width: 850px) {
  .testimonials { padding: 86px 0 68px; --story-width: 285px; --story-gap: 21px; }
  .testimonials-window { height: 456px; }
  .testimonial-card { min-height: 395px; }
  .testimonial-portrait { height: 200px; }
  .testimonial-card-body { padding: 23px; }
  .testimonial-card-body h3 { font-size: 17px; }
  .testimonial-card-body p { font-size: 13px; }
}
@media (max-width: 620px) {
  .testimonials { padding: 75px 0 55px; --story-width: 254px; --story-gap: 16px; }
  .testimonials-header { margin-bottom: 13px; }
  .testimonials-header h2 { font-size: clamp(34px, 10vw, 47px); }
  .testimonials-lead { margin-top: 16px; font-size: 12px; }
  .testimonials-window { height: 432px; mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); }
  .testimonials-track { margin-left: -60px; animation-duration: 58s; }
  .testimonial-card { min-height: 380px; border-radius: 14px; }
  .testimonial-portrait { height: 190px; }
  .testimonial-card-body { padding: 22px 21px; }
  .testimonial-card-body h3 { font-size: 17px; margin-bottom: 8px; }
  .testimonial-card-body p { font-size: 12.5px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none !important; transform: none !important; margin-left: 0; padding-inline: 22px; }
  .testimonials-set[aria-hidden="true"] { display: none; }
  .testimonial-card { animation: none !important; transform: none !important; }
  .testimonials-window { overflow-x: auto; scroll-snap-type: x mandatory; mask-image: none; -webkit-mask-image: none; }
  .testimonial-card { scroll-snap-align: center; }
}
