* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100% !important;
    height: auto;
    display: block;
}

html, body {
    width: 100%;
    overflow-x: hidden; 
    background: #080808; /* High-Fidelity Deep Grey */
}

body.loading {
    overflow: hidden;
}

.bio-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.bio-link:hover {
    text-shadow: 0 0 8px var(--accent-color);
    text-decoration: underline;
}

:root {
    --bg-color: #1a1512; /* Deep warm charcoal */
    --text-color: #ffffff;
    --accent-color: #FF7F00; /* Safety Orange */
    --glow-color: rgba(255, 127, 0, 0.4); /* Orange Glow */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-header: 'Inter', sans-serif;
    --font-body: 'Space Mono', monospace;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    background-color: var(--bg-color); 
    scroll-behavior: smooth;
}

body {
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2; /* Deepest layer */
    pointer-events: none;
    filter: none; /* Keep it sharp! */
    opacity: 1;
}

/* Atmospheric Layer */
.aura-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; /* Above sharp background, below content */
    pointer-events: none;
}

.blur-mask {
    width: 100%; height: 100%;
    backdrop-filter: blur(60px) brightness(0.8);
    -webkit-mask-image: radial-gradient(circle 40px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, black 100%);
    mask-image: radial-gradient(circle 40px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, black 100%);
}

h1, h2, h3 {
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    opacity: 0.2;
    transform: translateX(-15px);
    transition: none; /* Reset state */
}

h3.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; /* Slight delay for h3 after h2 */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

/* Glass Components */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    pointer-events: none; /* Only children interact */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
    background: rgba(26, 21, 18, 0.85); /* Deep warm glass */
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 30px;
    pointer-events: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    pointer-events: auto;
}

.logo {
    text-decoration: none;
    pointer-events: auto;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2005; /* Above mobile menu overlay */
}

.donnie-logo-svg {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.logo:hover .donnie-logo-svg {
    transform: scale(1.05);
}

.logo-fade-target {
    transition: 
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
        height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.6s;
    display: flex;
    align-items: center;
    min-width: 100px;
    height: 75px; /* Base desktop height */
    max-width: 40vw; /* Cap width to prevent nav crowding */
    overflow: visible;
}

.logo-fade-target.mini {
    height: 50px;
}

/* Base Logo Sizing */
.brand-logo {
    height: 75px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Optimized High-Fidelity Mini Logo */
.logo-fade-target.mini .brand-logo {
    height: 38px;
    opacity: 0.95;
}

@media (max-width: 1024px) {
    .logo-fade-target {
        height: 50px;
        min-width: 80px;
    }
    .logo-fade-target.mini {
        height: 38px;
    }
    .brand-logo {
        height: 50px;
    }
    .logo-fade-target.mini .brand-logo {
        height: 28px; /* Safe, minimalist mobile branding */
    }
}

.logo:hover .brand-logo {
    transform: scale(1.05);
}



/* Old CSS Logo Styles Removed */

.nav-links {
    display: flex;
    gap: 5px;
    list-style: none;
    pointer-events: auto;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 20px;
    opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    opacity: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* Sections Fade On/Off */
.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-out;
    will-change: opacity, transform;
    position: relative;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px; /* Subtle architectural grid */
}

.section.visited,
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section {
        opacity: 1 !important;
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .section {
        opacity: 1 !important; /* Force visible on mobile if observer fails */
        transform: none !important;
        padding: 60px 0;
    }
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: hidden; /* Contain everything */
}

.professional-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
}

.professional-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 0; /* Removing internal padding to keep things tight */
    width: 100%;
}

#writings .professional-item {
    align-items: start;
}

.vimeo-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

h2 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 40px;
    line-height: 0.85;
    color: var(--text-color);
    position: relative;
    
    /* Default un-animated state */
    opacity: 0.1; /* Almost invisible but safe */
    filter: blur(10px);
    transform: translateY(20px);
    /* Entry transition */
    transition: 
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    will-change: transform, opacity, filter;
}

h2.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Reset state (no transition when losing .visible) */
h2:not(.visible) {
    transition: none;
}

/* Precise neon accent line that grows from nothing */
h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

h2.visible::after {
    width: 180px;
}

/* Subtle digital pulse on the accent line */
@keyframes linePulse {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 10px var(--accent-color); }
    50% { opacity: 1; box-shadow: 0 0 25px var(--accent-color); }
}

