@import "fonts.css";
@import "sunBeams.css";
@import "lensFlare.css";

:root {
    --viewport-height: 100svh;
    --viewport-width: 100vw;
    --text-white: #fffcf7;
    --text-blue: #123660;
    --text-animation-time: .8s;
    --text-animation-time-1: 1s;
    --text-animation-time-2: 2s;
    --ui-transition-time: .4s;
    --transition-screen-time: .4s;
    --parallax-y: 0;
    --line-parallax-opacity: 0;

    --z-base: 0;
    --z-overlay: 100;
    --z-ui: 500;
}

* {
    box-sizing: border-box;
    user-select: none;
}

html {
    font-size: calc(0.01 * var(--viewport-height));
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

canvas {
    display: block;
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: none;
}

video {
    pointer-events: none;
}

a, a:hover, a:focus, a:active, a:visited {
    color: var(--text-white);
    text-decoration: none;
}

/* Navifation */
.menu-toggle {
    display: block;
    position: fixed;
    width: 6rem;
    height: 6rem;
    top: 1rem;
    right: 2rem;
    cursor: pointer;
    z-index: calc(var(--z-ui) + 1);

    @media (orientation: landscape) {
        top: 3.5rem;
        right: 3.5rem;
    }
}

.menu-toggle .icon-menu,
.menu-toggle .icon-close {
    position: absolute;
    inset: 0;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.icon-menu {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    background: url("../images/icon-menu.svg");
    background-size: contain;
}

.icon-close {
    opacity: 0;
    transform: rotate(-45deg) scale(0.8);
    background: url("../images/icon-close.svg");
    background-size: contain;
}

.menu-open .icon-menu {
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
}

.menu-open .icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform var(--ui-transition-time) cubic-bezier(0.22, 1, 0.36, 1);
    z-index: var(--z-ui);

    @media (orientation: landscape) {
        transform: translateX(110%);
        width: calc(var(--viewport-width) * 0.3);

        box-shadow: -15px 0 20px rgba(0, 0, 0, 0.1), -2px 2px 6px rgba(0, 0, 0, 0.1), inset 0.1px -0.1px 1.2px rgba(255, 255, 255, 0.1), inset -0.2px 0.2px 1px rgba(255, 255, 255, 0.65), inset 0 0 19px rgba(230, 230, 230, 0.1);
        border-radius: 50px 0 0 50px;
    }

    @media (orientation: landscape) and (max-aspect-ratio: 3 / 2), (orientation: landscape) and (max-height: 900px) {
        width: calc(var(--viewport-width) * 0.4);
    }
}

.menu-overlay {
    display: none;
}

@media (orientation: landscape) {
    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgb(0 0 0 / 0);
        pointer-events: none;
        transition: background var(--ui-transition-time) ease;
        z-index: calc(var(--z-overlay) - 1);
    }

    .menu-overlay.menu-open {
        background: rgb(0 0 0 / 0.2);
        pointer-events: auto;
    }
}

.menu.is-open {
    transform: translateX(0);
}

.menu-content {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-blue);
    padding-top: 16%;

    @media (orientation: landscape) {
        width: 100%;
        padding: 20% calc(var(--viewport-width) * 0.03) 0 calc(var(--viewport-width) * 0.03);
    }

    @media (orientation: landscape) and (max-height: 500px), (orientation: landscape) and (min-aspect-ratio: 5 / 2) {
        padding: 10% calc(var(--viewport-width) * 0.03) 0 calc(var(--viewport-width) * 0.03);
    }
}

.menu-title-wrapper {
    text-align: center;
}

.menu-title {
    font-size: clamp(30px, 3.8rem, 40px);

    @media (orientation: landscape), (orientation: portrait) and (min-width: 1024px) {
        font-size: clamp(30px, 5rem, 52px);
    }
}

.menu-subtitle {
    font-size: clamp(16px, 1.8rem, 30px);

    @media (orientation: landscape) {
        font-size: clamp(16px, 2.2rem, 32px);
    }
}

.menu a.chapter-item, .menu a.chapter-item:hover, .mune a.chapter-item:focus, .menu a.chapter-item:active, .menu a.chapter-item:visited {
    color: var(--text-blue);
    text-decoration: none;
}

.menu .chapter-item {
    --icon-size: calc(var(--viewport-height) * 0.08);
    --row-gap: calc(var(--viewport-height) * 0.07);

    @media (orientation: landscape) and (max-aspect-ratio: 4 / 3) {
        --icon-size: calc(var(--viewport-height) * 0.06);
        --row-gap: calc(var(--viewport-height) * 0.05);
    }

    @media (orientation: landscape) and (max-aspect-ratio: 4 / 3) {
        --icon-size: calc(var(--viewport-height) * 0.06);
        --row-gap: calc(var(--viewport-height) * 0.05);
    }

    position: relative;
    display: grid;
    grid-template-columns: var(--icon-size) 1fr;
    gap: 14px;
    align-items: center;
}

