/* eyes.team - Surveillance Theater / Brutalist Eye Tracking */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --void: #0a0a0a;
    --slab: #1a1a1a;
    --concrete: #2d2926;
    --bone: #f2ede8;
    --signal-red: #d44f2e;
    --deep-crimson: #6b1d2a;
    --amber: #c4813d;
    --warm-gray: #3a3632;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--slab);
    color: var(--bone);
    font-family: 'Commissioner', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* === Custom Cursor === */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--signal-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 200ms, height 200ms, border-color 200ms;
    mix-blend-mode: difference;
}

#custom-cursor.active {
    width: 40px;
    height: 40px;
    border-color: var(--amber);
}

/* === Zone (Section) === */
.zone {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Section 1: The Aperture === */
#aperture {
    background: var(--void);
}

.giant-eye {
    width: 80vw;
    height: 80vw;
    max-width: 80vh;
    max-height: 80vh;
}

/* === Eye Construct === */
.eye-construct {
    position: absolute;
}

.eye-construct[data-size="small"] {
    width: 60px;
    height: 60px;
}

.eye-construct[data-size="medium"] {
    width: 100px;
    height: 100px;
}

.eye-construct[data-size="large"] {
    width: 160px;
    height: 160px;
}

.giant-eye,
.eye-construct {
    border-radius: 50%;
}

.eye-outer {
    width: 100%;
    height: 100%;
    border: 4px solid var(--deep-crimson);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--concrete);
}

.eye-inner {
    width: 80%;
    height: 80%;
    border: 2px solid var(--amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-iris {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--deep-crimson) 0%, var(--concrete) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.eye-pupil {
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: var(--void);
    transition: transform 50ms ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pupil-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1rem, 3vw, 3rem);
    letter-spacing: 0.15em;
    color: var(--signal-red);
    white-space: nowrap;
}

/* === Blink Animation === */
@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.05); }
}

/* === Section 2: The Grid === */
#grid-zone {
    background: var(--slab);
}

.eye-grid {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* === Section 3: The Sentence === */
#sentence-zone {
    background: var(--void);
}

.sentence-container {
    position: relative;
    z-index: 10;
}

.the-sentence {
    font-family: 'Commissioner', sans-serif;
    font-weight: 100;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    color: var(--bone);
    letter-spacing: 0.08em;
    opacity: 0;
    transition: opacity 800ms ease;
}

.the-sentence.visible {
    opacity: 1;
}

.sentence-eyes {
    position: absolute;
    inset: 0;
}

/* === Section 4: The Stamp === */
#stamp-zone {
    background: var(--concrete);
}

.stamp-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.stamp-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 10rem);
    letter-spacing: 0.15em;
    color: var(--signal-red);
    text-transform: uppercase;
    line-height: 0.9;
}

.stamp-line {
    width: clamp(100px, 30vw, 300px);
    height: 4px;
    background: var(--signal-red);
    margin: 1rem auto;
}

.stamp-sub {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.stamp-eyes {
    position: absolute;
    inset: 0;
}

/* === Concrete Texture Overlay === */
.zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(58, 54, 50, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(58, 54, 50, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(58, 54, 50, 0.15) 1px, transparent 1px);
    background-size: 4px 4px, 6px 6px, 8px 8px;
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

/* === Stare Intensification === */
.eye-construct.staring .eye-iris {
    background: radial-gradient(circle at center, var(--signal-red) 0%, var(--deep-crimson) 100%);
    transition: background 300ms;
}

.eye-construct.staring .eye-outer {
    border-color: var(--signal-red);
    transition: border-color 300ms;
}

/* === Responsive === */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    #custom-cursor {
        display: none;
    }

    .giant-eye {
        width: 90vw;
        height: 90vw;
    }

    .eye-construct[data-size="large"] {
        width: 100px;
        height: 100px;
    }

    .eye-construct[data-size="medium"] {
        width: 70px;
        height: 70px;
    }
}
