@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap");

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ding {
    0% {
        transform: rotate(0deg);
    }
    8% {
        transform: rotate(-8deg);
    }
    16% {
        transform: rotate(16deg);
    }
    24% {
        transform: rotate(-24deg);
    }
    32% {
        transform: rotate(32deg);
    }
    40% {
        transform: rotate(-16deg);
    }
    50% {
        transform: rotate(8deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes up-and-down {
    0% {
        transform: translateY(0) rotate(0);
    }
    70% {
        transform: translateY(-10%) rotate(3deg);
    }
    80% {
        transform: translateY(0) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

html {
    --font-size: 2svh;
    --color-main: #FFE0D8;
    /*TODO:? #F6C3AE | #F39B76*/
    --color-active: #F6C3AE;
    --color-action: #F0743E;
    --color-mark: #FFCC33;
    --color-alt: #FFFFFF;
    --color-alt-alpha: #FFFFFF80;
    --color-text: #1C1C1C;
    --color-alert: #FF5757;
    --menu-border: calc(var(--font-size) * 0.2);
    --menu-size: 8svh;
    --transition: 0.4s;
    font-size: var(--font-size);
    color: var(--color-text);
    background-color: var(--color-alt);
    scroll-behavior: smooth;
}

html *:not(.far, .fas) {
    font-family: "Lexend Deca", sans-serif !important;
    font-optical-sizing: auto !important;
}

h1 {
    font-size: calc(var(--font-size) * 2.5);
}

h2 {
    font-size: calc(var(--font-size) * 1.25);
}

@media (orientation: portrait) {
    html {
        /*--font-size: 1svh;*/
    }

    h1 {
        /*font-size: calc(var(--font-size) * 2);*/
    }

    h2 {
        /*font-size: calc(var(--font-size) * 1.125);*/
    }
}

h2, strong {
    font-weight: 700;
}

ol, ul {
    padding-left: var(--font-size);
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

html, body, section {
    margin: 0;
    padding: 0;
}

section {
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

section:not(#home) {
    display: grid;
}

section h1 {
    margin-top: 0;
}

section .next {
    position: absolute;
    text-decoration: none;
    color: var(--color-text);
    opacity: 0.1;
    transition: 0.2s;
    bottom: calc(var(--menu-size) * 0.25);
    font-size: calc(var(--font-size) * 2);
    left: 50%;
    transform: translateX(-50%);
}

section .next:hover {
    opacity: 1;
}

iframe {
    border: none;
}

.modal {
    position: relative;
    cursor: pointer;
}

.video {
    background: linear-gradient(to right,
                                #FFFFFF 0%,
                                #FFFFFF calc(1*(100% / 8)),
                                #FFFF00 calc(1*(100% / 8)),
                                #FFFF00 calc(2*(100% / 8)),
                                #00FFFF calc(2*(100% / 8)),
                                #00FFFF calc(3*(100% / 8)),
                                #00FF00 calc(3*(100% / 8)),
                                #00FF00 calc(4*(100% / 8)),
                                #FF00FF calc(4*(100% / 8)),
                                #FF00FF calc(5*(100% / 8)),
                                #FF0000 calc(5*(100% / 8)),
                                #FF0000 calc(6*(100% / 8)),
                                #0000FF calc(6*(100% / 8)),
                                #0000FF calc(7*(100% / 8)),
                                #000000 calc(7*(100% / 8)),
                                #000000 100%);
    background: var(--color-main);
}

/*region Menu*/
header, footer {
    background-color: var(--color-main);
    width: calc(100% - var(--menu-size) * 0.5);
    padding: calc(var(--menu-size) * 0.175) calc(var(--menu-size) * 0.25);
    line-height: calc(var(--menu-size) * 0.65);
    z-index: 3;
}

header {
    position: fixed;
    top: 0;
    justify-content: space-between;
    height: calc(var(--menu-size) * 0.65);
}

menu {
    font-size: 2svh !important;
    margin: 0;
    list-style: none;
    padding: 0;
}

header, footer, menu, menu a {
    display: flex;
    align-items: center;
}

header > menu a {
    position: relative;
    margin-right: calc(var(--menu-size) * (1/3));
    text-decoration: none;
    color: var(--color-text);
    white-space: nowrap;
}

header > menu:last-of-type a::before, header > menu:last-of-type > li a::after, .modal::after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    transition: var(--transition) width;
}

header > menu:last-of-type a::before {
    z-index: -1;
    border-radius: var(--menu-border);
    height: 100%;
    background-color: var(--color-alt);
    transition-delay: calc(var(--transition) * 0.5);
}

header > menu:last-of-type a:not(.hover)::before {
    left: calc(var(--font-size) * -0.5);
}

header > menu:last-of-type a.hover::before {
    right: calc(var(--font-size) * -0.5);
}

header > menu:last-of-type a.active::before {
    background-color: var(--color-active);
}

header > menu:last-of-type a.active::before,
header > menu:last-of-type a:focus::before,
header > menu:last-of-type a:hover::before {
    width: calc(100% + var(--font-size));
    transition-delay: 0s;
}

header > menu:last-of-type a::after,
.modal::after {
    left: 0;
    height: var(--menu-border);
    min-height: 2px;
    max-height: 4px;
    background-color: var(--color-text);
    bottom: calc(var(--menu-border) * 2);
    transition-delay: 0s;
}

strong.modal::after {
    bottom: calc(var(--menu-border) * -1);
}

header > menu:last-of-type a:focus::after,
header > menu:last-of-type a:hover::after,
.modal:focus::after,
.modal:hover::after {
    width: 100%;
    transition-delay: calc(var(--transition) * 0.25);
}

header > menu:first-of-type a::before {
    content: "";
    display: block;
    height: calc(var(--menu-size) * 0.65);
    width: calc(var(--menu-size) * 0.65);
    min-width: calc(var(--menu-size) * 0.65);
    margin-right: calc(var(--menu-size) * 0.175);
    background-image: url("sources/fleur-blanche.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

header > menu:first-of-type a:hover::before {
    animation: ding 2s infinite ease-in;
}

@media (max-width: 35rem) {
    header > menu:first-of-type a {
        width: calc(var(--menu-size) * 0.65);
        overflow: hidden;
    }

    header > menu a[href="#quiz"] span {
        display: none;
    }
}

@media (max-width: 25rem) {
    header > menu:first-of-type {
        position: absolute;
        opacity: calc(1/3);
    }

    header > menu:last-of-type {
        justify-content: center;
        flex: 1;
    }
}

footer {
    position: relative;
    margin-top: calc(var(--menu-size) * -1);
    box-shadow: 0 calc(var(--menu-border) * -1) var(--menu-border) rgba(0, 0, 0, 0.1);
    z-index: 1;
    /*height: 100svh;*/
}
/*endregion*/

/*region Home*/
section#home {
    --flower-size: calc(100svh - var(--menu-size) * 2);
    margin-bottom: var(--menu-size);
    position: sticky;
    top: var(--menu-size);
    height: calc(100svh - var(--menu-size) * 2);
    padding: 0;
    width: 100%;
    cursor: pointer;
    user-select: none;
    background-color: var(--color-alt);
}

section#home article aside {
    background-image: url("sources/fleur-rose.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top: calc(50% - var(--flower-size) * 0.5);
    left: calc(50% - var(--flower-size) * 0.25);
    height: var(--flower-size);
    width: var(--flower-size);
    animation: rotate infinite linear 60s;
    color: transparent;
}

section#home article h1 {
    --font-size: calc(var(--flower-size) * 0.043);
    font-size: var(--font-size) !important;
    position: absolute;
    right: calc(50% - var(--flower-size) * 0.20) !important;
    top: calc(50% + var(--flower-size) * 0.29) !important;
}

section#home article h1 span {
    position: absolute;
    left: 0;
    top: 0;
    font-size: calc(var(--font-size) * 2);
    line-height: calc(var(--font-size) * 2.25);
    display: none;
    color: var(--color-text) !important;
}

section#home article h1::before {
    content: "";
    display: block;
    width: calc(100% + 2.5 * var(--font-size));
    left: calc(-1.5 * var(--font-size));
    height: calc(var(--flower-size) * 0.5);
    position: absolute;
    bottom: 100%;
    background-image: url("sources/flearnie.svg");
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

@media (orientation: portrait) {
    section#home {
        --flower-size: calc(100svw - var(--menu-size));
    }

    section#home article aside {
        top: calc(50% - var(--flower-size) * 0.5 - var(--menu-size) * 0.5) !important;
    }

    section#home article h1 {
        top: calc(50% + var(--flower-size) * 0.29 - var(--menu-size) * 0.5) !important;
    }
}

@media (max-aspect-ratio: 4/5) {
    section#home article h1 {
        color: transparent;
    }

    section#home article h1 span {
        display: inline-block;
    }
}
/*endregion*/

/*region Definition*/
section#flearnie {
    width: calc(100% - 20svw);
    padding: calc(var(--menu-size) * 1.5) 10svw var(--menu-size) 10svw;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    background-color: var(--color-main);
    grid-column-gap: calc(var(--menu-size) * 0.5);
    grid-row-gap: calc(var(--menu-size) * 0.25);
    z-index: 2;
    max-width: 68rem;
    left: 50%;
    transform: translateX(-50%);
    border-right: 100vw solid var(--color-main);
    border-left: 100vw solid var(--color-main);
}

