section:has([data-ui="customer-stories-v2"]) {
  font-family: var(--urovo-font-primary, "Poppins"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

section:has([data-ui="customer-stories-v2"]) > .container > div {
  max-width: none;
  width: 100%;
}
section:has([data-ui="customer-stories-v2"]) header:not(:has(> .flex)) {
  text-align: center;
  margin: 0;
}
section:has([data-ui="customer-stories-v2"]) header:not(:has(> .flex)) h2 {
  font-size: clamp(25px, 2.1vw, 40px);
  font-weight: 500;
  letter-spacing: normal;
  text-align: center;
  margin: 0;
}
section:has([data-ui="customer-stories-v2"]) header:not(:has(> .flex)) p {
  margin: 12px 0 0;
  color: #3e627a;
  font-size: clamp(14px, 1.1vw, 20px);
}
.urovo-stories-v2 {
  position: relative;
  margin-top: 44px;
}
.urovo-stories-v2__track {
  display: flex;
  gap: 18px;
  min-height: 0;
}
.urovo-stories-v2 .urovo-story-v2 {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
}
.urovo-story-v2__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}
.urovo-story-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: linear-gradient(transparent 45%, rgb(0 0 0 / 60%));
  pointer-events: none;
}
.urovo-story-v2__toggle {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}
.urovo-story-v2__toggle:focus-visible {
  outline: 3px solid #00aeef;
  outline-offset: -4px;
}
.urovo-story-v2__content {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 30px;
  color: #fff;
  pointer-events: none;
}
.urovo-story-v2__number {
  display: block;
  margin-bottom: 32px;
  font-size: 20px;
  font-weight: 600;
}
.urovo-story-v2__content h3 {
  margin: 0;
  font-size: clamp(22px, 1.75vw, 30px);
  font-weight: 500;
  letter-spacing: normal;
}
.urovo-story-v2__eyebrow,
.urovo-story-v2__description,
.urovo-story-v2__link {
  display: none;
}
.urovo-stories-v2 .urovo-story-v2.is-active {
  flex-grow: 4.2;
  aspect-ratio: 100 / 41;
}
.urovo-stories-v2 .urovo-story-v2.is-active .urovo-story-v2__image {
  width: 41%;
}
.urovo-story-v2.is-active::after {
  display: none;
}
.urovo-story-v2.is-active .urovo-story-v2__toggle {
  width: 41%;
}
/* The expanded copy is an interactive surface. Keep pointer hit testing on
   this surface when leaving its CTA instead of passing through to the card. */
