/* ===========================================================
   Píer Partners — Sistema de Design (Editorial Light)
   =========================================================== */
:root {
  /* Aliases compatíveis — valores do brandbook oficial (tom Institucional) */
  --bg: #FAF8F3;          /* paper-50 (warm off-white) */
  --bg-alt: #F2EFE7;      /* paper-100 */
  --ink: #050F1E;         /* navy-900 (fundo primário em capas dark) */
  --ink-soft: #163365;    /* navy-500 */
  --muted: #5A6272;       /* ink-500 (texto auxiliar) */
  --line: #E6E1D3;        /* paper-200 (divisores) */
  --gold: #4A9FD4;        /* signal-500 — acento restrito */
  --gold-soft: #A8ADBA;   /* ink-300 */
  --accent: #0E2340;      /* navy-700 */
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #050F1E;
  scrollbar-gutter: stable;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) #050F1E;
}

/* Reserva o espaço do header já com o fundo correto — elimina flash branco */
[data-header] {
  display: block;
  height: 83px;
  background: #050F1E;
  border-bottom: none;
}

/* Scrollbar — Chromium/WebKit */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: #050F1E;
}
::-webkit-scrollbar-track {
  background: #050F1E;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  border: 2px solid #050F1E;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}
::-webkit-scrollbar-corner { background: #050F1E; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01','cv11';
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.serif { font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-weight: 500; letter-spacing: -0.01em; }
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ============== HEADER ============== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #0A1A30;
  border-bottom: none;
}
.site-header .brand-logo { filter: invert(1) brightness(1.05); }
.site-header .nav-links a { color: var(--bg); }
.site-header .nav-links a:hover { color: var(--gold); }
.site-header .nav-links a.active { color: var(--bg); }
.site-header .nav-links a.active::after { background: var(--gold); }
.site-header .menu-toggle { color: var(--bg); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark .dot { color: var(--gold); }
.brand-sub { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo--inverted { filter: invert(1); height: 52px; margin-bottom: 20px; }
@media (max-width: 640px) { .brand-logo { height: 34px; } .brand-logo--inverted { height: 44px; } }
.nav-links { display: none; gap: 36px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}
.nav-cta {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--bg); padding: 10px 22px; font-size: 13px;
  letter-spacing: 0.04em; border-radius: 999px; font-weight: 500;
  transition: all .25s ease;
}
.site-header .nav-links a.nav-cta { color: var(--ink); }
.site-header .nav-links a.nav-cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.nav-links a.nav-cta.active::after { display: none; }
.menu-toggle { display: block; padding: 8px; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}
.mobile-menu {
  position: fixed; inset: 88px 0 0 0; background: var(--ink);
  padding: 32px 24px; transform: translateX(100%); transition: transform .3s ease;
  z-index: 40; border-top: 1px solid var(--ink-soft);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 28px; padding: 14px 0; border-bottom: 1px solid rgba(226,232,240,0.1); color: #E2E8F0; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ============== HERO ============== */
.hero {
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero--dark {
  background: var(--ink);
  color: var(--bg);
}

/* Hero versão NEUTRA (warm paper) */
.hero--neutral {
  background: var(--bg-alt);
  color: var(--ink);
}
.hero--neutral h1 { color: var(--ink); }
.hero--neutral h1 strong { color: var(--ink-soft); font-weight: 600; }
.hero--neutral .lead { color: var(--muted); }
.hero--neutral .btn-primary {
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
}
.hero--neutral .btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.hero--neutral .btn-ghost { color: var(--ink); border-bottom-color: var(--ink-soft); }
.hero--neutral .btn-ghost:hover { color: var(--ink-soft); }
.hero.hero--dark .eyebrow { color: var(--gold); }
.hero.hero--dark h1 { color: var(--bg); }
.hero.hero--dark h1 em { color: var(--gold); }
.hero.hero--dark .lead { color: rgba(226,232,240,0.7); }
.hero--dark .btn-primary {
  background: var(--bg); color: var(--ink); border: 1px solid var(--bg);
}
.hero--dark .btn-primary:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.hero--dark .btn-ghost {
  color: var(--bg); border-bottom-color: rgba(226,232,240,0.4);
}
.hero--dark .btn-ghost:hover { color: var(--gold); border-bottom-color: var(--gold); }
.hero--dark .hero-meta { border-left-color: rgba(226,232,240,0.18); }
.hero--dark .hero-meta .label { color: rgba(226,232,240,0.55); }
.hero--dark .hero-meta .num { color: var(--bg); }
.hero--dark .hero-meta .num .accent { color: var(--gold); font-style: normal; font-weight: 600; }
.hero--dark .hero-meta .desc { color: rgba(226,232,240,0.6); }
.hero-waves {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 80px; }
}
.hero h1 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* Hero split layout (title à esquerda, side-copy à direita) */
.hero-split {
  display: grid; gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
    align-items: start;
  }
}
.hero-split__cta {
  margin-top: 36px; display: flex; gap: 18px; flex-wrap: wrap;
}
.hero-split__side {
  max-width: 52ch;
  border-left: 1px solid rgba(255,255,255,0.14);
  padding-left: 28px;
  margin-top: 28px;
}
@media (min-width: 900px) {
  .hero-split__side { margin-top: 56px; }
}
.hero-split__side p {
  font-size: 15px; line-height: 1.65;
  color: rgba(226,232,240,0.82);
  margin-bottom: 16px;
}
.hero-split__side p:last-child { margin-bottom: 0; color: rgba(226,232,240,0.65); }
.hero-split__side p strong { color: var(--bg); font-weight: 500; }
.hero h1 em, .hero h1 strong { font-style: normal; font-weight: 600; color: var(--gold); }
.hero .lead { margin-top: 32px; font-size: 18px; color: var(--muted); max-width: 56ch; }
.hero-meta {
  border-left: 1px solid var(--line); padding-left: 32px;
}
.hero-meta .label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.hero-meta .num { font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 56px; line-height: 1; margin: 12px 0 8px; }
.hero-meta .desc { font-size: 13px; color: var(--muted); }
.hero-meta + .hero-meta { margin-top: 36px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.3em; color: var(--muted); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after { content: ''; width: 1px; height: 32px; background: var(--gold); animation: pulse 2.4s ease infinite; }
@keyframes pulse { 0%,100% { opacity: .4 } 50% { opacity: 1 } }

/* ============== MANIFESTO ============== */
.manifesto {
  background: var(--bg);
  border-top: none;
}
.manifesto .eyebrow { color: var(--gold); }
.manifesto h2 { color: var(--ink); }
.manifesto p { color: var(--muted); }

/* Track Record compartilha fundo com Manifesto */
.track-record { background: var(--bg); }

/* Services na mesma cor em que o gradiente do hero termina — continuidade absoluta */
.services-dark {
  background: #0C1E37;
  color: var(--bg);
  border-top: none;
}
.services-dark .eyebrow { color: var(--gold); }
.services-dark h2 { color: var(--bg); }
.services-dark .section-head p { color: rgba(250,248,243,0.78); }
.services-dark .service {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.services-dark .service:hover { background: rgba(255,255,255,0.08); }
.services-dark .service .num { color: var(--gold); }
.services-dark .service h3 { color: var(--bg); }
.services-dark .service p { color: rgba(250,248,243,0.75); }
.services-dark .service li { color: rgba(250,248,243,0.85); border-top-color: rgba(255,255,255,0.1); }
.services-dark .services-grid { background: transparent; border: none; gap: 1px; }
@media (min-width: 1100px) {
  .services-dark .services-grid { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
}

/* ============== SECTIONS ============== */
section { padding: 96px 0; }
@media (min-width: 768px) { section { padding: 120px 0; } }
.section-head { display: grid; gap: 24px; margin-bottom: 64px; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr 1.5fr; align-items: end; }
}
.section-head h2 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 300;
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 60ch; }

/* ============== METRICS BENTO ============== */
.metrics {
  background: var(--bg-alt); color: var(--ink);
  position: relative; overflow: hidden;
}
.metrics .container { display: grid; gap: 0; }
.metrics-grid { display: grid; gap: 0; }
@media (min-width: 640px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
/* Forçar 5 em uma linha em qualquer desktop */
.metrics-grid.metrics-grid--5 { grid-template-columns: repeat(5, 1fr) !important; }
@media (max-width: 860px) { .metrics-grid.metrics-grid--5 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .metrics-grid.metrics-grid--5 { grid-template-columns: 1fr !important; } }
/* Métricas inline — editorial, papel, tipografia grande */
.metrics--inline {
  background: transparent;
  margin-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
}
.metrics--inline .metric {
  padding: 44px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.metrics--inline .metric:last-child { border-right: none; }
.metrics--inline .metric .num {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.metrics--inline .metric .num strong { font-weight: 600; }
.metrics--inline .metric .currency {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 0.45em;
  color: var(--muted);
  letter-spacing: 0;
  align-self: flex-start;
  margin-top: 0.15em;
}
.metrics--inline .metric .unit {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
  font-size: 0.42em;
  margin-left: 2px;
}
.metrics--inline .metric .label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 22ch;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .metrics--inline .metric { border-right: none; border-bottom: 1px solid var(--line); }
  .metrics--inline .metric:last-child { border-bottom: none; }
}
.metric { background: var(--bg-alt); padding: 48px 32px; }
.metric .num {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 64px; line-height: 1;
  font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.metric .num .unit { color: var(--gold); font-style: normal; font-weight: 600; font-size: 0.55em; }
.metric .label { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 26ch; }

/* ============== DEALS GRID ============== */
.deals-grid { display: grid; gap: 16px; background: transparent; border: none; }
.deals-grid .deal-card { box-shadow: none; border-radius: 6px; }
a.deals-grid .deal-card:hover, a.deal-card:hover { box-shadow: 0 6px 24px rgba(14, 31, 46, 0.08); transform: translateY(-2px); }
@media (min-width: 640px) { .deals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .deals-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .deals-grid { grid-template-columns: repeat(4, 1fr); } }
.deal-card {
  background: var(--bg-alt); padding: 28px 28px 24px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; transition: all .35s cubic-bezier(.2,.8,.2,1);
  color: inherit; text-decoration: none;
}
.deal-logo {
  height: 64px; display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.deal-logo img {
  max-height: 100%; max-width: 160px; width: auto; height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .35s ease;
}
a.deal-card:hover .deal-logo img { transform: scale(1.04); }
/* Para logos com texto branco sobre fundo colorido, adicionar classe no img: class="logo-on-dark" */
.deal-logo img.logo-on-dark { mix-blend-mode: normal; }
a.deal-card:hover { background: var(--line); }
a.deal-card:hover .name { color: var(--accent); }
a.deal-card::after {
  content: '↗'; position: absolute; top: 18px; right: 20px;
  font-size: 16px; color: var(--gold); opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
a.deal-card:hover::after { opacity: 1; transform: translate(2px, -2px); }
.deal-card:not(a) { cursor: default; }
.deal-card .name { transition: color .25s ease; }
.deal-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.deal-card .year { font-size: 12px; color: var(--muted); letter-spacing: 0.12em; }
.deal-card .type {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); padding: 4px 10px; border-radius: 999px;
}
.deal-card .name {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 26px; line-height: 1.15;
  margin-top: 16px; font-weight: 500; letter-spacing: -0.01em;
}
.deal-card .desc { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.deal-card .foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 12px;
}
.deal-card .value { color: var(--ink); font-weight: 500; letter-spacing: 0.06em; text-align: right; }

/* ===== Tombstone card (novo formato) ===== */
.deal-card--tomb {
  padding: 38px 28px 26px;
  min-height: 0;
  justify-content: flex-start;
  text-align: left;
}
/* Duo horizontal de logos */
.deal-card--tomb .tomb-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  height: 64px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.deal-card--tomb .tomb-duo .logo-slot {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-width: 0;
}
.deal-card--tomb .tomb-duo .logo-slot img {
  max-height: 48px; max-width: 100%; width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* Logos com conteúdo claro (texto/traços brancos) — convertemos em silhueta escura
   pra bater com o fundo bege do card. Preserva proporção e legibilidade. */
.deal-card--tomb .tomb-duo .logo-slot img.logo-darken {
  filter: brightness(0) saturate(100%);
  opacity: 0.82;
  mix-blend-mode: normal;
}
/* Fallback texto quando não há logo da contraparte */
.deal-card--tomb .tomb-duo .logo-slot .text-fallback {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 22px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em; text-align: center; line-height: 1.1;
}
/* Ajustes por logo — tamanho customizado: permite ultrapassar slot width */
.deal-card--tomb .tomb-duo .logo-slot:has(img.logo-lg),
.deal-card--tomb .tomb-duo .logo-slot:has(img.logo-xl) { overflow: visible; }
.deal-card--tomb .tomb-duo .logo-slot img.logo-lg { max-height: 72px; max-width: 170px; }
.deal-card--tomb .tomb-duo .logo-slot img.logo-xl { max-height: 84px; max-width: 190px; }
.deal-card--tomb .tomb-duo .logo-slot img.logo-sm { max-height: 38px; }
/* Para logos com texto/elementos brancos desenhados pra fundo escuro */
.deal-card--tomb .tomb-duo .logo-slot.on-dark {
  background: var(--ink);
  border-radius: 4px;
  padding: 6px 10px;
}
.deal-card--tomb .tomb-duo .logo-slot.on-dark img {
  mix-blend-mode: normal;
  max-height: 40px;
}
.deal-card--tomb .tomb-duo .logo-slot.slot-pier {
  position: relative;
}
.deal-card--tomb .tomb-duo .arrow {
  display: none;
}
/* Card com um único logo (ex: Enerplan) — centraliza */
.deal-card--tomb .tomb-duo--single {
  grid-template-columns: 1fr;
  justify-items: center;
}
.deal-card--tomb .tomb-headline {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.25; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 12px;
  min-height: 44px; /* ~2 linhas — alinha o início das descrições */
}
.deal-card--tomb .tomb-desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
  margin-bottom: 24px; text-align: left;
}
.deal-card--tomb .tomb-desc strong { color: var(--ink); font-weight: 600; }
.deal-card--tomb .tomb-counterparty img {
  max-height: 52px; max-width: 190px; width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.deal-card--tomb .tomb-counterparty .tomb-cp-text {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 32px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
}
.deal-card--tomb .tomb-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.deal-card--tomb .tomb-foot .type-pill {
  padding: 6px 14px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold); font-size: 10px; letter-spacing: 0.2em;
}
.deal-card--tomb .tomb-foot .year { color: var(--ink); font-weight: 500; letter-spacing: 0.1em; }
a.deal-card--tomb:hover .tomb-counterparty img { transform: scale(1.03); transition: transform .35s ease; }
a.deal-card--tomb:hover .tomb-connector { color: var(--ink); }

/* ===== Parties visualization ===== */
.deal-parties {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(58,123,168,0.03);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; line-height: 1.3;
}
.deal-parties .party {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.deal-parties .party-role {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.deal-parties .party-name {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 15px; font-weight: 500; color: var(--ink);
  line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis;
}
.deal-parties .party--pier .party-role {
  color: var(--gold); font-weight: 600;
}
.deal-parties .party--pier .party-name {
  color: var(--gold); position: relative; padding-left: 10px;
}
.deal-parties .party--pier .party-name::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
.deal-parties .arrow {
  flex-shrink: 0; color: var(--muted); font-size: 14px;
  opacity: 0.6;
}
.deal-parties--merger .arrow { content: '+'; }

/* ============== SERVICES ============== */
.services-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); } }
.service {
  padding: 40px; background: var(--bg); transition: background .3s ease;
}
.service:hover { background: var(--bg-alt); }
.service .num {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 12px; color: var(--gold);
  font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
}
.service h3 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 30px; font-weight: 500;
  margin-top: 16px; line-height: 1.15; letter-spacing: -0.01em;
}
.service p { color: var(--muted); margin-top: 16px; font-size: 15px; }
.service ul { margin-top: 20px; list-style: none; }
.service li { font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.service li:first-child { border-top: none; }

/* ============== FORM STATUS (Web3Forms) ============== */
.form-status {
  font-size: 14px; line-height: 1.5; margin-top: 16px; min-height: 1.2em;
  font-weight: 500;
}
.form-status--pending { color: var(--muted); }
.form-status--success { color: #1f7a4d; }
.form-status--error   { color: #b3402f; }

/* ============== CONTACT MODAL (popup "Fale conosco") ============== */
.contact-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: flex-start; justify-content: center;
  padding: 3vh 20px;
  overflow-y: auto;
}
.contact-modal.is-open { display: flex; }
.contact-modal__overlay {
  position: fixed; inset: 0;
  background: rgba(5, 15, 30, 0.6);
  backdrop-filter: blur(4px);
  animation: modalFade .25s ease;
}
.contact-modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(5, 15, 30, 0.35);
  padding: 24px 30px 22px;
  margin: auto;
  animation: modalRise .3s cubic-bezier(.2,.7,.3,1);
}
/* Form compacto dentro do modal (não afeta a página de contato) */
.contact-modal .contact-form { gap: 9px; }
.contact-modal .contact-form input,
.contact-modal .contact-form select,
.contact-modal .contact-form textarea { padding: 5px 0; margin-top: 2px; }
.contact-modal .contact-form textarea { min-height: 48px; }
.contact-modal .contact-form label { font-size: 10px; }
.contact-modal .contact-form .btn-primary { margin-top: 2px !important; }
.contact-modal .form-status { margin-top: 6px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.contact-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  transition: all .2s ease;
}
.contact-modal__close:hover { color: var(--ink); border-color: var(--ink); }
.contact-modal__close svg { width: 16px; height: 16px; }
.contact-modal__eyebrow {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 5px;
}
.contact-modal__title {
  font-family: 'Manrope', sans-serif; font-weight: 300;
  font-size: clamp(21px, 3vw, 25px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 5px; color: var(--ink);
}
.contact-modal__title em { font-style: italic; color: var(--gold); }
.contact-modal__lede {
  font-size: 13.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.45;
}
@media (max-width: 540px) {
  .contact-modal { padding: 0; }
  .contact-modal__dialog { max-width: none; min-height: 100%; padding: 72px 24px 32px; border: none; border-radius: 0; }
}

/* ============== SECTORS ============== */
.sectors {
  background: var(--ink); color: var(--bg);
  position: relative; overflow: hidden;
}
.sectors .section-head h2 { color: var(--bg); }
.sectors .section-head p { color: rgba(226,232,240,0.65); }
.sectors-grid { display: grid; gap: 1px; background: var(--ink-soft); border: 1px solid var(--ink-soft); }
@media (min-width: 768px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
.sector { background: var(--ink); padding: 40px; }
.sector h3 { font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 24px; font-weight: 500; color: var(--gold-soft); }
.sector p { color: rgba(226,232,240,0.7); margin-top: 12px; font-size: 14px; line-height: 1.6; }

/* ============== TEAM ============== */
.team-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  border: 1px solid var(--line); padding: 32px 24px;
  background: var(--bg); transition: all .3s ease; position: relative;
}
.team-card:hover { background: var(--bg-alt); border-color: var(--gold-soft); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--bg-alt); display: grid; place-items: center;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 28px; color: var(--ink); font-weight: 500;
  border: 1px solid var(--line); margin-bottom: 24px; letter-spacing: 0.02em;
}
.team-card h3 { font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 22px; font-weight: 500; line-height: 1.15; }
.team-card .role {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-top: 8px;
}
.team-card .ln {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line);
  width: 100%;
}
.team-card .ln:hover { color: var(--ink); }
.team-card .ln svg { width: 14px; height: 14px; }
.team-section-title {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 18px; font-weight: 400;
  font-style: normal; font-weight: 600; color: var(--muted); margin: 80px 0 32px;
  display: flex; align-items: center; gap: 24px;
}
.team-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.team-section-title:first-child { margin-top: 0; }

/* ============== FILTERS (deals page) ============== */
.filter-bars { margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.filter-bar + .filter-bar { margin-top: 12px; }
.filter-bar .label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-right: 10px; min-width: 48px;
}
.chip {
  padding: 6px 12px; font-size: 12px; border: 1px solid var(--line);
  border-radius: 999px; transition: all .2s ease; color: var(--ink-soft);
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============== CTA ============== */
.cta-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 96px 0; background: var(--bg-alt);
}
.cta-band .container { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .cta-band .container { grid-template-columns: 1.5fr 1fr; } }
.cta-band h2 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: clamp(32px, 4vw, 52px);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.02em;
}
.cta-band h2 em, .cta-band h2 strong { color: var(--gold); font-style: normal; font-weight: 600; }
/* ============== BUTTONS — padrão unificado (retangular 6px) ============== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: #050F1E;
  color: #FFFFFF;
  border: 1px solid #050F1E;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 200ms;
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #050F1E;
  gap: 16px;
}
.btn-primary svg { width: 16px; height: 16px; transition: transform 200ms; }
.btn-primary:hover svg { transform: translateX(3px); }

/* Em blocos escuros (CTA band, etc.) inverte automaticamente */
.cta-band .btn-primary,
.section--dark .btn-primary,
.btn-primary--light {
  background: #FFFFFF;
  color: #050F1E;
  border-color: #FFFFFF;
}
.cta-band .btn-primary:hover,
.section--dark .btn-primary:hover,
.btn-primary--light:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #050F1E;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(5, 15, 30, 0.04);
  color: #050F1E;
  border: 1px solid rgba(5, 15, 30, 0.14);
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 200ms;
}
.btn-ghost:hover {
  background: rgba(5, 15, 30, 0.08);
  border-color: rgba(5, 15, 30, 0.24);
  color: #050F1E;
}
.btn-ghost svg { width: 16px; height: 16px; }

/* Em blocos escuros */
.cta-band .btn-ghost,
.section--dark .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.14);
}
.cta-band .btn-ghost:hover,
.section--dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--ink); color: var(--bg); padding: 80px 0 32px;
  position: relative; overflow: hidden;
}
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .brand-mark { color: var(--bg); font-size: 32px; }
.footer-brand p { color: rgba(226,232,240,0.6); margin-top: 16px; max-width: 36ch; font-size: 14px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: rgba(226,232,240,0.75); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12px; color: rgba(226,232,240,0.5);
}

