/* Reel result widgets: one row of animated stat cards under the client logos,
   scrolling endlessly left-to-right at the same loop duration as the logo carousel (40s).
   Same #ajax-content-wrap / !important approach as logo-carousel.css, because the theme
   forces list and text styles inside `.centered-text` columns. */
#ajax-content-wrap .fw-marquee {
  --fw-w: clamp(125px, 11vw, 165px);
  display: block !important;
  margin: 0 -20vw 0 !important;
  padding: 18px 0;
  overflow-x: auto;
  scrollbar-width: none;
  text-align: left;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

#ajax-content-wrap .fw-marquee::-webkit-scrollbar {
  display: none;
}

#ajax-content-wrap .fw-track {
  display: flex !important;
  width: max-content;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

#ajax-content-wrap .fw-track .fw-tile {
  flex: 0 0 auto;
  width: var(--fw-w);
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

/* ---- Card (scaled from a fixed 440px design to the tile width by fw-widgets.js) ---- */
.fw {
  position: relative;
  width: 100%;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}
.fw * { box-sizing: border-box; }
.fw-in { position: absolute; left: 0; top: 0; width: 440px; transform-origin: 0 0; padding: 24px; }
.fw .card { position: relative; overflow: hidden; will-change: transform; }
.fw .mainnum { display: inline-block; position: relative; z-index: 6; transform-origin: 50% 50%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fw .veil { position: absolute; inset: 0; z-index: 5; opacity: 0; pointer-events: none; }
.fw .bigclone { transform-origin: 50% 50%; }
.fw .bigcap { position: absolute; left: 0; right: 0; z-index: 10; text-align: center; opacity: 0; pointer-events: none; }
.fw .cnt { font-variant-numeric: tabular-nums; }
.fw img { max-width: none; margin: 0; }
#ajax-content-wrap .fw .fw-logo { display: block !important; width: 92px !important; max-width: 92px !important; height: 29px !important; }

.fw .card.s2 {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 150' width='130' height='150'><g fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1.2'><polygon points='65,4 122.5,37.5 122.5,112.5 65,146 7.5,112.5 7.5,37.5'/><polygon points='0,-71 57.5,-37.5 57.5,37.5 0,71 -57.5,37.5 -57.5,-37.5'/><polygon points='130,-71 187.5,-37.5 187.5,37.5 130,71 72.5,37.5 72.5,-37.5'/><polygon points='0,79 57.5,112.5 57.5,187.5 0,221 -57.5,187.5 -57.5,112.5'/><polygon points='130,79 187.5,112.5 187.5,187.5 130,221 72.5,187.5 72.5,112.5'/></g></svg>"), radial-gradient(120% 80% at 85% 0%, #7e22ce 0%, rgba(126, 34, 206, 0) 55%), linear-gradient(160deg, #3a1f6b, #2d1854 55%, #1d0f38);
  background-size: 130px 150px, auto, auto;
  border-radius: 20px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(45, 24, 84, .55);
}
.fw .s2 .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fw .s2 .pill { font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; color: #e9d5ff; border: 1px solid rgba(233, 213, 255, .35); padding: 6px 12px; border-radius: 99px; }
.fw .s2 .top { display: flex; gap: 18px; }
.fw .s2 .th { width: 132px !important; height: 236px !important; border-radius: 14px; object-fit: cover; flex: none; border: 2px solid rgba(255, 255, 255, .18); }
.fw .s2 .ttl { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; }
.fw .s2 .rg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fw .s2 .rc { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.fw .s2 .rc svg { flex: none; }
.fw .s2 .lbl { margin-top: 22px; font-size: 13px; font-weight: 600; color: #c4b5fd; }
.fw .s2 .mainnum { font-size: 46px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin-top: 2px; background: linear-gradient(90deg, #fff, #e9d5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fw .s2 .bar { height: 8px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.fw .s2 .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a855f7, #f0abfc); box-shadow: 0 0 14px #a855f7; border-radius: 99px; }
.fw .s2 .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.fw .s2 .tile { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.fw .s2 .sl { font-size: 12px; font-weight: 600; color: #c4b5fd; }
.fw .s2 .sv { font-size: 22px; font-weight: 800; margin-top: 4px; }
.fw .s2 .veil { background: radial-gradient(70% 50% at 50% 50%, rgba(126, 34, 206, .55), rgba(29, 15, 56, .94)); }
.fw .s2 .bigcap { top: 63%; font-size: 15px; font-weight: 700; letter-spacing: .18em; color: #e9d5ff; }

/* ---- Endless scroll (only once the script has cloned the cards) ---- */
#ajax-content-wrap .fw-marquee.fw-ready {
  overflow: hidden;
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s ease, translate .9s cubic-bezier(.2, .9, .3, 1.1);
}
#ajax-content-wrap .fw-marquee.fw-ready.is-in {
  opacity: 1;
  translate: 0 0;
}
.fw-ready .fw-track {
  /* same loop duration as the logo carousel (.fl-track), opposite direction */
  animation: fw-scroll 40s linear infinite;
  animation-play-state: paused;
}
.fw-ready.is-in .fw-track { animation-play-state: running; }
.fw-ready:hover .fw-track,
.fw-ready.is-paused .fw-track,
.fw-ready.is-held .fw-track { animation-play-state: paused; }

/* Clicked card: the row stops and the card is lifted out with a gentle zoom. */
#ajax-content-wrap .fw-track .fw-tile {
  position: relative;
  transition: scale .45s cubic-bezier(.2, .9, .3, 1.2), filter .45s ease;
}
#ajax-content-wrap .fw-track .fw-tile.is-selected {
  z-index: 2;
  scale: 1.12;
  filter: drop-shadow(0 14px 22px rgba(126, 34, 206, .35));
}

@keyframes fw-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media only screen and (max-width: 690px) {
  #ajax-content-wrap .fw-marquee { margin-inline: -15vw !important; }
}

@media (prefers-reduced-motion: reduce) {
  #ajax-content-wrap .fw-marquee.fw-ready { opacity: 1; translate: none; transition: none; }
  .fw-ready .fw-track { animation: none; }
}
