/* =========================================================
   MOODZ STORY EXPERIENCE
   Intro + eerste verhaalbanner
   ========================================================= */

.story-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background: #050505;
}

.story-page .site-header {
    color: var(--color-black);
    background: var(--color-white);
}

.story-experience {
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--top-bars-height));
    min-height: 0;
    margin-top: var(--top-bars-height);
    overflow: hidden;
    color: var(--color-white);
    background: #050505;
}

/* =========================================================
   INTRO
   ========================================================= */

.story-intro {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--color-white);
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(253, 200, 165, .08),
            transparent 34%
        ),
        #050505;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 700ms ease,
        visibility 700ms ease;
}

.story-intro.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.story-intro__atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.story-intro__atmosphere span {
    position: absolute;
    display: block;
    width: clamp(210px, 25vw, 430px);
    aspect-ratio: 1;
    border: 1px solid rgba(253, 200, 165, .12);
    border-radius: 50%;
}

.story-intro__atmosphere span:nth-child(1) {
    top: -16%;
    left: -8%;
}

.story-intro__atmosphere span:nth-child(2) {
    right: -10%;
    bottom: -22%;
    width: clamp(280px, 34vw, 560px);
}

.story-intro__atmosphere span:nth-child(3) {
    top: 24%;
    right: 12%;
    width: 80px;
    background: var(--color-pink);
    border: 0;
    opacity: .08;
    filter: blur(5px);
}

.story-intro__character {
    position: relative;
    z-index: 2;
    width: clamp(230px, 25vw, 390px);
    margin-top: clamp(-40px, -4vh, -12px);
    opacity: 0;
    filter: blur(6px);
    transform:
        translateY(46px)
        scale(.94);
    transition:
        opacity 900ms cubic-bezier(.2, .7, .2, 1),
        filter 900ms cubic-bezier(.2, .7, .2, 1),
        transform 900ms cubic-bezier(.2, .7, .2, 1);
}

.story-intro__character.is-visible {
    opacity: 1;
    filter: blur(0);
    transform:
        translateY(0)
        scale(1);
}

.story-intro__character img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 35px rgba(0, 0, 0, .52));
}

.story-intro__speech {
    position: absolute;
    top: clamp(34px, 7vh, 90px);
    left: calc(50% + clamp(70px, 10vw, 170px));
    z-index: 3;
    width: min(290px, 30vw);
    padding: 22px 26px;
    color: var(--color-black);
    background: var(--color-white);
    border: 3px solid var(--color-black);
    border-radius:
        48% 52% 44% 56% /
        48% 45% 55% 52%;
    box-shadow:
        0 7px 0 var(--color-pink),
        0 24px 50px rgba(0, 0, 0, .34);
    opacity: 0;
    transform:
        translateY(18px)
        scale(.88)
        rotate(2deg);
    transform-origin: left bottom;
    transition:
        opacity 600ms ease,
        transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.story-intro__speech::before {
    position: absolute;
    left: 18px;
    bottom: -29px;
    width: 34px;
    height: 34px;
    content: "";
    background: var(--color-white);
    border-right: 3px solid var(--color-black);
    border-bottom: 3px solid var(--color-black);
    transform:
        skewY(-24deg)
        rotate(38deg);
}

.story-intro__speech.is-visible {
    opacity: 1;
    transform:
        translateY(0)
        scale(1)
        rotate(2deg);
}

.story-intro__speech p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.1vw, 34px);
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.story-start-button {
    position: absolute;
    left: 50%;
    bottom: clamp(28px, 6vh, 66px);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-width: 190px;
    min-height: 58px;
    padding: 15px 30px;
    color: var(--color-black);
    background: var(--color-pink);
    border: 2px solid var(--color-white);
    border-radius: var(--radius-pill);
    box-shadow:
        0 7px 0 var(--color-white),
        0 22px 45px rgba(0, 0, 0, .40);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .09em;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform:
        translate(-50%, 24px)
        scale(.94);
    transition:
        color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition),
        opacity 650ms ease,
        transform 650ms cubic-bezier(.2, .8, .2, 1);
}

.story-start-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform:
        translate(-50%, 0)
        scale(1);
}

.story-start-button:hover,
.story-start-button:focus-visible {
    color: var(--color-white);
    background: var(--color-black);
    box-shadow:
        0 9px 0 var(--color-pink),
        0 26px 50px rgba(0, 0, 0, .48);
    transform:
        translate(-50%, -3px)
        scale(1.02);
}

