.sintonia-section {
    position: relative;
    width: 100%;
    height: 400vh;
    /* Scroll track height */
    background-color: #000;
}

.sintonia-pinned-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Viewport pinned */
    overflow: hidden;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    will-change: transform;
}

/* Backgrounds */
.sintonia-bg-container,
.sintonia-video,
.sintonia-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sintonia-video {
    object-fit: cover;
    z-index: 1;
}

.sintonia-video-clouds {
    z-index: 1;
}

.sintonia-video-loop {
    z-index: 2;
    opacity: 0;
    /* Removed transition for instant flashbang swap */
}

.sintonia-video-loop.visible {
    opacity: 1;
}

.sintonia-image {
    background-size: cover;
    background-position: center;
    z-index: 3;
    opacity: 0;
    /* Removed transition for instant flashbang swap */
    mix-blend-mode: screen;
    /* Blends with the loop video behind it */
}

.sintonia-image.visible {
    opacity: 0.85;
}

/* Overlay */
.sintonia-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Header */
.sintonia-header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
}

/* Overlay effects */
.sintonia-top-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 4;
    pointer-events: none;
}

.sintonia-white-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 5;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.sintonia-white-flash.visible {
    opacity: 1;
}

/* Header Text Styles */
.sintonia-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5vw;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    color: #000;
}

.sintonia-title-script {
    font-family: 'Great Vibes', cursive;
    font-size: 6.5vw;
    line-height: 0.8;
    margin-top: -1vw;
    text-align: center;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sintonia-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8vw;
    font-weight: 400;
    margin: 1rem 0 0 0;
    text-align: center;
    color: #000;
    max-width: 80%;
}

/* Header Image Fallbacks */
.sintonia-title-img,
.sintonia-title-script-img,
.sintonia-subtitle-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.sintonia-title-img {
    width: 35%;
}

.sintonia-title-script-img {
    width: 50%;
    margin-top: 0;
    filter: drop-shadow(0 2px 0px rgba(0, 0, 0, 0.3));
}

.sintonia-subtitle-img {
    width: 30%;
    margin-top: 1rem;
}

/* Quote */
.sintonia-quote-content {
    position: absolute;
    top: 48%;
    /* Pushed down to avoid overlapping header */
    left: 50%;
    width: 100%;
    max-width: 800px;
    transform: translate(-50%, 100vh);
    /* Start off-screen */
    opacity: 0;
    text-align: center;
    will-change: transform, opacity;
}

.sintonia-quote-content blockquote {
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 3vw, 2rem);
    /* Responsive font scaling */
    font-style: normal;
    ;
    margin: 0;
    padding: 0 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    border-left: 0 !important;
}

/* Book */
.sintonia-book-content {
    position: absolute;
    top: 54%;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translate(-50%, 100vh);
    opacity: 0;
    will-change: transform, opacity;
    display: flex;
    justify-content: center;
}

/* Specific styling for the LiteStore shortcode inside this section */
.sintonia-book-content .litestore-product {
    /* Responsive sizing: adapt to screen height to avoid overlap, with max limits */
    width: 100%;
    max-width: min(250px, 25vh);
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Spacing between book and buttons */
    margin: 0;
    padding: 0;
}

/* 1. Cover aspect ratio */
.sintonia-book-content .litestore-product-image {
    width: 100%;
    aspect-ratio: 1000 / 1600;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    /* Premium shadow */
    margin: 0;
    padding: 0;
}

.sintonia-book-content .litestore-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Buttons in a row and longer */
.sintonia-book-content .litestore-product-content {
    display: none;
}

/* Remove the old placeholder as it's no longer used */
.sintonia-book-placeholder {
    display: none;
}

@media (max-width: 768px) {
    .sintonia-title {
        font-size: 10vw;
    }

    .sintonia-title-script {
        font-size: 14vw;
    }

    .sintonia-subtitle {
        font-size: 4vw;
        max-width: 95%;
    }

    .sintonia-title-img {
        width: 75%;
    }

    .sintonia-title-script-img {
        width: 90%;
    }

    .sintonia-subtitle-img {
        width: 88%;
    }

    .sintonia-book-content {
        max-width: 200px;
    }
}