/* ===========================================
   Hero First-View Styles
   =========================================== */

/* Layout */
.fv-main-text {
    font-size: clamp(2.8rem, 4.8vw, 5.2rem);
    font-weight: 500;
    line-height: 1.2;
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards 0.4s;
}

.fv-static {
    font-family: var(--font-hero-base);
    font-weight: 500;
}

.fv-dynamic-wrapper {
    display: inline-block;
    vertical-align: baseline;
}

.fv-dynamic {
    display: inline-block;
    font-family: var(--font-hero-dynamic);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-warm);
    text-shadow: 0 0 40px rgba(123, 104, 238, 0.4), 0 0 80px rgba(201, 160, 255, 0.15);
    transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
}

.fv-dynamic.exit {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(-6px);
}

.fv-dynamic.enter {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(6px);
}

.fv-dynamic.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Initial load animation */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero bottom line */
.fv-content::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent-primary);
    margin: 40px 0 0;
    opacity: 0;
    animation: heroLine 1s ease forwards 1.4s;
}

@keyframes heroLine {
    to {
        opacity: 0.6;
    }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .fv-main-text {
        animation: none;
        opacity: 1;
    }

    .fv-dynamic {
        transition: opacity 0.3s ease;
        filter: none !important;
        transform: none !important;
    }

    .fv-dynamic.exit {
        opacity: 0;
        filter: none;
        transform: none;
    }

    .fv-dynamic.enter {
        opacity: 0;
        filter: none;
        transform: none;
    }

    .fv-content::after {
        animation: none;
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .fv-main-text {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .fv-static {
        display: block;
    }

    .fv-dynamic-wrapper {
        display: block;
        text-align: left;
    }
}
