@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900&display=swap');
@import url("https://use.typekit.net/rvc5pbn.css");
@import url("https://use.typekit.net/cbr2tza.css");


html {
    scroll-behavior: smooth;

}

body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-image: url("https://transforms.transportenvironment.org/production/images/background_image_misf.png?w=662&h=4000&auto=compress%2Cformat&fit=crop&dm=1790602173&s=a5d53b756eddbeee5df4e384839a66df");
    background-color: #F4F4F1;
    height: auto;
    background-position: center;
    background-repeat: repeat;
    background-size: cover;

}

#my-custom-code p {
    line-height: 1.5em;
    font-size: 1.2rem;
    color: #1C1C1C;
    z-index: 3;
    position: relative;
}

#site-footer p {
    font-size: 0.875rem;

}

#my-custom-code h3 {
    color: #4D45FF;
    font-size: 3em;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    font-family: "effra", sans-serif;
    width: 100%;
    letter-spacing: 10px;
    

}

#my-custom-code h3.shadow {
    align-content: center;
    width: 100%;
    filter: blur(30px);
    font-size: 3rem;
    color: #4D45FF;
    position: absolute;
    top: 0;
    margin-top: 0;
    left: 0;
    letter-spacing: 10px;
        font-weight: 400;




}



#my-custom-code h4 {
    font-size: 2.369rem;
    font-family: "effra", sans-serif;
    font-weight: 400;
    margin-bottom: 10px;
    color: #75A1F4;
    letter-spacing: normal;
        animation: appear2 5s ease both;

}


#my-custom-code h5 {
    font-size: 1.777rem;
    font-family: "effra", sans-serif;
    font-weight: 200;
    color: #596478;
}

#my-custom-code .wrapper_80 .title_light h5 {
    color: #E4F0FF;
}

#my-custom-code h6 {
    font-size: 1.8rem;
    font-family: "effra", sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
   line-height: 100%;

}

.right_content p {
    font-family: "Roboto", sans-serif;
    font-style: italic;
    font-weight: 300;
    color: #596478;
    font-size: 1.125rem;
    text-align: left;
}


#my-custom-code .wrapper_80 h5 {
    font-family: "effra", sans-serif;
    font-weight: 700;
    text-align: left;
    color: #75A1F4;
    display: flex;
    margin-top: 20%;
    letter-spacing: 0.5px;
}

.wrapper_80_chart {
    width: 100%;
}

.wrapper_80 a {
    color: #4D45FF;
    cursor: pointer;
    text-decoration: underline;

}

.hr_ {
    position: relative;
    max-width: 500px;

    text-align: center;
    display: inline;
}

.hr_:after {
    content: " ";
    display: block;
    height: 5px;
    width: 70px;

    right: 0;
    margin-bottom: 10%;

    background: #75A1F4;
    animation: hr-animated 5s infinite;

}

#my-custom-code .summary h2 {
    color: #F58876;
    font-size: 5.61rem;
    width: 45%;
    display: flex;
    text-align: left;
    justify-content: left;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    font-family: "effra", sans-serif;
    margin-top: 0;
    line-height: 1.1em;
}

.summary {
    display: flex;
}



 #my-custom-code h4 {
    margin: 0 auto;
    letter-spacing: .15em;
    box-sizing: border-box;
    max-width: 100%;
  
    animation: appear 4s ease both;
    


}
@keyframes appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

#my-custom-code .summary h4 {
    color: #F58876;

    text-align: left;
    justify-content: left;
    font-weight: 700;
    margin-top: 0;
    position: relative;
    margin-top: 3%;
    vertical-align: bottom;
}

.hr_summary:after {
    content: " ";
    display: block;
    height: 5px;
    width: 50%;

    right: 0;
    margin-bottom: 10%;

    background: #F58876;
}



.title_chapter h4 {
    font-size: 1.5rem;
    font-family: "effra", sans-serif;
    font-weight: 100;
    text-align: left;
    color: #828CA0;
    display: flex;
    padding: 10px;
    justify-content: center;

}

.hr_chapter:before {
    content: " ";
    display: block;
    height: 1px;
    width: 30px;
    position: absolute;
    top: 50%;
    left: 32%;

    background: #828CA0;
}

.hr_chapter {
    position: relative;
    max-width: 500px;
    margin: 100px auto;
    text-align: center;
}

.hr_chapter:after {
    content: " ";
    height: 1px;
    width: 30px;
    background: #828CA0;
    display: block;
    position: absolute;
    top: 50%;
    right: 32%
}



.header_main {
    height: 130vh;
    width: 100%;
    background: linear-gradient(180deg, #80B8FF 0%, #B2D4FF 100%);

}

.intro_world {
    position: sticky;
    top: 30%;
}

.world {
    display: grid;
    justify-content: center;
    margin: 0 auto;
    position: sticky;
    place-items: center;
    top: 20%;
    z-index: 2;
    width: 20%;
}

.header_title {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;

}

#my-custom-code .header_title h1 {
    align-content: center;
    width: 100%;
    z-index: 5;
    color: #4D45FF;
    font-weight: 400;
    font-family: "effra", sans-serif;
    font-size: 6rem;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 100%;
    animation: appear 2.5s ease both;

}

#my-custom-code .header_title h2 {
    align-content: center;
    width: 50%;
    filter: blur(47.5px);
    font-size: 4rem;
    color: #FFF745;
    position: absolute;
    animation: appear 3s ease both;

    
}

#my-custom-code .header_title h3 {
    align-content: center;
    width: 50%;
    color: black;
    margin-top: 2%;
        letter-spacing: 10px; 

}

#my-custom-code .header_title h4 {
    align-content: center;
    width: 40%;
    z-index: 5;
    margin-top: 2%;
    color: #4D45FF;
    font-weight: 400;
    font-size: 2rem;
    animation: appear 7s ease both;
    font-family: "effra", sans-serif;
    line-height: 100%;
    letter-spacing: 2px; 
}

#my-custom-code .header_title h1.bold_text {
    font-weight: 700;
    font-size: 9rem;
    width: 100%;
}

.right_content {
    text-align: center;
    display: contents;
}


#section1 a {

    -webkit-animation: sdb05 1.5s infinite;
    animation: link 1.5s infinite;
    box-sizing: border-box;

}



.intro_lines {
    overflow: hidden;
}



.lines-move {
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    width: 50%;
    margin-top: 53%;

}

.lines-move2 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    width: 50%;

    z-index: 3;
    margin-top: 42%;

}




.lines-move3 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    width: 100%;
    margin-top: 41%;

}

.lines-move4 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    width: 90%;
    z-index: 4;

    margin-top: 55%;

}

.lines-move5 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    width: 100%;
    z-index: 3;
    margin-top: 50%;
}

.lines-move6 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    width: 120%;
    z-index: 3;
    margin-top: 60%;
}

.lines-move7 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    width: 100%;
    z-index: 3;
    margin-top: 54%;
}

.lines-move8 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    width: 50%;
    margin-top: 80%;
}


.lines-move5m {
    display: none;
}

.lines-move5m2 {
    display: none;
}


.content {
    z-index: 1;
    position: relative;

}

