/* =============================================
   DESIGN TOKENS
============================================= */
:root {
    --orange: #E8501A;
    --orange-hover: #D14515;
    --warm-bg: #f9f3e0;
    --text-primary: #1a1a1a;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --content-max: 1200px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: #ffffff; color: var(--text-primary);
    overflow-x: hidden; line-height: 1.6;
    -webkit-font-smoothing: antialiased; opacity: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
section { margin-bottom: 60px; }

/* =============================================
   NAVBAR
============================================= */
.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.hidden   { transform: translateY(-100%); }
.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; }
.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; }
.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 5px;
}
.mobile-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: all 0.3s; }

/* =============================================
   STACKED CARD PANELS
============================================= */
.card-wrapper { position: relative; width: 100%; }
.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; }
.panel-shadow {
    position: absolute; inset: 0;
    background: #000; opacity: 0;
    pointer-events: none; z-index: 20; border-radius: inherit;
}
main.project-content { background: transparent !important; }

/* =============================================
   3D MENU & HUD
============================================= */
#wrap-home { width: 100%; overflow-x: hidden; }
#menu {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12,12,12,0.75); 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-logo {
    height: 90px; width: auto; margin-bottom: 24px; margin-top: 0;
    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;
    max-width: 480px; font-weight: 300;
}
#btn-start {
    display: none; padding: 18px 54px; font-size: 13px; font-weight: 700;
    background: var(--orange); color: #fff; 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);
}
#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); }
#loading-text { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 4px; text-transform: uppercase; }
#labels-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; 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 var(--orange);
    opacity: 0; transition: opacity 0.3s var(--ease);
    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; font-family: 'Playfair Display', serif; font-size: 20px; }
.museum-plaque p  { margin: 0; font-size: 13px; color: #555; line-height: 1.6; }
#crosshair {
    position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px; background: var(--orange);
    border-radius: 50%; transform: translate(-50%, -50%);
    display: none; z-index: 10;
}
#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; display: none;
}
#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; } }

/* =============================================
   MOBILE CONTROLS (3D)
============================================= */
#mobile-controls { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 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: 100%; pointer-events: auto; }
#btn-exit-3d {
    position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); right: max(30px, env(safe-area-inset-right));
    padding: 12px 16px; z-index: 10000; pointer-events: auto;
    background: rgba(0,0,0,0.8); border: 2px solid rgba(255,255,255,0.2);
    color: #fff; 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: 0 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); }