section#flearnie aside#presentation {
    position: relative;
    justify-self: center;
    align-self: center;
    --current-play: 0%;
    --preview-play: 0%;
    --max-dim: 100%;
    width: 100%;
    height: 100%;
    justify-items: center;
    min-height: calc(100svh / 3);
}

section#flearnie aside#presentation nav {
    display: block;
}

section#flearnie aside#presentation video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 2px);
    height: auto;
    transform: translate(calc(-50% - 1px), -50%);
    object-fit: cover;
}

section#flearnie aside#presentation #video {
    overflow: hidden;
    position: relative;
    border-radius: var(--font-size);
    width: 100%;
    height: 100%;
    max-width: var(--max-dim);
}

section#flearnie aside#presentation nav#controllers {
    z-index: 1;
    position: relative;
    color: var(--color-alt);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: var(--max-dim);
}

section#flearnie aside#presentation #video video + nav#controllers:not(:hover) {
    opacity: 0.4;
}

section#flearnie aside#presentation #video video[data-status="playing"] + nav#controllers {
    transition: 0.6s 0.8s opacity;
    opacity: 0;
}

section#flearnie aside#presentation #video video + nav#controllers:hover {
    opacity: 0.8;
    transition: 0s opacity;
}

section#flearnie aside#presentation #video video[data-status="playing"] + nav#controllers::before {
    content: "\f28b";
}

