:root {
    --aged-cream: #f5f0e8;
    --burgundy-ink: #6b1d2a;
    --burgundy-black: #1a0510;
    --warm-cream: #faf6ef;
    --muted-rose: #c4929a;
    --wine-void: #2e0a12;
    --bright-claret: #a8324b;
    --blush-fog: #e8d8d0;
}

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

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body.scire {
    background: var(--aged-cream);
    color: var(--burgundy-ink);
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    overflow-x: hidden;
}

/* Domain Mark */
.domain-mark {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--burgundy-ink);
    transition: color 0.6s ease;
}

.domain-mark--light {
    color: var(--warm-cream);
}

/* Zone Base */
.zone {
    position: relative;
    min-height: 100vh;
    scroll-snap-align: start;
    overflow: hidden;
}

/* Zone 1: Surface */
.zone--surface {
    background: var(--aged-cream);
    display: flex;
    align-items: center;
    padding: 0 8vw;
}

.zone--surface__content {
    position: relative;
    z-index: 2;
    margin-top: -5vh;
}

.zone--surface__title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(15vw, 20vw, 25vw);
    letter-spacing: -0.03em;
    line-height: 0.85;
    color: var(--burgundy-ink);
}

.zone--surface__provocation {
    margin-top: 2rem;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    max-width: 42ch;
    color: var(--burgundy-ink);
    opacity: 0.8;
}

.bubbles-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubbles-surface .bubble {
    animation: bubble-rise 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.bubble--1 { animation-delay: 0s; animation-duration: 10s; }
.bubble--2 { animation-delay: 2s; animation-duration: 7s; }
.bubble--3 { animation-delay: 1s; animation-duration: 12s; }
.bubble--4 { animation-delay: 3.5s; animation-duration: 8s; }
.bubble--5 { animation-delay: 1.5s; animation-duration: 9s; }

@keyframes bubble-rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30vh) translateX(8px);
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-60vh) translateX(-5px);
        opacity: 0;
    }
}

.bubble:hover {
    stroke-width: 2;
    stroke: var(--bright-claret);
    transition: stroke 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.4s ease;
}

/* Zone 2: Immersion */
.zone--immersion {
    background: var(--burgundy-ink);
    color: var(--warm-cream);
    display: flex;
    align-items: center;
    position: relative;
}

.zone--immersion__content {
    position: relative;
    z-index: 2;
    margin-left: 15vw;
    max-width: 42ch;
    padding: 10vh 0;
}

.zone--immersion__heading {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--warm-cream);
}

.zone--immersion__content p {
    margin-bottom: 1.5rem;
    color: var(--warm-cream);
    opacity: 0.9;
}

.zone--immersion__content em {
    font-style: italic;
    font-weight: 600;
}

.curves-immersion {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Zone 3: Resonance */
.zone--resonance {
    background: radial-gradient(ellipse at center, var(--wine-void) 0%, var(--aged-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.zone--resonance__enso {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(60vw, 500px);
    height: min(60vw, 500px);
    z-index: 1;
}

.enso__path {
    stroke-dasharray: 650;
    stroke-dashoffset: 650;
    transition: stroke-dashoffset 2.5s ease-out;
}

.enso__path--drawn {
    stroke-dashoffset: 0;
}

.zone--resonance__statement {
    position: relative;
    z-index: 2;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.4;
    color: var(--warm-cream);
    max-width: 18ch;
    border: none;
    padding: 0;
}

.bubbles-resonance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubbles-resonance .bubble {
    animation: bubble-drift 10s cubic-bezier(0.22, 0.68, 0.36, 1.0) infinite;
}

.bubble--r1 { animation-delay: 0s; animation-duration: 11s; }
.bubble--r2 { animation-delay: 2s; animation-duration: 9s; }
.bubble--r3 { animation-delay: 4s; animation-duration: 8s; }
.bubble--r4 { animation-delay: 1s; animation-duration: 13s; }
.bubble--r5 { animation-delay: 3s; animation-duration: 10s; }

@keyframes bubble-drift {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }
    25% {
        transform: translateY(-5vh) translateX(3px) scale(1.02);
    }
    50% {
        transform: translateY(-10vh) translateX(-4px) scale(0.98);
    }
    75% {
        transform: translateY(-15vh) translateX(2px) scale(1.01);
    }
    100% {
        transform: translateY(-20vh) translateX(0) scale(1);
    }
}

/* Zone 4: Undercurrent */
.zone--undercurrent {
    background: var(--aged-cream);
    color: var(--burgundy-ink);
    position: relative;
    padding: 12vh 8vw;
    display: flex;
    align-items: center;
}

.zone--undercurrent__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 8vw;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.zone--undercurrent__block--left {
    transform: translateY(-2rem);
}

.zone--undercurrent__block--right {
    transform: translateY(2rem);
}

.zone--undercurrent__block h3 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.zone--undercurrent__block p {
    max-width: 42ch;
    margin-bottom: 1rem;
}

.meta-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.85em;
    letter-spacing: 0.02em;
    color: var(--muted-rose);
    margin-bottom: 0.75rem;
}

.code-block {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85em;
    letter-spacing: 0.02em;
    color: var(--muted-rose);
    line-height: 1.8;
    display: block;
}

.curves-undercurrent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Zone 5: Depth */
.zone--depth {
    background: var(--burgundy-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.zone--depth__closing {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.8;
    color: var(--warm-cream);
    position: relative;
    z-index: 2;
}

.zone--depth__signature {
    margin-top: 4rem;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: var(--warm-cream);
    opacity: 0.15;
    position: relative;
    z-index: 2;
}

.bubbles-depth {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubbles-depth .bubble {
    animation: bubble-drift 14s cubic-bezier(0.22, 0.68, 0.36, 1.0) infinite;
}

.bubble--ghost-1 { animation-delay: 0s; animation-duration: 16s; }
.bubble--ghost-2 { animation-delay: 3s; animation-duration: 12s; }
.bubble--ghost-3 { animation-delay: 5s; animation-duration: 18s; }

/* Cursor Wake */
#cursor-wake {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.wake-bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--muted-rose);
    opacity: 0.15;
    pointer-events: none;
    animation: wake-rise 2s cubic-bezier(0.22, 0.68, 0.36, 1.0) forwards;
}

@keyframes wake-rise {
    0% {
        transform: translateY(0);
        opacity: 0.15;
    }
    100% {
        transform: translateY(-80px);
        opacity: 0;
    }
}

/* Zone transitions */
.zone--immersion__content,
.zone--resonance__statement,
.zone--undercurrent__block,
.zone--depth__closing {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zone--immersion__content.visible,
.zone--resonance__statement.visible,
.zone--undercurrent__block.visible,
.zone--depth__closing.visible {
    opacity: 1;
    transform: translateY(0);
}

.zone--undercurrent__block.visible.zone--undercurrent__block--left {
    transform: translateY(-2rem);
}

.zone--undercurrent__block.visible.zone--undercurrent__block--right {
    transform: translateY(2rem);
}
