:root {
    --bg-black: #0a0a0a;
    --conspiracy-gray: #2a2a2a;
    --glitch-red: #8b0000;
    --decrypted-purple: #4a3a7a;
    --scan-green: #00a86b;
    --mkultra-pink: #e61941;
    --terminal-font: 'Space Mono', monospace;
    --body-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: #e0e0e0;
    font-family: var(--body-font);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* === LOADER === */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.loader-content {
    text-align: center;
    font-family: var(--terminal-font);
}

.cube-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--glitch-red);
    margin: 0 auto 20px;
    animation: spin 1s infinite linear;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: #333;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--glitch-red);
    animation: loadProgress 2.5s ease-out forwards;
}

body.loading-complete #loader {
    opacity: 0;
    pointer-events: none;
}

/* === OVERLAYS === */
#scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.6;
}

#noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('noise.png');
    opacity: 0.05;
    z-index: 9991;
    pointer-events: none;
}

#vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, black 150%);
    z-index: 9992;
    pointer-events: none;
}

/* === CUSTOM CURSOR === */
#cursor-dot, #cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--glitch-red);
}

#cursor-trail {
    width: 20px;
    height: 20px;
    border: 1px solid var(--glitch-red);
    transition: width 0.2s, height 0.2s, top 0.1s, left 0.1s;
}

body.hovering #cursor-trail {
    width: 40px;
    height: 40px;
    background: rgba(139, 0, 0, 0.2);
    border-color: transparent;
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--terminal-font);
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-family: var(--terminal-font);
    font-size: 0.9rem;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-item:hover {
    opacity: 1;
    color: var(--glitch-red);
}

.hamburger {
    display: none;
}

/* === HERO SECTION === */
#hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    pointer-events: none; /* Let clicks pass to canvas if needed, but buttons need pointer-events auto */
}

.hero-content > * {
    pointer-events: auto;
}

.terminal-line {
    font-family: var(--terminal-font);
    color: var(--scan-green);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

h1.glitch-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px var(--glitch-red);
    position: relative;
}

.subtitle {
    font-family: var(--terminal-font);
    font-weight: 400;
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #888;
}

.cta-btn {
    background: transparent;
    border: 1px solid var(--glitch-red);
    color: var(--glitch-red);
    padding: 15px 30px;
    font-family: var(--terminal-font);
    font-size: 1rem;
    cursor: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--glitch-red);
    color: #000;
    box-shadow: 0 0 20px var(--glitch-red);
}

/* === SECTIONS GENERAL === */
section {
    padding: 100px 0;
    min-height: 100vh;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    background: var(--bg-black);
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--terminal-font);
    font-size: 2rem;
    margin-bottom: 60px;
    border-left: 4px solid var(--glitch-red);
    padding-left: 20px;
    text-transform: uppercase;
}

/* === MANIFESTO === */
.grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.redacted-block p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.redacted {
    background: #fff;
    color: #fff;
    width: fit-content;
    user-select: none;
    cursor: help;
}

.redacted:hover {
    background: transparent;
    color: var(--glitch-red);
    text-decoration: line-through;
}

/* Layered Text for ARG */
.layered-text {
    position: relative;
    margin-bottom: 20px;
}

.layer-hidden {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    color: var(--glitch-red);
    font-family: var(--terminal-font);
    font-size: 0.8em;
    letter-spacing: 2px;
    transition: opacity 0.5s;
    pointer-events: none;
    background: rgba(0,0,0,0.8);
    width: 100%;
}

.layered-text:hover .layer-hidden {
    opacity: 1;
}

.layered-text:hover .layer-visible {
    opacity: 0.1;
    filter: blur(2px);
}

.highlight-red {
    color: var(--glitch-red);
    font-weight: 700;
}

.terminal-box {
    background: #111;
    border: 1px solid #333;
    padding: 30px;
    font-family: var(--terminal-font);
    color: var(--scan-green);
    font-size: 0.9rem;
    height: fit-content;
    box-shadow: 0 0 15px rgba(0, 168, 107, 0.1);
}

.blinking {
    animation: blink 1s step-end infinite;
}