section#flearnie aside#presentation #video video + nav#controllers::before {
    font-size: calc(1.5 * var(--menu-size));
    text-shadow: 0 0 var(--menu-size) rgba(0,0,0,0.25);
}

section#flearnie aside#presentation #video video[data-status="paused"] + nav#controllers::before {
    content: "\f144";
}

section#flearnie aside#presentation #video video + nav#controllers span {
    font-size: calc(var(--menu-size) * 0.5);
    text-shadow: 0 0 calc(var(--menu-size) * 0.25) rgba(0,0,0,0.25);
    display: block;
    height: var(--menu-size);
    width: var(--menu-size);
    text-indent: calc(var(--menu-size) * 0.2);
    line-height: var(--menu-size);
    position: absolute;
    top: 0;
    right: 0;
}

section#flearnie aside#presentation #video video[data-volume="loud"] + nav#controllers span::before {
    content: "\f028";
}

section#flearnie aside#presentation #video video[data-volume="soft"] + nav#controllers span::before {
    content: "\f027";
}

section#flearnie aside#presentation #video video[data-volume="mute"] + nav#controllers span::before {
    content: "\f6a9";
}

section#flearnie aside#presentation > nav {
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--max-dim) - var(--font-size) * 2);
    max-width: calc(100% - 2 * var(--font-size));
}

section#flearnie aside#presentation nav#cursor {
    height: var(--menu-border);
    min-height: 2px;
    position: absolute;
    bottom: var(--font-size);
    transition: 0.4s height;
    z-index: 1;
    border-radius: var(--font-size);
    background: linear-gradient(to right,
    var(--color-action) var(--current-play),
    var(--color-active) var(--current-play),
    var(--color-active) var(--preview-play),
    var(--color-action) var(--preview-play),
    rgba(255,255,255,0.5) var(--current-play),
    rgba(255,255,255,0.5) 100%);
}

section#flearnie aside#presentation #video:hover + nav#cursor,
section#flearnie aside#presentation nav#cursor:hover {
    height: calc(var(--menu-border) * 4);
}

section#flearnie aside#presentation nav#cursor:hover::after {
    content: "";
    position: absolute;
    display: block;
    height: calc(100% + var(--menu-border));
    width: 0;
    box-shadow: 0 0 0 2px var(--color-alt);
    top: calc(var(--menu-border) * -0.5);
    left: var(--preview-play);
}

section#flearnie aside#presentation nav#cursor:not(:hover) + nav#thumbnail {
    display: none;
}

