#transicao {
    width: 100%;
    height: 20vw;
    transition: background-color 0.9s ease;
    position: relative;
    overflow: hidden;
}

#section001 {
    transition: background-color 0.9s ease, color 0.9s ease;
}

/* só textura e cor de texto continuam via classe; o fundo agora é sempre via JS */
body.tema-cinza #section001 {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.12'/></svg>");
    background-repeat: repeat;
    color: whitesmoke;
}

body.tema-branco #section001 {
    color: rgb(20, 20, 20);
}

body.tema-preto #section001 {
    color: whitesmoke;
}

#transicao {
    position: relative;
}

.frase-repetida {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;

    color: white !important;
    background: transparent !important;
    z-index: 2;
    mix-blend-mode: difference;

    font-size: 2vw;
    font-weight: bold;
    line-height: 1.3;

    pointer-events: none;
    user-select: none;
    text-align: center;
    justify-content: center;
}

.frase-repetida span {
    white-space: nowrap;
    margin: 0 0.6em;
}


/* ==================================================
   PARTÍCULAS DE SOLDA — TRANSIÇÃO
   ================================================== */

#fumaca-solda {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* cor da faísca por tema */
body.tema-colorido {
    --spark-color: 255, 255, 255;
}

body.tema-cinza {
    --spark-color: 190, 210, 255;
}

body.tema-branco {
    --spark-color: 255, 255, 255;
}

body.tema-preto {
    --spark-color: 190, 210, 255;
}


/* ==================================================
   FOOTER
   ================================================== */

footer {
    width: 100%;
    height: 15vw;

    background-color: rgb(49, 49, 49);

    position: relative;
    overflow: hidden;
}


/* ==================================================
   PARTÍCULAS DE SOLDA — FOOTER
   ================================================== */

#fumaca-solda2 {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* cor da faísca do footer */
body.tema-colorido {
    --spark-color2: 255, 255, 255;
}

body.tema-cinza {
    --spark-color2: 190, 210, 255;
}

body.tema-branco {
    --spark-color2: 255, 255, 255;
}

body.tema-preto {
    --spark-color2: 190, 210, 255;
}