.content_ {
    background: linear-gradient(180deg, rgba(180, 216, 244, 0.00) 0%, #B2D4FF 32.99%, #B2D4FF 65.24%, rgba(180, 216, 244, 0.00) 98.98%);
}

.content_day {
    background: linear-gradient(180deg, rgba(178, 212, 255, 0.00) 0%, #B2D4FF 50%, rgba(178, 212, 255, 0.00) 100%);


}

.content_header {
    background: linear-gradient(180deg, #B2D4FF 0%, rgba(178, 212, 255, 0.00) 100%);
}

.yellow_lines {
    position: absolute;
    opacity: 0.5;
}

.yellow_lines img {
    display: block;
    width: 949px;
    height: auto;
    max-width: none;
    padding: 0;
    margin: 0;
       -webkit-mask-image: linear-gradient(to bottom, #000 calc(50% + 50vh - 260px), transparent calc(50% + 50vh - 40px));
    mask-image: linear-gradient(to bottom, #000 calc(50% + 50vh - 260px), transparent calc(50% + 50vh - 40px));
}

.messages {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.messages_svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.messages_svg .bubble-anim {
    transform-box: fill-box;
    transform-origin: center;
    animation:
        messagePopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.3s + var(--i, 0) * 0.35s) both,
        messageFloat 6s ease-in-out calc(1s + var(--i, 0) * 0.35s) infinite;
}


@keyframes messagePopIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    60% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes messageFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }
}



@media (prefers-reduced-motion: reduce) {
    .messages_svg .bubble-anim {
        animation: none;
    }
}

.wrapper_80 {
    width: 600px;
    margin: 0 auto;
    margin-top: 5%;

}

.wrapper_85 {
    width: 60%;
    margin: 0 auto;
    margin-top: 5%;
    align-items: center;




}


.wrapper_80 p {
    margin-top: 5%;
}


.wrapper_90 {
    width: 90%;
    margin: 0 auto;
    margin-top: 10%;
}

.wrapper_90 img {
    width: 100%;
    margin: 0 auto;
    margin-top: 10%;
}






.wrapper_100 {
    overflow-x: hidden;

}

.img_100 {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
}

.img_90 {
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img_90_mov {
    display: none;
}

.img_80 {
    margin: 0 auto;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.img_80_m {
    display: none;
}

.wrapper_block .wrapper_90 {
    display: grid;
    align-items: stretch;
    justify-items: start;
    justify-content: end;
    align-content: space-evenly;
    margin-top: 10px;


}

.chapter {
    margin-top: 20%;
}

.chapter h6 {
    font-weight: 400;
    margin-bottom: -10px;
    color: #75A1F4;
    letter-spacing: .3rem;
    ;
    text-align: left;
    justify-content: center;
    width: 100%;


}

.chapter_title {
    position: relative;
}

.chapter_title h1 {

    color: #4D45FF;
    font-size: 80px;
    font-style: normal;
    font-weight: 400;
    line-height: 80px;
    letter-spacing: 13.6px;
    font-family: "Effra Trial";



}

.hr_title {
    margin-top: 2%;
    border-top: 1px solid #75A1F4;
    position: relative;
}

@keyframes line {
    0% {
        left: 50px;
        opacity: 1;
    }

    50% {
        left: 120px;
        opacity: 0.2;

    }

    100% {
        left: 50px;
        opacity: 1;

    }

}

.source {

    margin-bottom: 10%;
}


.source p {
    color: #596478;
    margin: 0;
}

.group_1 {
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: end;
    margin-top: 10%;
}

.group_2 {
    align-items: center;
    display: flex;
    justify-content: center;
}

.contrails_1 {
    width: 80%;
    margin-left: 17%
}

.contrails_2 {
    width: 100%;
    margin-top: 5%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.img_source {
    color: #bababa;
    margin-top: 5px;
}


.box {
    width: 600px;
    padding: 20px;
    border: 2px solid #E4F0FF;
    border-radius: 5px;
}

.box h5 {
    padding-top: 0;
    margin: 0;
}

.box_content {
    display: none;
    margin-top: 10px;
}

.box_arrow {
    cursor: pointer;
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
    width: 5%;
    vertical-align: middle;
    margin-left: 2%;
    margin-bottom: 0px;
    transition: transform 0.3s ease;
}


.box_arrow_rotated {
    transform: rotate(180deg);
}

.box_title {
    display: flex;
}

#my-custom-code .box_title h5 {
    margin-top: 0%;
}

#scrolly {
    position: relative;

    padding: 1rem;
}

#scrolly article {
    position: relative;
    padding: 0;
    max-width: 20rem;
    margin: 0 auto;
}

#scrolly figure {
    position: -webkit-sticky;
    position: sticky;
    margin: 0 auto;
    justify-content: center;

    z-index: 0;
}

#scrolly figure img {
    width: auto;
    max-width: 70%;
    margin: 0 auto;
    display: flex;
    top: 0;
}

.contrails {
    width: 10%;
}


.step {
    margin: 0 auto 50rem auto;
    z-index: 2;
    padding: 25px 0px;
    width: 80%;
    position: relative;
    z-index: 10;
}

.step:last-child {
    margin-bottom: 0;
}

.step.is-active {
    opacity: 1;

}

.step.is-active p {
    color: black;
}

.step p {
    text-align: left;
    padding: 1rem;
    background-color: rgba(253, 252, 252, 1);
    color: black;
    font-size: 1.2em;
    border-radius: 12px;
    filter: drop-shadow(0 4px 22px rgba(77, 69, 255, 0.6));
}

#myImage {
    transition: opacity 1s ease-in-out;
    opacity: 1;
}


#outro {
    margin-bottom: 20%;
}



#scrolly2 {
    position: relative;

    padding: 1rem;
}

#scrolly2 article {
    position: relative;
    padding: 0;
    max-width: 20rem;
    margin: 0 auto;
}

#scrolly2 figure {
    position: -webkit-sticky;
    position: sticky;
    margin: 0 auto;
    justify-content: center;

    z-index: 0;
}

#scrolly2 figure img {
    width: auto;
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    top: 0;
}

.step2 {
    margin: 0 auto 50rem auto;
    z-index: 2;
    padding: 25px 0px;
}

.step2:last-child {
    margin-bottom: 0;
}

.step2.is-active2 {
    opacity: 1;

}

.step2.is-active2 p {
    color: black;
}

.step2 p {
    text-align: left;
    padding: 1rem;
    background-color: rgba(253, 252, 252, 1);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    color: black;
    border: 1px solid black;
    font-size: 1.2em;
}

.myImage2 {
    transition: opacity 1s ease-in-out;
    opacity: 1;
}


#outro2 {
    margin-bottom: 20%;
}

.mov {
    display: none !important;
    ;
}

.desktop-image {
    display: block !important;
}

.mobile-image {
    display: none !important;
}

.desktop-image2 {
    display: block !important;
    width: 100%;
}

.mobile-image2 {
    display: none !important;
}


.mapboxgl-popup-content {
    background-color: white;
    border-radius: 8px;
    padding: 10px;
}



#scrolly_content section {

    width: 40%;
    margin: 0 auto;
}

#scrolly_content section p {
    text-align: left;
    padding: 1rem;
    background-color: rgba(253, 252, 252, 1);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    color: black;
    border: 1px solid black;
    font-size: 1.2em;
}


#scrolly_content section.active {
    opacity: 1;
    z-index: 3;
    position: relative;
}

#scrolly_content section:last-child {
    border-bottom: none;
    margin-bottom: 200px;
}

.map-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#map-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
}



#map-container::before {
    top: 0;
    background: linear-gradient(180deg, #F4F4F1 0%, rgba(244, 244, 241, 0) 100%);
}

#map-container::after {
    bottom: 0;
    background: linear-gradient(0deg, #F4F4F1 0%, rgba(244, 244, 241, 0) 100%);
}

#map2-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80vh;
}

#map {
    width: 100%;
    height: 80%;
}

#map2 {
    width: 100%;
    height: 80%;
}

.map-overlay {

    position: absolute;
    width: 30%;
    top: 10%;
    left: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.map-overlay .map-overlay-inner {
    background: rgba(255, 255, 255, 0.50);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
    width: 100%;

}

.map-overlay-inner p {
    font-weight: 700;

}

.map-overlay-inner h6 {

    margin:10px;
}

.map-overlay h2 {
    line-height: 24px;
    display: block;
    margin: 0;
    font-size: 1em;
}

.year-slider-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.title-info {
    width: 80%;
    margin: 0 auto;

}

#my-custom-code .title-info h5 {
    font-family: "Roboto", sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.play-pause-btn {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    border: none;
    border-radius: 100%;
    font-size: 0.75em;
    cursor: pointer;
    transition: background-color .2s;
    font-size: 20px;
}





.map-legend {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 0.85em;
    color: #1C1C1C;
}

.map-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.map-legend-swatch {
    flex-shrink: 0;
    width: 20px;
    height: 8px;
    border-radius: 10px;
}

.map-overlay input {
    background-color: transparent;
    display: inline-block;
    width: 100%;
    position: relative;
    margin: 0;
    cursor: ew-resize;
}


#slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: #D9DCE2;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 10px;
}

#slider:hover {
    opacity: 1;
}

#slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #828CA0;
    cursor: pointer;
    border-radius: 100%;

}

#slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #828CA0;
    cursor: pointer;
    border-radius: 100%;
}


.legend {

    margin-top: 0;
}


.legend_colour p {
    margin-top: 0px;

}

.legend p {
    margin-top: 0%;

}

.legend_1 {
    margin-bottom: 0;
}

.legend_2 {
    margin-bottom: 0;
}

.legend_1:before {
    content: " ";
    display: block;
    height: 4px;
    width: 30px;
    position: relative;
    top: 0;
    left: 0%;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-grid;
    border-radius: 10px;
    background: #F58876;
}

.legend_2:before {
    content: " ";
    display: block;
    height: 4px;
    width: 30px;
    position: relative;
    top: 0;
    vertical-align: middle;
    display: inline-grid;
    border-radius: 10px;
    margin-right: 10px;

    background: #CFCFCF;

}

.legend_colour {
    display: block;


}

