/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #faf6f0;
    color: #3a3430;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    min-height: 500vh;
}

/* === AURORA ATMOSPHERIC LAYERS === */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    filter: blur(100px);
    mix-blend-mode: multiply;
    opacity: 0.6;
    will-change: transform;
}

.aurora-1 {
    background: radial-gradient(ellipse at 30% 40%, rgba(232,180,162,0.5) 0%, transparent 60%);
    animation: auroraDrift1 20s ease-in-out infinite alternate;
}

.aurora-2 {
    background: radial-gradient(ellipse at 60% 50%, rgba(196,174,208,0.4) 0%, transparent 60%);
    animation: auroraDrift2 27s ease-in-out infinite alternate;
}

.aurora-3 {
    background: radial-gradient(ellipse at 50% 60%, rgba(184,204,180,0.4) 0%, transparent 60%);
    animation: auroraDrift3 35s ease-in-out infinite alternate;
}

@keyframes auroraDrift1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, -8%); }
}

@keyframes auroraDrift2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-7%, 5%); }
}

@keyframes auroraDrift3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(4%, 6%); }
}

/* === PARTICLES === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(196,174,208,0.3);
    animation: particleRise linear infinite;
}

@keyframes particleRise {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* === BLUR-FOCUS SYSTEM === */
.blur-focus {
    filter: blur(8px);
    opacity: 0.4;
    transition: filter 0.6s ease-out, opacity 0.6s ease-out;
}

.blur-focus[data-visible="1"] { filter: blur(6px); opacity: 0.5; }
.blur-focus[data-visible="2"] { filter: blur(5px); opacity: 0.55; }
.blur-focus[data-visible="3"] { filter: blur(4px); opacity: 0.6; }
.blur-focus[data-visible="4"] { filter: blur(3px); opacity: 0.7; }
.blur-focus[data-visible="5"] { filter: blur(2px); opacity: 0.8; }
.blur-focus[data-visible="6"] { filter: blur(1.5px); opacity: 0.85; }
.blur-focus[data-visible="7"] { filter: blur(1px); opacity: 0.9; }
.blur-focus[data-visible="8"] { filter: blur(0.5px); opacity: 0.95; }
.blur-focus[data-visible="9"] { filter: blur(0); opacity: 0.98; }
.blur-focus[data-visible="10"] { filter: blur(0); opacity: 1; }

/* === PHASES === */
.phase {
    position: relative;
    z-index: 2;
}

/* Phase 1: The Empty Chamber */
.phase-1 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 7.5rem);
    letter-spacing: -0.02em;
    color: #3a3430;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'Overpass Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    color: #8a7e76;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
}

/* Phase 2: Surfaces Emerge */
.phase-2 {
    min-height: 120vh;
    padding: 10vh 5vw;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    position: relative;
}

.floating-plane {
    background: #f0e6da;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(58,52,48,0.05);
}

.plane-1 {
    max-width: 380px;
    transform: rotate(-1.5deg) scale(1.0);
}

.plane-2 {
    max-width: 320px;
    transform: rotate(0.8deg) translateY(-20px) scale(1.1);
}

.plane-3 {
    max-width: 260px;
    transform: rotate(2deg) translateY(30px) scale(0.95);
}

.philosophy-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    color: #3a3430;
}

.assemble-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #3a3430;
    letter-spacing: -0.02em;
}

/* Floating Table */
.floating-table {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.table-surface {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 70px;
    transform: translate(-50%, -50%) perspective(800px) rotateX(60deg);
    background: #d9c8c0;
    border-radius: 50%;
    box-shadow: 0 30px 60px rgba(58,52,48,0.08);
    animation: tableFloat 2s ease-in-out infinite alternate;
}

@keyframes tableFloat {
    0% { transform: translate(-50%, -50%) perspective(800px) rotateX(60deg) translateY(0); }
    100% { transform: translate(-50%, -50%) perspective(800px) rotateX(60deg) translateY(-4px); }
}

.chair {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8a7e76;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 51.4deg)) translateY(-70px);
    animation: chairPulse 2s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.3s);
}

@keyframes chairPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) rotate(calc(var(--i) * 51.4deg)) translateY(-70px) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--i) * 51.4deg)) translateY(-70px) scale(1.2); }
}

/* Phase 3: The Ring Forms */
.phase-3 {
    min-height: 140vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
}

.assembly-ring {
    position: relative;
    width: min(80vw, 600px);
    height: min(80vw, 600px);
}

.ring-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * var(--angle)));
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: #3a3430;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.ring-square {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e8b4a2, #c4aed0);
    border-radius: 4px;
}

.ring-void {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8b4a2 0%, #c4aed0 40%, #b8ccb4 75%, #faf6f0 100%);
    filter: blur(20px);
    opacity: 0.6;
}

.ring-metadata {
    margin-top: 4rem;
    font-family: 'Overpass Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: #8a7e76;
    letter-spacing: 0.05em;
}

/* Listening Sphere */
.listening-sphere {
    position: relative;
    width: 60px;
    height: 70px;
}

.sphere-body {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #faf6f0, #d9c8c0 50%, #8a7e76 100%);
    animation: sphereRotate 60s linear infinite;
}

@keyframes sphereRotate {
    0% { background: radial-gradient(circle at 30% 30%, #faf6f0, #d9c8c0 50%, #8a7e76 100%); }
    50% { background: radial-gradient(circle at 60% 40%, #faf6f0, #d9c8c0 50%, #8a7e76 100%); }
    100% { background: radial-gradient(circle at 30% 30%, #faf6f0, #d9c8c0 50%, #8a7e76 100%); }
}

.sphere-shadow {
    width: 50px;
    height: 15px;
    background: rgba(58,52,48,0.1);
    border-radius: 50%;
    margin-top: 5px;
    filter: blur(4px);
    transform: scaleY(0.3);
}

/* Phase 4: The Dissolving Point */
.phase-4 {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
}

.dissolving-statement {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: #3a3430;
    text-align: center;
    letter-spacing: -0.02em;
    animation: dissolveText 20s ease-in-out infinite alternate;
    max-width: 900px;
}

@keyframes dissolveText {
    0% { letter-spacing: -0.02em; }
    100% { letter-spacing: 0.5em; }
}

.dissolving-doorway {
    margin-top: 6rem;
}

.doorway-frame {
    width: 80px;
    height: 200px;
    border-radius: 40px 40px 0 0;
    border: 2px solid #d9c8c0;
    position: relative;
    overflow: hidden;
}

.doorway-interior {
    position: absolute;
    inset: 4px;
    border-radius: 38px 38px 0 0;
    background: linear-gradient(180deg, #c4aed0 0%, #faf6f0 100%);
    opacity: 0.5;
}

/* Phase 5: The Afterglow */
.phase-5 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
}

.afterglow-text {
    font-family: 'Overpass Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: #8a7e76;
    letter-spacing: 0.05em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .assembly-ring {
        width: 90vw;
        height: 90vw;
    }

    .ring-element {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-120px) rotate(calc(-1 * var(--angle)));
    }

    .phase-2 {
        flex-direction: column;
        align-items: center;
    }

    .floating-plane {
        max-width: 90vw !important;
        transform: none !important;
    }
}