.story-start-button:focus-visible {
    outline: 3px solid var(--color-pink);
    outline-offset: 5px;
}

.story-start-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* =========================================================
   STORY BANNER 1
   Desktop: afbeelding links, tekst rechts
   ========================================================= */

.story-banner {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    color: var(--color-white);
    background: #080808;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition:
        opacity 900ms ease,
        visibility 900ms ease,
        transform 1200ms cubic-bezier(.2, .7, .2, 1);
}

.story-banner[hidden] {
    display: none;
}

.story-banner.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.story-banner--one {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
}

.story-banner__visual {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--color-charcoal);
}

.story-banner__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition:
        opacity 1200ms ease 180ms,
        transform 1800ms cubic-bezier(.2, .7, .2, 1) 180ms;
}

.story-banner.is-active .story-banner__visual img {
    opacity: 1;
    transform: scale(1);
}

.story-banner__visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            transparent 58%,
            rgba(8, 8, 8, .38) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 8, 8, .56) 0%,
            transparent 38%
        );
    pointer-events: none;
}

.story-banner__chapter {
    position: absolute;
    left: clamp(24px, 4vw, 64px);
    bottom: clamp(24px, 4vh, 50px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
}

.story-banner__chapter span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--color-black);
    background: var(--color-pink);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.story-banner__chapter p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.story-banner__content {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    padding:
        clamp(48px, 8vh, 104px)
        clamp(42px, 6vw, 96px)
        clamp(42px, 6vh, 76px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 90% 12%,
            rgba(253, 200, 165, .12),
            transparent 28%
        ),
        #080808;
    flex-direction: column;
    justify-content: center;
}

.story-banner__content::before {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 300px;
    aspect-ratio: 1;
    content: "";
    border: 1px solid rgba(253, 200, 165, .12);
    border-radius: 50%;
    pointer-events: none;
}

.story-banner__content-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 670px);
}