/* ============== PAGE HEADER ============== */
.page-hero {
  padding: 80px 0 64px;
}
.page-hero.page-hero--dark {
  padding: 120px 0 100px;
  border-bottom: none;
}
.page-hero--dark h1 { color: var(--bg); }
.page-hero--dark h1 strong { color: var(--gold); font-weight: 500; }
.page-hero--dark .lead { color: rgba(250,248,243,0.75); }
.page-hero--dark .eyebrow { color: var(--gold); }
.page-hero h1 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: clamp(44px, 6vw, 80px);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.025em; margin-top: 16px;
}
.page-hero h1 em, .page-hero h1 strong { color: var(--gold); font-style: normal; font-weight: 600; }
.page-hero .lead { color: var(--muted); font-size: 18px; margin-top: 24px; max-width: 60ch; }

/* ============== CONTACT ============== */
.contact-grid { display: grid; gap: 64px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info dt { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-top: 32px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 24px; margin-top: 8px; line-height: 1.3; }
.contact-info dd a:hover { color: var(--gold); }
.contact-form { display: grid; gap: 20px; }
.contact-form label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 12px 0; font: inherit; color: var(--ink); margin-top: 6px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ============== UTILS / ANIMATIONS ============== */
/* Fade-in suave (sem movimento vertical — bloco só aparece, não sobe) */
.fade-in { opacity: 0; transition: opacity .6s ease; }
.fade-in.visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   NEW HEADER (v2) — Editorial Rothschild
   ========================================================= */
.site-header--v2 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #050F1E;
  border-bottom: none !important;
  height: 83px;
  transition: height 240ms cubic-bezier(.2,.7,.2,1), background 240ms;
}
.site-header--v2.is-scrolled { height: 64px; }
/* Rule inferior que não toca as laterais */
.site-header--v2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - clamp(80px, 12vw, 200px));
  max-width: 1200px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}

