        /* ==========================================
           1. VARIÁVEIS DA MARCA E RESETS GLOBAIS
           ========================================== */
        :root {
            --orange: #E8501A;
            --red-accent: #E00E31;
            --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: #ffffff; 
            color: var(--text-primary); 
            width: 100%;
            line-height: 1.6; 
            -webkit-font-smoothing: antialiased; 
            margin: 0; 
            padding: 0;
        }

        body { overflow-x: hidden; }

        *, *::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;
        }
        .nav-divider {
            color: #ffffff; 
            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; } 
        }

        #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: 100px; 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; 
        }

        #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;
        }

        /* =============================================
           EXPAND PANEL (CASE STUDY TEXT TOGGLE)
        ============================================= */
        .expand-panel {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #ffffff;
            border: 1px solid rgba(26,26,26,0.14);
            border-radius: 16px;
            padding: 24px 40px;
            margin: 40px auto 40px auto;
            max-width: var(--content-max);
            cursor: pointer;
            transition: all 0.4s var(--ease);
            color: #1a1a1a;
            user-select: none;
        }

        .expand-panel-text {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.18em;
        }

        .expand-panel-icon {
            width: 20px;
            height: 20px;
            transition: transform 0.5s var(--ease);
        }

        .expand-panel:hover {
            background-color: var(--orange);
            border-color: var(--orange);
            color: #ffffff;
            box-shadow: 0 12px 30px rgba(232,80,26,0.25);
            transform: translateY(-2px);
        }

        .expand-panel.active .expand-panel-icon {
            transform: rotate(180deg);
        }

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

        .project-content section { margin-bottom: 60px; }
        .project-content img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 8px; }
        
        .hero-banner { 
            width: 100vw; max-width: 100vw; height: 400px; object-fit: cover; 
            margin-bottom: 60px; margin-left: calc(-50vw + 50%); 
        }

        .intro-section { text-align: center; margin-bottom: 40px; }
        .intro-title { 
            color: var(--red-accent); font-size: 32px; font-family: 'Playfair Display', serif; 
            font-style: italic; font-weight: 800; margin-bottom: 30px; 
        }
        .intro-section p { 
            max-width: 800px; margin: 15px auto; color: var(--text-primary); 
            line-height: 1.8; font-size: 15px; 
        }
        .intro-image { margin-top: 40px; }

        /* SEÇÃO AMAR (FUNDO PRETO FULL-WIDTH) */
        .dark-section-wrapper {
            background-color: #050505; 
            width: 100vw; position: relative; left: 50%; right: 50%;
            margin-left: -50vw; margin-right: -50vw; padding: 80px 20px; margin-bottom: 80px;
        }
        
        .dark-section-wrapper .artwork-container { margin-bottom: 0; max-width: 1200px; margin: 0 auto; }
        .dark-section-wrapper .artwork-details.dark { color: #ffffff; }

        .artwork-container { display: flex; flex-direction: column; gap: 20px; margin-bottom: 80px; align-items: center; }
        .artwork-details { 
            text-align: center; color: var(--red-accent); font-size: 14px; 
            line-height: 1.6; font-weight: bold; margin-bottom: 20px; 
        }

        /* GALERIA CENTRALIZADA E LIGHTBOX */
        .gallery-grid { 
            display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
            gap: 10px; width: 100%; margin-top: 20px; justify-content: center; 
        }

        .gallery-grid img { 
            width: 100%; height: 250px; object-fit: cover; border-radius: 4px; 
            cursor: zoom-in; transition: transform 0.3s var(--ease), opacity 0.2s ease; 
        }

        .gallery-grid img:hover { transform: scale(1.03); opacity: 0.9; }

        .split-artwork { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
        .split-artwork img {
            width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 8px;
            cursor: zoom-in; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        /* ==========================================
           5. LIGHTBOX MODAL
           ========================================== */
        .lightbox-modal {
            display: none; position: fixed; z-index: 100000; top: 0; left: 0;
            width: 100%; height: 100%; background-color: rgba(5, 5, 5, 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. COMPONENTES GLOBAIS (FOOTER E PROJETOS)
           ========================================== */
        .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); }

        .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 (GSAP) E CURSOR
           ========================================== */
        .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); }

        .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 (min-width: 1800px) { :root { --content-max: 1500px; } }
        @media (min-width: 2200px) { :root { --content-max: 1800px; } }

        @media (max-width: 900px) {
            .portfolio-links { grid-template-columns: 1fr !important; gap: 20px !important; }
            .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; text-align: center; }
            .nav-links-header.active { display: flex !important; }
            .mobile-toggle { display: flex !important; }

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

            .expand-panel { padding: 18px 24px; margin-bottom: 30px; }
            .expand-panel-text { font-size: 11px; }

            .hero-banner { height: 250px; }
            .split-artwork { grid-template-columns: 1fr; gap: 40px; }
    
            .contact-wrap { padding: 30px 20px !important; margin-top: 80px; margin-bottom: 0 !important; }
            .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; }
        }

        @media (max-height: 500px) {
            #menu { padding-top: 70px; justify-content: center; }
            #menu .menu-logo { max-height: 80px !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 (min-width: 901px) {
            /* ----- ARTWORK MAIN IMAGE: BIGGER, FULLY VISIBLE (NO CROPPING) ----- */
            .artwork-media { position: relative; }
            .artwork-container .artwork-media > img {
                width: 100%;
                max-width: 950px;
                height: auto;
                display: block;
                margin: 0 auto;
                border-radius: 8px;
            }

            /* ----- CAPTION BECOMES A HOVER-REVEAL OVERLAY (LIKE THE HERO/PORTFOLIO CARDS) ----- */
            .artwork-container .artwork-media .artwork-details {
                position: absolute;
                inset: auto 0 0 0;
                margin: 0 !important;
                padding: 16px 24px;
                background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 70%);
                color: #ffffff !important;
                font-size: 12px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.4s var(--ease);
            }
            .artwork-container .artwork-media .artwork-details br { display: none; }
            .artwork-media:hover .artwork-details { opacity: 1; }

            /* ----- GALLERY: SMALLER THUMBNAILS, ONE LINE, CENTERED BELOW THE MAIN IMAGE, CLICK TO SWAP ----- */
            .artwork-container .gallery-grid {
                display: flex;
                flex-wrap: nowrap;
                justify-content: center;
                align-items: center;
                max-width: 950px;
                margin: 28px auto 0;
                gap: 10px;
                overflow-x: auto;
                padding-bottom: 4px;
            }
            .artwork-container .gallery-grid img {
                flex: 0 0 auto;
                width: 80px;
                height: 80px;
                object-fit: cover;
                border-radius: 6px;
                cursor: pointer;
            }
            .artwork-container .gallery-grid img.active {
                outline: 2px solid var(--orange);
                outline-offset: -2px;
            }

            /* ----- ÉDEN / ANGÚSTIA: SAME HOVER-REVEAL CAPTION, LAYOUT UNCHANGED ----- */
            .split-artwork > div { position: relative; overflow: hidden; border-radius: 8px; }
            .split-artwork > div .artwork-details {
                position: absolute;
                inset: auto 0 0 0;
                margin: 0 !important;
                padding: 16px 24px;
                background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 70%);
                color: #ffffff !important;
                font-size: 12px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.4s var(--ease);
            }
            .split-artwork > div .artwork-details br { display: none; }
            .split-artwork > div:hover .artwork-details { opacity: 1; }
        }

        @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; }

            .artwork-container {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                grid-template-rows: auto 1fr !important;
                align-items: start !important;
                gap: 16px !important;
                column-gap: 24px !important;
            }

            /* .artwork-media only exists to power the desktop hover-caption; on this
               breakpoint it disappears from layout so img/.artwork-details go back to
               being direct grid items of .artwork-container, exactly as before. */
            .artwork-container > .artwork-media { display: contents; }

            .artwork-media > img:first-child {
                grid-column: 1 !important;
                grid-row: 1 / 3 !important;
                width: 100% !important;
                max-height: 80vh !important;
                object-fit: contain !important;
            }

            .artwork-container .artwork-details {
                grid-column: 2 !important;
                grid-row: 1 !important;
                text-align: left !important;
                margin-bottom: 0 !important;
            }

            .artwork-container .gallery-grid {
                grid-column: 2 !important;
                grid-row: 2 !important;
                grid-template-columns: repeat(2, 1fr) !important;
                margin-top: 0 !important;
            }

            .gallery-grid img { height: 120px !important; }

            .split-artwork { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
        }

