:root {
    --anim-intensity: 1;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #030303;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #08080a;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: #030406;
}

.base-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 30%, rgba(20, 25, 35, 0.3) 0%, transparent 70%);
}

.fog {
    position: absolute;
    width: 300%;
    height: 200%;
    top: -50%;
    left: -100%;
    filter: blur(90px);
    opacity: 0.7;
}

.layer-bg {
    background:
        radial-gradient(ellipse at 40% 80%, rgba(25, 30, 40, 0.7) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 70%, rgba(30, 35, 45, 0.5) 0%, transparent 45%);
    animation: fogDrift calc(35s / var(--anim-intensity)) ease-in-out infinite alternate;
}

.layer-fg {
    background:
        radial-gradient(ellipse at 35% 90%, rgba(15, 20, 30, 0.8) 0%, transparent 35%),
        radial-gradient(ellipse at 65% 85%, rgba(20, 25, 35, 0.6) 0%, transparent 30%);
    animation: fogDrift calc(28s / var(--anim-intensity)) ease-in-out infinite alternate-reverse;
    z-index: 2;
}

@keyframes fogDrift {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(10%) translateY(3%);
    }
}

.scene-raccoon {
    position: absolute;
    animation: parallax calc(12s / var(--anim-intensity)) ease-in-out infinite alternate;
}

.main {
    bottom: -2%;
    right: 10%;
    width: 250px;
    height: 180px;
    z-index: 3;
}

.distant-1 {
    bottom: 18%;
    left: 5%;
    width: 140px;
    height: 100px;
    z-index: 1;
    transform: scaleX(-1);
    animation: parallax-flip calc(15s / var(--anim-intensity)) ease-in-out infinite alternate;
    animation-delay: -5s;
    opacity: 0.7;
}

.distant-2 {
    bottom: 12%;
    left: 25%;
    width: 170px;
    height: 120px;
    z-index: 1;
    animation-delay: -9s;
    opacity: 0.55;
    filter: blur(1px);
}

.r-body {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 75%;
    height: 60%;
    background: linear-gradient(170deg, rgba(80, 85, 95, 0.4) 0%, rgba(15, 16, 20, 1) 25%, #050608 100%);
    border-radius: 50% 60% 30% 20% / 60% 80% 20% 20%;
    box-shadow: inset 5px 10px 15px rgba(200, 210, 230, 0.05);
    transform-origin: bottom center;
    animation: breathing calc(4s / var(--anim-intensity)) ease-in-out infinite alternate;
}

.r-head {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 45%;
    height: 50%;
    background: linear-gradient(160deg, rgba(70, 75, 85, 0.5) 0%, rgba(20, 22, 28, 1) 30%, #08090c 100%);
    border-radius: 50% 50% 40% 50% / 60% 60% 45% 45%;
    transform-origin: center bottom;
    animation: headBob calc(7s / var(--anim-intensity)) ease-in-out infinite alternate;
    box-shadow: -2px -2px 8px rgba(255, 255, 255, 0.02);
}

.r-ear {
    position: absolute;
    top: -15%;
    width: 28%;
    height: 35%;
    background: linear-gradient(to bottom, rgba(80, 85, 95, 0.6) 0%, #0a0b0e 80%);
    border-radius: 50% 50% 10% 10% / 70% 70% 10% 10%;
}

.r-ear.left {
    left: 10%;
    transform: rotate(-25deg);
}

.r-ear.right {
    right: 15%;
    transform: rotate(35deg);
}

.r-mask {
    position: absolute;
    top: 35%;
    left: 5%;
    right: 5%;
    height: 40%;
    background: #020202;
    border-radius: 40% 40% 50% 50% / 50% 50% 40% 40%;
    clip-path: polygon(0% 20%, 35% 50%, 50% 40%, 65% 50%, 100% 20%, 95% 80%, 75% 100%, 50% 70%, 25% 100%, 5% 80%);
    opacity: 0.95;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.r-snout {
    position: absolute;
    bottom: -5%;
    left: 40%;
    width: 30%;
    height: 25%;
    background: #000;
    border-radius: 50%;
}

.r-snout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 40%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.r-eyes {
    position: absolute;
    top: 45%;
    left: 18%;
    width: 64%;
    height: 15%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: blink calc(5s / var(--anim-intensity)) infinite;
    z-index: 2;
}

.eye {
    width: 6px;
    height: 6px;
    background: rgba(230, 240, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 8px 3px rgba(180, 200, 255, 0.2);
    transform: rotate(10deg);
}

.distant-1 .eye,
.distant-2 .eye {
    width: 4px;
    height: 4px;
}

.r-tail {
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 45%;
    height: 20%;
    background: repeating-linear-gradient(-45deg,
            #15181e,
            #15181e 15%,
            #050608 15%,
            #050608 30%);
    border-radius: 50px;
    transform-origin: center right;
    animation: tailSwish calc(6s / var(--anim-intensity)) ease-in-out infinite alternate;
    box-shadow: inset 0px 5px 8px rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes parallax {
    0% {
        transform: translateX(0);
    }

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

@keyframes parallax-flip {
    0% {
        transform: scaleX(-1) translateX(0);
    }

    100% {
        transform: scaleX(-1) translateX(-8px);
    }
}

@keyframes breathing {
    0% {
        transform: scaleY(1) scaleX(1);
    }

    100% {
        transform: scaleY(1.02) scaleX(1.01);
    }
}

@keyframes headBob {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    30% {
        transform: translateY(1px) rotate(2deg);
    }

    100% {
        transform: translateY(-2px) rotate(-3deg);
    }
}

@keyframes tailSwish {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(8deg);
    }
}

@keyframes blink {

    0%,
    46%,
    48%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    47% {
        opacity: 0;
        transform: scaleY(0.1);
    }
}

.noise {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noiseAnim calc(0.2s / var(--anim-intensity)) steps(2) infinite;
}

@keyframes noiseAnim {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2%, -2%);
    }

    20% {
        transform: translate(1%, 2%);
    }

    30% {
        transform: translate(-2%, 1%);
    }

    40% {
        transform: translate(2%, -1%);
    }

    50% {
        transform: translate(-1%, 2%);
    }

    60% {
        transform: translate(2%, 1%);
    }

    70% {
        transform: translate(1%, -2%);
    }

    80% {
        transform: translate(-1%, -1%);
    }

    90% {
        transform: translate(2%, 2%);
    }

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

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 30%, rgba(3, 3, 5, 0.95) 100%);
}

.hero-top {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding: 0 20px;
}

.subtitle {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.title {
    font-weight: 200;
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 4rem 0;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);

    margin-right: -0.2em;

    text-shadow: 0px 4px 24px rgba(0, 0, 0, 0.6);
}

.btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;

    margin-right: -0.25em;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .btn {
        padding: 1rem 2.5rem;
        font-size: 0.75rem;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.4em;
        margin-bottom: 1.5rem;
    }

    .title {
        margin: 0 0 3rem 0;
    }

    .hero-top {
        font-size: 0.65rem;
        top: 30px;
    }
}