        /* ==========================================
           1. VARIÁVEIS DA MARCA E RESETS GLOBAIS
           ========================================== */
        :root {
            --orange: #E8501A;
            --warm-bg: #ffffff;
            --text-primary: #1a1a1a;
            --text-tertiary: #888888;
            --ease: cubic-bezier(0.16, 1, 0.3, 1);
            --content-max: 1200px;
        }
        
        html, body { 
            font-family: 'DM Sans', -apple-system, sans-serif; 
            background: #EDEEED; 
            color: var(--text-primary); 
            width: 100%;
            overflow-x: hidden !important; 
            max-width: 100vw;
            line-height: 1.6; 
            -webkit-font-smoothing: antialiased; 
            margin: 0; 
            padding: 0;
        }

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

        button, a, #mobile-controls { 
            user-select: none; 
            -webkit-touch-callout: none; 
        }
        
        #wrap-home {
            width: 100%;
            overflow-x: hidden;
            height: 100vh;
            height: var(--app-height, 100vh);
            height: 100dvh;
            position: relative;
        }

        /* ==========================================
           2. NAVBAR (HEADER)
           ========================================== */
        .navbar {
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            z-index: 1000;
            background: rgba(232,80,26,0.96); 
            backdrop-filter: blur(20px);
            transition: all 0.4s var(--ease);
        }

        .navbar.scrolled { 
            box-shadow: 0 1px 30px rgba(0,0,0,0.15); 
        }

        .navbar-inner {
            max-width: var(--content-max); 
            margin: 0 auto;
            display: flex; 
            align-items: center; 
            justify-content: space-between;
            padding: 14px 40px;
            padding-top: max(14px, env(safe-area-inset-top));
        }

        .logo img {
            height: 44px;
            filter: brightness(0) invert(1); 
        }

        .nav-links-header { 
            display: flex; 
            gap: 32px; 
            list-style: none; 
            margin: 0 !important; 
            padding: 0; 
            align-items: center;
        }

        .nav-links-header a {
            font-weight: 500; 
            font-size: 13px; 
            text-transform: uppercase;
            letter-spacing: 1.8px; 
            color: rgba(255,255,255,0.8);
            transition: color 0.3s; 
            position: relative; 
            text-decoration: none;
        }

        .nav-links-header a::after {
            content: ''; 
            position: absolute; 
            bottom: -2px; 
            left: 50%;
            width: 0; 
            height: 2px; 
            background: #fff;
            transition: all 0.3s var(--ease); 
            transform: translateX(-50%);
        }

        .nav-links-header a:hover { color: #fff; }
        .nav-links-header a:hover::after { width: 100%; }
        .nav-links a.lang-btn {
            color: var(--orange) !important; 
            background-color: #ffffff;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 700;
            transition: all 0.3s var(--ease);
        }
        .nav-links a.lang-btn:hover {
            transform: scale(1.05);
            background-color: var(--warm-bg);
        }
        .nav-links a.lang-btn::after {
            display: none; /* Removes the underline animation just for this button */
        }
        .nav-divider {
            color: #ffffff; /* Changed from rgba(255, 255, 255, 0.3) to solid white */
            cursor: default;
            user-select: none;
            font-weight: 300;
        }

        /* ==========================================
           3. UI DO 3D E OVERLAYS
           ========================================== */
        #canvas-3d-container { 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            overflow: hidden; 
            z-index: 1; 
        }

        #labels-container { 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100vh; 
            height: var(--app-height, 100vh); 
            height: 100dvh; 
            pointer-events: none; 
            z-index: 9999; 
            overflow: hidden; 
        }
        
        .museum-plaque { 
            position: absolute; 
            background: rgba(255, 255, 255, 0.98); 
            backdrop-filter: blur(8px); 
            color: #1a1a1a; 
            padding: 24px; 
            border-radius: 12px; 
            border-left: 5px solid #E8501A; 
            opacity: 0; 
            transition: opacity 0.3s; 
            box-shadow: 0 15px 40px rgba(0,0,0,0.12); 
            width: 320px; 
            pointer-events: none; 
        }

        .museum-plaque.visible { 
            opacity: 1; 
            pointer-events: auto; 
        }

        .museum-plaque h3 { 
            margin: 0 0 10px 0; 
            font-family: 'Playfair Display', serif; 
            font-size: 20px; 
        }

        .museum-plaque p { 
            margin: 0; 
            font-size: 13px; 
            color: #555; 
            line-height: 1.6;
        }
        
        #ui-layer { 
            display: none; 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100vh; 
            height: var(--app-height, 100vh); 
            height: 100dvh; 
            pointer-events: none; 
            z-index: 10; 
            justify-content: center; 
            align-items: center; 
        }

        #crosshair { 
            width: 6px; 
            height: 6px; 
            background: var(--orange); 
            border-radius: 50%; 
            box-shadow: 0 0 4px rgba(0,0,0,0.3); 
        }
        
        #hud-instructions {
            position: absolute;
            bottom: max(40px, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            text-align: center; 
            pointer-events: none; 
            z-index: 10;
        }

        #hud-instructions p {
            margin: 0; 
            color: rgba(255, 255, 255, 0.7) !important;
            font-size: 11px !important; 
            letter-spacing: 4px; 
            text-transform: uppercase; 
            line-height: 2;
        }

        .scroll-indicator {
            position: absolute;
            bottom: max(40px, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%); 
            z-index: 25; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            gap: 8px; 
            cursor: pointer; 
        }

        .scroll-indicator span { 
            font-size: 10px; 
            text-transform: uppercase; 
            letter-spacing: 3px; 
            color: #fff; 
            font-weight: 700; 
            text-align: center; 
        }

        .scroll-mouse { 
            width: 24px; 
            height: 38px; 
            border: 2px solid #fff; 
            border-radius: 12px; 
            position: relative; 
        }

        .scroll-mouse::after { 
            content: ''; 
            position: absolute; 
            top: 6px; 
            left: 50%; 
            width: 3px; 
            height: 8px; 
            margin-left: -1.5px; 
            background: #fff; 
            border-radius: 3px; 
            animation: scrollWheel 2s ease-in-out infinite; 
        }

        @keyframes scrollWheel { 
            0%, 100% { transform: translateY(0); opacity: 1; } 
            50% { transform: translateY(10px); opacity: 0.2; } 
        }

        /* TELA DE MENU INICIAL */
        #menu { 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background: rgba(12, 12, 12, 0.75); 
            backdrop-filter: blur(16px); 
            -webkit-backdrop-filter: blur(16px);
            display: flex; 
            flex-direction: column; 
            justify-content: center; 
            align-items: center; 
            pointer-events: auto; 
            z-index: 20; 
            transition: opacity 0.8s ease; 
        }

        #menu .menu-logo { 
            width: 300px; 
            max-width: 80vw; 
            margin-bottom: 24px; 
            object-fit: contain; 
            filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(0,0,0,0.3)); 
        }

        #menu p { 
            color: rgba(255, 255, 255, 0.75); 
            font-size: 15px; 
            margin-bottom: 48px; 
            text-align: center; 
            line-height: 1.8; 
            font-weight: 300; 
            max-width: 480px; 
        }
        
        #btn-start { 
            padding: 18px 54px; 
            font-size: 13px; 
            font-weight: 700; 
            background: var(--orange); 
            color: white; 
            border: none; 
            border-radius: 50px; 
            cursor: pointer; 
            transition: all 0.4s var(--ease); 
            text-transform: uppercase; 
            letter-spacing: 3px; 
            box-shadow: 0 8px 30px rgba(232, 80, 26, 0.35);
            opacity: 0; 
            pointer-events: none; 
        }

        #btn-start:hover { 
            transform: translateY(-4px) scale(1.02); 
            box-shadow: 0 14px 40px rgba(232, 80, 26, 0.55); 
        }

        #loading-container { 
            width: 260px; 
            margin-top: 32px; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            gap: 12px; 
        }

        .loading-bar { 
            width: 100%; 
            height: 3px; 
            background: rgba(255,255,255,0.15); 
            border-radius: 3px; 
            overflow: hidden; 
        }

        .loading-fill { 
            height: 100%; 
            width: 0%; 
            background: var(--orange); 
            border-radius: 3px; 
            box-shadow: 0 0 12px rgba(232,80,26,0.6); 
            transition: width 0.3s; 
        }

        #loading-text { 
            font-size: 10px; 
            font-weight: 700; 
            color: rgba(255,255,255,0.5); 
            letter-spacing: 4px; 
            text-transform: uppercase; 
        }

        /* CONTROLES MOBILE */
        #mobile-controls { 
            display: none; 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100vh; 
            height: var(--app-height, 100vh); 
            height: 100dvh; 
            z-index: 9998; 
            pointer-events: none; 
        }

        #joystick-zone {
            position: absolute;
            bottom: max(20px, env(safe-area-inset-bottom));
            left: max(30px, env(safe-area-inset-left));
            width: 120px; 
            height: 120px; 
            background: rgba(255,255,255,0.1); 
            border-radius: 50%; 
            pointer-events: auto; 
            border: 2px solid rgba(232, 80, 26, 0.3); 
            backdrop-filter: blur(4px); 
        }

        #joystick-knob { 
            position: absolute; 
            top: 50%; 
            left: 50%; 
            width: 50px; 
            height: 50px; 
            transform: translate(-50%, -50%); 
            background: var(--orange); 
            border-radius: 50%; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
        }

        #look-zone { 
            position: absolute; 
            top: 0; 
            right: 0; 
            width: 50%; 
            height: 100vh; 
            height: var(--app-height, 100vh); 
            height: 100dvh; 
            pointer-events: auto; 
        }

        #btn-exit-3d {
            position: absolute;
            bottom: max(20px, env(safe-area-inset-bottom));
            right: max(30px, env(safe-area-inset-right));
            left: auto;
            width: auto;
            padding: 12px 16px;
            justify-content: center;
            z-index: 10000; 
            pointer-events: auto; 
            background: rgba(0,0,0,0.8); 
            border: 2px solid rgba(255,255,255,0.2); 
            color: white;
            border-radius: 8px; 
            font-weight: bold; 
            backdrop-filter: blur(4px); 
            font-size: 12px; 
            cursor: pointer; 
            display: flex; 
            align-items: center; 
            gap: 6px;
            -webkit-tap-highlight-color: transparent;
        }

        /* ==========================================
           4. 2D PROJECT STYLES (REDRAGON)
           ========================================== */
        .project-content { 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 80px 20px 20px; 
            position: relative; 
            z-index: 30; 
        }

        .project-content section { 
            margin-bottom: 60px; 
        }

        /* CORREÇÃO DE TEXTO PARA REGULAR */
        .process-card .step-text,
        .version-text .step-text,
        .process-banner-left .step-text,
        .step-4-text-content .step-text {
            font-weight: 400 !important; 
        }

        /* EFEITO HOVER NAS IMAGENS (ZOOM CURSOR) */
        .process-card img, 
        .version-image img, 
        .process-banner-right img, 
        .step-4-right img, 
        .gallery-grid img {
            cursor: zoom-in;
            transition: transform 0.3s var(--ease);
        }

        .process-card img:hover, 
        .version-image img:hover, 
        .process-banner-right img:hover, 
        .step-4-right img:hover {
            transform: scale(1.02); 
        }

        /* ==========================================
           5. LIGHTBOX MODAL
           ========================================== */
        .lightbox-modal {
            display: none;
            position: fixed;
            z-index: 100000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(5px);
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .lightbox-modal.active {
            display: flex;
            opacity: 1;
        }

        .lightbox-modal img {
            max-width: 90vw;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            transform: scale(0.95);
            transition: transform 0.3s ease;
        }

        .lightbox-modal.active img {
            transform: scale(1);
        }
        
        /* ==========================================
           6. HERO SECTION E LAYOUTS
           ========================================== */
        .hero-section { text-align: center; margin-bottom: 100px; }
        .hero-banner { width: 100%; max-width: 800px; margin: 0 auto 50px auto; border-radius: 0; }

        .hero-layout { display: flex; align-items: center; gap: 50px; max-width: 1000px; margin: 0 auto; }
        .hero-left { flex: 1; text-align: left; }
        .hero-right { flex: 1; }

        .hero-main-art { width: 100%; max-width: 100%; margin: 0; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
        .hero-titles { display: flex; justify-content: flex-start; align-items: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
        .hero-text { color: var(--text-primary); font-size: 15px; margin-bottom: 30px; line-height: 1.6; }

        /* PROCESS STEPS / CARDS */
        .process-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 30px; 
        }

        .process-card {
            background-color: #D60B1E; 
            padding: 40px;
            display: flex;
            flex-direction: column;
            gap: 40px;
            border-radius: 24px; 
        }

        .process-card-header {
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }

        .process-card .step-number {
            font-size: 70px;
            font-weight: 800;
            color: #ffffff;
            line-height: 0.8;
            min-width: 40px;
            margin: 0;
            font-family: 'DM Sans', sans-serif;
        }

        .process-card .step-text {
            color: #ffffff;
            font-size: 15px;
            line-height: 1.6;
            margin: 0;
        }

        .process-card .images-container { margin-top: auto; }
        
        .process-card .step-images-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            align-items: flex-end;
        }

        .process-card .step-images-1 { text-align: center; }

        .process-card img {
            width: 100%;
            border-radius: 0; 
            box-shadow: none;
            display: block;
        }

        .process-card .step-images-1 img {
            max-width: 240px; 
            margin: 0 auto;
        }

        /* VERSION ROW ESPECIAL */
        .version-row { 
            display: flex; 
            gap: 60px; 
            margin-bottom: 30px; 
            align-items: center; 
            background-color: #D60B1E; 
            padding: 60px; 
            border-radius: 24px; 
        }

        .version-image { flex: 1; display: flex; justify-content: center; }
        .version-image img { 
            width: 100%; 
            max-width: 500px; 
            border-radius: 0; 
            box-shadow: none; 
        }

        .version-text { flex: 1; text-align: left; }
        .version-text h2 { 
            font-size: 64px; 
            line-height: 1;
            margin-bottom: 24px; 
            color: #ffffff; 
            font-weight: 800; 
            font-family: 'DM Sans', sans-serif;
        }

        .version-text .step-text { 
            color: #ffffff; 
            font-size: 16px; 
            line-height: 1.6;
            max-width: 400px; 
            margin: 0;
        }

        /* PROCESS BANNER HORIZONTAL */
        .process-banner-red {
            display: flex;
            background-color: #D60B1E; 
            padding: 50px;
            gap: 40px;
            align-items: center;
            margin-bottom: 30px; 
            border-radius: 24px; 
        }

        .process-banner-left {
            flex: 1; 
            display: flex;
            gap: 24px;
            align-items: flex-start;
        }

        .process-banner-left .step-number {
            font-size: 80px;
            font-weight: 800;
            color: #ffffff;
            line-height: 0.8;
            margin: 0;
            font-family: 'DM Sans', sans-serif;
        }

        .process-banner-left .step-text {
            color: #ffffff;
            font-size: 15px;
            line-height: 1.6;
            margin: 0;
        }

        .process-banner-right {
            flex: 2; 
            display: flex;
            gap: 20px;
        }

        .process-banner-right img {
            flex: 1; 
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 0; 
            box-shadow: none;
        }

        /* PASSO 4 + GALERIA INTEGRADA */
        .step-4-wrapper {
            background-color: #D60B1E;
            padding: 60px;
            margin-bottom: 30px; 
            border-radius: 24px; 
            overflow: hidden; 
        }

        .step-4-header {
            display: flex;
            gap: 40px;
            margin-bottom: 60px;
            align-items: flex-start;
            justify-content: space-between;
        }

        .step-4-left {
            display: flex;
            gap: 24px;
            flex: 1;
            max-width: 800px;
        }

        .step-4-left .step-number {
            font-size: 80px;
            font-weight: 800;
            color: #ffffff;
            line-height: 0.8;
            margin: 0;
            font-family: 'DM Sans', sans-serif;
        }

        .step-4-text-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .step-4-text-content .step-text {
            color: #ffffff;
            font-size: 15px;
            line-height: 1.6;
            margin: 0;
        }

        .step-4-right { flex: 0 0 280px; }
        .step-4-right img {
            width: 100%;
            border-radius: 0; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            display: block;
        }

        .step-4-wrapper .gallery-grid {
            margin-bottom: 0;
            gap: 10px; 
        }

        .step-4-wrapper .gallery-grid img { border-radius: 0; }

        /* PHOTO GALLERY GRID */
        .gallery-grid { 
            display: grid; 
            grid-template-columns: repeat(3, 1fr); 
            gap: 15px; 
            margin-bottom: 100px; 
        }

        .gallery-grid img { 
            width: 100%; 
            aspect-ratio: 1/1; 
            object-fit: cover; 
            border-radius: 8px; 
            transition: transform 0.3s; 
            cursor: pointer; 
        }

        .gallery-grid img:hover { transform: scale(1.02); }

        /* SEÇÃO DE COMEMORAÇÃO (13º LUGAR) */
        .victory-section {
            text-align: center;
            margin-top: 60px;
            margin-bottom: 100px;
            padding: 0 20px;
        }

        .victory-title {
            font-size: 36px;
            font-weight: 800;
            color: #D60B1E; 
            line-height: 1.3;
            margin-bottom: 40px;
            font-family: 'DM Sans', sans-serif;
            text-transform: uppercase;
        }

        .victory-image {
            max-width: 100%;
            width: 500px; 
            height: auto;
            margin: 0 auto;
            display: block;
            animation: floatMascot 4s ease-in-out infinite; 
        }

        @keyframes floatMascot {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }

        /* MAIS PROJETOS E PORTFOLIO */
        .more-projects { margin-top: 80px; margin-bottom: 20px; text-align: left !important; }
        .btn-voltar { display: inline-block; margin-bottom: 30px; transition: transform 0.3s var(--ease); }
        .btn-voltar:hover { transform: translateX(-6px); }
        
        .portfolio-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
        .portfolio-card-link { text-decoration: none; display: block; cursor: pointer; }
        .portfolio-card-link img { 
            width: 100%; border-radius: 24px; margin-bottom: 20px; 
            transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); 
        }
        .portfolio-card-link:hover img { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }
        .portfolio-card-link h4 { font-size: 15px; color: var(--text-tertiary); margin: 0 0 10px 0; font-weight: 700; transition: color 0.3s; }
        .portfolio-card-link p { font-size: 13px; line-height: 1.6; color: #aaaaaa; margin: 0; }
        .portfolio-card-link:hover h4 { color: var(--orange); }

        /* CONTATO E FOOTER */
        .contact-wrap { background-color: #FFC7C6; padding: 50px; border-radius: 30px; margin-top: 60px; margin-bottom: 0; }
        .contact-card-white { background-color: #ffffff; border-radius: 30px; padding: 50px 60px; display: flex; flex-direction: column; gap: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
        .contact-card-white h2 { color: #E8501A !important; font-size: 24px; margin: 0; text-align: left; font-weight: 700; }
        .contact-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
        .btn-whats { background-color: #E8501A; color: #ffffff; padding: 16px 40px; border-radius: 12px; font-weight: bold; text-decoration: none; font-size: 15px; transition: transform 0.3s, box-shadow 0.3s; }
        .btn-whats:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232, 80, 26, 0.3); color: #ffffff; }
        .email-inline { display: flex; align-items: center; gap: 12px; }
        .email-inline a { color: #E8501A !important; font-weight: 500; text-decoration: none; font-size: 15px; }
        .social-inline { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
        .social-inline img { width: 32px; height: 32px; filter: invert(41%) sepia(85%) saturate(2283%) hue-rotate(345deg) brightness(93%) contrast(96%); transition: transform 0.3s; border-radius: 0;}
        .social-inline a:hover img { transform: scale(1.15); }

        .footer { 
            text-align: center; padding: 40px 20px; background-color: #f9f3e0 !important; 
            border-top: 1px solid rgba(0,0,0,0.06); overflow: hidden; 
        }
        .footer-logo { margin: 0 auto 20px auto; width: 118px; display: block; }
        .footer p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 20px; }

        .places-marquee {
            width: 100%; max-width: 520px; margin: 0 auto; overflow: hidden; position: relative;
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
        }
        
        .places-track {
            display: flex; width: max-content; animation: slide-places 12s linear infinite; 
        }
        .places-track img { width: 520px; height: auto; object-fit: contain; }
        
        @keyframes slide-places {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); } 
        }

        /* ==========================================
           7. ANIMAÇÕES, CURSOR E EFEITOS (GSAP)
           ========================================== */
        .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
        .reveal.revealed { opacity: 1; transform: translateY(0); }
        
        .scale-reveal { opacity: 0; transform: scale(0.9); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
        .scale-reveal.revealed { opacity: 1; transform: scale(1); }

        .clip-reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1); }
        .clip-reveal.revealed { clip-path: inset(0 0% 0 0); }

        .cursor-follower {
            position: fixed; width: 20px; height: 20px; border: 2px solid var(--orange); border-radius: 50%;
            pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
            transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, background 0.3s, opacity 0.3s;
            mix-blend-mode: difference; opacity: 0;
        }
        .cursor-follower.visible { opacity: 1; }
        .cursor-follower.hovering { width: 50px; height: 50px; background: rgba(232,80,26,0.15); border-color: #fff; }
        
        .scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #D42B1E, var(--orange), #ff8c42); z-index: 1001; transform-origin: left; transform: scaleX(0); }
        
        .back-to-top {
            position: fixed; bottom: max(32px, env(safe-area-inset-bottom)); right: max(32px, env(safe-area-inset-right)); z-index: 999; width: 48px; height: 48px;
            border-radius: 50%; background: var(--orange); color: #fff; border: none; cursor: pointer; 
            font-size: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; 
            transform: translateY(20px) scale(0.8); transition: all 0.4s var(--ease); box-shadow: 0 4px 20px rgba(232,80,26,0.3); 
        }
        .back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); }
        .back-to-top:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 30px rgba(232,80,26,0.4); }

        /* EFEITO STACKED CARDS */
        .card-wrapper { position: relative; width: 100%; overflow: hidden; }
        .card-panel { position: sticky; top: 0; border-radius: 40px 40px 0 0; overflow: hidden; will-change: transform; width: 100%; }
        #home.card-panel { border-radius: 0; } 
        main.project-content { background: transparent !important; }

        /* ==========================================
           8. RESPONSIVIDADE MEDIA QUERIES
           ========================================== */
        @media (min-width: 1800px) { :root { --content-max: 1500px; } }
        @media (min-width: 2200px) { :root { --content-max: 1800px; } }

        @media (max-width: 900px) {
            .hero-layout { flex-direction: column-reverse; gap: 30px; }
            .hero-titles { justify-content: center; }
            .hero-left { text-align: center; }

            .navbar-inner { padding: 12px 20px !important; padding-top: max(12px, env(safe-area-inset-top)) !important; }
            .nav-links-header { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(232,80,26,0.98); flex-direction: column; padding: 20px; gap: 14px; }
            .nav-links-header.active { display: flex; }
            .mobile-toggle { display: flex !important; }

            #menu .menu-logo { height: auto !important; max-height: 160px !important; max-width: 80vw !important; }
            #menu p { padding: 0 15px; font-size: 13px !important; }

            .step-row, .version-row { flex-direction: column; gap: 20px; }
            .step-number { font-size: 60px; margin-bottom: 10px; }
            .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
            .portfolio-links { grid-template-columns: 1fr !important; gap: 30px !important; }
            
            .project-content { max-width: 1200px; margin: 0 auto; padding: 80px 20px 20px; position: relative; z-index: 30; }
            .project-content section { margin-bottom: 60px; }

            .contact-wrap { background-color: #FFC7C6; padding: 50px; border-radius: 30px; margin-top: 60px; }
            .contact-card-white { padding: 30px 20px !important; gap: 20px; }
            .contact-row { flex-direction: column; align-items: flex-start; gap: 20px; }
            .btn-whats { width: 100%; text-align: center; box-sizing: border-box; }
            .email-inline a { word-break: break-all; }

            .back-to-top { bottom: max(20px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); width: 40px; height: 40px; font-size: 18px; }
            .museum-plaque { width: 260px !important; padding: 16px !important; }
            .museum-plaque h3 { font-size: 17px !important; margin-bottom: 5px !important; }
            .museum-plaque p { font-size: 12px !important; }

            .process-grid { grid-template-columns: 1fr; }
            .process-card { padding: 30px 20px; }

            .version-row { padding: 40px 20px; gap: 30px; }
            .version-text h2 { font-size: 42px; }

            .process-banner-red { flex-direction: column; padding: 40px 20px; gap: 30px; }
            .process-banner-right { flex-direction: column; width: 100%; }

            .step-4-wrapper { padding: 40px 20px; }
            .step-4-header { flex-direction: column; gap: 30px; }
            .step-4-right { flex: auto; width: 100%; max-width: 300px; margin: 0 auto; }
            .victory-title { font-size: 24px; }
            .victory-image { width: 100%; max-width: 350px; }
        }

        @media (max-height: 500px) {
            #menu { padding-top: 70px; justify-content: center; }
            #menu .menu-logo { max-height: 120px !important; margin-top: 0; margin-bottom: 15px; }
            #menu p { font-size: 12px; margin-bottom: 20px; line-height: 1.4; }
            #btn-start { padding: 12px 30px; font-size: 11px; }
            .scroll-indicator { display: none !important; }
        }

        /* Base #cookie-banner/.cookie-* styling now lives in the shared
           css/page-transition.css (loaded on every project page). Only the
           mobile-specific overrides stay here. */
        @media (max-width: 600px) {
            #cookie-banner p { white-space: normal !important; }
            #cookie-banner { flex-direction: column; text-align: center; }
        }

        @media (max-width: 900px) and (orientation: landscape) {
            #cookie-banner { flex-direction: column; padding: 12px 16px; }
            #cookie-banner p { white-space: normal; font-size: 12px; }
            .portfolio-links { grid-template-columns: repeat(3, 1fr) !important; }
            .process-banner-right { flex-direction: row !important; }
            .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
        }

    
/* =============================================
   EDITORIAL GRID 2026 — CASE TEXT SYSTEM
============================================= */
:root { --case-red: #D60B1E; }

.ed-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }

.ed-eyebrow {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--case-red);
    display: flex; align-items: baseline; gap: 12px;
    white-space: nowrap;
}
.ed-eyebrow::after {
    content: ""; flex: 1; height: 1px;
    background: rgba(26,26,26,0.14);
    transform: translateY(-3px);
}

