/* Sistema Creativo - Core stylesheet
 * Typography, layout primitives, cursor, mobile menu, marquees, trashy utilities.
 * Page-specific styles live inline in each page <style> block. */

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
    background-color: #050505;
    color: #f4f4f0;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Cursor - hidden on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none !important; }
}
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: rgb(204 255 0); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(204, 255, 0, 0.5); transition: width 0.2s, height 0.2s; }

/* Typography / outline utilities */
.text-outline {
    -webkit-text-stroke: 2px #ffffff;
    color: transparent;
    letter-spacing: -0.04em;
    font-weight: 900;
    transition: -webkit-text-stroke 0.5s ease, filter 0.5s ease, color 0.5s ease;
    filter:
        drop-shadow(3px 3px 0 rgba(204, 255, 0, 0.45))
        drop-shadow(0 0 30px rgba(204, 255, 0, 0.15));
    paint-order: stroke fill;
}
.text-outline:hover,
.group:hover .text-outline {
    -webkit-text-stroke: 2px rgb(204 255 0);
    color: transparent;
    filter:
        drop-shadow(6px 6px 0 rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 60px rgba(204, 255, 0, 0.5));
}
.text-outline-white {
    -webkit-text-stroke: 2px #ffffff;
    color: transparent;
    letter-spacing: -0.04em;
    filter: drop-shadow(2px 2px 0 rgba(204, 255, 0, 0.25));
}
.text-outline-accent {
    -webkit-text-stroke: 2px rgb(204 255 0);
    color: transparent;
    letter-spacing: -0.04em;
    filter: drop-shadow(0 0 24px rgba(204, 255, 0, 0.35));
}

/* Hero-title specific: tighter kerning + ambient animated glow */
.hero-title {
    letter-spacing: -0.05em;
    line-height: 0.85;
}
.hero-title.text-outline {
    animation: hero-outline-glow 4.5s ease-in-out infinite;
}
@keyframes hero-outline-glow {
    0%, 100% {
        filter:
            drop-shadow(3px 3px 0 rgba(204, 255, 0, 0.45))
            drop-shadow(0 0 20px rgba(204, 255, 0, 0.1));
    }
    50% {
        filter:
            drop-shadow(5px 5px 0 rgba(204, 255, 0, 0.65))
            drop-shadow(0 0 55px rgba(204, 255, 0, 0.28));
    }
}
@media (max-width: 768px) {
    .text-outline, .text-outline-white, .text-outline-accent {
        -webkit-text-stroke: 1.5px currentColor;
    }
    .text-outline {
        -webkit-text-stroke: 1.5px #ffffff;
        filter:
            drop-shadow(2px 2px 0 rgba(204, 255, 0, 0.35))
            drop-shadow(0 0 15px rgba(204, 255, 0, 0.1));
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-title.text-outline { animation: none; }
}

/* Preloader */
.loader {
    position: fixed; inset: 0;
    background: #050505;
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}

/* Mobile menu */
#mobile-menu {
    position: fixed; inset: 0;
    background: #050505;
    z-index: 9999;
    transform: translateX(100%);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.mobile-link {
    font-family: 'Syne', sans-serif;
    -webkit-text-stroke: 1px white;
    color: transparent;
    transition: all 0.2s;
    line-height: 1.1;
    padding: 5px 0;
    width: 100%;
    text-align: center;
}
.mobile-link:active, .mobile-link:focus {
    color: rgb(204 255 0);
    -webkit-text-stroke: 1px rgb(204 255 0);
    font-style: italic;
}
.trashy-close {
    position: absolute; top: 2rem; right: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: rgb(204 255 0);
    cursor: pointer;
    border: 2px solid rgb(204 255 0);
    padding: 0.5rem 1rem;
    transform: rotate(3deg);
    transition: all 0.2s;
    background: #000;
    z-index: 20;
}
.trashy-close:hover {
    background: rgb(204 255 0);
    color: #000;
    transform: rotate(0deg) scale(1.1);
}

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* Glitch */
@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}
.glitch-effect:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: rgb(204 255 0);
}
@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(-1deg); }
    80% { transform: skew(1deg); }
    100% { transform: skew(0deg); }
}
.glitch-hover:hover {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: rgb(204 255 0);
}

/* Blink */
.cursor-blink { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Trashy utilities */
.trashy-img {
    position: absolute;
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: exclusion;
    pointer-events: none;
}

/* Video containers */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}
.video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.video-responsive {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
}
.video-responsive iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* Video wrapper overlay */
.video-wrapper::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.2), rgba(5,5,5,0.9));
    z-index: 1;
}

/* Gallery */
.grid-gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.grid-gallery-item:hover .grid-gallery-img {
    transform: scale(1.05);
}

/* Focus visible accessibility */
:focus-visible {
    outline: 2px solid rgb(204 255 0);
    outline-offset: 2px;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-marquee { animation: none; }
}
