/* Hero motion: the approved photograph remains the permanent static fallback. */
html.hero-motion-pending .hero[data-hero-particles] .hero-video,
html.hero-motion-active .hero[data-hero-particles] .hero-video {
  overflow: hidden;
}

html.hero-motion-pending .hero[data-hero-particles] .hero-video img {
  opacity: .76;
  filter: blur(3px);
}

html.hero-motion-pending .hero[data-hero-particles="index"] .hero-video img {
  opacity: 0;
  filter: none;
}

html.hero-motion-pending .hero[data-hero-particles="index"] .hero-video,
html.hero-motion-active .hero[data-hero-particles="index"] .hero-video {
  background: #fafafb;
}

@media (min-width: 901px) {
  html.hero-motion-pending .hero[data-hero-particles="index"] .hero-video,
  html.hero-motion-active .hero[data-hero-particles="index"] .hero-video {
    inset: 0;
  }

  html.hero-motion-pending .hero[data-hero-particles="index"] .hero-video img,
  html.hero-motion-active .hero[data-hero-particles="index"] .hero-video img {
    position: absolute;
    left: 31%;
    width: 69%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%);
    mask-image: linear-gradient(to right, transparent 0%, #000 18%);
  }

  html.hero-motion-pending .hero[data-hero-particles="ai"] .hero-video img,
  html.hero-motion-active .hero[data-hero-particles="ai"] .hero-video img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 110px);
    mask-image: linear-gradient(to right, transparent 0, #000 110px);
  }
}

html.hero-motion-pending .hero[data-hero-particles="ai"] .hero-video img {
  opacity: .035;
  filter: blur(14px);
}

html.hero-motion-pending .hero[data-hero-particles="ai"] .hero-video,
html.hero-motion-active .hero[data-hero-particles="ai"] .hero-video {
  background: #fff;
}

@media (min-width: 901px) {
  html.hero-motion-pending .hero[data-hero-particles="index"] .hero-overlay,
  html.hero-motion-active .hero[data-hero-particles="index"] .hero-overlay {
    background: linear-gradient(90deg, rgba(250,250,251,.78) 0%, rgba(250,250,251,.78) 30%, rgba(250,250,251,.72) 38%, rgba(250,250,251,.48) 48%, transparent 65%);
  }
}

html.hero-motion-pending .hero[data-hero-particles="ai"] .hero-overlay,
html.hero-motion-active .hero[data-hero-particles="ai"] .hero-overlay {
  background: linear-gradient(90deg, rgba(250,251,252,.78) 0%, rgba(250,251,252,.76) 29%, rgba(250,251,252,.48) 43%, transparent 58%);
}

.hero-particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(.8px);
}

.hero[data-hero-particles="index"] .hero-particles-canvas {
  filter: none;
}

.hero[data-hero-particles="ai"] .hero-particles-canvas {
  filter: blur(.35px);
}

/* Keep the copy readable when the preview replay returns from a scrubbed exit. */
html.hero-motion-active .hero[data-hero-particles="ai"] .hero-sub,
html.hero-motion-active .hero[data-hero-particles="ai"] .hero-cta {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.hero-motion-replay {
  position: absolute;
  top: 72px;
  right: 18px;
  z-index: 400;
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #6b1a2a;
  color: #fff;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.hero-motion-replay svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-motion-replay:hover,
.hero-motion-replay:focus-visible {
  background: #52121f;
}

.hero-motion-replay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html.hero-motion-pending .hero[data-hero-particles] .hero-video img {
    opacity: 1;
    filter: none;
  }

  .hero-particles-canvas { display: none; }
}
