:root { --black: #000000; --white: #ffffff; --line: rgba(255,255,255,0.05); }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; padding: 0; width: 100%; min-height: 100vh; overflow-x: hidden; background: var(--black); color: var(--white); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

#neural-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.noise-grain { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; opacity: 0.04; background: url('data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E'); }
@media (max-width: 768px) { .noise-grain { display: none; } }

header { position: fixed; top: 0; left: 0; width: 100%; padding: 25px 5%; z-index: 1000; background: rgba(0,0,0,0.3); backdrop-filter: blur(25px); border-bottom: 1px solid var(--line); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1700px; margin: 0 auto; height: 100%; }
.logo { font-size: 18px; font-weight: 200 !important; letter-spacing: 2px; color: var(--white); text-decoration: none; cursor: pointer; position: relative; z-index: 1001; }
.nav-right { display: flex; align-items: center; gap: 35px; }
.nav-link { font-size: 10px; font-weight: 300; letter-spacing: 2px; text-decoration: none; color: white; opacity: 0.4; transition: 0.3s; cursor: pointer; }
.nav-link:hover { opacity: 1; }
.btn-contact { background: white; color: black !important; padding: 10px 24px; border-radius: 40px; font-weight: 600; text-decoration: none; font-size: 10px; cursor: pointer; transition: transform 0.3s ease; }
.btn-contact:hover { transform: scale(1.05); }

.hero { height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 5%; position: relative; z-index: 1; }
.hero-title { font-size: clamp(60px, 22vw, 280px); font-family: 'Inter', sans-serif; font-weight: 100 !important; letter-spacing: -7px; line-height: 0.8; margin: 0; }
.typewriter-box { min-height: 120px; margin-top: 40px; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1400px; cursor: pointer; }
.hero-sub { font-size: clamp(12px, 2.5vw, 15px); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400; line-height: 1.8; margin: 0; color: rgba(255,255,255,0.5); }
.cursor-blink { animation: b 1s infinite; } @keyframes b { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.marquee-wrapper { width: 100%; padding: 45px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 120px; transform: rotate(-1.5deg) scale(1.05); overflow: hidden; background: var(--black); position: relative; z-index: 1; }
.marquee-track { display: flex; width: max-content; animation: scrollMarquee 70s linear infinite; will-change: transform; }
.marquee-content { display: flex; align-items: center; padding-right: 60px; font-size: clamp(20px, 4vw, 32px); font-weight: 800; white-space: nowrap; }
.marquee-content .outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.2); }

.bento-grid { display: grid; padding: 0 5% 120px; gap: 20px; max-width: 1500px; margin: 0 auto; grid-template-columns: repeat(2, 1fr); position: relative; z-index: 1; }
.area-video, .area-fooh, .area-up, .area-cgi { aspect-ratio: 16/10; width: 100%; }
.bento-item { border-radius: 35px; overflow: hidden; background: #050505; position: relative; transition: transform 0.4s; cursor: pointer;}
.bento-inner { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.media-layer { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; filter: grayscale(100%); transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.bento-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 50px; background: linear-gradient(to top, rgba(0,0,0,1) 20%, transparent); z-index: 2; pointer-events: none; }
.tag { font-size: 8px; padding: 7px 15px; border-radius: 5px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 2px; }
.bento-info h3 { font-size: 28px; font-weight: 200; margin: 20px 0 10px; letter-spacing: -1px; }
.bento-info p { font-size: 15px; color: rgba(255,255,255,0.5); font-weight: 300; line-height: 1.6; margin: 0; }

.cta-section { padding: 180px 5%; text-align: center; position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(32px, 6vw, 52px); font-weight: 100; margin-bottom: 70px; letter-spacing: -2px; }
.contact-btns { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.massive-btn { display: flex; align-items: center; justify-content: center; padding: 24px 65px; background: white; color: black; font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 80px; transition: all 0.4s ease; width: 280px; box-sizing: border-box; cursor: pointer; }
.btn-icon { width: 20px; height: 20px; margin-right: 15px; fill: currentColor; pointer-events: none; transition: 0.3s; flex-shrink: 0; }
.btn-text { display: inline-block; min-width: 160px; text-align: center; pointer-events: none; } 
.outline-btn { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.15); }

footer { padding: 70px 5%; border-top: 1px solid var(--line); color: rgba(255, 255, 255, 0.5); font-size: 9px; font-weight: 300; text-align: center; letter-spacing: 5px; position: relative; z-index: 1; }

.reveal { opacity: 0; transform: translateY(40px); transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1); } .reveal.active { opacity: 1; transform: translateY(0); }

/* --- ЛАЙТБОКС --- */
#lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(0,0,0,0.95); backdrop-filter: blur(15px); z-index: 100000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.4s ease; overflow: hidden; }
#lightbox.lightbox-visible { opacity: 1; visibility: visible; }
.lightbox-media { max-width: 95vw; max-height: 90vh; border-radius: 10px; transform: scale(0.95); opacity: 0; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.5); object-fit: contain; pointer-events: auto; transform-origin: center center; } 
.lightbox-media.media-loaded { transform: scale(1); opacity: 1; }

