/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --orange:      #E8501A;
  --bg:          #ffffff;
  --text:        #1a1a1a;
  --muted:       #888888;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:       1200px;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}
button, a, #mobile-controls { user-select: none; -webkit-touch-callout: none; }

/* ── 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: box-shadow 0.4s var(--ease);
}
.navbar.scrolled { box-shadow: 0 1px 30px rgba(0,0,0,0.15); }
.navbar-inner {
  max-width: var(--max-w); 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 { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  font-weight: 500; font-size: 13px; text-transform: uppercase;
  letter-spacing: 1.8px; color: rgba(255,255,255,0.8);
  text-decoration: none; position: relative;
  transition: color 0.3s;
}
.nav-links 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 a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-divider {
  color: #ffffff; 
  cursor: default;
  user-select: none;
  font-weight: 300;
}

.nav-links a.lang-btn,
.nav-links-header a.lang-btn {
  color: #ffffff !important;
  font-weight: 400;
  background-color: transparent;
  padding: 0;
}

.nav-links a.lang-btn:hover,
.nav-links-header a.lang-btn:hover {
  color: #ffffff !important;
}

.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 0;
}
.mobile-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: all 0.3s; }

/* ── 3D HERO ─────────────────────────────────────────── */
#wrap-home { width: 100%; overflow-x: hidden; height: 100vh; height: var(--app-height, 100vh); height: 100dvh; position: relative; }
#canvas-3d-container { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
#labels-container { position: absolute; inset: 0; height: 100vh; height: var(--app-height, 100vh); height: 100dvh; pointer-events: none; z-index: 9999; overflow: hidden; }

/* Museum info cards */
.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);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  width: 320px; opacity: 0;
  transition: opacity 0.3s;
  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; }

/* Artwork look-at preview popup */
#art-preview {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 9997; pointer-events: none;
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
  background: #fff; padding: 14px 14px 12px; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  border-bottom: 5px solid var(--orange);
}
#art-preview.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#art-preview img { display: block; max-height: 70vh; max-width: min(80vw, 640px); width: auto; height: auto; border-radius: 4px; }
@media (max-width: 900px) {
  #art-preview { padding: 10px 10px 8px; }
  #art-preview img { max-height: 58vh; max-width: 84vw; }
}

/* Crosshair overlay (desktop FPS) */
#ui-layer { display: none; position: absolute; inset: 0; 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); }

/* Keyboard hint */
#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 */
.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; }
.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} }

/* ── ENTRY MENU OVERLAY ──────────────────────────────── */
#menu {
  position: absolute; inset: 0;
  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: 230px; 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: #fff;
  border: none; border-radius: 50px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 3px;
  box-shadow: 0 8px 30px rgba(232,80,26,0.35);
  opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease);
}
#btn-start:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 40px rgba(232,80,26,0.55); }

/* Loading bar */
#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 ─────────────────────────────────── */
#mobile-controls { display: none; position: fixed; inset: 0; 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));
  padding: 12px 16px; z-index: 10000; pointer-events: auto;
  background: rgba(0,0,0,0.8); color: #fff;
  border: 2px solid rgba(255,255,255,0.2); border-radius: 8px;
  font-weight: bold; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  backdrop-filter: blur(4px);
}

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

/* ── STACKED CARDS ───────────────────────────────────── */
.card-wrapper { position: relative; width: 100%; overflow: hidden; }
.card-panel { position: sticky; top: 0; border-radius: 40px 40px 0 0; overflow: hidden; will-change: transform; width: 100%; }
#home.card-panel { border-radius: 0; }

/* ── PROJECT CONTENT (2D) ────────────────────────────── */
.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; border-radius: 8px; }

.intro-section { text-align: center; margin-bottom: 40px; }
.centered-img { margin: 0 auto; border-radius: 0 !important; }
.section-title { text-align: center; color: #5A6B71; font-size: 22px; font-weight: bold; margin: 20px 0 40px; font-family: 'DM Sans', sans-serif; }

/* Square grid (social posts) */
.pro-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pro-gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0 !important; transition: opacity 0.2s ease; }
.pro-gallery-grid img:hover { opacity: 0.8; cursor: pointer; }

