.ivy-story,
.ivy-story * {
    box-sizing: border-box;
}

.ivy-story {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    --ivy-frame-vh: 100vh;
}

.ivy-story__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.ivy-story__header {
    position: absolute;
    top: 20px;
    left: min(32px, 4vw);
    right: min(32px, 4vw);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    pointer-events: none;
}

.ivy-story__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    backdrop-filter: blur(14px);
    background: rgba(10, 14, 24, .42);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
    font-size: 13px;
    line-height: 1;
    letter-spacing: .03em;
}

.ivy-story__progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    backdrop-filter: blur(14px);
    background: rgba(10, 14, 24, .42);
    border: 1px solid rgba(255,255,255,.12);
    pointer-events: auto;
}

.ivy-story__dot {
    appearance: none;
    border: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    padding: 0;
    transition: transform .25s ease, background .25s ease, opacity .25s ease;
}

.ivy-story__dot.is-active {
    background: #fff;
    transform: scale(1.18);
}

.ivy-story__viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.ivy-story__frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(42px) scale(1.02);
    transition: opacity .65s ease, transform .8s cubic-bezier(.22,.61,.36,1), visibility .65s ease;
    visibility: hidden;
    pointer-events: none;
    isolation: isolate;
}

.ivy-story__frame.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.ivy-story__background,
.ivy-story__shade {
    position: absolute;
    inset: 0;
}

.ivy-story__background {
    background-image: var(--ivy-bg-image), linear-gradient(135deg, #09111f 0%, #14234a 45%, #09111f 100%);
    background-size: cover;
    background-position: center center;
    transform: scale(1.03);
}

.ivy-story__shade {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.14), transparent 30%),
        linear-gradient(180deg, rgba(5,8,14,.08) 0%, rgba(5,8,14,var(--ivy-overlay, .45)) 100%);
    z-index: 1;
}

.ivy-story__frame--midnight .ivy-story__background {
    background-image: var(--ivy-bg-image), radial-gradient(circle at top left, rgba(122,148,255,.35), transparent 34%), linear-gradient(135deg, #08101d 0%, #121f3c 44%, #070d19 100%);
}

.ivy-story__frame--cosmic .ivy-story__background {
    background-image: var(--ivy-bg-image), radial-gradient(circle at 20% 20%, rgba(76,124,255,.45), transparent 30%), linear-gradient(135deg, #060c17 0%, #0f1f56 50%, #0a1020 100%);
}

.ivy-story__frame--violet .ivy-story__background {
    background-image: var(--ivy-bg-image), radial-gradient(circle at 78% 18%, rgba(181,118,255,.38), transparent 34%), linear-gradient(135deg, #140c22 0%, #281249 48%, #110919 100%);
}

.ivy-story__frame--emerald .ivy-story__background {
    background-image: var(--ivy-bg-image), radial-gradient(circle at 18% 20%, rgba(96,230,186,.34), transparent 34%), linear-gradient(135deg, #071915 0%, #0e3b33 48%, #07140f 100%);
}

.ivy-story__frame--sunset .ivy-story__background {
    background-image: var(--ivy-bg-image), radial-gradient(circle at 82% 22%, rgba(255,168,138,.34), transparent 34%), linear-gradient(135deg, #1f1011 0%, #512634 52%, #170a0f 100%);
}

.ivy-story__frame--steel .ivy-story__background {
    background-image: var(--ivy-bg-image), radial-gradient(circle at 12% 16%, rgba(255,255,255,.35), transparent 28%), linear-gradient(135deg, #e7ecf5 0%, #cfd8e6 54%, #e9eef8 100%);
}

.ivy-story__inner {
    position: relative;
    z-index: 3;
    display: grid;
    align-items: center;
    width: min(1320px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    padding: clamp(92px, 12vh, 140px) 0 clamp(40px, 7vh, 72px);
}

.ivy-story__content-shell {
    width: min(760px, 100%);
    padding: clamp(24px, 4vw, 40px);
    border-radius: 28px;
    background: rgba(9, 13, 21, .26);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 30px 80px rgba(0,0,0,.24);
    backdrop-filter: blur(10px);
}

.theme-light .ivy-story__content-shell {
    background: rgba(255,255,255,.72);
    border-color: rgba(12,18,32,.08);
    box-shadow: 0 24px 70px rgba(25,39,61,.16);
}

.ivy-story__eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .82;
    font-weight: 700;
}

.ivy-story__headline {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 4.9rem);
    line-height: .98;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.ivy-story__subheadline {
    margin: 0 0 22px;
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    line-height: 1.65;
    max-width: 62ch;
    opacity: .94;
}

.ivy-story__bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.ivy-story__bullets li {
    position: relative;
    min-height: 100%;
    padding: 14px 14px 14px 42px;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.09);
    line-height: 1.45;
}

.ivy-story__bullets li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    opacity: .88;
}

.theme-light .ivy-story__bullets li {
    background: rgba(255,255,255,.58);
    border-color: rgba(12,18,32,.08);
}

.ivy-story__body {
    font-size: .98rem;
    line-height: 1.75;
    opacity: .9;
}

.ivy-story__actions {
    margin-top: 24px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ivy-story__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: #fff;
    color: #0b1322;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -.01em;
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ivy-story__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(0,0,0,.24);
}

.theme-light {
    color: #10192b;
}

.theme-light .ivy-story__kicker,
.theme-light .ivy-story__progress {
    color: #fff;
}

.ivy-story__elementor {
    width: 100%;
}

.ivy-story__elementor > *:last-child {
    margin-bottom: 0;
}

.ivy-story__steps {
    position: relative;
    z-index: 0;
}

.ivy-story__step {
    height: var(--ivy-frame-vh);
}

@media (max-width: 1024px) {
    .ivy-story__header {
        top: 14px;
        left: 14px;
        right: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .ivy-story__progress {
        justify-content: center;
    }

    .ivy-story__inner {
        width: min(100%, calc(100% - 24px));
    }

    .ivy-story__content-shell {
        width: 100%;
        padding: 24px;
    }

    .ivy-story__headline {
        font-size: clamp(1.9rem, 7vw, 3.2rem);
    }
}

@media (max-width: 767px) {
    .ivy-story__sticky {
        position: relative;
        top: auto;
        height: auto;
        overflow: visible;
    }

    .ivy-story__header {
        position: relative;
        padding: 14px 14px 0;
        left: auto;
        right: auto;
        top: auto;
    }

    .ivy-story__viewport {
        display: grid;
        gap: 14px;
        padding: 14px;
    }

    .ivy-story__frame,
    .ivy-story__frame.is-active {
        position: relative;
        inset: auto;
        min-height: 72vh;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,.2);
    }

    .ivy-story__inner {
        width: 100%;
        min-height: 72vh;
        padding: 80px 16px 22px;
    }

    .ivy-story__content-shell {
        padding: 20px;
    }

    .ivy-story__steps {
        display: none;
    }
}
