/* Customer cases use the homepage's existing type, spacing and color tokens. */
.customer-cases {
  position: relative;
  z-index: 1;
  margin: 72px auto 0;
  padding: 48px 0 24px;
  background: var(--wb2-surface-page);
  text-align: left;
}
.customer-cases__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.customer-cases__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.customer-cases__title {
  margin: 0;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wb2-text-primary);
}
.customer-cases__title a { color: inherit; }
.customer-cases__title a:hover { color: var(--wb2-text-brand); }
.customer-cases__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 6px 6px 20px;
  margin: -6px -6px 0;
}
.customer-cases__track::-webkit-scrollbar { display: none; }
.customer-case {
  flex: 0 0 224px;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.customer-case__screen {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}
.customer-case__screen img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: filter 180ms ease-out;
}
.customer-cases__track.is-scrolling .customer-case__screen img {
  filter: blur(1.25px);
}
.customer-case figcaption { padding: 16px 2px 0; }
.customer-case__category {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--wb2-text-secondary);
}
.customer-case__name {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--wb2-text-primary);
}
.customer-case__credit {
  margin: 12px 0 4px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--wb2-text-secondary);
  text-wrap: balance;
}
.customer-case__credit a {
  color: var(--wb2-text-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 768px) {
  .customer-cases { margin-top: 44px; padding: 32px 0 8px; }
  .customer-cases__inner { padding: 0 20px; }
  .customer-cases__head { gap: 12px; margin-bottom: 24px; }
  .customer-cases__title { font-size: 32px; }
  .customer-case__name { font-size: 20px; }
}
@media (max-width: 640px) {
  .customer-case { flex-basis: 190px; }
  .customer-cases__track { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-case__screen img { transition: none; }
  .customer-cases__track.is-scrolling .customer-case__screen img { filter: none; }
}