/* --- Opening --- */
.ed-open { margin-bottom: clamp(50px, 6vw, 90px); max-width: var(--content-max); margin-left: auto; margin-right: auto; padding: 40px 20px 0; text-align: left; }
.ed-kicker {
    grid-column: 1 / -1;
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.22em; color: rgba(26,26,26,0.45);
    border-bottom: 1px solid rgba(26,26,26,0.14);
    padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 52px);
    gap: 16px;
}
.ed-kicker em { font-style: normal; color: var(--case-red); }
.ed-open-art { grid-column: 8 / 13; grid-row: 2 / span 3; align-self: start; }
.ed-open-art img { width: 100%; border-radius: 16px; display: block; }
.ed-lead-display {
    grid-column: 1 / 8;
    font-size: clamp(24px, 2.9vw, 42px);
    line-height: 1.16;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #1a1a1a;
    margin: 0;
    text-wrap: balance;
}
.ed-lead-display strong { color: var(--case-red); font-weight: 600; }
.ed-open-sub {
    grid-column: 1 / 8;
    margin-top: clamp(20px, 2.5vw, 32px);
    font-size: 16px; line-height: 1.75;
    color: #55524c;
}
.ed-open-meta {
    grid-column: 1 / -1;
    margin-top: clamp(30px, 4vw, 52px);
    padding-top: clamp(20px, 2.5vw, 28px);
    border-top: 1px solid rgba(26,26,26,0.14);
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ed-open-meta div span {
    display: block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: rgba(26,26,26,0.4); margin-bottom: 4px;
}
.ed-open-meta div p { font-size: 14px; font-weight: 600; color: #1a1a1a; margin: 0; line-height: 1.4; }

/* --- Editorial step serials (replace giant numerals) --- */
.step-serial {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.28);
    padding-bottom: 10px; margin: 0 0 16px;
}
.step-head {
    font-size: clamp(19px, 1.9vw, 24px);
    font-weight: 700; letter-spacing: -0.015em; line-height: 1.2;
    color: #ffffff; margin: 0 0 12px;
    font-family: 'DM Sans', sans-serif;
    text-wrap: balance;
}
.process-card-header, .process-banner-left, .step-4-left { display: block !important; }
.version-text .step-serial { color: rgba(255,255,255,0.75); }
.version-text h2 {
    font-size: clamp(38px, 4.5vw, 64px) !important;
    letter-spacing: -0.03em !important;
}
.version-text .step-text em { font-style: normal; font-weight: 700; color: #ffffff; }

/* --- Victory: editorial statement --- */
.ed-statement { max-width: var(--content-max); margin: 0 auto clamp(70px, 9vw, 110px); padding: 0 20px; text-align: left; }
.ed-statement .ed-eyebrow { grid-column: 1 / -1; margin-bottom: clamp(26px, 4vw, 48px); }
.ed-statement h2 {
    grid-column: 1 / -1;
    font-size: clamp(36px, 6vw, 88px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #1a1a1a;
    text-transform: none;
    margin: 0 0 0.45em;
}
.ed-statement h2 em { font-style: normal; color: var(--case-red); }
.ed-stat-strip {
    grid-column: 1 / 6;
    align-self: start;
    display: grid; gap: 22px;
}
.ed-stat-strip div span {
    display: block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: rgba(26,26,26,0.4); margin-bottom: 4px;
}
.ed-stat-strip div p { font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: #1a1a1a; margin: 0; }
.ed-statement-body { grid-column: 6 / 12; }
.ed-statement .ed-statement-body .ed-statement-copy { grid-column: auto; }
.ed-statement .ed-statement-copy {
    grid-column: 6 / 12;
    font-size: 17px; line-height: 1.75;
    color: #55524c; margin: 0 0 1.4em;
}
.ed-statement .ed-statement-copy strong { color: #1a1a1a; font-weight: 600; }
.ed-victory-img { grid-column: 1 / -1; margin-top: clamp(30px, 4vw, 50px); text-align: center; }

@media (max-width: 900px) {
    .ed-open-art { grid-column: 1 / -1; grid-row: auto; margin-bottom: 26px; }
    .ed-lead-display, .ed-open-sub, .ed-open-meta { grid-column: 1 / -1; }
    .ed-open-meta { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
    .ed-lead-display { font-size: clamp(23px, 6vw, 30px); }
    .ed-kicker { flex-direction: column; gap: 4px; align-items: flex-start; }
    .ed-stat-strip { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); margin-bottom: 26px; }
.ed-statement .ed-statement-copy { grid-column: 1 / -1; }
    .ed-statement-body { grid-column: 1 / -1; }
    .step-head { font-size: 19px; }
}