.site-header__inner {
  width: calc(100% - clamp(80px, 12vw, 200px));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.site-header--v2 .site-header__brand {
  display: inline-flex;
  align-items: center;
  border-bottom: 0;
  justify-self: start;
}
.site-header__logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-self: center;
}
.site-header__nav a {
  color: rgba(255,255,255,0.78);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-bottom: 0;
  transition: color 160ms;
}
.site-header__nav a:hover { color: #fff; }
.site-header__nav a.is-active { color: #fff; }

.site-header__right {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: end;
}

.site-header__cta {
  padding: 10px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid transparent !important;
  border-radius: 6px;
  color: #fff !important;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 200ms;
}
.site-header__cta:hover {
  background: rgba(255,255,255,0.16);
}

.site-header__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-header__lang a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 0;
  transition: color 160ms;
}
.site-header__lang a:hover { color: rgba(255,255,255,0.85); }
.site-header__lang a.is-active { color: #fff; }
.site-header__lang-sep { color: rgba(255,255,255,0.3); }

.site-header__toggle {
  display: none; /* só aparece no mobile */
  background: transparent;
  border: 0;
  color: #fff;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 160ms;
}
.site-header__toggle:hover { opacity: 1; }
.site-header__toggle svg { width: 22px; height: 22px; }

.site-header__mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #050F1E;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px clamp(20px, 6vw, 48px) 32px;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(5,15,30,0.4);
}
.site-header__mobile.is-open { display: flex; }
.site-header__mobile > a {
  color: rgba(255,255,255,0.85);
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-decoration: none;
  border-bottom: 0;
  padding: 4px 0;
}
.site-header__mobile-lang {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-header__mobile-lang a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 0;
  padding: 6px 4px;
}
.site-header__mobile-lang a.is-active { color: #fff; }

@media (max-width: 880px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
    width: calc(100% - clamp(40px, 8vw, 80px));
  }
  .site-header__nav { display: none; }
  .site-header__right { gap: 14px; }
  .site-header__cta { display: none; }
  .site-header__lang { display: none; }
  .site-header__toggle { display: inline-flex; }
}

/* Push body content below fixed header */
body { padding-top: 83px; }
@media (max-width: 880px) { body { padding-top: 83px; } }

/* Safeguard mobile: evita scroll horizontal e mídia estourando a viewport */
html, body { overflow-x: hidden; }
img, svg, canvas, video { max-width: 100%; }
@media (max-width: 520px) {
  .container { padding-left: 20px; padding-right: 20px; }
}

/* =========================================================
   NEW HERO (editorial Rothschild) — ed-hero
   ========================================================= */
.ed-hero {
  background: #050F1E url('Imagem1.png') center / cover no-repeat;
  color: var(--bg);
  padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 83px);
  display: flex;
  align-items: center;
}
@supports (height: 100svh) {
  .ed-hero { min-height: calc(100svh - 83px); }
}
.ed-hero > .container { width: 100%; }
.ed-hero__scroll {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(226,232,240,0.65); text-decoration: none;
  opacity: 0.95;
  transition: opacity .2s ease;
  animation: heroArrow 1.9s ease-in-out infinite;
}
.ed-hero__scroll:hover { opacity: 1; }
.ed-hero__scroll, .ed-hero__scroll:hover, .ed-hero__scroll-txt { text-decoration: none; border-bottom: 0; }
.ed-hero__scroll-txt {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 400;
  font-style: italic; letter-spacing: 0.01em; text-transform: none;
  color: rgba(226,232,240,0.65);
}
.ed-hero__scroll svg {
  width: 20px; height: 20px; padding: 8px; box-sizing: content-box;
  border-radius: 50%; border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ed-hero__scroll:hover svg {
  border-color: rgba(226,232,240,0.75);
  background: rgba(226,232,240,0.92);
  color: #0A1628;
}
@keyframes heroArrow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}
@media (prefers-reduced-motion: reduce) { .ed-hero__scroll { animation: none; } }
.ed-hero--compact .ed-hero__scroll { display: none; }
/* R$ pequeno nos destaques do hero */
.ed-hero__stats .hero-stat__cur { font-size: 0.45em; font-weight: 400; opacity: 0.75; letter-spacing: 0; }
/* Esconde o SVG de ondas — fundo agora vem da imagem */
.ed-hero__waves { display: none !important; }
/* Versão compacta pras páginas internas — altura + início do conteúdo uniformes */
.ed-hero--compact {
  padding: 96px 0 64px 0;
  min-height: 440px;
  display: block;
}
.ed-hero--compact .ed-hero__title {
  font-size: clamp(32px, 4.2vw, 52px);
  max-width: 24ch;
  margin-bottom: 28px;
}
.ed-hero--compact .ed-hero__eyebrow {
  margin-bottom: 28px;
}
.ed-hero--compact .ed-hero__lede {
  margin-bottom: 0;
  max-width: 58ch;
}
.ed-hero__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.ed-hero > .container { position: relative; z-index: 2; }
.ed-hero__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) { .ed-hero__particles { display: none; } }