/* === ARCS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #111;
    border: 1px solid #222;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--glitch-red);
}

.card-image-wrap {
    height: 250px;
    background: #222;
    position: relative;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.3s;
}

.card:hover .card-image-wrap img {
    filter: grayscale(0%) contrast(100%);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-family: var(--terminal-font);
    margin-bottom: 10px;
    color: #fff;
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.access-btn {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #888;
    font-family: var(--terminal-font);
    cursor: none;
    transition: 0.3s;
}

.card:hover .access-btn {
    background: var(--glitch-red);
    color: #000;
    border-color: var(--glitch-red);
}

/* === ARCHIVE === */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.record-indicator {
    color: var(--glitch-red);
    font-family: var(--terminal-font);
    animation: blink 2s infinite;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-item {
    background: #111;
    border: 1px solid #222;
}

.vid-thumb {
    height: 150px;
    background: #000;
    position: relative;
}

.vid-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 2rem;
}

.video-item:hover .vid-thumb::after {
    color: var(--glitch-red);
}

.vid-meta {
    padding: 15px;
    font-family: var(--terminal-font);
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    color: #555;
    border-top: 1px solid #222;
}

/* === CONTACT === */
.narrow {
    max-width: 600px;
}

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

.terminal-form label {
    display: block;
    font-family: var(--terminal-font);
    color: var(--scan-green);
    margin-bottom: 10px;
}

.terminal-form input, 
.terminal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    padding: 10px 0;
    font-family: var(--terminal-font);
    font-size: 1.1rem;
}

.terminal-form input:focus, 
.terminal-form textarea:focus {
    outline: none;
    border-bottom-color: var(--glitch-red);
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: #111;
    border: 1px solid var(--scan-green);
    color: var(--scan-green);
    font-family: var(--terminal-font);
    font-size: 1.1rem;
    margin-top: 20px;
    cursor: none;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--scan-green);
    color: #000;
}

/* === ABOUT TEXT === */
.about-text {
    margin-bottom: 30px;
}

.about-lead {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #aaa;
    line-height: 1.7;
}

.about-video-embed {
    border: 1px solid #333;
    background: #0a0a0a;
}

/* === EMBED CONTAINER (Responsive iframes) === */
.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
    background: #000;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === SECTION SUBTITLE === */
.section-subtitle {
    font-family: var(--terminal-font);
    color: #555;
    font-size: 0.85rem;
    margin-top: -40px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* === BOOKS SECTION === */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.book-card {
    background: #111;
    border: 1px solid #222;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: var(--glitch-red);
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.2);
}

.book-cover {
    position: relative;
    aspect-ratio: 3/4;
    background: #0a0a0a;
    overflow: hidden;
}

.book-cover img,
.book-cover picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%) contrast(110%);
    transition: filter 0.5s, transform 0.5s;
}

.book-cover picture {
    width: 100%;
    height: 100%;
}

.book-card:hover .book-cover img,
.book-card:hover .book-cover picture img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
}

.book-cover.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--terminal-font);
    color: #333;
    font-size: 3rem;
}

.book-cover.no-image::after {
    content: '📕';
}

.book-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-action {
    font-family: var(--terminal-font);
    color: var(--scan-green);
    font-size: 0.8rem;
    border: 1px solid var(--scan-green);
    padding: 8px 16px;
    background: rgba(0,0,0,0.8);
}

.book-meta {
    padding: 15px;
    font-family: var(--terminal-font);
    color: #555;
    font-size: 0.75rem;
    border-top: 1px solid #222;
}

.books-cta {
    text-align: center;
    margin-top: 20px;
}

.books-cta .cta-btn {
    display: inline-block;
    text-decoration: none;
}

/* === VIDEO THUMBNAIL GRID === */
.video-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-thumb-card {
    background: #111;
    border: 1px solid #222;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.video-thumb-card:hover {
    transform: translateY(-5px);
    border-color: var(--glitch-red);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
}

.video-thumb-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.video-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) contrast(120%);
    transition: filter 0.4s, transform 0.4s;
}

.video-thumb-card:hover .video-thumb-img img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3;
}

.video-thumb-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.video-thumb-card .vid-meta {
    border-top: 1px solid #222;
}

