/* ==========================================
   CINEMATIC INTRO - ANIMATION STYLES
   Movie-title-sequence reveal for /de/ landing
   ========================================== */

/* --- Stage Layout --- */

.intro-stage {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 0 var(--space-lg);
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* --- Orbs: slower, dimmer emergence --- */

.intro-page .orb {
    opacity: 0;
    animation: orb-emerge 4s ease 0.3s both, float 20s ease-in-out infinite;
}

.intro-page .orb-1 { animation-delay: 0.3s, 0s; }
.intro-page .orb-2 { animation-delay: 0.5s, 7s; }
.intro-page .orb-3 { animation-delay: 0.7s, 14s; }

@keyframes orb-emerge {
    to { opacity: 0.15; }
}

/* --- Base state for all intro lines --- */

.intro-line {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.96);
    will-change: opacity, transform, filter;
}

/* --- Line 1: "Since 2016" --- */

.intro-line-1 {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: var(--space-xl);
    animation: cinematic-reveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* --- Line 2: "we are" --- */

.intro-line-2 {
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    animation: cinematic-reveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 2.5s both;
}

/* --- Line 3: "One Pixel Ahead" (hero moment) --- */

.intro-line-3 {
    font-size: var(--text-6xl);
    font-weight: var(--weight-extrabold);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0;
    animation: cinematic-reveal-hero 2.0s cubic-bezier(0.16, 1, 0.3, 1) 4.0s both,
               glow-pulse 4s ease-in-out 6.5s infinite;
}

/* --- Keyframes --- */

@keyframes cinematic-reveal {
    0% {
        opacity: 0;
        filter: blur(4px);
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

@keyframes cinematic-reveal-hero {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: blur(0px) drop-shadow(0 0 0px rgba(245, 123, 2, 0));
    }
    50% {
        filter: blur(0px) drop-shadow(0 0 30px rgba(245, 123, 2, 0.25));
    }
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* --- Footer --- */

.intro-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-xl);
    z-index: 10;
    opacity: 0;
    animation: fade-in 1.0s ease 6.5s both;
}

.intro-footer-line {
    width: 40px;
    height: 1px;
    background: var(--glass-border);
    margin: 0 auto var(--space-md);
}

.intro-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.intro-footer-links a {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.intro-footer-links a:hover {
    color: var(--primary);
}

.intro-footer-sep {
    color: var(--text-tertiary);
    opacity: 0.5;
    font-size: var(--text-xs);
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .intro-line-1 {
        font-size: var(--text-xs);
        letter-spacing: 0.2em;
    }

    .intro-line-2 {
        font-size: var(--text-xl);
    }

    .intro-line-3 {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 480px) {
    .intro-line-1 {
        letter-spacing: 0.15em;
    }

    .intro-line-3 {
        font-size: var(--text-3xl);
    }
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
    .intro-line,
    .intro-footer,
    .intro-page .orb {
        animation: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}
