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

:root {
    --bg: #0a0a0a;
    --fg: #e8e4df;
    --fg-dim: #5a5650;
    --fg-mid: #8a8580;
    --accent: #c4a882;
    --grid: rgba(255, 255, 255, 0.025);
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Outfit", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* subtle grid background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* grain overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* corner brackets */
.frame {
    position: fixed;
    width: 32px;
    height: 32px;
    opacity: 0;
    animation: frameIn 0.8s ease-out forwards;
}

.frame--tl {
    top: 28px;
    left: 28px;
    border-top: 1px solid var(--fg-dim);
    border-left: 1px solid var(--fg-dim);
    animation-delay: 0.6s;
}

.frame--tr {
    top: 28px;
    right: 28px;
    border-top: 1px solid var(--fg-dim);
    border-right: 1px solid var(--fg-dim);
    animation-delay: 0.7s;
}

.frame--bl {
    bottom: 28px;
    left: 28px;
    border-bottom: 1px solid var(--fg-dim);
    border-left: 1px solid var(--fg-dim);
    animation-delay: 0.8s;
}

.frame--br {
    bottom: 28px;
    right: 28px;
    border-bottom: 1px solid var(--fg-dim);
    border-right: 1px solid var(--fg-dim);
    animation-delay: 0.9s;
}

@keyframes frameIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.name {
    font-family: "DM Mono", monospace;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 6.5rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0;
    animation: revealName 1s ease-out 0.1s forwards;
    position: relative;
}

.name::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    animation: lineGrow 1.2s ease-out 0.8s forwards;
}

@keyframes revealName {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 0.5em;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.25em;
    }
}

@keyframes lineGrow {
    to {
        width: 100%;
    }
}

.descriptor {
    font-family: "DM Mono", monospace;
    font-weight: 300;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    letter-spacing: 0.15em;
    color: var(--fg-mid);
    margin-top: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 1.2s forwards;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em;
}

.descriptor__tail {
    color: var(--fg-dim);
    white-space: nowrap;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact {
    margin-top: 3.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 1.6s forwards;
}

.contact a {
    font-family: "DM Mono", monospace;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.3vw, 0.95rem);
    color: var(--fg-dim);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.contact a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.contact a:hover {
    color: var(--accent);
    letter-spacing: 0.12em;
}

.contact a:hover::after {
    width: 100%;
}

.location {
    position: fixed;
    bottom: 32px;
    font-family: "DM Mono", monospace;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--fg-dim);
    opacity: 0;
    animation: fadeUp 0.8s ease-out 2s forwards;
}

/* cursor glow on desktop */
.glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 168, 130, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@media (hover: hover) {
    .glow {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .frame {
        width: 20px;
        height: 20px;
        top: 16px;
    }

    .frame--tl {
        top: 16px;
        left: 16px;
    }

    .frame--tr {
        top: 16px;
        right: 16px;
    }

    .frame--bl {
        bottom: 16px;
        left: 16px;
    }

    .frame--br {
        bottom: 16px;
        right: 16px;
    }

    .location {
        bottom: 20px;
    }

    .contact {
        margin-top: 2.5rem;
    }

    .descriptor {
        max-width: 18rem;
        gap: 0.35em;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        line-height: 1.5;
    }
}
