/* ============================================
   MANTA ASSOCIADOS — Site Institucional
   Paleta: Terracota / Marrom / Off-white
   Tipografia: Fraunces (display) + Inter (body)
   ============================================ */

:root {
  /* Paleta Manta */
  --manta-accent: #E07B3D;
  --manta-accent-dark: #C45A2B;
  --manta-terracota: #B85042;
  --manta-title: #8B4A2D;
  --manta-heading: #5D3A1A;
  --manta-deep: #2B1810;

  /* Neutros refinados */
  --bg: #FBF8F4;          /* off-white quente */
  --bg-2: #F5EFE6;        /* fundo seção alternada */
  --ink: #1A1410;         /* preto suave */
  --ink-2: #4A3F35;       /* texto secundário */
  --muted: #8B7E70;       /* labels */
  --line: #E8DFD2;        /* linhas divisórias quentes */

  /* Dark sections */
  --dark-bg: #1C1410;     /* marrom-preto */
  --dark-bg-2: #261A14;
  --dark-ink: #F5EFE6;
  --dark-muted: #B5A597;
  --dark-line: #3A2A20;

  /* Tipografia */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 1320px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Easing */
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

::selection { background: var(--manta-accent); color: #fff; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ============================================
   NAVBAR
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  background: rgba(251, 248, 244, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all .4s var(--ease);
}
.nav.scrolled {
  padding: 12px var(--gutter);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  flex-shrink: 0;
  display: block;
  transition: transform .3s var(--ease);
}
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-logo:hover { transform: translateY(-1px); }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-menu a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  position: relative;
  transition: color .25s var(--ease);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--manta-accent);
  transition: width .35s var(--ease);
}
.nav-menu a:hover { color: var(--manta-accent-dark); }
.nav-menu a:hover::after { width: 100%; }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--manta-accent-dark);
  transform: translateY(-1px);
}
.nav-cta span { transition: transform .3s var(--ease); display:inline-block; margin-left:4px; }
.nav-cta:hover span { transform: translateX(3px); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all .3s var(--ease);
}

@media (max-width: 980px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* ----- BACKGROUND VIVO ----- */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* 3 camadas de "mesh" orgânico que respiram em loop */
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.mesh-1 {
  top: -10%; left: -8%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, #E07B3D 0%, transparent 65%);
  animation: meshFloat1 22s ease-in-out infinite;
}
.mesh-2 {
  top: 20%; right: -12%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, #B85042 0%, transparent 60%);
  opacity: .4;
  animation: meshFloat2 26s ease-in-out infinite;
}
.mesh-3 {
  bottom: -15%; left: 30%;
  width: 580px; height: 580px;
  background: radial-gradient(circle, #C45A2B 0%, transparent 60%);
  opacity: .35;
  animation: meshFloat3 30s ease-in-out infinite;
}

@keyframes meshFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(120px, 80px) scale(1.15); }
  66%      { transform: translate(-60px, 140px) scale(.92); }
}
@keyframes meshFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-180px, 100px) scale(1.18); }
}
@keyframes meshFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-100px, -120px) scale(1.1); }
  70%      { transform: translate(80px, -60px) scale(.88); }
}

