/* Decorative rows sit above the existing header image and behind hero content. */
body.home .custom-header-media {
  overflow: hidden;
}

.t3x2r-hero-reel {
  position: absolute;
  inset: -20% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  background: #101010;
  pointer-events: none;
}

.t3x2r-hero-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.t3x2r-hero-reel__strip {
  flex: 1 1 0;
  min-height: 0;
  width: 120%;
  margin-left: -10%;
  transform: rotate(7deg);
}

.t3x2r-hero-reel__track,
.t3x2r-hero-reel__sequence {
  display: flex;
  width: max-content;
  height: 100%;
}

.t3x2r-hero-reel__track {
  animation: t3x2r-hero-drift 50s linear infinite;
}

.t3x2r-hero-reel__strip:nth-child(2) .t3x2r-hero-reel__track {
  animation-duration: 60s;
}

.t3x2r-hero-reel__strip:nth-child(3) .t3x2r-hero-reel__track {
  animation-duration: 55s;
}

.t3x2r-hero-reel__strip:nth-child(4) .t3x2r-hero-reel__track {
  animation-duration: 65s;
}

.t3x2r-hero-reel__strip:nth-child(5) .t3x2r-hero-reel__track {
  animation-duration: 45s;
}

.t3x2r-hero-reel__strip:nth-child(6) .t3x2r-hero-reel__track {
  animation-duration: 70s;
}

.t3x2r-hero-reel__strip:nth-child(7) .t3x2r-hero-reel__track {
  animation-duration: 58s;
}

body.home .custom-header-media .t3x2r-hero-reel__sequence img {
  display: block;
  flex: none;
  width: 220px;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  margin-right: 16px;
  border-radius: 8px;
  object-fit: cover;
}

body.home .custom-header-media .t3x2r-hero-reel__sequence img.t3x2r-hero-reel__device {
  width: auto;
  object-fit: contain;
}

@keyframes t3x2r-hero-drift {
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  body.home .custom-header-media .t3x2r-hero-reel__sequence img {
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t3x2r-hero-reel__track {
    animation-duration: 100s !important;
  }
}