.menu .chapter-item:not(:last-child) {
    padding-bottom: var(--row-gap);
}

.menu .chapter-item:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;

    left: calc(var(--icon-size) / 2);
    top: var(--icon-size);
    bottom: 0;

    width: 1px;
    background: var(--text-blue);
}

.you-are-here {
    display: none;
}

.menu .chapter-item.active .you-are-here {
    display: block;
}

.chapter-icon {
    position: relative;
    cursor: pointer;
}

.chapter-icon-bg {
    fill: #fff;
    stroke: #123660;
}

.chapter-icon-symbol {
    fill: #123660;
}

.chapter-item.visited .chapter-icon-bg {
    fill: #123660;
}

.chapter-item.visited .chapter-icon-symbol {
    fill: #fff;
}

.chapter-content {
    width: fit-content;
    font-size: clamp(22px, 3.0rem, 32px);
    line-height: 1.2;
    cursor: pointer;

    @media (orientation: landscape), (orientation: portrait) and (min-width: 1024px) {
        font-size: clamp(28px, 4rem, 32px);
    }

    @media (orientation: landscape) and (min-aspect-ratio: 3 / 1) {
        font-size: clamp(16px, 3rem, 28px);
    }
}

.chapter-content small {
    display: block;
    font-size: clamp(14px, 1.4rem, 18px);
    line-height: 1;

    @media (orientation: landscape) {
        font-size: clamp(14px, 1.6em, 22px);
    }
}

.chapter-content-name {
    background: url("../images/menu-arrow.svg") no-repeat right 70%;
    background-size: 10% 50%;
    padding-right: calc(var(--viewport-width) * 0.01 + 15px);
}

.chapter-item.active .chapter-content-name {
    background: none;
    padding-right: 0;
}

.you-are-here {
    border-radius: 15px;
    position: absolute;
    text-transform: uppercase;
    background-color: #d4e4f8;
    color: #4979c6;
    font-size: clamp(10px, 1.5rem, 12px);
    line-height: 1;
    padding: 6px 12px 5px 12px;
    margin-top: 4px;
}

.download-resources {
    width: 100%;
    font-size: 2rem;
    color: #00224d;
    text-align: center;
    background-color: #9db7ea;
    border-radius: 35px;
    padding: 2.2rem 0;
    margin-bottom: 4rem;
}
/* END: Navifation */

.clouds-transition {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #fff;
    z-index: calc(var(--z-ui) + 100);
    pointer-events: none;
    /*transition: opacity var(--transition-screen-time);*/
    transition: opacity .2s;
}

.clouds-transition.active {
    display: block;
    opacity: 1;

    @starting-style {
        opacity: 0;
    }
}

.clouds-transition.active.hide {
    animation: vanTransition .35s cubic-bezier(0.7, 0, 1, 1) forwards;
}

@keyframes vanTransition {
    0%,
    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#scroll-jump-guard {
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

#scroll-jump-guard::backdrop {
    background: transparent;
}

.layout-width {
    width: 86%;
    margin: 0 auto;
    @media (orientation: landscape) {
        width: 82%;
    }
}

.horizontal-scroll-section {
    position: fixed;
    width: 100%;
    /*height: calc(var(--viewport-height) * 6);*/
    top: 0;
}

