:root {
    --steel: #5A6B7A;
    --void: #1A1D21;
    --fog: #D0D4D8;
    --mist: #B4BBC3;
    --slate: #8B9DAF;
    --ice: #E8EAED;
    --charcoal: #2C2F33;
    --ash: #C2C8CE;
    --border-thick: 3px solid var(--void);
    --border-thin: 1px solid var(--slate);
    --blob-fill: var(--charcoal);
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--void);
    color: var(--fog);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scanline Overlay */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(26, 29, 33, 0.03) 2px,
        rgba(26, 29, 33, 0.03) 4px
    );
}

/* Content Column - shifts laterally */
.content-column {
    max-width: 680px;
    margin-left: 12vw;
    padding: 4rem 2rem;
    position: relative;
    transition: margin-left 0.3s ease-out;
}

/* HUD Strips */
.hud-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border: var(--border-thin);
    background: var(--charcoal);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--slate);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 1rem 0;
}

.hud-strip--final {
    border-color: var(--steel);
    color: var(--fog);
}

.hud-label {
    color: var(--steel);
}

.hud-data {
    color: var(--mist);
}

.hud-timestamp {
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}

/* Brutalist Frame */
.brutalist-frame {
    border: var(--border-thick);
    padding: 2.5rem;
    background: var(--charcoal);
    position: relative;
}

.brutalist-frame::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--steel);
    opacity: 0.3;
    pointer-events: none;
}

/* Typography */
.display-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ice);
    margin-bottom: 1rem;
}

.subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--slate);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-heading {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ice);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--steel);
}

.body-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 400;
    color: var(--fog);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--steel);
    animation: pulse 2s ease-in-out infinite;
}

.status-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--slate);
    text-transform: uppercase;
}

/* Data Readout */
.data-readout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: var(--border-thin);
}

.readout-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.readout-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--slate);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.readout-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ice);
    font-variant-numeric: tabular-nums;
}

/* Code Block */
.code-block {
    background: var(--void);
    border: var(--border-thin);
    padding: 1.5rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--ash);
}

.code-comment {
    color: var(--steel);
    font-style: italic;
}

/* Terminal Cursor */
.terminal-cursor {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    color: var(--slate);
    animation: blink 1s step-end infinite;
    margin-top: 1rem;
}

/* Blob Bands */
.blob-band {
    position: relative;
    height: 160px;
    margin: 2rem 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    background: var(--blob-fill);
    opacity: 0.5;
    animation: morphBlob 18s ease-in-out infinite;
}

.blob--large {
    width: 300px;
    height: 200px;
    top: -30px;
    left: 10%;
    border-radius: 30% 70% 60% 40% / 50% 60% 30% 70%;
    opacity: 0.35;
}

.blob--medium {
    width: 200px;
    height: 150px;
    top: 10px;
    left: 45%;
    border-radius: 50% 30% 70% 40% / 40% 70% 30% 60%;
    animation-delay: -6s;
    opacity: 0.25;
}

.blob--small {
    width: 120px;
    height: 100px;
    top: 30px;
    right: 10%;
    border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
    animation-delay: -12s;
    opacity: 0.2;
}

/* Content Block */
.content-block {
    margin: 1rem 0;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Keyframes */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

@keyframes morphBlob {
    0% { border-radius: 30% 70% 60% 40% / 50% 60% 30% 70%; }
    25% { border-radius: 50% 40% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
    75% { border-radius: 60% 30% 50% 40% / 30% 70% 40% 60%; }
    100% { border-radius: 30% 70% 60% 40% / 50% 60% 30% 70%; }
}

/* Responsive */
@media (max-width: 768px) {
    .content-column {
        margin-left: 4vw;
        margin-right: 4vw;
        padding: 2rem 1rem;
    }

    .brutalist-frame {
        padding: 1.5rem;
    }

    .data-readout {
        gap: 1rem;
    }

    .blob-band {
        height: 100px;
    }

    .blob--large {
        width: 200px;
        height: 140px;
    }

    .blob--medium {
        width: 140px;
        height: 100px;
    }

    .blob--small {
        width: 80px;
        height: 70px;
    }

    .hud-strip {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .content-column {
        margin-left: 2vw;
        margin-right: 2vw;
        padding: 1.5rem 0.8rem;
    }

    .brutalist-frame {
        padding: 1.2rem;
    }

    .data-readout {
        flex-direction: column;
        gap: 0.8rem;
    }

    .code-block {
        padding: 1rem;
    }

    .code-block code {
        font-size: 0.7rem;
    }
}