.wrapper_legend {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 10px;
    width: 25%;
    position: absolute;
    margin-top: 0%;
    z-index: 2;
}



.wrapper_world {

    z-index: 1;
    width: 100%;
    margin-top: 0%;

    max-width: 100%;

}


#map2-container .title_world {
    width: 100%;
}


#my-custom-code .title_world h5 {
    font-weight: 700;
    margin-bottom: 0%;
    color: black;

}


#my-custom-code #map2-container .title_world h5 {
    font-weight: 700;
    margin-bottom: 5%;
    color: black;
    margin-bottom: 10%s;

}

#my-custom-code .title_world p {
    margin-bottom: 1%;
    width: 100%;

}

.title_world .img_100 {
    width: 100%;
    margin-top: 0px;
}

#my-custom-code .quote p {
    font-family: "effra", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #4D45FF;
    padding-left: 1.5rem;
    position: relative;
    z-index: auto;
}

#my-custom-code .quote-left p {
    font-family: "effra", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #4D45FF;
    padding-left: 1.5rem;
    position: relative;
    z-index: auto;
}



#my-custom-code .quote p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: calc(100% + 40vh);
    background: #4D45FF;
    pointer-events: none;
}

#my-custom-code .quote-left p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: calc(100% + 40vh);
    background: #4D45FF;
    pointer-events: none;
}




.quote {
    width: 600px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    margin-top: 5%;
    margin-left: min(40%, calc(100% - 600px - 20px));
}

.quote-left {
    width: 600px;

    margin: 0 auto;
    margin-top: 5%;
    margin-right: min(40%, calc(100% - 600px - 20px));

}

.legend_title {
    font-weight: 700;
    margin-bottom: 0;
}


#features {
    width: 100%;
    margin: 0 auto;
    margin-top: 5%;
}

.overlay_img {
    z-index: 3;
    position: absolute;
    width: 30%;
    top: 60%;
    right: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.overlay_img img {
    width: 80%;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 10px;
}


.infographic_2 {
    display: block;
    width: auto;
}

.infographic_1 {
    width: 80%;
    margin-top: 20%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.infographic_1mov {
    display: none;
}

.infographic_0 {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: 80%;
}

.infographic_0_m {
    display: none;
}

.infographic_2_base {
    width: 80%;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    display: flex;
}

.infographic_2_base_m {
    display: none;
}


.infographic_3 {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.carousel {
    justify-content: center;
    margin: 0 auto;
    width: 80%;

}

.final-car {
    width: 100%;
    margin: 0 auto;
}

.final-car img {
    width: 50%;
    margin: 0 auto;
}

.carousel_gif {
    width: 80%;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    position: relative;
    display: block;
}

.panel {
    min-height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: sans-serif;

}

.background {
    position: absolute;
    width: 20%;
    z-index: -1;
    margin-left: 35%;
}

.background1 {
    position: absolute;
    animation: contrail 2s ease-in-out infinite;
    width: 90%;

}

@keyframes contrail {
    0% {
        left: 0;
    }

    50% {
        left: 10px;
    }

    100% {
        left: 0;
    }
}

.background2 {
    position: absolute;
    width: 20%;

    margin-left: 65%;
}

.background3 {
    width: 50%;
    position: absolute;
    margin-left: 10%;
    z-index: -1;
    opacity: 0.3;
}




.arrow {
    animation: movementarrow 2s ease-in-out infinite;
    width: 60%;
    position: relative;
    margin-top: -5%;
    color: black;
}

@keyframes movementarrow {
    0% {
        top: 100px;
    }

    50% {
        top: 120px;
    }

    100% {
        top: 100px;
    }
}



.sun {
    position: sticky;
    top: 100px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    filter: blur(4px);

}

.wrapper_90:has(.panel:only-child) .sun {
    opacity: 0;
}

.moon {
    position: sticky;
    top: 100px;
    width: 100px;
    height: 100px;
    background: radial-gradient(50% 50% at 50% 50%, #FAFAFA 0%, rgba(250, 250, 250, 0.70) 100%);
    border-radius: 50%;
    filter: blur(4px);
}

.content_day {
    background: linear-gradient(180deg, rgba(178, 212, 255, 0.00) 0%, #B2D4FF 51%, rgba(178, 212, 255, 0.00) 100%)
}

.content_night {
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.00) 0.5%, rgba(134, 173, 224, 0.50) 13.5%, rgba(134, 173, 224, 0.80) 27.5%, #86ADE0 40.5%, rgba(67, 115, 176, 0.90) 57.5%, #5986BF 80%, rgba(89, 134, 191, 0.80) 87.84%, rgba(89, 134, 191, 0.50) 92.5%, rgba(89, 134, 191, 0.10) 97.46%, rgba(245, 249, 255, 0.00) 100%);
}

.content_night_reverse {
    background: linear-gradient(180deg, #004FB2 0%, rgba(178, 212, 255, 0.00) 100%);
}




.blue_arrow {
    position: absolute;
    margin-top: 0;
    width: 3%;
    height: auto;
    animation: diagonal 3s linear infinite;
    transform: translate(-41rem, 25ex);
}

@keyframes diagonal {

    0% {
        transform: translate(-41rem, 25ex);
    }

    50% {
        transform: translate(-35rem, 40ex);

    }

    60% {
        transform: translate(-35rem, 40ex) rotate(-70deg);
        ;

    }

    100% {
        transform: translate(-30rem, 25ex) rotate(-70deg);

    }

}

.blue_arrow_2 {
    position: absolute;
    margin-top: 0;
    width: 3%;
    height: auto;
    animation: diagonal2 3s linear infinite;
    animation-delay: 1s;
    transform: translate(-42rem, 24ex);
}

@keyframes diagonal2 {

    0% {
        transform: translate(-42rem, 24ex);
    }

    60% {
        transform: translate(-35rem, 40ex);

    }

    70% {
        transform: translate(-35rem, 40ex) rotate(-70deg);
        ;

    }

    100% {
        transform: translate(-29rem, 23ex) rotate(-70deg);

    }

}

.red {
    position: absolute;
    display: block;
    width: auto;
}


.red_arrow_2 {
    position: absolute;
    margin-top: 0;
    width: 40px;
    height: auto;
    animation: diagonal3 3s linear infinite;
    animation-delay: 1s;
    transform: translate(40rem, -35ex) rotate(10deg);
}

@keyframes diagonal3 {

    0% {
        transform: translate(40rem, -35ex)rotate(10deg);
    }

    60% {
        transform: translate(43rem, -42ex)rotate(10deg);

    }

    70% {
        transform: translate(43rem, -42ex) rotate(100deg);

    }

    100% {
        transform: translate(47rem, -30ex) rotate(100deg);

    }
}

.red_arrow {
    position: absolute;
    margin-top: 0;
    width: 40px;
    height: auto;
    animation: diagonal4 3s linear infinite;
    transform: translate(40rem, -35ex) rotate(10deg);
}

@keyframes diagonal4 {

    0% {
        transform: translate(40rem, -35ex)rotate(10deg);
    }

    60% {
        transform: translate(43rem, -42ex)rotate(10deg);

    }

    70% {
        transform: translate(43rem, -42ex) rotate(100deg);

    }

    100% {
        transform: translate(47rem, -30ex) rotate(100deg);

    }
}



.wrapper_80_box {
    background-color: transparent;
    padding: 20px;
    margin-top: 0px;
    width: 600px;
    margin: 0 auto;
    margin-top: 5%;
    border-radius: 10px;
    line-height: 1.5em;
    color: #636363;

}
.wrapper_80_box p{
   
    color: #636363;

}
div#graph_energy{
    margin-top: 3%;
}

.wrapper_80_box_ {
    background-color: #E4F0FF;
    padding: 40px;
    margin-top: 0px;
    width: 600px;
    margin: 0 auto;
    margin-top: 0%;
    border-radius: 10px;
    line-height: 1.5em;
}

.wrapper_80_box_ p {
    margin-top: 0%;

}

.wrapper_80_box p {
    margin-top: 0%;

}





.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-top-left,
.mapboxgl-ctrl-top-right {
    z-index: 4 !important;
}





img {
    width: 15%;
    padding-top: 2%;
    margin-left: 10px;

}


#legend {
    width: 20%;
    height: auto;
    display: flex;
    position: absolute;
    z-index: 3;
    margin-top: 8%;
}


@media only screen and (max-width: 1500px) {

    .header_main {
        height: 100vh;
    }

}

@media only screen and (max-width: 1400px) {

    .header_main {
        height: 100vh;
    }

}

@media only screen and (max-width: 1200px) {

    .slide-content img {
        width: 100%;
    }

    .blue_arrow {
        position: absolute;
        margin-top: 0;
        width: 3%;
        height: auto;
        animation: diagonal 3s linear infinite;
        transform: translate(-31rem, 25ex);
    }

    @keyframes diagonal {

        0% {
            transform: translate(-31rem, 25ex);
        }

        50% {
            transform: translate(-27rem, 32ex);

        }

        60% {
            transform: translate(-27rem, 32ex) rotate(-70deg);
            ;

        }

        100% {
            transform: translate(-19rem, 15ex) rotate(-70deg);

        }

    }

    .blue_arrow_2 {
        position: absolute;
        margin-top: 0;
        width: 3%;
        height: auto;
        animation: diagonal2 3s linear infinite;
        animation-delay: 1s;
        transform: translate(-35rem, 21ex);
    }

    @keyframes diagonal2 {

        0% {
            transform: translate(-35rem, 21ex);
        }

        60% {
            transform: translate(-27rem, 32ex);

        }

        70% {
            transform: translate(-27rem, 32ex) rotate(-70deg);
            ;

        }

        100% {
            transform: translate(-21rem, 18ex) rotate(-70deg);

        }

    }

    .lines-move2 {
        margin-top: 30%
    }

    .lines-move {
        margin-top: 25%
    }

    .lines-move5 {
        margin-top: 45%
    }




}




#my-custom-code .wrapper_world select {
    width: 40%;
    background-color: #F5F9FF;
    border-radius: 5px;
    border: 2px solid #828CA0;
    background-image: url("https://www.transportenvironment.org/uploads/images/arrow_grey.svg");
    background-repeat: no-repeat;
}



@media only screen and (max-width: 1150px) {

    .header_main {
        height: 100vh;
    }

    #my-custom-code .header_title h1 {
        width: 80%;
            line-height: 100%;
            font-size: 4rem;

    }

}

@media only screen and (max-width: 1000px) {


    .blue_arrow {
        display: none;
    }

    .blue_arrow2 {
        display: none;
    }

    .red_arrow {
        display: none;
    }

    .red_arrow_2 {
        display: none;
    }

    .infographic_2_base_m {
        display: none;
        width: 100%;
    }



    #outro {
        margin-bottom: 5%;
    }

    .lines-static {
        overflow-x: hidden;
    }

    .lines-move2 {
        margin-top: 30%
    }

    .lines-move {
        margin-top: 30%
    }

    .lines-move5 {
        margin-top: 50%
    }

    .background1 {
        position: absolute;
        animation: contrail 2s ease-in-out infinite;
        width: 90%;
    }

    .wrapper_legend {
        width: 50%;
    }

}

