/* BuildPro Experience: construction scroll section.
   Engine styles from MAX scroll-scrub (scoped to .mxs), plus BuildPro caption design (scoped to .bpx-scroll). */
.mxs { position: relative; width: 100%; margin: 0; padding: 0; background: #000; }
.mxs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%; overflow: hidden; background: #000; }
.mxs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mxs-step, [data-pos-step] { position: absolute; left: 16px; right: 16px; bottom: 14%; opacity: 0; visibility: hidden;
  color: #fff; text-align: center; pointer-events: none; will-change: opacity; }
.mxs-step a { pointer-events: auto; }
.mxs-watch { position: absolute; right: 16px; top: max(16px, env(safe-area-inset-top)); z-index: 3; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font: 600 14px/1 inherit; cursor: pointer; }
/* isolation from theme / Elementor kit button styles (".elementor-kit-N button" + :hover/:focus); :is() with an
   id lifts these above them. Font family is still inherited from the site. */
:is(.bpx-scroll,#bpx-scope) .mxs-watch, :is(.bpx-scroll,#bpx-scope) .mxs-watch:hover, :is(.bpx-scroll,#bpx-scope) .mxs-watch:focus {
  margin: 0; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(0,0,0,.45);
  color: #fff; box-shadow: none; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .02em; text-transform: none; }
:is(.bpx-scroll,#bpx-scope) .mxs-watch:hover { background: rgba(0,0,0,.62); border-color: rgba(255,255,255,.6); }
/* WordPress admin bar (logged-in users only): keep the sticky stage below it */
@media (min-width: 601px) { body.admin-bar .mxs-sticky { top: 46px; height: calc(100svh - 46px); } }
@media (min-width: 783px) { body.admin-bar .mxs-sticky { top: 32px; height: calc(100svh - 32px); } }
.mxs-watch:focus-visible, .mxs-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mxs-playing .mxs-watch { opacity: 0; pointer-events: none; }
.mxs-hint { position: absolute; left: 50%; top: max(20px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 3;
  color: rgba(255,255,255,.7); font-size: 12px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.mxs-playing .mxs-hint { opacity: 1; }
.mxs-loading { position: absolute; right: 18px; bottom: 16px; z-index: 3; color: rgba(255,255,255,.45); font-size: 11px; }
.mxs-error .mxs-sticky::after { content: "Scroll frames not found: check the frames URL in Settings \2192 BuildPro Experience";
  position: absolute; inset: auto 16px 16px; color: #f88; font: 600 13px/1.3 system-ui, sans-serif; }
@media (prefers-reduced-motion: reduce) { .mxs-hint { display: none; } }

/* ---------------- BuildPro design layer ---------------- */
/* --bpx-safe-top: space reserved for a sticky site header (set it in Elementor custom CSS if your header overlaps) */
.bpx-scroll { --bpx-ink: #f4f1ea; --bpx-accent: #c9a46a; --bpx-font: inherit; --bpx-safe-top: 16px; font-family: var(--bpx-font); }
.bpx-scroll .mxs-watch { top: max(var(--bpx-safe-top), env(safe-area-inset-top)); }
/* poster under the canvas until the first frame paints (frames start loading after window load) */
.bpx-scroll .mxs-canvas { opacity: 0; transition: opacity .35s ease; }
.bpx-scroll.mxs-ready .mxs-canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bpx-scroll .mxs-canvas { transition: none; } }
.bpx-scroll .bpx-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 70%); }
.bpx-scroll .bpx-concept { position: absolute; left: 16px; top: max(var(--bpx-safe-top), env(safe-area-inset-top)); z-index: 3;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.35); padding: 8px 12px; border-radius: 999px; }
.bpx-scroll .mxs-step { text-align: left; left: clamp(16px, 6vw, 96px); right: auto; bottom: 12%; max-width: min(580px, calc(100% - 32px)); color: var(--bpx-ink); }
.bpx-scroll .bpx-eyebrow { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bpx-accent); }
/* no text-shadow on captions: it repaints on every fade (measured); legibility comes from .bpx-shade */
.bpx-scroll .mxs-step .bpx-h { margin: 0 0 .35em; font-family: inherit; font-weight: 300; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -.02em; color: var(--bpx-ink); }
.bpx-scroll .mxs-step p { margin: 0; max-width: 32em; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.5; color: rgba(255,255,255,.88); }
.bpx-scroll .mxs-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; margin: 18px 10px 0 0; border-radius: 999px;
  background: var(--bpx-accent); color: #111 !important; font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: none; pointer-events: auto; }
.bpx-scroll .mxs-cta.is-ghost { background: rgba(0,0,0,.35); color: #fff !important; border: 1px solid rgba(255,255,255,.45); }
.bpx-scroll .mxs-watch { font-family: inherit; }
@media (max-aspect-ratio: 9/10) {
  .bpx-scroll .mxs-step { top: calc(13% + var(--bpx-safe-top) - 16px); bottom: auto; left: 16px; right: 16px; max-width: none; }
  .bpx-scroll .bpx-shade { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 38%, rgba(0,0,0,0) 55%); }
  .bpx-scroll .bpx-concept { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); }
}
/* Elementor: let the section break out of boxed containers when placed in a full-width section */
.elementor-widget-bpx_construction_scroll, .elementor-widget-bpx_construction_scroll > .elementor-widget-container { width: 100%; }
