:root {
    --bg-color: #030000;
    --text-color: #a0a0a0;
    --red-primary: #ff0000;
    --red-dark: #600000;
    --red-dim: #3a0000;
    --font-main: 'Courier Prime', monospace;
    --font-header: 'Special Elite', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
    user-select: none;
}

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

/* gatekeeper */
#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease;
}

.enter-content {
    text-align: center;
    color: var(--red-primary);
    font-family: var(--font-main);
}

.warning-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: blinkRed 0.5s infinite;
}

#enter-btn {
    background: transparent;
    border: 1px solid var(--red-primary);
    color: var(--red-primary);
    padding: 1rem 2rem;
    font-family: var(--font-header);
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.2s;
}

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

/* vfx & atmosphere */
.blood-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #050000;
    overflow: hidden;
}

.bg-drop {
    position: absolute;
    top: -20px;
    width: 6px;
    height: 10px;
    background: var(--red-primary);
    box-shadow: 0 0 8px var(--red-dim);
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    opacity: 0.8;
    animation: dropFall linear forwards;
    filter: blur(1px);
}

@keyframes dropFall {
    0% {
        top: -20px;
        opacity: 0.6;
    }

    100% {
        top: 110vh;
        opacity: 0;
    }
}

.blood-background::after {
    /* subtle vignette, don't remove */
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(50, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
    opacity: 0.08;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjc1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIxIi8+PC9zdmc+');
}

/* hud */
.hud-volume {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--red-primary);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border: 1px solid var(--red-dim);
    backdrop-filter: blur(5px);
}

.hud-volume i {
    font-size: 1.2rem;
}

#master-volume {
    appearance: none;
    width: 100px;
    height: 4px;
    background: #333;
    outline: none;
}

#master-volume::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--red-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--red-primary);
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 98;
    background: radial-gradient(circle, transparent 50%, rgba(30, 0, 0, 0.4) 90%, rgba(0, 0, 0, 1) 100%);
}

.scanlines-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 97;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
}

/* --- The Watcher --- */
#watcher-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: screen;
}

/* layout */
.container {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section {
    margin-bottom: 25vh;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

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

.header-status {
    font-size: 0.8rem;
    color: var(--red-primary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--red-primary);
    border-radius: 50%;
    animation: blinkRed 2s infinite;
}

.title {
    font-family: var(--font-header);
    font-size: 4rem;
    margin-bottom: 3rem;
    color: #fff;
    text-shadow: 4px 4px 0px var(--red-dark);
    letter-spacing: -2px;
}

.profile-meta {
    border-top: 1px solid var(--red-dim);
    border-bottom: 1px solid var(--red-dim);
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.meta-row .label {
    color: #555;
}

.meta-row .value {
    color: #ccc;
    letter-spacing: 1px;
}

.red-text {
    color: var(--red-primary) !important;
    text-shadow: 0 0 5px var(--red-primary);
}

.red-highlight {
    color: var(--red-primary);
    font-style: italic;
}

.manifesto {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: #888;
}

.scroll-hint {
    text-align: center;
    color: var(--red-dim);
    font-size: 0.8rem;
    animation: float 3s ease-in-out infinite;
}

/* evidence */
.section-header {
    border-bottom: 2px solid var(--red-primary);
    color: var(--red-primary);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.evidence-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.evidence-item {
    border-left: 1px solid #333;
    padding-left: 2rem;
    position: relative;
    transition: all 0.3s;
}

.evidence-item:hover {
    border-left-color: var(--red-primary);
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.05), transparent);
}

.evidence-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    font-size: 0.7rem;
    color: var(--red-dark);
    transform: rotate(-90deg);
    transform-origin: right top;
}

.evidence-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #eee;
}

.evidence-item p {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 1rem;
}

.censored {
    background: #000;
    color: #000;
    padding: 0 4px;
    cursor: help;
}

.censored:hover {
    color: var(--red-primary);
}

.tech-tags {
    font-size: 0.75rem;
    color: var(--red-primary);
    opacity: 0.7;
}

/* competency bars */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.stat-label {
    width: 140px;
    text-align: right;
    color: #888;
    font-weight: bold;
}

.meter-container {
    flex: 1;
    height: 12px;
    background: #111;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #300, var(--red-primary));
    box-shadow: 0 0 10px var(--red-dim);
    position: relative;
    animation: pulseBar 4s infinite;
}

.meter-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    animation: glitchPass 2s infinite linear;
}

.stat-val {
    width: 80px;
    font-size: 0.7rem;
    color: var(--red-primary);
    text-align: right;
}

@keyframes pulseBar {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px var(--red-primary);
    }
}

@keyframes glitchPass {
    0% {
        transform: translateX(-100%);
    }

    20% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* obs. counter */
.watcher-counter {
    position: fixed;
    top: 2rem;
    right: 2rem;
    bottom: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    z-index: 200;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border: 1px solid var(--red-dim);
    backdrop-filter: blur(5px);
}

.eye-icon {
    font-size: 1.5rem;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blood-tear {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--red-primary);
    animation: bleed 3s infinite ease-in;
    opacity: 0.8;
}

.watcher-text {
    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 1px;
}

@keyframes bleed {
    0% {
        top: 60%;
        height: 4px;
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 180%;
        height: 15px;
        opacity: 0;
    }
}

@keyframes lookAround {

    0%,
    100% {
        transform: scale(1);
    }

    5% {
        transform: scale(1.1);
    }

    10% {
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 5px red);
    }
}

/* contact area */
.warning-box {
    border: 1px solid var(--red-primary);
    color: var(--red-primary);
    padding: 1rem;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 0.8rem;
    background: rgba(255, 0, 0, 0.05);
}

.link-cluster {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.glitch-link {
    font-size: 2rem;
    color: #444;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transition: color 0.1s;
}

.glitch-link:hover {
    color: var(--red-primary);
    text-shadow: 2px 0 #fff, -2px 0 #000;
}

/* --- Animations --- */
@keyframes blinkRed {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Glitch/Scramble Helpers (JS drives mostly) */
.scramble-text {
    display: inline-block;
}

/* mobile fixes */
@media (min-width: 768px) {
    .evidence-grid {
        grid-template-columns: 1fr 1fr;
    }

    .title {
        font-size: 6rem;
    }
}