/* ===== The cinematic hero's film lightbox =====
 *
 * Ported from homepage-v4 with the FILM SECTION deliberately left behind —
 * only the lightbox (.film-lb*) and the hero's "Watch the film" CTA
 * (.hero-cine__watch) come across. The v4 page also had a poster-and-play
 * block sitting below the hero; that is not wanted here.
 */

.film-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 64px);
  background: rgba(8, 7, 7, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms cubic-bezier(0.32, 0.72, 0, 1),
              visibility 0s linear 500ms;
}
.film-lb.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms cubic-bezier(0.32, 0.72, 0, 1),
              visibility 0s;
}

.film-lb__stage {
  width: min(100%, 1600px);
  aspect-ratio: 2560 / 1080;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: scale(0.985);
  transition: transform 600ms cubic-bezier(0.32, 0.72, 0, 1);
}
.film-lb.is-open .film-lb__stage { transform: scale(1); }

.film-lb__video {
  width: 100%;
  height: 100%;
  display: block;
}

.film-lb__close {
  position: absolute;
  top: clamp(14px, 2.4vw, 32px);
  right: clamp(14px, 2.4vw, 32px);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 234, 0.24);
  background: rgba(245, 241, 234, 0.07);
  color: #F5F1EA;
  cursor: pointer;
  transition: background 400ms cubic-bezier(0.32, 0.72, 0, 1);
}
.film-lb__close:hover { background: rgba(245, 241, 234, 0.16); }
.film-lb__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The hero's single invitation. It replaces both CTAs — "Book a demo" is in
 * the nav — so it can carry real weight without competing with anything. */
.hero-cine__watch {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 30px 10px 10px;
  background: rgba(245, 241, 234, 0.06);
  border: 1px solid rgba(245, 241, 234, 0.22);
  border-radius: 999px;
  cursor: pointer;
  color: #F5F1EA;
  text-align: left;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: background 500ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 500ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 500ms cubic-bezier(0.32, 0.72, 0, 1);
}
.hero-cine__watch:hover {
  background: rgba(245, 241, 234, 0.12);
  border-color: rgba(245, 241, 234, 0.44);
  transform: translateY(-1px);
}
.hero-cine__watch:active { transform: translateY(0) scale(0.995); }
.hero-cine__watch:focus-visible {
  outline: 2px solid #F5F1EA;
  outline-offset: 3px;
}

.hero-cine__watch-ring {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  padding-left: 3px;                 /* optical centring of the triangle */
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: box-shadow 600ms cubic-bezier(0.32, 0.72, 0, 1);
}
.hero-cine__watch:hover .hero-cine__watch-ring {
  box-shadow: 0 10px 34px -10px var(--accent-glow);
}

.hero-cine__watch-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-cine__watch-label {
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero-cine__watch-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.58);
}

@media (max-width: 860px) {
  .hero-cine__watch { width: 100%; gap: 16px; padding-right: 22px; }
  .film-lb__stage { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .film-lb,
  .film-lb__stage,
  .film-lb__close,
  .hero-cine__watch { transition: none; }
  .film-lb__stage { transform: none; }
}
