/**
 * ==============================================
 * HERO SECTION (BEM)
 * ==============================================
 * Block: .hero
 * Elements: __content (via .hero-content)
 * 
 * Block: .hero-mission
 * Elements: .line, .line-inner
 * Modifiers: --revealed (via class)
 * 
 * Block: .hero-tagline
 * Elements: .tagline-inner
 * Modifiers: --revealed (via class)
 * 
 * Features:
 * - Line-by-line reveal animation
 * - Gradient text (gray → white)
 * - Staggered animation delays
 * - Mobile responsive centering
 * - Reduced motion support
 * ==============================================
 */

/* ===== Hero Container ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Hero Content Wrapper ===== */
.hero-content {
    text-align: left;
    z-index: 10;
    max-width: 900px;
}

/* ==============================================
   HERO MISSION (Title Block)
   ============================================== */
.hero-mission {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 600;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

/* Line container - creates the mask for reveal */
.hero-mission .line {
    display: block;
    overflow: hidden;
    position: relative;
}

/* Inner text that slides up on reveal */
.hero-mission .line-inner {
    display: block;
    transform: translateY(110%);
}

/* ===== Revealed State ===== */
.hero-mission .line-inner.revealed {
    animation: lineRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== Stagger Delays ===== */
.hero-mission .line:nth-child(1) .line-inner.revealed {
    animation-delay: 0s;
}

.hero-mission .line:nth-child(2) .line-inner.revealed {
    animation-delay: 0.12s;
}

.hero-mission .line:nth-child(3) .line-inner.revealed {
    animation-delay: 0.24s;
}

/* ===== Line Reveal Animation ===== */
@keyframes lineRevealUp {
    to {
        transform: translateY(0);
    }
}

/* ===== Color Gradient (Gray → White) ===== */
.hero-mission .line:nth-child(1) .line-inner {
    color: #888;
}

.hero-mission .line:nth-child(2) .line-inner {
    color: #bbb;
}

.hero-mission .line:nth-child(3) .line-inner {
    color: #fff;
}

/* ==============================================
   HERO TAGLINE
   ============================================== */
.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    padding-left: 3em;
    overflow: hidden;
}

/* Inner text - hidden by default */
.hero-tagline .tagline-inner {
    display: block;
    transform: translateY(100%);
    opacity: 0;
}

/* Revealed state */
.hero-tagline .tagline-inner.revealed {
    animation: taglineReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* ===== Tagline Reveal Animation ===== */
@keyframes taglineReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==============================================
   RESPONSIVE - TABLET
   ============================================== */
@media (max-width: 1024px) {
    .hero {
        padding: 7rem 2rem 3rem;
    }

    .hero-tagline {
        padding-left: 2em;
    }
}

/* ==============================================
   RESPONSIVE - MOBILE
   ============================================== */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
        align-items: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-mission {
        font-size: clamp(4.5rem, 20vw, 10rem);
    }

    /* Center tagline on mobile */
    .hero-tagline {
        padding-left: 0;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* ==============================================
   REDUCED MOTION
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-mission .line-inner,
    .hero-tagline .tagline-inner {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}