* {
    cursor: none !important;
}

:root {
    --white: #f0ede8;
    --black: #0a0a0a;
    --mid: #1a1a1a;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Courier Prime', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* GRAIN OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* SCANLINES */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 998;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px);
}

/* CURSOR */
#cursor-outer {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.2s, background 0.2s, border-radius 0.25s;
    mix-blend-mode: difference;
}

#cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}

#cursor-outer.hovering {
    width: 64px;
    height: 64px;
    background: rgba(240, 237, 232, 0.08);
    border-color: var(--white);
}

#cursor-outer.clicking {
    width: 20px;
    height: 20px;
    background: rgba(240, 237, 232, 0.3);
}

/* TITLE */
.title-wrap {
    position: relative;
    display: inline-block;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(60px, 12vw, 160px);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--white);
    user-select: none;
    position: relative;
}

h1 .line {
    display: block;
    overflow: hidden;
}

h1 .line span {
    display: inline-block;
    transform: translateY(110%);
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1 .line:nth-child(1) span {
    animation-delay: 0.1s;
}

h1 .line:nth-child(2) span {
    animation-delay: 0.22s;
}

h1 .line:nth-child(3) span {
    animation-delay: 0.34s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.border-line {
    position: fixed;
    background: rgba(240, 237, 232, 0.12);
}

.border-line.top {
    top: 28px;
    left: 28px;
    right: 28px;
    height: 1px;
}

.border-line.bottom {
    bottom: 28px;
    left: 28px;
    right: 28px;
    height: 1px;
}

.border-line.left {
    left: 28px;
    top: 28px;
    bottom: 28px;
    width: 1px;
}

.border-line.right {
    right: 28px;
    top: 28px;
    bottom: 28px;
    width: 1px;
}

/* CORNER MARKS */
.corner {
    position: fixed;
    width: 12px;
    height: 12px;
    border-color: rgba(240, 237, 232, 0.5);
    border-style: solid;
}

.corner.tl {
    top: 20px;
    left: 20px;
    border-width: 1px 0 0 1px;
}

.corner.tr {
    top: 20px;
    right: 20px;
    border-width: 1px 1px 0 0;
}

.corner.bl {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 1px 1px;
}

.corner.br {
    bottom: 20px;
    right: 20px;
    border-width: 0 1px 1px 0;
}

/* SMALL TEXT ELEMENTS */
.label {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.35);
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* BLINKING CURSOR */
.blink {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--white);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* VERTICAL TEXT */
.vert-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* TICKER LINE */
.ticker-wrap {
    position: fixed;
    bottom: 52px;
    left: 0;
    width: 100vw;
    overflow: hidden;
    height: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
}

.ticker-inner {
    display: flex;
    white-space: nowrap;
    width: max-content;
    justify-content: center;
}

.ticker-inner span {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(240, 237, 232, 0.2);
    padding-right: 0px;
}

.ticker-inner a {
    color: rgba(240, 237, 232, 0.4);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ticker-inner a:hover {
    color: var(--white);
}

/* MOUSE TRAIL */
.trail-dot {
    position: fixed;
    width: 3px;
    height: 3px;
    background: rgba(240, 237, 232, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
}

/* NOISE ANIMATION */
@keyframes noise-shift {
    0% {
        background-position: 0 0;
    }

    25% {
        background-position: 40px -20px;
    }

    50% {
        background-position: -20px 40px;
    }

    75% {
        background-position: 60px 10px;
    }

    100% {
        background-position: 0 0;
    }
}

body::before {
    animation: noise-shift 0.5s steps(1) infinite;
}

#main {
    opacity: 0;
    animation: fadeIn 0.4s ease 0s forwards;
}