.ed-hero__eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 56px;
}

.ed-hero__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bg);
  margin: 0 0 48px;
  max-width: 20ch;
}
.ed-hero__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
}

.ed-hero__lede {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: rgba(250, 248, 243, 0.72);
  max-width: 56ch;
  margin: 0 0 48px;
}

.ed-hero__actions {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.ed-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: #FFFFFF;
  color: #050F1E;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid #FFFFFF;
  border-radius: 6px;
  border-bottom: 1px solid #FFFFFF;
  transition: all 200ms;
}
.ed-hero__cta:hover {
  background: var(--gold);
  color: #050F1E;
  border-color: var(--gold);
  border-bottom-color: var(--gold);
  gap: 18px;
}
.ed-hero__cta svg { width: 16px; height: 16px; }

.ed-hero__link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--ink);
  transition: color 200ms, border-color 200ms;
}
.ed-hero__link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* =========================================================
   INVESTEES GRID (portfolio-investimentos)
   ========================================================= */
.investee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.investee-grid--single { grid-template-columns: repeat(4, 1fr); }
.investee-grid--single .investee:first-child { grid-column: 1 / 2; }

@media (max-width: 900px) { .investee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .investee-grid { grid-template-columns: 1fr; } }

.investee {
  background: var(--bg);
  padding: 56px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-height: 260px;
  text-decoration: none;
  color: inherit;
  border-bottom: 0;
  transition: background 200ms, transform 200ms;
}
.investee:hover { background: var(--bg-alt); }