/* === LIGHTBOX === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: 1px solid #555;
    color: #fff;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-family: var(--terminal-font);
    transition: border-color 0.3s, color 0.3s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    border-color: var(--glitch-red);
    color: var(--glitch-red);
}

.lightbox-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border: 1px solid #333;
}

.lightbox-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-thumb-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-close {
        top: -35px;
        right: 0;
    }
}

/* === GALLERY CCTV === */
.gallery-cctv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    min-height: 300px;
}

.cctv-feed {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 10px;
    position: relative;
}

.cctv-feed::before {
    content: 'CAM_FEED';
    position: absolute;
    top: 5px;
    left: 10px;
    font-family: var(--terminal-font);
    font-size: 0.6rem;
    color: var(--glitch-red);
    z-index: 10;
}

.cctv-feed img {
    width: 100%;
    height: auto;
    filter: grayscale(40%) contrast(120%);
}

.gallery-note {
    margin-top: 20px;
    text-align: center;
}

/* === MUSIC SECTION === */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.music-player-card {
    background: #111;
    border: 1px solid #222;
    padding: 20px;
    transition: border-color 0.3s;
}

.music-player-card:hover {
    border-color: var(--glitch-red);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
    font-family: var(--terminal-font);
}

.music-player-card iframe {
    width: 100%;
}

/* === BLOG SECTION === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-inner {
    background: #111;
    border: 1px solid #222;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.blog-card:hover .blog-card-inner {
    transform: translateY(-5px);
    border-color: var(--glitch-red);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.15);
}

.blog-tag {
    font-family: var(--terminal-font);
    font-size: 0.65rem;
    color: var(--scan-green);
    border: 1px solid var(--scan-green);
    display: inline-block;
    padding: 3px 8px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.blog-card-inner h3 {
    font-family: var(--terminal-font);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-inner p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-read-more {
    font-family: var(--terminal-font);
    font-size: 0.8rem;
    color: var(--glitch-red);
    transition: color 0.3s;
}

.blog-card:hover .blog-read-more {
    color: #fff;
}

/* === CONTACT LAYOUT === */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.social-feed-title {
    font-family: var(--terminal-font);
    color: var(--scan-green);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.social-feed-container {
    background: #111;
    border: 1px solid #222;
    padding: 10px;
    min-height: 300px;
    margin-bottom: 20px;
}

.social-follow-links {
    text-align: center;
}

.follow-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--glitch-red);
    color: var(--glitch-red);
    font-family: var(--terminal-font);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.follow-btn:hover {
    background: var(--glitch-red);
    color: #000;
}

/* === FOOTER === */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid #222;
    background: #050505;
    z-index: 2;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo-mark {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -2px;
}

.socials a {
    margin: 0 15px;
    color: #666;
    text-decoration: none;
    font-family: var(--terminal-font);
    font-size: 0.8rem;
}

.socials a:hover {
    color: #fff;
}

.copyright {
    text-align: right;
    font-family: var(--terminal-font);
    font-size: 0.7rem;
    color: #444;
}

.footer-links {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
}

.footer-links a {
    color: #444;
    text-decoration: none;
    font-family: var(--terminal-font);
    font-size: 0.7rem;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* === AUDIO TOGGLE === */
#audio-controls-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#now-playing {
    font-family: var(--terminal-font);
    font-size: 0.7rem;
    color: var(--scan-green);
    text-shadow: 0 0 5px var(--scan-green);
    background: rgba(0,0,0,0.8);
    padding: 2px 5px;
}

#audio-toggle {
    background: transparent;
    border: 1px solid #333;
    color: #555;
    padding: 10px 20px;
    font-family: var(--terminal-font);
    cursor: none;
    transition: 0.3s;
    min-width: 150px;
    text-align: center;
}

#audio-toggle:hover {
    border-color: #fff;
    color: #fff;
}

.audio-thumb {
    background: radial-gradient(circle, #333 10%, #000 70%);
    position: relative;
    overflow: hidden;
}

.audio-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--glitch-red);
    box-shadow: 0 0 10px var(--glitch-red);
    animation: waveform 1s infinite ease-in-out alternate;
}

.audio-thumb::after {
    content: '♪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    mix-blend-mode: overlay;
}

.video-item.playing {
    border-color: var(--glitch-red);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
}

.video-item.playing .audio-thumb::before {
    height: 40px;
    opacity: 0.8;
}

