/* === HERO === */

#hero {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero > .page {
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 3;
}

.hero-name {
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 0.88;
    margin-bottom: 20px;
    position: relative;
}



.hero-role {
    font-family: var(--mono);
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: var(--text-2);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-expo) 0.6s forwards;
}

.hero-bio {
    margin-top: 40px;
    color: var(--text-2);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 520px;
    position: relative;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-expo) 0.8s forwards;
}

.hero-bio strong {
    color: var(--text-1);
    font-weight: 500;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HERO VIDEO BG --- */

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        rgba(0, 0, 0, 0.12) 1px,
        rgba(0, 0, 0, 0.12) 2px
    );
}

.hero-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 1;
    pointer-events: none;
}

.hero-video-dither {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    image-rendering: pixelated;
}

.hero-video-color {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
}

#heroColorReveal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: color;
}



.showreel-btn {
    margin-top: 40px;
    padding: 14px 32px;
    background: none;
    border: 1px solid var(--text-3);
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s var(--ease-quart), color 0.3s var(--ease-quart);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-expo) 1s forwards;
}

.showreel-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-quint);
}

.showreel-btn-icon {
    display: inline-block;
    transition: transform 0.3s var(--ease-quart);
    font-size: 10px;
    animation: iconPulse 2.4s var(--ease-quart) 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.showreel-btn:hover .showreel-btn-icon {
    animation: none;
}

.showreel-btn:hover {
    border-color: var(--text-1);
    color: var(--text-1);
}

.showreel-btn:hover .showreel-btn-icon {
    transform: scale(1.3);
}

.showreel-btn:hover::after {
    transform: scaleX(1);
}

.showreel-btn:active {
    transform: scale(0.97);
}

.popup-video-container {
    position: relative;
    width: 100%;
}

.popup-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Responsive --- */

/* Mobile (<=768px) */
@media (max-width: 768px) {
    #hero {
        min-height: 70vh;
    }

    #hero > .page {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-video-bg iframe {
        display: none;
    }

    .hero-name {
        letter-spacing: -2px;
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .hero-role {
        letter-spacing: 2px;
        font-size: 0.8125rem;
    }

    .hero-bio {
        font-size: 15px;
        margin-top: 28px;
    }

    .showreel-btn {
        margin-top: 28px;
        padding: 14px 24px;
        font-size: 12px;
        min-height: 44px;
    }
}

/* Small mobile (<=400px) */
@media (max-width: 400px) {
    .hero-name {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }
}
