/* layer2.report — Organic-Flow Creamy Pastel Blobs */

:root {
    --meringue-white: #FDF6EE;
    --custard-cream: #F5E6C8;
    --peach-nectar: #F4B183;
    --lavender-mousse: #C3B1E1;
    --pistachio-foam: #B8D8B8;
    --espresso-dark: #2C1810;
    --warm-graphite: #5C4A3A;
    --apricot-glaze: #FFDAB9;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: var(--espresso-dark);
    background: var(--meringue-white);
    line-height: 1.65;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

/* ---- Grain overlay ---- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ---- Section pill ---- */
.section-pill {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 100;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-graphite);
    background: rgba(253, 246, 238, 0.8);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 177, 131, 0.3);
    backdrop-filter: blur(8px);
}

/* ---- Floating micro-blobs ---- */
.micro-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.micro-blob {
    position: absolute;
    border-radius: 50% 40% 55% 45% / 45% 55% 40% 50%;
    opacity: 0.35;
}

.mb-1 { width: 40px; height: 40px; background: var(--peach-nectar); top: 15%; left: 5%; animation: blobDrift 18s ease-in-out infinite; }
.mb-2 { width: 30px; height: 30px; background: var(--lavender-mousse); top: 25%; right: 8%; animation: blobDrift 22s ease-in-out infinite reverse; }
.mb-3 { width: 50px; height: 50px; background: var(--pistachio-foam); top: 45%; left: 3%; animation: blobDrift 20s ease-in-out infinite; }
.mb-4 { width: 25px; height: 25px; background: var(--peach-nectar); top: 60%; right: 4%; animation: blobDrift 16s ease-in-out infinite reverse; }
.mb-5 { width: 35px; height: 35px; background: var(--lavender-mousse); top: 75%; left: 8%; animation: blobDrift 24s ease-in-out infinite; }
.mb-6 { width: 45px; height: 45px; background: var(--pistachio-foam); top: 85%; right: 6%; animation: blobDrift 19s ease-in-out infinite reverse; }
.mb-7 { width: 20px; height: 20px; background: var(--peach-nectar); top: 35%; left: 92%; animation: blobDrift 21s ease-in-out infinite; }
.mb-8 { width: 55px; height: 55px; background: var(--lavender-mousse); top: 10%; left: 50%; animation: blobDrift 25s ease-in-out infinite reverse; }

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(8px, -6px) rotate(5deg); }
    50% { transform: translate(-4px, 8px) rotate(-3deg); }
    75% { transform: translate(6px, 4px) rotate(8deg); }
}

/* ---- Zones ---- */
.zone {
    position: relative;
    z-index: 1;
}

/* ---- Reveal ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- Body text ---- */
.body-text {
    font-size: clamp(1.1rem, 1.5vw + 0.3rem, 1.5rem);
    line-height: 1.65;
    color: var(--espresso-dark);
    margin-bottom: 1.5rem;
    max-width: 38em;
}

/* ---- Section heading ---- */
.section-heading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw + 0.5rem, 5rem);
    color: var(--espresso-dark);
    letter-spacing: -0.02em;
    line-height: 1.0;
    margin-bottom: 2rem;
}

.section-heading-center {
    text-align: center;
}

/* ---- Fraunces accent ---- */
.fraunces-accent {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-style: italic;
    color: var(--warm-graphite);
}

/* ============ 1: THE SURFACE ============ */
.zone-surface {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--meringue-white) 0%, var(--custard-cream) 40%, var(--apricot-glaze) 100%);
    padding: clamp(2rem, 5vw, 6rem);
}

.blob-hero {
    position: relative;
    width: 70%;
    max-width: 700px;
}

.blob-shape {
    width: 100%;
    height: auto;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(3.5rem, 10vw + 0.5rem, 9rem);
    color: var(--espresso-dark);
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.hero-sub {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    color: var(--warm-graphite);
}

/* ============ 2: THE PROTOCOL ============ */
.zone-protocol {
    min-height: 120vh;
    padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 5vw, 6rem);
    background: var(--meringue-white);
}

.protocol-grid {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blob-panel {
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
    position: relative;
    transition: transform 0.15s ease;
}

.blob-text {
    background: rgba(245, 230, 200, 0.5);
    border: 1px solid rgba(244, 177, 131, 0.3);
    border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
    box-shadow: 0 8px 40px rgba(195, 177, 225, 0.15);
}

.blob-diagram {
    background: rgba(195, 177, 225, 0.15);
    border: 1px solid rgba(195, 177, 225, 0.25);
    border-radius: 60% 40% 45% 55% / 40% 60% 45% 55%;
    box-shadow: 0 8px 40px rgba(244, 177, 131, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-layers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
}

.layer {
    padding: 1.5rem 2rem;
    border-radius: 20px;
    text-align: center;
}

.layer-1 {
    background: var(--custard-cream);
    border: 1px solid var(--peach-nectar);
}

.layer-2 {
    background: rgba(244, 177, 131, 0.3);
    border: 1px solid var(--peach-nectar);
}

.layer-3 {
    background: rgba(195, 177, 225, 0.3);
    border: 1px solid var(--lavender-mousse);
}

.layer-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.65rem, 0.8vw + 0.2rem, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-graphite);
}

/* ============ 3: THE EVIDENCE ============ */
.zone-evidence {
    min-height: 100vh;
    padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 5vw, 6rem);
    background: var(--meringue-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.evidence-sea {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.island {
    flex: 1 1 280px;
    max-width: 360px;
    padding: clamp(2rem, 3vw, 3rem);
    border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
    position: relative;
}

.island-1 {
    background: rgba(244, 177, 131, 0.15);
    border: 1px solid rgba(244, 177, 131, 0.3);
    animation: islandFloat 10s ease-in-out infinite;
}

.island-2 {
    background: rgba(195, 177, 225, 0.15);
    border: 1px solid rgba(195, 177, 225, 0.3);
    animation: islandFloat 12s ease-in-out infinite reverse;
    margin-top: 3rem;
}

.island-3 {
    background: rgba(184, 216, 184, 0.15);
    border: 1px solid rgba(184, 216, 184, 0.3);
    animation: islandFloat 8s ease-in-out infinite;
}

@keyframes islandFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4px, -6px); }
}

.island-text {
    font-size: clamp(1.1rem, 1.5vw + 0.3rem, 1.5rem);
    line-height: 1.65;
    color: var(--espresso-dark);
}

/* ============ 4: THE HORIZON ============ */
.zone-horizon {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--meringue-white), var(--custard-cream));
    text-align: center;
    padding: clamp(2rem, 5vw, 6rem);
}

.horizon-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--espresso-dark);
    letter-spacing: -0.02em;
    line-height: 1.0;
}

.horizon-rule {
    width: 80px;
    height: 1px;
    background: var(--peach-nectar);
    margin: 2rem auto;
}

.horizon-sub {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.65rem, 0.8vw + 0.2rem, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-graphite);
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .protocol-grid {
        grid-template-columns: 1fr;
    }

    .blob-hero {
        width: 95%;
    }

    .blob-panel {
        border-radius: 20px;
    }

    .island {
        border-radius: 20px;
    }

    .evidence-sea {
        flex-direction: column;
        align-items: center;
    }

    .island-2 {
        margin-top: 0;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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

    .micro-blob {
        animation: none;
    }

    .island {
        animation: none;
    }
}