section#flearnie aside#presentation nav#thumbnail {
    position: absolute;
    bottom: 0;
}

section#flearnie aside#presentation nav#thumbnail > div {
    height: calc(var(--menu-size) * 1.5);
    width: calc(var(--menu-size) * 1.5);
    border-radius: 50%;
    overflow: hidden;
    left: var(--preview-play);
    transform: translateX(-50%);
    position: absolute;
    bottom: calc(var(--font-size) * 2);
    border: 4px solid var(--color-alt);
}

section#flearnie article#definition h2 span {
    font-family: monospace !important;
    font-weight: bold !important;
    font-size: var(--font-size);
}

section#flearnie aside#example a {
    text-decoration: none;
    color: var(--color-text);
    background-color: var(--color-mark);
    padding: 0 calc(var(--font-size) * (1/3));
    /*font-style: normal;*/
    border-radius: var(--menu-border);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

section#flearnie > :nth-child(1) {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

section#flearnie > :nth-child(2) {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

section#flearnie > :nth-child(3) {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}

@media (max-aspect-ratio: 6/4) {
    section#flearnie > :nth-child(1) {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }

    section#flearnie > :nth-child(2) {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
    }

    section#flearnie > :nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 1 / 3;
    }
}

@media (max-aspect-ratio: 1/1) {
    section#flearnie > :nth-child(1) {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
    }

    section#flearnie > :nth-child(2) {
        grid-row: 1 / 3;
        grid-column: 1 / 2;
    }

    section#flearnie > :nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }
}

@media (max-aspect-ratio: 3/4) {
    section#flearnie {
        grid-template-rows: auto auto auto;
        grid-template-columns: auto;
    }

    section#flearnie aside#presentation #video {
        min-height: 80vw;
    }

    section#flearnie article#definition > h1 {
        margin-top: 2rem;
    }

    section#flearnie > :nth-child(1) {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }

    section#flearnie > :nth-child(2) {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }

    section#flearnie > :nth-child(3) {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }
}
/*endregion*/

/*region Jobs*/
section#jobs {
    --icon-size: calc(100svw* 0.1);
    width: calc(100% - 10svw);
    padding: calc(var(--menu-size) * 1.5) 5svw;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: calc(var(--menu-size) * 0.25);
    background-color: var(--color-alt);
    /*box-shadow: 0 var(--menu-border) var(--menu-border) rgba(0, 0, 0, 0.1);*/
    margin-top: calc(var(--menu-size) * -0.5);
    z-index: 2;
}

section#jobs h1 {
    grid-row: 1 / 2;
    grid-column: 1 / 5;
    min-width: calc(100% - var(--menu-size));
    text-align: center;
    height: var(--menu-size);
    margin-bottom: calc(var(--menu-size) * 0.5);
}

section#jobs article.job {
    --image-before: url("sources/fleur-rose.png");
    --image-after: url("sources/fleur-rose.png");
    height: var(--icon-size);
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: var(--font-size) var(--font-size) 0 0;
    padding-bottom: calc(var(--menu-size) * 0.125);
}

section#jobs article.job > a {
    display: none;
}

section#jobs article.job > mark {
    position: absolute;
    top: calc(var(--menu-size) * -3);
}

section#jobs article.job[data-active="true"] {
    z-index: 2;
    background-color: var(--color-alt);
    box-shadow: 0 calc(-1 * var(--menu-border)) var(--menu-border) rgba(0,0,0,0.05);
}

section#jobs article.job[data-active="true"] ~ aside#job {
    box-shadow: 0 0 calc(var(--menu-border) * 2) rgba(0,0,0,0.1);
}

section#jobs article.job::before, section#jobs article::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    height: var(--icon-size);
    width: var(--icon-size);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

section#jobs article.job::before {
    background-image: var(--image-before);
}

section#jobs article.job:nth-child(even):hover::before {
    animation: rotate 4s ease-in-out infinite;
}

section#jobs article.job:nth-child(4):hover::before {
    animation-timing-function: linear;
}

section#jobs article.job:nth-child(odd):hover::before {
    animation: rotate 4s ease-in-out infinite reverse;
}

section#jobs article.job::after {
    background-image: var(--image-after);
}

section#jobs article.job:nth-child(2)::before, section#jobs article:nth-child(3)::before {
    bottom: 5%;
}

section#jobs article.job:nth-child(4)::before {
    top: 5%;
}

