
/* =========================================================
   LAVISH SCROLL EXPERIENCE
   Scoped to [lavish_scroll]
   ========================================================= */

.lavish-scroll-page,
.lavish-scroll-page * {
    box-sizing: border-box;
}

.lavish-scroll-page {
    position: relative;
    width: 100vw;
    height: 200vh;
    margin-left: calc(50% - 50vw);
    padding: 0;
    overflow: visible;
    background: #fff;
}

.lavish-scroll-stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #fff;
    isolation: isolate;
}

/* -------------------------
   MAIN VIDEO
   ------------------------- */
.lavish-main {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: 82%;
    height: 68%;
    transform: translate3d(-50%, -50%, 0);
    transform-origin: center center;
    overflow: hidden;
    background: #000;
    will-change: width, height, transform;
    transition:
        width 900ms cubic-bezier(.22, 1, .36, 1),
        height 900ms cubic-bezier(.22, 1, .36, 1);
}

.lavish-main-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lavish-main-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.08),
        rgba(0,0,0,.28)
    );
    pointer-events: none;
}

.lavish-main-content {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    transition: opacity 500ms ease, transform 700ms cubic-bezier(.22,1,.36,1);
}

.lavish-small-title {
    margin-bottom: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 3px;
    font-weight: 500;
    color: #fff;
}

.lavish-main-content h1 {
    margin: 0;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.lavish-main-button {
    display: inline-block;
    margin-top: 28px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255,255,255,.9);
    color: #fff !important;
    text-decoration: none !important;
    font: 400 14px/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: .5px;
    transition: opacity .3s ease, transform .3s ease;
}

.lavish-main-button:hover {
    opacity: .75;
    transform: translateY(-2px);
}

/* -------------------------
   PLAY / PAUSE
   ------------------------- */
.lavish-play-button {
    position: absolute;
    z-index: 20;
    left: 25px;
    bottom: 25px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: background .3s ease, transform .3s ease;
}

.lavish-play-button:hover {
    background: rgba(0,0,0,.65);
    transform: scale(1.08);
}

.lavish-play {
    display: none;
}

.lavish-pause {
    display: inline;
}

/* -------------------------
   SIDE BANNERS
   ------------------------- */
.lavish-side {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 29%;
    height: 72%;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    text-decoration: none !important;
    will-change: transform, opacity;
    transition:
        transform 900ms cubic-bezier(.22,1,.36,1),
        opacity 650ms ease,
        visibility 0s linear 900ms;
}

.lavish-left {
    left: 2.5%;
    transform: translate3d(0, 110vh, 0) translateY(-50%);
}

.lavish-right {
    right: 2.5%;
    transform: translate3d(0, 110vh, 0) translateY(-50%);
}

.lavish-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lavish-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.42),
        rgba(0,0,0,.05)
    );
    pointer-events: none;
}

.lavish-side-content {
    position: absolute;
    left: 50%;
    bottom: 35px;
    width: 90%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
}

.lavish-side-content h2 {
    margin: 0 0 12px;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1.1;
    font-weight: 400;
    white-space: nowrap;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.lavish-side-content span {
    color: #fff;
    font: 400 12px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,.8);
    padding-bottom: 5px;
}

/* -------------------------
   3-COLUMN STATE
   ------------------------- */
.lavish-scroll-page.is-scrolled .lavish-main {
    width: 29%;
    height: 72%;
}

.lavish-scroll-page.is-scrolled .lavish-left,
.lavish-scroll-page.is-scrolled .lavish-right {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -50%, 0);
    transition:
        transform 900ms cubic-bezier(.22,1,.36,1),
        opacity 650ms ease,
        visibility 0s;
}

.lavish-scroll-page.is-scrolled .lavish-main-content {
    transform: translate(-50%, -50%) scale(.98);
}

.lavish-scroll-page.is-scrolled .lavish-play-button {
    left: 18px;
    bottom: 18px;
}

/* -------------------------
   HINT
   ------------------------- */
.lavish-scroll-hint {
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
    font: 400 9px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 2px;
    pointer-events: none;
    transition: opacity 350ms ease;
}

.lavish-scroll-hint-line {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,.8);
}

.lavish-scroll-page.is-scrolled .lavish-scroll-hint {
    opacity: 0;
}

/* =========================================================
   MOBILE
   The scroll transition remains one wheel/touch step.
   ========================================================= */
@media (max-width: 768px) {
    .lavish-scroll-page {
        width: 100%;
        height: 200vh;
        margin-left: 0;
    }

    .lavish-scroll-stage {
        height: 100vh;
    }

    .lavish-main {
        width: 92%;
        height: 76%;
    }

    .lavish-main-content h1 {
        font-size: 34px;
    }

    .lavish-small-title {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .lavish-main-button {
        margin-top: 22px;
        font-size: 12px;
    }

    .lavish-play-button {
        left: 18px;
        bottom: 18px;
        width: 36px;
        height: 36px;
    }

    .lavish-side {
        width: 30%;
        height: 68%;
    }

    .lavish-left {
        left: 1.5%;
    }

    .lavish-right {
        right: 1.5%;
    }

    .lavish-side-content h2 {
        font-size: 14px;
        white-space: normal;
    }

    .lavish-side-content span {
        font-size: 10px;
    }

    .lavish-scroll-page.is-scrolled .lavish-main {
        width: 30%;
        height: 68%;
    }

    .lavish-scroll-page.is-scrolled .lavish-play-button {
        left: 10px;
        bottom: 10px;
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lavish-main,
    .lavish-side,
    .lavish-main-content,
    .lavish-play-button,
    .lavish-scroll-hint {
        transition-duration: 1ms !important;
    }
}