/* =============================================
   PROJECT CONTENT (2D Case Study)
============================================= */
main.project-content { max-width: 1200px; margin: 0 auto; padding: 80px 20px 20px; position: relative; z-index: 30; background: #ffffff; }
main.project-content p { font-size: 14px; line-height: 1.8; color: #1a1a1a; margin-bottom: 16px; }
.hero-img   { width: 100%; border-radius: 10px; }
.text-block { margin-top: 20px; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.split-section .separator { border-color: #cccccc; }
.full-width-img { width: 100%; margin-bottom: 20px; }
.separator { border-top: 1px solid #ffffff; margin: 20px 0; opacity: 0.5; }

/* =============================================
   BEYOND INTRO PANEL (Blue)
============================================= */
.beyond-intro-panel {
    background-color: #0057E1; padding: 80px 40px; border-radius: 24px;
    margin-top: 0; margin-bottom: 60px;
    display: flex; flex-direction: column; gap: 60px;
}
.beyond-intro-panel .concepts-grid { margin-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.beyond-intro-panel .card {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px; padding: 40px 30px;
    text-align: center; color: #ffffff;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.beyond-intro-panel .card-icon { display: block; margin: 0 auto 24px; max-width: 100%; height: auto; }
.beyond-intro-panel .last-icon { width: 220px; margin-top: 25px; margin-bottom: 35px; }
.beyond-intro-panel .card h3 { color: #fff; margin: 0 0 15px; font-size: 20px; }
.beyond-intro-panel .card p  { color: rgba(255,255,255,0.9); font-weight: 400; font-size: 14px; line-height: 1.6; margin: 0; }
.beyond-intro-text { max-width: 900px; margin: 0 auto; text-align: center; color: #fff; font-size: 16px; line-height: 1.8; font-weight: 400; }

/* =============================================
   CONCEPTS GRID (Image cards with overlay)
============================================= */
.concepts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.concept-item { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 370 / 534; cursor: pointer; }
.concept-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.concept-item:hover img { transform: scale(1.05); }
.text-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    padding: 40px 30px; background: transparent;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.text-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    padding: 40px 30px; background: transparent;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.text-overlay h3 { 
    margin: 0 0 15px; 
    font-size: 16px; 
    font-weight: 700; 
    color: #ffffff !important;  /* ← Add !important */
}
.text-overlay p  { 
    margin: 0; 
    font-size: 13px; 
    line-height: 1.6; 
    color: #ffffff !important;  /* ← Add !important */
}
.text-overlay .separator { border-color: rgba(255,255,255,0.4); margin: 15px 0; }

/* =============================================
   GALLERY ROW (Posters)
============================================= */
.gallery-row {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 16px; margin: 0 auto 60px; width: 100%; max-width: 1200px;
}
.gallery-row img {
    border-radius: 16px; object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    flex: 1; min-width: 120px; max-width: 150px; height: auto;
    transition: transform 0.3s var(--ease);
}
.gallery-row img:hover { transform: translateY(-5px); }
.card {
    background-color: #0057E1; color: #fff;
    padding: 40px; border-radius: 60px;
    display: flex; flex-direction: column; height: 100%;
}
.card h3 { color: #fff; }
.card p  { color: #fff; font-size: 13px; line-height: 1.6; }
.card-icon { width: 85px; margin-bottom: auto; }

/* =============================================
   MORE PROJECTS / BACK BUTTON
============================================= */
.more-projects { margin-top: 80px; margin-bottom: 20px; }
.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; margin-top: 20px; }
.portfolio-links a { text-decoration: none; color: #000; }
.portfolio-links h4 { color: #A1A1A1; margin-top: 10px; }
.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: #888; margin: 0 0 10px; font-weight: 700; transition: color 0.3s; }
.portfolio-card-link:hover h4 { color: var(--orange); }
main.project-content .portfolio-card-link p { font-size: 13px; line-height: 1.6; color: #aaaaaa; margin: 0; }

/* =============================================
   CONTACT SECTION
============================================= */
.contact-wrap { background-color: #FFC7C6; padding: 50px; border-radius: 30px; margin-top: 60px; }
.contact-card-white { background-color: #fff; border-radius: 30px; padding: 50px 60px; display: flex; flex-direction: column; gap: 30px; }
.contact-card-white h2 { color: var(--orange); font-size: 24px; margin: 0; font-weight: 700; }
.contact-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.btn-whats { background-color: var(--orange); color: #fff; 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); }
.email-inline { display: flex; align-items: center; gap: 12px; }
.email-inline a { color: var(--orange); 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; }
.social-inline a:hover img { transform: scale(1.15); }

/* =============================================
   FOOTER
============================================= */
.footer { text-align: center; padding: 40px 20px; background-color: var(--warm-bg) !important; border-top: 1px solid rgba(0,0,0,0.06); overflow: hidden; }
.footer-logo { margin: 0 auto 20px; width: 118px; display: block; }
.footer p { font-size: 13px; color: #888; 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%); } }

/* =============================================
   SCROLL / REVEAL ANIMATIONS
============================================= */
.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, SCROLL PROGRESS & BACK TO TOP
============================================= */
.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); }

/* =============================================
   MOBILE STACKED CARD OVERRIDE
============================================= */
@media (max-width: 900px) {
    .card-wrapper.livre-mobile { height: auto !important; overflow: visible !important; }
    .card-panel.livre-mobile   { position: relative !important; top: auto !important; transform: none !important; z-index: 1 !important; }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
    .navbar-inner   { padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); }
    .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; max-height: 60px; max-width: 75vw; margin-bottom: 15px; }
    #menu p { font-size: 13px; padding: 0 15px; margin-bottom: 30px; }
    .expand-panel { padding: 18px 24px; margin-bottom: 30px; }
    .expand-panel-text { font-size: 11px; }
    .beyond-intro-panel { padding: 50px 20px; margin-bottom: 40px; gap: 40px; }
    .beyond-intro-panel .concepts-grid { grid-template-columns: 1fr; }
    .grid-2-col, .grid-3-col, .grid-4-col,
    .split-section, .portfolio-links,
    .concepts-grid, .concept-section { grid-template-columns: 1fr !important; gap: 20px !important; }
    .grid-4-col { grid-template-columns: repeat(2, 1fr) !important; }
    .project-content    { padding: 40px 15px 20px !important; overflow-x: hidden; }
    main.project-content p { font-size: 15px; }
    .contact-wrap { padding: 20px !important; margin-top: 40px; }
    .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; }
    .social-grid img { width: calc(50% - 5px) !important; min-width: 0 !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: 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; }
    .grid-2-col      { grid-template-columns: 1fr 1fr !important; }
    .concepts-grid   { grid-template-columns: repeat(3, 1fr) !important; }
    .concepts-grid .concept-item  { aspect-ratio: unset !important; min-height: 10px; }
    .concepts-grid .concept-item p { display: none !important; }
    .grid-4-col      { grid-template-columns: repeat(4, 1fr) !important; }
    .gallery-row     { flex-wrap: nowrap !important; justify-content: center !important; }
    .gallery-row img { min-width: 0 !important; flex: 1 1 0 !important; }
    .beyond-intro-panel .concepts-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; }
    .beyond-intro-panel .card          { padding: 20px 15px !important; }
    .beyond-intro-panel .card-icon     { width: 50px !important; margin-bottom: 15px !important; }
    .beyond-intro-panel .last-icon     { width: 140px !important; margin-top: 10px !important; margin-bottom: 15px !important; }
    .beyond-intro-panel .card h3       { font-size: 14px !important; margin-bottom: 10px !important; }
    .beyond-intro-panel .card p        { font-size: 11px !important; }
}
@media (max-width: 600px) {
    #cookie-banner p { white-space: normal !important; }
    #cookie-banner   { flex-direction: column; text-align: center; }
}
@media (max-height: 500px) {
    #menu { padding-top: 70px; justify-content: center; }
    #menu .menu-logo { max-height: 50px; 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; }
}
@media (max-width: 900px) {
    main.project-content .case-narrative p { font-size: 16px; }
    body { opacity: 1 !important; animation: none !important; }
}
@media (min-width: 1800px) { :root { --content-max: 1500px; } }
@media (min-width: 2200px) { :root { --content-max: 1800px; } }

/* =============================================
   NARRATIVA DO PROJETO — EDITORIAL GRID 2026
============================================= */
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;
}
.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(--orange); 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); }
.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(--orange); }
.ed-lead-display {
    grid-column: 1 / 12; font-size: clamp(26px, 3.6vw, 52px) !important; line-height: 1.14 !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(--orange) !important; font-weight: 600 !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; }
.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; }
.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: 30ch !important;
    border-left: 3px solid var(--orange); padding-left: 22px; margin-top: 2em !important;
}
.ed-specs { grid-column: 5 / 12; margin: 8px 0 0 !important; }
.ed-spec-row { display: grid; grid-template-columns: 160px 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: rgba(26,26,26,0.45); }
.ed-spec-row dd { margin: 0; font-size: 16px; line-height: 1.6; color: #1a1a1a; font-weight: 500; }
.ed-spec-row dd .big { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.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(38px, 6.5vw, 96px) !important; line-height: 1.02 !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(--orange); }
.ed-statement .ed-statement-copy { grid-column: 6 / 12; font-size: 17px !important; line-height: 1.75 !important; color: #55524c !important; margin: 0 !important; }
.ed-index { grid-column: 1 / -1; margin-top: clamp(36px, 5vw, 64px); }
.ed-index-row { display: grid; grid-template-columns: 56px 1.2fr 1fr; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid rgba(26,26,26,0.14); transition: padding-left 0.45s var(--ease); }
.ed-index-row:hover { padding-left: 14px; }
.ed-index-row:last-child { border-bottom: 1px solid rgba(26,26,26,0.14); }
.ed-index-num { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--orange); }
.ed-index-name { font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; color: #1a1a1a; }
.ed-index-pillar { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(26,26,26,0.45); text-align: right; }
.ed-readings { grid-column: 5 / 12; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.ed-reading { border-top: 2px solid #1a1a1a; padding-top: 16px; }
.ed-reading span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--orange); margin-bottom: 10px; }
.ed-reading h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #1a1a1a; margin: 0 0 8px; }
.ed-reading p { font-size: 14px !important; line-height: 1.65 !important; color: #55524c !important; margin: 0 !important; max-width: none !important; }
@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 { 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-readings { grid-column: 1 / -1; grid-template-columns: 1fr; row-gap: 28px; }
    .ed-index-row { grid-template-columns: 40px 1fr; row-gap: 2px; }
    .ed-index-pillar { grid-column: 2; text-align: left; }
    .ed-spec-row { grid-template-columns: 1fr; gap: 6px; }
    .ed-chapter-body p.ed-pull { padding-left: 16px; }
}