/* ИДЕНТИЧНЫЕ КНОПКИ (Крестик и Звук) */
.lightbox-close, .sound-indicator { position: absolute; width: 50px; height: 50px; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000001; transition: all 0.3s ease; pointer-events: auto; }
.lightbox-close:hover, .sound-indicator:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.05); }

.lightbox-close { top: 30px; right: 30px; color: rgba(255, 255, 255, 0.8); font-size: 30px; font-weight: 200; padding-bottom: 4px; }
.lightbox-close:hover { color: #ffffff; }

.sound-indicator { bottom: 30px; right: 30px; opacity: 0; transform: scale(0.8); }
.sound-indicator.visible { opacity: 1; transform: scale(1); }
.sound-indicator:hover.visible { transform: scale(1.05); }
.sound-indicator svg { width: 22px; height: 22px; fill: rgba(255, 255, 255, 0.6); transition: fill 0.3s ease; }
.sound-indicator.sound-on svg { fill: #ffffff; }

@media (max-width: 1024px) { .bento-grid { grid-template-columns: 1fr; } }

/* --- ИДЕАЛЬНАЯ МОБИЛЬНАЯ ВЕРСТКА --- */
@media (max-width: 768px) {
    header { padding: 20px 20px; } 
    .nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; }
    .nav-right { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; } 
    
    /* Запрет переноса и жесткие отступы */
    .logo { font-size: 15px; font-weight: 200 !important; white-space: nowrap; flex-shrink: 0; }
    .nav-link { display: block; font-size: 8px; letter-spacing: 0.5px; opacity: 0.6; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
    .btn-contact { padding: 8px 14px; font-size: 8px; white-space: nowrap; flex-shrink: 0; } 
    
    .bento-grid { grid-template-columns: 1fr; gap: 15px; padding-bottom: 60px;}
    .area-video, .area-fooh, .area-up, .area-cgi { aspect-ratio: 4/5; }
    .bento-info { padding: 30px; }
    .bento-info h3 { font-size: 22px; }
    
    .contact-btns { flex-direction: column; align-items: center; gap: 15px; width: 100%; padding: 0 10px; }
    .btn-wrap { width: 100%; display: flex; justify-content: center; }
    .massive-btn { width: 100%; max-width: 320px; font-size: 11px; padding: 22px 0; justify-content: center; box-sizing: border-box; }
    .btn-text { min-width: 140px; }
    
    #lightbox { background: #000000; backdrop-filter: none; } 
    .lightbox-media { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; box-shadow: none; transform: scale(0.98); }
    
    .lightbox-close, .sound-indicator { width: 45px; height: 45px; }
    .lightbox-close { top: 25px; right: 20px; font-size: 28px; }
    .sound-indicator { bottom: 25px; right: 20px; }
    .sound-indicator svg { width: 20px; height: 20px; }
}

@media (hover: hover) { 
    .bento-item:hover { transform: translateY(-5px); z-index: 10; }
    .bento-inner:hover .media-layer { opacity: 0.8; filter: grayscale(0%); transform: scale(1.05); } 
}
@keyframes scrollMarquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }