.pm-client-story,
.pm-client-story * {
  box-sizing: border-box;
}

.pm-client-story {
  --pm-ink: #06152f;
  --pm-muted: #607590;
  --pm-cyan: #0da7c9;
  --pm-cyan-bright: #23c7df;
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: clamp(36px, 4.2vw, 64px) 0;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pm-ink);
}

.pm-client-story__glow {
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .2;
  pointer-events: none;
}

.pm-client-story__glow--one {
  top: 3%;
  right: -16%;
  background: #22d3ee;
}

.pm-client-story__glow--two {
  bottom: 4%;
  left: -18%;
  background: #7dd3fc;
}

.pm-client-story__shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(24px, 2.8vw, 40px);
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: clamp(28px, 3vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(244, 252, 255, .66)),
    radial-gradient(circle at 90% 5%, rgba(34, 211, 238, .11), transparent 42%);
  box-shadow:
    0 36px 90px -56px rgba(5, 32, 56, .42),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}

.pm-client-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(26px, 3.2vw, 46px);
  align-items: start;
}

.pm-client-story__lead,
.pm-client-story__copy,
.pm-client-story__gallery-head {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.75,.25,1), transform .8s cubic-bezier(.2,.75,.25,1);
}

.pm-client-story.is-visible .pm-client-story__lead,
.pm-client-story.is-visible .pm-client-story__copy,
.pm-client-story.is-visible .pm-client-story__gallery-head {
  opacity: 1;
  transform: none;
}

.pm-client-story.is-visible .pm-client-story__copy { transition-delay: .12s; }
.pm-client-story.is-visible .pm-client-story__gallery-head { transition-delay: .18s; }

.pm-client-story__eyebrow {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 42px;
  margin: 0 0 20px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, .44), inset 0 1px 0 #fff;
  color: #61748c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pm-client-story__headline {
  max-width: 770px;
  margin: 0 0 clamp(20px, 2.4vw, 30px);
  color: var(--pm-ink);
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.pm-client-story__media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: clamp(24px, 3vw, 34px);
  background: #dceff4;
  box-shadow: 0 30px 65px -38px rgba(4, 24, 45, .56);
}

.pm-client-story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(2, 18, 37, .15));
}

.pm-client-story__media img,
.pm-client-story__media video,
.pm-client-story__media iframe,
.pm-client-story__video-cover {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.pm-client-story__media img {
  transition: transform .8s cubic-bezier(.2,.75,.25,1);
}

.pm-client-story__media:hover img {
  transform: scale(1.035);
}

.pm-client-story__video-cover {
  position: relative;
  padding: 0;
  cursor: pointer;
  background: #06152f;
}

.pm-client-story__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 20px 46px -24px rgba(2, 13, 27, .76);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, background .25s ease;
}

.pm-client-story__video-cover:hover .pm-client-story__play {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.07);
}

.pm-client-story__play svg {
  width: 30px;
  fill: var(--pm-cyan);
}

.pm-client-story__copy {
  display: flex;
  flex-direction: column;
  align-self: end;
  min-width: 0;
  padding: clamp(6px, 1.2vw, 18px) 0 2px;
}

.pm-client-story__copy > h3,
.pm-client-story__gallery-head h3 {
  margin: 0 0 18px;
  color: var(--pm-ink);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.pm-client-story__description,
.pm-client-story__description p {
  margin: 0;
  color: var(--pm-muted);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.62;
}

.pm-client-story__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
  margin-top: clamp(22px, 2.4vw, 32px);
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 28px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 28px 55px -44px rgba(6, 21, 47, .48), inset 0 1px 0 #fff;
}

.pm-client-story__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-client-story__brand-copy span {
  color: #6c8098;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
}

.pm-client-story__brand-copy strong {
  color: var(--pm-ink);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.15;
}

.pm-client-story__brand img {
  width: min(190px, 46%);
  max-height: 72px;
  object-fit: contain;
}

.pm-client-story__gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(30px, 3.4vw, 44px) 0 16px;
}

.pm-client-story__gallery-head h3 { margin: 0; }

.pm-client-story__gallery-head span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #63778f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pm-client-story__gallery-head i {
  color: var(--pm-cyan);
  font-size: 19px;
  font-style: normal;
}

.pm-client-story__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 184px;
  grid-template-rows: repeat(2, 184px);
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  cursor: grab;
}

.pm-client-story__rail::-webkit-scrollbar { display: none; }
.pm-client-story__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.pm-client-story__tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  background: #dceff4;
  box-shadow: 0 20px 45px -34px rgba(3, 31, 52, .56);
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition: opacity .65s ease var(--pm-delay), transform .7s cubic-bezier(.2,.75,.25,1) var(--pm-delay), box-shadow .3s ease;
  scroll-snap-align: start;
}

.pm-client-story.is-visible .pm-client-story__tile {
  opacity: 1;
  transform: none;
}

.pm-client-story__tile:hover {
  box-shadow: 0 30px 58px -34px rgba(3, 31, 52, .68);
}

.pm-client-story__tile--wide {
  grid-column: span 2;
}

.pm-client-story__tile--tall {
  grid-row: span 2;
}

.pm-client-story__tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.75,.25,1), filter .45s ease;
}

.pm-client-story__tile:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.02);
}

.pm-client-story__progress {
  position: relative;
  width: 100%;
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(65, 113, 139, .12);
}

.pm-client-story__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a9fc3, #2cc9df);
  transform-origin: left center;
  transition: width .12s linear;
}

@media (max-width: 1024px) {
  .pm-client-story__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pm-client-story__copy { align-self: start; padding-top: 0; }
  .pm-client-story__brand { margin-top: 24px; }
}

@media (max-width: 767px) {
  .pm-client-story { padding: 32px 0; }
  .pm-client-story__shell {
    width: calc(100% - 24px);
    padding: 22px;
    border-radius: 28px;
  }
  .pm-client-story__headline {
    margin-bottom: 22px;
    font-size: clamp(36px, 11vw, 48px);
  }
  .pm-client-story__media { aspect-ratio: 16 / 9; border-radius: 22px; }
  .pm-client-story__brand {
    min-height: 116px;
    padding: 18px 20px;
    border-radius: 22px;
  }
  .pm-client-story__gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .pm-client-story__rail {
    grid-auto-columns: 152px;
    grid-template-rows: repeat(2, 152px);
    width: 100%;
    margin-right: 0;
    padding-right: 2px;
    gap: 12px;
  }
  .pm-client-story__tile { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-client-story__lead,
  .pm-client-story__copy,
  .pm-client-story__gallery-head,
  .pm-client-story__tile,
  .pm-client-story__media img,
  .pm-client-story__tile img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Keep dynamically inserted widgets fully visible inside the Elementor editor. */
body.elementor-editor-active .pm-client-story [data-pm-reveal] {
  opacity: 1;
  transform: none;
}
