/* ============================================================
   mujun.wiki — Observatory of Contradiction
   Styles CSS
   Compliance vocabulary: Internal Swiss Grid:** International Typographic Style** Style* cold precision **sci-fi heads-up display** display* IntersectionObserver` `threshold: [0 passage. uses Slab" (Google Grotesk" (Google
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    font-family: 'Roboto Slab', serif;
    background-color: #0a0f1a;
    color: #c8d6e0;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Scan line overlay */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 229, 195, 0.015) 2px,
        rgba(0, 229, 195, 0.015) 4px
    );
}

/* ============================================================
   HUD OVERLAYS
   ============================================================ */

/* Top HUD Bar */
.hud-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background-color: #111827;
    border-bottom: 1px solid #1a2a3a;
    display: flex;
    align-items: center;
    padding: 0 48px;
    z-index: 100;
    gap: 24px;
}

.hud-title {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #00e5c3;
    text-shadow: 0 0 20px rgba(0, 229, 195, 0.3);
    white-space: nowrap;
}

.hud-divider {
    width: 1px;
    height: 24px;
    background-color: #1a2a3a;
}

.hud-progress-bar {
    flex: 1;
    height: 2px;
    background-color: #1a2a3a;
    position: relative;
    overflow: hidden;
}

.hud-progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background-color: #00e5c3;
    transition: width 0.3s ease-out;
}

/* Bottom HUD Bar */
.hud-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #111827;
    border-top: 1px solid #1a2a3a;
    display: flex;
    align-items: center;
    padding: 0 48px;
    z-index: 100;
    gap: 24px;
}

.hud-panel-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7b8fa3;
}

.current-panel {
    color: #e040a0;
}

.breadcrumb-nav {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.breadcrumb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #7b8fa3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breadcrumb-dot.visited {
    background-color: #00e5c3;
}

.breadcrumb-dot.current {
    background-color: #e040a0;
    animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================================
   MAIN SCROLL CONTAINER
   ============================================================ */

.scroll-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100vw;
    width: 100%;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-top: 56px;
    padding-bottom: 40px;
    margin-top: 0;
}

/* ============================================================
   PANEL STYLING
   ============================================================ */

.panel {
    width: 100vw;
    height: calc(100vh - 96px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0a0f1a;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel.active {
    opacity: 1;
    transform: translateX(0);
}

.panel.dimmed {
    opacity: 0.3;
    transform: translateX(-20px);
}

@keyframes fade-reveal {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Panel numbering watermark */
.panel-number {
    position: absolute;
    font-family: 'Zilla Slab', serif;
    font-size: clamp(6rem, 12vw, 14rem);
    font-weight: 700;
    color: #3d5060;
    opacity: 0.05;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    line-height: 1;
    pointer-events: none;
}

/* Corner brackets */
.corner-bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #1a2a3a;
    opacity: 0.72;
    transform: translate(0, 0);
    transition: border-color 400ms ease, transform 400ms ease, opacity 400ms ease;
}

.corner-tl {
    top: 48px;
    left: 48px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 48px;
    right: 48px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 48px;
    left: 48px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 48px;
    right: 48px;
    border-left: none;
    border-top: none;
}

.panel.active .corner-bracket {
    border-color: #00e5c3;
    opacity: 1;
    transform: translate(4px, 4px);
}

.panel.active .corner-tr {
    transform: translate(-4px, 4px);
}

.panel.active .corner-bl {
    transform: translate(4px, -4px);
}

.panel.active .corner-br {
    transform: translate(-4px, -4px);
}

@keyframes bracket-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Panel grid layout */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* Grid background visualization */
.panel-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent calc((100% / 12) - 1px),
            #1a2a3a 0,
            #1a2a3a 1px
        );
    opacity: 0.08;
}

/* Column metadata (left quarter) */
.column-metadata {
    grid-column: 1 / 4;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.metadata-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7b8fa3;
}

/* Bubble cluster */
.bubble-cluster {
    position: relative;
    height: 200px;
    width: 100%;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 60%),
                rgba(0, 229, 195, 0.06);
    border: 1px solid rgba(0, 229, 195, 0.12);
    will-change: transform;
    animation: bubble-drift linear infinite;
}

.bubble-1 {
    width: 12px;
    height: 12px;
    top: 10%;
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 24px;
    height: 24px;
    top: 20%;
    left: 15%;
    animation-duration: 10s;
    animation-delay: 0.5s;
}