.horizontal-scroll-section .sticky-view {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.horizontal-section {
    width: 100vw;
    height: fit-content;
    /*height: var(--viewport-height);*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    right: -100%;
}

.progress-bar {
    position: fixed;
    height: 14rem;
    width: 2px;
    top: 50rem;
    left: 3%;
    transform: translateY(-50%);
    background: #8c8c8c;
    border-radius: 2px;
    z-index: calc(var(--z-ui) - 1);
}

.progress-bar .bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: #fff;
}

.scroll-hint {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: calc(var(--z-ui) - 10);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 1;
    visibility: visible;
    /*transition: opacity var(--ui-transition-time), display var(--ui-transition-time) allow-discrete;*/
    transition: opacity var(--ui-transition-time), visibility var(--ui-transition-time) allow-discrete;
}

.scroll-hint.is-hidden {
    opacity: 0;
    visibility: hidden; /* Allows the fade transition to finish before hiding it from clicks */
}

.scroll-hint .text {
    font-size: 2.4rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(5, 51, 67, 0.85), 0 0 5px rgba(5, 51, 67, 0.4);

    @media (orientation: landscape) {
        font-size: 3.0rem;
    }
}

.scroll-hint .line {
    width: 1px;
    height: 5rem;
    border-radius: 2px;
    background: #fff;
    animation: scrollLine 1.5s infinite;
    box-shadow: 0 1px 2px rgba(5, 51, 67, 0.85), 0 0 5px rgba(5, 51, 67, 0.4);
}

@keyframes scrollLine {
    0% {
        transform-origin: top;
        transform: scaleY(0);
        animation-timing-function: cubic-bezier(0.1, 0, 0.6, 0);
    }
    45% {
        transform-origin: top;
        transform: scaleY(1);
    }
    /* Instantly swap the origin to the bottom right after it reaches full height */
    53% {
        transform-origin: bottom;
        transform: scaleY(1);
        animation-timing-function: cubic-bezier(0.5, 1, 0.8, 1);
    }
    99% {
        transform-origin: bottom;
        transform: scaleY(0);
    }
    100% {
        /* Keep it hidden for a brief pause before cycling */
        transform-origin: bottom;
        transform: scaleY(0);
    }
}

.ads-block {
    width: var(--viewport-width);
    height: var(--viewport-height);
}

.ads {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    height: fit-content;
    min-width: 300px;
    min-height: 50px;
    background: #f0f8f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.main-container {
    width: 100%;
    overflow: hidden;
}

.text-main {
    width: 60%;
    margin: 0 auto;
    font-size: 4rem;
    line-height: 4.6rem;
    color: var(--text-white);
    text-align: center;

    @media (orientation: portrait) {
        width: fit-content;
        max-width: 86%;
        font-size: 2.5rem;
        line-height: 3.4rem;
    }

    @media (orientation: landscape) and (max-aspect-ratio: 4 / 3) {
        width: 70%;
    }
}

.disease-number-wrapper .text-main {
    margin: 0 auto;
}

.text-dark-blue {
    color: #022944;
}

/* TOP SCREEN */
.dark-blue-sky-container {
    position: relative;
    height: calc(var(--viewport-height) * 4.6);
    background: #033365;
    /*background: linear-gradient(325deg, rgba(105, 125, 155, 1) 10%, rgba(20, 50, 90, 1) 40%, rgba(6, 10, 35, 1) 80%);*/
    background: linear-gradient(165deg, #011138 0%, #011b54 25%, #002b7a 50%, #004fb0 80%);
    overflow: hidden;
}

.dark-blue-sky-container canvas {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}

.title-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--viewport-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate3d(-10%, 0, 0);
    transition: transform var(--text-animation-time) cubic-bezier(0.3, 1, 0.9, 1), opacity var(--text-animation-time);
    opacity: 1;
    /*will-change: transform;*/

    @media (orientation: landscape) {
        transform: translateX(-5%);
    }
}

.title-wrapper.active {
    opacity: 0;
}

.title-wrapper-opaque {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--viewport-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--text-animation-time) cubic-bezier(0.3, 1, 0.9, 1), opacity var(--text-animation-time) cubic-bezier(0.3, 1, 0.9, 1);
    opacity: 0;
}

.title-wrapper-opaque.active {
    opacity: 1;
}

.title-wrapper .title {
    font-size: 16rem;
    line-height: 14rem;
    color: var(--text-white);
    text-align: center;

    background-image: url('../images/mask-04.webp');
    background-repeat: no-repeat;
    background-size: 500%;
    background-position: 60% center;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
    transition: background-position 4s;
    transition-timing-function: cubic-bezier(0.6, 1, 0.9, 1);

    @media (orientation: portrait) {
        font-size: 10rem;
        line-height: 9rem;
    }
}

.title-wrapper .title.activated {
    transition-duration: var(--text-animation-time);
    transition-timing-function: cubic-bezier(0.6, 1, 0.9, 1);
}

.title-wrapper-opaque .title {
        font-size: 16rem;
        line-height: 14rem;
        color: var(--text-white);
        text-align: center;

        @media (orientation: portrait) {
            font-size: 10rem;
            line-height: 9rem;
        }
}

.subtitle {
    font-size: 4rem;
    line-height: 4rem;
    margin-top: 3rem;
    color: var(--text-white);
    text-align: center;
    @media (orientation: portrait) {
        font-size: 2.4rem;
        line-height: 2.4rem;
    }
}

.section-title {
    font-size: 16rem;
    line-height: 14rem;
    color: var(--text-white);
    text-align: center;
    @media (orientation: portrait) {
        font-size: 10rem;
        line-height: 9rem;
    }
}

.stormy-section .section-title {
    margin-top: 10rem;

    @media (min-aspect-ratio: 16 / 9) {
        margin-top: 25rem;
    }
}

.text-intro-wrapper {
    position: absolute;
    top: calc(var(--viewport-height) * 1.55);
    width: 100%;
    @media (orientation: portrait) {
        top: calc(var(--viewport-height) * 1.45);
    }
}

.text-intro-wrapper .text-main {
    margin-bottom: 4rem;
}