@media only screen and (max-width: 900px) {


    .left_content svg {
        top: 10px;

    }

    .infographic_3 {
        width: 100%;
    }

    .lines-move2 {
        margin-top: 40%
    }

    .lines-move {
        margin-top: 40%
    }

    .lines-move5 {
        margin-top: 60%
    }

    .header_main {
        height: 80vh;
    }

    .wrapper_85 {
        width: 90%;
        margin: 0 auto;
        margin-top: 5%;


    }

}

@media only screen and (max-width: 800px) {
    .header_main {
        height: 70vh;
    }

    .carousel {
        width: 100%;
    }

    .carousel img {
        width: 100%;
    }

    #my-custom-code .header_title h1 {
        width: 100%;
        font-size: 3.5rem;
    }

    #my-custom-code .header_title h1.bold_text {
        font-size: 4.2rem;
        width: 100%;

    }

    #my-custom-code .header_title h4 {
        width: 80%;
        font-size: 2rem;
    }

}


@media only screen and (max-width: 700px) {


    .wrapper_80 {
        width: 90%;
        margin: 0 auto;
        margin-top: 5%;
    }

    .quote {
        width: 90%;
        margin: 0 auto;
        margin-top: 5%;
    }

    .quote-left {
        width: 90%;
        margin: 0 auto;
        margin-top: 5%;
    }

    .box {
        max-width: 80%;

    }

    .video_block {
        display: block;
    }

    .wrapper_80_box {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .wrapper_80_box_ {
        width: 90%;
        margin: 0 auto;
        margin-top: 5%;
        background-color: transparent;
        padding: 0;

    }



    .wrapper_80 p {
        margin-top: 10%;
    }


    .wrapper_90 {
        width: 90%;
        margin: 0 auto;
        margin-top: 10%;
    }

    #scrolly_content {
        width: 90%;
        margin-left: 0%;
        margin: 0 auto;
    }


    .title_chart {
        width: 90%;
    }

    .left_content svg {
        top: 0;
        width: 20%;
    }


    .slide-content img {
        width: 150%;
    }

    #article {
        width: 100%;
        margin-left: 0%;
    }

    .step {
        width: 90%;
        padding: 0px
    }


    .right_content h1 {
        font-size: 4rem;
        width: 90%;

    }

    #my-custom-code .header_title h2 {
        font-size: 3rem;
    }

    .right_content h3 {
        font-size: 1.1rem;
    }

    #scrolly figure img {
        max-width: 100%;
    }

    .infographic_2_base_m {
        display: block;

    }

    .infographic_2_base {
        display: none;

    }

    .img_90_mov {
        display: block;
        width: 100%;
    }

    .img_90 {
        display: none;
    }


    .hr_:after {
        top: 100%;
        right: 0;
        left: -15%;
        transform: rotate(0deg);
        background: #75A1F4;
        width: 200px;
    }

    .mov {
        display: block !important;
    }

    .no_mov {
        display: none !important;

    }


    .lines-move2 {
        margin-top: 50%
    }

    .lines-move {
        margin-top: 50%
    }

    .lines-move3 {
        margin-top: 50%
    }

    .lines-move4 {
        margin-top: 40%
    }

    .lines-move5 {
        display: none;
    }



    .lines-move5m2 {
        display: inline;
        position: absolute;
        top: 0;
        bottom: 0;
        right: auto;
        width: 100%;
        z-index: 3;
        margin-top: 70%;
        animation: contrails 2s ease-in-out infinite;

    }



    @keyframes contrails {
        0% {
            top: 0;
        }

        50% {
            top: 5px;
        }

        100% {
            top: 0;
        }
    }


    .intro_world {
        top: 10%;
    }

    .desktop-image {
        display: none !important;
    }

    .mobile-image {
        display: block !important;
    }

    .desktop-image2 {
        display: none !important;
    }

    .mobile-image2 {
        display: block !important;
    }

    .infographic_1mov {
        display: inline;
        width: 100%;
        margin-top: 10%;
    }

    .infographic_1 {
        display: none;
    }

    .infographic_2_base {
        width: 100%;
    }

    #scrolly2 figure img {
        width: 100%;
        max-width: 100%;
    }

    .background3 {
        width: 90%;
        margin-left: 0;
        position: absolute;
        z-index: -1;
        opacity: 0.3;
    }


    .box_arrow {

        width: 8%;

    }

   
  


    #legend {
        width: 30%;
        height: auto;
        margin-top: 15%;
    }


    #my-custom-code .wrapper_world select {
        width: 100%;
    }

}

@media only screen and (max-width: 600px) {
    #my-custom-code .summary h4 {
        font-size: 1.8rem;
    }

}


@media only screen and (max-width: 500px) {

    .world {
        width: 50%;

    }

    #my-custom-code .header_title h1 {
        font-size: 3rem;

    }

    #my-custom-code .header_title h1.bold_text {
        font-size: 3.4rem;
    }

    #my-custom-code .header_title h4 {
        font-size: 1.5rem;
        line-height: 1em;

    }

    #my-custom-code .chapter_title h1 {
        font-size: 3.5rem;

    }

    .right_content h1 {
        font-size: 2rem;
        width: 90%;

    }

    #my-custom-code .header_title h2 {
        font-size: 3rem;
        width: 90%;
    }

    .right_content h3 {
        font-size: 1.1rem;
        width: 90%;
    }

    .chapter_title h1 {
        font-size: 4rem;
    }


    #img1 {
        display: none;
    }

    #img2 {
        display: none;
    }

    #img1m {
        display: block;
        margin-bottom: 20%;
    }

    #img2m {
        display: block;
    }

    .infographic_1 {
        width: 100%;
    }

    .infographic_0_m {
        display: block;
        width: 100%;
    }

    .infographic_0 {
        display: none;
    }

    .img_80 {
        display: none;

    }

    .img_90 {
        display: none;
    }

    .img_80_m {
        display: block;
        width: 100%;
    }

    .title_world .img_100 {
        display: none;
    }



    .map-overlay {
        width: 100%;
        display: block;

    }

    .overlay_img img {
        width: 80%;
        top: 60;
    }

    .lines-move4 {
        margin-top: 70%;

    }

    .lines-move6 {
        margin-top: 65%;

    }

    .lines-move5m2 {
        margin-top: 100%;
        width: 90%;
    }

    .lines-move {
        margin-top: 80%;
    }

    .lines-move2 {
        margin-top: 65%;
    }



    .lines-move3 {
        margin-top: 100%;
    }

    .lines-move7 {
        margin-top: 80%;
    }

    .intro_world {
        top: 30%;
    }

    .header_main {
        height: 80vh;


    }

    #my-custom-code .title_world h5 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 8%;
    }

    .wrapper_legend {
        width: 70%;
    }

    .wrapper_80_box {
        width: 80%;
        margin: 0;
    }


    #legend {
        width: 40%;
        height: auto;
        margin-top: 20%;
    }

    #map2-container {
        height: 50vh;
    }

}