.bubble-3 {
    width: 18px;
    height: 18px;
    top: 35%;
    left: 8%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.bubble-4 {
    width: 16px;
    height: 16px;
    top: 45%;
    left: 18%;
    animation-duration: 11s;
    animation-delay: 1.5s;
}

.bubble-5 {
    width: 20px;
    height: 20px;
    top: 55%;
    left: 10%;
    animation-duration: 13s;
    animation-delay: 2s;
}

.bubble-6 {
    width: 14px;
    height: 14px;
    top: 70%;
    left: 12%;
    animation-duration: 9s;
    animation-delay: 2.5s;
}

.bubble-7 {
    width: 22px;
    height: 22px;
    top: 80%;
    left: 6%;
    animation-duration: 14s;
    animation-delay: 3s;
}

.bubble-8 {
    width: 16px;
    height: 16px;
    top: 65%;
    left: 20%;
    animation-duration: 11.5s;
    animation-delay: 1.2s;
}

@keyframes bubble-drift {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-30px);
    }
}

/* Column main (center) */
.column-main {
    grid-column: 4 / 10;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.panel-title {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 229, 195, 0.3);
}

.panel-1 .panel-title,
.panel-8 .panel-title {
    color: #00e5c3;
}

.panel-2 .panel-title {
    color: #e040a0;
}

.panel-3 .panel-title {
    color: #f0b040;
}

.panel-4 .panel-title {
    color: #00e5c3;
}

.panel-5 .panel-title {
    color: #e040a0;
}

.panel-6 .panel-title {
    color: #f0b040;
}

.panel-7 .panel-title {
    color: #00e5c3;
}

.panel-subtitle {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #7b8fa3;
    line-height: 1.6;
}

.panel-text,
.panel-description {
    font-family: 'Roboto Slab', serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: #c8d6e0;
}

/* Column data (right quarter) */
.column-data {
    grid-column: 10 / 13;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.data-arc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-indicator {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.arc-background {
    fill: none;
    stroke: #3d5060;
    stroke-width: 2;
    opacity: 0.3;
}

.arc-progress {
    fill: none;
    stroke: #00e5c3;
    stroke-width: 2;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    opacity: 0;
}

.panel-1 .arc-progress,
.panel-4 .arc-progress,
.panel-7 .arc-progress,
.panel-8 .arc-progress {
    stroke: #00e5c3;
}

.panel-2 .arc-progress {
    stroke: #e040a0;
}

.panel-3 .arc-progress,
.panel-6 .arc-progress {
    stroke: #f0b040;
}

.panel-5 .arc-progress {
    stroke: #e040a0;
}

.panel.active .arc-progress {
    animation: arc-reveal 1000ms ease-out forwards;
}

@keyframes arc-reveal {
    from {
        stroke-dashoffset: 314;
        opacity: 1;
    }
    to {
        stroke-dashoffset: 314;
        opacity: 1;
    }
}

.panel-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-current {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e040a0;
}

/* Data ticks on bottom */
.panel::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 48px;
    right: 48px;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 99px,
        #3d5060 99px,
        #3d5060 100px
    );
    opacity: 0.4;
}

/* ============================================================
   RESPONSIVE - VERTICAL SCROLL FOR SMALL SCREENS
   ============================================================ */

@media (max-width: 768px) {
    html {
        overflow: auto;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        height: auto;
    }

    .scroll-container {
        display: block;
        width: 100%;
        height: auto;
        overflow-x: hidden;
        overflow-y: visible;
        scroll-snap-type: y mandatory;
        padding-top: 56px;
        padding-bottom: 40px;
    }

    .panel {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 48px 24px;
        scroll-snap-align: start;
    }

    .panel-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .column-metadata,
    .column-main,
    .column-data {
        grid-column: 1;
    }

    .column-metadata {
        order: 1;
    }

    .column-main {
        order: 2;
    }

    .column-data {
        order: 3;
    }

    .panel-number {
        right: 12px;
        font-size: 4rem;
    }

    .corner-bracket {
        display: none;
    }
}

/* ============================================================
   UTILITY & ACCESSIBILITY
   ============================================================ */

/* Remove default scrollbar on desktop */
.scroll-container::-webkit-scrollbar {
    height: 4px;
}

.scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #00e5c3;
    opacity: 0.3;
}