.fade-animation {
    padding: 10rem 0;
    transition: opacity .1s, transform .1s;
    will-change: transform, opacity;
}

.disease-number-wrapper {
    width: 100%;
    /*@media (orientation: landscape) {
        top: calc(var(--viewport-height) * 3.1);
    }*/
}

.disease-number-wrapper .text {
    padding: 2rem 0;
}

.disease-number-wrapper .number-text {
    text-align: center;
}

.disease-number-wrapper .disease-number {
    display: inline-block;
    margin-top: -8rem;
    font-size: clamp(20rem, 18vw, 40rem);
    @media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
        font-size: clamp(6rem, 18vw, 26rem);
        margin-top: -4rem;
    }
    @media (orientation: portrait) {
        font-size: clamp(8rem, 18vmin, 16rem);
        margin-top: -3rem;
    }
}

.disease-number-dynamic {
    min-width: 6ch;
    text-align: left;
}

.disease-number-wrapper .disease-number span {
    background: linear-gradient(180deg, #e7f3ff 60%, #195cb3 88%, #0e54af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.video-wrapper {
    width: 100%;
    height: auto;
    position: relative;
}

.video-item {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    backdrop-filter: blur(3px);

    @media (orientation: landscape) {
        width: 30%;
    }
}

.video-item video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    transform: translateZ(0);
    border: 2px solid rgba(255, 255, 255, 0.21);
    background: rgba(223, 201, 201, 0.15);
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.1), inset 0.1px -0.1px 1.2px rgba(255, 255, 255, 0.1), inset 0px 0px 18.5px rgba(230, 230, 230, 0.1);
}

.parallax-line {
    display: block;
    opacity: var(--line-parallax-opacity);
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    transition: transform var(--text-animation-time) linear;
}

/* SUNNY SECTION */
.clouds-sunny {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(var(--viewport-height) * 2.1);
}

.clouds-sunny .sunny-clouds-wrapper {
    position: fixed;
    bottom: calc(var(--viewport-height) * -1.52);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    mix-blend-mode: screen;

    @media (orientation: landscape) {
        bottom: calc(var(--viewport-height) * -1.6);
        display: flex;
        flex-direction: row;
    }
}

.clouds-sunny video {
    position: relative;
    height: calc(var(--viewport-height) * 1.5);
    width: auto;
    top: 0;
    mix-blend-mode: screen;

    @media (orientation: landscape) {
        transform: translateX(20%);
        /*width: var(--viewport-width);
        height: auto;*/
    }
}

video.sunny-clouds-2 {
    position: absolute;
    left: 0;
    transform: translateX(-30%);

    @media (orientation: portrait) {
        display: none;
    }
}

.sunny-section {
    width: 100%;
    overflow: visible;
    background: #6d9bd9;
    background: linear-gradient(180deg, #91aaf0 0%, #7fa4e6 50%, #b8a2eb 65%, #84a7da 70%, #5c9dc2 100%);
}

.sunny-section .text-main, .cloudy-section .text-main, .stormy-section .text-main {
    padding: 40rem 0;
}

.clouds-sunny-text {
    width: 100vw;
    height: var(--viewport-height);
    position: absolute;
    bottom: 0;
    overflow: hidden;
}

.clouds-sunny-text .text-main {
    position: relative;
    margin: 0;
    top: 0;
    left: 50%;
    transform: translate(-50%, 120%);
    color: #123660;
    z-index: var(--z-overlay);
}

.clouds-sunny .bg-bottom {
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 79, 176, 0) 0%, #004fb0 10%, #e3cfe1 60%, #91aaf0 100%);
}

.reveal-char {
    display: inline-block;
    opacity: 0;
    padding-inline: 0.09em;
    margin-inline: -0.09em;
    overflow: visible;
    transition: opacity .5s linear, transform .5s linear;
}

video.clear-day-clouds {
    position: fixed;
    mix-blend-mode: screen;
    height: var(--viewport-height);
    width: auto;
    top: 50%;
    left: 50%;
    max-width: 100vw;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: none;
    transition: opacity var(--ui-transition-time), display var(--ui-transition-time) allow-discrete;

    @media (orientation: landscape) {
        height: auto;
        width: var(--viewport-width);
    }
}

.sunny-section.active video.clear-day-clouds {
    display: block;
    opacity: 0.5;

    @starting-style {
        opacity: 0;
    }
}

/* Symptoms, myth or reality section */
.symptoms-and-myths-wrapper {
    position: relative;
    width: var(--viewport-width);
    padding-top: 30rem;
}

.symptoms-and-myths {
    /*height: var(--viewport-height);*/
    min-height: 100dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
    /*flex-wrap: wrap;*/
    justify-content: space-around;
    margin-top: 50rem;
    pointer-events: none;

    @media (orientation: landscape) {
        padding: 5rem 0 15rem 0;
    }
}