@media only screen and (max-width: 400px) {


    .header_main {
        height: 70vh;
    }

    .header_title h1 {
        font-size: 2rem;
    }

    .lines-move4 {
        margin-top: 100%;


    }

    .lines-move6 {
        margin-top: 115%;

    }

    .lines-move7 {

        margin-top: 110%;

    }

    .lines-move {
        margin-top: 100%;
    }

    .lines-move2 {
        margin-top: 110%;
    }

    .lines-move3 {
        margin-top: 120%;
    }

    .lines-move3 {
        margin-top: 150%;
    }

    .lines-move5m2 {
        margin-top: 120%;
        width: 90%;
    }

    .lines-move7 {
        display: none;
    }

    .lines-move6 {
        display: none;
    }

    #my-custom-code .summary h4 {
        font-size: 1.5rem;
        margin-left: 10px;
    }

    #my-custom-code .box_title h5 {
        font-size: 1.3rem;
    }


    #legend {
        width: 45%;
        height: auto;
        margin-top: 25%;
    }

   
}

@media only screen and (max-width: 350px) {

    .header_main {
        height: 70vh;
    }

}

@media only screen and (max-width: 300px) {


    #my-custom-code .chapter_title h1 {
        font-size: 2rem;
    }

    #my-custom-code .header_title h1 {
        font-size: 2rem;
    }

    #my-custom-code .header_title h1.bold_text {
        font-size: 2.3rem;
    }

    .header_main {
        height: 60vh;
    }
}

@media only screen and (max-width: 700px) {
    #my-custom-code .chapter_title h3 {
        width: 100%;
        font-size: 2.5rem;
        line-height: 1.1em;
        letter-spacing: 0.1em;
    }
}

#my-custom-code .typewriter h4 {
    width: fit-content;
}

.bubble-emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    fill: #000;
}

.battery_scrolly {
    position: relative;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 10%;
}

.battery_scrolly .video_block_sticky {
    position: sticky;
    top: 10vh;
    height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem;
    align-items: center;
}

.battery_scrolly video {
    width: 85%;
    height: auto;
    display: block;
}

#scrolly_battery-2 video {
    width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.battery_scrolly .battery_figure {
    width: 80%;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.battery_scrolly[data-active="video"] .battery_figure {
    opacity: 0;
    transform: translateY(16vh);
}

.battery_figure p {
    font-family: effra, sans-serif;
    font-size: 1rem;
    font-weight: 700;

}

.battery_svg {
    width: 100%;
    height: 100%;
}

.battery_scrolly article {
    position: relative;
    margin-top: -80vh;
    pointer-events: none;
}

.battery_scrolly .step {
    height: 80vh;
    margin: 0;
    padding: 0;
    font-size: 1.2em;
}

.battery_svg .part,
.battery_svg .label {
    transition: opacity 0.6s ease;
}


.battery_scrolly[data-active="plate"] .part:not(.part-plate),
.battery_scrolly[data-active="plate"] .label:not(.label-plate),

.battery_scrolly[data-active="cells"] .part-plate,
.battery_scrolly[data-active="cells"] .part-enclosure,
.battery_scrolly[data-active="cells"] .part-enclosure-fire,
.battery_scrolly[data-active="cells"] .label:not(.label-cells),

.battery_scrolly[data-active="enclosure"] .part:not(.part-enclosure):not(.part-enclosure-fire),
.battery_scrolly[data-active="enclosure"] .label:not(.label-enclosure):not(.label-fire-enclosure),

.battery_scrolly[data-active="protection"] .part:not(.part-intracell):not(.part-enclosure-fire),
.battery_scrolly[data-active="protection"] .label:not(.label-fire-enclosure):not(.label-fire-cells) {
    opacity: 0.15;
}

@media only screen and (max-width: 700px) {
    .battery_scrolly .video_block_sticky {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 1rem;
        align-content: center;
    }

    .battery_scrolly .battery_figure,
    .battery_svg {
        height: auto;
    }
}

.battery_scrolly--text .battery_stage {
    position: sticky;
    top: 10vh;
    height: 80vh;
}

.battery_scrolly--text video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease;
}

.battery_scrolly--text:not([data-active="video"]) video {
    opacity: 0;
    pointer-events: none;
}

.battery_scrolly--text .battery_figure {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    transform: none;
}

.battery_scrolly--text[data-active="video"] .battery_figure {
    transform: translateY(8vh);
}

.battery_scrolly--text article {
    z-index: 1;
}

.battery_scrolly--text .step {
    display: flex;
    align-items: center;
    width: 30%;
    margin: 0 auto;
    z-index: 10;
}

.battery_scrolly--text .step p {
    margin: 0;
    padding: 25px;
}

@media only screen and (max-width: 700px) {
    .battery_scrolly--text video {
        width: 100%;
    }

    .battery_scrolly--text .battery_figure {
        width: 100%;
    }

    .battery_scrolly--text .step {
        width: 100%;
        align-items: flex-end;
    }
}

#scrolly_cars {
    position: relative;
}

#scrolly_cars .cars_figure {
    position: sticky;
    top: 10vh;
    height: 80vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrolly_cars .motor_cars {
    width: 90%;
    height: 90%;
}

#scrolly_cars article {
    position: relative;
    margin-top: -80vh;
    pointer-events: none;
}

#scrolly_cars .step {
    height: 80vh;
    margin: 0;
    padding: 0;
}

#scrolly_cars .car {
    transition: opacity 0.6s ease;
}

#scrolly_cars[data-active="electric"] .car-engine,
#scrolly_cars[data-active="engine"] .car-electric {
    opacity: 0.15;
}

.battery_scrolly::before {
    content: "";
    position: absolute;
    left: calc(50% - 300px + var(--quote-line-x) - 1.5px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4D45FF;
    pointer-events: none;
}

.battery_scrolly--text::before {
    display: none;
}

.battery_scrolly--text .battery_stage::before {
    content: "";
    position: absolute;
    left: calc(50% - 300px + var(--quote-line-x) - 1.5px);
    top: -10vh;
    height: calc(10vh + 50%);
    width: 2px;
    background: #4D45FF;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.battery_scrolly--text:not([data-active="video"]) .battery_stage::before {
    opacity: 0;
}


#scrolly_battery-2 .battery_stage::before {
    height: 50vh;
    padding-bottom: 25%;
}

.battery_scrolly video {
    position: relative;
    z-index: 1;
}

.battery_scrolly--text video {
    position: absolute;
}

@media only screen and (max-width: 700px) {

    .battery_scrolly::before,
    .battery_scrolly--text .battery_stage::before {
        left: calc(var(--quote-line-x) - 1.5px);
    }
}


#my-custom-code .quote p::before,
.battery_scrolly::before,
.battery_scrolly--text .battery_stage::before {
    width: 3px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

#my-custom-code .quote p::before {
    background-image: url("img/line.png");
}

.battery_scrolly::before,
.battery_scrolly--text .battery_stage::before {
    background-image: url("img/line_flip.png");
}

#my-custom-code .quote p::before {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 100px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 100px);
}

.battery_scrolly::before {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 200px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 200px), transparent 100%);
}

.battery_scrolly--text .battery_stage::after {
    content: "";
    position: absolute;
    left: -5.5556%;
    right: -5.5556%;
    top: 37vh;
    margin-top: -25%;
    height: 3px;
    background: url("img/line_h.png") no-repeat;
    background-size: 100% 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.battery_scrolly--text:not([data-active="video"]) .battery_stage::after {
    opacity: 0;
}

.battery_scrolly .video_block_sticky::after {
    content: "";
    position: absolute;
    left: -5.5556%;
    right: -5.5556%;
    top: 37vh;
    margin-top: calc(-21.25% + 0.425rem);
    height: 3px;
    background: url("img/line_h.png") no-repeat;
    background-size: 100% 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
    pointer-events: none;
}

@media only screen and (max-width: 700px) {
    .battery_scrolly .video_block_sticky::after {
        display: none;
    }
}


.sankey_block {
    width: 100%;
    box-sizing: border-box;
    padding: 36px 20px 56px;
    font-family: Roboto-Regular, Roboto, sans-serif;
}

#sankey-panels {
    display: grid;
    gap: 10px;
}

