/* Metfab Banner Artwork – front end */

/* the banner section clips the wire at the screen edges */
.mfba-clip { overflow-x: clip; }

@supports not (overflow-x: clip) {
    .mfba-clip { overflow-x: hidden; }
}

/* let the wire spill out of the heading and column */
#top .mfba-host { overflow: visible !important; }

.mfba {
    display: block;
    position: relative;
}

/* the replaced word stays in the heading for SEO and screen readers */
.mfba__sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mfba__band {
    display: block;
    position: relative;
    height: 1.1em;            /* replaced once the image is measured */
    margin: .06em 0 .04em;
    pointer-events: none;
}

#top .mfba__img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    max-width: none !important;
    height: auto;
    margin: 0;
    border: 0;
    user-select: none;
    -webkit-user-select: none;
}


/* ---------- PNG: drawn in with a soft-edged mask ---------- */

#top .mfba--draw .mfba__img {
    -webkit-mask-image: linear-gradient(90deg, #000 0 46%, rgba(0, 0, 0, 0) 54%);
            mask-image: linear-gradient(90deg, #000 0 46%, rgba(0, 0, 0, 0) 54%);
    -webkit-mask-size: 220% 100%;
            mask-size: 220% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: 100% 0;
            mask-position: 100% 0;
}

#top .mfba--draw.is-rtl .mfba__img {
    -webkit-mask-image: linear-gradient(270deg, #000 0 46%, rgba(0, 0, 0, 0) 54%);
            mask-image: linear-gradient(270deg, #000 0 46%, rgba(0, 0, 0, 0) 54%);
    -webkit-mask-position: 0% 0;
            mask-position: 0% 0;
}

#top .mfba--draw.is-drawn .mfba__img {
    -webkit-animation: mfba-draw var(--mfba-time, 3800ms) cubic-bezier(.22, .61, .36, 1) forwards;
            animation: mfba-draw var(--mfba-time, 3800ms) cubic-bezier(.22, .61, .36, 1) forwards;
}

#top .mfba--draw.is-rtl.is-drawn .mfba__img {
    -webkit-animation-name: mfba-draw-rtl;
            animation-name: mfba-draw-rtl;
}

/* literal values: Safari won't resolve var() in mask keyframes */
@-webkit-keyframes mfba-draw {
    from { -webkit-mask-position: 100% 0; }
    to   { -webkit-mask-position: 0% 0; }
}
@keyframes mfba-draw {
    from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    to   { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
@-webkit-keyframes mfba-draw-rtl {
    from { -webkit-mask-position: 0% 0; }
    to   { -webkit-mask-position: 100% 0; }
}
@keyframes mfba-draw-rtl {
    from { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
    to   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    #top .mfba--draw .mfba__img {
        -webkit-mask-image: none;
                mask-image: none;
        -webkit-animation: none;
                animation: none;
    }
}
