/* Only loaded by the homepage. Keep the text embedded in the film in view. */
.home-film {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100vh - var(--header) - 1px);
  height: calc(100svh - var(--header) - 1px);
  min-height: 360px;
  overflow: hidden;
  background: #081c15;
  color: #fff;
}
.home-film-backdrop {
  position: absolute;
  z-index: -1;
  inset: -36px;
  background: url('/assets/video/offroad-bumpis-intro.webp') center / cover no-repeat;
  filter: blur(28px) brightness(.32) saturate(.65);
  pointer-events: none;
}
.home-film-stage { position: relative; min-width: 0; min-height: 0; }
.home-film-backdrop video { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.home-film-controls {
  position: absolute;
  top: 16px;
  right: max(20px, env(safe-area-inset-right));
  z-index: 2;
  display: flex;
  gap: 8px;
}
.home-film [hidden] { display: none !important; }
.home-film-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: rgba(5,23,17,.88);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.home-film-control:hover { background: #163b2d; border-color: #c8f244; }
.home-film-control svg { flex: 0 0 auto; }
.home-film :focus-visible { outline: 3px solid #c8f244; outline-offset: 4px; }
.home-film-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px 36px;
  padding: 18px 90px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(5,23,17,.75));
}
.home-film-footer .button { width: auto; }
.home-film-scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
}
.home-film-scroll span:last-child { font-size: 1.5rem; color: #c8f244; }
.home-film-scroll:hover { color: #c8f244; }
.home-film-status {
  position: absolute;
  top: 74px;
  right: 20px;
  left: 20px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 12px;
  background: #0b2119;
  color: #fff;
  font-size: .8rem;
  text-align: center;
}
@media (max-width: 760px) {
  .home-film { min-height: 420px; }
  .home-film-controls { top: 16px; right: 14px; left: 14px; justify-content: center; }
  .home-film-stage { padding-top: 70px; }
  .home-film-footer { flex-direction: column; gap: 12px; padding: 0 20px 150px; }
  .home-film-footer .button { display: none; } /* Existing sticky booking button remains visible. */
  .home-film-scroll { font-size: .78rem; }
}
@media (max-height: 500px) and (min-width: 761px) {
  .home-film { min-height: 280px; }
  .home-film-footer { padding-block: 8px; gap: 12px 24px; }
  .home-film-footer .button { min-height: 44px; padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-film * { scroll-behavior: auto; transition: none; }
}