.myth-or-reality-wrapper .symptoms-and-myths {
    min-height: 0;
    height: 100%;
    gap: 50vh;
    justify-content: start;

    @media (orientation: landscape) {
        gap: 80vh;
    }
}

.myth-or-reality-wrapper {
    position: relative;
    width: var(--viewport-width);
    height: calc(100dvh * 1.16);

    @media (orientation: landscape) {
        height: calc(100dvh * 1.68);
    }
}

.myth-or-reality {
    position: relative;
    width: var(--viewport-width);
    height: 100%;
}

.stormy-resources.absolute {
    position: absolute;
    bottom: 0;
    top: unset;
}

.symptoms-and-myths-text-trigger {
    width: 100%;
    height: 1px;
}

.myth-or-reality-copy {
    width: 100%;
    height: 10rem;
    transition: opacity var(--text-animation-time-1), transform var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1);
}

.myth-or-reality-copy .text-main {
    position: fixed;
    top: 45%;
    text-align: left;
    padding: 0;
    opacity: 0;
    transform: translate3d(50%, -45%, 0);
    transition: opacity var(--text-animation-time-1), transform var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1);

    @media (orientation: landscape) {
        max-width: 40%;
        margin: 0;
    }
}

.title-lines-wrapper {
    position: fixed;
    top: 10.5rem;

    @media (orientation: landscape), (min-width: 720px) and (min-aspect-ratio:  3 / 4) {
        top: 4.5rem;
    }
}

.title-lines {
    position: relative;
    width: 100%;
    font-size: 2.6rem;
    color: var(--text-white);
    text-align: center;
    padding: 1.3rem 0;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    display: none;
    transition: opacity var(--ui-transition-time), display var(--ui-transition-time) allow-discrete;
    transition-delay: calc(var(--ui-transition-time) / 2);
}

.title-lines-wrapper.active .title-lines {
    opacity: 1;
    display: block;

    @starting-style {
        opacity: 0;
    }
}

.title-lines-wrapper::before,
.title-lines-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fdf8f3;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.title-lines-wrapper::before {
    top: 0;
}

.title-lines-wrapper::after {
    bottom: 0;
}

.title-lines-wrapper.active::before,
.title-lines-wrapper.active::after {
    transform: scaleX(1);
}

.info-cards {
    display: flex;
    flex-direction: column;
    align-content: space-between;
    gap: 2rem;
    color: var(--text-white);

    @media (orientation: landscape) {
        flex-direction: row;
    }
}

.info-cards .info-card {
    width: 100%;
    border-radius: 16px;
    box-shadow: -2px 2px 5.7px rgba(0, 0, 0, 0.1), inset 0.1px -0.1px 1.2px rgba(255, 255, 255, 0.1), inset -0.2px 0.2px 0.9px rgba(255, 255, 255, 0.65), inset 0px 0px 18.5px rgba(230, 230, 230, 0.1);
    background: rgba(223, 201, 201, 0.15);
    backdrop-filter: blur(5px);
    padding: 2rem;

    transform: translate3d(100vw, 0, 0);
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1);

    @media (orientation: landscape) {
        padding: 3rem 3.2rem;
    }
}

@media (orientation: landscape) {
    .info-cards .item {
        width: 33.3333%;
    }
}

.info-cards .info-card .title {
    font-size: 3rem;

    @media (orientation: landscape) {
        font-size: 3.6rem;
    }
}

.info-cards .info-card .title-digit {
    margin-bottom: 6rem;
}

.info-cards .info-card .text {
    font-size: 2.2rem;
    margin-top: 1.4rem;
}

.sunny-section .stats {
    position: relative;
    height: calc(var(--viewport-height) / 1.1);
    width: var(--viewport-width);
    display: flex;
    flex-direction: row;

    @media (orientation: landscape) {
        height: var(--viewport-height);
    }
}

.sunny-section .large-text {
    position: relative;
    font-size: clamp(3rem, 30vw, 18rem);
    padding-bottom: 2rem;
    background: linear-gradient(180deg, #F8F1E8 58.47%, rgba(188, 195, 229, 0) 111.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    white-space: nowrap;

    @media (orientation: landscape) {
        font-size: clamp(10rem, 28vw, 30rem);
        padding-left: 16rem;
    }

    @media (orientation: landscape) and (max-aspect-ratio:  5 / 4) {
        padding-left: 4rem;
    }
}

.myth-or-reality-wrapper .large-text {
    position: fixed;
    bottom: 0;
    transform: translate3d(0, 1.25em, 0);
    font-size: clamp(3rem, 30vw, 15rem);
    opacity: 0;
    transition: opacity var(--text-animation-time), transform var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1);

    @media (orientation: landscape) {
        font-size: clamp(10rem, 28vw, 30rem);
    }

    @media (max-width: 720px) and (max-aspect-ratio:  9 / 16) {
        font-size: clamp(3rem, 28vw, 14rem);
    }

    @media (orientation: landscape) and (max-aspect-ratio:  5 / 4) {
        font-size: 26rem;
    }
}

