/* Native V2 layout + supplied construction runtime; no duplicate text, fonts or header. */
body.ac-bdx-preview .ac-bdx-specimen .ac-bdx-hero--animated.has-interactive-hero .ac-bdx-hero__art { z-index: 1; left: 0; pointer-events: none; }
body.ac-bdx-preview .ac-bdx-specimen .has-interactive-hero .ac-bdx-hero__copy { z-index: 2; pointer-events: none; }
body.ac-bdx-preview .ac-bdx-specimen .has-interactive-hero .ac-bdx-hero__copy a { pointer-events: auto; }
body.ac-bdx-preview .ac-bdx-specimen .has-interactive-hero .ac-bdx-hero__art > img { visibility: hidden; }
body.ac-bdx-preview .ac-bdx-specimen .has-interactive-hero .ac-bdx-hero-motion__badge { display: none !important; }
.ac-bdx-hero__art > .bdx-hero { position: absolute; inset: 0; height: 100%; background: transparent; overflow: visible; user-select: auto; --bdx-font-display: var(--ac-font-display); --bdx-font-text: var(--ac-font-body); --bdx-grijs: #5a4a6a; }
.ac-bdx-hero__art .bdx-hero__stage { position: absolute; inset: 0; height: 100%; pointer-events: auto; }
.ac-bdx-hero__art .bdx-hero__scene { left: auto; right: 0; transform-origin: 100% 0; }
.ac-bdx-hero__art .bdx-blik { max-height: calc(100% - 48px); overflow: auto; overscroll-behavior: contain; }
.ac-bdx-hero__art .bdx-blik__kop { position: sticky; top: 0; background: #fff; z-index: 1; }
.ac-bdx-hero__art .bdx-blik__kop button { min-width: 44px; min-height: 44px; }
.ac-bdx-hero__art .bdx-blik__link { display: inline-flex; align-items: center; min-height: 28px; }
.ac-bdx-hero__art .bdx-hint { display: none; }
@media (min-width: 1441px) { .ac-bdx-hero__art .bdx-hero__scene { top: var(--ac-bdx-hero-art-y, 0px); } }
@media (max-width: 1024px) {
  body.ac-bdx-preview .ac-bdx-specimen .has-interactive-hero .ac-bdx-hero__art { height: calc(100vw * 320 / 390); overflow: clip; }
  .ac-bdx-hero__art .bdx-hero__scene { width: 390px; height: 320px; }
  .ac-bdx-hero__art .bdx-blik { position: absolute; bottom: 12px; right: 12px; max-height: calc(100% - 24px); }
  .ac-bdx-hero__art .bdx-blikbtn { bottom: 12px; right: 12px; }
}

/* Preview's shared button reset has higher specificity than the supplied CSS. */
body.ac-bdx-preview .ac-bdx-specimen .bdx-hero .bdx-blikbtn { display:inline-flex; align-items:center; background:var(--ac-accent); color:#fff; border:0; border-radius:999px; padding:10px 16px; min-height:44px; font:500 13px/18px var(--ac-font-body); box-shadow:0 6px 18px rgb(75 32 105 / .25); }
body.ac-bdx-preview .ac-bdx-specimen .bdx-hero .bdx-blikbtn[hidden] { display:none; }
body.ac-bdx-preview .ac-bdx-specimen .bdx-hero .bdx-blikbtn i { background: url('../../assets/baudex-v2/hero-motion/19119.svg') center/contain no-repeat; }
body.ac-bdx-preview .ac-bdx-specimen .bdx-hero .bdx-blikbtn:hover { background:var(--ac-ring); color:#fff; }
body.ac-bdx-preview .ac-bdx-specimen .bdx-hero .bdx-blikbtn:focus-visible { outline:2px solid var(--ac-ring); outline-offset:3px; }

@media (min-width: 1025px) and (max-width: 1440px) {
  .ac-bdx-hero__art .bdx-hero__scene { left:0; right:auto; }
}
@media (min-width: 1025px) and (max-width: 1300px) {
  .ac-bdx-hero__art .bdx-hero__scene { left:-100px; }
}

/* Never paint the finished fallback before a planned intro. Failure/reduced
   motion/no JS still show it, and the head bootstrap has an 8 s fail-open. */
html.bdx-hero-intro-loading body.ac-bdx-preview .ac-bdx-specimen .ac-bdx-hero--animated:not(.has-interactive-hero):not([data-motion-state="fallback"]) .ac-bdx-hero__art > img { visibility:hidden; }
@media (prefers-reduced-motion: reduce) {
  html.bdx-hero-intro-loading body.ac-bdx-preview .ac-bdx-specimen .ac-bdx-hero--animated:not(.has-interactive-hero) .ac-bdx-hero__art > img { visibility:visible; }
}

/* The scene uses only 2D transforms. Forcing hidden backfaces on every full-size
   transparent bitmap creates dozens of overlapping compositor surfaces. Chrome
   at DPR2 can then drop a photo/beam tile even with a steady animation clock. */
.ac-bdx-hero__art .bdx-layer { backface-visibility: visible; }

/* Mobile calculation lives in document flow, after the interactive artwork. */
.ac-bdx-hero__calculation { display:none; }
@media (max-width:1024px) {
  body.ac-bdx-preview .ac-bdx-specimen .ac-bdx-hero__calculation {
    display:block; order:3; position:relative; z-index:2; margin:20px 24px 0;
    min-width:0; pointer-events:auto;
    --bdx-paars:var(--ac-accent); --bdx-paars-licht:var(--ac-ring);
    --bdx-inkt:var(--ac-fg); --bdx-grijs:var(--ac-fg-muted);
    --bdx-font-text:var(--ac-font-body);
  }
  body.ac-bdx-preview .ac-bdx-specimen .ac-bdx-hero__calculation[hidden] { display:none; }
  .ac-bdx-hero__calculation .bdx-blik {
    position:static; width:100%; max-width:none; height:auto; max-height:none;
    overflow:visible; box-shadow:none; overscroll-behavior:auto;
  }
  body.ac-bdx-preview .ac-bdx-specimen .ac-bdx-hero__calculation .bdx-blik__kop {
    position:static; gap:12px; padding:4px 8px 4px 14px;
    color:var(--ac-accent); font:500 17px/1.35 var(--ac-font-display);
  }
  body.ac-bdx-preview .ac-bdx-specimen .ac-bdx-hero__calculation .bdx-blik__kop button {
    width:44px; height:44px; flex:0 0 44px; padding:0; border:0; font-size:0;
    background:transparent url('../../assets/baudex-v2/home-close.svg') center / 16px no-repeat;
    scroll-margin-block:88px 16px;
  }
  .ac-bdx-hero__calculation .bdx-blik__tot td {
    background:var(--ac-bg-subtle); font-size:16px; padding-block:12px;
    border-bottom:1px solid rgb(75 32 105 / .12);
  }
  .ac-bdx-hero__calculation .bdx-blik__link { display:inline-flex; align-items:center; min-height:44px; font-size:13px; }
  .ac-bdx-hero__calculation .bdx-blik__cta { display:flex; align-items:center; justify-content:center; min-height:44px; }
  .ac-bdx-hero__calculation :is(a,button):focus-visible { outline:2px solid var(--ac-ring); outline-offset:2px; }
}

/* Keep the entry action above the initial desktop viewport edge, allowing
   for the fixed 80px header and a 24px breathing space. It still belongs
   to the artwork and scrolls away with the hero. */
@media (min-width:1025px) {
  .ac-bdx-hero__art .bdx-blikbtn { bottom:max(24px, calc(100% - 100svh + 104px)); }
}
