:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --accent-red: #ff1e2d;
    --border-glass: rgba(255, 255, 255, 0.12);
}

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

html {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    touch-action: pan-y;
}

/* Official Lenis smooth scroll specifications */
html.lenis, html.lenis body {
    height: auto !important;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Ambient Cosmic Background */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse 85% 65% at 50% 50%, rgba(20, 25, 45, 0.35) 0%, rgba(0, 0, 0, 0.96) 75%),
        #000000;
    overflow: hidden;
}

.cosmic-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    z-index: 0;
}

/* North Star Circumpolar Starfield Canvas */
.starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    display: block;
}

/* Subtle Astronomical Celestial Coordinate Rings */
.celestial-rings {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1400px;
    height: 1400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
    background: radial-gradient(circle, 
        transparent 15%, 
        rgba(255, 255, 255, 0.02) 15.5%, transparent 16%,
        transparent 28%, 
        rgba(255, 255, 255, 0.015) 28.5%, transparent 29%,
        transparent 45%, 
        rgba(255, 255, 255, 0.012) 45.5%, transparent 46%,
        transparent 65%, 
        rgba(255, 255, 255, 0.008) 65.5%, transparent 66%);
    animation: celestial-orbit 240s linear infinite;
}

@keyframes celestial-orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Fixed Header / Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.top-bar .brand-badge {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

/* Audio Status / Mute Button */
.audio-toggle {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.1rem;
    background: rgba(20, 20, 25, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.audio-toggle:hover {
    background: rgba(35, 35, 45, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
}

.audio-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #cbd5e1;
    text-transform: uppercase;
}

.audio-waves {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 14px;
}

.audio-waves .bar {
    width: 2.5px;
    height: 100%;
    background-color: var(--accent-red);
    border-radius: 2px;
    transform-origin: bottom;
    transform: scaleY(0.25);
    transition: transform 0.2s ease;
}

.audio-waves.playing .bar-1 { animation: wave 1.1s infinite ease-in-out; }
.audio-waves.playing .bar-2 { animation: wave 1.3s infinite ease-in-out 0.2s; }
.audio-waves.playing .bar-3 { animation: wave 0.9s infinite ease-in-out 0.4s; }
.audio-waves.playing .bar-4 { animation: wave 1.2s infinite ease-in-out 0.1s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.25); }
    50% { transform: scaleY(1.0); }
}

/* Audio Autoplay Notification Banner */
.audio-banner {
    position: fixed;
    top: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.4rem;
    background: rgba(18, 18, 26, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 30, 45, 0.5);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 30, 45, 0.35);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: banner-pulse 2.2s infinite ease-in-out;
}

.audio-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -15px);
}

.banner-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
}

@keyframes banner-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 30, 45, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 30, 45, 0.75); }
}

/* MAIN PINNED CONTAINER */
.cinematic-wrapper {
    position: relative;
    width: 100vw;
    background-color: transparent;
}

.pin-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Central Stage Container */
.stage {
    position: relative;
    width: 90vw;
    max-width: 900px;
    aspect-ratio: 1360 / 666;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

/* North Star Ambient Sparkle / Corona Flare */
.north-star-sparkle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 238, 255, 0.45) 0%, rgba(120, 180, 255, 0.18) 35%, transparent 70%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 6;
    mix-blend-mode: screen;
    animation: northstar-pulse 3.5s ease-in-out infinite alternate;
}

@keyframes northstar-pulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.35; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.85; }
}

/* Portal Flare / Glow behind the opening of the X */
.portal-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 190, 255, 0.7) 0%, rgba(70, 120, 255, 0.25) 45%, transparent 70%);
    filter: blur(28px);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

/* YEARS PORTAL (Inside the center of the X) */
.years-portal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.year-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.15);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity, filter;
}

/* Silver years (2015, 2016, 2017, 2024) */
.year-silver {
    font-family: 'Syncopate', 'Orbitron', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8.5rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 55%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.28), 0 0 24px rgba(160, 200, 255, 0.12);
}

/* Dramatic Red Year (2026?) with Question Mark */
.year-red {
    font-family: 'Syncopate', 'Orbitron', sans-serif;
    font-size: clamp(4rem, 12vw, 10.5rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: var(--accent-red);
    text-shadow: 0 0 16px rgba(255, 30, 45, 0.45), 0 0 35px rgba(255, 30, 45, 0.2);
}

.year-red .year-q {
    color: var(--accent-red);
    margin-left: 0.05em;
    text-shadow: 0 0 18px rgba(255, 30, 45, 0.5), 0 0 35px rgba(255, 30, 45, 0.22);
    display: inline-block;
}

/* FOREGROUND METALLIC LOGO CONTAINER AND LAYERS */
.logo-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
    pointer-events: none;
}

.logo-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform, opacity;
}

.layer-tech {
    z-index: 8;
    transform-origin: center center;
}

.layer-etra {
    z-index: 8;
    transform-origin: center center;
}

.layer-x {
    z-index: 9;
    /* Scale exactly around the central aperture/hole of the X */
    transform-origin: 50% 50%;
}

/* COMING SOON FINALE WRAPPER (Appears AFTER 2026? dissolves, dead center with NO overlap) */
.coming-soon-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 95vw;
    max-width: 1100px;
    padding: 0 1.5rem;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.final-badge {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.45em;
    color: var(--accent-red);
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 30, 45, 0.75), 0 0 30px rgba(255, 30, 45, 0.4);
}

.title-text {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2.4rem, 6.5vw, 6rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1.05;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 55%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.6), 0 0 75px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.subtitle-text {
    font-weight: 500;
    letter-spacing: 0.4em;
    font-size: clamp(0.75rem, 1.8vw, 1.3rem);
    color: #cbd5e1;
    margin-top: 1.2rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subtitle-text::before,
.subtitle-text::after {
    content: '';
    display: inline-block;
    width: 35px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
}

.subtitle-text::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
}

.edition-badge {
    margin-top: 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    padding: 0.45rem 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #94a3b8;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* COUNTDOWN TIMER COMPONENT (23 Oct 12:00 AM) */
.countdown-wrapper {
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background: rgba(14, 16, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 30, 45, 0.06);
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
    padding: 0.4rem 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.timer-box:hover {
    border-color: rgba(255, 30, 45, 0.4);
    transform: translateY(-2px);
}

.timer-number {
    font-family: 'Orbitron', 'Syncopate', monospace;
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 0 24px rgba(255, 30, 45, 0.25);
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(0.48rem, 0.85vw, 0.58rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #94a3b8;
    margin-top: 0.35rem;
    text-transform: uppercase;
}

.timer-divider {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 2.8vw, 1.8rem);
    font-weight: 700;
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 30, 45, 0.6);
    margin: 0 -0.1rem;
    animation: blink-colon 2s infinite ease-in-out;
}

@keyframes blink-colon {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.25; }
}

@media (max-width: 600px) {
    .countdown-timer {
        gap: 0.3rem;
        padding: 0.6rem 0.8rem;
    }
    .timer-box {
        min-width: 50px;
        padding: 0.25rem 0.3rem;
    }
    .timer-divider {
        font-size: 1.05rem;
    }
}


/* Mobile responsive refinements */
@media (max-width: 768px) {
    .top-bar {
        padding: 1.2rem 1.2rem;
    }
    .stage {
        width: 95vw;
    }
    .title-text {
        white-space: normal;
    }
    .subtitle-text::before,
    .subtitle-text::after {
        width: 18px;
    }
    .audio-banner {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
        white-space: nowrap;
    }
}