/* Decorative photos may crossfade; the original LCP photo never fades out. */
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero__slides .hero__bg { z-index: 0; animation: none; transform: scale(1); }
.hero__slides .hero__slide--office { z-index: 1; opacity: 0; transform-origin: center top; }
.hero__slides .hero__slide--airbnb { z-index: 2; opacity: 0; transform-origin: center top; }
.hero.is-sliding .hero__bg { animation-duration: 15s; animation-timing-function: linear; animation-iteration-count: infinite; }
.hero.is-sliding .hero__slide--home { animation-name: hero-home-cycle; }
.hero.is-sliding .hero__slide--office { animation-name: hero-office-cycle; }
.hero.is-sliding .hero__slide--airbnb { animation-name: hero-airbnb-cycle; }
.hero.is-paused .hero__bg { animation-play-state: paused; }

/* Five seconds per scene, including a one-second crossfade. Zoom resets while covered. */
@keyframes hero-home-cycle {
  0% { transform: scale(1); }
  33.333333% { transform: scale(1.08); }
  60%, 100% { transform: scale(1); }
}
@keyframes hero-office-cycle {
  0%, 26.666667% { opacity: 0; transform: scale(1); }
  33.333333% { opacity: 1; }
  66.666667% { opacity: 1; transform: scale(1.08); }
  73.333333%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes hero-airbnb-cycle {
  0%, 60% { opacity: 0; transform: scale(1); }
  66.666667% { opacity: 1; }
  93.333333% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.08); }
}

.hero__pause {
  position: absolute; right: 24px; top: 114px; z-index: 3;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(255,255,255,.7); border-radius: 50%;
  background: rgba(18,38,74,.85); color: #fff; cursor: pointer;
}
.hero__pause:not(:focus-visible) { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
.hero__pause[hidden] { display: none; }
.hero__pause svg { grid-area: 1 / 1; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__pause .hero__play-icon { display: none; }
.hero.is-paused .hero__pause-icon { display: none; }
.hero.is-paused .hero__play-icon { display: block; }
.hero__pause:hover { color: var(--sun); border-color: var(--sun); }
.hero__pause:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
@media (max-width: 640px) {
  /* The white phone header covers these photos' high-set faces without this inset. */
  .hero__slides .hero__slide--office, .hero__slides .hero__slide--airbnb { top: 96px; height: calc(100% - 96px); }
  .home-refined .hero__slide--office { object-position: 76% center; transform-origin: 76% top; }
  .home-refined .hero__slide--airbnb { object-position: 96% center; transform-origin: 96% top; }
  .hero__pause { right: 16px; top: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.is-sliding .hero__bg { animation: none !important; transform: none; }
  .hero__slides .hero__slide--office, .hero__slides .hero__slide--airbnb { display: none; }
  .hero__pause { display: none; }
}
