html, body.story-page {
    height: auto !important;
    min-height: 100%;
}

body.story-page {
    background-image: none !important;
    background: #0a0a0f !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

body.story-page::before {
    display: none !important;
}

.story-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 80px;
    margin-top: 0;
    overflow: hidden;
    isolation: isolate;
}

.story-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.story-hero__bg-img {
    position: absolute;
    inset: 0;
    background-image: url('img/heroStory.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: heroBgFloat 22s ease-in-out infinite alternate;
    filter: saturate(0.9) contrast(1.05) brightness(0.85);
    will-change: transform, filter;
}

@keyframes heroBgFloat {
    0% {
        transform: scale(1.05) translate(-1%, -1%);
        filter: saturate(0.9) contrast(1.05) brightness(0.8);
    }
    100% {
        transform: scale(1.12) translate(1.5%, 1%);
        filter: saturate(1) contrast(1.08) brightness(0.95);
    }
}

.story-hero__bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center,
            rgba(10, 10, 15, 0.25) 0%,
            rgba(10, 10, 15, 0.55) 60%,
            rgba(10, 10, 15, 0.85) 100%),
        linear-gradient(180deg,
            rgba(10, 10, 15, 0.4) 0%,
            rgba(10, 10, 15, 0.15) 30%,
            rgba(10, 10, 15, 0.5) 80%,
            #0a0a0f 100%);
}

.story-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform;
    mix-blend-mode: screen;
}

.story-hero__orb--1 {
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.5), transparent 70%);
    top: -220px;
    right: -180px;
    animation: storyOrb1 16s ease-in-out infinite alternate;
}

.story-hero__orb--2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(137, 170, 204, 0.4), transparent 70%);
    bottom: -180px;
    left: -140px;
    opacity: 0.25;
    animation: storyOrb2 20s ease-in-out infinite alternate;
}

@keyframes storyOrb1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 120px) scale(1.3); }
}

@keyframes storyOrb2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, -90px) scale(1.25); }
}

.story-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(137, 170, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(137, 170, 204, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    opacity: 0.6;
}

.story-hero__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.story-hero__title {
    font-size: clamp(2.4rem, 6.5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    color: #ffffff;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.story-hero__line {
    display: block;
}

.story-hero__line--accent {
    background: linear-gradient(135deg, #ffffff 20%, #89AACC 60%, #6C63FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.05em;
    filter: drop-shadow(0 4px 30px rgba(108, 99, 255, 0.4));
}

.story-hero__desc {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto 60px;
    font-weight: 300;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.story-hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounceStory 2.5s ease-in-out infinite;
}

@keyframes scrollBounceStory {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

.story-hero__scroll-line {
    display: block;
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}

.chapter {
    position: relative;
    padding: 130px 0;
    background: #0a0a0f;
}

.chapter--cta-only {
    padding: 40px 0 130px;
    background: #0a0a0f;
}

.chapter--cta-only .container {
    display: flex;
    justify-content: center;
}

.chapter--cta-only .story-cta__box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.chapter__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.chapter--reverse .chapter__visual { order: 2; }
.chapter--reverse .chapter__content { order: 1; }

.chapter__visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chapter__label {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(137, 170, 204, 0.06);
    border: 1px solid rgba(137, 170, 204, 0.18);
    font-size: 0.7rem;
    font-weight: 600;
    color: #89AACC;
    letter-spacing: 3px;
    text-transform: uppercase;
    align-self: flex-start;
}

.chapter__title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

.chapter__title--accent {
    background: linear-gradient(135deg, #89AACC, #6C63FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chapter__media {
    width: 100%;
}

.chapter__media-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    aspect-ratio: 4 / 3;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(108, 99, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.chapter__media-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(137, 170, 204, 0.6), transparent);
    z-index: 3;
    opacity: 0.8;
}

.chapter__media-frame:hover {
    transform: translateY(-6px) scale(1.008);
    border-color: rgba(137, 170, 204, 0.22);
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.55),
        0 0 90px rgba(108, 99, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chapter__media-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chapter__media-frame:hover .chapter__media-img {
    transform: scale(1.04);
}

.chapter__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.05) 0%,
        rgba(10, 10, 15, 0.15) 70%,
        rgba(10, 10, 15, 0.4) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.chapter__content {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-top: 90px;
}

.chapter__text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 2.1;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.2px;
    text-align: justify;
}

.chapter__text strong {
    color: #89AACC;
    font-weight: 600;
}

.story-cta__box {
    position: relative;
    padding: 80px 50px;
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(137, 170, 204, 0.08);
    isolation: isolate;
    max-width: 900px;
    margin: 0 auto;
}

.story-cta__glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.15), rgba(137, 170, 204, 0.05));
    filter: blur(80px);
    pointer-events: none;
    animation: glowDanceStory 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes glowDanceStory {
    0% { transform: translate(-10%, -10%) scale(1); opacity: 0.6; }
    100% { transform: translate(10%, 10%) scale(1.2); opacity: 1; }
}

.story-cta__content { position: relative; z-index: 1; }

.story-cta__badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    border: 1px solid rgba(137, 170, 204, 0.15);
    font-size: 0.78rem;
    font-weight: 600;
    color: #89AACC;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(137, 170, 204, 0.05);
    backdrop-filter: blur(4px);
}