.story-banner__eyebrow {
    margin-bottom: clamp(16px, 2.4vh, 26px);
    color: var(--color-pink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .16em;
}

.story-banner__content h1 {
    max-width: 650px;
    margin-bottom: clamp(34px, 5vh, 58px);
    font-family: var(--font-display);
    font-size: clamp(44px, 5vw, 84px);
    font-weight: 700;
    line-height: .92;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.story-subtitles {
    position: relative;
    height: clamp(180px, 24vh, 230px);
    padding:
        clamp(22px, 3.4vh, 34px)
        clamp(22px, 2.7vw, 38px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    scroll-behavior: auto;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .15);
    border-left: 5px solid var(--color-pink);
    border-radius: 4px 20px 20px 4px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.story-subtitles::-webkit-scrollbar {
    display: none;
}

.story-subtitles::before {
    position: absolute;
    top: -10px;
    left: 22px;
    padding: 4px 10px;
    content: "MOODZ STORY";
    color: var(--color-black);
    background: var(--color-pink);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .12em;
    border-radius: var(--radius-pill);
}

.story-subtitles__label {
    display: none;
}

.story-subtitles__indicator {
    display: block;
    width: 34px;
    height: 3px;
    margin-bottom: 18px;
    background: var(--color-pink);
    border-radius: var(--radius-pill);
}

.story-subtitles__text {
    display: inline;
    margin: 0;
    font-size: clamp(17px, 1.55vw, 24px);
    font-weight: 400;
    line-height: 1.55;
    white-space: pre-line;
}

.story-subtitles__cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 4px;
    vertical-align: -.12em;
    background: var(--color-pink);
    animation: story-cursor-blink .8s steps(1) infinite;
}

.story-subtitles__cursor.is-finished {
    display: none;
}

@keyframes story-cursor-blink {
    50% {
        opacity: 0;
    }
}

.story-next-button {
    position: absolute;
    right: clamp(24px, 3vw, 52px);
    bottom: clamp(22px, 3.5vh, 42px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 13px 22px;
    color: var(--color-black);
    background: var(--color-pink);
    border: 2px solid var(--color-pink);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition:
        color var(--transition),
        background-color var(--transition),
        opacity 500ms ease,
        transform 500ms ease;
}

.story-next-button[hidden] {
    display: none;
}

.story-next-button.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.story-next-button:hover,
.story-next-button:focus-visible {
    color: var(--color-white);
    background: transparent;
}

.story-next-button:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 4px;
}

.story-next-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (min-width: 861px) {
    .story-banner--one {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .story-banner__visual {
        width: auto;
        height: 100%;
        max-width: 46vw;
        aspect-ratio: 2 / 3;
    }

    .story-banner__visual img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        transform: scale(.96);
    }

    .story-banner.is-active .story-banner__visual img {
        transform: scale(1);
    }

    .story-banner__content {
        padding:
            clamp(28px, 4vh, 48px)
            clamp(34px, 4vw, 72px)
            clamp(28px, 4vh, 48px);
    }

    .story-banner__content-inner {
        width: 100%;
        max-width: 950px;
    }

    .story-banner__eyebrow {
        margin-bottom: clamp(12px, 1.8vh, 20px);
    }

    .story-banner__content h1 {
        max-width: none;
        margin-bottom: clamp(18px, 2.6vh, 30px);
        font-size: clamp(20px, 2.4vw, 46px);
        line-height: 1;
        letter-spacing: -.025em;
        white-space: nowrap;
    }

    .story-subtitles {
        height: clamp(280px, 37vh, 380px);
        padding:
            clamp(24px, 3vh, 32px)
            clamp(24px, 2.7vw, 38px)
            clamp(24px, 3vh, 32px);
    }

    .story-subtitles::before {
        content: none;
    }

    .story-subtitles__label {
        display: table;
        margin-bottom: 18px;
        padding: 5px 11px;
        color: var(--color-black);
        background: var(--color-pink);
        font-size: 8px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: .12em;
        border-radius: var(--radius-pill);
    }

    .story-subtitles__indicator {
        margin-bottom: 18px;
    }

    .story-subtitles__text {
        font-size: clamp(17px, 1.4vw, 22px);
        line-height: 1.52;
    }
}

/* =========================================================
   TABLET EN MOBIEL
   ========================================================= */

@media (max-width: 860px) {
    .story-subtitles {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }	
	
    .story-page {
        height: 100dvh;
    }

    .story-experience {
        height: calc(100dvh - var(--top-bars-height));
    }

    .story-intro__character {
        width: clamp(220px, 48vw, 330px);
        margin-top: -28px;
    }

    .story-intro__speech {
        top: clamp(32px, 8vh, 72px);
        left: auto;
        right: clamp(22px, 7vw, 70px);
        width: min(260px, 36vw);
        padding: 18px 22px;
    }

    .story-intro__speech p {
        font-size: clamp(19px, 3.3vw, 28px);
    }

    .story-banner--one {
        grid-template-columns: 1fr;
        grid-template-rows:
            minmax(0, 52%)
            minmax(0, 48%);
    }

    .story-banner__visual-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(8, 8, 8, .55) 0%,
                transparent 46%
            );
    }

    .story-banner__chapter {
        left: 22px;
        bottom: 18px;
    }

    .story-banner__chapter span {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .story-banner__content {
        padding:
            clamp(22px, 3vh, 34px)
            clamp(24px, 5vw, 44px)
            clamp(68px, 9vh, 84px);
        justify-content: flex-start;
    }

    .story-banner__eyebrow {
        margin-bottom: 10px;
        font-size: 9px;
    }

    .story-banner__content h1 {
        margin-bottom: 18px;
        font-size: clamp(34px, 7vw, 56px);
    }

    .story-subtitles {
        height: clamp(145px, 20vh, 175px);
        min-height: 0;
        padding:
            30px
            20px
            20px;
    }

    .story-subtitles__indicator {
        margin-bottom: 12px;
    }

    .story-subtitles__text {
        font-size: clamp(14px, 2.2vw, 18px);
        line-height: 1.45;
    }

    .story-next-button {
        right: 22px;
        bottom: 18px;
    }
}

@media (max-width: 600px) {
    .story-intro__character {
        width: clamp(210px, 62vw, 270px);
        margin-top: -18px;
    }

    .story-intro__speech {
        top: clamp(28px, 6vh, 48px);
        right: 18px;
        width: min(210px, 55vw);
        padding: 16px 17px;
        border-width: 2px;
        box-shadow:
            0 5px 0 var(--color-pink),
            0 18px 36px rgba(0, 0, 0, .35);
    }

    .story-intro__speech::before {
        left: 22px;
        bottom: -23px;
        width: 27px;
        height: 27px;
        border-right-width: 2px;
        border-bottom-width: 2px;
    }

    .story-intro__speech p {
        font-size: clamp(18px, 5.2vw, 23px);
    }

    .story-start-button {
        bottom: max(26px, env(safe-area-inset-bottom));
        min-width: 168px;
        min-height: 52px;
        padding: 13px 25px;
        font-size: 14px;
    }

    .story-banner--one {
        grid-template-rows:
            minmax(0, 48%)
            minmax(0, 52%);
    }

    .story-banner__visual {
        display: grid;
        place-items: center;
        background: #080808;
    }

    .story-banner__visual img {
        width: 92%;
        height: 92%;
        object-fit: contain;
        object-position: center center;
        transform: translateY(-80px);
    }
	
    .story-banner.is-active .story-banner__visual img {
        transform:
            translateY(-80px)
            scale(1);
    }

    .story-banner__chapter {
        left: 16px;
        bottom: 14px;
        gap: 9px;
    }

    .story-banner__chapter span {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }

    .story-banner__chapter p {
        font-size: 9px;
    }

    .story-banner__content {
        padding:
            18px
            18px
            max(70px, calc(56px + env(safe-area-inset-bottom)));
    }

    .story-banner__content h1 {
        width: 100%;
        margin-bottom: 14px;
        font-size: clamp(17px, 4.7vw, 25px);
        line-height: 1;
        letter-spacing: -.025em;
        white-space: nowrap;
    }

    .story-subtitles {
        height: clamp(150px, 21vh, 182px);
        min-height: 0;
        padding:
            30px
            16px
            18px;
        overflow-y: auto;
        border-left-width: 4px;
        border-radius: 3px 15px 15px 3px;
    }

    .story-subtitles::before {
        top: 10px;
        left: 14px;
        font-size: 7px;
    }

    .story-subtitles__indicator {
        width: 26px;
        height: 2px;
        margin-top: 4px;
        margin-bottom: 12px;
    }

    .story-subtitles__text {
        font-size: clamp(13px, 3.7vw, 16px);
        line-height: 1.42;
    }

    .story-next-button {
        right: 16px;
        bottom: max(14px, env(safe-area-inset-bottom));
        min-height: 42px;
        padding: 10px 17px;
        font-size: 10px;
    }

    .story-next-button svg {
        width: 17px;
        height: 17px;
    }
}

    @media (max-width: 390px) {
        .story-banner__content h1 {
            font-size: clamp(15px, 4.35vw, 18px);
        }
    }

/* =========================================================
   STORY BANNER 2 - PREMIUM MATCHA
   ========================================================= */

.story-banner.is-transition-target {
    z-index: 7;
}

.story-banner.is-leaving {
    visibility: visible;
    opacity: 0;
    pointer-events: none;
    transform:
        translateX(-2.5%)
        scale(.99);
}

.story-banner--two.is-leaving {
    transform:
        translateX(2.5%)
        scale(.99);
}

.story-banner--two {
    --matcha-green: #809a46;
    --matcha-green-dark: #4f6529;
    --matcha-cream: #eef0d9;
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(380px, .92fr);
    background: #090b08;
}

.story-banner-two__content {
    grid-column: 1;
    grid-row: 1;
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(128, 154, 70, .17),
            transparent 31%
        ),
        radial-gradient(
            circle at 91% 90%,
            rgba(253, 200, 165, .10),
            transparent 28%
        ),
        #090b08;
}

