/* monopole.style — Fairycore Digital Current */

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

:root {
    --lavender: #a8a0bf;
    --deep-plum: #3a3640;
    --abyss: #2c2b3a;
    --parchment: #f0ece4;
    --sage: #8fa89a;
    --gold: #d4b483;
    --mist: #7d7886;
    --rose: #c4a0a0;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: var(--abyss);
    color: var(--parchment);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
}

/* Horizontal Scroll Container */
.scroll-container {
    display: flex;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Panes */
.pane {
    min-width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

.pane-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

/* Pane Backgrounds */
.pane-shallows {
    background: linear-gradient(135deg, var(--abyss) 0%, #2e2d3d 50%, #33323f 100%);
}

.pane-grove {
    background: linear-gradient(160deg, var(--abyss) 0%, #2a3330 60%, #2c2b3a 100%);
}

.pane-pool {
    background: radial-gradient(ellipse at center, #35334a 0%, var(--abyss) 70%);
}

.pane-moths {
    background: linear-gradient(200deg, #3a3345 0%, var(--abyss) 60%, #2d2a35 100%);
}

.pane-emergence {
    background: linear-gradient(90deg, var(--abyss) 0%, #2f2e3c 50%, #34333f 100%);
}

.pane-dissolution {
    background: radial-gradient(ellipse at center, #3a3640 0%, var(--abyss) 80%);
}

/* Typography */
.title-main {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.8rem, 7vw, 6rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--parchment);
    margin-bottom: 1rem;
}

.title-dot {
    color: var(--gold);
}

.subtitle {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--lavender);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--parchment);
    margin-bottom: 1.5rem;
}

.section-prose {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    color: var(--parchment);
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.pull-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    color: var(--gold);
    opacity: 0.9;
    line-height: 1.4;
    max-width: 550px;
    margin: 0 auto;
    border: none;
    padding: 0;
}

.handwritten-note {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--sage);
    opacity: 0.7;
    margin-top: 2rem;
}

/* Scroll Hint */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    animation: hintPulse 3s ease-in-out infinite;
}

.hint-text {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--mist);
}

.hint-arrow {
    color: var(--mist);
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(6px); }
}

/* Wave Backgrounds */
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wave-bg-2 {
    top: 0;
    bottom: auto;
}

/* Mushroom Cluster */
.mushroom-cluster {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.mushroom {
    filter: blur(0.5px);
    animation: mushroomGlow 4s ease-in-out infinite;
}

.m1 { width: 80px; animation-delay: 0s; }
.m2 { width: 60px; animation-delay: 1.3s; }
.m3 { width: 100px; animation-delay: 0.7s; }

@keyframes mushroomGlow {
    0%, 100% { opacity: 0.7; filter: blur(0.5px) brightness(1); }
    50% { opacity: 1; filter: blur(0.3px) brightness(1.3); }
}

/* Particle Field */
.particle-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Ripple Container */
.ripple-container {
    margin-top: 2rem;
}

.ripple-svg {
    width: clamp(250px, 50vw, 500px);
    height: clamp(250px, 50vw, 500px);
}

.ripple-ring {
    animation: rippleExpand 6s ease-in-out infinite;
    transform-origin: center;
}

.r1 { animation-delay: 0s; }
.r2 { animation-delay: 0.5s; }
.r3 { animation-delay: 1s; }
.r4 { animation-delay: 1.5s; }
.r5 { animation-delay: 2s; }

@keyframes rippleExpand {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.2; }
}

/* Moth Canvas */
.moth-canvas {
    width: 100%;
    height: 300px;
    position: relative;
    margin-top: 2rem;
}

/* Glyph Grid */
.glyph-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.glyph {
    font-size: 2.5rem;
    color: var(--lavender);
    opacity: 0.5;
    animation: glyphFloat 5s ease-in-out infinite;
}

.glyph:nth-child(2) { animation-delay: 0.8s; color: var(--sage); }
.glyph:nth-child(3) { animation-delay: 1.6s; color: var(--gold); }
.glyph:nth-child(4) { animation-delay: 2.4s; color: var(--rose); }
.glyph:nth-child(5) { animation-delay: 3.2s; color: var(--lavender); }
.glyph:nth-child(6) { animation-delay: 4s; color: var(--sage); }

@keyframes glyphFloat {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-12px); opacity: 1; }
}

/* Dissolution */
.dissolution-title {
    animation: dissolve 8s ease-in-out infinite;
}

@keyframes dissolve {
    0%, 100% { opacity: 1; filter: blur(0px); }
    50% { opacity: 0.4; filter: blur(3px); }
}

/* Progress Nav */
.progress-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mist);
    opacity: 0.4;
    transition: all 0.4s ease;
    cursor: pointer;
}

.progress-dot.active {
    opacity: 1;
    background: var(--gold);
    transform: scale(1.4);
}

/* Watercolor wash transitions between panes */
.pane::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--abyss));
    z-index: 3;
    pointer-events: none;
    opacity: 0.6;
}

.pane:last-child::after {
    display: none;
}
