/* oning.stream — meditative broadcast experience */

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

:root {
    --void: #0b0c1a;
    --void-deep: #12132a;
    --aurora-green: #42e6a4;
    --aurora-violet: #8b5cf6;
    --aurora-pink: #e879a8;
    --mist: #e8e4ef;
    --ghost: #7a7590;
    --cloud: #f0eeff;
    --font-display: 'Righteous', cursive;
    --font-mono: 'Space Mono', monospace;
}

html {
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    background: var(--void);
    color: var(--mist);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ======== SIDEBAR ======== */

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: rgba(11, 12, 26, 0.85);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
}

#sidebar-edge {
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, var(--aurora-green), var(--aurora-violet), var(--aurora-pink), var(--aurora-green));
    background-size: 1px 300%;
    animation: edgePulse 8s linear infinite;
}

@keyframes edgePulse {
    0% { background-position: 0 0; }
    100% { background-position: 0 300%; }
}

#sidebar-glyphs {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

.glyph {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--ghost);
    cursor: pointer;
    transition: color 0.5s ease, text-shadow 0.5s ease;
    letter-spacing: 0.05em;
}

.glyph:hover,
.glyph.active {
    color: var(--aurora-green);
    text-shadow: 0 0 12px rgba(66, 230, 164, 0.5);
}

#sidebar-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#clock-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ghost);
    letter-spacing: 0.15em;
}

/* ======== PANELS ======== */

.panel {
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-left: 200px;
    overflow: hidden;
}

.panel-content {
    max-width: 640px;
    width: 100%;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Title lockup */
.title-lockup {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 400;
    color: var(--cloud);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.title-dot {
    color: var(--aurora-green);
    text-shadow: 0 0 20px rgba(66, 230, 164, 0.6);
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ghost);
    margin-top: 16px;
    letter-spacing: 0.2em;
    text-transform: lowercase;
}

/* Panel titles */
.panel-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: var(--cloud);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.panel-text {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ghost);
    line-height: 1.8;
    max-width: 480px;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: cuePulse 2s ease-in-out infinite;
    padding-left: 200px;
}

.scroll-cue span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ghost);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

@keyframes cuePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ======== WAVE FORMS ======== */

.wave-container {
    position: absolute;
    bottom: 0;
    left: 200px;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 1;
}

.wave-svg {
    width: 100%;
    height: 100%;
}

/* ======== NEON ORBS ======== */

.orb-container {
    position: relative;
    margin-top: 48px;
    height: 200px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.neon-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: blur(1px);
    animation: orbBreathe 4s ease-in-out infinite;
}

.orb-green {
    background: radial-gradient(circle at 40% 40%, var(--aurora-green), transparent 70%);
    box-shadow: 0 0 40px rgba(66, 230, 164, 0.4), 0 0 80px rgba(66, 230, 164, 0.15);
}

.orb-violet {
    background: radial-gradient(circle at 40% 40%, var(--aurora-violet), transparent 70%);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(139, 92, 246, 0.15);
    animation-delay: -1.5s;
}

.orb-pink {
    background: radial-gradient(circle at 40% 40%, var(--aurora-pink), transparent 70%);
    box-shadow: 0 0 40px rgba(232, 121, 168, 0.4), 0 0 80px rgba(232, 121, 168, 0.15);
    animation-delay: -3s;
}

@keyframes orbBreathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* ======== PARTICLE FIELD ======== */

#particle-field {
    position: absolute;
    top: 0;
    left: 200px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

#particle-field .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--aurora-green);
    opacity: 0;
    animation: particleDrift 6s ease-in-out infinite;
}

@keyframes particleDrift {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 0.8; }
    70% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-60px); }
}

/* ======== BROADCAST BADGE ======== */

.broadcast-badge {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aurora-green);
    box-shadow: 0 0 8px rgba(66, 230, 164, 0.6);
    animation: badgeBlink 2s ease-in-out infinite;
}

@keyframes badgeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ghost);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ======== AMBIENT GLOW ON PANELS ======== */

#panel-0::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

#panel-1::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(66, 230, 164, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

#panel-3::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 121, 168, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ======== RESPONSIVE ======== */

@media (max-width: 768px) {
    #sidebar {
        width: 60px;
        padding: 20px 0;
    }

    .glyph {
        font-size: 14px;
    }

    #sidebar-clock svg {
        width: 36px;
        height: 36px;
    }

    #clock-time {
        font-size: 8px;
    }

    .panel {
        padding-left: 60px;
    }

    .wave-container,
    #particle-field {
        left: 60px;
    }

    .scroll-cue {
        padding-left: 60px;
    }

    .panel-content {
        padding: 0 24px;
    }
}
