:root {
    --bg-deep: #050f0a;
    --bg-mid: #0a1f14;
    --text-primary: #b8d4c8;
    --text-secondary: #6b8f7d;
    --accent: #39e88c;
    --accent-deep: #1abc72;
    --accent-glow: #2dffa8;
    --fog: #0d3322;
    --organism: #14d4a0;
    --column-width: min(720px, 90vw);
    --section-gap: 12vh;
    color-scheme: dark;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.78;
    overflow-x: hidden;
}

/* Fixed Canvas */
#bioCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Holos Symbol */
.holos-symbol {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.holos-symbol:hover {
    opacity: 1;
}

.holos-symbol svg {
    display: block;
}

/* Depth Markers */
.depth-markers {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 50;
}

.depth-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
    animation: depthPulse 3s ease-in-out infinite;
    transition: opacity 0.4s ease, box-shadow 0.4s ease;
}

.depth-dot:nth-child(2) { animation-delay: -0.6s; }
.depth-dot:nth-child(3) { animation-delay: -1.2s; }
.depth-dot:nth-child(4) { animation-delay: -1.8s; }
.depth-dot:nth-child(5) { animation-delay: -2.4s; }

.depth-dot.active {
    opacity: 1;
    box-shadow: 0 0 12px rgba(57, 232, 140, 0.25);
}

@keyframes depthPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* Zones */
.zone {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.zone-content {
    width: var(--column-width);
    max-width: 100%;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.zone-content.column {
    display: flex;
    flex-direction: column;
}

.zone-surface {
    min-height: 100vh;
    background: transparent;
}

.zone-descent {
    min-height: 120vh;
    background: transparent;
    margin-top: var(--section-gap);
}

.zone-deep {
    min-height: 100vh;
    background: transparent;
    margin-top: var(--section-gap);
}

.zone-floor {
    min-height: 100vh;
    background: transparent;
    margin-top: var(--section-gap);
}

/* Hero Title */
.hero-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title .char.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-sub {
    font-weight: 300;
    text-align: center;
    color: var(--text-secondary);
    max-width: 44ch;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-sub.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Section Labels */
.section-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-variant: small-caps;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 16px;
}

/* Section Headings */
.section-heading {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.section-heading .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    color: var(--text-secondary);
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.8s ease;
}

.section-heading .char.visible {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-primary);
}

/* Body Text */
.body-text {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.body-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.body-text.aphorism {
    font-style: italic;
    color: var(--accent);
    opacity: 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 2;
    text-align: center;
    margin: 3rem 0;
}

.body-text.aphorism.revealed {
    opacity: 0.85;
}

/* Reveal base for data-reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.section-label[data-reveal].revealed {
    opacity: 0.8;
}

.body-text.aphorism[data-reveal].revealed {
    opacity: 0.85;
    transform: translateY(0);
}

/* Final Word */
.final-word {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.4s ease, transform 1.4s ease;
}

.final-word.revealed {
    opacity: 0.3;
    transform: translateY(0);
    animation: finalBreathe 6s ease-in-out infinite;
}

@keyframes finalBreathe {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Thermocline Lines (deep sections) */
.zone-deep::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--fog);
    opacity: 0.1;
}

.zone-deep::after {
    content: '';
    position: absolute;
    top: 65%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--fog);
    opacity: 0.06;
}

/* Responsive */
@media (max-width: 768px) {
    .zone-content {
        width: 100%;
        padding: 0 20px;
    }

    .depth-markers {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3.6rem);
    }

    .section-heading {
        font-size: clamp(2rem, 7vw, 3rem);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .depth-dot {
        animation: none;
        opacity: 0.6;
    }

    .final-word.revealed {
        animation: none;
        opacity: 0.3;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-title .char,
    .section-heading .char {
        opacity: 1;
        transform: none;
        transition: none;
        color: var(--text-primary);
    }

    .hero-sub,
    .body-text,
    .final-word {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .body-text.aphorism {
        opacity: 0.85;
    }
}
