:root {
    --void-indigo: #1B1034;
    --petal-blush: #F2D4DC;
    --gilt-thread: #C9A84C;
    --spectral-lavender: #9B8EC4;
    --bone-white: #EDE8E0;
    --shadow-teal: #2A5C5A;
}

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

body {
    background-color: var(--void-indigo);
    color: var(--bone-white);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow: hidden;
    height: 100vh;
}

/* Lantern overlay */
#lantern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: radial-gradient(circle 200px at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(242, 212, 220, 0.08), transparent);
}

/* Progress bar */
#progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gilt-thread);
    z-index: 90;
    transition: width 0.2s ease;
}

/* Lookbook horizontal scroll */
.lookbook {
    display: flex;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.spread {
    min-width: 200vw;
    height: 100vh;
    display: flex;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
}

.spread-threshold {
    min-width: 100vw;
}

/* Spread backgrounds */
.spread-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-threshold {
    background: radial-gradient(circle at 50% 50%, rgba(242, 212, 220, 0.05) 0%, transparent 60%),
                var(--void-indigo);
}

.bg-persona {
    background: radial-gradient(ellipse at 30% 40%, rgba(242, 212, 220, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(155, 142, 196, 0.06) 0%, transparent 50%),
                var(--void-indigo);
}

.bg-shadow {
    background: radial-gradient(ellipse at 40% 50%, rgba(42, 92, 90, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 30%, rgba(27, 16, 52, 0.9) 0%, transparent 60%),
                var(--void-indigo);
}

.bg-anima {
    background: radial-gradient(ellipse at 35% 45%, rgba(242, 212, 220, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 65% 55%, rgba(155, 142, 196, 0.08) 0%, transparent 50%),
                var(--void-indigo);
}

.bg-sage {
    background: radial-gradient(ellipse at 50% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 70%, rgba(155, 142, 196, 0.05) 0%, transparent 40%),
                var(--void-indigo);
}

/* Threshold content */
.threshold-content {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
}

.site-title {
    margin-bottom: 48px;
}

.title-line {
    display: block;
}

.title-archetype {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bone-white);
}

.title-moe {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gilt-thread);
}

.moe-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--spectral-lavender);
    margin-right: 2px;
    animation: dotPulse 4s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.threshold-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.06em;
    color: var(--spectral-lavender);
    margin-bottom: 48px;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--gilt-thread);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(12px); }
}

/* Spread panels */
.spread-panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.panel-left {
    align-items: center;
    padding: 48px;
}

.panel-right {
    padding: 96px 10vw;
    align-items: flex-start;
}

/* Archetype illustrations */
.archetype-illustration {
    max-height: 60vh;
    width: auto;
}

/* Floating glyphs */
.floating-glyphs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glyph {
    position: absolute;
    opacity: 0.4;
}

.glyph-1 { top: 15%; left: 20%; animation: orbit 30s linear infinite; }
.glyph-2 { top: 70%; left: 30%; animation: orbit 45s linear infinite reverse; }
.glyph-3 { top: 25%; right: 25%; animation: orbit 35s linear infinite; }
.glyph-4 { top: 20%; left: 15%; animation: orbit 40s linear infinite; }
.glyph-5 { top: 65%; left: 25%; animation: orbit 50s linear infinite reverse; }
.glyph-6 { top: 30%; right: 20%; animation: orbit 28s linear infinite; }
.glyph-7 { top: 18%; left: 22%; animation: orbit 38s linear infinite reverse; }
.glyph-8 { top: 72%; left: 18%; animation: orbit 42s linear infinite; }
.glyph-9 { top: 28%; right: 22%; animation: orbit 55s linear infinite; }
.glyph-10 { top: 15%; left: 25%; animation: orbit 33s linear infinite; }
.glyph-11 { top: 68%; right: 28%; animation: orbit 48s linear infinite reverse; }

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

/* Gold borders */
.gold-border {
    position: absolute;
    top: 48px;
    left: 48px;
    right: calc(100vw + 48px);
    bottom: 48px;
    border: 1px solid var(--gilt-thread);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 5;
}

.spread.visible .gold-border {
    opacity: 0.4;
}

/* Archetype names */
.archetype-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    mix-blend-mode: difference;
    margin-bottom: 24px;
}

/* Divider line */
.divider-line {
    width: 30vw;
    height: 1px;
    background-color: var(--gilt-thread);
    margin-bottom: 24px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.spread.visible .divider-line {
    transform: scaleX(1);
}

/* Description */
.archetype-desc {
    max-width: 500px;
    margin-bottom: 48px;
    color: var(--bone-white);
}

/* Keywords */
.keywords {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    bottom: 96px;
    right: 48px;
}

.keyword {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    letter-spacing: 0.06em;
    color: var(--spectral-lavender);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Slide reveal */
.slide-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.spread.visible .slide-reveal {
    clip-path: inset(0 0 0 0);
}

.spread.visible .slide-reveal.delay-2 {
    transition-delay: 0.3s;
}

.spread.visible .slide-reveal.delay-3 {
    transition-delay: 0.6s;
}

/* Links */
a {
    color: var(--shadow-teal);
    text-decoration: none;
}

a:hover {
    color: var(--spectral-lavender);
}

/* Responsive */
@media (max-width: 768px) {
    .spread {
        min-width: 100vw;
        flex-direction: column;
    }

    .spread-panel {
        width: 100vw;
        height: 50vh;
        padding: 24px;
    }

    .panel-right {
        padding: 24px 5vw;
    }

    .archetype-illustration {
        max-height: 35vh;
    }

    .keywords {
        position: static;
        flex-direction: row;
        writing-mode: horizontal-tb;
    }

    .keyword {
        writing-mode: horizontal-tb;
    }

    .floating-glyphs {
        display: none;
    }
}
