/* Core Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0a;
    --text: #efefef;
    --accent: #8b7355; /* A muted sepia/gold */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Helvetica', 'Arial', sans-serif; /* Replace with Vox Round */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    overflow-x: hidden;
}

section {
    /* min-height: 100vh;  <-- Delete or comment this out */
    padding: 6rem 2rem;    /* This creates 6rem of space above and below each section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Specifically for the top section, you might want a bit more 'breathing room' */
#signal {
    padding-top: 10rem;
    padding-bottom: 4rem;
}

/* Tighten the gap between the video and the caption */
.monitor-frame {
    margin-bottom: 0; 
}

/* The container that defines the size and shape */
.video-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9; /* Modern way to lock the shape */
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    overflow: hidden;
    margin: 0 auto; /* Centers it if it's not full width */
}

/* The actual video signal */
.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0.2) contrast(1.1); /* The DENMAN industrial tint */
}

.video-caption {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    opacity: 0.4;
    letter-spacing: 0.3em;
}

.logo {
    font-family: 'Varela Round', sans-serif;
    font-weight: 400; /* Varela only has one weight, but it's a perfect 'medium-heavy' */
    font-size: 4rem;
    margin-bottom: 0.5rem; /* Tighter gap to the subtitle */
}

.subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.5em; /* Extreme tracking for that clinical look */
    opacity: 0.6;
    margin-bottom: 4rem; /* The gap before the video starts */
}

iframe { width: 100%; height: 100%; }

.cta, .access-link {
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--text);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
    font-size: 0.8rem;
}

.cta:hover {
    background: var(--text);
    color: var(--bg);
}

.access-link {
    border: none;
    opacity: 0.5;
}

.access-link:hover { opacity: 1; }

/* Add this to your .logo class */
.logo {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    animation: flicker 4s infinite;
}

/* The Glitch/Flicker Animation */
@keyframes flicker {
    0%   { opacity: 1; transform: skew(0deg); }
    3%   { opacity: 0.8; transform: skew(0.5deg); }
    6%   { opacity: 1; transform: skew(0deg); }
    7%   { opacity: 1; transform: skew(-1deg); }
    9%   { opacity: 1; transform: skew(0deg); }
    45%  { opacity: 1; transform: skew(0deg); }
    46%  { opacity: 0.9; transform: skew(3deg); }
    47%  { opacity: 1; transform: skew(0deg); }
    100% { opacity: 1; transform: skew(0deg); }
}

