/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #080812;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #e0f7fa;
    background: #080812;
    overflow-x: hidden;
}

/* === BOKEH FIELD === */
#bokeh-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: bokehFloat linear infinite;
}

@keyframes bokehFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: var(--bokeh-opacity, 0.3); }
    90% { opacity: var(--bokeh-opacity, 0.3); }
    100% { transform: translateY(-100vh) translateX(var(--bokeh-drift, 30px)); opacity: 0; }
}

/* === SECTIONS === */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === DEPTH INDICATOR === */
.depth-indicator {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #40e0d0;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* === ABYSS OPENING === */
.abyss-opening {
    background: linear-gradient(180deg, #0d1b2a 0%, #080812 100%);
}

.abyss-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: -0.03em;
    color: #e0f7fa;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.abyss-number.visible {
    opacity: 1;
    transform: translateY(0);
}

.abyss-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #8ecae6;
    opacity: 0.6;
    margin-top: 1rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

/* === NUMBER BLOCKS === */
.number-blocks {
    min-height: 200vh;
    padding: 10vh 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8vh;
    background: #080812;
}

.module {
    width: min(85vw, 500px);
    padding: 3rem 2.5rem;
    background: rgba(27, 58, 75, 0.15); /* #1B3A4B */
    border: 1px solid rgba(64, 224, 208, 0.12);
    border-radius: 4px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.module.visible {
    opacity: 1;
    transform: translateY(0);
}

.module:nth-child(odd) {
    align-self: flex-start;
    margin-left: 5vw;
}

.module:nth-child(even) {
    align-self: flex-end;
    margin-right: 5vw;
}

.module-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.03em;
    color: #e0f7fa;
    line-height: 1;
}

.module-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #40e0d0;
    opacity: 0.6;
    margin-top: 0.75rem;
    letter-spacing: 0.1em;
}

/* === PROBABILITY TIDE === */
.probability-tide {
    background: linear-gradient(180deg, #080812 0%, #0d1b2a 50%, #080812 100%);
    padding: 5vh 2rem;
}

.tide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tide-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 10vw, 9rem);
    letter-spacing: -0.03em;
    color: #e0f7fa;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.tide-number.visible {
    opacity: 1;
    transform: scale(1);
}

.tide-separator {
    width: 60%;
    max-width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    opacity: 0;
    transition: opacity 1.2s ease 0.3s;
}

.tide-separator.visible {
    opacity: 1;
}

.tide-denominator {
    color: #ff6b6b;
    font-size: clamp(1.5rem, 5vw, 4rem) !important;
}

.tide-caption {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #8ecae6;
    opacity: 0;
    margin-top: 2rem;
    transition: opacity 1s ease 0.6s;
}

.tide-caption.visible {
    opacity: 0.7;
}

/* === JELLYFISH === */
.jellyfish-section {
    min-height: 100vh;
    background: #080812;
}

.jellyfish-container {
    animation: jellyPulse 4s ease-in-out infinite;
}

@keyframes jellyPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.tentacle {
    animation: tentacleSway 3s ease-in-out infinite;
}

.t1 { animation-delay: 0s; }
.t2 { animation-delay: 0.3s; }
.t3 { animation-delay: 0.6s; }
.t4 { animation-delay: 0.9s; }
.t5 { animation-delay: 1.2s; }

@keyframes tentacleSway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.jellyfish-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #8ecae6;
    opacity: 0.5;
    text-align: center;
    margin-top: 3rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* === DEEP NUMBERS === */
.deep-numbers {
    min-height: 150vh;
    background: linear-gradient(180deg, #080812 0%, #0d1b2a 100%);
    padding: 10vh 5vw;
    gap: 12vh;
}

.deep-module {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.deep-module.visible {
    opacity: 1;
    transform: translateY(0);
}

.deep-num {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 7vw, 6rem);
    letter-spacing: -0.03em;
    color: #e0f7fa;
    display: block;
}

.deep-module-1 .deep-num { color: #40e0d0; }
.deep-module-2 .deep-num { color: #ff6b6b; }
.deep-module-3 .deep-num { color: #6a0dad; text-shadow: 0 0 40px rgba(106, 13, 173, 0.5); }

.deep-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #8ecae6;
    opacity: 0.5;
    display: block;
    margin-top: 0.75rem;
    letter-spacing: 0.1em;
}

/* === ABYSS FLOOR === */
.abyss-floor {
    min-height: 100vh;
    background: linear-gradient(180deg, #0d1b2a 0%, #080812 100%);
}

.floor-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    color: #6a0dad;
    text-shadow: 0 0 60px rgba(106, 13, 173, 0.6), 0 0 120px rgba(106, 13, 173, 0.3);
    opacity: 0;
    transition: opacity 2s ease;
}

.floor-number.visible {
    opacity: 1;
}

.floor-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #8ecae6;
    opacity: 0;
    text-align: center;
    margin-top: 2rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
    transition: opacity 1.5s ease 1s;
}

.floor-text.visible {
    opacity: 0.5;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #080812;
}

::-webkit-scrollbar-thumb {
    background: rgba(64, 224, 208, 0.3);
    border-radius: 2px;
}
