@charset "utf-8";

/* ========================================
   STORY WRAPPER / SCROLLSTRECKE
======================================== */

.wm-story {
    position: relative;
    height: 300vh;

    background: #0d0a0f;
    color: #fff;
}


/* ========================================
   SICHTBARER STORY-BEREICH
======================================== */

.wm-story__sticky {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;

    background: #0d0a0f;
}


/* während der Story fixieren */

.wm-story__sticky.is-fixed {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 20;
}


/* am Ende der Story */

.wm-story__sticky.is-bottom {
    position: absolute;

    top: auto;
    bottom: 0;
}


/* ========================================
   INHALT
======================================== */

.wm-story__inner {
    position: relative;

    width: 100%;
    height: 100%;

    max-width: 1500px;

    margin: 0 auto;
    padding: 0 6vw;
}


/* ========================================
   STORY ITEMS
======================================== */

.wm-story__item {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;

    padding: 0 6vw;

    opacity: 0;

    visibility: hidden;

    transform: translateY(50px);

    filter: blur(8px);

    pointer-events: none;

    transition:
        opacity .6s ease,
        transform .6s cubic-bezier(.22,.61,.36,1),
        filter .6s ease;
}


.wm-story__item.is-active {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    filter: blur(0);
}


/* ========================================
   TEXT
======================================== */

.wm-story__text {
    width: 100%;
    max-width: 1250px;

    font-family: "Poppins", sans-serif;

    font-size: clamp(45px, 5.3vw, 100px);

    line-height: 1.08;

    font-weight: 400;

    letter-spacing: -0.04em;
}


.wm-story__text strong {
    color: #eacda3;

    font-weight: 600;
}


.wm-story__text .story-small {
    display: inline-block;

    margin-top: 25px;

    font-size: clamp(18px, 1.5vw, 26px);

    line-height: 1.4;

    letter-spacing: 0;

    color: rgba(255,255,255,.65);
}


/* ========================================
   PROGRESS
======================================== */

.wm-story__progress {
    position: absolute;

    left: 6vw;
    right: 6vw;
    bottom: 40px;

    height: 2px;

    background: rgba(255,255,255,.15);
}


.wm-story__progress-bar {
    width: 0;
    height: 100%;

    background: #fff;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .wm-story {
        height: 300vh;
    }

    .wm-story__inner {
        padding-left: 25px;
        padding-right: 25px;
    }

    .wm-story__item {
        padding-left: 25px;
        padding-right: 25px;
    }

    .wm-story__text {
        font-size: clamp(38px, 11vw, 65px);

        line-height: 1.05;
    }

    .wm-story__progress {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }

}