.story-banner-two__content::before {
    top: auto;
    right: auto;
    bottom: -170px;
    left: -120px;
    width: 360px;
    border-color: rgba(128, 154, 70, .19);
}

.story-banner-two__content-inner {
    width: min(100%, 760px);
}

.story-banner-two__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.story-banner-two__meta .story-banner__eyebrow {
    margin-bottom: 0;
    color: var(--matcha-cream);
}

.story-banner-two__progress {
    margin: 0;
    color: rgba(255, 255, 255, .44);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .16em;
}

.story-banner-two__content h2 {
    max-width: 760px;
    margin:
        clamp(18px, 2.6vh, 28px)
        0
        clamp(24px, 3.6vh, 40px);
    font-family: var(--font-display);
    font-size: clamp(38px, 4.1vw, 72px);
    font-weight: 700;
    line-height: .94;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.story-subtitles--matcha {
    border-left-color: var(--matcha-green);
    background:
        linear-gradient(
            135deg,
            rgba(128, 154, 70, .10),
            rgba(255, 255, 255, .035)
        );
}

.story-subtitles--matcha::before {
    content: "MOODZ MATCHA";
    color: var(--color-white);
    background: var(--matcha-green-dark);
}

.story-subtitles--matcha .story-subtitles__label {
    color: var(--color-white);
    background: var(--matcha-green-dark);
}

.story-subtitles--matcha .story-subtitles__indicator,
.story-subtitles--matcha .story-subtitles__cursor {
    background: var(--matcha-green);
}

.story-next-button--back {
    right: auto;
    left: clamp(24px, 3vw, 52px);
    color: var(--color-white);
    background: transparent;
    border-color: rgba(255, 255, 255, .28);
}

.story-next-button--back:hover,
.story-next-button--back:focus-visible {
    color: var(--color-black);
    background: var(--matcha-cream);
    border-color: var(--matcha-cream);
}

.story-banner-two__visual {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 50% 44%,
            rgba(255, 255, 255, .68),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #f7f5e9 0%,
            var(--matcha-cream) 48%,
            #c9d39b 100%
        );
}

