/* Continuous camera movement on the hero picture only (approved V7.1): 14s per direction, linear, alternating. */

.hero-image {
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-position: inherit;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(-3.5%,1.4%,0) scale(1.09);
}

.hero.hero-ambient-ready .hero-image {
  animation: horizon-breathe 14s linear infinite alternate;
  will-change: transform;
}

@keyframes horizon-breathe {
  from {
    transform: translate3d(-3.5%,1.4%,0) scale(1.09);
  }
  to {
    transform: translate3d(3.5%,-1.4%,0) scale(1.21);
  }
}

.hero.is-ambient-paused .hero-image,
.hero.is-ambient-offscreen .hero-image,
.hero.is-ambient-hidden .hero-image {
  animation-play-state: paused;
}

.hero.is-ambient-offscreen .hero-image,
.hero.is-ambient-hidden .hero-image {
  will-change: auto;
}

.hero-ambient-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #fff2e963;
  border-radius: 3px;
  background: #30163d66;
  color: #fff2e9;
  font-size: 12px;
  line-height: 1.3;
  transition: background 180ms ease,border-color 180ms ease;
}

.hero-ambient-toggle svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.hero-ambient-toggle .ambient-play {
  display: none;
}

.hero-ambient-toggle[data-paused=true] .ambient-play {
  display: block;
}

.hero-ambient-toggle[data-paused=true] .ambient-pause {
  display: none;
}

.hero-ambient-toggle:focus-visible {
  outline-color: #ffad91;
  border-color: #fff2e9;
  background: #30163d80;
}

@media (hover:hover) and (pointer:fine) {
  .hero-ambient-toggle:hover {
    background: #30163d80;
    border-color: #fff2e9;
  }
}

@media (max-width:600px) {
  .hero-bottom {
    gap: 15px;
  }
  .hero-bottom .discover {
    max-width: 165px;
    font-size: 11px;
    gap: 9px;
  }
  .hero-ambient-toggle {
    font-size: 11px;
    gap: 6px;
    padding-inline: 9px;
  }
  .hero-ambient-toggle svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width:360px) {
  .hero-bottom .discover {
    max-width: 130px;
  }
  .hero-ambient-toggle {
    max-width: 148px;
    text-align: left;
  }
}

@media (prefers-reduced-motion:reduce) {
  .hero:not(.ambient-user-enabled) .hero-image {
    animation: none!important;
    transform: none!important;
    will-change: auto!important;
  }
  .hero.ambient-user-enabled.hero-ambient-ready .hero-image {
    animation: horizon-breathe 14s linear infinite alternate!important;
  }
  .hero.ambient-user-enabled.is-ambient-paused .hero-image,
  .hero.ambient-user-enabled.is-ambient-offscreen .hero-image,
  .hero.ambient-user-enabled.is-ambient-hidden .hero-image {
    animation-play-state: paused!important;
  }
}

/* Keep the button's space while it waits for JavaScript, so its appearance does not shift the hero. */
.hero-ambient-toggle[hidden] {
  display: inline-flex !important;
  visibility: hidden;
}
