/* Explainer film: a pinned stage between the hero and the journey. The frame grows from a card to
   full-bleed as you scroll (transform only), then plays muted on loop. Sound starts on request. */
.dx-film { position: relative; height: 210vh; background: #fff; }
.dx-film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.dx-film-frame { position: absolute; left: 50%; top: 50%; width: var(--dx-film-w, 100vw); aspect-ratio: 16 / 9; overflow: hidden; background: #0b1d2f; border-radius: 24px; transform: translate(-50%, -50%) scale(.62); transform-origin: 50% 50%; will-change: transform; box-shadow: 0 30px 80px -40px rgba(20, 42, 61, .45); }
.dx-film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--dx-film-depth, 1)); transform-origin: 50% 50%; }

.dx-film-play { position: absolute; left: 50%; bottom: calc(32px * var(--dx-film-ui, 1)); display: inline-flex; align-items: center; gap: 14px; padding: 8px 26px 8px 8px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--dx-ink, #0e121b); font: 500 17px/1 'Inter Tight', sans-serif; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 1px 2px rgba(14, 18, 27, .06), 0 18px 40px -20px rgba(14, 18, 27, .45); transform: translateX(-50%) scale(var(--dx-film-ui, 1.6)); transform-origin: 50% 100%; transition: opacity .45s cubic-bezier(.23, 1, .32, 1), filter .45s cubic-bezier(.23, 1, .32, 1); backdrop-filter: blur(10px); }
/* The pill waits until the film is on screen, then eases in. */
.dx-film:not(.is-visible) .dx-film-play { opacity: 0; filter: blur(4px); }
.dx-film-disc { display: grid; place-items: center; width: 48px; height: 48px; padding-left: 3px; border-radius: 50%; background: var(--dx-navy, #1d3850); color: #fff; transition: transform .16s cubic-bezier(.23, 1, .32, 1); }
.dx-film-play small { margin-left: 4px; color: var(--dx-muted, #5d6b7a); font-size: 15px; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .dx-film-play:hover .dx-film-disc { transform: scale(1.06); } }
.dx-film-play:active .dx-film-disc { transform: scale(.97); }
.dx-film-play:focus-visible { outline: 3px solid var(--dx-navy, #1d3850); outline-offset: 4px; }
.dx-film.is-listening .dx-film-play { opacity: 0; pointer-events: none; }

/* Phones: a 16:9 frame fills only a third of a tall screen. A short pin grows it to full width and
   darkens the stage behind it (--dx-film-dark, set by explainer-film.js), so the space reads as a cinema. */
@media (max-width: 767px) {
  .dx-film { height: 190vh; height: 190svh; }
  .dx-film-sticky { background: rgba(11, 29, 47, var(--dx-film-dark, 0)); }
  .dx-film-frame { border-radius: 16px; box-shadow: 0 24px 60px -36px rgba(20, 42, 61, .5); }
  .dx-film-play { left: 10px; top: auto; bottom: 10px; padding: 4px 14px 4px 4px; font-size: 13px; gap: 8px; transform: none; }
  .dx-film-disc { width: 32px; height: 32px; }
  .dx-film-disc svg { width: 12px; height: 14px; }
  .dx-film-play small { display: none; }
}
/* Reduced motion: no growth, no autoplay — the full-size frame and its poster wait for a click. */
@media (prefers-reduced-motion: reduce) {
  .dx-film { height: auto; padding: 64px 0; }
  .dx-film-sticky { position: static; height: auto; }
  .dx-film-frame { position: relative; left: auto; top: auto; margin: 0 auto; transform: none !important; width: min(1200px, calc(100vw - 32px)); border-radius: 20px; }
  .dx-film-play, .dx-film-disc { transition: none; }
}