/* =============================================
   NARRATIVA DO PROJETO — EDITORIAL GRID 2026
   (acento: vermelho autoral --red-accent)
============================================= */
main.project-content .case-narrative {
    max-width: var(--content-max) !important;
    margin: 0 auto 90px !important;
    padding: 40px 24px 0 !important;
    color: #1a1a1a !important;
    text-align: left !important;
}

/* --- Grid primitives --- */
.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(--red-accent);
    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(70px, 9vw, 130px); }
.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(--red-accent); }
.ed-lead-display {
    grid-column: 1 / 12;
    font-size: clamp(26px, 3.4vw, 48px) !important;
    line-height: 1.16 !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    text-wrap: balance;
}
.ed-lead-display strong { color: var(--red-accent) !important; font-weight: 600 !important; }
.ed-open-sub {
    grid-column: 6 / 12;
    margin-top: clamp(24px, 3vw, 40px) !important;
    font-size: 17px !important; line-height: 1.75 !important;
    color: #55524c !important;
}
.ed-open-meta {
    grid-column: 1 / 12;
    margin-top: clamp(26px, 3.5vw, 44px);
    display: grid; grid-template-columns: repeat(4, max-content);
    gap: clamp(20px, 4vw, 60px);
}
.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 !important; font-weight: 600 !important; color: #1a1a1a !important; margin: 0 !important; line-height: 1.4 !important; }

