/* Rotating reel strip on the two first-party campaign cards.
 *
 * Three cells across the top of the card; each cell cross-fades between two
 * real reel thumbnails from that campaign, on a stagger, so the strip reads
 * as a living filmstrip rather than three things blinking in unison.
 *
 * Loaded only by index.html and case-studies.html, so adding it costs nothing
 * on the other 210 pages and does not cache-bust the sitewide stylesheet.
 */

.case__strip {
  display: flex;
  gap: 6px;
  height: 195px;
  margin: -28px -28px 2px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: var(--primary-deep);
}

.case__cell {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  background: var(--primary-deep);
}

.case__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.6s var(--ease);
}

.case__cell img.is-on { opacity: 1; }

.case:hover .case__cell img.is-on { transform: scale(1.06); }

/* A soft wash so the card's white body meets the strip rather than cutting it. */
.case__strip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.28) 100%);
}

.case__strip { position: relative; }

@media (max-width: 720px) {
  .case__strip { height: 172px; }
}

@media (prefers-reduced-motion: reduce) {
  .case__cell img { transition: none; }
  .case:hover .case__cell img.is-on { transform: none; }
}
