@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@font-face {
    font-family: 'Overused Grotesk';
    src: url('assets/fonts/OverusedGrotesk-SemiBold-BF64eeac17e1195.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #000000;
    --color-text: #DCDCDC;
    --color-accent: #FC2819;
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Overused Grotesk', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 600;
    height: 100%;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Subtle background glow to add a very premium feel */
.container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(252, 40, 25, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: auto;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.illustration-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
    animation: float 3s ease-in-out infinite;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .illustration {
        max-width: 180px;
    }
}

.quote {
    font-family: var(--font-heading);
    font-size: 60px;
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    user-select: none;
}

.subtext {
    font-size: 16px;
    letter-spacing: -0.04em;
    color: var(--color-text);
    opacity: 0.9;
}

.email-link {
    color: var(--color-accent);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    display: inline-block;
}

.email-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-link:hover {
    color: #fe2314;
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: #fe2314;
}

.footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.logo {
    height: clamp(20px, 3.5vw, 24px);
    width: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PRELOADER & MAGIC BLUR ENTRANCE ANIMATIONS (Appended Overrides)
   ========================================================================== */

/* Neutralize the original static fade-in animations so our staggered magic blur runs instead */
.content {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.footer {
    animation: none !important;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.preloader-logo {
    width: clamp(92px, 14.15vw, 113px);
    height: auto;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    filter: blur(5px);
    animation: preloaderLogoFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderLogoFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.progress-bar-container {
    width: clamp(92px, 14.15vw, 113px);
    height: 1.5px;
    background-color: rgba(220, 220, 220, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.06s cubic-bezier(0.1, 0.8, 0.1, 1);
}

/* Magic Blur Staged Entry - Initial State */
.illustration-container,
.quote,
.subtext,
.footer {
    opacity: 0 !important;
    filter: blur(15px) !important;
    transform: translateY(25px) !important;
    will-change: opacity, filter, transform;
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Magic Blur Staged Entry - Loaded state triggered by JS */
body.loaded .illustration-container {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
    transition-delay: 0.1s !important;
}

body.loaded .quote {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
    transition-delay: 0.35s !important;
}

body.loaded .subtext {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
    transition-delay: 0.6s !important;
}

body.loaded .footer {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
    transition-delay: 0.85s !important;
}

.mobile-break {
    display: none;
}

/* Mobile-only responsive overrides (Desktop view remains completely untouched) */
@media (max-width: 768px) {
    .mobile-break {
        display: inline !important;
    }
    .illustration {
        max-width: 240px !important;
    }
    .quote {
        font-size: 32px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.03em !important;
        margin-bottom: 1rem !important;
    }
    .subtext {
        font-size: 14px !important;
        line-height: 1.5 !important;
        letter-spacing: -0.02em !important;
    }
}