.sankey_block .sk-panel {
    width: 100%;
    max-width: 84%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
}

.sankey_block .sk-meta {
    padding: 0 12px 0 0;
}

.sankey_block .sk-name {
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #000000;
    font-weight: 700;
}

.sankey_block .sk-chart {
    position: relative;
    padding: 6px 8px 4px;
}

.sankey_block .sk-stage svg {
    display: block;
    width: 100%;
    height: auto;
}

.sankey_block svg text {
    font-size: 12.5px;
    fill: #101417;
}

.sankey_block svg text .sk-v {
    font-size: 11.5px;
    fill: #7d7d7d;
}

.sankey_block svg .sk-colhead {
    font-size: 10.5px;
    letter-spacing: .08em;
    fill: #7d7d7d;
    text-transform: uppercase;
}

.sankey_block .sk-link {
    fill: none;
    stroke-opacity: .42;
}

.sankey_block .sk-link.sk-main {
    stroke-opacity: .6;
}

@media only screen and (max-width: 720px) {
    .sankey_block .sk-panel {
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .sankey_block .sk-meta {
        padding: 14px 0 0;
    }
}


.mb-block {
    width: 100%;
    box-sizing: border-box;
    padding: 36px 20px 56px;
}

.mb-block .mb-wrap {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
}

.mb-block svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: "effra", Roboto, sans-serif;
}

.mb-block .mb-title {
    font-size: 1.5rem;
    font-weight: 400;
    fill: #000;
}

.mb-block .mb-box {
    fill: #fff;
    stroke: #4D45FF;
    stroke-width: 1;
}

.mb-block .mb-big {
    font-size: 1rem;
    font-weight: 700;
    fill: #000;
}

.mb-block .mb-grid {
    stroke: #ededed;
    stroke-width: 1.5;
}

.text.mb-tick{
    font-size: 1rem;
}
.mb-block .mb-tick {
    font-size: 1rem;
    fill: #7D7D7D;
}

.mb-block .mb-halo {
    fill: #4D45FF;
    opacity: .18;
}

.mb-block .mb-value {
    font-size: 22px;
    font-weight: 700;
    fill: #4D45FF;
}

.mb-block.mb-inline {
    padding: 0;
    width: 100%;
}


.mb-block.mb-inline .mb-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.mb-block.mb-inline .mb-big {
    font-size: 46px;
}

.mb-block.mb-inline .mb-tick {
    font-size: 1rem;
}

.mb-block.mb-inline .mb-value {
    font-size: 28px;
}


.sound-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    color: #4D45FF;
    background: hsl(0deg 0% 100% / 0.5);
    border: 1px solid #4D45FF;
    border-radius: 999px;
    padding: 10px 20px;
    cursor: pointer;
    filter: drop-shadow(0 4px 14px rgba(77, 69, 255, 0.25));
    transition: background-color .2s, color .2s;
    z-index: 6;
}

.sound-btn:hover,
.sound-btn[aria-pressed="true"] {
    background: #E9E8FF;
    color: #4D45FF;
}

.sound-icon img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-left: 0px;
}

.sound-btn:focus-visible {
    outline: 2px solid #4D45FF;
    outline-offset: 3px;
}

.sound-btn--hero {
    margin-top: 1.5rem;
    padding: 0;
    border: none;
    background: none;
    filter: none;
    gap: 12px;
}

.sound-btn--hero .sound-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #4D45FF;
    border-radius: 50%;
    background: #fff;
    filter: drop-shadow(0 4px 14px rgba(77, 69, 255, 0.25));
    transition: background-color .2s;
}

.sound-btn--hero:hover,
.sound-btn--hero[aria-pressed="true"] {
    background: none;
}

.sound-btn--hero:hover .sound-icon,
.sound-btn--hero[aria-pressed="true"] .sound-icon {
    background: #E9E8FF;
}

:root {
    --float-top: 100px;
}

.sound-btn--float {
    position: fixed;
    left: 20px;
    top: var(--float-top);
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 50;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(77, 69, 255, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
    filter: none;
}



:root {
    --quote-line-x: 70px;
    --quote-gap: 14vh;
    --quote-overlap: 110px;
    --quote-space-above: 14vh;
}

.quote {
    position: relative;
    z-index: 3;
    margin-top: var(--quote-space-above) !important;
    margin-bottom: calc(-1 * var(--quote-overlap));

}

#my-custom-code .quote p {
    margin: 0;
    background: #fff;
    border: 3px solid #4D45FF;
    border-radius: 22px;
    filter: drop-shadow(0 4px 22px rgba(77, 69, 255, 0.35));
    padding: 52px 28px 56px 118px;
    font-family: Roboto, sans-serif;
    font-size: 1.15rem;
    line-height: 1.35;
    text-transform: uppercase;
    color: #4D45FF;
}

#my-custom-code .quote p::after {
    content: "";
    position: absolute;
    left: calc(var(--quote-line-x) - 25px);
    top: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4D45FF;
}

#my-custom-code .quote::before {
    content: "@.....";
    position: absolute;
    left: 118px;
    top: 20px;
    font-family: Roboto, sans-serif;
    font-size: 1.1rem;
    color: #4D45FF;
    z-index: 1;
}

#my-custom-code .quote::after {
    content: "";
    position: absolute;
    left: 118px;
    bottom: 18px;
    width: 78px;
    height: 28px;
    background: url("img/thumbs.svg") no-repeat left center / contain;
    z-index: 1;
}

#my-custom-code .quote p::before {
    left: calc(var(--quote-line-x) - 1.5px);
    top: 76px;
    height: calc(100% - 76px + 40vh + var(--quote-gap));
    -webkit-mask-image: none;
    mask-image: none;
}


#my-custom-code .quote p::before {
    content: none;
}

#scrolly_money {
    margin-bottom: 10%;
}

.battery_scrolly::before,
.battery_scrolly--text .battery_stage::before {
    background: #4D45FF;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
}

.battery_scrolly::before {
    top: calc(12px + var(--quote-overlap));
    bottom: -12vh;
}



.ic-stack {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.ic-frame {
    display: block;
    width: 80%;
    height: auto;
    opacity: 0;
    transition: opacity 0.6s ease;
    margin: 0 auto;

}

.ic-frame+.ic-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.battery_scrolly[data-active="ic1"] .ic-frame[data-frame="1"],
.battery_scrolly[data-active="ic2"] .ic-frame[data-frame="2"],
.battery_scrolly[data-active="ic3"] .ic-frame[data-frame="3"],
.battery_scrolly[data-active="ic4"] .ic-frame[data-frame="4"],
.battery_scrolly[data-active="ic5"] .ic-frame[data-frame="5"],
.battery_scrolly[data-active="ic6"] .ic-frame[data-frame="6"],
.battery_scrolly[data-active="ic7"] .ic-frame[data-frame="7"] {
    opacity: 1;
}

.battery_scrolly--text .car_figure {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.battery_scrolly--text[data-active="video"] .car_figure {
    opacity: 0;
}

#scrolly_part4 .battery_figure {
    display: none;
}


#scrolly_part3::before {
    left: calc(min(60.889%, 105.556% - 620px) + var(--quote-line-x) - 1.5px);
}




#scrolly_part4 .video_block_sticky {
    grid-template-columns: 1fr 1fr;
    gap: 0;
}


#scrolly_part4 {
    min-height: 200vh;
}


#scrolly_part4 #features {
    margin: 0;
    width: 100%;
    height: 100%;
    align-self: stretch;
}

#scrolly_part4 #map-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#scrolly_part4 .title-info {
    width: 100%;
}

#scrolly_part4 #map {
    flex: 1;
    min-height: 0;
    height: auto;
}

#scrolly_part4 .map-overlay {
    width: 100%;
    max-width: 350px;
    top: auto;
    left: 0;
}

@media only screen and (max-width: 700px) {
    #scrolly_part4 #features {
        height: 50vh;
    }
}


.end-plug {
    width: 100%;
    margin-top: 40px;
}

.end-plug img {
    display: block;
    width: 248px;
    height: auto;
    margin-left: calc(50% - 354px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
}

@media only screen and (max-width: 700px) {
    .end-plug img {
        margin-left: calc(5% + 70px - 124px);
    }
}

#scrolly_part1b .graph_lca,
#scrolly_part1b #graph_energy {
    grid-column: 2;
    grid-row: 1;
}

