/* ==========================================================================
   Hero — Serif Editorial
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-44);
    padding-bottom: var(--space-32);
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__badge {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.hero__badge::before {
    content: '';
    width: 32px;
    height: 1px;
    background-color: var(--accent);
}

.hero__title {
    font-size: clamp(var(--text-display), 5vw, var(--text-hero));
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--foreground);
    margin-bottom: var(--space-8);
}

.hero__title-highlight {
    color: var(--accent);
    font-style: italic;
}

.hero__subtitle {
    font-size: var(--text-body-lg);
    color: var(--muted-foreground);
    line-height: 1.75;
    max-width: 48ch;
    margin-bottom: var(--space-12);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ── Decorative rule below hero ────────────────────────────────────────── */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Scroll Indicator ──────────────────────────────────────────────────── */
.hero__scroll {
    position: absolute;
    bottom: var(--space-12);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.hero__scroll-text {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    letter-spacing: 0.15em;
    color: var(--muted-foreground);
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-line 2.5s ease-in-out infinite;
}

@keyframes scroll-line {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform-origin: bottom;
    }

    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--space-32) + var(--space-8));
        padding-bottom: var(--space-20);
    }

    .hero__subtitle {
        font-size: var(--text-body);
    }

    .hero__scroll {
        display: none;
    }
}