* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; /* Prevents the long-press menu on images/links if you want strict control */
}

html {
    scroll-behavior: smooth;
    background-color: #000000;
    /* This ensures that when you anchor to a section, 
       it doesn't get tucked UNDER your sticky header */
    scroll-padding-top: 12vh;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.4;
    overflow-x: hidden;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}

.noise {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.1;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAwIDIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJub2lzZUZpbHRlciI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjEuNSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZUZpbHRlcikiLz48L3N2Zz4=");
}

#cursor {
    position: fixed;
    top: 0; 
    left: 0;
    width: 12px; 
    height: 12px;
    background-color: #FFFFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border 0.2s;
    mix-blend-mode: difference;
}

#cursor.hover-active {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid #FFFFFF;
}

/*.site-header {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3vh 4vw;
    z-index: 100;
    pointer-events: none;
    mix-blend-mode: difference;
}*/

.site-header {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vh 4vw;
    z-index: 100;
    /* NEW: Solid black background to hide scrolling text */
    background-color: #000000; 
    /* NEW: A very subtle border so the header separates slightly from the page */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
    /* THE VOID FADE: Pure black at the top, dissolving to 0% opacity at the bottom */
    background: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    
    /* This allows users to click things that might be "under" the invisible part of the fade */
    pointer-events: none;
}

.logo {
    font-family: Arial, sans-serif;
    font-style: italic;
    text-transform: lowercase;
    font-size: 1.8rem;
    font-weight: 700;
    pointer-events: auto;
    letter-spacing: -0.05em;
    color: #FFFFFF;
}

.social-link {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo, .social-link {
    pointer-events: auto; 
}

.social-link svg {
    width: 24px; 
    height: 24px;
    fill: #FFFFFF;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover svg {
    transform: scale(1.2);
}

.scroll-progress {
    position: fixed;
    bottom: 4vh; 
    right: 4vw;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    z-index: 100;
    mix-blend-mode: difference;
    color: #FFFFFF;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2vw;
}

.section {
    position: relative;
    min-height: 100vh;
    padding: 15vh 0;
}

#hero, #form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#menu-panel {
    display: block; 
}

.hero-title {
    text-align: left;
    margin-bottom: 0;
    line-height: 0.85;
    letter-spacing: -0.04em;
}

.title-mask {
    overflow: hidden; 
    padding-bottom: 10px;
}

.hero-title span {
    display: block;
    font-size: clamp(3rem, 10vw, 11rem);
    font-weight: 700;
    transform: translateY(110%);
    animation: slideUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    color: #FFFFFF;
    /* THE FIX: Gives the period just enough room so it doesn't get clipped by the mask */
    padding-right: 0.4em;
    /* Ensure the letter 'j' or dots don't get cut at the bottom either */
    padding-bottom: 0.1em;
}

.title-mask:nth-child(2) span {
    color: rgba(255, 255, 255, 0.5);
    animation-delay: 0.15s;
}

@keyframes slideUpReveal {
    0% { transform: translateY(110%); }
    100% { transform: translateY(0); }
}

/* After 1.2s (the length of the animation), we allow the mask to show everything */
.title-mask {
    overflow: hidden;
    animation: allowOverflow 0s 1.2s forwards;
    margin-right: -50px; 
    padding-right: 50px;
}

@keyframes allowOverflow {
    to { overflow: visible; }
}

.collapsible-menu {
    width: 100%;
}

.menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4vh 0;
    transition: opacity 0.4s ease;
}

.collapsible-menu:hover .menu-item:not(:hover) { 
    opacity: 0.2; 
}
.collapsible-menu:hover .menu-item.active { 
    opacity: 1; 
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
}

.serif-clash {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-weight: 400;
    text-transform: none; 
    padding-right: 1.5vw;
}

.menu-item:hover .section-title,
.menu-item.active .section-title { 
    color: #FFFFFF; 
    transform: translateX(1.5vw); 
}

.brutalist-toggle {
    position: relative;
    width: clamp(30px, 4vw, 50px);
    height: clamp(30px, 4vw, 50px);
}

.brutalist-toggle::before, 
.brutalist-toggle::after {
    content: "";
    position: absolute;
    background-color: #FF0000;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s;
}

.brutalist-toggle::before { width: 100%; height: 4px; }
.brutalist-toggle::after { width: 4px; height: 100%; }

.menu-item.active .brutalist-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.menu-item.active .brutalist-toggle::before, 
.menu-item.active .brutalist-toggle::after {
    background-color: #FFFFFF;
}

.menu-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 0 0 2vw;
}