#scrolly_part1b #graph_energy {
    justify-self: center;
    align-self: center;
}

#scrolly_part1b #graph_energy svg {
    display: block;
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width: 700px) {

    #scrolly_part1b .graph_lca,
    #scrolly_part1b #graph_energy {
        grid-column: 1;
        grid-row: 2;
    }
}

.graph-tooltip {
    position: fixed;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding: 6px 10px;
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    white-space: nowrap;
}

#scrolly_part1b .graph_lca,
#scrolly_part1b #graph_energy {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#scrolly_part1b[data-active="lca"] #graph_energy,
#scrolly_part1b[data-active="energy"] .graph_lca {
    opacity: 0;
    transform: translateY(4vh);
    pointer-events: none;
}

#scrolly_part1b .graph_lca {
    align-self: center;
    justify-self: center;
}

.graph-placeholder {
    width: 440px;
    max-width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #bababa;
    border-radius: 12px;
    font-family: Roboto, sans-serif;
    color: #9a9a9a;
}

.scroll-nudge {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: Roboto, sans-serif;
    color: #4D45FF;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-nudge.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.scroll-nudge-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scroll-nudge-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4D45FF;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 18px rgba(77, 69, 255, 0.45);
}

.scroll-nudge.is-visible .scroll-nudge-arrow {
    animation: scroll-nudge-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-nudge-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-nudge.is-visible .scroll-nudge-arrow {
        animation: none;
    }
}


#scrolly_part3[data-active="video"] .battery_figure,
#scrolly_battery[data-active="video"] .battery_figure {
    opacity: 1;
    transform: none;
}

#battery_car-2 #cold_plate_bottom-2,
#battery_car-2 #COLD_PLATE-top-2,
#battery_car-2 #cells-2,
#battery_car-2 #enclosure-bottom-2,
#battery_car-2 #enclosure-middle-2,
#battery_car-2 #Enclosure-top-2 {
    transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s ease;
}

#battery_car-2 #Text-2 {
    transition: opacity 0.6s ease 0.5s;
}

#scrolly_part3[data-active="video"] #cold_plate_bottom-2 {
    transform: translateY(-96px);
}

#scrolly_part3[data-active="video"] #COLD_PLATE-top-2 {
    transform: translateY(-90px);
}

#scrolly_part3[data-active="video"] #enclosure-bottom-2 {
    transform: translateY(92px);
}

#scrolly_part3[data-active="video"] #enclosure-middle-2 {
    transform: translateY(98px);
}

#scrolly_part3[data-active="video"] #Enclosure-top-2 {
    transform: translateY(104px);
}

#scrolly_part3[data-active="video"] #Text-2 {
    opacity: 0;
    transition-delay: 0s;
}

#scrolly_part3 .battery_figure,
#scrolly_battery .battery_figure {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

#scrolly_part3 .battery_figure p {
    margin: 0 0 1rem;
}

#scrolly_part3 .battery_svg {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: 60vh;
}

#scrolly_part3

.scroll-nudge.is-placed {
    bottom: auto;
    transform: translate(-50%, 12px);
    padding: 8px 14px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(77, 69, 255, 0.12);
}

.scroll-nudge.is-placed.is-visible {
    transform: translate(-50%, 0);
}

#scrolly_part3 .step {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    z-index: 10;
}

#scrolly_part3 .step p {
    width: 220px;
    max-width: 22%;
    margin: 0 0 0 calc(var(--fig-center, 25%) - min(130px, 11% + 20px));
    padding: 20px;
    font-size: 1.2rem;
}

@media only screen and (max-width: 700px) {
    #scrolly_part3 .step {
        align-items: flex-end;
    }

    #scrolly_part3 .step p {
        width: 100%;
        margin: 0;
    }
}


.text_block {
    margin: 18vh 0;
}


.comp-stack {
    position: relative;
    width: 100%;
}

.comp-frame {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.comp-frame + .comp-frame {
    position: absolute;
    top: 0;
    left: 0;
}

#scrolly_battery[data-active="video"] .comp-frame[data-frame="1"],
#scrolly_battery[data-active="c1"] .comp-frame[data-frame="1"],
#scrolly_battery[data-active="c2"] .comp-frame[data-frame="2"],
#scrolly_battery[data-active="c3"] .comp-frame[data-frame="3"],
#scrolly_battery[data-active="c4"] .comp-frame[data-frame="4"],
#scrolly_battery[data-active="c5"] .comp-frame[data-frame="5"],
#scrolly_battery[data-active="c6"] .comp-frame[data-frame="6"] {
    opacity: 1;
}

#scrolly_battery .step {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    z-index: 10;
}

#scrolly_battery .step p {
    width: 220px;
    max-width: 22%;
    margin: 0 0 0 calc(var(--fig-center, 75%) - min(130px, 11% + 20px));
    padding: 20px;
    font-size: 1.2rem;
}

@media only screen and (max-width: 700px) {
    #scrolly_battery .step {
        align-items: flex-end;
        width: 100%;
        margin: 0 auto;
    }

    #scrolly_battery .step p {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}



.video-keywords {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.video-keyword {
    position: absolute;
    top: 40%;
    width: calc(30% - 3rem);
    font-family: effra, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #4D45FF;
    opacity: 0;
    font-style: italic;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-keyword--left {
    left: 0;
    text-align: right;
    transform: translateX(-16px);
}

.video-keyword--right {
    right: 0;
    font-style: italic;
    font-weight: 900;
    text-align: left;
    transform: translateX(16px);
    font-size: 10rem;

}

.video-keyword.is-on {
    opacity: 1;
    transform: none;
}

@media only screen and (max-width: 700px) {
    .video-keyword {
        top: auto;
        bottom: 0;
        width: 100%;
        font-size: 1.3rem;
        text-align: center;
    }
}

#scrolly_battery-2[data-active="video"] .step p {
    opacity: 0;
    transition: opacity 0.4s ease;
}


@media only screen and (max-width: 700px) {
    #scrolly_part4 .video_block_sticky {
        position: relative;
        top: auto;
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2.5rem;
    }

    #scrolly_part4 video {
        width: 100%;
        grid-column: 1;
        grid-row: 1;
    }

    #scrolly_part4 #features {
        grid-column: 1;
        grid-row: 2;
        height: 75vh;
    }

    #scrolly_part4 .map-overlay {
        width: 70%;
        max-width: none;
        top: 0;
        left: 0;
    }

    #scrolly_part4 .title-info h5 {
        font-size: 1.4rem;
    }
}

@media only screen and (max-width: 700px) {
    :root {
        --quote-overlap: -5vh;
        --mobile-visual-top: calc(var(--float-top) + 64px);
    }
}

@media only screen and (max-width: 700px) {
    .battery_scrolly .video_block_sticky,
    .battery_scrolly--text .battery_stage {
        position: sticky;
        top: calc(-1 * var(--video-h, 0px) - 1.5rem + var(--mobile-visual-top));
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 1.5rem;
        align-items: start;
    }

    .battery_scrolly video,
    #scrolly_battery-2 video,
    .battery_scrolly--text video {
        order: -1;
        position: relative !important;
        top: auto;
        left: auto;
        width: 100% !important;
        margin: 0;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto;
    }

    .battery_scrolly .battery_figure,
    .battery_scrolly--text .battery_figure,
    .battery_scrolly--text .car_figure,
    .battery_scrolly .graph_lca {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        margin: 0;
        transform: none;
    }

    .battery_scrolly article {
        margin-top: 0;
    }

    .battery_scrolly .step {
        height: 70vh;
    }


    #scrolly_part3 .step p {
        max-width: none;
    }

    .battery_scrolly::before,
    .battery_scrolly--text .battery_stage::before,
    .battery_scrolly .video_block_sticky::after {
        display: none;
    }
}


.battery_scrolly::before {
    top: calc(var(--quote-overlap) - 170px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 200px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 200px), transparent 100%);
}

@media only screen and (max-width: 700px) {
    #scrolly_part4 {
        min-height: 0;
    }
}

#money_bars h6 {
    margin-bottom: 0;
}

#money_bars .mb-key-html {
    line-height: 1;
    font-weight: 400;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0.3rem 0 0.8rem;
    font-family: Roboto, sans-serif;
    font-size: 0.9rem;
    color: #6f6f6f;
}

#money_bars .mb-key-html img {
    display: block;
    margin: 0;
    width: 18px;
    height: auto;
}


@media only screen and (max-width: 700px) {
    #scrolly_battery-2 .step:not([data-step="video"]) {
        display: flex;
        align-items: flex-end;
        padding-bottom: 4vh;
        box-sizing: border-box;
    }

}


