/* Home-only motion. The server image remains the initial, static frame. */
section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .hero-blend {
  overflow: hidden;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .hero-blend > picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .hero-blend > picture > img {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  transform-origin: 58% 52%;
  animation: rcHomeHeroCinematicV1 13s ease-in-out infinite alternate;
  animation-play-state: paused;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-hero-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background-image: radial-gradient(ellipse at center, rgb(232 181 99 / 21%) 0%, rgb(215 157 72 / 9%) 30%, transparent 64%);
  background-size: 64% 130%;
  background-position: -130% 50%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent), linear-gradient(180deg, transparent, #000 15%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent), linear-gradient(180deg, transparent, #000 15%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: rcHomeHeroLightV1 13s ease-in-out infinite;
  animation-play-state: paused;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"][data-rc-motion-state="playing"] .hero-blend > picture > img,
section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"][data-rc-motion-state="playing"] .rc-hero-light {
  animation-play-state: running;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-hero-motion-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgb(231 196 115 / 65%);
  border-radius: 999px;
  background: rgb(11 15 20 / 94%);
  color: #f6e7c4;
  font: 600 11px/1.25 var(--font-sans, system-ui), sans-serif;
  letter-spacing: .015em;
  text-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-hero-motion-toggle[hidden] {
  display: none !important;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-hero-motion-toggle:hover {
  background: #18202a;
  color: #fff5de;
  border-color: #e7c473;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-hero-motion-toggle:focus-visible {
  outline: 2px solid #f3d88e;
  outline-offset: 3px;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-motion-icon {
  width: 13px;
  height: 13px;
  flex: none;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-motion-play,
section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"][data-rc-motion-user-paused="true"] .rc-motion-pause {
  display: none;
}

section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"][data-rc-motion-user-paused="true"] .rc-motion-play {
  display: block;
}

@keyframes rcHomeHeroCinematicV1 {
  from { transform: translate3d(-.8%, .45%, 0) scale(1.015); }
  to { transform: translate3d(.95%, -.65%, 0) scale(1.14); }
}

@keyframes rcHomeHeroLightV1 {
  0%, 12% { background-position: -130% 50%; opacity: 0; }
  25% { opacity: .6; }
  55% { opacity: .8; }
  74%, 100% { background-position: 230% 50%; opacity: 0; }
}

/* Keep the text legible where the wider still life meets the copy. */
@media (min-width: 1024px) {
  section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .hero-blend > picture {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 34%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 86%, transparent);
  }
}

@media (max-width: 640px) {
  section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-hero-motion-toggle {
    width: 44px;
    padding: 0;
  }
  section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] [data-rc-motion-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .hero-blend > picture > img {
    animation: none !important;
    transform: none !important;
  }
  section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-hero-light,
  section[data-rc-home="hero"][data-rc-hero-motion="cinematic-v1"] .rc-hero-motion-toggle {
    display: none !important;
    animation: none !important;
  }
}
