/* Homepage hero: the neural network is the only decorative background layer. */
.hero {
    min-height: 100svh;
    padding: clamp(8.5rem, 15vh, 11rem) 0 clamp(4rem, 10vh, 7rem);
    align-items: center;
    isolation: isolate;
    background: #050505;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    width: min(100%, 1180px);
    max-width: none;
}

.hero .hero-eyebrow {
    margin: 0 0 clamp(1.75rem, 4vh, 2.75rem);
    padding: 0;
    border: 0;
    color: #b9c0bc;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 1180px;
    margin: 0 0 clamp(1.5rem, 3.5vh, 2.25rem);
    font-size: clamp(3.25rem, 6.1vw, 5.9rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero h1 .highlight-green {
    display: inline-block;
    color: var(--color-primary);
}

.hero-mobile-space {
    display: none;
}

.hero p.hero-copy {
    max-width: 710px;
    margin: 0 0 clamp(2rem, 4vh, 2.75rem);
    color: #d1d5d2;
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.62;
}

.hero-buttons {
    align-items: center;
    gap: 1.75rem;
}

.hero .hero-primary-cta {
    min-height: 54px;
    padding: 0.95rem 1.35rem 0.95rem 1.6rem;
    gap: 1.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.045em;
}

.hero .hero-primary-cta span,
.hero-projects-link span {
    font-size: 1rem;
    transition: transform 0.3s var(--ease-out-expo);
}

.hero .hero-primary-cta:hover span,
.hero-projects-link:hover span {
    transform: translate(3px, -3px);
}

.hero-projects-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0;
    color: #d1d5d2;
    border-bottom: 1px solid #4a4f4c;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-projects-link:hover {
    color: #fff;
    border-color: var(--color-primary);
}

.hero p.hero-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-width: none;
    margin: clamp(2.25rem, 5vh, 3.5rem) 0 0;
    color: #858b87;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.6;
    letter-spacing: 0.025em;
}

.hero-location-dot {
    width: 6px;
    height: 6px;
    margin-right: 0.25rem;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 9px rgba(var(--color-primary-rgb), 0.8);
}

.hero-location a {
    margin-left: 0.2rem;
    color: #b9c0bc;
    text-underline-offset: 0.25em;
    transition: color 0.25s ease;
}

.hero-location a:hover {
    color: var(--color-primary);
}

.hero .hero-primary-cta:focus-visible,
.hero-projects-link:focus-visible,
.hero-location a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

#three-canvas {
    z-index: 0;
    opacity: 0.42;
}

@media (max-width: 900px) {
    .hero {
        min-height: 100svh;
        padding-top: 9rem;
    }

    .hero h1 {
        font-size: clamp(3.15rem, 10vw, 5.4rem);
        line-height: 0.98;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: auto;
        padding: 8.5rem 0 4.5rem;
        align-items: flex-start;
    }

    .hero .container {
        padding: 0 1.35rem;
    }

    .hero .hero-eyebrow {
        margin-bottom: 1.5rem;
        font-size: 0.64rem;
        line-height: 1.5;
        letter-spacing: 0.11em;
    }

    .hero h1 {
        margin-bottom: 1.35rem;
        font-size: clamp(2.75rem, 13.1vw, 4.1rem);
        line-height: 0.98;
        letter-spacing: -0.05em;
    }

    .hero h1 br {
        display: none;
    }

    .hero-mobile-space {
        display: inline-block;
        width: 0.25em;
    }

    .hero p.hero-copy {
        margin-bottom: 2rem;
        font-size: 1rem;
        line-height: 1.58;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .hero .hero-primary-cta {
        width: 100%;
        justify-content: space-between;
    }

    .hero-projects-link {
        align-self: flex-start;
    }

    .hero p.hero-location {
        align-items: flex-start;
        margin-top: 2.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.66rem;
    }

    .hero-location-dot {
        margin-top: 0.4rem;
    }

    #three-canvas {
        opacity: 0.32;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero #three-canvas {
        display: none;
    }

    .hero .reveal-char {
        transform: none !important;
        transition: none !important;
    }

    .hero-content > .hero-eyebrow,
    .hero-content > p,
    .hero-content > .hero-buttons {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero .hero-primary-cta,
    .hero .hero-primary-cta span,
    .hero-projects-link,
    .hero-projects-link span,
    .hero-location a {
        transition: none;
    }
}