#scrolly_part1b {
    min-height: 200vh;
}

@media only screen and (max-width: 700px) {
    #scrolly_part1b {
        min-height: 0;
    }
}


#graph-1 .axis text,
#graph_energy .axis text,
.mb-block .mb-tick {
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    fill: #bababa;
}

.video-progress {
    position: absolute;
    width: 36px;
    height: 36px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.video-progress.is-on {
    opacity: 1;
}

.video-progress svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); 
}

.video-progress circle {
    fill: none;
    stroke-width: 3;
}

.video-progress .vp-track {
    stroke: rgba(255, 255, 255, 0.6);
}

.video-progress .vp-fill {
    stroke: #4D45FF;
    stroke-linecap: round;
}


#scrolly_battery,
#scrolly_part3 {
    --scheme-zoom: 1.15;
}

#scrolly_battery .battery_figure,
#scrolly_part3 .battery_figure {
    justify-content: center;
    align-items: center;
}

#scrolly_battery .comp-stack,
#scrolly_part3 #battery_car-2 {
    transform: scale(var(--scheme-zoom));
    transform-origin: center center;
}

#scrolly_part3 #battery_car-2 {
    flex: 0 0 auto;
    width: 100%;
    max-height: 56vh;
    margin: 4vh 0 0;
}

#scrolly_part3 .battery_figure h6,
#scrolly_battery .battery_figure h6 {
    align-self: stretch;
}

@media only screen and (max-width: 700px) {
    #scrolly_battery,
    #scrolly_part3 {
        --scheme-zoom: 1.05;
    }

    #scrolly_part3 #battery_car-2 {
        margin: 0;
    }
}


@media only screen and (min-width: 701px) {
    #scrolly_part3 video {
        grid-column: 1;
        grid-row: 1;
    }

    #scrolly_part3 .battery_figure {
        grid-column: 2;
        grid-row: 1;
    }


    #scrolly_part3::before {
        left: calc(50% - 300px + var(--quote-line-x) - 1.5px);
    }

    #scrolly_battery .step,
    #scrolly_part3 .step {
        justify-content: flex-start;
    }

    #scrolly_battery .step p,
    #scrolly_part3 .step p {
        margin: 0 0 0 calc(var(--fig-center, 75%) - var(--box-w, 300px) / 2);
    }
}


.battery_scrolly video {
    aspect-ratio: 1080 / 1280;
    height: auto;
}


@media only screen and (max-width: 700px) {
    #scrolly_battery-2[data-active="video"] .car_figure {
        opacity: 1;
    }

    #scrolly_battery-2[data-active="video"] .ic-frame[data-frame="1"] {
        opacity: 1;
    }
}

#money_bars .mb-subtitle {
    margin: 0.4rem 0 0;
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
}


#scrolly_battery-2,
#scrolly_battery,
#scrolly_part3 {
    --box-w: 300px;
    --box-pad: 22px;
    --box-font: 1.2rem;
}

#scrolly_battery-2 .step p,
#scrolly_battery .step p,
#scrolly_part3 .step p {
    box-sizing: border-box;
    width: var(--box-w);
    max-width: calc(100vw - 40px);
    padding: var(--box-pad);
    font-size: var(--box-font);
    line-height: 1.45;
}

@media only screen and (min-width: 701px) {
    #scrolly_battery-2 .step {
        width: 100%;
        justify-content: center;
    }

    #scrolly_battery-2,
    #scrolly_battery,
    #scrolly_part3 {
        --box-w: 360px;
        --box-pad: 26px;
    }
}

@media only screen and (max-width: 700px) {
    #scrolly_battery-2 .step p,
    #scrolly_battery .step p,
    #scrolly_part3 .step p {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}


.video-keyword--img {
    top: 50%;
    left: -4% !important;  
    width: 34%;
    margin-top: -17%;
}

.video-keyword--img img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

@media only screen and (max-width: 700px) {
    .video-keywords {
        bottom: auto;
        height: var(--video-h, 0px);
        z-index: 3;
    }

    .video-keyword,
    .video-keyword--left,
    .video-keyword--right {
        top: 14px;
        bottom: auto;
        left: 14px;
        right: 54px;
        width: auto;
        font-size: 1.3rem;
        text-align: left;
        padding: 6px 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.85);
    }

    .video-keyword--img {
        top: 58px; 
        left: 14px !important;
        right: auto;
        width: 70%;
        padding: 8px;
        border-radius: 10px;
        margin: 0;
        background: rgba(255, 255, 255, 0.92);
    }
}


.battery_scrolly article {
    z-index: 4;
}

.battery_scrolly .step p {
    position: relative;
    z-index: 5;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.chapter-nav {
    position: fixed;
    top: calc(var(--float-top) + 60px);
    right: 20px;
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: max-content;
    padding: 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(77, 69, 255, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
    font-family: Roboto, sans-serif;
    border: 1px solid #4D45FF;
}

.chapter-nav a {
    position: relative;
    padding: 8px 16px;
    border-radius: 999px;
    color: #4D45FF;
    font-size: 0.95rem;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}

.chapter-nav a:hover {
    background: #E9E8FF;
}

.chapter-nav a.is-active {
    background: #4D45FF;
    color: #fff;
}

.chapter-nav a::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: calc(100% + 14px);
    z-index: 10;
    width: max-content;
    max-width: 260px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #030047;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-4px, -50%);
    transition: opacity .15s, transform .15s, visibility .15s;
}

.chapter-nav a:hover::after,
.chapter-nav a:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

@media only screen and (max-width: 700px) {
    .chapter-nav {
        display: grid;
        grid-template-columns: repeat(3, auto);
        top: var(--float-top);
        left: 76px;
        max-width: calc(100vw - 88px);
        gap: 2px;
        padding: 4px;
        border-radius: 14px;
    }

    .chapter-nav a {
        text-align: center;
    }

    .chapter-nav a {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .chapter-nav a::after {
        display: none;
    }
}

.sound-btn--float,
.chapter-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    translate: -8px 0;
    transition: opacity .3s, translate .3s, visibility .3s, background-color .2s, color .2s;
}

.sound-btn--float.is-shown,
.chapter-nav.is-shown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    translate: 0 0;
}

.chapter-nav a:not([data-title])::after {
    display: none;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4D45FF;
    cursor: pointer;
    transition: background-color .2s;
}

.nav-toggle:hover {
    background: #E9E8FF;
}

.nav-toggle:focus-visible {
    outline: 2px solid #4D45FF;
    outline-offset: 2px;
}

.nav-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-toggle-open,
.chapter-nav.is-collapsed .nav-toggle-close {
    display: none;
}

.chapter-nav.is-collapsed .nav-toggle-open {
    display: block;
}

.chapter-nav.is-collapsed a {
    display: none;
}

.chapter-nav.is-collapsed {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
}

.chapter-nav.is-collapsed .nav-toggle {
    width: 46px;
    height: 46px;
}

.chapter-nav.is-collapsed .nav-toggle svg {
    width: 22px;
    height: 22px;
}

@media only screen and (max-width: 700px) {
    .chapter-nav.is-collapsed {
        top: var(--float-top);
    }
}

@media only screen and (max-width: 700px) {
    .chapter-nav {
        grid-template-columns: auto repeat(3, auto);
    }

    .nav-toggle {
        grid-row: 1 / span 2;
        align-self: start; 
        width: 26px;
        height: 26px;
    }

    .nav-toggle svg {
        width: 16px;
        height: 16px;
    }
}
@media only screen and (min-width: 701px) {
    #scrolly_money .battery_figure {
        width: 100%;
    }

    #money_bars {
        max-width: 680px;
    }

    #money_bars svg {
        width: min(100%, calc((min(680px, 80vh - 40px) - 192px) * 980 / 680));
    }
}

@media only screen and (min-width: 701px) {
    .sound-btn--float {
        left: auto;
        right: 20px;
    }

    .sound-btn--float,
    .chapter-nav {
        translate: 8px 0;
    }

    .sound-btn--float.is-shown,
    .chapter-nav.is-shown {
        translate: 0 0;
    }

    .chapter-nav a::after {
        left: auto;
        right: calc(100% + 14px);
        transform: translate(4px, -50%);
    }

    .chapter-nav:not(.is-collapsed) {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .chapter-nav:not(.is-collapsed) a {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .chapter-nav:not(.is-collapsed) a[href="#intro"] {
        grid-column: 1;
        grid-row: 1;
    }

    .chapter-nav:not(.is-collapsed) .nav-toggle {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }
}

@media only screen and (max-width: 700px) {
    #money_bars h6 {
        margin-top: 0;
    }
}
