:root {
    --bg-primary: #000;
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    
    --font-mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    background-color: #000;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

html.no-snap {
    scroll-snap-type: none;
}

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* body::after {
    content: " ";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
    pointer-events: none;
    z-index: 9998;
} (Vignette disabled for cleaner background) */

::selection {
    background: var(--text-primary);
    color: #000;
}

/* Background Elements */
.gif-background-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -3;
    background-image: url('background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    will-change: transform;
}

#halftone-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.1) 0.5px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: -1;
}

#scanline-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

#cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0) 60%);
    border-radius: 50%;
    transform: translate(-300px, -300px);
    pointer-events: none;
    z-index: -2;
    will-change: transform, width, height, background;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}


body.archive-body #cursor-glow {
    display: none !important;
}

/* Splash Screen */
.splash {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
    overflow: hidden;
}

/* Inverted, Blurred GIF Background */
.splash::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px; /* Hide blur bleed */
    background-image: url('background.gif');
    background-size: cover;
    background-position: center;
    filter: invert(1) blur(8px) contrast(1.2);
    opacity: 0.6;
    z-index: -2;
}

/* Authentic Moving 8mm Film Grain */
@keyframes grainJitter {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -4%); }
    20% { transform: translate(-4%, 2%); }
    30% { transform: translate(2%, -6%); }
    40% { transform: translate(-2%, 6%); }
    50% { transform: translate(-4%, 2%); }
    60% { transform: translate(4%, 0%); }
    70% { transform: translate(0%, 4%); }
    80% { transform: translate(1%, 8%); }
    90% { transform: translate(-3%, 2%); }
}

.splash::after {
    content: '';
    position: absolute;
    top: -20%; left: -20%; right: -20%; bottom: -20%;
    width: 140%; height: 140%;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.4"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: overlay;
    animation: grainJitter 0.6s steps(10) infinite;
}

.splash.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-primary);
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.splash-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

.splash-logo::after {
    content: '_';
    animation: blink 0.65s step-end infinite alternate;
}

.splash-clock {
    font-size: 0.9rem;
    color: #000;
}

.splash-enter {
    background: var(--text-primary);
    border: 2px solid var(--text-primary);
    color: #000;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: lowercase;
    letter-spacing: normal;
}

.splash-enter:hover {
    background: #000;
    color: var(--text-primary);
    letter-spacing: 0.3em;
    box-shadow: 0px 0px 25px rgba(255,255,255,0.4), inset 0px 0px 10px rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* Master Glitch effect for entry transition */
.glitch-active {
    animation: masterGlitch 0.4s linear forwards;
}

@keyframes masterGlitch {
    0% { filter: invert(1) contrast(300%) hue-rotate(90deg); transform: scale(1.02) skewX(5deg) translate(5px, -5px); }
    20% { filter: hue-rotate(180deg) contrast(150%); transform: scale(0.98) skewX(-5deg) translate(-5px, 5px); }
    40% { filter: invert(0) sepia(100%); transform: scale(1.01) skewX(2deg) translate(2px, -2px); }
    60% { filter: contrast(400%) grayscale(100%); transform: scale(0.99) skewX(-2deg) translate(-2px, 2px); }
    80% { filter: invert(1) hue-rotate(270deg); transform: scale(1.04) skewX(4deg) translate(4px, 0); }
    100% { filter: grayscale(0%) contrast(100%) invert(0); transform: scale(1) skewX(0) translate(0, 0); }
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0; width: 100%;
    padding: 2rem 4vw;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start;
    z-index: 9998;
    mix-blend-mode: normal; 
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo::after {
    content: '_';
    animation: blink 0.65s step-end infinite alternate;
}

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

/* --- SCI-FI HUD MENU --- */
.sys-menu-container {
    position: relative;
    justify-self: end;
}

.sys-menu-toggle {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(68, 255, 68, 0.5); /* Prominent stark green border */
    padding: 0.4rem 0.8rem; /* Scaled down */
    font-family: var(--font-mono);
    font-size: 0.75rem; /* Scaled down */
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.1em; /* Reduced spread */
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.1);
}

.sys-menu-toggle:hover {
    background: rgba(68, 255, 68, 0.15);
    color: #fff;
    border-color: #44ff44;
    box-shadow: 0 0 20px rgba(68, 255, 68, 0.4);
}

.nav-links.drop-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0; /* REMOVED GAP so hover tracking never breaks */
    padding-top: 0.5rem; /* Replaced gap with internal padding hit-box */
    min-width: 260px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    
    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scaleY(0.9);
    transform-origin: top;
    
    /* Stark styling - Much more prominent! */
    background: rgba(0, 0, 0, 0.98); /* Almost solid black */
    border: 1px solid rgba(68, 255, 68, 0.3); /* Neon styling */
    border-top: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 1), 0 0 25px rgba(68, 255, 68, 0.05); /* Massive depth */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: opacity 0.25s, transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
    z-index: 9999;
}

