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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8rem 2rem;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
    scroll-margin-top: 0;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
}

.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.6;
}

#dotCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    perspective: 1000px;
    animation: slideUp 0.8s ease 0.2s both;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 15vw, 11rem);
    font-weight: 800;
    /* 0.85 made the acute/caron of HÁJEK collide with the TOMÁŠ baseline.
       Line-height 1 leaves ~0.07em clearance for Czech diacritics. */
    line-height: 1;
    letter-spacing: -0.02em;
    padding-top: 0.12em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-name-top {
    color: var(--white);
    transform: translateX(-5vw);
    transition: transform var(--transition-slow) ease-out;
    will-change: transform;
    display: block;
}

.hero-name-bottom {
    transform: translateX(5vw);
    transition: transform var(--transition-slow) ease-out;
    will-change: transform;
    display: block;
    color: transparent;
    /* Scale the outline with the type size — 2.5px was a hairline at 11rem */
    -webkit-text-stroke: clamp(2px, 0.45vw, 4px) var(--accent);
    paint-order: stroke fill;
}

/* Browsers without text-stroke would render invisible transparent text */
@supports not (-webkit-text-stroke: 1px currentColor) {
    .hero-name-bottom {
        color: var(--accent);
    }
}

.hero-name-bottom:hover {
    opacity: 0.85;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: var(--gray);
    margin-top: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    font-size: 1.5rem;
    color: var(--gray);
    animation: bounce 2s infinite;
    cursor: pointer !important;
    background: none;
    border: none;
    color: var(--gray);
    z-index: 2;
    transition: color var(--transition-base);
}

.scroll-indicator:hover {
    color: var(--accent);
}