/* --- Chapter --- */
.ed-chapter { margin-bottom: clamp(70px, 9vw, 120px); align-items: start; }
.ed-chapter > .ed-eyebrow { grid-column: 1 / 4; position: sticky; top: 110px; }
.ed-chapter-body { grid-column: 5 / 12; }
.ed-chapter-body h2 {
    font-size: clamp(24px, 2.6vw, 38px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    color: #1a1a1a !important;
    text-transform: none !important;
    border: none !important;
    margin: 0 0 0.9em !important;
    padding: 0 !important;
    text-wrap: balance;
}
.ed-chapter-body p {
    font-size: 17px !important;
    line-height: 1.75 !important;
    color: #55524c !important;
    margin: 0 0 1.4em !important;
    max-width: 62ch;
}
.ed-chapter-body p:last-child { margin-bottom: 0 !important; }
.ed-chapter-body strong, main.project-content .case-narrative strong { color: #1a1a1a !important; font-weight: 600 !important; }

/* Pull line */
.ed-chapter-body p.ed-pull {
    font-size: clamp(20px, 2.2vw, 30px) !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    color: #1a1a1a !important;
    max-width: 32ch !important;
    border-left: 3px solid var(--red-accent);
    padding-left: 22px;
    margin-top: 2em !important;
}

/* --- Spec sheet (regras do sistema) --- */
.ed-specs { grid-column: 5 / 12; margin: 8px 0 0 !important; }
.ed-spec-row {
    display: grid; grid-template-columns: 210px 1fr;
    gap: 24px; align-items: baseline;
    padding: 20px 0;
    border-top: 1px solid rgba(26,26,26,0.14);
}
.ed-spec-row:last-child { border-bottom: 1px solid rgba(26,26,26,0.14); }
.ed-spec-row dt {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--red-accent);
}
.ed-spec-row dd { margin: 0; font-size: 16px; line-height: 1.6; color: #1a1a1a; font-weight: 500; }

/* --- Statement --- */
.ed-statement { margin-bottom: clamp(70px, 9vw, 120px); }
.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) !important;
    line-height: 1.04 !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em !important;
    color: #1a1a1a !important;
    text-transform: none !important;
    border: none !important; margin: 0 0 0.45em !important; padding: 0 !important;
}
.ed-statement h2 em { font-style: normal; color: var(--red-accent); }
.ed-statement .ed-statement-copy {
    grid-column: 6 / 12;
    font-size: 17px !important; line-height: 1.75 !important;
    color: #55524c !important; margin: 0 0 1.4em !important;
}
.ed-statement .ed-statement-copy:last-of-type { margin-bottom: 0 !important; }
.ed-statement .ed-statement-copy strong { color: #1a1a1a !important; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .ed-chapter > .ed-eyebrow { grid-column: 1 / -1; position: static; margin-bottom: 26px; }
    .ed-chapter-body, .ed-specs { grid-column: 1 / -1; }
    .ed-lead-display, .ed-open-meta, .ed-open-sub { grid-column: 1 / -1; }
    .ed-lead-display { font-size: clamp(24px, 6.4vw, 32px) !important; }
    .ed-open-meta { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
    .ed-kicker { flex-direction: column; gap: 4px; align-items: flex-start; }
    .ed-statement .ed-statement-copy { grid-column: 1 / -1; }
    .ed-spec-row { grid-template-columns: 1fr; gap: 6px; }
    .ed-chapter-body p.ed-pull { padding-left: 16px; }
}