.story-cta__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.story-cta__highlight {
    background: linear-gradient(135deg, #89AACC, #6C63FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-cta__desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.02rem;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.8;
    font-weight: 300;
}

.story-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.story-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 42px;
    border-radius: 60px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.story-cta__btn--primary {
    background: linear-gradient(135deg, #6C63FF, #3f37c9);
    color: #ffffff;
    box-shadow: 0 4px 30px rgba(108, 99, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.story-cta__btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    border-radius: 60px;
}

.story-cta__btn--primary:hover::before { transform: translateX(100%); }

.story-cta__btn--primary:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 50px rgba(108, 99, 255, 0.4);
}

.story-cta__btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-cta__btn--ghost:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    transform: scale(1.03);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.no-js [data-reveal] {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .chapter__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chapter--reverse .chapter__visual,
    .chapter--reverse .chapter__content {
        order: initial;
    }

    .chapter__content {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    body.story-page {
        padding-top: 0 !important;
    }

    .story-hero__bg-img {
        background-image: url('img//background3.png');
    }

    .story-hero {
        min-height: 90vh;
        padding: 110px 16px 60px;
    }

    .story-hero__title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .story-hero__desc {
        margin-bottom: 40px;
    }

    .chapter {
        padding: 80px 0;
    }

    .chapter--cta-only {
        padding: 30px 0 100px;
    }

    .chapter__layout {
        gap: 32px;
    }

    .chapter__visual {
        align-items: center;
        text-align: center;
    }

    .chapter__label {
        align-self: center;
    }

    .chapter__title {
        text-align: center;
    }

    .chapter__content {
        align-items: center;
        text-align: center;
    }

    .chapter__text {
        text-align: center;
    }

    .chapter__label {
        font-size: 0.62rem;
        letter-spacing: 2px;
        padding: 5px 14px;
    }

    .chapter__title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        white-space: nowrap;
    }

    .chapter__text {
        font-size: 0.98rem;
        line-height: 2;
    }

    .chapter__media-frame {
        border-radius: 18px;
        aspect-ratio: 4 / 3;
    }

    .story-cta__box {
        padding: 60px 24px;
        border-radius: 20px;
    }

    .story-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body.story-page {
        padding-top: 0 !important;
    }

    .story-hero__title {
        font-size: 1.85rem;
    }

    .chapter {
        padding: 60px 0;
    }

    .chapter__title {
        font-size: 1.3rem;
        white-space: nowrap;
    }

    .chapter__media-frame {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-hero__bg-img,
    .story-hero__orb,
    .story-hero__scroll,
    .story-cta__glow {
        animation: none !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .chapter__media-frame,
    .chapter__media-img {
        transition: none !important;
    }
}