.urovo-story-v2.is-active .urovo-story-v2__content {
  left: calc(41% + 36px);
  right: 32px;
  top: 12px;
  bottom: 85px;
  color: #252525;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.urovo-story-v2.is-active .urovo-story-v2__number {
  display: none;
}
.urovo-story-v2.is-active .urovo-story-v2__eyebrow {
  display: block;
  margin: 0 0 12px;
  flex-shrink: 0;
  color: #00aeef;
  font-size: 18px;
  font-weight: 700;
}
.urovo-story-v2.is-active .urovo-story-v2__content h3 {
  font-weight: 500;
  flex-shrink: 0;
}
.urovo-story-v2.is-active .urovo-story-v2__description {
  display: block;
  min-height: 0;
  overflow: auto;
  margin: 20px 0 0;
  color: #808080;
  font-size: 14px;
}
.urovo-story-v2.is-active .urovo-story-v2__link {
  display: inline-flex;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 36px;
}
.urovo-stories-v2__controls {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: var(--story-controls-x, 0px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.urovo-stories-v2__controls[hidden] {
  display: none;
}
.urovo-stories-v2__controls button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #dce2e7;
  border-radius: 50%;
  background: #fff;
  color: #153043;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}
.urovo-stories-v2-arrow {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}
.urovo-stories-v2-arrow--previous {
  transform: rotate(180deg);
}
.urovo-stories-v2-arrow svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.urovo-stories-v2-arrow__current {
  transform: translate(-50%, -50%);
}
.urovo-stories-v2-arrow__incoming {
  transform: translate(calc(-50% - 56px), -50%);
}
.urovo-stories-v2__controls button:is(:hover, :focus-visible) {
  background-color: #00aeef;
  border-color: #00aeef;
  color: #fff;
  box-shadow: 0 5px 14px rgb(0 174 239 / 20%);
}
.urovo-stories-v2__controls button:is(:hover, :focus-visible) .urovo-stories-v2-arrow__current {
  transform: translate(calc(-50% + 56px), -50%);
}
.urovo-stories-v2__controls button:is(:hover, :focus-visible) .urovo-stories-v2-arrow__incoming {
  transform: translate(-50%, -50%);
}
.urovo-stories-v2__controls button:active {
  transform: scale(0.96);
}
.urovo-stories-v2__controls button:focus-visible {
  outline: 2px solid #00aeef;
  outline-offset: 3px;
}
.urovo-stories-v2__count {
  margin-left: 8px;
  color: #808080;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.urovo-stories-v2__count strong {
  color: #00aeef;
  font-size: 18px;
  font-weight: 700;
}
.urovo-stories-v2__track > [hidden] {
  display: none;
}
/* All stories and links remain readable before enhancement, including without JS. */
.urovo-stories-v2:not(.is-enhanced) .urovo-stories-v2__track {
  flex-direction: column;
}
.urovo-stories-v2:not(.is-enhanced) .urovo-story-v2 {
  flex: none;
}

@media (max-width: 1023px) {
  .urovo-stories-v2__track {
    flex-direction: column;
  }
  .urovo-stories-v2 .urovo-story-v2 {
    flex: none;
    width: 100%;
  }
  .urovo-stories-v2 .urovo-story-v2.is-active {
    min-height: 0;
  }
  .urovo-stories-v2 .urovo-story-v2:not(.is-active) {
    min-height: 220px;
  }
  .urovo-stories-v2__controls {
    position: static;
    margin-top: 24px;
    justify-content: center;
  }
  .urovo-story-v2.is-active .urovo-story-v2__content {
    bottom: 20px;
    right: 0;
    left: calc(41% + 24px);
  }
  .urovo-story-v2.is-active .urovo-story-v2__link {
    margin-top: 36px;
  }
}
@media (max-width: 639px) {
  .urovo-stories-v2 {
    margin-top: 28px;
  }
  .urovo-stories-v2__track {
    gap: 12px;
  }
  .urovo-stories-v2 .urovo-story-v2.is-active {
    min-height: 0;
    aspect-ratio: auto;
    padding-bottom: 12px;
  }
  .urovo-stories-v2 .urovo-story-v2.is-active .urovo-story-v2__image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .urovo-story-v2.is-active .urovo-story-v2__toggle {
    height: auto;
    aspect-ratio: 1;
    width: 100%;
  }
  .urovo-story-v2.is-active .urovo-story-v2__content {
    position: relative;
    inset: auto;
    height: 300px;
    padding-top: 24px;
  }
  .urovo-story-v2.is-active .urovo-story-v2__eyebrow {
    margin-bottom: 16px;
  }
  .urovo-story-v2.is-active .urovo-story-v2__description {
    margin-top: 16px;
  }
  .urovo-story-v2.is-active .urovo-story-v2__link {
    margin-top: 24px;
  }
  .urovo-story-v2__content {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }
  .urovo-story-v2__number {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .urovo-story-v2__content h3 {
    font-size: 21px;
  }
}
/* Keep preview numbers and titles aligned even when customer names wrap. */
.urovo-story-v2:not(.is-active) .urovo-story-v2__content {
  height: 112px;
}
.urovo-story-v2__image {
  object-position: 35% center;
}
@media (max-width: 639px) {
  .urovo-story-v2:not(.is-active) .urovo-story-v2__content {
    height: 90px;
  }
}

/* JS measures layout endpoints; CSS owns all motion between those endpoints. */
.urovo-stories-v2 {
  --story-motion-duration: 620ms;
  --story-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  overflow-anchor: none;
}
.urovo-stories-v2__track {
  position: relative;
  transition: height var(--story-motion-duration) var(--story-motion-ease);
}
.urovo-stories-v2.is-switching .urovo-story-v2 {
  position: absolute;
  left: var(--story-x);
  top: var(--story-y);
  width: var(--story-width);
  height: var(--story-height);
  min-height: 0;
  animation: urovo-story-v2-reflow var(--story-motion-duration) var(--story-motion-ease) both;
  will-change: transform, width, height;
}
.urovo-stories-v2.is-switching .urovo-story-v2.is-active {
  z-index: 1;
}
.urovo-stories-v2.is-switching .urovo-story-v2__content {
  animation: urovo-story-v2-preview 420ms ease both;
}
.urovo-stories-v2.is-switching .is-active .urovo-story-v2__content {
  animation: urovo-story-v2-detail 520ms 90ms var(--story-motion-ease) both;
}
.urovo-stories-v2.is-switching .is-active .urovo-story-v2__image {
  animation: urovo-story-v2-image var(--story-motion-duration) var(--story-motion-ease) both;
}
.urovo-stories-v2.is-switching .urovo-stories-v2__controls {
  animation: urovo-story-v2-detail 520ms 90ms var(--story-motion-ease) both;
}
@keyframes urovo-story-v2-reflow {
  from {
    transform: translate(var(--story-dx), var(--story-dy));
    width: var(--story-from-width);
    height: var(--story-from-height);
    opacity: var(--story-from-opacity);
  }
  to {
    transform: translate(0, 0);
    width: var(--story-width);
    height: var(--story-height);
    opacity: 1;
  }
}
@keyframes urovo-story-v2-detail {
  0%,
  15% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes urovo-story-v2-preview {
  0%,
  25% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes urovo-story-v2-image {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}
