/* Infinity Events — Smart Hero Media V3 */
.infinity-smart-hero-v3 {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #100e0b !important;
}

.infinity-smart-hero-v3 > .ism3-stage {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0;
  background: #100e0b;
  transition: opacity .55s ease;
}

.infinity-smart-hero-v3 > .ism3-stage.is-ready { opacity: 1; }

.infinity-smart-hero-v3 > .iih-media.ism3-old-media-hidden,
.infinity-smart-hero-v3 > .hvl-stage.ism3-old-media-hidden,
.infinity-smart-hero-v3 > .ism2-stage.ism3-old-media-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.infinity-smart-hero-v3 .ism3-content,
.infinity-smart-hero-v3 .ism3-overlay,
.infinity-smart-hero-v3 .ism3-vignette,
.infinity-smart-hero-v3 .ism3-glow,
.infinity-smart-hero-v3 .ism3-grain,
.infinity-smart-hero-v3 .ism3-sweep {
  position: absolute;
  inset: 0;
}

.infinity-smart-hero-v3 .ism3-video,
.infinity-smart-hero-v3 .ism3-image {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 1.15s ease;
  will-change: opacity, transform, filter;
}

.infinity-smart-hero-v3 .ism3-video {
  background: #100e0b;
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
  transform: scale(1.025);
}

.infinity-smart-hero-v3 .ism3-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
  transform: scale(1.035);
}

.infinity-smart-hero-v3 .ism3-video.is-active,
.infinity-smart-hero-v3 .ism3-image.is-active { opacity: 1; }

.infinity-smart-hero-v3 .ism3-image.motion-a.is-active { animation: ism3MotionA 10s ease-in-out forwards; }
.infinity-smart-hero-v3 .ism3-image.motion-b.is-active { animation: ism3MotionB 10s ease-in-out forwards; }
.infinity-smart-hero-v3 .ism3-image.motion-c.is-active { animation: ism3MotionC 10s ease-in-out forwards; }

.infinity-smart-hero-v3 .ism3-overlay {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(6,5,4,.42) 0%, rgba(7,6,5,.28) 38%, rgba(7,6,5,.09) 72%, rgba(7,6,5,.15) 100%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.12));
}

.infinity-smart-hero-v3 .ism3-vignette {
  z-index: 4;
  background: radial-gradient(circle at 50% 42%, transparent 34%, rgba(0,0,0,.15) 100%);
}

.infinity-smart-hero-v3 .ism3-glow {
  z-index: 5;
  background:
    radial-gradient(ellipse at 20% 14%, rgba(255,202,84,.13), transparent 38%),
    radial-gradient(ellipse at 78% 18%, rgba(255,255,255,.045), transparent 30%);
  mix-blend-mode: screen;
}

.infinity-smart-hero-v3 .ism3-grain {
  z-index: 6;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.infinity-smart-hero-v3 .ism3-sweep {
  z-index: 7;
  left: -35%;
  width: 18%;
  height: 140%;
  top: -20%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,226,151,.07), rgba(255,252,237,.19), transparent);
  filter: blur(11px);
  mix-blend-mode: screen;
  animation: ism3Sweep 13s ease-in-out infinite;
}

.infinity-smart-hero-v3 .hero-content,
.infinity-smart-hero-v3 .wrap.hero-content {
  position: relative !important;
  z-index: 20 !important;
}

html[data-ihp-theme^="light"] .infinity-smart-hero-v3 .ism3-video,
html[data-ihp-theme^="light"] .infinity-smart-hero-v3 .ism3-image {
  filter: saturate(1.04) contrast(1.01) brightness(1.09);
}

html[data-ihp-theme^="light"] .infinity-smart-hero-v3 .ism3-overlay {
  background:
    linear-gradient(90deg, rgba(251,247,239,.36) 0%, rgba(251,247,239,.22) 38%, rgba(255,255,255,.08) 72%, rgba(255,255,255,.13) 100%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.07));
}

html[data-ihp-theme^="light"] .infinity-smart-hero-v3 .ism3-vignette {
  background: radial-gradient(circle at 50% 42%, transparent 34%, rgba(130,105,62,.06) 100%);
}

html[data-ihp-theme^="light"] .infinity-smart-hero-v3 .ism3-grain { opacity: .035; }

@keyframes ism3MotionA {
  0% { transform: scale(1.035) translate3d(0,0,0); }
  100% { transform: scale(1.13) translate3d(-1.1%,-.5%,0); }
}
@keyframes ism3MotionB {
  0% { transform: scale(1.08) translate3d(-1%,.4%,0); }
  100% { transform: scale(1.03) translate3d(1%,0,0); }
}
@keyframes ism3MotionC {
  0% { transform: scale(1.04) translate3d(.7%,-.3%,0); }
  100% { transform: scale(1.12) translate3d(-.5%,.7%,0); }
}
@keyframes ism3Sweep {
  0%,18% { left:-35%; opacity:0; }
  24% { opacity:.72; }
  42% { left:120%; opacity:0; }
  100% { left:120%; opacity:0; }
}

@media (max-width: 640px) {
  .infinity-smart-hero-v3 .ism3-overlay {
    background:
      linear-gradient(180deg, rgba(8,7,6,.34), rgba(8,7,6,.22) 42%, rgba(8,7,6,.34)),
      linear-gradient(90deg, rgba(6,6,6,.34), rgba(8,8,8,.12));
  }
  html[data-ihp-theme^="light"] .infinity-smart-hero-v3 .ism3-overlay {
    background:
      linear-gradient(180deg, rgba(250,246,238,.24), rgba(250,246,238,.15) 45%, rgba(255,255,255,.20)),
      linear-gradient(90deg, rgba(250,246,238,.25), rgba(255,255,255,.10));
  }
}

@media (prefers-reduced-motion: reduce) {
  .infinity-smart-hero-v3 .ism3-video,
  .infinity-smart-hero-v3 .ism3-image,
  .infinity-smart-hero-v3 .ism3-sweep {
    animation: none !important;
    transition: none !important;
  }
}