/* Active Dropdown state */
.sys-menu-container:hover .drop-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

.drop-panel a, .drop-panel .nav-btn {
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    padding: 0.8rem 1.25rem;
    width: 100%;
    text-align: right;
    display: block;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--font-mono);
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.drop-panel li:last-child a, .drop-panel li:last-child .nav-btn {
    border-bottom: none;
}

/* Internal hover Glitch */
.drop-panel a:hover, .drop-panel .nav-btn:hover {
    background: rgba(10, 255, 10, 0.05); /* subtle stark green highlight */
    color: #44ff44 !important;
    padding-right: 1.75rem; /* Shifts text visually indicating selection */
    text-shadow: 0 0 8px rgba(68, 255, 68, 0.4);
}

/* Standalone Simple Nav (Used for return_to_base on Archives page) */
.simple-nav {
    list-style: none;
    display: flex;
    justify-self: end;
    margin: 0; padding: 0;
}
.simple-nav a {
    color: #44ff44; /* Lit neon green by default */
    background: rgba(68, 255, 68, 0.05); /* Soft ambient fill */
    border: 1px solid rgba(68, 255, 68, 0.5); /* Solid prominent border */
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.1); /* Ambient glow */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    letter-spacing: 0.15em;
}
.simple-nav a:hover {
    background: rgba(68, 255, 68, 0.2); /* Saturated green fill */
    color: #fff; /* Flash white */
    border-color: #44ff44; /* Max neon border */
    box-shadow: 0 0 20px rgba(68, 255, 68, 0.5), inset 0 0 10px rgba(68, 255, 68, 0.2); /* Massive inner and outer glow */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.nav-btn.active {
    color: #44ff44 !important;
    animation: blink 0.8s step-end infinite alternate;
}

#sys-audio-btn {
    color: #ff3333; /* Explicit red when OFF to draw attention */
    transition: color 0.3s;
}



/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4vw;
    position: relative;
    z-index: 10;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Hero */
.hero {
    align-items: flex-start;
    text-align: left;
}