section#jobs article.job:nth-child(4):hover::after {
    animation: up-and-down calc(4s / 6) ease-in infinite;
}

section#jobs article.job h2 {
    font-size: var(--font-size);
    margin-left: calc(var(--icon-size) - var(--menu-size) * 0.5);
    margin-right: calc(var(--menu-size) * 0.125);
    z-index: 1;
}

section#jobs article.job p {
    display: none;
}

section#jobs aside#job {
    flex: 1;
    border-radius: 0 0 var(--font-size) var(--font-size);
    grid-row: 3 / 4;
    grid-column: 1 / 3;
}

section#jobs aside#job i.fas {
    /*opacity: calc(2/3);*/
}

section#jobs article.job:nth-child(3)[data-active="true"] ~ aside#job {
    grid-column: 2 / 4 !important;
}

section#jobs article.job:nth-child(4)[data-active="true"] ~ aside#job,
section#jobs article.job:nth-child(5)[data-active="true"] ~ aside#job {
    grid-column: 3 / 5 !important;
}

section#jobs aside#job p {
    margin: calc(var(--menu-size) * 0.25);
}

@media (max-width: 80rem) {
    section#jobs {
        --icon-size: calc(100svw * 0.15);
        display: flex;
        flex-wrap: wrap;
    }

    section#jobs article.job > mark {
        top: calc(var(--menu-size) * -1.5);
    }

    section#jobs h1, section#jobs aside#job {
        flex: 2;
        min-width: 100%;
    }

    section#jobs article.job {
        flex: 1;
        min-width: calc(50% - var(--menu-size) * 0.25);
    }

    section#jobs aside#job {
        flex: 0;
        order: 5;
    }

    section#jobs article.job:nth-child(2)[data-active="true"] ~ aside#job,
    section#jobs article.job:nth-child(3)[data-active="true"] ~ aside#job {
        order: 2;
    }

    section#jobs article.job:nth-child(4)[data-active="true"] ~ aside#job,
    section#jobs article.job:nth-child(5)[data-active="true"] ~ aside#job {
        order: 4;
    }

    section#jobs article.job:nth-child(4), section#jobs article.job:nth-child(5) {
        margin-top: calc(var(--menu-size) * 0.5);
    }
}

@media (max-width: 50rem) {
    section#jobs {
        --icon-size: calc(100svw * 0.25);
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    section#jobs article.job {
        flex: 2;
        min-width: 100%;
        min-height: var(--icon-size);
        margin-top: calc(var(--menu-size) * 0.5);
    }

    section#jobs article.job:nth-child(2)[data-active="true"] ~ aside#job {
        order: 1;
    }

    section#jobs article.job:nth-child(3)[data-active="true"] ~ aside#job {
        order: 2;
    }

    section#jobs article.job:nth-child(4)[data-active="true"] ~ aside#job {
        order: 3;
    }

    section#jobs article.job:nth-child(5)[data-active="true"] ~ aside#job {
        order: 4;
    }
}

@media (max-width: 40rem) {
    section#jobs {
        --icon-size: calc(100svw * 0.50);
    }
}
/*endregion*/

/*region Contact*/
section#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 10svw);
    padding: calc(var(--menu-size) * 1.5) 5svw;
    margin-top: calc(var(--menu-size) * -1);
    grid-column-gap: calc(var(--menu-size)* 0.25);
    background-color: var(--color-alt);
    box-shadow: 0 var(--menu-border) var(--menu-border) rgba(0, 0, 0, 0.1);
}

section#contact > article,
section#contact > aside {
    width: 100%;
    max-width: 42rem;
}

section#contact > article > h1,
section#contact > article > h2 {
    text-align: center;
}

section#contact > article > span.modal {
    display: block;
    margin: calc(var(--menu-size) * 0.5) auto;
    width: fit-content;
    height: calc(var(--menu-size) * 0.65);
    line-height: calc(var(--menu-size) * 0.65);
    cursor: pointer;
}

section#contact > article > span.modal::before {
    content: "";
    display: block;
    position: absolute;
    width: calc(100% + var(--font-size) * 1.5);
    left: calc(var(--font-size) * -0.75);
    height: 100%;
    border-radius: var(--menu-border);
    background-color: var(--color-active);
    z-index: -1;
}

section#contact > article > span.modal > i {
    margin-right: calc(var(--font-size) * 0.5);
    font-size: calc(var(--font-size) * 1.125);
}

/*endregion*/

/*region Quiz*/
iframe#quiz {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
}
/*endregion*/