/* Rede de pontos conectados — alusão aos 50+ países */
.hero-network {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
}
.net-dot {
  fill: var(--manta-accent);
  animation: dotPulse 3s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: .35; r: 2; }
  50%      { opacity: 1; r: 3.5; }
}
.net-line {
  stroke: var(--manta-accent);
  stroke-width: 0.5;
  fill: none;
  opacity: .15;
  stroke-dasharray: 200;
  animation: lineDraw 8s linear infinite;
}
@keyframes lineDraw {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  20%  { opacity: .25; }
  80%  { opacity: .15; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Textura de grão sobre tudo — dá tato de papel/print premium */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.23  0 0 0 0 0.10  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Garante que o conteúdo do hero fique acima do background animado */
.hero > *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

/* Respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .mesh, .net-dot, .net-line { animation: none !important; }
}

.hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--manta-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero-eyebrow .sep { color: var(--manta-accent); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,123,61,.6); }
  50% { box-shadow: 0 0 0 8px rgba(224,123,61,0); }
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 1100px;
}
.hero-title .line {
  display: block;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--manta-title);
}
.hero-title .accent {
  color: var(--manta-accent-dark);
  font-style: italic;
  font-weight: 300;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  position: relative;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 48px;
}

.hero-actions {
  position: relative;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: all .35s var(--ease);
  border: 1px solid var(--ink);
}
.btn-primary span { transition: transform .35s var(--ease); display:inline-block; }
.btn-primary:hover {
  background: var(--manta-accent-dark);
  border-color: var(--manta-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196,90,43,.3);
}
.btn-primary:hover span { transform: translateX(4px); }
.btn-primary.big {
  padding: 20px 36px;
  font-size: 15px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: all .35s var(--ease);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-ghost.light {
  color: var(--bg);
  border-color: rgba(245,239,230,.4);
}
.btn-ghost.light:hover {
  background: var(--bg);
  color: var(--ink);
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.stat {
  padding: 8px 24px 8px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: var(--manta-accent-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}
/* Variante com prefixo de texto (ex: "Atuação em 4") */
.stat-num.with-prefix {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-2);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.stat-num.with-prefix span[data-count] {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  font-style: normal;
  color: var(--manta-accent-dark);
}
.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.scroll-line {
  width: 60px; height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -60px;
  width: 60px; height: 100%;
  background: var(--manta-accent);
  animation: scrollLine 2.5s var(--ease) infinite;
}
@keyframes scrollLine {
  to { left: 60px; }
}

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(2) { border-right: none; }
  .hero-scroll { display: none; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  position: relative;
  padding: 140px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 80px;
  max-width: 900px;
}
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--manta-accent-dark);
  margin-bottom: 24px;
  position: relative;
  padding-left: 32px;
}
.kicker::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 1px;
  background: var(--manta-accent-dark);
}
.section-head.light .kicker { color: var(--manta-accent); }
.section-head.light .kicker::before { background: var(--manta-accent); }
.kicker.light { color: var(--manta-accent); }
.kicker.light::before { background: var(--manta-accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--manta-accent-dark);
}
.section-head.light .section-title { color: var(--dark-ink); }
.section-head.light .section-title em { color: var(--manta-accent); }

/* ============================================
   SOBRE
   ============================================ */
.section-sobre {
  background: var(--bg);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 56px; }
}

.sobre-text .lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 28px;
}
.sobre-text p {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 24px;
  line-height: 1.7;
}
.sobre-text strong {
  color: var(--manta-title);
  font-weight: 600;
}

.sobre-quote {
  margin-top: 40px;
  padding: 32px 0 32px 32px;
  border-left: 2px solid var(--manta-accent);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--manta-heading);
}
.sobre-quote em {
  display: block;
  margin-top: 12px;
  color: var(--manta-accent-dark);
  font-weight: 500;
}

.sobre-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--bg);
  padding: 28px 24px;
  transition: all .35s var(--ease);
  cursor: default;
}
.pillar:hover {
  background: var(--manta-deep);
  color: var(--bg);
}
.pillar:hover h3 { color: var(--manta-accent); }
.pillar:hover p { color: var(--dark-muted); }
.pillar:hover .pillar-num { color: var(--manta-accent); opacity: 1; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--manta-accent-dark);
  opacity: .6;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
  transition: all .35s var(--ease);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color .35s var(--ease);
}
.pillar p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  transition: color .35s var(--ease);
}

