/* --- VARIÁVEIS DA MARCA E RESETS --- */
:root {
    --orange: #E8501A;
    --warm-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-tertiary: #888888;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --content-max: 1200px;
}

/* MATA O BURACO BRANCO LATERAL GLOBALMENTE */
html, body { 
    font-family: 'DM Sans', -apple-system, sans-serif; 
    background: #ffffff; 
    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;
}

/* ==========================================
   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;
}

/* ==========================================
   UI DO 3D E OTIMIZAÇÃO
   ========================================== */
#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;
}

/* BACK TO TOP & CURSOR */
.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); }

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

/* =============================================
   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);
}

/* ==========================================
   2D PROJECT STYLES (CLIMA)
   ========================================== */
.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 { border-radius: 12px; max-width: 100%; height: auto; display: block; }
.project-content .full-width-img { width: 100%; margin-bottom: 20px; }
.project-content .centered-img { margin: 0 auto; }

/* Typography and grids matching Base rules */
.project-content p { font-size: 15px; line-height: 1.8; color: #555555; margin-bottom: 16px; }
.project-content h2 { font-size: 28px; color: var(--orange); margin-bottom: 20px; font-weight: 700; font-family: 'Playfair Display', serif; text-align: center; }

.concept-section { max-width: 900px; margin: 40px auto 60px; text-align: center; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-grid img { width: calc(25% - 20px); min-width: 150px; }

/* MAIS PROJETOS / VOLTAR */
.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 */
.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 */
.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; 
}

/* --- ANIMAÇÃO INFINITA DO RODAPÉ --- */
.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%); } 
}

/* ==========================================
   📱 RESPONSIVIDADE MOBILE DEFINITIVA
   ========================================== */
@media (max-width: 900px) {
    .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; }

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

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

    .concept-section, .grid-2-col, .grid-4-col, .portfolio-links { grid-template-columns: 1fr !important; gap: 20px !important; }
    .project-content { max-width: 1200px; margin: 0 auto; padding: 80px 20px 20px; position: relative; z-index: 30; }
    .project-content section { margin-bottom: 60px; }
    .intro-section { text-align: center; margin-bottom: 40px; }

    .social-grid { gap: 10px !important; }
    .social-grid img { width: calc(50% - 5px) !important; min-width: 0 !important; }

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

@media (max-height: 500px) {
    #menu { padding-top: 70px; justify-content: center; }
    #menu .menu-logo { max-height: 50px !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; }
    .grid-2-col { grid-template-columns: 1fr 1fr !important; }
}

/* ==========================================
   ANIMAÇÕES E EFEITOS DE SCROLL (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); }

.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); }

/* ==========================================
   EFEITO STACKED CARDS (EMPILHAMENTO)
   ========================================== */
.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; }

/* =============================================
   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;
}

/* --- 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(--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);
}

/* --- Opening: oversized lead --- */
.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.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(--orange) !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: eyebrow left, content right --- */
.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-align: left !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 — designed emphasis */
.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;
}

/* --- Statement: full-bleed idea line --- */
.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 / 10;
    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-align: left !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: 1 / 8;
    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; }

/* --- Type/element index --- */
.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;
}

/* --- Numbered triptych (princípios) --- */
.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; }

/* Closing signature line */
.ed-close {
    grid-column: 5 / 12;
    margin-top: clamp(28px, 4vw, 48px) !important;
    font-size: clamp(24px, 3vw, 44px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.15 !important;
    color: #1a1a1a !important;
}
.ed-close em { font-style: normal; color: var(--orange); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .ed-chapter > .ed-eyebrow { grid-column: 1 / -1; position: static; margin-bottom: 26px; }
    .ed-chapter-body, .ed-close { 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-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-chapter-body p.ed-pull { padding-left: 16px; }
}