.hero.gm52-cinematic {
  background: #080808;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.hero.gm52-cinematic #film,
.hero.gm52-cinematic .gm52-cinematic-still {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #080808;
  object-fit: cover;
  object-position: center;
}

.gm52-cinematic .gm52-cinematic-still {
  transition: opacity 360ms ease-out;
  pointer-events: none;
}

.gm52-cinematic[data-film-presented="true"] .gm52-cinematic-still {
  opacity: 0;
}

.gm52-cinematic .cta {
  text-decoration: none;
}

.gm52-film-control span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.gm52-film-icon {
  width: 1.3em;
  height: 1.3em;
  flex: none;
}

.gm52-cinematic [hidden] {
  display: none !important;
}

/* Tall desktop windows retain more of the original wide composition. */
@media (min-width: 1024px) and (max-aspect-ratio: 8/5) {
  .hero.gm52-cinematic {
    height: min(100vh, 62.5vw);
    height: min(100dvh, 62.5vw);
  }
}

@media (max-width: 600px), (max-width: 900px) and (max-height: 540px) and (orientation: landscape) {
  .hero.gm52-cinematic {
    --gm52-hero-x: 50%;
    display: grid;
    align-content: end;
    gap: 1rem;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(84px, calc(env(safe-area-inset-top, 0px) + 64px))
      max(6%, env(safe-area-inset-right, 0px))
      max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px))
      max(6%, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
  }

  .hero.gm52-cinematic #film,
  .hero.gm52-cinematic .gm52-cinematic-still {
    object-fit: cover;
    object-position: var(--gm52-hero-x) 50%;
  }

  .hero.gm52-cinematic-home { --gm52-hero-x: 54%; }
  .hero.gm52-cinematic-rooms { --gm52-hero-x: 47%; }
  .hero.gm52-cinematic-spa { --gm52-hero-x: 62%; }
  .hero.gm52-cinematic-lounge { --gm52-hero-x: 43%; }
  .hero.gm52-cinematic-services { --gm52-hero-x: 49%; }
  .hero.gm52-cinematic-rome { --gm52-hero-x: 44%; }
  .hero.gm52-cinematic-contact { --gm52-hero-x: 58%; }

  .hero.gm52-cinematic .shade {
    background: linear-gradient(180deg, #08080865, transparent 29%),
      linear-gradient(0deg, #080808f0, #0808088c 37%, transparent 71%);
  }

  .hero.gm52-cinematic .copy,
  .hero.gm52-cinematic .bottom {
    position: relative;
    inset: auto;
    min-width: 0;
  }

  .hero.gm52-cinematic h1 {
    font-size: clamp(2.7rem, 12vw, 4.15rem);
    overflow-wrap: break-word;
    margin: 0.45rem 0 0.2rem;
  }

  .hero.gm52-cinematic .accent {
    font-size: clamp(1.4rem, 6.2vw, 1.95rem);
  }

  .hero.gm52-cinematic .sub {
    margin: 0.7rem 0;
  }

  .hero.gm52-cinematic .actions {
    gap: 0.5rem;
  }

  .hero.gm52-cinematic .actions .cta {
    min-width: 0;
    min-height: 48px;
    line-height: 1.25;
    text-align: center;
    padding-inline: 0.5rem;
  }

  .hero.gm52-cinematic .bottom {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.5rem;
  }

  .hero.gm52-cinematic .bottom .plain {
    min-height: 44px;
    padding-inline: 0;
  }
}

@media (max-width: 900px) and (max-height: 540px) and (orientation: landscape) {
  .hero.gm52-cinematic {
    padding-block-start: max(64px, calc(env(safe-area-inset-top, 0px) + 54px));
  }

  .hero.gm52-cinematic .copy {
    max-width: 80%;
  }

  .hero.gm52-cinematic h1 {
    font-size: clamp(2.5rem, 9vw, 3.3rem);
  }
}

.gm52-brand-entrance {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  background: #080808;
  opacity: 1;
  pointer-events: none;
}

.gm52-brand-entrance img {
  position: static;
  width: min(160px, 40vw);
  height: auto;
}

.gm52-brand-entrance span {
  width: min(110px, 31vw);
  height: 1px;
  background: #e5e9ed;
}

.gm52-brand-entrance[data-leaving] {
  opacity: 0;
  transition: opacity 120ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .gm52-cinematic .gm52-cinematic-still {
    transition: none;
  }

  .gm52-brand-entrance {
    display: none;
  }
}