h2.visible::after {
    animation: linePulse 2s ease-in-out infinite alternate;
}

/* Hero Full Splash State */
.hero-splash {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 140px;
    overflow: hidden;
    background: transparent;
}

@media (max-width: 768px) {
    .hero-splash {
        display: none !important;
    }
}


/* Atmospheric Master Pulse */
.hero-splash::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw; height: 150vh;
    background: radial-gradient(circle, rgba(212, 255, 58, 0.08) 0%, transparent 70%);
    opacity: var(--bg-pulse, 0);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.05s linear;
}

/* Subtle Audio-Synced Atmosphere */
.hero-splash::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw; height: 140vh;
    background: radial-gradient(circle, rgba(255, 127, 0, 0.08) 0%, transparent 70%);
    opacity: var(--bg-pulse, 0);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.05s linear;
}
.hero-content {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

#vocal-hub {
    margin-top: 15px;
    padding: 12px;
}

#vocal-label {
    font-size: 8px;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 8px;
}

#vocal-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vocal-slot {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.vocal-slot:hover {
    background: rgba(212, 255, 58, 0.1);
    border-color: #d4ff3a;
    color: #d4ff3a;
}

.glitch-container {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

.sequencer-hero {
    width: 100%;
    height: auto;
}

.hero-sequencer-card {
    width: 100vw;
    height: 100vh;
    background: transparent;
    border: none;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    animation: seqReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes seqReveal {
    0% { opacity: 0; transform: scale(0.95) translateY(30px); filter: blur(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@media (max-width: 768px) {
    .hero-sequencer-card {
        height: 100vh;
        width: 100vw;
    }
}



.glitch .letter {
    display: inline-block;
    transition: all 0.3s ease;
}

.glitch .letter:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    text-shadow: 0 0 30px var(--accent-color);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* About Section Grid (Desktop) */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto 1fr; /* Ensures header and bio stack tightly */
    grid-template-areas: 
        "header poster"
        "bio poster";
    gap: 0 60px;
    align-items: start;
    margin-bottom: 60px;
}

.about-header {
    grid-area: header;
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 0 0 20px 0 !important; /* Tight margin to bio-text */
    line-height: 1;
}

.about-bio {
    grid-area: bio;
}

.about-bio p {
    font-size: 1.05rem;
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-poster-side {
    grid-area: poster;
    position: sticky;
    top: 100px;
    align-self: start;
    margin-top: 5px; /* Visual optical alignment with cap-height */
}

.poster-container {
    padding: 15px !important;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    
    /* Reveal + Parallax State */
    opacity: 0;
    --parallax-y: var(--poster-parallax, 0px);
    transform: perspective(1000px) rotateY(-5deg) translateY(calc(30px + var(--parallax-y)));
    transition: 
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
        box-shadow 0.8s ease,
        border-color 0.5s ease;
    border: 1px solid var(--glass-border);
}

.poster-container.visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(-5deg) translateY(var(--parallax-y));
}

/* Blueprint decoration corners */
.poster-container::before, .poster-container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--accent-color);
    border-style: solid;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.poster-container::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.poster-container::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.poster-container:hover::before, .poster-container:hover::after {
    opacity: 1;
}

.poster-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 255, 58, 0.15);
    border-color: var(--accent-color);
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.5s ease;
    /* Crop bottom 30px to hide "Veo" watermark */
    clip-path: inset(0 0 30px 0);
    margin-bottom: -30px;
}

.poster-container:hover .poster-image {
    filter: grayscale(0) contrast(1);
}

.poster-metadata {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* About Section Mobile Overrides */
@media (max-width: 1024px) {
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin-bottom: 40px;
    }

    .about-header {
        order: 1;
        margin-bottom: 20px;
        font-size: 3.5rem;
    }

    .about-poster-side {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        margin: 0 0 40px 0 !important;
        display: block !important;
        position: relative !important;
        top: 0 !important;
    }

    .about-bio {
        order: 3;
    }

    .poster-container, 
    .poster-container.visible {
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0px !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
    }

    .poster-image {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
    }

    .poster-container::before, 
    .poster-container::after {
        display: none !important;
    }
}

/* Experience & Professional Work Styling */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.experience-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    transition: var(--transition);
}

