/* ppzz.ee — Gilded Theater Curtain */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy-deep: #3a0a24;
    --burgundy-darker: #1e0514;
    --burgundy-mid: #4a0e2e;
    --burgundy-light: #6b1d45;
    --black: #000000;
    --white: #ffffff;
    --gold: #b89a4a;
    --cream: #f5e6d3;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--burgundy-darker);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

/* Tableau Base */
.tableau {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tableau-1 { background: var(--burgundy-darker); }
.tableau-2 { background: var(--burgundy-deep); }
.tableau-3 { background: var(--burgundy-darker); }
.tableau-4 { background: var(--burgundy-mid); }
.tableau-5 { background: var(--black); }

/* Bokeh Layer */
.bokeh-layer {
    position: absolute;
    inset: 0;
    filter: blur(40px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.tableau-1 .bokeh-layer {
    background:
        radial-gradient(circle 200px at 25% 30%, rgba(245, 230, 211, 0.08) 0%, transparent 70%),
        radial-gradient(circle 150px at 70% 60%, rgba(184, 154, 74, 0.06) 0%, transparent 70%),
        radial-gradient(circle 100px at 50% 80%, rgba(107, 29, 69, 0.1) 0%, transparent 70%),
        radial-gradient(circle 250px at 80% 20%, rgba(245, 230, 211, 0.05) 0%, transparent 70%);
}

.tableau-2 .bokeh-layer {
    background:
        radial-gradient(circle 180px at 60% 40%, rgba(184, 154, 74, 0.08) 0%, transparent 70%),
        radial-gradient(circle 220px at 20% 70%, rgba(245, 230, 211, 0.06) 0%, transparent 70%),
        radial-gradient(circle 130px at 85% 80%, rgba(107, 29, 69, 0.12) 0%, transparent 70%);
}

.tableau-3 .bokeh-layer {
    background:
        radial-gradient(circle 160px at 40% 50%, rgba(245, 230, 211, 0.07) 0%, transparent 70%),
        radial-gradient(circle 200px at 75% 30%, rgba(184, 154, 74, 0.09) 0%, transparent 70%),
        radial-gradient(circle 140px at 15% 20%, rgba(107, 29, 69, 0.08) 0%, transparent 70%);
}

.tableau-4 .bokeh-layer {
    background:
        radial-gradient(circle 190px at 30% 60%, rgba(184, 154, 74, 0.1) 0%, transparent 70%),
        radial-gradient(circle 170px at 80% 40%, rgba(245, 230, 211, 0.06) 0%, transparent 70%);
}

.tableau-5 .bokeh-layer {
    background:
        radial-gradient(circle 250px at 50% 50%, rgba(184, 154, 74, 0.05) 0%, transparent 70%),
        radial-gradient(circle 150px at 30% 70%, rgba(107, 29, 69, 0.08) 0%, transparent 70%);
}

/* Spread Layout */
.tableau-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    padding: 0 5vw;
}

.spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100vh;
}

.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

/* Typography */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--cream), var(--gold), var(--cream));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--cream);
    opacity: 0.7;
    margin-top: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease 0.4s, transform 1.5s ease 0.4s;
}

.hero-subtitle.visible {
    opacity: 0.7;
    transform: translateY(0);
}

.section-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--white);
}

.section-headline em {
    font-weight: 400;
    font-style: italic;
    color: var(--gold);
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--cream);
    opacity: 0.8;
    margin-top: 1.5rem;
    max-width: 480px;
}

.closing-statement {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--gold);
}

.closing-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--cream);
    opacity: 0.6;
    margin-top: 2rem;
    letter-spacing: 0.1em;
}

/* Decorative Elements */
.diamond-ornament {
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.4;
    margin-left: auto;
    animation: pulse-diamond 4s ease-in-out infinite;
}

@keyframes pulse-diamond {
    0%, 100% { opacity: 0.4; transform: rotate(45deg) scale(1); }
    50% { opacity: 0.7; transform: rotate(45deg) scale(1.1); }
}

.gold-rule {
    width: 80px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
    margin-bottom: 2rem;
}

.final-rule {
    margin-top: 2rem;
    width: 120px;
}

.angular-overlay {
    width: 100%;
    height: 60%;
    border-right: 1px solid rgba(184, 154, 74, 0.2);
    border-bottom: 1px solid rgba(184, 154, 74, 0.2);
    position: relative;
}

.angular-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    opacity: 0.3;
    transform: rotate(45deg) translate(50%, 0);
}

/* Monospace Lines */
.stacked-lines {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mono-line {
    font-family: 'Inconsolata', monospace;
    font-size: 0.85rem;
    color: var(--gold);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* Counter */
.counter-display {
    margin-top: 1rem;
}

.counter-number {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--gold);
    opacity: 0.5;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 0.2; transform: scaleY(0.6); }
}

/* Scroll Reveal */
.tableau-content .section-headline,
.tableau-content .body-text,
.tableau-content .stacked-lines,
.tableau-content .counter-display {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tableau-content.in-view .section-headline,
.tableau-content.in-view .body-text,
.tableau-content.in-view .stacked-lines,
.tableau-content.in-view .counter-display {
    opacity: 1;
    transform: translateY(0);
}

.tableau-content.in-view .body-text {
    opacity: 0.8;
}

/* Bokeh Animation */
@keyframes bokeh-drift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
    100% { transform: translate(0, 0); }
}

.bokeh-layer {
    animation: bokeh-drift 20s ease-in-out infinite;
}

.tableau-2 .bokeh-layer { animation-delay: -5s; }
.tableau-3 .bokeh-layer { animation-delay: -10s; }
.tableau-4 .bokeh-layer { animation-delay: -15s; }
.tableau-5 .bokeh-layer { animation-delay: -3s; }

/* Responsive */
@media (max-width: 768px) {
    .spread {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .spread-right {
        order: -1;
    }

    .angular-overlay {
        display: none;
    }

    .diamond-ornament {
        margin: 0 auto;
    }
}
