/* Palette per section */
:root {
    --mud-bg: #1e1a16;
    --mud-primary: #c8b898;
    --mud-secondary: #8a7e68;
    --root-bg: #2a2820;
    --root-primary: #b8a888;
    --root-secondary: #7a7060;
    --stem-bg: #1e3028;
    --stem-primary: #a8c8a0;
    --stem-secondary: #6a8a62;
    --stem-line: #3a5a48;
    --surface-bg: #e8e0d0;
    --surface-primary: #3a3428;
    --surface-secondary: #7a7060;
    --petal-bg: #f5efe5;
    --petal-primary: #3a3020;
    --petal-secondary: #8a7e68;
    --petal-arc: #d8d0c0;
    --bloom-bg: #faf6f0;
    --bloom-primary: #2a2418;
    --bloom-secondary: #6b6050;
    --carpel-gold: #d4a843;
}

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

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Zone base */
.zone {
    position: relative;
    padding: clamp(40px, 8vh, 80px) clamp(20px, 8vw, 120px);
}

/* Display typography */
.display-text {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.threshold-text {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.body-text {
    margin-bottom: 24px;
}

/* Section labels */
.section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    display: block;
    margin-bottom: 40px;
}

/* Reveal animation */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
}

/* ================================================
   Section 1: The Mud
   ================================================ */
.zone-mud {
    background-color: var(--mud-bg);
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mud-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.mud-text-primary {
    color: var(--mud-primary);
}

.mud-content .threshold-text {
    margin-top: 20px;
    color: var(--mud-secondary);
}

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

.sediment-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(42, 36, 32, 0.3);
}

/* ================================================
   Section 2: The Root Zone
   ================================================ */
.zone-root {
    background-color: var(--root-bg);
    min-height: 80vh;
}

.root-label {
    color: var(--root-secondary);
    opacity: 0.5;
}

.root-content {
    max-width: 70%;
    margin: 0 auto;
}

.root-text-primary {
    color: var(--root-primary);
}

.stem-connector {
    width: 1px;
    height: 120px;
    background-color: #4a6040;
    margin: 40px auto 0;
}

/* ================================================
   Section 3: The Stem
   ================================================ */
.zone-stem {
    background-color: var(--stem-bg);
    min-height: 140vh;
}

.stem-label {
    color: var(--stem-secondary);
    opacity: 0.5;
    text-align: center;
    display: block;
}

.stem-content {
    max-width: 30%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 2.0;
}

.stem-text-primary {
    color: var(--stem-primary);
}

.stem-lines {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 100%;
    pointer-events: none;
}

.stem-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: var(--stem-line);
}

.stem-line-left {
    left: 0;
}

.stem-line-right {
    right: 0;
}

/* ================================================
   Section 4: The Surface Break
   ================================================ */
.zone-surface {
    background-color: var(--surface-bg);
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.surface-label {
    color: var(--surface-secondary);
    opacity: 0.5;
}

.surface-content {
    max-width: 60%;
    margin: 0 auto;
    text-align: center;
}

.surface-text-primary {
    color: var(--surface-primary);
}

/* ================================================
   Section 5: The First Petal Layer
   ================================================ */
.zone-petal {
    background-color: var(--petal-bg);
    min-height: 60vh;
}

.petal-label {
    color: var(--petal-secondary);
    opacity: 0.5;
}

.petal-content {
    max-width: 75%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.petal-text-primary {
    color: var(--petal-primary);
}

.petal-arc {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30px;
    pointer-events: none;
    z-index: 1;
}

.petal-arc-left {
    left: calc(12.5% - 30px);
}

.petal-arc-right {
    right: calc(12.5% - 30px);
}

/* ================================================
   Section 6: The Full Bloom
   ================================================ */
.zone-bloom {
    background-color: var(--bloom-bg);
    min-height: 80vh;
}

.bloom-label {
    color: var(--bloom-secondary);
    opacity: 0.5;
}

.bloom-grid {
    max-width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.bloom-text-primary {
    color: var(--bloom-primary);
}

/* Carpel circles */
.carpel-circles {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.carpel {
    border-radius: 50%;
    border: 1.5px solid var(--carpel-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carpel-outer {
    width: 80px;
    height: 80px;
}

.carpel-middle {
    width: 50px;
    height: 50px;
}

.carpel-inner {
    width: 20px;
    height: 20px;
}

.bloom-silence {
    height: 160px;
}

/* Mobile */
@media (max-width: 768px) {
    .root-content {
        max-width: 90%;
    }

    .stem-content {
        max-width: 50%;
    }

    .stem-lines {
        width: 50%;
    }

    .surface-content {
        max-width: 85%;
    }

    .petal-content {
        max-width: 90%;
    }

    .petal-arc {
        display: none;
    }

    .bloom-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }
}
