/* concurrent.quest -- temporal observatory HUD */
/* Palette: #060b18, #1a2a40, #c8dce8, #00e676, #FFB300, #7c4dff, #00e5ff, #ff6e40 */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #060b18;
    color: #c8dce8;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* HUD corners */
.hud-corner {
    position: fixed;
    width: 30px;
    height: 30px;
    z-index: 100;
    pointer-events: none;
}

.hud-tl { top: 12px; left: 12px; border-top: 1px solid rgba(0,229,255,0.3); border-left: 1px solid rgba(0,229,255,0.3); }
.hud-tr { top: 12px; right: 12px; border-top: 1px solid rgba(0,229,255,0.3); border-right: 1px solid rgba(0,229,255,0.3); }
.hud-bl { bottom: 12px; left: 12px; border-bottom: 1px solid rgba(0,229,255,0.3); border-left: 1px solid rgba(0,229,255,0.3); }
.hud-br { bottom: 12px; right: 12px; border-bottom: 1px solid rgba(0,229,255,0.3); border-right: 1px solid rgba(0,229,255,0.3); }

/* HUD readouts */
.hud-readout {
    position: fixed;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(0,229,255,0.4);
    z-index: 100;
}

.hud-readout-left { bottom: 1rem; left: 1.5rem; }
.hud-readout-right { bottom: 1rem; right: 1.5rem; }

/* Chambers */
.chamber {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

/* Chamber 1: Nexus */
.chamber-nexus {
    flex-direction: column;
    background: radial-gradient(ellipse at center, rgba(0,229,255,0.03) 0%, transparent 60%);
}

.nexus-glyph {
    width: clamp(100px, 20vw, 200px);
    height: clamp(100px, 20vw, 200px);
    margin-bottom: 2rem;
}

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

.glyph-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 1.5s ease-out forwards;
}

.glyph-line-2 { animation-delay: 0.3s; }
.glyph-line-3 { animation-delay: 0.6s; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.glyph-core {
    opacity: 0;
    animation: coreAppear 0.5s ease-out 1s forwards;
}

@keyframes coreAppear {
    to { opacity: 1; }
}

.nexus-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 7vw, 6rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8dce8;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.nexus-sub {
    font-family: 'Source Code Pro', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: rgba(0,229,255,0.5);
    letter-spacing: 0.1em;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.8s forwards;
}

/* Chamber 2: Divergence - three panels */
.chamber-divergence {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 6rem 2rem;
}

/* Data panels */
.data-panel {
    background: rgba(26, 42, 64, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 2.5rem 2rem;
    flex: 1;
    min-width: 280px;
}

.panel-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    color: rgba(0,229,255,0.5);
}

.thread-alpha-label { color: #00e676; }
.thread-beta-label { color: #FFB300; }
.thread-gamma-label { color: #7c4dff; }

.panel-heading {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c8dce8;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.panel-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.92rem;
    color: rgba(200, 220, 232, 0.8);
    line-height: 1.75;
}

/* Reveal animation */
.reveal-panel {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Chamber 3: Contention */
.chamber-contention {
    flex-direction: column;
}

.contention-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 64rem;
    width: 100%;
}

.contention-panel {
    min-width: auto;
}

.metrics-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.metric {
    border-left: 2px solid #ff6e40;
    padding-left: 1rem;
}

.metric-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: #ff6e40;
    display: block;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #c8dce8;
}

/* Chamber 4: Resolution */
.chamber-resolution {
    justify-content: center;
}

.resolution-panel {
    max-width: 48rem;
    text-align: center;
    border-color: rgba(0, 230, 118, 0.25);
}

/* Chamber 5: The Answer */
.chamber-answer {
    flex-direction: column;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(124, 77, 255, 0.05) 0%, transparent 60%);
}

.answer-statement {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(200, 220, 232, 0.6);
    line-height: 1.9;
    max-width: 36rem;
    margin-bottom: 3rem;
}

.answer-domain {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00e5ff;
}

/* Responsive */
@media (max-width: 768px) {
    .chamber-divergence {
        flex-direction: column;
    }

    .contention-grid {
        grid-template-columns: 1fr;
    }
}