/*region Modal*/
article#modal {
    position: fixed;
    height: calc(100svh - var(--menu-size));
    top: calc(var(--menu-size) * 0.5);
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--font-size);
    overflow: hidden;
    z-index: 9;
    border: calc(var(--menu-border)* 2) solid var(--color-alt);
    box-sizing: border-box;
    box-shadow: 0 0 var(--menu-size) rgba(0, 0, 0, calc(2/3));
    background-color: var(--color-alt);
}

article#modal::before,
article#modal::after {
    content: "";
    display: block;
    position: absolute;
    height: calc(var(--font-size) * 0.5);
    width: 100%;
    left: 0;
}

article#modal::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    top: 0;
}

article#modal::after {
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    bottom: 0;
}

article#modal > span {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: var(--menu-size);
    height: var(--menu-size);
    text-align: right;
    font-size: calc(var(--font-size)* 1.5);
    background-color: var(--color-alt);
    color: var(--color-alert);
    cursor: pointer;
    border-radius: 0 0 0 var(--menu-size);
    box-shadow: 0 0 calc(var(--font-size)* 0.5) rgba(0, 0, 0, 0.25);
}

article#modal > span::before {
    display: block;
    margin: calc(var(--menu-size)* 0.2);
}

article#modal > iframe {
    width: calc(100svw - var(--menu-size) - var(--menu-border) * 2);
    max-width: 450px;
    height: 100%;
}

article#modal:not([data-opened="true"]),
article#modal:not([data-opened="true"]) + div.mask {
    display: none;
}

article#modal + div.mask {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-text);
    opacity: calc(1/3);
    z-index: 8;
}

article#modal[data-opened="true"] ~ *:not(div) {
    filter: blur(0.25rem) !important;
}
/*endregion*/

/*region Footer*/
footer {
    min-height: calc(var(--menu-size) * 0.65);
    white-space: nowrap;
    flex-direction: column;
    justify-content: center;
    padding-bottom: calc(var(--menu-size) * 0.5);
}

footer > p {
    margin: 0;
}

footer > menu {
    flex-wrap: wrap;
    justify-content: center;
}

footer > menu > li {
    position: relative;
    margin: 0 var(--font-size);
}
/*endregion*/

/*region Tests*/
@media (orientation: landscape) {
    body > header {
        top: calc(var(--menu-size) * 0.25);
        width: fit-content;
        left: 50%;
        transform: translateX(-50%);
        border-radius: calc(var(--menu-size) * 0.5);
        /*box-shadow: none !important;*/
    }

    body > header > menu:first-of-type {
        margin-right: calc(var(--menu-size) * 0.5);
    }

    section#jobs {
        padding-top: calc(var(--menu-size) * 1.5) !important;
        margin-top: 0;
    }
}

section#home {
    height: calc(100svh - var(--menu-size));
    top: 0;
    margin-bottom: 0;
    background-color: var(--color-main);
}

section#home::before,
section#home::after {
    content: "";
    display: block;
    position: absolute;
    width: calc(100% + 2rem);
    height: calc(100% + 2rem);
    left: -1rem;
    top: -1rem;
    z-index: -1;
}

section#home::before {
    background: url("sources/home.jpg") center bottom / cover no-repeat;
    filter: grayscale(1) contrast(3);
    mix-blend-mode: overlay;
}

section#home::after {
    background: linear-gradient(to bottom, var(--color-alt), var(--color-alt-alpha) calc(100% - var(--menu-size) * 1.25), var(--color-alt) 100%);
}
/*endregion*/

/*region Captions*/
section#flearnie aside#presentation #video p {
    position: absolute;
    left: 50%;
    top: 75%;
    width: max-content;
    max-width: calc(100% - 3 * var(--font-size));
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    font-size: calc(var(--font-size) * 1.25);
    color: var(--color-mark);
    background-color: rgba(0, 0, 0, calc(2/3));
    padding: calc(var(--font-size) * 0.25) var(--font-size);
    border-radius: var(--font-size);
}

@media (max-aspect-ratio: 1/1) {
    section#flearnie aside#presentation #video p {
        font-size: var(--font-size);
    }
}

@media (max-aspect-ratio: 3/4) {
    section#flearnie aside#presentation #video p {
        font-size: calc(var(--font-size) * 1.25);
    }
}

section#flearnie aside#presentation #video video::cue,
section#flearnie aside#presentation #video p[data-text=""] {
    opacity: 0 !important;
}
/*endregion*/