.experience-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(212, 255, 58, 0.1);
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(1) brightness(0.6);
    transition: filter 0.5s ease;
}

.experience-card:hover .card-image {
    filter: grayscale(0) brightness(1);
}

.card-content {
    padding: 25px;
}

.experience-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.role {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tech-stack {
    list-style: none;
    padding: 0;
}

.tech-stack li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0.8;
}

.art-gallery-container {
    grid-column: 1 / -1;
    margin-bottom: 60px;
    padding-top: 20px;
}

.gallery-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    letter-spacing: 3px;
    opacity: 0.9;
    text-align: left;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
    gap: 15px;
}

.art-item {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

/* Variance in Masonry Sizing */
.art-item:nth-child(4n) { grid-column: span 2; }
.art-item:nth-child(7n) { grid-row: span 2; }

.art-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.3) contrast(1.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.art-item::after {
    content: attr(data-label);
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--font-header);
    font-size: 0.6rem;
    color: var(--accent-color);
    background: rgba(0,0,0,0.8);
    padding: 4px 8px;
    border: 1px solid var(--accent-color);
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.art-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.art-item:hover img {
    transform: scale(1.08); /* Tight, premium zoom */
    filter: saturate(1.2) contrast(1.2);
}

.art-item .art-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    opacity: 0;
    transition: 0.4s ease;
}

.art-item:hover .art-caption {
    opacity: 1;
}

.art-item h4 {
    font-family: var(--font-header);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin: 0;
    color: var(--accent-color);
}

/* High-Fidelity Lazy Loading & Optimization */
img {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

img[loading="lazy"] {
    opacity: 0.1;
    filter: blur(10px);
}

img.loaded {
    opacity: 1;
    filter: blur(0);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Utilities */
.full-width {
    grid-column: 1 / -1;
}

.tag {
    font-size: 0.65rem;
    font-family: var(--font-body);
    color: var(--accent-color);
    background: rgba(212, 255, 58, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(212, 255, 58, 0.2);
    letter-spacing: 1px;
}

#mashup-generator {
    margin-top: 40px;
}



/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: var(--transition);
}

.gallery-item:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Audio Items */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.audio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.audio-info {
    flex: 1;
    min-width: 200px;
}

.audio-info h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.audio-info p {
    font-size: 0.7rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

audio {
    height: 30px;
    filter: invert(1) hue-rotate(180deg) brightness(1.5); /* Make it fit the theme */
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.video-item {
    aspect-ratio: 16/9;
    border-radius: 15px;
    aspect-ratio: 16 / 9;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-preview {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    font-size: 3rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
    margin-bottom: 10px;
}

.professional-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
}

.professional-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    border-radius: 40px;
}

/* Tablet Stacking Breakpoint */
@media (max-width: 1100px) {
    .professional-item {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }
}

.vimeo-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    display: block;
}

.vimeo-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.professional-info {
    width: 100%;
}

.professional-info h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.professional-info p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Form */
.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 40px;
    padding: 60px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 15px;
    padding: 18px 25px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 255, 58, 0.1);
}

.submit-btn {
    background: var(--accent-color);
    color: #000;
    border-radius: 50px;
    padding: 18px 50px;
    font-weight: 700;
    font-family: var(--font-header);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-color);
}

/* Modals */
.modal {
    display: none; /* Removed !important */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content video, 
.modal-content img,
.modal-content iframe {
    width: 100%;
    max-height: 85vh;
    border: none;
    box-shadow: 0 50px 150px rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    object-fit: contain;
}



/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000; /* Over everything */
    pointer-events: auto; /* IMPORTANT: MUST BE CLICKABLE */
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--accent-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--accent-color);
}



