.hero-kinetic {
  background:
    radial-gradient(ellipse at var(--ym-art-side) 42%, #233e62, #13223a 37%, transparent 72%),
    #0a101e;
}

.hero-kinetic .hero-grid {
  position: relative;
  z-index: 0;
}

.hero-kinetic::after {
  background: linear-gradient(90deg, #405670, #8ab8e5 63%, #405670);
}

.hero-kinetic .kinetic-stage::before {
  background:
    radial-gradient(ellipse at 61% 49%, transparent 53%, #88bfff45 53.4%, transparent 54.1%),
    radial-gradient(ellipse at 61% 49%, transparent 65%, #739bd92e 65.4%, transparent 66.1%),
    radial-gradient(ellipse at 69% 25%, #4175d486, transparent 64%),
    linear-gradient(143deg, #27416a, #12233f 49%, #1b304f);
}

/* Clip the light independently so the hero's controls keep their full focus outlines. */
.hero-light-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}

.hero-light-field:dir(rtl) { transform: scaleX(-1); }

.hero-light-field::before,
.hero-light-field::after,
.hero-light-rim {
  position: absolute;
  content: "";
}

.hero-light-field::before {
  inset: -15% -12% -8% 34%;
  background:
    radial-gradient(ellipse 33% 41% at 67% 41%, #b5d7ff82, #719ac866 35%, transparent 94%),
    radial-gradient(ellipse 50% 18% at 52% 75%, #b8d6fb53, #557fba42 46%, transparent 95%);
  transform: rotate(-13deg);
}

.hero-light-field::after {
  inset: -30% -16% 0 30%;
  background:
    radial-gradient(ellipse 10% 70% at 57% 46%, #d8eaff98, #a5c9f350 36%, transparent 96%),
    radial-gradient(ellipse 4% 58% at 71% 43%, #b6d4f749, transparent 96%);
  mask-image: linear-gradient(transparent, #000 24% 76%, transparent);
  opacity: .64;
  transform: translate(4%, 2%) rotate(56deg);
}

/* Above the recessed pane, below the poster and live model. */
.hero-light-rim {
  z-index: 0;
  inset: 7% 1% 8%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 24% 15% at 75% 30%, #d8ebff59, #a4c9fa30 48%, transparent 100%),
    radial-gradient(ellipse 20% 12% at 21% 74%, #a8cfff4f, transparent 98%);
  transform: rotate(var(--kinetic-pane-angle));
}

.hero-kinetic :is(.kinetic-poster, .kinetic-model) { z-index: 0; }
.hero-kinetic .kinetic-controls { background: linear-gradient(145deg, #203350, #0c1629); }
.hero-kinetic .hero-store-contact { margin-block-start: 0; }

@media (max-width: 52rem) {
  .hero-kinetic {
    padding-block-start: 1.35rem;
    background:
      radial-gradient(ellipse 96% 46% at 50% 72%, #294469, transparent 99%),
      #0a101e;
  }

  .hero-kinetic .hero-grid { gap: .3rem; }
  .hero-light-field::before { inset: 38% -31% -12% -29%; }
  .hero-light-field::after { inset: 35% -21% -12% -24%; }
}

/* Leave the copy, search and recessed pane steady during the handoff. */
:root[data-ym-motion="on"] .hero-kinetic .hero-copy > :is(.parent, h1, .hero-store-contact),
:root[data-ym-motion="on"] .hero-kinetic .kinetic-stage::before,
:root[data-ym-motion="on"] .hero-kinetic .kinetic-stage::after {
  animation: none;
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  :root[data-ym-motion="on"] .hero-light-field::before {
    animation: hero-light-drift 12s ease-in-out infinite alternate paused;
  }

  :root[data-ym-motion="on"] .hero-light-field::after {
    animation: hero-light-pass 6s cubic-bezier(.35, .1, .6, .9) infinite alternate paused;
  }

  :root[data-ym-motion="on"] .hero-kinetic[data-hero-lit] .hero-light-field::before,
  :root[data-ym-motion="on"] .hero-kinetic[data-hero-lit] .hero-light-field::after {
    animation-play-state: running;
  }

  :root[data-ym-motion="on"] .discovery__choices[data-hero-reveal]:not(:focus-within) {
    animation: hero-shortcuts-reveal 380ms var(--ym-motion-ease);
  }
}

@keyframes hero-light-drift {
  from { transform: translate(-8%, -5%) rotate(-17deg); opacity: .72; }
  to { transform: translate(7%, 7%) rotate(-5deg); opacity: 1; }
}

@keyframes hero-light-pass {
  from { transform: translate(-13%, -10%) rotate(51deg); opacity: .53; }
  to { transform: translate(11%, 12%) rotate(61deg); opacity: .9; }
}

@keyframes hero-shortcuts-reveal {
  from { opacity: .84; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (forced-colors: active) {
  .hero-light-field, .hero-light-rim { display: none; }
}