.menu-content > * {
    overflow: hidden;
    margin-top: 0 !important; 
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-item.active .menu-content {
    grid-template-rows: 1fr;
    margin-top: 5vh;
}

.menu-item.active .menu-content > * {
    opacity: 1;
    transition: opacity 0.6s ease 0.3s; 
}

.about-content { padding-bottom: 20px; }
.about-content .slogan {
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    line-height: 1.5;
    color: #FFFFFF;
    font-weight: 400;
    text-transform: none;
    max-width: 90%;
}

.steps-list { list-style: none; counter-reset: step-counter; }
.steps-list li {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 700;
    margin-bottom: 2vh;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}
.steps-list li::before {
    content: "0" counter(step-counter) ". ";
    font-family: "Courier New", Courier, monospace;
    color: #FF0000;
    margin-right: 15px;
}
.steps-list li:hover { color: #FFFFFF; }

.portfolio-container { width: 100%; padding-bottom: 20px; }
.portfolio-grid { width: 100%; position: relative; }
.portfolio-row { display: none; grid-template-columns: repeat(3, 1fr); gap: 2vw; width: 100%; }
.portfolio-row.active { display: grid; }
.portfolio-card { aspect-ratio: 1/1; background-color: rgba(255, 255, 255, 0.05); overflow: hidden; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.4s ease, transform 0.6s ease; }
.portfolio-card:hover img { filter: grayscale(0%); transform: scale(1.03); }

.portfolio-navigation { display: flex; gap: 30px; margin-top: 4vh; justify-content: flex-end; }
.portfolio-nav-btn { width: 25px; height: 25px; border-right: 2px solid rgba(255,255,255,0.5); border-bottom: 2px solid rgba(255,255,255,0.5); transition: border-color 0.2s; }
.portfolio-nav-btn:hover { border-color: #FFFFFF; }
.prev-row { transform: rotate(-135deg); }
.next-row { transform: rotate(45deg); }

.cta-title {
    font-size: clamp(2.5rem, 5vw, 6rem);
    text-align: left;
    margin-bottom: 8vh;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #FFFFFF;
}

.form-group { margin-bottom: 6vh; }

label {
    display: block;
    margin-bottom: 10px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.9);
}

input, textarea {
    width: 100%;
    padding: 10px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    font-family: inherit;
    /* CHANGE IS HERE: Shrunk the massive text down to a sleek, normal size */
    font-size: clamp(1.2rem, 2vw, 1.5rem); 
    font-weight: 700;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

input:focus, textarea:focus { outline: none; border-bottom-color: #FFFFFF; }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.4); font-weight: 400; }

.submit-button {
    display: block;
    width: 100%;
    padding: 25px;
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-family: inherit;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease-out;
    margin-top: 6vh;
    will-change: transform;
}

.submit-button:hover { 
    background-color: #FFFFFF; 
    color: #000000; 
    border-color: #FFFFFF;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0s;
}

.form-note {
    margin-top: 10vh;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

/*@media (max-width: 768px) {
    .portfolio-row { grid-template-columns: repeat(2, 1fr); }
    .hero-title span { font-size: 13vw; }
    .hero-title span:nth-child(2) { font-size: 12vw; }
}
@media (max-width: 576px) {
    .portfolio-row { grid-template-columns: 1fr; }
    .site-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}*/

@media (max-width: 768px) {
    .portfolio-row { grid-template-columns: repeat(2, 1fr); }
    
    /* THE FIX: Scaled down from 13vw and added text wrapping */
    .hero-title span { 
        font-size: clamp(2rem, 9.5vw, 5rem); 
        white-space: normal; 
    }
    
    /* THE FIX: Scaled down from 12vw and added break-word for massive words */
    .hero-title span:nth-child(2) { 
        font-size: clamp(2rem, 8.5vw, 4.5rem); 
        word-break: break-word; 
    }
}

@media (max-width: 576px) {
    /* Kept exactly the same so your mobile layout doesn't break! */
    .portfolio-row { grid-template-columns: 1fr; }
    .site-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* --- INLINE SYSTEM DIRECTORY --- */
.system-directory {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6vh; /* Gave it a little more breathing room below the button */
    padding-top: 3vh;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: "Courier New", Courier, monospace;
    /* CHANGE IS HERE: Scaled up massively. It will be 14px on mobile, and up to 18px on large desktops */
    font-size: clamp(14px, 1.5vw, 18px); 
    letter-spacing: 0.1em;
}

.dir-nav {
    display: flex;
    align-items: center;
    gap: 20px; /* Increased spacing so the links don't blend together */
    flex-wrap: wrap; /* Prevents text from squishing on medium screens */
}

.dir-label {
    color: #FF0000;
    font-weight: 700;
}

.dir-sep {
    color: rgba(255, 255, 255, 0.3);
}

.dir-link {
    /* CHANGE IS HERE: Brightened to 0.75 and made bold for instant readability */
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700; 
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none; 
}

.dir-link:hover {
    color: #FFFFFF;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-align: right;
}

/* Ensure it stacks cleanly and stays readable on mobile screens */
@media (max-width: 768px) {
    .system-directory {
        flex-direction: column;
        align-items: flex-start;
        gap: 3vh;
        font-size: 14px; 
    }
    .copyright {
        text-align: left;
    }
}

/* --- THE BLOG LEDGER (transmissions.html) --- */
.ledger-list {
    width: 100%;
    margin-top: 10vh;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
}

.ledger-row {
    display: flex;
    flex-direction: column;
    padding: 5vh 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.ledger-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2vh;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #FF0000;
}

.ledger-category {
    color: rgba(255, 255, 255, 0.5);
}

.ledger-title {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ledger-row:hover .ledger-title {
    color: #FFFFFF;
    transform: translateX(1.5vw);
}

/* Make sure the custom cursor triggers on the rows */
.ledger-row:hover {
    cursor: none;
}

/* --- EDITORIAL ARTICLE TEMPLATE (article.html) --- */
.editorial-article {
    padding-top: 20vh;
}

.article-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 6vh;
    margin-bottom: 8vh;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #FF0000;
    margin-bottom: 4vh;
}

.meta-author {
    color: rgba(255, 255, 255, 0.4);
}

.article-title {
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #FFFFFF;
}

/* The Narrow Reading Column */
.article-content {
    max-width: 850px; /* Perfect reading width */
    margin: 0 auto; /* Centers the text block */
    text-transform: none; /* Overrides the global uppercase! */
}

.article-content p {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4vh;
}

/* The High-Fashion Drop Cap */
.drop-cap {
    float: left;
    font-family: "Times New Roman", Times, serif;
    font-size: 5rem;
    line-height: 0.7;
    padding-top: 0.1em;
    padding-right: 0.15em;
    color: #FFFFFF;
    font-style: italic;
}

/* Editorial Pull Quote */
.pull-quote {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    color: #FFFFFF;
    font-weight: 700;
    margin: 8vh 0;
    padding-left: 2vw;
    border-left: 4px solid #FF0000;
    text-transform: uppercase;
}

/* Cinematic Images within text */
.article-image-block {
    margin: 8vh 0;
    width: 100%;
}

.article-image-block img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
    cursor: none;
}

.article-image-block:hover img {
    filter: grayscale(0%);
}

.article-image-block figcaption {
    margin-top: 15px;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    text-transform: uppercase;
}

/* --- ARTICLE FOOTER & SIGN-OFF --- */
.article-end {
    margin-top: 8vh;
    padding-top: 4vh;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Courier New", Courier, monospace;
}

.end-mark {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #FF0000;
}

.article-actions {
    display: flex;
    gap: 30px;
}

.action-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none;
}

.action-link:hover {
    color: #FFFFFF;
}

/* Locks the system directory to the exact width of the article */
.article-footer-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 5vh;
}

@media (max-width: 576px) {
    .article-end {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* --- THE SYNDICATE ROSTER (syndicate.html) --- */
.roster-list {
    width: 100%;
    margin-top: 10vh;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
}

.roster-row {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1 part meta, 2 parts details */
    gap: 4vw;
    padding: 6vh 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.roster-meta {
    display: flex;
    flex-direction: column;
}

.roster-info {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
}

.roster-id {
    color: #FF0000;
    font-weight: 700;
}

.roster-role {
    color: rgba(255, 255, 255, 0.5);
}

.roster-socials {
    display: flex;
    gap: 15px;
    margin-top: 2.5vh;
}

.roster-icon svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.4);
    transition: fill 0.3s ease, transform 0.3s ease;
    cursor: none; 
}

.roster-icon:hover svg {
    fill: #FFFFFF;
    transform: scale(1.1);
}

.roster-name {
    font-size: clamp(2.5rem, 4vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-bottom: 2vh;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.roster-bio {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    text-transform: none; /* Sentence case for readability */
    max-width: 90%;
}

/* Hover effect on the row slightly slides the name */
.roster-row:hover .roster-name {
    transform: translateX(1vw);
}

/* Make sure it stacks cleanly on mobile */
@media (max-width: 768px) {
    .roster-row {
        grid-template-columns: 1fr; /* Stacks meta on top of details */
        gap: 2vh;
    }
    .roster-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2vh;
        margin-bottom: 1vh;
    }
    .roster-socials {
        margin-top: 0; /* Aligns them perfectly on mobile */
    }
}

.copyright {
    /* Overrides the monospace font from the parent container */
    font-family: Arial, sans-serif;
    font-style: italic;
    font-weight: 700;
    
    /* Forces the text to lowercase, no matter how it is typed in the HTML */
    text-transform: lowercase;
    
    color: rgba(255, 255, 255, 0.6);
    
    /* Tightened the tracking so it matches the sleek look of your main logo */
    letter-spacing: -0.02em; 
    text-align: right;
}

.single-archive-viewport {
    width: 100%;
    display: flex;
    justify-content: center; /* Centers the whole unit */
    padding: 40px 0;
}

.single-archive-viewport .card-image-wrapper {
    position: relative;
    display: block; /* Changed from inline-block for better centering */
    width: 100%;
    max-width: 400px; /* The "Compact" size you wanted */
    margin: 0 auto;   /* This centers the box */
    aspect-ratio: 9 / 16; 
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* This creates a "moving" grain effect */
    background: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Noisy_Texture.png');
    opacity: 0.15;
    pointer-events: none;
    z-index: 4;
}

.portfolio-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-wrapper:hover .portfolio-video {
    filter: grayscale(0%) contrast(110%) brightness(1);
    transform: scale(1.02);
}

.vhs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This creates a "moving" digital noise effect */
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Noisy_Texture.png");
    background-repeat: repeat;
    background-size: 200px;
    /*background: red;*/
    opacity: 0.3; /* Adjust this to make it more or less "dirty" */
    z-index: 4; /* Sits above video, but below the red text */
    pointer-events: none; /* Allows you to still click the video/unmute */
    mix-blend-mode: multiply; /* Blends the grain INTO the video colors */
    animation: grain-animation 0.8s steps(10) infinite;
}

/* This makes the grain flicker and move like a real VHS tape */
@keyframes grain-animation {
0% { background-position: 0 0; }
    25% { background-position: 10% 10%; }
    50% { background-position: -5% 5%; }
    75% { background-position: 15% -10%; }
    100% { background-position: 0 0; }
}

/* TOP RIGHT: The Live Audio Button */
.unmute-toggle {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center; /* Vertical alignment fix */
    gap: 12px;
    background: transparent; /* Box removed */
    padding: 0;
    border: none;
}

.live-dot {
    width: 12px; /* Bigger dot */
    height: 12px;
    background: #FF0000;
    border-radius: 50%;
    flex-shrink: 0;
    /* OPTICAL ALIGNMENT: Nudge the dot down 1px to match the text baseline */
    transform: translateY(1px); 
    /*box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);*/

}

.live-text {
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #FF0000;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    /* Ensure no extra margins are pushing the text up or down */
    margin: 0;
    padding: 0;
    line-height: 1; 
}

/* ACTIVE STATE: When sound is ON */
/* Active State: Sound is ON */
.unmute-toggle.active .live-dot {
    animation: tacticalBlink 0.5s infinite;
    /*box-shadow: 0 0 15px #FF0000;*/
}

/*.unmute-toggle.active .live-text {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5), 2px 2px 2px #000;
}*/

@keyframes tacticalBlink {
    0%, 100% { opacity: 1; transform: scale(1.1); }
    50% { opacity: 0.2; transform: scale(0.9); }
}

/* BOTTOM LEFT: The Label (I fixed the double-definition here) */
.archive-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 20;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 900;
    color: #FF0000;
    letter-spacing: 0.15em;
    
}
.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* CHANGE: Made the lines much thinner and more transparent (0.05 instead of 0.2) */
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 2px; /* Thinner lines for better readability */
    z-index: 2; /* Sits below the text */
    pointer-events: none;
}

/* Mobile: Perfectly centered and smaller */
@media (max-width: 576px) {
    .single-archive-viewport .card-image-wrapper {
        max-width: 75vw; /* Keeps it slim on mobile */
        max-height: 55vh; /* Prevents it from being too tall for small screens */
    }
    
    .archive-label {
        font-size: 8px; /* Even smaller for mobile */
    }
}

/* Forces the Archive section to match the height of other closed items */
.menu-item:not(.active) .menu-content {
    display: none;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Ensures the video container doesn't "push" the boundaries when closed */
.menu-item:not(.active) .single-archive-viewport {
    padding: 0;
    margin: 0;
}

/* KILL THE CUSTOM CURSOR ON TOUCH DEVICES */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot {
        display: none !important; /* Hides your custom dot */
    }
    
    body, * {
        cursor: auto !important; /* Brings back normal touch behavior */
    }
}
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, 
    .cursor-circle, /* <-- Make sure your big circle class is here too! */
    .custom-cursor {
        display: none !important; 
    }
}