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

:root {
    --ground: #0a0e1a;
    --surface: #131a2e;
    --accent-primary: #d4956a;
    --accent-secondary: #6b8aad;
    --metallic-light: #e8ecf3;
    --metallic-mid: #c0c7d4;
    --metallic-dark: #8891a3;
    --signal: #ff6f5e;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--ground);
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    color: #a8b0c0;
}

/* VHS Tracking Lines */
.vhs-line {
    position: fixed;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c0c7d4 20%, #c0c7d4 80%, transparent);
    opacity: 0.08;
    top: var(--start-top);
    z-index: 100;
    animation: drift-down var(--duration) linear infinite;
    animation-delay: var(--delay);
}

@keyframes drift-down {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* Floating Elements */
.floating-element {
    position: fixed;
    left: var(--start-x);
    top: var(--start-y);
    z-index: 50;
    pointer-events: none;
    animation: float var(--duration) ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
    50% { transform: translate(calc(var(--dx) * -0.5), calc(var(--dy) * 0.7)) rotate(calc(var(--rot) * -0.5)); }
    75% { transform: translate(calc(var(--dx) * 0.3), calc(var(--dy) * -0.8)) rotate(calc(var(--rot) * 0.7)); }
}

.reel-spin {
    transform-origin: center;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Corridor */
.corridor {
    display: flex;
    flex-direction: row;
    width: fit-content;
    min-height: 100vh;
    background: linear-gradient(90deg, #0a0e1a, #131a2e 25%, #0a0e1a 50%, #131a2e 75%, #0a0e1a);
}

/* Channels */
.channel {
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem;
}

.channel-content {
    position: relative;
    max-width: 800px;
    width: 100%;
}

.channel-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8891a3;
    opacity: 0.6;
    display: block;
    margin-bottom: 2rem;
}

.channel-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, #c0c7d4, #e8ecf3, #d4956a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(200, 207, 220, 0.15);
    margin-bottom: 2rem;
}

/* Channel 01 - The Signal */
.channel-01 {
    position: relative;
}

.on-air-indicator {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.on-air-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signal);
    opacity: 0.7;
}

.hero-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(4rem, 12vw, 9rem);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #c0c7d4, #e8ecf3, #d4956a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(200, 207, 220, 0.15);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-fragment {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.75;
    color: #a8b0c0;
    word-spacing: 0.04em;
    margin-bottom: 2rem;
}

.signal-line {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    animation: signal-extend 3s ease-out forwards;
}

@keyframes signal-extend {
    from { width: 0; }
    to { width: 60%; }
}

/* Channel 02 - The Archive */
.tape-labels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tape-label {
    background: var(--surface);
    border: 1px solid #c0c7d4;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    max-height: 3.5rem;
    overflow: hidden;
    transition: max-height 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 300ms ease;
    cursor: pointer;
}

.tape-label:hover {
    border-color: var(--accent-secondary);
}

.tape-label.expanded {
    max-height: 40rem;
}

.tape-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tape-headline {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--metallic-mid);
}

.tape-chevron {
    color: var(--metallic-dark);
    transition: transform 300ms ease;
}

.tape-label.expanded .tape-chevron {
    transform: rotate(180deg);
}

.tape-body {
    margin-top: 1rem;
}

.tape-body p {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.75;
    color: #a8b0c0;
    word-spacing: 0.04em;
}

/* Channel 03 - The Frequency */
.waveforms {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.waveform {
    width: 100%;
    height: auto;
}

.waveform-1 path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: wave-flow 8s linear infinite;
}

.waveform-2 path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: wave-flow 12s linear infinite;
    animation-delay: -3s;
}

.waveform-3 path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: wave-flow 6s linear infinite;
    animation-delay: -6s;
}

@keyframes wave-flow {
    0% { stroke-dashoffset: 800; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -800; }
}

/* Channel 04 - The Transmission */
.transmission-text {
    margin-bottom: 3rem;
}

.transmission-text p {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.75;
    color: #a8b0c0;
    word-spacing: 0.04em;
}

.transmission-text .word {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease, transform 400ms ease;
    display: inline-block;
    margin-right: 0.3em;
}

.transmission-text .word.visible {
    opacity: 1;
    transform: translateY(0);
}

.power-symbol {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    animation: power-pulse 4s ease-in-out infinite;
}

.power-symbol svg {
    filter: drop-shadow(0 0 40px rgba(212, 149, 106, 0.3));
}

@keyframes power-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent-primary);
    z-index: 200;
    transition: width 100ms linear;
}

/* Mobile */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .corridor {
        flex-direction: column;
        width: 100%;
    }

    .channel {
        min-width: 100%;
        min-height: 100vh;
        padding: 2rem;
    }

    .floating-element:nth-child(n+5) {
        display: none;
    }

    .progress-bar {
        bottom: auto;
        right: 0;
        left: auto;
        top: 0;
        width: 2px;
        height: 0%;
        transition: height 100ms linear;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }
}
