/* =========================
   VARIABLES
========================= */

:root {
    --white: #e6e6e6;
    --muted: #777;
    --red: #ff1a1a;
    --background: #020304;
}


/* =========================
   RESET
========================= */

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


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    min-height: 100vh;

    background: var(--background);

    color: var(--white);

    font-family:
        "IBM Plex Mono",
        monospace;

    overflow: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;

    background-image:
        url("fondo.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: scale(1.02);

    will-change: transform;
    backface-visibility: hidden;

    z-index: -3;
}


/* DARK OVERLAY */

.overlay {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.25) 45%,
            rgba(0, 0, 0, 0.82) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.10) 45%,
            rgba(0, 0, 0, 0.72)
        );

    pointer-events: none;

    z-index: -2;
}


/* =========================
   LIGHTWEIGHT GRAIN
========================= */

.noise {
    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.015;

    background:
        repeating-radial-gradient(
            circle at 0 0,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 3px
        );

    z-index: 20;
}


/* =========================
   TOP BAR
========================= */

.topbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 36px 42px;

    font-size: 12px;

    letter-spacing: 5px;

    z-index: 10;
}


.logo {
    color: #999;

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.logo:hover {
    color: var(--white);
}


.logo span {
    color: var(--red);
}


.status {
    display: flex;

    gap: 14px;

    color: #999;
}


.separator {
    opacity: 0.5;
}


/* =========================
   HERO
========================= */

.hero {
    width: 100%;
    height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;
}


.hero-content {
    position: relative;

    transform: translateY(20px);

    animation:
        appear 1.2s
        cubic-bezier(.2, .8, .2, 1)
        forwards;
}


.hero h1 {
    font-size:
        clamp(36px, 4vw, 64px);

    font-weight: 300;

    letter-spacing: 14px;

    text-transform: lowercase;

    text-shadow:
        0 0 30px
        rgba(255, 255, 255, 0.08);
}


.red-line {
    width: 32px;
    height: 1px;

    margin: 28px auto;

    background: var(--red);

    box-shadow:
        0 0 10px
        rgba(255, 0, 0, 0.45);
}


.subtitle {
    color: #888;

    font-size: 14px;

    letter-spacing: 7px;
}


/* =========================
   SOCIAL LINKS
========================= */

.socials {
    margin-top: 130px;

    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 20px;

    font-size: 12px;

    letter-spacing: 4px;
}


.socials a,
.spotify-trigger {
    color: #aaa;

    text-decoration: none;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}


.socials a:hover,
.spotify-trigger:hover {
    color: #fff;

    text-shadow:
        0 0 12px
        rgba(255, 255, 255, 0.4);
}


.socials > span {
    color: var(--red);
}


/* =========================
   SPOTIFY BUTTON
========================= */

.spotify-trigger {
    appearance: none;

    border: 0;

    background: transparent;

    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;

    padding: 0;

    cursor: pointer;
}


/* =========================
   AUDIO MARK
========================= */

.audio-mark {
    height: 22px;

    margin-top: 28px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 3px;
}


.audio-mark span {
    width: 2px;
    height: 5px;

    background: var(--red);

    animation:
        bass 1.1s
        ease-in-out
        infinite;
}


.audio-mark span:nth-child(2) {
    animation-delay: 0.15s;
}


.audio-mark span:nth-child(3) {
    animation-delay: 0.30s;
}


.audio-mark span:nth-child(4) {
    animation-delay: 0.45s;
}


.audio-mark span:nth-child(5) {
    animation-delay: 0.60s;
}


/* =========================
   FOOTER
========================= */

.footer {
    position: fixed;

    bottom: 34px;
    left: 42px;
    right: 42px;

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    align-items: center;

    font-size: 11px;

    letter-spacing: 4px;

    color: #666;
}


.footer p:nth-child(2) {
    text-align: center;
}


.footer p:nth-child(3) {
    text-align: right;
}


.footer span {
    color: var(--red);
}


/* =========================
   SPOTIFY MODAL
========================= */

.spotify-modal {
    position: fixed;
    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;

    z-index: 100;
}


.spotify-modal.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* SPOTIFY BACKDROP */

.spotify-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, 0.82);
}


/* SPOTIFY PANEL */

.spotify-panel {
    position: relative;

    width:
        min(460px, 100%);

    padding: 26px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    background:
        rgba(5, 6, 7, 0.96);

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.75);

    transform:
        translateY(20px)
        scale(0.98);

    opacity: 0;

    transition:
        transform 0.45s
        cubic-bezier(.2, .8, .2, 1),
        opacity 0.45s ease;

    z-index: 1;
}


.spotify-modal.active
.spotify-panel {
    transform:
        translateY(0)
        scale(1);

    opacity: 1;
}


/* SPOTIFY LABEL */

.spotify-label {
    margin-bottom: 20px;

    color: #777;

    font-size: 10px;

    letter-spacing: 5px;

    text-transform: lowercase;
}


.spotify-label span {
    color: var(--red);
}


/* SPOTIFY CLOSE */

.spotify-close {
    position: absolute;

    top: 12px;
    right: 16px;

    border: 0;

    background: transparent;

    color: #777;

    font-family: inherit;

    font-size: 25px;

    font-weight: 300;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.spotify-close:hover {
    color: #fff;

    transform: rotate(90deg);
}


/* SPOTIFY PLAYER */

.spotify-panel iframe {
    display: block;

    border-radius: 8px;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes appear {

    from {
        opacity: 0;

        transform:
            translateY(35px);
    }

    to {
        opacity: 1;

        transform:
            translateY(20px);
    }

}


@keyframes bass {

    0%,
    100% {
        height: 4px;

        opacity: 0.4;
    }

    50% {
        height: 18px;

        opacity: 1;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .background {
        background-position:
            55% center;
    }


    .topbar {
        padding:
            24px 20px;

        font-size:
            9px;

        letter-spacing:
            3px;
    }


    .hero-content {
        padding:
            0 20px;
    }


    .hero h1 {
        font-size:
            34px;

        letter-spacing:
            8px;
    }


    .subtitle {
        font-size:
            10px;

        letter-spacing:
            4px;
    }


    .socials {
        margin-top:
            80px;

        gap:
            13px;

        font-size:
            10px;

        letter-spacing:
            2px;
    }


    .footer {
        left: 20px;
        right: 20px;
        bottom: 20px;

        grid-template-columns:
            1fr;

        font-size:
            8px;

        letter-spacing:
            2px;
    }


    .footer p:first-child,
    .footer p:last-child {
        display: none;
    }


    /* SPOTIFY MOBILE */

    .spotify-modal {
        align-items: flex-end;

        padding: 14px;
    }


    .spotify-panel {
        width: 100%;

        padding: 20px;

        padding-top: 26px;
    }


    .spotify-panel iframe {
        height: 352px;
    }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}
