/* ============================================
   CINEMATIC ENTRANCE - Premium Welcome Screen
   ============================================
   Format:
   "Welcome"
   "[Brand Name]"
   You handle the vision.
   We handle the rest.

   Matches GenuineBlanks dark premium aesthetic.
   ============================================ */

/* ==================== HERO GREETING STATE ==================== */
.video-hero.greeting-active .video-hero__content {
    pointer-events: none;
}

.video-hero.greeting-active .video-hero__title,
.video-hero.greeting-active .video-hero__subtitle,
.video-hero.greeting-active .video-hero__tagline,
.video-hero.greeting-active .video-hero__buttons {
    opacity: 0 !important;
    animation: none !important;
    transform: translateY(30px);
}

.video-hero.greeting-active .video-hero__scroll {
    opacity: 0;
    animation: none !important;
}

.video-hero.greeting-active .hero-ambient-glow {
    opacity: 0 !important;
    animation: none !important;
}

/* ==================== CINEMATIC DARK BACKDROP ==================== */
.cinematic-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 9;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

/* Subtle gradient overlay */
.cinematic-backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(201, 169, 98, 0.04) 0%,
        transparent 50%
    );
    pointer-events: none;
}

body.cinematic-playing .cinematic-backdrop {
    opacity: 1;
}

.cinematic-backdrop.exit {
    opacity: 0;
    transition: opacity 1s ease;
}

/* ==================== HERO GREETING CONTAINER ==================== */
.hero-greeting {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-greeting.visible {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hero-greeting.exit {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* ==================== WELCOME TEXT ==================== */
.hero-greeting__welcome {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #c9a962;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-greeting__welcome.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== BRAND NAME ==================== */
.hero-greeting__brand {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    min-height: 1.2em;
}

/* Typewriter cursor - gold accent */
.hero-greeting__brand::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0.7em;
    background: #c9a962;
    animation: cursorBlink 0.8s infinite;
}

.hero-greeting__brand.typing-done::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Individual letter styling */
.hero-greeting__brand .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.hero-greeting__brand .letter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle gold glow on letter appearance */
.hero-greeting__brand .letter.glow {
    text-shadow: 0 0 40px rgba(201, 169, 98, 0.5);
}

.hero-greeting__brand .letter.glow-settle {
    text-shadow: none;
    transition: text-shadow 0.5s ease-out;
}

/* ==================== TAGLINE CONTAINER ==================== */
.hero-greeting__tagline {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ==================== TAGLINE LINES (Typewriter) ==================== */
.hero-greeting__tagline-line {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    min-height: 1.2em;
}

/* Typewriter cursor for tagline */
.hero-greeting__tagline-line.typing::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0.7em;
    background: #c9a962;
    animation: cursorBlink 0.8s infinite;
}

.hero-greeting__tagline-line.typing-done::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Individual letter styling for tagline */
.hero-greeting__tagline-line .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.hero-greeting__tagline-line .letter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== CONTENT REVEAL ANIMATION ==================== */
.video-hero.content-revealing .video-hero__title {
    opacity: 0;
    transform: translateY(20px);
    animation: contentReveal 0.8s forwards;
    animation-delay: 0.1s;
}

.video-hero.content-revealing .video-hero__subtitle {
    opacity: 0;
    transform: translateY(15px);
    animation: contentReveal 0.6s forwards;
    animation-delay: 0.3s;
}

.video-hero.content-revealing .video-hero__tagline {
    opacity: 0;
    transform: translateY(15px);
    animation: contentReveal 0.6s forwards;
    animation-delay: 0.45s;
}

.video-hero.content-revealing .video-hero__buttons {
    opacity: 0;
    transform: translateY(15px);
    animation: contentReveal 0.6s forwards;
    animation-delay: 0.6s;
}

.video-hero.content-revealing .video-hero__scroll {
    opacity: 0;
    animation: contentReveal 0.5s forwards;
    animation-delay: 0.8s;
}

@keyframes contentReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== PROGRESS INDICATOR ==================== */
/* Hidden - user requested removal */
.hero-greeting__progress {
    display: none;
}

/* ==================== HIDE COLD EMAIL PILL DURING GREETING ==================== */
body.cinematic-playing .ce-pill {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==================== HERO GREETING HIDDEN STATE ==================== */
.hero-greeting.hidden {
    display: none;
}

/* ==================== MOBILE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .hero-greeting__welcome {
        font-size: 0.7rem;
        letter-spacing: 0.25em;
        margin-bottom: 12px;
    }

    .hero-greeting__brand {
        font-size: clamp(1.75rem, 10vw, 3rem);
    }

    .hero-greeting__tagline {
        margin-top: 20px;
        gap: 6px;
    }

    .hero-greeting__tagline-line {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    .hero-greeting,
    .hero-greeting__welcome,
    .hero-greeting__brand .letter,
    .hero-greeting__tagline-line .letter {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }

    .hero-greeting__brand .letter,
    .hero-greeting__tagline-line .letter {
        opacity: 1;
        transform: none;
    }

    .hero-greeting__welcome {
        opacity: 1;
        transform: none;
    }
}

/* ==================== LIGHT MODE ==================== */
[data-theme="light"] .cinematic-backdrop {
    background: #fafafa;
}

[data-theme="light"] .cinematic-backdrop::before {
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(160, 128, 64, 0.06) 0%,
        transparent 50%
    );
}

[data-theme="light"] .hero-greeting__welcome {
    color: #a08040;
}

[data-theme="light"] .hero-greeting__brand {
    color: #1a1a1a;
}

[data-theme="light"] .hero-greeting__brand::after {
    background: #a08040;
}

[data-theme="light"] .hero-greeting__tagline-line {
    color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .hero-greeting__brand .letter.glow {
    text-shadow: 0 0 30px rgba(160, 128, 64, 0.4);
}