/* === INTERACTIVE TRANSMISSION (TWITTER HACK) === */
.interactive-transmission {
    position: relative;
    height: 200px; /* Start collapsed to match grid */
    overflow: hidden;
    transition: height 0.5s ease;
    cursor: pointer;
}

.interactive-transmission.active {
    height: auto;
    min-height: 200px;
    border-color: var(--glitch-red);
}

.transmission-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 10;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s;
}

.interactive-transmission.active .transmission-cover {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.transmission-cover .vid-thumb {
    flex: 1; 
    height: auto;
}

.transmission-embed {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    background: #000;
}

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

@keyframes waveform {
    0% { transform: scaleY(1); opacity: 0.5; }
    100% { transform: scaleY(5); opacity: 1; }
}

/* === TERMINAL OVERLAY === */
#terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#terminal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.terminal-window {
    width: 800px;
    height: 500px;
    background: #0a0a0a;
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    max-width: 95vw;
    max-height: 90vh;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 20px;
    font-family: var(--terminal-font);
    font-size: 0.8rem;
    color: #666;
    border-bottom: 1px solid #333;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    font-family: var(--terminal-font);
    color: #ccc;
    overflow-y: auto;
}

.input-line {
    display: flex;
    gap: 10px;
    color: var(--scan-green);
    margin-top: 10px;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--terminal-font);
    flex: 1;
    outline: none;
}

/* === ANIMATIONS === */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

/* === MOBILE === */
@media (max-width: 768px) {
    h1.glitch-title { font-size: 2.5rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid #333;
        text-align: center;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        width: 30px;
        height: 20px;
        z-index: 101;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: 0.3s;
    }

    .grid-layout { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .books-grid { grid-template-columns: minmax(200px, 300px); justify-content: center; }
    .blog-grid { grid-template-columns: 1fr; }
    .music-grid { grid-template-columns: 1fr; }
    .video-embed-grid { grid-template-columns: 1fr !important; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .copyright { text-align: center; }
}

/* === SUB-PAGE: PSYCHE === */
body.psyche-page {
    background-color: #0f0014;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}
.psyche-container {
    position: relative;
    z-index: 10;
}
.psyche-circle {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4a3a7a 0%, #000 70%);
    border-radius: 50%;
    margin: 0 auto 40px;
    animation: pulse 4s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: border-color 0.5s;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

#question {
    font-family: 'Space Mono', monospace;
    color: #bfa3ff;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(191, 163, 255, 0.4);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}

.psyche-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #4a3a7a;
    color: #fff;
    font-family: 'Space Mono', monospace;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px;
    width: 300px;
}
.psyche-input:focus {
    outline: none;
    border-color: #fff;
}
.psyche-msg {
    margin-top: 20px;
    height: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #4a3a7a;
}
.return-link {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    white-space: nowrap;
    transition: color 0.3s;
}
.return-link:hover { color: #fff; }

/* === SUB-PAGE: BROADCAST === */
body.broadcast-page {
    background-color: #050000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-y: auto;
    padding: 50px 20px;
}
.broadcast-container {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    width: 100%;
}
.broadcast-media-section {
    margin-top: 50px;
    border-top: 1px solid #333;
    padding-top: 30px;
}
.media-title {
    font-family: 'Space Mono', monospace;
    color: #555;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.broadcast-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.media-item {
    background: #111;
    border: 1px solid #333;
    aspect-ratio: 16/9;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
}
.media-item:hover {
    border-color: var(--glitch-red);
}
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
    filter: sepia(20%) contrast(1.1);
}
.media-item:hover video {
    opacity: 1;
    filter: sepia(0%) contrast(1);
}
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--scan-green);
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border: 1px solid var(--scan-green);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.media-item:hover .play-overlay {
    opacity: 1;
}
.media-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: var(--scan-green);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    padding: 5px;
    text-align: left;
}
.glitch-anim {
    animation: glitch 1s infinite;
}
.broadcast-msg {
    font-family: 'Space Mono', monospace;
    color: #fff;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
    border-left: 2px solid var(--glitch-red);
    padding-left: 20px;
    text-align: left;
}
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
.signal-bars {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 40px;
    height: 50px;
    align-items: flex-end;
}
.bar {
    width: 10px;
    background: var(--glitch-red);
    animation: equalize 0.5s infinite alternate;
}
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes equalize {
    0% { height: 10px; opacity: 0.3; }
    100% { height: 50px; opacity: 1; }
}
.broadcast-input {
    background: transparent;
    border: 1px solid #333;
    color: var(--glitch-red);
    padding: 10px;
    font-family: 'Space Mono', monospace;
    text-align: center;
    margin-bottom: 20px;
    width: 200px;
    transition: 0.3s;
}
.broadcast-input:focus {
    outline: none;
    border-color: var(--glitch-red);
}
.broadcast-input.shake {
    animation: shake 0.5s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* === SUB-PAGE: ARCHIVE === */
body.archive-page {
    background-color: #111;
    padding: 50px;
    min-height: 100vh;
}
.archive-header {
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.file {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 20px;
    font-family: 'Space Mono', monospace;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}
.file:hover {
    border-color: #fff;
    color: #fff;
    background: #111;
}
.file.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.file.locked::after {
    content: "ENCRYPTED";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    color: var(--glitch-red);
    border: 1px solid var(--glitch-red);
    padding: 2px 4px;
}
.file-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}
/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1000;
}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: #000;
    border: 1px solid var(--scan-green);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    font-family: 'Space Mono', monospace;
    color: var(--scan-green);
    box-shadow: 0 0 30px rgba(0, 168, 107, 0.2);
    position: relative;
}
.modal-body {
    margin: 20px 0;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ddd;
}
.modal-body.code {
    font-family: 'Consolas', monospace;
    color: #a5d6ff;
    background: #111;
    padding: 15px;
    border: 1px solid #333;
}
.modal-body.corrupted {
    color: var(--glitch-red);
    text-shadow: 2px 0 1px #fff;
    font-weight: bold;
}
.close-modal {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--scan-green);
    color: var(--scan-green);
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    transition: 0.3s;
}
.close-modal:hover {
    background: var(--scan-green);
    color: #000;
}

