:root {
    --text: #f1f1f1;
    --cursor: url('https://i.ibb.co/yfwcxq0/default.png'), default;
    --pointer: url('https://i.ibb.co/gFtJHZV/pointer.png'), pointer;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: #000;
    color: var(--text);
    font-family: 'Lato', sans-serif;
    cursor: var(--cursor);
    overflow: hidden;
}

/* ---------- background video ---------- */
#vidarea {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: blur(17px);
    transform: scale(1.12);          /* hides the dark blurred edges */
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}
#vidarea.on { opacity: 1; }

/* ---------- intro ---------- */
#intro {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: #000;
    transition: opacity .6s ease;
}
#intro.out { opacity: 0; pointer-events: none; }

#intro p {
    position: absolute;
    left: 1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}
#intro-text { top: 1rem; white-space: pre; }
#skip { bottom: 1rem; opacity: .7; }

/* ---------- main ---------- */
#main {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    text-shadow: 2px 2px #000;
    animation: fadein 1s ease both;
}
#main[hidden] { display: none; }

#name {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 500;
}

#typewriter {
    margin: .6rem 0 0;
    min-height: 1.4em;
    font-weight: 300;
    font-size: 1rem;
}

.socialmedia {
    display: flex;
    gap: 3vh;
    margin-top: 6vh;
}
.socialmedia a,
.socialmedia button {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: var(--pointer);
}
.socialmedia img {
    display: block;
    width: 5vh;
    min-width: 32px;
    height: auto;
    filter: drop-shadow(1px 1px 0 #000);
    transition: transform .15s ease;
}
.socialmedia img:hover { transform: scale(1.1); }

/* ---------- toast ---------- */
#toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 1rem);
    padding: .5rem 1rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, .7);
    font-size: .9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 3;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    #vidarea, #intro, #main, #toast { transition: none; animation: none; }
}