/* Mobile */
@media (max-width: 768px) {
    .logo {
        display: flex !important;
    }

    .nav-content {
        justify-content: space-between !important;
        gap: 0;
        pointer-events: auto;
    }

    body {
        padding-top: 60px; /* Space for sticky nav */
    }

    .nav-icon-btn {
        margin-right: 10px;
        padding: 8px;
    }
    .glass-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: 0;
        background: rgba(8, 8, 8, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 10px 20px;
        z-index: 2000;
        pointer-events: auto;
    }
    
    .nav-right {
        width: auto;
        display: flex;
        align-items: center;
    }

    .nav-right > *:not(.hamburger) {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
    }

    
    .blur-mask {
        backdrop-filter: blur(15px) brightness(0.8);
    }

    .glass-nav, .glass-card, #mini-player, .poster-container {
        backdrop-filter: blur(8px) !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start; /* Start from top to allow scrolling */
        align-items: center;
        gap: 15px;
        padding: 100px 0 50px 0; /* Clear room for header/logo */
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        display: flex;
        pointer-events: none;
        opacity: 0;
        overflow-y: auto; /* Allow scrolling on small phones */
    }
    
    .nav-links.active {
        display: flex !important;
        transform: translateY(0);
        pointer-events: all;
        opacity: 1;
        z-index: 3000;
    }
    
    .nav-links a {
        font-size: 1.6rem;
        font-family: var(--font-header);
        letter-spacing: 4px;
        padding: 10px 0;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .about-grid, 
    .professional-item {
        grid-template-columns: 1fr;
    }
    
    .professional-item {
        padding: 20px;
    }
}


footer {
    padding: 50px 0;
    text-align: center;
    opacity: 0.3;
    font-size: 0.7rem;
}
/* Mini Audio Player */
#mini-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 280px;
    padding: 18px 22px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mini-player.minimized {
    width: auto;
    padding: 10px 18px;
    gap: 0;
    border-radius: 40px;
}

#player-toggle {
    position: absolute;
    top: 8px; right: 12px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s;
    line-height: 1;
}

#player-toggle:hover { opacity: 1; }

#mini-player.minimized .player-info,
#mini-player.minimized .player-progress-container,
#mini-player.minimized #player-toggle {
    display: none;
}

#mini-player.minimized .player-controls {
    gap: 15px;
}

#mini-player.minimized .player-controls button {
    font-size: 1.1rem;
}

#mini-player.minimized:hover #player-toggle {
    display: block; /* Show toggle when hovering even if minimized */
    top: -5px;
    right: 50%;
    transform: translateX(50%) rotate(180deg);
}

#mini-player.visible {
    opacity: 1;
    transform: translateY(0);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#player-track-title {
    font-family: var(--font-header);
    font-size: 1rem;
    color: #fff;
    letter-spacing: 1.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#player-track-desc {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--accent-color);
    opacity: 0.8;
}

.player-progress-container {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer; /* Seekable */
    margin-top: 10px;
}

#player-progress-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    width: 0%;
    position: relative;
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.1s linear;
}

#player-progress-bar.buffering {
    background: repeating-linear-gradient(
        -45deg,
        var(--accent-color),
        var(--accent-color) 10px,
        rgba(212, 255, 58, 0.4) 10px,
        rgba(212, 255, 58, 0.4) 20px
    );
    background-size: 28px 28px;
    animation: bufferStripe 1s linear infinite;
    box-shadow: 0 0 15px rgba(212, 255, 58, 0.8);
}

@keyframes bufferStripe {
    0% { background-position: 0 0; }
    100% { background-position: 28px 0; }
}

#player-progress-head {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
}

/* Spectrum Visualizer */
.player-spectrum {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 15px;
    margin-top: 15px;
    opacity: 0.1; /* Dim when not playing */
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mini-player:not(.minimized) #player-visualizer.playing {
    opacity: 1;
}

.spec-bar {
    width: 3px;
    background: var(--accent-color);
    border-radius: 1px;
    height: 4px; /* Default height */
    transition: height 0.05s ease;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 4px 0;
}

.player-controls button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
}

.player-controls button:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.player-progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

#player-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

@media (max-width: 768px) {
    #mini-player {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 20px;
        padding: 12px 15px;
    }
}

/* Link Previews (Wikipedia Style) */
#link-preview {
    position: fixed;
    top: 0; left: 0;
    width: 250px;
    padding: 0;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

#link-preview.active {
    opacity: 1;
    transform: translateY(0);
}

#preview-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#preview-text {
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    line-height: 1.6;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

/* AI Mashup Generator */
#mashup-generator {
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#mashup-bg-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.mashup-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mashup-header h3 {
    font-family: var(--font-header);
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 0;
}

.mashup-header p {
    font-size: 0.6rem;
    opacity: 0.5;
    margin: 5px 0 0 0;
}

#mashup-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

#mashup-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