.story-banner-two__visual::before,
.story-banner-two__visual::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.story-banner-two__visual::before {
    top: -14%;
    right: -20%;
    width: 62%;
    aspect-ratio: 1;
    border: 1px solid rgba(79, 101, 41, .24);
}

.story-banner-two__visual::after {
    right: -10%;
    bottom: -18%;
    width: 72%;
    aspect-ratio: 1;
    background: rgba(79, 101, 41, .12);
}

.story-banner-two__visual img {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: min(76%, 650px);
    height: min(78%, 760px);
    margin: 0;
    object-fit: contain;
    object-position: center;
    filter:
        drop-shadow(0 34px 34px rgba(54, 67, 31, .28))
        drop-shadow(0 10px 12px rgba(0, 0, 0, .12));
    opacity: 0;
    transform:
        translate(-50%, calc(-50% + 34px))
        rotate(-2deg)
        scale(.92);
    transition:
        opacity 1000ms ease 180ms,
        transform 1500ms cubic-bezier(.2, .75, .2, 1) 180ms;
}

.story-banner--two.is-active .story-banner-two__visual img {
    opacity: 1;
    transform:
        translate(-50%, -50%)
        rotate(0)
        scale(1);
}

.story-banner-two__word {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    margin: 0;
    color: rgba(79, 101, 41, .105);
    font-family: var(--font-display);
    font-size: clamp(82px, 10vw, 180px);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.06em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform:
        translate(-50%, -50%)
        rotate(180deg);
    user-select: none;
}

.story-banner-two__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: min(58%, 500px);
    aspect-ratio: 1;
    border: 1px solid rgba(79, 101, 41, .20);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(255, 255, 255, .10),
        0 0 0 68px rgba(79, 101, 41, .055);
    transform: translate(-50%, -50%);
}

.story-banner-two__seal {
    position: absolute;
    top: clamp(24px, 4vh, 48px);
    right: clamp(22px, 3vw, 44px);
    z-index: 4;
    display: grid;
    width: clamp(92px, 8vw, 126px);
    aspect-ratio: 1;
    place-content: center;
    color: var(--color-white);
    background: var(--matcha-green-dark);
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    box-shadow:
        0 0 0 6px rgba(79, 101, 41, .16),
        0 18px 34px rgba(54, 67, 31, .24);
    text-align: center;
    transform: rotate(7deg);
}

.story-banner-two__seal span,
.story-banner-two__seal small {
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .13em;
}

.story-banner-two__seal strong {
    margin: 5px 0 4px;
    font-family: var(--font-display);
    font-size: clamp(16px, 1.45vw, 23px);
    line-height: .9;
    letter-spacing: -.02em;
}

.story-banner-two__overlay {
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(9, 11, 8, .18) 0%,
            transparent 18%
        ),
        linear-gradient(
            0deg,
            rgba(35, 46, 19, .24) 0%,
            transparent 28%
        );
}

.story-banner-two__chapter {
    color: var(--color-black);
}

.story-banner-two__chapter span {
    color: var(--color-white);
    background: var(--matcha-green-dark);
}

