@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --darkroom-bg: #07080A;
    --darkroom-surface: #0E1015;
    --darkroom-card: #12151C;
    --safelight-red: #DC2626;
    --safelight-bright: #EF4444;
    --safelight-glow: rgba(220, 38, 38, 0.35);
    --film-amber: #F59E0B;
    --silver-white: #F8FAFC;
    --text-muted: #94A3B8;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

section[id], div[id] {
    scroll-margin-top: 140px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--darkroom-bg);
    color: var(--silver-white);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Breathing room: section content blocks */
section > div > div {
    letter-spacing: 0.01em;
}

/* Smoother section transitions */
section {
    position: relative;
}

/* Gentle gradient fades between sections */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(220, 38, 38, 0.15) 50%, transparent 100%);
    pointer-events: none;
}

/* Card breathing room */
.card-darkroom {
    background: linear-gradient(180deg, #13161E 0%, #0B0D12 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* Wider readable measure for paragraph text */
section p {
    max-width: 65ch;
}

.font-bebas { font-family: 'Bebas Neue', cursive; letter-spacing: 0.05em; }
.font-anton { font-family: 'Anton', sans-serif; }
.font-mono { font-family: 'Space Mono', monospace; }

/* 35mm Film Grain Overlay - DISABLED for smooth 60fps hardware acceleration */
.film-grain {
    display: none !important;
}

/* Card hover enhancement */

.card-darkroom:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 10px 30px -10px var(--safelight-glow);
}

.btn-safelight {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px -3px var(--safelight-glow);
}

.btn-safelight:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 6px 22px var(--safelight-glow);
    transform: translateY(-1px);
}

/* 35MM SPROCKET STRIP */
.sprocket-holes-top {
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #000000 0px,
        #000000 8px,
        #262626 8px,
        #262626 18px
    );
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sprocket-holes-bottom {
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #000000 0px,
        #000000 12px,
        #262626 12px,
        #262626 26px
    );
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================================================================
   INTERACTIVE 3D TAP-TO-PEEL POSTER STACK (WEBSITE 11 EXACT FRAME FIT)
   ========================================================================= */
.poster-stack-wrap {
    perspective: 1200px;
    user-select: none;
    -webkit-user-select: none;
}

.poster-stack-card {
    transition: all 0.4s cubic-bezier(0.34, 1.35, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(220, 38, 38, 0.25);
}

.poster-stack-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.95), 0 0 40px rgba(220, 38, 38, 0.4);
}

.peel-animate {
    animation: cardPeelFlip 0.45s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}

@keyframes cardPeelFlip {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    40% {
        transform: translateY(-40px) rotate(-6deg) scale(0.94);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}


/* Audio Equalizer animation */
@keyframes eqBounce {
    0%, 100% { height: 3px; }
    50% { height: 13px; }
}
.eq-bar {
    width: 2.5px;
    background-color: currentColor;
    border-radius: 1px;
    display: inline-block;
    animation: eqBounce 0.8s ease-in-out infinite;
    animation-play-state: paused;
}
.eq-bar:nth-child(1) { animation-delay: 0.1s; }
.eq-bar:nth-child(2) { animation-delay: 0.35s; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #07080A;
}
::-webkit-scrollbar-thumb {
    background: #1E232E;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #DC2626;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
}


/* =========================================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATION ENGINE
   ========================================================================= */

/* Prevent iOS Safari input zoom */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Touch-friendly scrolling for horizontal bars */
.quick-jump-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.quick-jump-scroll a, .quick-jump-scroll span {
    scroll-snap-align: start;
}

/* Mobile tap targets */
@media (max-width: 640px) {
    button, a {
        min-height: 38px;
    }

    /* Extra padding at bottom for floating mobile dock clearance */
    body {
        padding-bottom: 76px;
    }

    /* Section spacing adjustments for phone viewports */
    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    /* Poster stack card on small screens */
    .poster-stack-wrap {
        width: 280px !important;
    }

    /* Adjust dialog padding on small screens */
    dialog {
        padding: 0 !important;
        margin: auto !important;
        max-height: 90vh !important;
    }
}

/* Floating Mobile App Bottom Dock */
.mobile-app-dock {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.9), 0 0 20px rgba(220, 38, 38, 0.25);
}

.mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 12px;
    color: #94A3B8;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    transition: all 0.2s ease;
    min-height: 46px;
}