#mashup-overlay, #mashup-loading {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    transition: 0.5s ease;
}

#mashup-loading {
    background: rgba(0,0,0,0.8);
    display: none;
}

#mashup-loading.visible {
    display: flex;
}

.hidden {
    display: none !important;
}

.glow-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 25px;
    font-family: var(--font-header);
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px var(--accent-color-glow);
}

.glow-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px var(--accent-color);
}

#mashup-controls-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 15;
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

#mashup-generator:hover #mashup-controls-overlay {
    opacity: 1;
    pointer-events: auto;
}

#mashup-controls-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.mashup-btn-group {
    display: flex;
    gap: 15px;
}

.mashup-btn-group button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.mashup-btn-group button:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.mashup-volume-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    font-family: var(--font-header);
    letter-spacing: 1px;
}

#mashup-volume {
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    accent-color: var(--accent-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    #mashup-volume { width: 50px; }
}
/* Architectural Blueprint Corners Removed */

/* --- High-Fidelity Preloader & Boot Sequence --- */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(-45deg, #050505, #0a1f20, #1f0a1f, #051515);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


#preloader.loaded {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.preloader-content {
    text-align: center;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-branding {
    padding: 30px;
    margin-bottom: 20px;
    width: 100%;
}

.preloader-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(212, 255, 58, 0.3));
}

.boot-sequence {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--accent-color);
    text-align: left;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-bottom: 20px;
    opacity: 0.8;
}

.boot-line {
    margin-bottom: 5px;
    white-space: nowrap;
}

.loading-bar-container {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    position: relative;
}

.loading-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-color);
}


/* --- Mashup Engine Visual Optimization --- */
#mashup-audio-source {
    display: none;
    pointer-events: none;
}

#mashup-viewport {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    height: 480px; /* Essential fixed height to prevent 0px canvas bug */
    width: 100%;
}

@media (max-width: 768px) {
    #mashup-viewport {
        height: 280px; /* Responsive mobile scaling */
    }
}

#mashup-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.mini-glow-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 255, 58, 0.3);
    color: var(--accent-color);
    font-family: var(--font-header);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.mini-glow-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 255, 58, 0.4);
    transform: translateY(-2px);
}



/* --- Neural Workspace Framework --- */
.workspace-module {
    position: absolute;
    z-index: 500;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-module.collapsed .module-body {
    display: none;
}

.workspace-module.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.95);
}

.module-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    backdrop-filter: blur(10px);
}

.module-header:active { cursor: grabbing; }

.module-title {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    opacity: 1;
    font-weight: bold;
    pointer-events: none;
}

.module-toggle {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.4;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0 4px;
    transition: 0.2s;
}
.module-toggle:hover { opacity: 1; }

.module-body {
    padding: 15px;
    background: rgba(0, 0, 0, 0.25);
}

/* --- Neural Switchboard Dock --- */
#sequencer-dock {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    z-index: 1000;
    pointer-events: auto;
}

.dock-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.dock-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.dock-btn.active {
    background: rgba(212, 255, 58, 0.12);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 255, 58, 0.15);
}

/* Modifying existing components to strip their original card containers */
.stat-hub, #xy-pad-container, #track-manager, #motion-manager, #settings-manager {
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    min-width: unset !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#module-fx .module-body { padding: 12px; }
#xy-pad { 
    width: 140px; 
    height: 140px; 
    margin: 10px auto; 
    background: rgba(0, 0, 0, 0.4) linear-gradient(rgba(212, 255, 58, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 255, 58, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(212, 255, 58, 0.15);
    border-radius: 8px;
    position: relative;
    cursor: crosshair;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

#xy-pointer {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: left 0.1s linear, top 0.1s linear;
    z-index: 10;
}

#xy-pointer::before, #xy-pointer::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

/* Horizontal Line */
#xy-pointer::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    opacity: 0.8;
}

/* Vertical Line */
#xy-pointer::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    opacity: 0.8;
}

/* Central Target Nucleus */
#xy-pointer-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
}

/* --- Standardized HUD Global Architecture --- */
.hud-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.hud-card-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    font-weight: bold;
}

.hud-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud-add-btn {
    width: 100%;
    height: 34px;
    background: rgba(212, 255, 58, 0.15);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
    font-family: var(--font-header);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(212, 255, 58, 0.1);
}