/* ============================================
   VALORES (DARK)
   ============================================ */
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(224,123,61,.12), transparent 60%);
  filter: blur(70px);
  pointer-events: none;
  animation: nebulaDrift1 28s ease-in-out infinite;
}
.section-dark::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -8%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,80,66,.10), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  animation: nebulaDrift2 34s ease-in-out infinite;
}
@keyframes nebulaDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, 80px) scale(1.15); }
}
@keyframes nebulaDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(120px, -60px) scale(1.1); }
}
.section-dark .section-head,
.section-dark > * {
  position: relative;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
@media (prefers-reduced-motion: reduce) {
  .section-dark::before, .section-dark::after { animation: none; }
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}
.valor {
  background: var(--dark-bg);
  padding: 40px 32px;
  transition: background .4s var(--ease);
  position: relative;
}
.valor.wide { grid-column: span 3; }
.valor:hover { background: var(--dark-bg-2); }
.valor::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--manta-accent);
  transition: width .5s var(--ease);
}
.valor:hover::after { width: 100%; }
.valor-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}
.valor-head span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--manta-accent);
  letter-spacing: 0.1em;
}
.valor-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark-ink);
}
.valor p {
  font-size: 14.5px;
  color: var(--dark-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .valor.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .valores-grid { grid-template-columns: 1fr; }
  .valor.wide { grid-column: span 1; }
}

/* ============================================
   SERVIÇOS
   ============================================ */
.section-servicos { background: var(--bg-2); max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-servicos > .section-head,
.section-servicos > .seg-tabs,
.section-servicos > .seg-panels {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.seg-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
  overflow-x: auto;
}
.seg-tab {
  background: none;
  border: none;
  padding: 18px 28px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.seg-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--manta-accent-dark);
  transition: width .4s var(--ease);
}
.seg-tab:hover { color: var(--ink); }
.seg-tab.active {
  color: var(--manta-heading);
  font-weight: 600;
}
.seg-tab.active::after { width: 100%; }

.seg-panel { display: none; }
.seg-panel.active {
  display: block;
  animation: panelIn .5s var(--ease);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.seg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .seg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .seg-grid { grid-template-columns: 1fr; } }

.seg-item {
  background: var(--bg);
  padding: 32px 28px;
  transition: all .4s var(--ease);
  position: relative;
}
.seg-item:hover {
  background: var(--ink);
  color: var(--bg);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(45,30,20,.2);
}
.seg-item:hover h4 { color: var(--bg); }
.seg-item:hover p { color: var(--dark-muted); }
.seg-item:hover .seg-num { color: var(--manta-accent); }

.seg-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--manta-accent-dark);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
  transition: color .35s var(--ease);
}
.seg-item h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
  transition: color .35s var(--ease);
}
.seg-item p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  transition: color .35s var(--ease);
}

/* ============================================
   ALCANCE GLOBAL
   ============================================ */
.section-globe { background: var(--bg); position: relative; overflow: hidden; }
.section-globe::before {
  content: '';
  position: absolute;
  top: 20%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(224,123,61,.08), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.section-globe > * { position: relative; z-index: 1; }

.globe-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  max-width: 800px;
  margin-bottom: 56px;
}
.globe-lead strong { color: var(--manta-accent-dark); font-weight: 500; }

/* KPIs grandes */
.globe-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 32px 0;
  margin-bottom: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.g-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 32px;
  border-right: 1px solid var(--line);
}
.g-stat:last-child { border-right: none; }
.g-stat:first-child { padding-left: 0; }

.g-stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--manta-accent-dark);
}
.g-stat-num i {
  font-style: normal;
  font-size: 0.6em;
  font-weight: 300;
  color: var(--manta-accent);
  margin-left: 2px;
}
.g-stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .globe-stats { grid-template-columns: 1fr 1fr; gap: 24px 0; padding: 28px 0; }
  .g-stat { padding: 0 20px; }
  .g-stat:nth-child(2) { border-right: none; }
  .g-stat:nth-child(3) { grid-column: span 2; border-right: none; border-top: 1px solid var(--line); padding-top: 24px; padding-left: 0; }
}

/* Regions: cards horizontais com numeração */
.regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .regions { grid-template-columns: 1fr; } }

.region {
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.region::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--manta-accent);
  transition: width .5s var(--ease);
}
.region:hover {
  border-color: var(--manta-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(196,90,43,.10);
}
.region:hover::before { width: 100%; }

.region-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.region-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-style: italic;
  font-weight: 300;
  color: var(--manta-accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.region-head h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--manta-heading);
  line-height: 1;
  margin-bottom: 4px;
}
.region-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--manta-accent-dark);
  text-transform: uppercase;
}

.region-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.flag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  transition: all .25s var(--ease);
}
.region:hover .flag-pill {
  border-color: rgba(224,123,61,.25);
}
.flag-pill:hover {
  background: var(--manta-accent-dark);
  border-color: var(--manta-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.region-note {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  font-style: italic;
  opacity: .85;
}

/* ============================================
   LIDERANÇAS
   ============================================ */
.leaders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .leaders { grid-template-columns: 1fr; gap: 24px; } }

.leader {
  padding: 40px 32px;
  background: var(--dark-bg-2);
  border: 1px solid var(--dark-line);
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.leader::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--manta-accent), transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}
.leader:hover::before { transform: translateX(0); }
.leader:hover {
  transform: translateY(-4px);
  border-color: rgba(224,123,61,.4);
}

