/* ===== DS1 PHOTO SPREAD SECTION ===== */
/* Scoped entirely to [data-ps] — zero bleed to other sections */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600&display=swap');

[data-ps] {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #f9f8f5;
}

[data-ps-sticky] {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #f9f8f5;
}

/* ── Botanical SVG backdrop ── */
[data-ps-bg] {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}

[data-ps-bg] svg {
    width: 100%;
    height: 100%;
}

/* ── Stage ── */
[data-ps-stage] {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── All photo cards ── */
[data-ps-item] {
    position: absolute;
    left: 50%;
    top: 50%;
    /* GSAP drives xPercent:-50 yPercent:-50 + x/y/rotation/scale/opacity */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,0,0,0.15);
    /* GPU compositing — prevents blurry subpixel rendering during scale */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
    image-rendering: -webkit-optimize-contrast;
}

[data-ps-item] img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    /* Prevent img blur during GPU compositing */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* ── Center text ── */
[data-ps-text] {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    width: min(520px, 42vw);
}

[data-ps-text-inner] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ps-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(30px, 4.2vw, 58px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

.ps-title--mobile {
    display: none;
}

.ps-para {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(13px, 1.2vw, 15px);
    color: #4a5e55;
    line-height: 1.75;
    max-width: 380px;
    margin: 0;
}

.ps-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.ps-btn--fill {
    background: #c5dfc0;
    color: #1c3a2e;
    border: none;
}

.ps-btn--fill:hover { background: #aed0a7; }

.ps-btn--outline {
    background: transparent;
    color: #1c3a2e;
    border: 1.5px solid #1c3a2e;
}

.ps-btn--outline:hover { background: rgba(28,58,46,0.06); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .ps-title--desktop {
        display: none !important;
    }

    .ps-title--mobile {
        display: block !important;
    }
}

@media (max-width: 767px) {
    [data-ps] {
        min-height: 0;
    }

    [data-ps-sticky] {
        position: relative;
        height: auto;
        overflow: visible;
        padding: 72px 20px;
    }

    [data-ps-bg],
    [data-ps-item] {
        display: none !important;
    }

    [data-ps-stage] {
        position: static;
        inset: auto;
    }

    [data-ps-text] {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        width: min(340px, 100%);
        margin: 0 auto;
        text-align: center;
    }

    [data-ps-text-inner] {
        gap: 16px;
        align-items: center;
    }

    .ps-title { font-size: clamp(26px, 8vw, 36px); }

    .ps-title--desktop {
        display: none !important;
    }

    .ps-title--mobile {
        display: block !important;
    }
    .ps-para  { font-size: 13px; }

    .ps-btns {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .ps-btn {
        justify-content: center;
        width: 100%;
    }
}

/* ===== END DS1 PHOTO SPREAD SECTION ===== */