.hud-add-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

.archive-btn {
    position: relative;
    overflow: hidden;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    width: 0%;
    opacity: 0.6;
    transition: width 0.1s linear;
}

.archive-btn.motion-item .archive-progress {
    background: #ff9900;
}

.archive-btn:hover {
    border-color: var(--accent-color);
    background: rgba(212, 255, 58, 0.05);
}

.archive-btn.active {
    background: rgba(212, 255, 58, 0.2) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    box-shadow: 0 0 10px rgba(212, 255, 58, 0.3);
}

.hud-chain-btn {
    background: transparent;
    border: 1px solid rgba(212, 255, 58, 0.3);
    border-radius: 4px;
    color: var(--accent-color);
    font-size: 0.6rem;
    font-family: var(--font-body);
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-weight: bold;
}

.hud-chain-btn:hover {
    border-color: var(--accent-color);
    background: rgba(212, 255, 58, 0.05);
}

.hud-chain-btn.active {
    background: var(--accent-color) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--accent-color);
    border-color: var(--accent-color);
}

/* Motion Archive Specifics */
#motion-rec-btn {
    border-color: #ff9900;
    color: #ff9900;
    background: rgba(255, 153, 0, 0.2);
    border-width: 2px;
}

#motion-rec-btn:hover {
    background: #ff9900;
    color: #000;
    box-shadow: 0 0 20px #ff9900;
}

#motion-list .archive-btn.active {
    background: rgba(255, 153, 0, 0.2) !important;
    border-color: #ff9900 !important;
    color: #ff9900 !important;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}

.hud-btn-list .archive-btn.motion-item.active {
    background: rgba(255, 153, 0, 0.2) !important;
    border-color: #ff9900 !important;
    color: #ff9900 !important;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.4);
}

#motion-rec-btn.recording {
    background: #ff3333 !important;
    color: #fff !important;
    border-color: #ff3333 !important;
    animation: pulse-red 1s infinite;
}

/* --- Final Display State Restore --- */
.hud-add-btn { 
    display: flex !important; 
    opacity: 1 !important; 
    visibility: visible !important;
}

#track-list, #motion-list, #settings-list { 
    margin-top: 10px; 
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 8px;
}

@keyframes simple-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -2px); }
    80% { transform: translate(1px, 2px); }
    100% { transform: translate(0); }
}

@media (max-width: 900px) {
    #sequencer-stats { gap: 10px; bottom: 20px !important; }
    .stat-hub { min-width: 100px; padding: 10px; }
}

#info-btn {
    position: relative;
    pointer-events: auto;
    width: 32px; height: 32px;
    border: 1px solid rgba(212, 255, 58, 0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 300;
    cursor: pointer; color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 1500;
}
#info-btn:hover { 
    background: var(--accent-color); 
    color: #000; 
    box-shadow: 0 0 15px var(--accent-color); 
}

.glass-modal {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85%; max-width: 600px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(212, 255, 58, 0.2);
    border-radius: 20px;
    padding: 40px;
    z-index: 3000;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-modal.hidden { 
    opacity: 0; 
    pointer-events: none; 
    transform: translate(-50%, -40%) scale(0.9); 
}

.modal-content { color: #fff; font-family: var(--font-mono); position: relative; }
.close-btn { position: absolute; top: -20px; right: -10px; font-size: 2rem; cursor: pointer; color: var(--accent-color); transition: 0.3s; }
.close-btn:hover { transform: rotate(90deg); color: #fff; }

.accent { color: var(--accent-color); letter-spacing: 0.2rem; margin-bottom: 20px; border-bottom: 1px solid rgba(212,255,58,0.3); padding-bottom: 10px; }
.mono-fine { font-size: 0.8rem; opacity: 0.7; margin-bottom: 30px; line-height: 1.6; }
.info-grid { display: flex; flex-direction: column; gap: 20px; }
.info-item { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; border-left: 3px solid var(--accent-color); }
.info-item h4 { font-size: 0.75rem; letter-spacing: 0.1rem; margin-bottom: 10px; color: var(--accent-color); opacity: 0.8; }
.info-item p { font-size: 0.85rem; line-height: 1.5; opacity: 0.8; }
.accent-dim { color: rgba(212, 255, 58, 0.6); }

@keyframes pulse-red {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5) drop-shadow(0 0 10px #ff3333); }
}

#key-hub {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#key-hub:hover {
    border-color: #00ffff !important;
    background: rgba(0, 255, 255, 0.05);
}
#key-hub:hover #seq-key {
    color: #00ffff;
    opacity: 1;
}
#key-hub:hover .hud-slider::after {
    background: #00ffff;
    box-shadow: 0 0 15px #00ffff;
}