/* Vertical grid (campaign posters) */
.campaigns-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.campaigns-grid img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 0 !important; transition: opacity 0.2s ease; }
.campaigns-grid img:hover { opacity: 0.8; cursor: pointer; }

/* ==========================================
   LIGHTBOX — social grid + campaign posters
   ========================================== */
.lightbox-modal {
    display: none;
    position: fixed; inset: 0; z-index: 100000;
    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);
    cursor: default;
    transform: scale(0.95); transition: transform 0.3s ease;
}
.lightbox-modal.active img { transform: scale(1); }

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%;
    color: #fff; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--orange); }

.lightbox-close {
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    font-size: 26px;
}
.lightbox-close:hover { transform: scale(1.08); }

.lightbox-nav {
    top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 28px;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

@media (max-width: 700px) {
    .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 20px; }
    .lightbox-nav { width: 42px; height: 42px; font-size: 22px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* More projects section */
.more-projects { margin-top: 80px; margin-bottom: 20px; text-align: left; }
.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; }
.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(--muted); margin: 0 0 10px; font-weight: 700; transition: color 0.3s; }
.portfolio-card-link p  { font-size: 13px; line-height: 1.6; color: #aaa; margin: 0; }
.portfolio-card-link:hover h4 { color: var(--orange); }

/* ── CONTACT ─────────────────────────────────────────── */
.contact-wrap { background: #FFC7C6; padding: 50px; border-radius: 30px; margin-top: 60px; }
.contact-card-white { background: #fff; 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: var(--orange) !important; 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: 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); color: #fff; }

.email-inline { display: flex; align-items: center; gap: 12px; }
.email-inline a { color: var(--orange) !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%); border-radius: 0; transition: transform 0.3s; }
.social-inline a:hover img { transform: scale(1.15); }

/* ── FOOTER ──────────────────────────────────────────── */
.footer { text-align: center; padding: 40px 20px; background: #f9f3e0 !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: var(--muted); margin-bottom: 20px; }

.places-marquee { width: 100%; max-width: 520px; margin: 0 auto; overflow: hidden; -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: marquee 12s linear infinite; }
.places-track img { width: 520px; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── SCROLL ANIMATIONS ───────────────────────────────── */
.reveal       { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.revealed { opacity: 1; transform: none; }
.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: none; }
.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 ──────────────────────────────────────────── */
.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%);
  mix-blend-mode: difference; opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, background 0.3s, opacity 0.3s;
}
.cursor-follower.visible  { opacity: 1; }
.cursor-follower.hovering { width: 50px; height: 50px; background: rgba(232,80,26,0.15); border-color: #fff; }

/* Scroll progress bar */
.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 button */
.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); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (min-width: 1800px) { :root { --max-w: 1500px; } }
@media (min-width: 2200px) { :root { --max-w: 1800px; } }

@media (max-width: 900px) {
  .navbar-inner { padding: 12px 20px !important; padding-top: max(12px, env(safe-area-inset-top)) !important; }
  .nav-links { 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.active { display: flex; }
  .mobile-toggle { display: flex !important; }

  #menu .menu-logo { height: auto !important; max-height: 90px !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; }

  .campaigns-grid   { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
  .pro-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
  .portfolio-links  { grid-template-columns: 1fr !important; gap: 20px !important; }

  .contact-wrap      { padding: 30px 20px !important; margin-top: 80px; }
  .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; }
  .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; }
  #menu .menu-logo { max-height: 70px !important; 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 { flex-direction: column; text-align: center; }
  #cookie-banner p { white-space: normal !important; }
}

@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; }
  .pro-gallery-grid { grid-template-columns: repeat(4,1fr) !important; }
  .campaigns-grid   { grid-template-columns: repeat(4,1fr) !important; }
}

/* =============================================
   NARRATIVA DO PROJETO — EDITORIAL GRID 2026
============================================= */
main.project-content .case-narrative {
    max-width: var(--max-w) !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 --- */
.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-sub strong { color: #1a1a1a !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(--orange);
    padding-left: 22px;
    margin-top: 2em !important;
    margin-bottom: 2em !important;
}

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

/* --- Numbered triptych --- */
.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-chapter-body p.ed-pull { padding-left: 16px; }
}