.mobile-dock-item:active, .mobile-dock-item.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================================================
   JITTER.VIDEO KINETIC TYPOGRAPHY & SPEED RAMPING ANIMATIONS
   ========================================================================= */
.jitter-welcome-text {
    animation: jitterWelcomeAnim 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes jitterWelcomeAnim {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
        filter: blur(12px);
        letter-spacing: 0.35em;
    }
    40% {
        opacity: 1;
        filter: blur(0px);
    }
    80% {
        opacity: 1;
        transform: scale(1) translateY(0);
        letter-spacing: 0.18em;
    }
    100% {
        opacity: 0;
        transform: scale(1.15) translateY(-30px);
        filter: blur(10px);
        display: none;
    }
}

.jitter-name-text {
    opacity: 0;
    animation: jitterNameAnim 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

@keyframes jitterNameAnim {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
        filter: blur(12px);
    }
    30% {
        opacity: 1;
        transform: scale(1.04) translateY(-4px);
        filter: blur(0px);
    }
    80% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: scale(1.12) translateY(-25px);
        filter: blur(10px);
        display: none;
    }
}

.jitter-final-card {
    opacity: 0;
    animation: jitterFinalAnim 0.9s cubic-bezier(0.34, 1.35, 0.64, 1) 2.1s forwards;
}

@keyframes jitterFinalAnim {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(40px);
        filter: blur(10px);
    }
    70% {
        opacity: 1;
        transform: scale(1.03) translateY(-4px);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

.jitter-logo-bounce {
    animation: jitterLogoSpring 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 2.15s both;
}

@keyframes jitterLogoSpring {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(-60px) rotate(-10deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.12) translateY(6px) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}


/* =========================================================================
   JITTER.VIDEO EXACT ONBOARDING ENGINE & SPEED RAMPING TRANSITIONS
   ========================================================================= */
.jitter-screen {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease, filter 0.55s ease;
    will-change: transform, opacity, filter;
}

.jitter-screen.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
    pointer-events: auto;
}

.jitter-screen.exit-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.92);
    filter: blur(8px);
    pointer-events: none;
}

.jitter-screen.enter-right {
    opacity: 0;
    transform: translateX(60px) scale(1.06);
    filter: blur(8px);
    pointer-events: none;
}

/* Jitter Curved Progress Track (Exact curve from screenshot) */
.jitter-curve-path {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2;
    fill: none;
}

.jitter-node {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jitter-node.active-node {
    transform: scale(1.35);
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.7);
    border-color: #EF4444 !important;
    background: #DC2626 !important;
    color: #FFFFFF !important;
}

.jitter-card-select {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.jitter-card-select:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.3);
}


/* =========================================================================
   TWO-BUMP WATER SLIDE ONBOARDING ANIMATION SYSTEM
   Rider swoops over two bumps and dips to reach each phase
   ========================================================================= */
#jitter-horizontal-track {
    display: flex;
    width: 300%;
    transform: translateX(0%);
    transition: transform 0.75s cubic-bezier(0.45, 0.05, 0.25, 1);
    will-change: transform;
}

.jitter-slide {
    width: 33.333333%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
}

/* Water Slide Track SVG glow */
.waterslide-track-glow {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.4));
}

.waterslide-rider-active {
    filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.9));
    transition: transform 0.1s linear;
}


/* =========================================================================
   RETURNING USER ONBOARDING SUPPRESSION & GOOGLE AUTH STYLES
   ========================================================================= */
html.mfc-returning-user #mfc-jitter-onboarding {
    display: none !important;
}

#google-user-dropdown {
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


/* =========================================================================
   HARDWARE ACCELERATION & 60FPS SCROLL PERFORMANCE ENGINE
   Skips layout & paint for off-screen sections until scrolled into view
   ========================================================================= */
section:not(#poster-stack) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 750px;
}

/* Breathing room for Jump-To navigation targets */
section {
    scroll-margin-top: 1.5rem;
}

/* Dialog polish */
dialog {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

dialog[open] {
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* =========================================================================
   AUTHENTIC RETAIL DIAGONAL PRICE SLASH
   Replaces horizontal line-through with an angled red pen-strike so numerals
   like '6' and '9' are crisp, open, and never distorted into '0'.
   ========================================================================= */
.price-slash {
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
}

.price-slash::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    top: 50%;
    height: 1.5px;
    background-color: #EF4444;
    transform: rotate(-13deg);
    border-radius: 9999px;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.45);
}

