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

:root {
    --conch-cream: #f5ede3;
    --cloud-grey: #e8e4de;
    --sumi-ink: #2c2824;
    --driftwood: #7a7068;
    --shell-coral: #e8614d;
    --horizon-gold: #d4a843;
    --sky-lavender: #8b7faa;
    --pearl-edge: #d6cfc5;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--conch-cream);
    color: var(--sumi-ink);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    overflow-x: hidden;
}

/* === CONCH SPIRAL WATERMARK === */
#conch-spiral {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80vmin;
    height: 80vmin;
    transform: translate(-50%, -50%) rotate(15deg);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

/* === SPREADS === */
.spread {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

/* === ANGULAR DIVIDERS === */
.spread-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--conch-cream);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
    z-index: 2;
}

.spread-divider-dark {
    background: var(--sumi-ink);
}

/* === SPREAD 0: HERO === */
.spread-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--conch-cream);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(5rem, 12vw, 10rem);
    letter-spacing: -0.02em;
    color: var(--sumi-ink);
    line-height: 1;
    margin-bottom: 0.2em;
}

.hero-subtitle {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--driftwood);
    letter-spacing: 0.05em;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-shape.visible {
    opacity: 1;
    transform: none;
}

.shape-1 { width: 180px; top: 10%; left: 8%; }
.shape-2 { width: 150px; top: 15%; right: 10%; }
.shape-3 { width: 200px; bottom: 15%; left: 12%; }
.shape-4 { width: 120px; bottom: 20%; right: 15%; }
.shape-5 { width: 100px; top: 40%; right: 25%; }

.dopamine-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--shell-coral);
    top: 30%;
    left: 55%;
    opacity: 0;
    transform: scale(0);
    z-index: 5;
}

.dopamine-dot.visible {
    opacity: 1;
    transform: scale(1);
    animation: spring-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes spring-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.4); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.accent-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--shell-coral);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.accent-dot.visible { opacity: 1; }

.dot-1 { top: 25%; left: 30%; }
.dot-2 { top: 60%; left: 20%; }
.dot-3 { top: 70%; right: 22%; }
.dot-4 { top: 35%; right: 30%; }
.dot-5 { bottom: 25%; left: 45%; }

/* === SPLIT LAYOUT === */
.spread-split {
    background: linear-gradient(135deg, var(--conch-cream) 0%, var(--cloud-grey) 50%, var(--pearl-edge) 100%);
}

.spread-inner {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.editorial-col {
    flex: 0 0 38%;
    padding: 6vh 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--conch-cream);
    position: relative;
}

.editorial-col::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, var(--conch-cream), var(--cloud-grey));
    transform: skewX(-2deg);
    z-index: 1;
}

.canvas-col {
    flex: 0 0 62%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 3vw;
    background: var(--cloud-grey);
    position: relative;
}

.canvas-composition {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* === SPREAD REVERSED === */
.spread-reversed .spread-inner {
    flex-direction: row;
}

.spread-reversed .editorial-col::after {
    right: auto;
    left: -20px;
    background: linear-gradient(270deg, var(--conch-cream), var(--cloud-grey));
}

/* === TYPOGRAPHY === */
.spread-heading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    letter-spacing: -0.02em;
    color: var(--sumi-ink);
    line-height: 1.1;
    margin-bottom: 1.2em;
}

.spread-heading .letter {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.spread-heading .letter.visible {
    opacity: 1;
}

.editorial-text p {
    margin-bottom: 1.5em;
    color: var(--sumi-ink);
}

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

.spread-footer {
    font-family: 'Space Grotesk', monospace;
    font-weight: 500;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--driftwood);
    margin-top: 3em;
}

/* === SPREAD 2: SHELL SPIRAL ANIMATION === */
.shell-spiral-anim {
    transition: stroke-dashoffset 4s ease-out;
}

.shell-spiral-anim.drawn {
    stroke-dashoffset: 0;
}

/* PULSE SHAPES */
.pulse-shape {
    animation: none;
}

.pulse-shape.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* === SPREAD 4: THE VOID === */
.spread-void {
    background: var(--sumi-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.void-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.void-kanji {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(8rem, 20vw, 16rem);
    color: var(--conch-cream);
    line-height: 1;
    margin-bottom: 0.2em;
}

.void-subtitle {
    font-family: 'Space Grotesk', monospace;
    font-weight: 500;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--driftwood);
}

.void-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.void-composition {
    width: 100%;
    height: 100%;
}

/* === MORPH SHAPES === */
.morph-shape {
    transition: all 3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* === ACCENT CIRCLES === */
.accent-circle {
    opacity: 0.8;
}

/* === INTERACTIVE HOVER === */
.spread-heading:hover {
    transform: skewX(-2deg);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* === MOBILE === */
@media (max-width: 768px) {
    .spread-inner {
        flex-direction: column;
    }

    .spread-reversed .spread-inner {
        flex-direction: column-reverse;
    }

    .editorial-col,
    .canvas-col {
        flex: none;
        width: 100%;
    }

    .editorial-col {
        padding: 4vh 6vw;
    }

    .editorial-col::after {
        display: none;
    }

    .canvas-col {
        padding: 4vh 6vw;
        min-height: 50vh;
    }

    .spread-divider-top {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
        height: 40px;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .void-kanji {
        font-size: clamp(5rem, 25vw, 10rem);
    }

    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5 {
        width: 80px;
    }
}
