:root {
    /* THE VOID */
    --color-void: #050505;
    --color-void-deep: #000000;
    /* THE STANDARD */
    --color-gold: #D4AF37;
    --color-gold-dim: #8a701e;
    --color-gold-glow: rgba(212, 175, 55, 0.15);
    /* THE LIFE */
    --color-signal: #00ff41;
    --color-alert: #ff3333;
    /* THE STRUCTURE */
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: 'Segoe UI', Helvetica, sans-serif;
    --easing-mechanical: cubic-bezier(0.6, 0.04, 0.98, 0.335);
}

html, body {
    background-color: var(--color-void);
    color: #e0e0e0;
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* UTILITIES */
.mono {
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}

.gold {
    color: var(--color-gold);
}

.signal {
    color: var(--color-signal);
}

.blink {
    animation: blinker 1s steps(1) infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* THE AXIS LINE (The Geometry) */
.axis-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    z-index: 0;
    opacity: 0.3;
    transform: translateX(-50%);
}

/* THE PRE-LOADER TYPEWRITER */
.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 1.1rem;
}

.type-line {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-gold); /* Cursor */
    width: 0;
    animation: typing 0.8s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: var(--color-gold);
    }
}

/* INDUSTRIAL AIRLOCKS (The Portals) */
.airlock-container {
    display: flex;
    gap: 60px;
    z-index: 10;
}

.airlock-btn {
    position: relative;
    width: 350px;
    height: 220px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    text-decoration: none;
    transition: all 0.4s var(--easing-mechanical);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

    .airlock-btn::before { /* The 'Hinge' visual */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--color-gold-dim);
        transform: scaleX(0);
        transition: transform 0.4s;
    }

    .airlock-btn:hover {
        background: #0f0f0f;
        border-color: var(--color-gold);
        transform: translateY(-5px);
        box-shadow: 0 10px 40px var(--color-gold-glow);
    }

        .airlock-btn:hover::before {
            transform: scaleX(1);
        }

.airlock-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* THE MAIN SEAL (Top of Console) */
.axis-seal-main {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)); /* Gold Glow */
    animation: pulse-gold 4s infinite ease-in-out;
}

@keyframes pulse-gold {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
    }
}

/* THE AIRLOCK ICONS */
.airlock-icon-svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.airlock-btn:hover .airlock-icon-svg {
    transform: scale(1.1) rotate(5deg); /* Mechanical engagement feel */
    filter: drop-shadow(0 0 10px currentColor);
}

.airlock-body {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the logo and text */
    text-align: center;
}

/* Ensure the hero block is centered properly */
.hero-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.turbine {
    animation: spin 4s linear infinite;
    display: inline-block;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.telemetry-box {
    border-top: 1px solid #222;
    padding-top: 10px;
    font-size: 0.7rem;
    text-align: right;
}

/* CRT SCANLINES */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}


/* THE THEATER CONTAINER */
.theater-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* 1. VIDEO LAYER */
.cinema-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: filter 3s ease; /* Smooth dimming */
}

    .cinema-layer.dimmed {
        filter: brightness(0.3) blur(2px); /* Push video to back when Console appears */
    }

/* 2. IGNITION LAYER (Start Button) */
.ignition-layer {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
}

.ignition-btn {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 15px 40px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

    .ignition-btn:hover {
        background: var(--color-gold);
        color: #000;
        box-shadow: 0 0 20px var(--color-gold);
    }

/* 3. NARRATIVE LAYER (Subtitles) */
.narrative-layer {
    position: absolute;
    z-index: 20;
    bottom: 20%;
    width: 100%;
    text-align: center;
}

.subtitle-box {
    font-size: 2rem;
    text-shadow: 0 2px 10px #000;
    background: rgba(0,0,0,0.5);
    padding: 10px 30px;
    display: inline-block;
}

/* 4. CONSOLE LAYER (Final UI) */
.console-layer {
    position: absolute;
    z-index: 30;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.fade-in {
    animation: fadeIn 2s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- THE NAVIGATION LINK CONTAINER --- */
.axis-logo-link {
    display: block;
    cursor: pointer; /* The Hand */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50%; /* For glow spread */
}

    /* HOVER STATE: IGNITION */
    .axis-logo-link:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px var(--color-gold));
    }

/* --- ANIMATION PHYSICS --- */

/* 1. THE ORBIT (Slow, Celestial Rotation) */
.axis-orbit-group {
    transform-origin: 50% 50%;
    animation: celestial-spin 30s linear infinite;
}

/* On hover, the orbit speeds up (Energy Injection) */
.axis-logo-link:hover .axis-orbit-group {
    animation-duration: 5s;
}

/* 2. THE CORE (Breathing/Pulsing) */
.axis-core-group {
    transform-origin: 50% 50%;
    animation: core-pulse 4s ease-in-out infinite;
}

/* --- KEYFRAMES --- */

@keyframes celestial-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes core-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    /* Subtle breathing */
}