.investee__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  width: 100%;
  transition: transform 200ms ease-out;
}
.investee:hover .investee__mark { transform: translateY(-2px); }

.investee__mark img {
  max-height: 96px;
  max-width: 200px;
  width: auto;
  opacity: 1;
  filter: none;
  transition: transform 200ms;
}

.investee__name {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* =========================================================
   NEW MANIFESTO (editorial) — ed-*
   ========================================================= */
.ed-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}
.ed-section--alt { background: var(--bg-alt); }

.ed-section__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 6vw, 88px);
  align-items: end;
}
@media (max-width: 800px) {
  .ed-section__head { grid-template-columns: 1fr; }
}

.ed-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.ed-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.ed-lede {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
}

.ed-manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1120px;
}
.ed-manifesto p {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.ed-manifesto strong { color: var(--ink); font-weight: 500; }
@media (max-width: 980px) { .ed-manifesto { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ed-manifesto { grid-template-columns: 1fr; } }

/* ============== HERO COM STATS LATERAIS (página Equipe) ============== */
.ed-hero--with-stats .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ed-hero--with-stats .ed-hero__main { min-width: 0; }
.ed-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-end;
  text-align: right;
  width: 100%;
}
.hero-stat {
  border-right: 2px solid var(--gold);
  padding: 4px 24px 4px 0;
  max-width: 320px;
}
.hero-stat__num {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  color: var(--bg);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat__num .unit {
  color: var(--gold);
  font-size: 0.42em;
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0;
}
.hero-stat__label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: rgba(250,248,243,0.72);
  margin-top: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .ed-hero--with-stats .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ed-hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
  }
  .hero-stat {
    border-right: none;
    border-left: 2px solid var(--gold);
    padding: 4px 0 4px 16px;
    flex: 1 1 200px;
  }
}