/* === SUB-PAGE: ASSETS === */
body.assets-page {
    background-color: #050505;
    min-height: 100vh;
    padding-top: 100px; /* Space for nav */
}

.assets-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.assets-header h1 {
    font-family: var(--terminal-font);
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px var(--glitch-red);
    margin-bottom: 10px;
}

.assets-header p {
    font-family: var(--terminal-font);
    color: var(--scan-green);
    letter-spacing: 2px;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 100px;
    position: relative;
    z-index: 10;
}

.asset-card {
    background: #111;
    border: 1px solid #333;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.asset-card:hover {
    transform: translateY(-5px);
    border-color: var(--glitch-red);
}

.asset-img-container {
    width: 100%;
    aspect-ratio: 16/9; /* More compact than square */
    overflow: hidden;
    border-bottom: 1px solid #333;
    position: relative;
}

.asset-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s filter 0.5s;
    filter: grayscale(100%);
}

.asset-card:hover .asset-img-container img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.asset-details {
    padding: 15px;
    font-family: var(--terminal-font);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.asset-details h3 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt-box {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 10px;
    height: 60px; /* Smaller height */
    overflow-y: auto;
    font-family: 'Space Mono', monospace;
    flex-grow: 1;
}

.copy-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--scan-green);
    color: var(--scan-green);
    font-family: var(--terminal-font);
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--scan-green);
    color: #000;
}

/* === SUB-PAGE: PAYOFF === */
body.payoff-page {
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    text-align: center;
}
.video-container {
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #111;
    position: relative;
    border: 1px solid var(--scan-green);
    box-shadow: 0 0 50px rgba(0, 168, 107, 0.2);
    margin-bottom: 30px;
    overflow: hidden;
}
.payoff-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeIn 3s forwards 1s;
}
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--scan-green);
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    text-shadow: 0 0 10px var(--scan-green);
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    animation: fadeOut 1s forwards 3s;
}
.final-message {
    font-family: 'Space Mono', monospace;
    color: #fff;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 2s forwards 5s;
}
.home-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 30px;
    border: 1px solid #333;
    color: #666;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    transition: 0.3s;
    opacity: 0;
    animation: fadeIn 2s forwards 8s;
}
.home-btn:hover {
    color: #fff;
    border-color: #fff;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }