.hero-canvas {
    height: 600vh;
    /* Increased for smoother scrubbing over 240 frames */
    position: relative;
    background-color: var(--bg-primary, #F4F1EB);
}

.hero-canvas__sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100dvh;
    /* Use dynamic viewport height for mobile stability */
    overflow: hidden;
    display: flex;
    align-items: center;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 108%;
    /* Slightly wider to push the right-side logo off-screen */
    height: 100%;
    object-fit: cover;
    object-position: left center;
    /* Align to left to ensure the right side is cropped */
    z-index: 1;
    image-rendering: high-quality;
    /* Optional edge-case rendering fix: */
    transform: translateZ(0);
}

.hero-canvas__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    pointer-events: none;
    /* Soft luxurious fade from left to ensure perfect typography legibility */
    background: linear-gradient(to right, rgba(244, 241, 235, 0.95) 0%, rgba(244, 241, 235, 0.5) 45%, rgba(244, 241, 235, 0) 80%);
}

/* Define two-column style */
.hero-canvas__split {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
}

.hero-canvas__content {
    flex: 0 0 50%;
    position: relative;
    z-index: 3;
    pointer-events: auto;

    /* Unboxed, purely organic pure typography luxury layout */
    background: transparent;
    padding: 2rem 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    opacity: 0;
    transform: translateY(30px);
    animation: luxuriousFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
    /* Hardware acceleration for ultra-smooth JS scrolling */
    will-change: transform, opacity;
}

@keyframes luxuriousFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-canvas__eyebrow {
    color: var(--gold, #C6A75E);
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-canvas__title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: clamp(3.8rem, 6vw, 6.5rem);
    line-height: 1.05;
    color: var(--text-primary, #2A2A2A);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-canvas__title-em {
    font-style: italic;
    color: var(--gold, #C6A75E);
}

.hero-canvas__subtitle {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary, #555);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-canvas__actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-canvas__actions {
        justify-content: center;
        gap: 1rem;
    }
}

/* Scroll indicator */
.hero-canvas__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gold, #C6A75E);
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0.8;
}

.hero-canvas__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(198, 167, 94, 1), rgba(198, 167, 94, 0));
    animation: scrollLineDrop 2s infinite;
}

@keyframes scrollLineDrop {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@media (max-width: 992px) {
    .hero-canvas__content {
        flex: 0 0 60%;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-canvas__overlay {
        background: linear-gradient(to top,
                rgba(244, 241, 235, 0.95) 0%,
                rgba(244, 241, 235, 0.7) 40%,
                rgba(244, 241, 235, 0) 100%);
        align-items: flex-end;
    }

    #heroCanvas {
        width: 100%;
        left: 0;
        object-position: center 40%; /* Center horizontally and lift slightly to clear the bottom UI */
    }

    .hero-canvas__split {
        align-items: flex-end;
        padding-bottom: 12vh;
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
        justify-content: center;
    }

    .hero-canvas__content {
        flex: 0 0 100%;
        padding: 0;
        background: transparent;
    }

    .hero-canvas__title {
        font-size: clamp(2.4rem, 9vw, 3.4rem);
        margin-bottom: 0.8rem;
    }

    .hero-canvas__subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-canvas__scroll-indicator {
        bottom: 1rem;
        font-size: 0.75rem;
    }

    .hero-canvas__scroll-line {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero-canvas__title {
        font-size: 2.1rem;
    }

    .hero-canvas__actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-canvas__actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
}

/* Updated Code for Mobile Responsive Hero Section */