/* HERO-D (15.11, ported onto the fix branch as hd2): the real BOMA lockup as the first thing in the hero text column, above the h1, price line and buttons.
   Oblique blocks (slanted slices of the real logo image) settle into the logo once, then one plain img rests.
   Port keeps the fix-branch hero layout, h1 and buttons; only the logo stage, the slices and the header-mark hide live here.
   Default (no JS, reduced motion) = the plain logo img, no slices.
   html.hd-anim (set by a tiny head script only when motion is allowed) = img hidden until js swaps (html.hd-done); a CSS failsafe reveals it if js never runs. */

/* fixed aspect box from the trimmed lockup (1120 x 345): zero layout shift. Slices are clipped to the stage, so none can reach the header or menu row. */
.hd-stage { position: relative; margin: 0 0 clamp(20px, 3.2vw, 40px); width: min(100%, 560px); aspect-ratio: 1120 / 345; overflow: hidden; overflow: clip; }
.hd-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hd-slices { position: absolute; inset: 0; pointer-events: none; overflow: hidden; overflow: clip; }
.hd-slice { position: absolute; inset: 0; background: url("../assets/hero-d/boma-lockup.webp?v=15.11-hd3") 0 0 / 100% 100% no-repeat; will-change: transform, opacity; }
html:not(.hd-anim) .hd-slices { display: none; }
/* one layer only: until the swap the img is hidden, after it the slices are gone (same style change, same frame) */
html.hd-anim .hd-img { visibility: hidden; animation: hd-failsafe 0s 8s forwards; }
@keyframes hd-failsafe { to { visibility: visible; } }
html.hd-anim.hd-done .hd-img { visibility: visible; }
html.hd-done .hd-slices { display: none; }

/* brand shows once: header brand mark hides while the hero is on screen (keeps its box) */
html.hd-in-view .site-header .brand-mark { opacity: 0; visibility: hidden; }
.site-header .brand-mark { transition: opacity 300ms ease, visibility 300ms; }
@media (prefers-reduced-motion: reduce) { .site-header .brand-mark { transition: none; } }
