.hero-media {
  --jp-hero-hold: 2.5s;
  --jp-hero-sweep: 6.5s;
}

.hero-media .jp-hero-monochrome {
  filter: grayscale(1) contrast(1.08) brightness(1.05) !important;
  animation: none !important;
  clip-path: none;
}

.hero-media .jp-hero-monochrome-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-media.jp-hero-monochrome-start .jp-hero-monochrome-layer {
  clip-path: inset(0);
}

.hero-media .hero-reveal-line {
  display: block !important;
  left: 0;
  width: 1px;
  opacity: 0;
  z-index: 2;
  transform: translateX(-50%);
  background: #e8faff;
  box-shadow: 0 0 5px #80def7b3;
  animation: none;
  pointer-events: none;
}

.hero-media.jp-hero-revealing .jp-hero-monochrome-layer {
  animation: jpBannerImageReveal var(--jp-hero-sweep) linear var(--jp-hero-hold) forwards;
}

.hero-media.jp-hero-revealing .hero-reveal-line {
  animation: jpBannerFineLine var(--jp-hero-sweep) linear var(--jp-hero-hold) forwards;
}

@keyframes jpBannerImageReveal {
  from { clip-path: inset(0); }
  to { clip-path: inset(0 0 0 100%); }
}

@keyframes jpBannerFineLine {
  from { left: 0; opacity: 1; }
  to { left: 100%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media .jp-hero-monochrome-layer,
  .hero-media .hero-reveal-line {
    display: none !important;
  }
}