.sunny-section .stats .text-main {
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translate3d(100%, 0, 0);
    transition: transform var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1), opacity var(--text-animation-time-1);
    text-align: left;
    width: 100%;

    @media (orientation: landscape) {
        padding-left: 30%;
    }
}

.sunny-section .stats-wrapper {
    position: relative;
    align-self: center;
}

.sunny-section .stats-wrapper .animation-flag {
    position: absolute;
    top: 50%;
    height: 60%;
    width: 100%;
}

.sunny-section .stats-wrapper .animation-flag.active + .text-main {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.sunny-section .stats-wrapper .animation-flag.hide + .text-main {
    opacity: 0;
    transform: translate3d(0, 0, 0);
}

.sunny-section .stats-content {
    width: min-content;
}

/* CLOUDY SECTION */

.cloudy-section {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #5c9dc2 0%, #236d8f 100%);
}

.cloudy-section video.clouds-looping, .stormy-section video.clouds-looping, .final-section video.clouds-looping {
    position: fixed;
    top: 0;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    display: none;
    opacity: 0;
    /*transition: opacity var(--ui-transition-time), display var(--ui-transition-time) allow-discrete, transform var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1);*/
    transition: opacity var(--ui-transition-time), display var(--ui-transition-time) allow-discrete, transform 5s cubic-bezier(0.25, 1, 0.5, 1);

    @media (orientation: landscape) {
        width: 100%;
        height: auto;
    }
}

.cloudy-section video.clouds-looping.active {
    transform: translate3d(0, -70%, 0);
}

.stormy-section video.clouds-looping.active {
    transform: translate3d(0, -70%, 0);
}

.cloudy-section video.clouds-looping.hide, .stormy-section video.clouds-looping.hide {
    transition: opacity var(--ui-transition-time), display var(--ui-transition-time) allow-discrete, transform 7s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translate3d(0, -101%, 0);
}

.cloudy-section.active video.clouds-looping, .stormy-section.active video.clouds-looping {
    display: block;
    opacity: 0.8;

    @starting-style {
        opacity: 0;
    }
}

.final-video-loop-trigger {
    position: relative;
}

.final-video-loop-trigger.active video.clouds-looping {
    display: block;
    opacity: 0.5;

    @starting-style {
        opacity: 0;
    }
}

.cloudy-section .cloud-transition-left, .cloudy-section .cloud-transition-right {
    position: absolute;
    width: var(--viewport-width);
    height: calc(var(--viewport-height) * 2);
    overflow: hidden;
}

.cloudy-section .cloud-transition-left video, .cloudy-section .cloud-transition-right video {
    position: relative;
    width: 150%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0;
    top: 0;
    transform: translate3d(-100%, 0, 0);
    transition: opacity var(--ui-transition-time), transform var(--text-animation-time-2) cubic-bezier(0.5, 1, 0.8, 1);

    @media (orientation: landscape) {
        width: 100%;
    }
}

.cloudy-section .cloud-transition-left.active video {
    opacity: 1;
    transform: translate3d(-50%, 50%, 0);

    @media (orientation: landscape) {
        transform: translate3d(-38%, 0%, 0);
    }
}

.cloudy-section .cloud-transition-right video {
    transform: translate3d(100%, 100%, 0);
}

.cloudy-section .cloud-transition-right.active video {
    opacity: 1;
    transform: translate3d(0, 50%, 0);

    @media (orientation: landscape) {
        transform: translate3d(38%, 0%, 0);
    }
}

.cloudy-section .symptoms-and-myths .text-main {
    padding: 0 0 3rem 0;

    @media (orientation: landscape) {
        padding: 0 0 30rem 0;
    }
}

.cloudy-section .rain-trigger {
    height: 1px;
}

.cloudy-horizontal-wrapper {
    position: relative;
    width: var(--viewport-width);
    height: calc(var(--viewport-height) * 0.5);
    margin-top: calc(var(--viewport-height) / 1.8);

    @media (orientation: landscape) {
        margin-top: calc(var(--viewport-height) / 5);
    }
}

.cloudy-horizontal-block {
    position: fixed;
    bottom: 0;
    width: var(--viewport-width);
    height: var(--viewport-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translate3d(100%, 0, 0);
    transition: transform var(--ui-transition-time) cubic-bezier(0.25, 1, 0.5, 1);
}

.cloudy-horizontal-block.fixed {
    position: fixed;
    top: 0;
    bottom: unset;
}

.cloudy-horizontal-block .text-main {
    text-align: left;
    padding: 0;
}

@media (min-width: 1024px) {
    .cloudy-horizontal-block-text-top {
        position: relative;
        bottom: -3rem;
    }
}

.cloudy-horizontal-block .text-main.text-align-right {
    text-align: right;
}

.cloudy-horizontal-block .large-text {
    margin: 0 auto;
    font-size: clamp(3rem, 15vw, 18rem);
    line-height: 1;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, #d9d9d9 64%, rgba(115, 115, 115, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    @media (orientation: landscape) {
        font-size: 30rem;
        background: linear-gradient(180deg, #efefef 50%, rgba(115, 115, 115, 0) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
        text-align: center;
    }
}

.cloudy-horizontal-wrapper video {
    position: fixed;
    bottom: 0;
    height: var(--viewport-height);
    width: auto;
    object-fit: cover;
    mix-blend-mode: screen;
    transform: translate3d(100%, 0, 0);
    transition: opacity var(--text-animation-time-2), transform var(--ui-transition-time) cubic-bezier(0.25, 1, 0.5, 1);
}

.cloudy-horizontal-wrapper video.fixed {
    position: fixed;
    top: 0;
    bottom: unset;
}

/* Rain */
.rain-wrapper {
    position: fixed;
    top: 0;
    width: var(--viewport-width);
    height: var(--viewport-height);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--ui-transition-time), visibility var(--ui-transition-time) allow-discrete;
    z-index: var(--z-overlay);
    pointer-events: none;
}

.rain-wrapper.active {
    visibility: visible;
    opacity: 0.8;
}

/* STORMY SECTION */

.stormy-section {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #236d8f 0%, #236d8f 5%, #916ad7 7%, #433eaf 80%, #5c50b8 92%, #889ed8 100%);
}

video.stormy-day-transition {
    position: absolute;
    mix-blend-mode: screen;
    height: calc(var(--viewport-height) * 1.6);
    width: auto;
    top: 0;
    left: 50%;
    object-fit: contain;
    transform: translate(-50%, -10%);

    @media (orientation: landscape) {
        width: calc(var(--viewport-width) * 2);
        height: auto;
        transform: translate(-50%, -20%);
    }
}

.lightening-video {
    position: fixed;
    top: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;

    @media (orientation: portrait) {
        width: calc(var(--viewport-width) * 1.5);
        left: 50%;
        transform: translateX(-50%);
    }
}

video.lightening-looping {
    position: absolute;
    height:calc(var(--viewport-height) * 1.5);
    top: -10%;
    /*transform: translateY(-50%);*/
    mix-blend-mode: screen;

    @media (orientation: landscape) {
        left: 0;
    }
}

.stormy-section .stats-wrapper {
    position: relative;
    height: calc(var(--viewport-height) * 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;

    @media (orientation: landscape) {
        flex-direction: row;
    }
}

.stormy-section .stats-wrapper .text-main {
    position: fixed;
    top: 70%;
    padding: 0;
    opacity: 1;
    transform: translate3d(100vw, -50%, 0);
    transition: opacity var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1), transform var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1);
    text-align: left;

    @media (orientation: landscape) {
        max-width: calc(var(--viewport-width) * 0.4);
        top: 50%;
        left: 44%;
    }
}

