/* Palette: #e8e4f0 #9d97ab #ff2d7b #06080d #0a0f1e #00ffd1 */
/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #06080d;
    color: #e8e4f0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

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

/* === MAIN === */
main {
    position: relative;
    z-index: 1;
}

/* === ZONES === */
.zone {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#zone-alpha {
    min-height: 100vh;
}

#zone-beta {
    min-height: 150vh;
}

#zone-gamma {
    min-height: 150vh;
    padding: 10vh 5vw;
}

#zone-delta {
    min-height: 120vh;
    padding: 10vh 5vw;
}

#zone-omega {
    min-height: 80vh;
}

/* === GHOST LINES === */
.ghost-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(0, 255, 209, 0.06);
    z-index: 1;
    pointer-events: none;
}

/* === NAV DOTS === */
#nav-dots {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffd1;
    opacity: 0.08;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.dot:hover {
    opacity: 0.4;
}

.dot.active {
    opacity: 0.5;
}

/* === VERSION STAMP === */
#version-stamp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #00ffd1;
    letter-spacing: 0.08em;
    opacity: 0.3;
}

/* === TYPOGRAPHY === */
.playfair {
    font-family: 'Playfair Display', serif;
}

.dm-sans {
    font-family: 'DM Sans', sans-serif;
}

/* === ZONE ALPHA — HERO === */
#hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #e8e4f0;
    text-align: center;
}

#hero-title .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#hero-title .char.visible {
    opacity: 1;
}

#hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: rgba(232, 228, 240, 0.65);
    margin-top: 2rem;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 40ch;
}

/* === ZONE BETA — GHOST WORD === */
#ghost-word {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20vw;
    font-weight: 700;
    color: #e8e4f0;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.06em;
}

/* === ZONE GAMMA — ARCHIVE === */
.archive-grid {
    display: flex;
    gap: 4vw;
    align-items: center;
    width: 90vw;
    max-width: 1200px;
}

.photo-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 209, 0.12);
    box-shadow: 0 0 60px rgba(0, 255, 209, 0.04);
    background: #0a0f1e;
}

.photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.8), transparent);
    mix-blend-mode: luminosity;
    pointer-events: none;
}

.photo-large {
    width: 60vw;
    max-width: 720px;
    height: 40vh;
    flex-shrink: 0;
}

.photo-stack {
    display: flex;
    flex-direction: column;
    gap: 4vh;
}

.photo-small {
    width: 25vw;
    max-width: 300px;
    height: 20vh;
}

/* Photo textures — CSS-only abstract compositions */
.photo-texture {
    width: 100%;
    height: 100%;
    filter: saturate(0.2) brightness(0.6) contrast(1.1);
}

.texture-circuit {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(0, 255, 209, 0.04) 8px, rgba(0, 255, 209, 0.04) 9px),
        repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(0, 255, 209, 0.03) 12px, rgba(0, 255, 209, 0.03) 13px),
        radial-gradient(circle at 30% 40%, rgba(255, 45, 123, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(0, 255, 209, 0.06) 0%, transparent 30%),
        linear-gradient(180deg, #0a0f1e, #06080d);
}

.texture-rain {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 255, 209, 0.1) 0%, transparent 2%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 45, 123, 0.08) 0%, transparent 3%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 209, 0.06) 0%, transparent 1.5%),
        radial-gradient(ellipse at 35% 70%, rgba(255, 45, 123, 0.05) 0%, transparent 2%),
        radial-gradient(ellipse at 65% 85%, rgba(0, 255, 209, 0.07) 0%, transparent 2.5%),
        radial-gradient(ellipse at 10% 90%, rgba(255, 45, 123, 0.04) 0%, transparent 4%),
        linear-gradient(180deg, #0a0f1e 0%, #06080d 100%);
}

.texture-metal {
    background:
        repeating-linear-gradient(175deg, transparent, transparent 3px, rgba(232, 228, 240, 0.02) 3px, rgba(232, 228, 240, 0.02) 4px),
        linear-gradient(90deg, rgba(157, 151, 171, 0.05) 0%, rgba(232, 228, 240, 0.03) 50%, rgba(157, 151, 171, 0.05) 100%),
        radial-gradient(ellipse at 50% 50%, rgba(232, 228, 240, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #0a0f1e, #06080d);
}

/* === ZONE DELTA — MANIFESTO === */
.manifesto {
    max-width: 38ch;
    text-align: left;
}

.manifesto-p {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.0;
    color: rgba(232, 228, 240, 0.85);
    margin-bottom: 2.5rem;
}

.manifesto-p:last-child {
    margin-bottom: 0;
}

.glow-word {
    text-shadow: 0 0 20px rgba(255, 45, 123, 0.15);
}

/* === ZONE OMEGA — SEAL === */
.seal-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon-seal {
    animation: hex-rotate 120s linear infinite;
}

@keyframes hex-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#hex-path {
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    transition: stroke-dashoffset 3s ease;
}

#hex-path.drawn {
    stroke-dashoffset: 0;
}

.hex-text {
    font-size: 7px;
    letter-spacing: 4px;
}

.domain-footer {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    color: #e8e4f0;
    opacity: 0.3;
    margin-top: 3rem;
    letter-spacing: 0.04em;
}

/* === FADE-REVEAL SYSTEM === */
[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    will-change: opacity, transform;
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0),
                transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    transition-delay: calc(var(--i, 0) * 60ms);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Manifesto paragraphs get staggered delay */
.manifesto-p[data-reveal] {
    transition-delay: calc(var(--i, 0) * 400ms);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .archive-grid {
        flex-direction: column;
        align-items: center;
    }
    .photo-large {
        width: 80vw;
        max-width: none;
    }
    .photo-stack {
        flex-direction: row;
        gap: 4vw;
    }
    .photo-small {
        width: 38vw;
        max-width: none;
    }
    .manifesto {
        max-width: 32ch;
    }
}

@media (max-width: 768px) {
    .archive-grid {
        flex-direction: column;
    }
    .photo-large {
        width: 90vw;
        height: 30vh;
    }
    .photo-stack {
        flex-direction: column;
        width: 90vw;
    }
    .photo-small {
        width: 90vw;
        max-width: none;
        height: 20vh;
    }
    .manifesto {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    .manifesto-p {
        font-size: 1.2rem;
    }
    #hero-title {
        padding: 0 1rem;
    }
    #ghost-word {
        font-size: 30vw;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .hexagon-seal {
        animation: none;
    }
    #hex-path {
        stroke-dashoffset: 0;
        transition: none;
    }
}