/* --- CRT Monitor Scanlines & Visuals --- */
.scan-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 2000;
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#scanline-x {
    width: 1.5px;
    height: 100%;
    top: 0;
    left: -2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

#scanline-y {
    width: 100%;
    height: 1.5px;
    top: -2px;
    left: 0;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
}

/* Global Monitor Flicker */
.hero-sequencer-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.2;
    animation: monitorFlicker 0.1s infinite;
}

@keyframes monitorFlicker {
    0% { opacity: 0.2; }
    50% { opacity: 0.22; }
    100% { opacity: 0.2; }
}

@keyframes scanlinePulse {
    0% { opacity: 0.4; box-shadow: 0 0 10px var(--accent-color); }
    50% { opacity: 0.8; box-shadow: 0 0 25px var(--accent-color); }
    100% { opacity: 0.4; box-shadow: 0 0 10px var(--accent-color); }
}

.scan-overlay.active {
    animation: scanlinePulse 0.15s ease-out;
}

/* --- Global Dashboard Controls (Nav-Right) --- */
#seq-mute-btn, #seq-pad-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#seq-mute-btn:hover, #seq-pad-btn:hover {
    border-color: var(--accent-color);
    background: rgba(212, 255, 58, 0.1);
    box-shadow: 0 0 15px rgba(212, 255, 58, 0.2);
}

#seq-mute-btn.muted, #seq-pad-btn:not(.active) {
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

#seq-mute-btn.muted {
    color: #ff3333;
    border-color: rgba(255, 51, 51, 0.3);
}

@media (max-width: 1024px) {
    .hud-top {
        top: 20px;
        left: 20px;
        right: 20px;
    }
    .hud-top h2 {
        display: none; /* Hide long label on mobile */
    }
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
}
.pagination-controls.hidden {
    display: none !important;
}
#audio-page-info {
    color: var(--accent);
    font-weight: bold;
}

/* Lairds Console Hardware Frame */
.lairds-console {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    color: var(--text-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 2px 5px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    font-family: var(--font-header);
    border-bottom: 4px solid #000;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.console-header .brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.console-header .sub-brand {
    font-size: 0.6rem;
    opacity: 0.5;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.console-main {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .console-main {
        grid-template-columns: 1fr;
    }
}

/* Knobs & Controls */
.knob-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.knob-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.knob-group label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    opacity: 0.7;
    font-family: var(--font-body);
}

.knob {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #333 0%, #111 100%);
    border-radius: 50%;
    border: 3px solid #222;
    position: relative;
    cursor: ns-resize;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.1s ease;
}

.knob::after {
    content: "";
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    opacity: 0.2;
}

.knob-indicator {
    width: 4px;
    height: 12px;
    background: var(--accent-color);
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-color);
}

