.hero-slide {
  opacity: 0;
  transition: opacity 1.25s cubic-bezier(.22,.6,.27,1);
  pointer-events: none;
}
.hero-slide.is-current { opacity: 1; }
.hero-slide img { transform: scale(1.035); transform-origin: 55% 50%; }
.hero.is-moving .hero-slide.is-current img { animation: frame-drift 9s cubic-bezier(.21,.51,.46,1) both; }
@keyframes frame-drift {
  from { transform: scale(1.035); }
  to { transform: scale(1.095) translateX(-.65%); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 72% 32%, #d8a65d26, transparent 58%);
  mix-blend-mode: screen;
  opacity: .15;
}
.hero.is-moving::after { animation: facade-ambient 10s ease-in-out infinite alternate; }
@keyframes facade-ambient {
  from { opacity: .15; }
  to { opacity: .72; }
}
.hero-content > .place,
.hero-content > h1,
.hero-content > p,
.hero-actions,
.hero-foot {
  animation: intro-arrival .85s cubic-bezier(.19,.72,.27,1) both;
}
.hero-content > .place { animation-delay: .38s; }
.hero-content > h1 { animation-delay: .48s; }
.hero-content > p { animation-delay: .6s; }
.hero-actions { animation-delay: .69s; }
.hero-foot { animation-delay: .78s; }
@keyframes intro-arrival {
  from { opacity: 0; transform: translateY(17px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
}
.hero-reel[hidden] { display: none; }
.hero-reel { flex: 0 0 auto; align-self: end; }
.reel-caption { display: block; color: #e8dbc3; font-size: .84rem; margin-bottom: 1px; }
.reel-controls { display: flex; align-items: center; gap: 5px; }
.reel-controls [data-slide] {
  width: clamp(37px, 4vw, 55px);
  min-height: 44px;
  display: grid;
  align-items: center;
}
.reel-controls [data-slide] i {
  position: relative;
  width: 100%;
  height: 2px;
  display: block;
  background: #eee2cd62;
}
.reel-controls [aria-pressed="true"] i { background: #cead7378; }
.reel-controls [data-slide] i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #e6c48a;
  transform-origin: left;
  transform: scaleX(0);
}
.reel-controls [aria-pressed="true"] i::after { transform: scaleX(1); }
.is-playing .reel-controls [aria-pressed="true"] i::after { animation: frame-progress 8.8s linear both; }
@keyframes frame-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reel-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 3px;
  border-radius: 50%;
  border: 1px solid #cead7380;
  color: #f0ddbb;
}
.reel-toggle[hidden] { display: none; }
.reel-toggle span { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.reel-toggle.is-paused span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 5px solid transparent;
  border-right: 0;
  border-left: 8px solid currentColor;
}

.motion-arrive { animation: section-arrival .82s cubic-bezier(.19,.72,.27,1) both; }
.motion-arrive:nth-child(2) { animation-delay: .08s; }
@keyframes section-arrival {
  from { opacity: .28; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.gallery-photo > .motion-outgoing,
.infra-figure > .motion-outgoing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.infra-figure figcaption, .infra-figure .zoom { z-index: 1; }
@media (max-width: 650px) {
  .hero-actions { align-items: start; flex-direction: column; gap: 10px; }
  .hero-reel { align-self: start; }
  .hero-content { padding-bottom: 16px; }
  .reel-caption { font-size: .77rem; }
  .hero-slide:nth-child(2) img { object-position: 51% center; }
  .hero-slide:nth-child(3) img { object-position: 43% center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero.is-moving .hero-slide.is-current img, .hero.is-moving::after, .hero-content > .place,
  .hero-content > h1, .hero-content > p, .hero-actions, .hero-foot, .motion-arrive {
    animation: none;
  }
}