.hero-statement {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.roles {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    background: rgba(0,0,0,0.8);
    padding: 0.5rem 1rem;
    display: inline-block;
    border: 1px solid var(--text-primary);
}

.typing-active::after {
    content: '_';
    animation: blink 0.65s step-end infinite alternate;
}

/* Content Blocks (Bio & Contact) */
.content-block {
    max-width: 600px;
    width: 100%;
    background: #080808; 
    border: 2px solid var(--text-primary);
    padding: 2.5rem;
    box-shadow: 8px 8px 0px rgba(255,255,255,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.4s;
    position: relative; /* ensure before/after elements stick */
}

.content-block:hover {
    box-shadow: 12px 12px 0px rgba(255,255,255,0.25);
    transform: translateY(-4px);
}

/* Interactive Locked Blocks */
.interactive-block {
    cursor: pointer;
}

.interactive-block.unlocked {
    cursor: default;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.4s, margin-bottom 0.4s, padding-bottom 0.4s;
}

.interactive-block.unlocked .block-header {
    border-bottom-color: rgba(255,255,255,0.2);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem; /* Added back so titles aren't glued to text */
    color: var(--text-primary);
    text-transform: lowercase;
}

.decrypt-hint {
    font-size: 1rem;
    font-weight: 700;
    color: #ff3333;
    letter-spacing: 0.05em;
    text-shadow: 0px 0px 8px rgba(255, 51, 51, 0.6);
    opacity: 1;
    transition: opacity 0.5s ease, color 0.3s, text-shadow 0.3s;
    animation: blink 0.65s step-end infinite alternate;
}

.decrypt-hint.access-granted {
    color: #44ff44;
    text-shadow: 0px 0px 8px rgba(68, 255, 68, 0.6);
    animation: none;
}

.interactive-block.unlocked .decrypt-hint {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

/* Dramatic Click-to-Unlock & General Hover Sequence */
.content-block::before, .archive-item::before {
    content: '';
    position: absolute;
    top: -20%; left: 0; right: 0; height: 8px; /* Thicker primary line */
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 30px 10px rgba(255, 255, 255, 0.8), 0 0 10px #fff; /* Massive halo bloom */
    z-index: 50;
    pointer-events: none;
    opacity: 0;
}

.archive-item:hover::before {
    animation: scanSweep 1.5s cubic-bezier(0.1, 0.8, 0.2, 1) infinite; /* Loops automatically while hacking */
}

.interactive-block.decrypting-active::before {
    animation: scanSweep 0.7s cubic-bezier(0.1, 0.8, 0.2, 1) forwards !important;
    background: rgba(68, 255, 68, 0.9) !important;
    box-shadow: 0px 0px 20px 8px rgba(68,255,68,0.4) !important;
}

.interactive-block.decrypting-active {
    animation: authShake 0.4s linear forwards;
    border-color: #ff3333;
}

@keyframes scanSweep {
    0% { top: -10%; opacity: 0; height: 10px; }
    10% { opacity: 1; }
    80% { top: 105%; opacity: 1; height: 4px; }
    100% { top: 110%; opacity: 0; height: 0px; }
}

@keyframes authShake {
    0% { transform: translate(4px, 2px) skewX(2deg); border-color: #ff3333; }
    20% { transform: translate(-4px, -2px) skewX(-2deg); }
    40% { transform: translate(2px, 3px) skewX(1deg); border-color: #ff3333; }
    60% { transform: translate(-2px, -1px) skewX(-1deg); }
    80% { transform: translate(1px, 0); border-color: #44ff44; }
    100% { transform: translate(0, 0); border-color: var(--text-primary); }
}

.locked-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.6s ease;
}

.interactive-block.unlocked .locked-content {
    max-height: 8000px;
    opacity: 1;
}

.bio-text p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Minimal Form */
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-row input,
.input-row textarea {
    width: 100%;
    background: rgba(20,20,20,0.5);
    border: 1px solid var(--text-primary);
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    resize: none;
    border-radius: 0;
}

.input-row input:focus,
.input-row textarea:focus {
    outline: none;
    background: #000;
    box-shadow: 4px 4px 0px rgba(255,255,255,0.1);
}

.submit-btn {
    background: var(--text-primary);
    border: 2px solid var(--text-primary);
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    padding: 0.75rem 2rem;
    align-self: flex-start;
    transition: all 0.2s ease;
    transform: translateY(0);
    box-shadow: 4px 4px 0px rgba(255,255,255,0.2);
}

.submit-btn:hover {
    background: #000;
    color: var(--text-primary);
    box-shadow: 6px 6px 0px rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.submit-btn:active {
    box-shadow: 0px 0px 0px rgba(255,255,255,0);
    transform: translateY(4px) translateX(4px);
}

/* Footer & Socials */
.footer {
    padding: 2rem 4vw;
    border-top: 2px dashed var(--text-primary);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    transition: background 0.2s, color 0.2s;
    text-transform: lowercase;
}

.social-link:hover {
    background: var(--text-primary);
    color: #000;
}

.signals-block {
    margin-top: 2rem;
    border-top: 1px dashed rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s step-end, transform 0.25s step-end;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s step-end forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Clock */
.clock {
    position: static;
    justify-self: center;
    transform: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff; /* Flipped to pure white */
    background: transparent;
    padding: 0.25rem 0.5rem;
    margin: 0;
    border: 1px dashed rgba(255, 255, 255, 0.4); /* Flipped dashed border to white */
    text-transform: uppercase;
    white-space: nowrap; 
    letter-spacing: 0.1em;
}

/* Archives & Glitch Reveal */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 3rem;
}

.archive-item {
    background: #080808;
    border: 2px solid var(--text-primary);
    padding: 1rem;
    box-shadow: 6px 6px 0px rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-item:hover {
    box-shadow: 10px 10px 0px rgba(255,255,255,0.25) !important;
    transform: translateY(-4px) !important;
    z-index: 20;
}

.placeholder-img {
    width: 100%;
    height: 200px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.archive-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 1px solid var(--text-primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.archive-item:hover img {
    transform: scale(1.03) !important;
}

.archive-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: lowercase;
}

.archive-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: pre-line;
}

.glitch-reveal {
    opacity: 0;
    transform: scale(0.98);
    filter: grayscale(100%) contrast(200%);
    transition: opacity 0.1s step-end, transform 0.1s step-end;
}

.glitch-reveal.visible {
    opacity: 1;
    transform: scale(1);
    animation: decode 0.4s steps(4) forwards;
}

@keyframes decode {
    0% { filter: invert(100%) contrast(200%); transform: translateX(-5px) skewX(5deg); }
    25% { filter: hue-rotate(90deg) contrast(150%); transform: translateX(5px) skewX(-5deg); }
    50% { filter: invert(0%) sepia(100%); transform: translateX(-2px) skewX(2deg); }
    75% { filter: contrast(300%) grayscale(50%); transform: translateX(2px) skewX(0); }
    100% { filter: grayscale(0%) contrast(100%); transform: translateX(0); }
}




.matrix-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s step-end, transform 0.25s step-end;
}

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

@media (max-width: 768px) {
    .navbar { 
        display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
        position: absolute; top: 0; left: 0; width: 100%; height: auto; z-index: 9998; 
        padding: 1.25rem 1.25rem 1rem 1.25rem; 
        background: rgba(10, 10, 10, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar .logo { position: static; font-size: 1.2rem; margin: 0; line-height: 1; flex: 0 0 auto; }
    .clock { position: static; justify-self: center; transform: none; width: 100%; text-align: center; margin-top: 1rem; font-size: 0.65rem; border: none; line-height: 1; padding: 0; order: 3; }
    
    .hero { align-items: center; text-align: center; justify-content: center; }
    .roles { font-size: 0.75rem; padding: 0.5rem 0.8rem; width: max-content; max-width: 90vw; line-height: 1.4; letter-spacing: 0.05em; }
    
    .section-title { font-size: 1.2rem; word-wrap: break-word; }
    .section { padding: 5rem 1.25rem; }
    #archives { justify-content: flex-start; padding-top: 5rem; }
    .content-block { padding: 1.5rem; box-shadow: 4px 4px 0px rgba(255,255,255,0.15);}
    .splash-logo { font-size: 1.5rem; }

    .signals-block {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .signals-block .scramble-text {
        width: 100%;
        text-align: center;
    }

.signals-block .social-link {
    text-align: center;
}
} /* <--- PROPER TIER CLOSING BRACKET EXTRACTED AND MOVED HERE */

/* Film Scratch Trail */
.film-scratch {
    position: fixed;
    width: 2px; /* Perfect medium */
    background: #fff; /* Maximum solid visibility natively */
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8); /* Solid white halo */
    pointer-events: none;
    z-index: 99999; /* Absolute top override */
    animation: scratchFade 0.9s ease-out forwards;  /* Greatly slowed down so they can actually be tracked by the human eye globally */
}

body.audio-reactive .film-scratch {
    background: #44ff44;
    box-shadow: 0 0 10px 2px rgba(68, 255, 68, 0.8);
}

@keyframes scratchFade {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(-40px) scaleY(0.2); }
}

/* Terminal Section */
.terminal-section {
    min-height: auto;
    padding: 2rem 4vw 6rem 4vw;
}

.terminal-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #44ff44;
    text-shadow: 0 0 5px rgba(68,255,68,0.5);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-input-line input {
    background: transparent;
    border: none;
    color: #44ff44;
    font-family: var(--font-mono);
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(68,255,68,0.5);
}

.terminal-input-line input::placeholder {
    color: rgba(68,255,68,0.3);
    text-shadow: none;
}

#terminal-output {
    margin-bottom: 1rem;
    white-space: pre-line;
    line-height: 1.5;
}
    .archive-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    padding: 2rem;
}

.lightbox.visible {
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 75vh;
    height: 55vh;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    margin-bottom: 1rem;
    border: none;
    box-shadow: none;
}

.lightbox-info {
    text-align: center;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.lightbox-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lightbox-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: pre-line;
}

.lightbox-close {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.lightbox-close:hover {
    color: var(--text-primary);
}
