.hero-film {
  position: absolute;
  z-index: -2;
  inset: -4%;
  background:
    linear-gradient(90deg,rgba(6,21,36,.44),rgba(6,21,36,.06)),
    url('villa-renovation-timelapse.gif') center/cover;
  filter: saturate(.92) brightness(.82);
  transform: scale(1.04);
}

.compare {
  background-image: url('assets/optimized/villa-before.webp')!important;
}

.compare .after {
  background-image: url('assets/optimized/villa-2026-hero.webp')!important;
}

.villa-caption {
  position: absolute;
  z-index: 4;
  right: 26px;
  bottom: 26px;
  max-width: 280px;
  color: rgba(255,255,255,.76);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

.transformation-grid > div > .section-heading {
  margin-bottom: 22px;
}

.transformation-grid > div > .button {
  margin-top: 12px;
}

.video-frame img[src$=".gif"] {
  background: var(--navy-900);
}

.video-frame[data-motion-study] { position: relative; }
.motion-study-toggle {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  color: var(--white);
  background: rgba(6,21,36,.76);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.motion-study-toggle:hover,
.motion-study-toggle:focus-visible { background: var(--navy-900); }

.renovation-gallery figure:nth-child(2),
.renovation-gallery figure:nth-child(5) {
  transform: translateY(22px);
}

@media (max-width: 920px) {
  .renovation-gallery figure:nth-child(2),
  .renovation-gallery figure:nth-child(5) {
    transform: none;
  }
}
