/* ==========================================================================
   HOME (index.html)
   ========================================================================== */

/* ---------- Hero: brand name over the slime banner ---------- */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(86vh, 760px);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* Darkens the left side so the text stays readable */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgb(11 11 20 / 92%) 0%, rgb(11 11 20 / 60%) 55%, rgb(11 11 20 / 15%) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}

/* Pixel bubbles (assets/js/bubbles.js): above the dark overlay, below the text.
   The canvas ignores the pointer; the hero catches the clicks and pops the bubbles. */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    image-rendering: pixelated;
    pointer-events: none;
}

.hero.bubble-hover {
    cursor: pointer;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

/* "Hi, I'm Liam" ends in a blinking block cursor, like a game's text box */
.hero .eyebrow {
    gap: 12px;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero .eyebrow::before {
    display: none;
}

.hero .eyebrow::after {
    content: '';
    width: 0.55em;
    height: 1em;
    margin-left: -4px;
    background: currentColor;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* The brand name as a pixel game title, extruded in two shades of blue */
.hero h1 {
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 400;
    line-height: 1;
    text-shadow:
        0.04em 0.04em 0 var(--brand-deep),
        0.08em 0.08em 0 #070d52;
}

.hero h1 span {
    color: var(--brand-light);
}

.hero-lead {
    max-width: 560px;
    margin-bottom: 36px;
    color: var(--text-muted);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

@media (max-width: 760px) {
    .hero {
        min-height: min(68svh, 560px);
        align-items: flex-end;
    }

    .hero-bg {
        object-position: 70% bottom;
    }

    .hero::before {
        background: linear-gradient(0deg, var(--bg) 0%, rgb(11 11 20 / 80%) 45%, rgb(11 11 20 / 35%) 100%);
    }
}
