/* ===== Hero film (front page): full-bleed canvas background of the hero, art on the right; engine in assets/js/enconf-film.js ===== */
.hero-new .film {
  --film-fade: .55s; --film-accent: #00D4AA; --film-muted: #A3B4CF; --film-h: 323px;
  position: relative; width: 100%; height: var(--film-h); text-align: left; pointer-events: none;
}
.hero-new .film.film-off { display: none; }
.film-stage { position: relative; height: 100%; overflow: hidden; }
.film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-art { position: absolute; left: 3%; right: 3%; top: 4%; bottom: 36%; pointer-events: none; }
.film-copy { position: absolute; left: 14px; right: 14px; bottom: 10px; pointer-events: none; }
.film-list { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; counter-reset: film; }
.film-ch { grid-area: 1 / 1; counter-increment: film; opacity: 0; transform: translateY(14px); transition: opacity var(--film-fade) ease, transform var(--film-fade) ease; }
.film-ch.is-active { opacity: 1; transform: none; }
.film-static .film-ch { transition: none !important; }
.film-ch::before { content: counter(film, decimal-leading-zero) " / 07"; display: block; margin-bottom: 4px; font: 600 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--film-accent); }
.film-ch h2 { margin: 0 0 3px; font-size: 15px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.film-ch p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--film-muted); }
.film-nav { display: none !important; }
.film-debug { position: fixed; left: 8px; top: 8px; z-index: 10; padding: 6px 9px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #9ff5df; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; pointer-events: none; }
/* stacked (single-column hero): text on top, film full-bleed below, badge under the film */
@media (max-width: 992px) {
  .hero-new .film { width: auto; margin: 0 -24px; }
  .hero-new .hero-badge { position: static; max-width: 280px; margin: 16px auto 0; }
  /* visual order (DOM order unchanged): tag, H1, lead, film, buttons, install box, WordPress badge */
  .hero-new .hero-split { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-new .hero-text, .hero-new .hero-shot { display: contents; }
  .hero-new .hero-text .tag { order: 1; align-self: center; }
  .hero-new .hero-text h1 { order: 2; }
  .hero-new .hero-text p.sub { order: 3; margin-bottom: 20px; }
  .hero-new .film { order: 4; --film-h: 260px; margin-bottom: 20px; }
  .hero-new .hero-shot > noscript { order: 4; }
  .hero-new .hero-cta { order: 5; }
  .hero-new .hero-secondary { order: 6; width: 100%; }
  .hero-new .hero-badge { order: 7; margin: 28px auto 8px; }
}
/* desktop: film is the background of the whole hero; text column sits above it */
@media (min-width: 993px) {
  /* the hero is the film's containing block, so the film and its caption stay inside the hero */
  .hero-new { position: relative; overflow: hidden; }
  /* the grid cell keeps its width (text column unchanged); the old placeholder frame is removed */
  .hero-new .hero-shot { height: auto; border: 0; background: none; padding: 0; }
  .hero-new .hero-split, .hero-new .hero-shot { position: static; }
  .hero-new .hero-text { position: relative; z-index: 2; }
  .hero-new .film { position: absolute; inset: 0; height: auto; width: auto; z-index: 0; }
  .film-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(11, 20, 38, .72) 0%, rgba(11, 20, 38, .5) 36%, rgba(11, 20, 38, 0) 56%); }
  .film-art { left: 50%; right: 3%; top: 16%; bottom: 42%; }
  .film-copy { left: 50%; right: 3%; bottom: 140px; z-index: 2; }
  .film-ch h2 { font-size: 20px; }
  .film-ch p { font-size: 14.5px; }
  .hero-new .hero-badge { top: auto; bottom: 24px; right: max(24px, calc((100vw - 1200px) / 2 + 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .film-ch { transition: none; transform: none; }
}