.leader-photo {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(224,123,61,.15), rgba(184,80,66,.08));
  border: 2px solid rgba(224,123,61,.25);
  transition: all .5s var(--ease);
}
.leader-photo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--manta-accent), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.leader:hover .leader-photo {
  transform: scale(1.05);
  border-color: var(--manta-accent);
  box-shadow: 0 8px 24px rgba(224,123,61,.25);
}
.leader:hover .leader-photo::after { opacity: 1; }
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .5s var(--ease);
  filter: saturate(.9) contrast(1.05);
}
.leader:hover .leader-photo img {
  filter: saturate(1.05) contrast(1.05);
}

.leader-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark-ink);
  margin-bottom: 4px;
}
.leader-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--manta-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.leader-bio {
  font-size: 14px;
  color: var(--dark-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.leader-bio strong {
  color: var(--dark-ink);
  font-weight: 500;
}

.org-grid {
  border-top: 1px solid var(--dark-line);
  padding-top: 64px;
}
.org-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--dark-ink);
  margin-bottom: 36px;
}
.org-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .org-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .org-cols { grid-template-columns: 1fr; } }

.org-col {
  padding: 24px;
  background: rgba(245,239,230,.03);
  border: 1px solid var(--dark-line);
}
.org-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--manta-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dark-line);
}
.org-person {
  padding: 10px 0;
  border-bottom: 1px solid rgba(58,42,32,.5);
}
.org-person:last-child { border-bottom: none; }
.org-person strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark-ink);
  margin-bottom: 2px;
}
.org-person span {
  font-size: 12px;
  color: var(--dark-muted);
}

/* ============================================
   MERCADO
   ============================================ */
.section-mercado { background: var(--bg); }

.mercado-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  max-width: 800px;
  margin-bottom: 64px;
}
.mercado-lead strong { color: var(--manta-accent-dark); font-weight: 500; }

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 100px;
}
@media (max-width: 1000px) { .clientes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .clientes-grid { grid-template-columns: 1fr; } }

.cliente {
  padding: 32px 28px;
  background: var(--bg-2);
  border-top: 2px solid var(--manta-accent-dark);
  transition: all .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.cliente:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(45,30,20,.08);
}
.cliente.intl { border-top-color: var(--manta-terracota); }
.cliente header { margin-bottom: 24px; }
.cliente-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--manta-accent-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(224,123,61,.08);
  border-radius: 100px;
  margin-bottom: 12px;
}
.cliente-tag.intl {
  color: var(--manta-terracota);
  background: rgba(184,80,66,.08);
}
.cliente h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--manta-heading);
}

.dores {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dores li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.dores li strong {
  color: var(--manta-heading);
  font-weight: 600;
}
.dores li span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--manta-accent-dark);
  font-weight: 600;
  flex-shrink: 0;
  width: 16px;
}

.intl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.intl-list span {
  font-size: 13px;
  font-weight: 500;
  color: var(--manta-heading);
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.intl-note {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: auto;
  padding-top: 12px;
}

.timeline {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--manta-accent-dark);
  margin-bottom: 32px;
}
.timeline-track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.tl-point {
  text-align: center;
}
.tl-point:last-child { text-align: center; }
.tl-year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  color: var(--manta-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}
.tl-label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.tl-bar {
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.tl-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, var(--manta-accent-dark), var(--manta-accent));
}
.timeline-note {
  font-size: 14.5px;
  color: var(--ink-2);
  text-align: center;
  margin-top: 16px;
}
.timeline-note strong { color: var(--manta-accent-dark); }

/* ============================================
   PROJETOS — Galeria Visual
   ============================================ */