@media (min-width: 861px) {
    .story-banner--two .story-banner__visual {
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
    }

    .story-banner--two .story-banner__content {
        padding:
            clamp(34px, 5vh, 58px)
            clamp(34px, 4vw, 70px)
            clamp(76px, 9vh, 104px);
    }

    .story-banner--two .story-banner__content-inner {
        width: 100%;
        max-width: none;
    }

    .story-banner--two .story-banner-two__content h2 {
        width: 100%;
        max-width: none;
        margin:
            clamp(18px, 2.6vh, 28px)
            0
            clamp(24px, 3.6vh, 40px);
        font-size: clamp(20px, 2.1vw, 42px);
        line-height: 1;
        letter-spacing: -.045em;
        white-space: nowrap;
    }

    .story-banner--two .story-subtitles {
        height: clamp(280px, 37vh, 380px);
    }

    .story-banner--two .story-subtitles--matcha::before {
        display: none;
        content: none;
    }

    .story-banner--two .story-subtitles--matcha .story-subtitles__label {
        display: table;
    }

    .story-banner--two .story-banner-two__word {
        top: 50%;
        left: 50%;
        font-size: clamp(64px, 7vw, 132px);
        line-height: .8;
        letter-spacing: -.065em;
        white-space: nowrap;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 860px) {
    .story-banner--two {
        grid-template-columns: 1fr;
        grid-template-rows:
            minmax(0, 48%)
            minmax(0, 52%);
        grid-template-areas:
            "visual"
            "content";
    }

    .story-banner-two__visual {
        grid-area: visual;
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
    }

    .story-banner-two__content {
        grid-area: content;
        padding:
            clamp(20px, 2.7vh, 30px)
            clamp(24px, 5vw, 44px)
            clamp(70px, 9vh, 86px);
        justify-content: flex-start;
    }

    .story-banner-two__content h2 {
        margin:
            12px
            0
            16px;
        font-size: clamp(29px, 5.6vw, 46px);
        line-height: .94;
    }

    .story-subtitles--matcha::before {
        top: 10px;
        left: 18px;
    }

    .story-banner-two__visual img {
        width: min(66%, 430px);
        height: 76%;
        transform:
            translate(-50%, calc(-50% + 26px))
            rotate(-2deg)
            scale(.92);
    }

    .story-banner-two__word {
        font-size: clamp(76px, 17vw, 135px);
        writing-mode: horizontal-tb;
        transform: translate(-50%, -50%);
    }

    .story-banner-two__halo {
        width: min(45%, 320px);
    }

    .story-banner-two__seal {
        top: 16px;
        right: 20px;
        width: clamp(76px, 14vw, 96px);
    }

    .story-banner-two__chapter {
        left: 22px;
        bottom: 18px;
    }

    .story-next-button--back {
        right: auto;
        left: 22px;
        bottom: 18px;
    }
}

@media (max-width: 600px) {
    .story-banner--two {
        grid-template-rows:
            minmax(0, 44%)
            minmax(0, 56%);
    }

    .story-banner-two__content {
        padding:
            16px
            18px
            max(68px, calc(54px + env(safe-area-inset-bottom)));
    }

    .story-banner-two__meta {
        gap: 10px;
    }

    .story-banner-two__progress {
        font-size: 8px;
    }

    .story-banner-two__content h2 {
        width: 100%;
        margin:
            10px
            0
            13px;
        font-size: clamp(15px, 4.35vw, 22px);
        line-height: 1;
        letter-spacing: -.035em;
        white-space: nowrap;
    }

    .story-banner-two__visual img {
        width: 72%;
        height: 78%;
        transform:
            translate(-50%, calc(-50% + 20px))
            rotate(-2deg)
            scale(.92);
    }

    .story-banner--two.is-active .story-banner-two__visual img {
        transform:
            translate(-50%, -50%)
            rotate(0)
            scale(1);
    }

    .story-banner-two__word {
        font-size: clamp(64px, 20vw, 96px);
    }

    .story-banner-two__halo {
        width: min(46%, 220px);
        box-shadow:
            0 0 0 22px rgba(255, 255, 255, .10),
            0 0 0 44px rgba(79, 101, 41, .055);
    }

    .story-banner-two__seal {
        top: 12px;
        right: 14px;
        width: 68px;
        border-width: 1px;
    }

    .story-banner-two__seal span,
    .story-banner-two__seal small {
        font-size: 6px;
    }

    .story-banner-two__seal strong {
        margin: 4px 0 3px;
        font-size: 14px;
    }

    .story-banner-two__chapter {
        left: 16px;
        bottom: 13px;
    }

    .story-next-button--back {
        left: 16px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }
}

/* =========================================================
   STORY BANNER 3 - ESPRESSO MACHINE
   ========================================================= */

.story-banner--two .story-next-button--matcha:hover,
.story-banner--two .story-next-button--matcha:focus-visible {
    color: var(--color-black);
    background: var(--matcha-cream);
    border-color: var(--matcha-cream);
}

.story-banner--three {
    --machine-dark: #090a0c;
    --machine-graphite: #181b20;
    --machine-steel: #e4e8ec;
    --machine-steel-soft: #bbc4cc;
    --machine-accent: #b98a5e;
    display: grid;
    grid-template-columns:
        minmax(400px, .98fr)
        minmax(0, 1.02fr);
    background: var(--machine-dark);
}

.story-banner-three__visual {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 48% 45%,
            rgba(255, 255, 255, .13),
            transparent 27%
        ),
        radial-gradient(
            circle at 14% 16%,
            rgba(185, 138, 94, .14),
            transparent 23%
        ),
        linear-gradient(
            145deg,
            #0f1115 0%,
            #171b20 54%,
            #0a0c10 100%
        );
}