.stormy-section .large-text {
    top: 0;
    left: 5%;
    position: fixed;
    font-size: clamp(10rem, 50vw, 28rem);
    background: linear-gradient(180deg, #D9D9D9 24.76%, rgba(115, 115, 115, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transform: translate3d(0, 200vh, 0);
    transition: opacity var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1), transform var(--ui-transition-time) cubic-bezier(0.25, 1, 0.5, 1);

    @media (orientation: landscape) {
        left: 10%;
    }

    @media (orientation: landscape) {
        font-size: clamp(10rem, 15vw, 30rem);
        min-width: 3ch;
        flex-shrink: 0;
    }
}

.stormy-section .stats-rain-trigger {
    position: absolute;
    height: 50%;
    top: 0;

    @media (orientation: landscape) {
        height: 70%;
    }
}

.stormy-resources-wrapper {
    position: relative;
    width: var(--viewport-width);
    margin-top: 45rem;
    padding-bottom: calc(var(--viewport-width) * 0.5);
}

.stormy-resources {
    width: var(--viewport-width);
}

.stormy-resources .text-main {
    position: fixed;
    top: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--text-animation-time-1), transform var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1);
    z-index: calc(var(--z-overlay) + 10);
}

.stormy-resources .symptoms-and-myths {
    margin-top: 0;
    justify-content: start;
    gap: 50rem;
    padding-bottom: 30rem;

    @media (orientation: landscape) {
        gap: 70rem;
    }
}

