/* VFN — illustration video as the homepage hero's background layer.
   The design's .vfn-hero is position:relative (100vw breakout,
   min-height:560px, overflow:hidden); its photo is an absolutely
   positioned <img> (inset:0, width/height:100%, object-fit:cover) and
   the copy sits in .vfn-hero-txt (position:relative, z-index:2, navy
   gradient). The video takes the photo's exact layer — same box, same
   cover crop — so the hero's layout cannot shift.
   The video starts transparent; the JS adds .vfn-video-on to the hero
   only after the video can play, fading it in over the photo. Without
   JS, or if the video fails, no rule here changes the painted result
   and the photo hero remains exactly as designed. */
.vfn-hero .vfn-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* keep the VinylFloorNetwork.com brand strip in frame */
    z-index: 1; /* above the hero photo, below .vfn-hero-txt (z-index:2) */
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.vfn-hero.vfn-video-on .vfn-hero-video {
    opacity: 1;
}
