/* The native parallax hides the image and writes its initial measured height inline. */
#butterfly .butterfly-parallax {
    height: auto !important;
    aspect-ratio: var(--panel-ratio);
    overflow: hidden;
}
#butterfly .butterfly-parallax > img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
}
#butterfly .butterfly-parallax-macro {
    --panel-ratio: 2880 / 1204;
    transform: scaleX(-1);
}
#butterfly .butterfly-parallax-car {
    --panel-ratio: 1.415;
    position: relative;
}
/* The PSD’s watercolor mask carries the painted edge onto the original cement. */
#butterfly .butterfly-parallax-car::after {
    content: "";
    position: absolute;
    inset: 0 0 0 47%;
    background: url("../img/butterfly/morphovia-cement.webp") center / cover no-repeat;
    -webkit-mask: url("../img/butterfly/morphovia-watercolor-mask.png") center / 100% 100% no-repeat;
    mask: url("../img/butterfly/morphovia-watercolor-mask.png") center / 100% 100% no-repeat;
    pointer-events: none;
}
@media (min-width: 901px) {
    /* A shorter frame gives the native background-position tween room to move. */
    #butterfly .butterfly-parallax-macro { --panel-ratio: 3 / 1; }
    #butterfly .butterfly-parallax-car { --panel-ratio: 16 / 9; }
}
@media (max-width: 900px) {
    #butterfly .butterfly-parallax-car > img {
        height: 100%;
        object-fit: cover;
        object-position: 47% center;
    }
    /* Restore the inline image when a desktop session is resized to phone width. */
    #butterfly .butterfly-parallax.parallax_wrapper { background-image: none !important; }
    #butterfly .butterfly-parallax.parallax_wrapper > img { display: block !important; }
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-100.woff2') format('woff2');
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-300.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-400.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
#butterfly .color-butterfly,
#butterfly .table-type-2 thead.color-butterfly td,
#butterfly body.dark .alioth-services .service-toggle {
    color: var(--butterfly-color);
}
#butterfly body.dark .alioth-services .service-wrap::before {
    background: var(--butterfly-color);
}
#butterfly .project-featured-image {
    position: relative;
}
#butterfly .project-featured-image picture {
    display: block;
    width: 100%;
    height: 100%;
}
#butterfly .project-featured-image img {
    object-position: center;
}
#butterfly .project-page-header.style_2 .project-head {
    left: 62%;
    top: 52%;
    width: 35%;
    bottom: auto;
    right: auto;
    transform: none;
}
#butterfly .project-page-header .project-title h1.big-title.formation {
    color: var(--butterfly-color);
    -webkit-text-stroke: .8px #123546;
    paint-order: stroke fill;
    font-size: clamp(24px, 2.25vw, 36px);
    letter-spacing: .065em!important;
    line-height: 1.45;
}
#butterfly .project-page-header.style_2 .project-cat {
    color: #102c3b;
    font-weight: 300 !important;
    font-size: clamp(19px, 1.75vw, 28px);
    line-height: 1.2;
}
#butterfly .project-cat .hero-phrase {
    display: inline-block;
    white-space: nowrap;
}
/* SplitText trims the space between adjacent phrases when it wraps the caption. */
#butterfly .project-cat > span:not(.hero-phrase) .hero-phrase + .hero-phrase::before {
    content: "\00a0";
}
@media (min-width: 521px) {
    /* Keep the live promise within the cement margin beside the centred carton. */
    #butterfly .project-cat .hero-phrase:first-child { display: block; }
    #butterfly .project-cat > span:not(.hero-phrase) .hero-phrase + .hero-phrase::before { content: none; }
}
#butterfly .project-page-header.style_2 {
    min-height: 100vh;
}
#butterfly .automotive-tech {
    left: 9%;
    top: 45%;
    color: #fff;
    z-index: 2;
    text-shadow: 0 1px 13px #101324;
}
#butterfly #automotive-title {
    left: auto;
    right: 5%;
    top: 8%;
    width: clamp(55px,8vw,112px);
    filter: drop-shadow(0 1px 4px #111);
}
#butterfly .automotive-tech-1 {
    top: 44%;
    right: 4.5%;
    width: 30%;
    color: var(--butterfly-color);
    text-align: right;
}
#butterfly .automotive-tech-1 h1.big-title,
#butterfly .automotive-tech-1 h1.big-title .anim_line {
    color: inherit;
    text-align: right;
}
#butterfly .automotive-feature-img-container {
    padding-right: 0;
}
#butterfly .butterfly-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 10px;
}
#butterfly .butterfly-features li {
    text-align: center;
    line-height: 1.3;
    font-weight: 300;
}
#butterfly .butterfly-features img {
    display: block;
    margin: 0 auto .65em;
}
@media (min-width: 1025px) {
    #butterfly .tint-product > .c-col-3 { width: 20%; }
    /* The logo and menu sit over the rainforest; the warranty link sits over cement. */
    #butterfly .site-header.light:not(.scrolled):not(.menu-has-open) .light-logo,
    #butterfly .site-header.light:not(.scrolled):not(.menu-has-open) .toggle-line {
        filter: drop-shadow(0 1px 2px #1b221d);
    }
    #butterfly .site-header.light:not(.scrolled):not(.menu-has-open) .header-cta-but a { color: #17292d; }
    #butterfly .site-header.light:not(.scrolled):not(.menu-has-open) .header-cta-but a:not(:hover)::before { background: rgba(255,255,255,.6); }
}
/* The native tablet layout reserves an 80px black strip above the artwork. */
@media (min-width: 451px) and (max-width: 1024px) {
    #butterfly .site-header:not(.scrolled):not(.menu-has-open) { height: 80px; }
    #butterfly .site-header:not(.scrolled):not(.menu-has-open) .header-wrapper { top: 50%; }
}
@media (max-width: 1024px) {
    #butterfly .project-page-header.style_2 { min-height: 56.25vw; }
    #butterfly .project-page-header.style_2 .project-head {
        top: 51%;
    }
    #butterfly .butterfly-features { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.3rem .7rem; }
}
@media (max-width: 767px) {
    #butterfly .project-page-header.style_2,
    #butterfly .project-page-header.style_2 .project-featured-image {
        height: 75vw;
        min-height: 75vw;
    }
    #butterfly .project-page-header.style_2 .project-head {
        left: 59%;
        top: 44%;
        width: 38%;
    }
    #butterfly .project-page-header .project-title h1.big-title.formation {
        font-size: clamp(15px, 3.2vw, 24px);
    }
    #butterfly .project-page-header.style_2 .project-cat {
        font-size: clamp(14px, 2.7vw, 19px);
    }
}
@media (max-width: 576px) {
    #butterfly .project-page-header .project-title h1.big-title.formation {
        font-size: clamp(15px, 4.2vw, 19px);
        line-height: 1.45;
        letter-spacing: 1.2px!important;
    }
    #butterfly .project-page-header.style_2 .project-cat {
        font-size: clamp(14px, 3.7vw, 16px);
        line-height: 1.2;
        letter-spacing: -.025em;
    }

    #butterfly .automotive-tech-1 { right: 4%; width: 31%; }
    #butterfly .butterfly-features { font-size: 13px; }
}

@media (max-width: 520px) {
    #butterfly .project-page-header.style_2 .project-head {
        left: 5%;
        top: auto;
        bottom: 3.5%;
        width: 83%;
    }
    #butterfly .project-page-header.style_2 .project-cat { margin-bottom: 0; }
}

#butterfly .alioth-services .service {
    overflow-x: auto;
}


/* Keep the paired technology name within the tint template's headline column. */
#butterfly .butterfly-question { container-type: inline-size; }
#butterfly .butterfly-question h2 span { display: inline-block; white-space: nowrap; }
#butterfly .butterfly-question h2.condensed { font-size: min(36px, 12cqi); }
@media (max-width: 1024px) {
    #butterfly .butterfly-question h2.condensed { font-size: min(2rem, 12cqi); }
}