.section-projetos { background: var(--bg-2); max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-projetos > .section-head,
.section-projetos > .proj-filters,
.section-projetos > .proj-gallery,
.section-projetos > .proj-note {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 720px;
  margin-top: 24px;
}

/* Filtros */
.proj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.proj-filter {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 100px;
  cursor: pointer;
  transition: all .3s var(--ease);
  letter-spacing: -0.005em;
}
.proj-filter:hover {
  border-color: var(--manta-accent-dark);
  color: var(--manta-accent-dark);
}
.proj-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* Galeria — masonry-like grid */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .proj-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .proj-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px) { .proj-gallery { grid-template-columns: 1fr; } }

.proj-card {
  position: relative;
  margin: 0;
  background: var(--ink);
  overflow: hidden;
  cursor: default;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  aspect-ratio: 4 / 5;
}
.proj-card.lg {
  grid-column: span 2;
  aspect-ratio: 8 / 5;
}
@media (max-width: 800px) {
  .proj-card.lg { grid-column: span 2; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .proj-card.lg { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* Estado oculto durante filtragem */
.proj-card.hidden {
  display: none;
}

.proj-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease);
  filter: saturate(.85) brightness(.95);
}
.proj-card:hover .proj-img img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

/* Overlay gradient sempre presente para legibilidade */
.proj-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 20, 16, 0.92) 0%,
    rgba(28, 20, 16, 0.55) 35%,
    rgba(28, 20, 16, 0.15) 65%,
    transparent 100%
  );
  z-index: 1;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.proj-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(28, 20, 16, 0.95) 0%,
    rgba(184, 80, 66, 0.30) 50%,
    rgba(224, 123, 61, 0.15) 100%
  );
}

/* Borda sutil terracota no hover */
.proj-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 0 solid var(--manta-accent);
  z-index: 3;
  pointer-events: none;
  transition: border-width .3s var(--ease);
}
.proj-card:hover::after { border-width: 2px; }

/* Caption */
.proj-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 22px;
  z-index: 2;
  color: #fff;
  transform: translateY(0);
  transition: transform .5s var(--ease);
}
.proj-card.lg figcaption {
  padding: 32px 30px;
}

.proj-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--manta-accent);
  margin-bottom: 10px;
  padding: 3px 10px;
  background: rgba(28, 20, 16, 0.7);
  border: 1px solid rgba(224, 123, 61, .35);
  border-radius: 100px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.proj-card figcaption h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 6px;
}
.proj-card.lg figcaption h3 {
  font-size: 30px;
}

.proj-card figcaption p {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.005em;
}
.proj-card figcaption p strong {
  color: var(--manta-accent);
  font-weight: 500;
}

/* Pequena nota ao final */
.proj-note {
  margin-top: 64px;
  padding: 28px 32px;
  background: var(--bg);
  border-left: 3px solid var(--manta-accent);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.proj-note span {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--manta-accent-dark);
  font-weight: 500;
  line-height: 1;
}
.proj-note strong {
  color: var(--manta-heading);
  font-weight: 500;
  font-style: italic;
}

/* ============================================
   CTA / CONTATO
   ============================================ */
.section-cta {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: 140px var(--gutter);
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 0;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(224,123,61,.18), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  animation: ctaOrb 8s ease-in-out infinite;
}
.section-cta::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(224,123,61,.15);
  border-radius: 50%;
  pointer-events: none;
  animation: ctaRing 6s ease-out infinite;
}
@keyframes ctaOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: .7; }
}
@keyframes ctaRing {
  0%   { transform: translate(-50%,-50%) scale(.5); opacity: 0; }
  50%  { opacity: .6; }
  100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section-cta::before, .section-cta::after { animation: none; }
}

.cta-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.kicker.light {
  display: inline-block;
  margin-bottom: 24px;
  padding-left: 32px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin-bottom: 32px;
}
.cta-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--manta-accent);
}

.cta-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--dark-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #110A06;
  color: var(--dark-muted);
  padding: 80px var(--gutter) 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--dark-line);
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  align-self: flex-start;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--dark-ink);
  letter-spacing: -0.01em;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--manta-accent);
  margin-bottom: 8px;
}
.footer-col a, .footer-static {
  font-size: 13.5px;
  color: var(--dark-muted);
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--manta-accent); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.footer-meta {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ============================================
   SCROLL REVEAL UTILITY
   Only activates when JS is loaded — without JS,
   content is always visible for accessibility.
   ============================================ */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js-loaded .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