.resources-text-trigger {
    width: 100%;
    height: 10px;
}

.resources-text-trigger-1 {
    margin-top: 10rem;

    @media (orientation: landscape) {
        margin-top: 20rem;
    }
}

.stormy-section .text-main-gradient-bg {
    width: 100%;
    height: 100%;
    background:
            radial-gradient(ellipse 55% 35% at 50% 48%, rgba(238, 196, 255, 0.55) 0%, rgba(190, 140, 230, 0.30) 45%, transparent 75%),
            radial-gradient(ellipse 85% 70% at 50% 55%, rgba(158, 115, 220, 0.35) 0%, transparent 75%);
}

.stormy-section .stats-wrapper-gradient-bg {
    position: absolute;
    width: 100%;
    bottom: -63%;
    height: calc(var(--viewport-height) * 2);
    background: radial-gradient(ellipse 200vw 85vh at 18% 50%, rgba(247, 205, 255, 0.9) 0%, rgba(225, 169, 255, 0.7) 15%, rgba(188, 130, 240, 0.42) 40%, transparent 60%);
    overflow: visible;

    @media (orientation: landscape) {
        height: var(--viewport-height);
        bottom: -30%;
    }
}

.water-ripples {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--viewport-height);
    z-index: var(--z-overlay);
    transition: opacity var(--text-animation-time-2), visibility var(--text-animation-time-2) allow-discrete;
    opacity: 0;
    visibility: hidden;
}

.ripples-trigger {
    position: absolute;
    top: 70rem;
    height: calc(100% - 70rem);
    width: 100%;
}

.ripples-trigger.is-visible + .water-ripples {
    opacity: 1;
    visibility: visible;
}

.stormy-resources .symptoms-and-myths {
    align-items: center;
}

.stormy-section .stormy-symptoms-and-myths-wrapper {
    margin-bottom: 15rem;

    @media (orientation: landscape) {
        margin-bottom: 0;
    }
}

/* FINAL SECTION */

.final-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #889ed8 0%, #fdbd8c 40%, #ecbbaa 60%, #7f9ef0 80%);
}

.final-section video.final-clouds-transition {
    height: calc(var(--viewport-width) * 1.6);
    mix-blend-mode: screen;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--text-animation-time-2) cubic-bezier(0.25, 1, 0.5, 1);
    z-index: var(--z-overlay);

    @media (orientation: landscape) and (min-width : 700px) {
        width: calc(var(--viewport-width) * 2);
        height: auto;
    }
}

.final-section video.active {
    opacity: 1;
}

.final-section .text-main-wrapper {
    height: var(--viewport-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.final-section video.clouds-looping {
    top: 50%;
    transform: translateY(-50%);

    @media (orientation: portrait) {
        height: 150%;
    }
}

.final-section .section-title {
    position: relative;
    height: calc(var(--viewport-height) * 0.4);
}

.final-section .final-title {
    position: absolute;
    top: calc(var(--viewport-height) * -0.2);
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;

    @media (orientation: landscape) {
        top: calc(var(--viewport-height) * -0.3);
    }
}

.final-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 10rem;
    align-items: center;
    gap: 1.2rem;

    @media (min-width: 720px) {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.download-btn, .restart-btn {
    width: fit-content;
    font-size: 1.7rem;
    line-height: 5rem;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin: 0;
    border-radius: 5rem;
    text-align: center;
    cursor: pointer;
}

.download-btn {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: -2px 2px 5.7px rgba(0, 0, 0, 0.1), inset 0.1px -0.1px 1.2px rgba(255, 255, 255, 0.1), inset -0.2px 0.2px 0.9px rgba(255, 255, 255, 0.65), inset 0px 0px 18.5px rgba(230, 230, 230, 0.1);
    backdrop-filter: blur(5px);
}

.restart-btn {
    color: #28486d;
    background: #FFFFFF;
    box-shadow: -2px 2px 5.7px rgba(0, 0, 0, 0.1), inset 0.1px -0.1px 1.2px rgba(255, 255, 255, 0.1), inset -0.2px 0.2px 0.9px rgba(255, 255, 255, 0.65), inset 0px 0px 18.5px rgba(230, 230, 230, 0.1);
}

.download-btn span, .restart-btn span {
    padding: 0 8rem;

    @media (min-width: 720px) {
        padding: 0 6rem;
    }
}

.lens-flare-trigger-final {
    position: absolute;
    height: calc(var(--viewport-height) * 0.3);
    width: var(--viewport-width);
    top: calc(var(--viewport-height) * 0.6);

    @media (orientation: landscape) {
        top: calc(var(--viewport-height) * 0.8);
    }
}

.lf-wrapper-final-section {
    position: fixed;
    top: 0;
    pointer-events: none;
}

/*  */

html.lenis {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}