.story-banner-three__visual::before,
.story-banner-three__visual::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.story-banner-three__visual::before {
    top: -14%;
    left: -16%;
    width: 56%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .10);
}

.story-banner-three__visual::after {
    right: -12%;
    bottom: -18%;
    width: 62%;
    aspect-ratio: 1;
    background: rgba(185, 138, 94, .08);
}

.story-banner-three__word {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    margin: 0;
    color: rgba(255, 255, 255, .055);
    font-family: var(--font-display);
    font-size: clamp(78px, 9vw, 168px);
    font-weight: 700;
    line-height: .82;
    letter-spacing: .08em;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    user-select: none;
}

.story-banner-three__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: min(60%, 520px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 28px rgba(255, 255, 255, .035),
        0 0 0 56px rgba(185, 138, 94, .06);
    transform: translate(-50%, -50%);
}

.story-banner-three__visual img {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: min(84%, 780px);
    height: min(82%, 820px);
    margin: 0;
    object-fit: contain;
    object-position: center;
    filter:
        drop-shadow(0 32px 34px rgba(0, 0, 0, .40))
        drop-shadow(0 10px 14px rgba(0, 0, 0, .18));
    opacity: 0;
    transform:
        translate(-50%, calc(-50% + 34px))
        scale(.92);
    transition:
        opacity 1000ms ease 180ms,
        transform 1500ms cubic-bezier(.2, .75, .2, 1) 180ms;
}

.story-banner--three.is-active .story-banner-three__visual img {
    opacity: 1;
    transform:
        translate(-50%, -50%)
        scale(1);
}

.story-banner-three__specs {
    position: absolute;
    top: clamp(22px, 4vh, 44px);
    right: clamp(18px, 3vw, 38px);
    z-index: 4;
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(8, 10, 12, .72);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.story-banner-three__specs span {
    color: var(--machine-steel);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .13em;
    white-space: nowrap;
}

.story-banner-three__overlay {
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(9, 10, 12, .15) 0%,
            transparent 18%
        ),
        linear-gradient(
            0deg,
            rgba(9, 10, 12, .34) 0%,
            transparent 26%
        );
}

.story-banner-three__chapter span {
    color: var(--color-black);
    background: var(--machine-steel);
}

.story-banner-three__content {
    grid-column: 2;
    grid-row: 1;
    background:
        radial-gradient(
            circle at 10% 14%,
            rgba(185, 138, 94, .14),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 88%,
            rgba(255, 255, 255, .05),
            transparent 24%
        ),
        #090a0c;
}

.story-banner-three__content::before {
    top: auto;
    left: auto;
    right: -110px;
    bottom: -160px;
    width: 340px;
    border-color: rgba(185, 138, 94, .16);
}

.story-banner-three__content-inner {
    width: min(100%, 760px);
}

.story-banner-three__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.story-banner-three__meta .story-banner__eyebrow {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .78);
}

.story-banner-three__progress {
    margin: 0;
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .16em;
}

.story-banner-three__content h2 {
    max-width: none;
    margin:
        clamp(18px, 2.6vh, 28px)
        0
        clamp(24px, 3.6vh, 40px);
    font-family: var(--font-display);
    font-size: clamp(34px, 3.5vw, 58px);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.story-subtitles--machine {
    border-left-color: var(--machine-accent);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .05),
            rgba(185, 138, 94, .07)
        );
}

.story-subtitles--machine::before {
    content: "MOODZ MACHINE";
    color: var(--color-black);
    background: var(--machine-steel);
}

.story-subtitles--machine .story-subtitles__label {
    color: var(--color-black);
    background: var(--machine-steel);
}

.story-subtitles--machine .story-subtitles__indicator,
.story-subtitles--machine .story-subtitles__cursor {
    background: var(--machine-accent);
}

.story-banner--three .story-next-button {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, .26);
}

.story-banner--three .story-next-button:hover,
.story-banner--three .story-next-button:focus-visible {
    color: var(--color-black);
    background: var(--machine-steel);
    border-color: var(--machine-steel);
}