/* ============== METRICS GRID — 3 e 6 cols ============== */
.metrics-grid.metrics-grid--3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 860px) { .metrics-grid.metrics-grid--3 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .metrics-grid.metrics-grid--3 { grid-template-columns: 1fr !important; } }

.metrics-grid.metrics-grid--6 { grid-template-columns: repeat(6, 1fr) !important; }
@media (max-width: 1200px) { .metrics-grid.metrics-grid--6 { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 720px) { .metrics-grid.metrics-grid--6 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .metrics-grid.metrics-grid--6 { grid-template-columns: 1fr !important; } }

/* ============== SERVICES GRID — 3 cols em telas grandes (6 linhas = 3×2) ============== */
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============== PLATAFORMA — banda das 3 áreas (abaixo das linhas de serviço) ============== */
.platform { background: var(--bg); }
.platform .section-head { margin-bottom: 8px; }
.platform-grid {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 40px;
}
@media (min-width: 860px) { .platform-grid { grid-template-columns: repeat(3, 1fr); } }
.platform-area { background: var(--bg); padding: 36px 32px; position: relative; }
.platform-area__num {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold);
}
.platform-area h3 {
  font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 500;
  margin: 14px 0 12px; letter-spacing: -0.01em; color: var(--ink);
}
.platform-area p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.platform-area__lines { margin-top: 16px; font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* ============== STAGES — posicionamento por momento do ciclo (home) ============== */
.stages { background: var(--bg-alt); }
.stages-grid {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 40px;
}
@media (min-width: 960px) { .stages-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 959px) { .stages-grid { grid-template-columns: repeat(2, 1fr); } }
.stage { background: var(--bg-alt); padding: 32px 26px; }
.stage__num {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.stage h3 {
  font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 600;
  margin: 12px 0 10px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
}
.stage p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