.console-modes {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mode-btn {
    background: #222;
    border: 1px solid #333;
    color: #666;
    padding: 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn.active {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--glow-color);
}

/* Viewport Integration */
.console-center {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    height: 450px;
    position: relative;
}

.hero-sequencer-card {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* AudioPad & Stats */
.audiopad-panel {
    background: #080808;
    border: 1px solid #333;
    height: 180px;
    border-radius: 4px;
    position: relative;
    margin-bottom: 20px;
    cursor: crosshair;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.audiopad-panel:hover {
    border-color: var(--accent-color);
}

.audiopad-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 15px var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.audiopad-panel:hover .audiopad-cursor {
    opacity: 1;
}

.scope-label {
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 0.5rem;
    opacity: 0.4;
    letter-spacing: 1px;
    pointer-events: none;
}

.console-actions {
    display: flex;
    gap: 10px;
}

.console-btn.active {
    background: #ff9900 !important;
    color: #000 !important;
    box-shadow: 0 0 15px #ff9900;
}

.console-btn.recording {
    background: #ff3333 !important;
    color: #fff !important;
    border-color: #ff3333 !important;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

.console-stats {
    background: #111;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
}

.stat-item .label {
    font-size: 0.6rem;
    opacity: 0.5;
}

.stat-item .value {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.console-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.console-btn {
    background: #333;
    border: 1px solid #444;
    color: white;
    padding: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.console-btn:hover {
    background: #444;
}

/* Keyboard Strip */
.console-footer {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.piano-strip {
    display: flex;
    gap: 1px;
    height: 160px;
    background: #111; /* Deep industrial black */
    padding: 15px;
    border-radius: 12px;
    box-shadow: 
        inset 0 4px 15px rgba(0,0,0,1),
        0 4px 10px rgba(0,0,0,0.5);
    position: relative;
    user-select: none;
    border: 1px solid #333;
}

.key {
    flex: 1;
    background: linear-gradient(to bottom, #dcdcdc 0%, #ffffff 100%);
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
    border: 1px solid #aaa;
    border-top: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 10px;
}

.key-label {
    font-family: var(--font-header);
    font-size: 0.6rem;
    font-weight: 900;
    color: #888;
    pointer-events: none;
    letter-spacing: 1px;
}

.key.black {
    background: linear-gradient(135deg, #0a0a0a 0%, #222 100%);
    flex: 0 0 48px; /* Do not grow or shrink, fixed at 48px */
    width: 48px;
    min-width: 48px;
    height: 110px;
    margin-left: -24px;
    margin-right: -24px;
    z-index: 10;
    border-radius: 0 0 5px 5px;
    border: 2px solid #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    border-top: 1px solid #333;
}

.key:hover {
    background: #fdfdfd;
}

.key.active, .key:active {
    background: var(--accent-color);
    transform: translateY(3px);
    box-shadow: 
        0 0 30px var(--glow-color), 
        inset 0 4px 10px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.key.active .key-label, .key:active .key-label {
    color: #000;
    opacity: 0.8;
}

.key.black.active, .key.black:active {
    background: var(--accent-color);
    box-shadow: 0 0 40px var(--glow-color);
    border-color: #000;
}

/* Order Form Section */
.order-container {
    max-width: 900px;
    margin: 0 auto;
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr;
    }
}

.order-summary .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 10px 0;
}

.order-preview-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-selector input {
    width: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 5px;
    border-radius: 4px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.checkout-form input, .contact-form input, .contact-form textarea, .artist-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.checkout-form input:focus, .contact-form input:focus, .contact-form textarea:focus, .artist-form input:focus {
    border-color: var(--accent-color);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.full-width {
    width: 100%;
}

/* Featured Artist Section */
.artist-hero {
    text-align: center;
    padding: 60px 40px;
}

.promo-text {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.artist-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .artist-actions {
        grid-template-columns: 1fr;
    }
}

.artist-cta-box {
    border-right: 1px solid var(--glass-border);
    padding-right: 40px;
}

@media (max-width: 768px) {
    .artist-cta-box {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 40px;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form textarea {
    min-height: 150px;
}

/* Nav Scaling Fix for many links */
.nav-links a {
    font-size: 0.6rem;
    padding: 6px 12px;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Hide for mobile to rely on hamburger later or keep simple */
    }
}

/* Product Section */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-media {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.media-main img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.media-thumbnails {
    display: flex;
    gap: 15px;
}

.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.thumb:hover {
    opacity: 1;
}

.thumb.active {
    border-color: var(--accent-color);
    opacity: 1;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-title {
    font-size: 3rem;
    margin-bottom: 0;
    opacity: 1;
    filter: none;
    transform: none;
}

.product-title::after {
    display: none;
}

.product-actions {
    display: flex;
    gap: 20px;
}

.product-btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--accent-color);
}

.product-btn.primary {
    background: var(--accent-color);
    color: var(--bg-color);
}

.product-btn.primary:hover {
    box-shadow: 0 0 15px var(--accent-color);
    background: #e67300;
}

.product-btn.secondary {
    background: transparent;
    color: var(--accent-color);
}

.product-btn.secondary:hover {
    background: rgba(255, 127, 0, 0.1);
}

.product-copy p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    opacity: 0.9;
}

.product-specs ul {
    list-style: none;
    padding: 0;
    font-family: var(--font-body);
}

.product-specs li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.product-specs li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.product-disclaimer {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 20px;
}