@media (min-width: 861px) {
    .story-banner--three .story-banner__visual {
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
    }

    .story-banner--three .story-banner__content {
        padding:
            clamp(34px, 5vh, 58px)
            clamp(36px, 4.2vw, 74px)
            clamp(76px, 9vh, 104px);
    }

    .story-banner--three .story-banner__content-inner {
        width: 100%;
        max-width: none;
    }

    .story-banner--three .story-banner-three__content h2 {
        width: 100%;
        max-width: none;
        font-size: clamp(19px, 1.95vw, 38px);
        line-height: 1;
        letter-spacing: -.045em;
        white-space: nowrap;
    }

    .story-banner--three .story-subtitles {
        height: clamp(280px, 37vh, 380px);
    }

    .story-banner--three .story-subtitles--machine::before {
        display: none;
        content: none;
    }

    .story-banner--three .story-subtitles--machine .story-subtitles__label {
        display: table;
    }
}

@media (max-width: 860px) {
    .story-banner--three {
        grid-template-columns: 1fr;
        grid-template-rows:
            minmax(0, 47%)
            minmax(0, 53%);
        grid-template-areas:
            "visual"
            "content";
    }

    .story-banner-three__visual {
        grid-area: visual;
    }

    .story-banner-three__content {
        grid-area: content;
        padding:
            clamp(20px, 2.7vh, 30px)
            clamp(24px, 5vw, 44px)
            clamp(70px, 9vh, 86px);
        justify-content: flex-start;
    }

    .story-banner-three__content h2 {
        margin:
            12px
            0
            16px;
        font-size: clamp(22px, 4.7vw, 34px);
        line-height: 1;
        letter-spacing: -.04em;
        white-space: nowrap;
    }

    .story-subtitles--machine::before {
        top: 10px;
        left: 18px;
    }

    .story-banner-three__visual img {
        width: min(74%, 500px);
        height: 78%;
        transform:
            translate(-50%, calc(-50% + 24px))
            scale(.92);
    }

    .story-banner-three__word {
        font-size: clamp(60px, 12vw, 116px);
    }

    .story-banner-three__glow {
        width: min(46%, 320px);
    }

    .story-banner-three__specs {
        top: 16px;
        right: 18px;
        gap: 6px;
        padding: 11px 12px;
    }

    .story-banner-three__specs span {
        font-size: 7px;
    }

    .story-banner-three__chapter {
        left: 22px;
        bottom: 18px;
    }

    .story-banner--three .story-next-button--back {
        right: auto;
        left: 22px;
        bottom: 18px;
    }
}

@media (max-width: 600px) {
    .story-banner--three {
        grid-template-rows:
            minmax(0, 44%)
            minmax(0, 56%);
    }

    .story-banner-three__content {
        padding:
            16px
            18px
            max(68px, calc(54px + env(safe-area-inset-bottom)));
    }

    .story-banner-three__meta {
        gap: 10px;
    }

    .story-banner-three__progress {
        font-size: 8px;
    }

    .story-banner-three__content h2 {
        width: 100%;
        margin:
            10px
            0
            13px;
        font-size: clamp(14px, 4.05vw, 18px);
        line-height: 1;
        letter-spacing: -.04em;
        white-space: nowrap;
    }

    .story-banner-three__visual img {
        width: 78%;
        height: 78%;
        transform:
            translate(-50%, calc(-50% + 18px))
            scale(.92);
    }

    .story-banner--three.is-active .story-banner-three__visual img {
        transform:
            translate(-50%, -50%)
            scale(1);
    }

    .story-banner-three__word {
        font-size: clamp(54px, 17vw, 82px);
        letter-spacing: .06em;
    }

    .story-banner-three__glow {
        width: min(48%, 220px);
        box-shadow:
            0 0 0 20px rgba(255, 255, 255, .03),
            0 0 0 40px rgba(185, 138, 94, .05);
    }

    .story-banner-three__specs {
        top: 12px;
        right: 14px;
        gap: 5px;
        padding: 9px 10px;
        border-radius: 14px;
    }

    .story-banner-three__specs span {
        font-size: 6px;
    }

    .story-banner-three__chapter {
        left: 16px;
        bottom: 13px;
    }

    .story-banner--three .story-next-button--back {
        left: 16px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-intro__character,
    .story-intro__speech,
    .story-start-button,
    .story-banner,
    .story-banner__visual img,
    .story-next-button {
        transition-duration: .01ms !important;
    }

    .story-subtitles__cursor {
        animation: none;
    }
}