/* ============================================================
   AZIRA — Landing page · escritórios de advocacia
   Identidade: navy profundo, papel, dourado, hairlines.
   Tipografia: Cormorant Garamond (títulos) · Manrope (texto)

   Sistema de superfícies:
   ─ .hero          navy liso (imagem)
   ─ .navy-texture  navy com ruído sutil (papel/concreto)
   ─ .navy-grid     navy com grade fina quase imperceptível
   ─ .paper         papel com ruído — tokens de tinta redefinidos
   ─ .paper-blueprint  papel com linhas técnicas
   ─ .sheet         folha impressa (documento) sobre .paper
   ============================================================ */

:root {
  /* Cores da marca */
  --navy: #101D31;
  --navy-2: #18263E;
  --navy-deep: #0C1626;
  --paper: #F7F3EC;
  --paper-deep: #F1EBE0;    /* mesa de papel: um tom abaixo da folha */
  --gold: #C6A46A;
  --gold-light: #D8C8A8;
  --gold-dark: #7E6234;     /* dourado legível sobre papel */
  --gray: #5C6472;
  --line-warm: #D7D1C7;

  /* Papéis de tinta (padrão: sobre navy) */
  --ink: #F7F3EC;
  --ink-soft: rgba(247, 243, 236, 0.74);
  --ink-faint: rgba(247, 243, 236, 0.5);
  --hairline: rgba(215, 209, 199, 0.16);
  --hairline-strong: rgba(215, 209, 199, 0.3);
  --accent-em: var(--gold-light);   /* itálico de destaque nos títulos */

  /* Texturas (ruído SVG inline, quase invisível) */
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.97 0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.11 0 0 0 0 0.19 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Tipografia */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  /* Ritmo */
  --section-y: clamp(5.5rem, 11vw, 9.5rem);
  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; }

::selection { background: rgba(198, 164, 106, 0.35); color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* ---------- Superfícies ---------- */

.navy-texture {
  background-color: var(--navy);
  background-image: var(--noise-light);
}

.navy-grid {
  background-color: var(--navy);
  background-image:
    var(--noise-light),
    linear-gradient(rgba(215, 209, 199, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 209, 199, 0.05) 1px, transparent 1px);
  background-size: 240px 240px, 64px 64px, 64px 64px;
}

.paper,
.paper-blueprint {
  /* Sobre papel, os tokens de tinta invertem */
  --ink: #101D31;
  --ink-soft: #3D4654;
  --ink-faint: rgba(16, 29, 49, 0.55);
  --hairline: rgba(16, 29, 49, 0.16);
  --hairline-strong: rgba(16, 29, 49, 0.32);
  --accent-em: var(--gold-dark);

  background-color: var(--paper-deep);
  background-image: var(--noise-dark);
  color: var(--ink);
}

.paper-blueprint {
  background-image:
    var(--noise-dark),
    linear-gradient(rgba(16, 29, 49, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 29, 49, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(16, 29, 49, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 29, 49, 0.045) 1px, transparent 1px);
  background-size: 240px 240px, 44px 44px, 44px 44px, 220px 220px, 220px 220px;
}

/* ---------- Tipografia de display ---------- */

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.display-lg {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-em);
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0;
}

.body-muted { color: var(--ink-soft); max-width: 40rem; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  transition: background 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(16, 29, 49, 0.96);
  border-bottom: 1px solid rgba(215, 209, 199, 0.16);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  text-decoration: none;
}

.wordmark-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

.wordmark-line {
  width: 1px;
  height: 1.1rem;
  background: var(--gold);
  align-self: center;
}

.wordmark-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.5);
  font-weight: 400;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(247, 243, 236, 0.74);
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease-out);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Botões ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.header-cta { padding: 0.7rem 1.5rem; font-size: 0.8rem; }

.link-quiet {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 0.2rem;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.link-quiet:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ---------- Menu mobile ---------- */

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--paper);
  margin-block: 0.3rem;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  border-top: 1px solid rgba(215, 209, 199, 0.16);
  padding: 1rem var(--gutter) 2rem;
}

.mobile-menu a {
  text-decoration: none;
  color: rgba(247, 243, 236, 0.74);
  font-size: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(215, 209, 199, 0.16);
}

.mobile-menu a:last-child { border-bottom: 0; }

.mobile-menu-cta { color: var(--gold-light); }

.site-header.menu-open .mobile-menu { display: flex; }

/* ============================================================
   1 · HERO — navy liso
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Camada 1 — mídia: o poster (frame do vídeo) fica sempre sob o vídeo,
   então a troca imagem→vídeo acontece sem piscada nem mudança de layout. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media .hero-fallback,
.hero-media .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media .hero-video { z-index: 1; }

/* Camada 2 — overlay de contraste (o vídeo vira fundo, não protagonista) */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--navy) 0%, rgba(16, 29, 49, 0) 14%),
    linear-gradient(to bottom, rgba(16, 29, 49, 0.72) 0%, rgba(16, 29, 49, 0.88) 100%);
}

/* Camada 3 — textura de papel premium, quase imperceptível */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--noise-light);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Camada 4 — conteúdo */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding: 8rem var(--gutter) 6rem;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 2rem;
  padding-left: 3.4rem;
  position: relative;
}

.hero-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 2.25rem;
  max-width: 17em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.mask-line > span {
  display: block;
  transform: translateY(0);
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 3rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex-wrap: wrap;
}

.hero-foot {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.hero-scroll-hint {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-scroll-line {
  width: 1px;
  height: 4.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* Entrada do hero, sincronizada com o vídeo (animações CSS autônomas):
   0 ms poster · ~250 ms o vídeo começa · 500 ms mask reveal do título ·
   800 ms subtítulo · 1100 ms CTA */

.mask-line > span {
  animation: rise 1.1s var(--ease-out) both;
}

.mask-line:nth-child(1) > span { animation-delay: 0.5s; }
.mask-line:nth-child(2) > span { animation-delay: 0.62s; }
.mask-line:nth-child(3) > span { animation-delay: 0.74s; }

@keyframes rise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.hero .hero-kicker,
.hero .hero-sub,
.hero .hero-actions {
  animation: settle 1s var(--ease-out) both;
}

.hero .hero-kicker { animation-delay: 0.35s; }
.hero .hero-sub { animation-delay: 0.8s; }
.hero .hero-actions { animation-delay: 1.1s; }

@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   2 · MANIFESTO — navy com textura
   ============================================================ */

.manifesto-inner {
  max-width: 50rem;
}

.manifesto .lede { max-width: 44rem; }

.manifesto-line {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  margin: clamp(2.25rem, 4.5vw, 3.5rem) 0 0;
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--hairline);
  max-width: 30em;
}

.manifesto-line strong {
  font-weight: 500;
  color: var(--gold-light);
}

/* ============================================================
   FOLHA IMPRESSA (.sheet) — documento sobre papel
   ============================================================ */

.sheet {
  max-width: 66rem;
  margin-inline: auto;
  background-color: var(--paper);
  background-image: var(--noise-dark);
  border: 1px solid var(--hairline);
  padding: clamp(2.25rem, 5.5vw, 5rem) clamp(1.5rem, 5.5vw, 5rem);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.sheet-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.sheet-ref {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-faint);
}

.sheet-intro {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.sheet-foot {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.sheet-foot p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 44rem;
}

.sheet-foot-label {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ============================================================
   3 · DIAGNÓSTICO EXECUTIVO (ledger editorial na folha)
   ============================================================ */

.ledger {
  border-top: 1px solid var(--hairline);
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) 3fr;
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: baseline;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.ledger-row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.7s var(--ease-out);
}

.ledger-row:hover::before { width: 100%; }

.ledger-term {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 0;
}

.ledger-term em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-em);
}

.ledger-desc {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* ============================================================
   4 · INTELIGÊNCIA — navy com grid
   ============================================================ */

.inteligencia-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.inteligencia-copy .lede { margin-bottom: 1.5rem; }

.panel {
  background: var(--navy-2);
  border: 1px solid var(--hairline);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

.panel-title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.panel-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.panel-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 1.75rem;
}

.kpi { padding-inline: 1.25rem; }
.kpi:first-child { padding-left: 0; }
.kpi + .kpi { border-left: 1px solid var(--hairline); }

.kpi-value {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}

.kpi-value small {
  font-size: 0.6em;
  font-weight: 400;
}

.kpi-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.panel-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-gridlines line {
  stroke: var(--hairline);
  stroke-width: 1;
}

.chart-line-gold {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-muted {
  fill: none;
  stroke: var(--gray);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-dasharray: 5 7;
}

.chart-dots circle { fill: var(--gold-light); }
.chart-dots .dot-muted { fill: var(--gray); }

.chart-labels text {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* Desenho progressivo da linha dourada */
.panel.in .chart-line-gold {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2s var(--ease-out) 0.3s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.chart-legend {
  display: flex;
  gap: 2rem;
  margin-top: 1.25rem;
}

.legend-item {
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.legend-item::before {
  content: "";
  width: 1.4rem;
  height: 0;
  border-top: 2px solid var(--gold);
}

.legend-muted::before {
  border-top: 2px dashed var(--gray);
}

/* ============================================================
   5 · PILARES — paper, composição assimétrica
   ============================================================ */

.pilares-head {
  max-width: 46rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}

.pilar-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  margin: 0 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.pilar-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3rem;
  height: 1px;
  background: var(--gold);
}

.pilar p { color: var(--ink-soft); margin: 0 0 1.25rem; }

/* Marketing — bloco maior, com imagem */
.pilar-marketing {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.pilar-figure {
  margin: 2rem 0 0;
  overflow: hidden;
}

.pilar-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.02);
  transition: transform 1.2s var(--ease-out);
}

.pilar-marketing:hover .pilar-figure img { transform: scale(1.03); }

/* Comercial — processo numerado */
.pilar-comercial { grid-column: 8 / 13; }

.pilar-process {
  list-style: none;
  counter-reset: etapa;
  margin: 1.5rem 0 0;
  padding: 0;
}

.pilar-process li {
  counter-increment: etapa;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.975rem;
  color: var(--ink-soft);
}

.pilar-process li::before {
  content: counter(etapa, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1.05rem;
  min-width: 1.6rem;
}

/* Dados — tabela */
.pilar-dados { grid-column: 8 / 13; }

.pilar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.pilar-table th,
.pilar-table td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 400;
}

.pilar-table th {
  color: var(--ink);
  font-weight: 500;
  padding-right: 1.5rem;
  white-space: nowrap;
}

.pilar-table td { color: var(--ink-soft); }

/* Estratégia — citação, faixa inteira */
.pilar-estrategia {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.pilar-estrategia .pilar-name {
  grid-column: 1 / -1;
  border-bottom: 0;
  padding-bottom: 0;
}

.pilar-estrategia .pilar-name::after { display: none; }

.pilar-quote {
  margin: 0;
  padding-left: 1.75rem;
  border-left: 1px solid var(--gold);
}

.pilar-quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

.pilar-quote em {
  font-style: italic;
  color: var(--accent-em);
}

/* ============================================================
   6 · MÉTODO — paper com linhas técnicas (timeline)
   ============================================================ */

.metodo-head {
  max-width: 46rem;
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.timeline-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
  padding-inline: var(--gutter);
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container);
  display: grid;
  grid-template-columns: repeat(6, minmax(11.5rem, 1fr));
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline-strong);
}

.timeline-step {
  position: relative;
  padding: 2.5rem 1.75rem 0 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 0.6rem;
}

.timeline-step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}

.timeline-step p {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================================
   7 · ESPECIALIZAÇÃO — navy com textura
   ============================================================ */

.especializacao { background-color: var(--navy-2); }

.especializacao-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.especializacao-media { position: sticky; top: 7rem; }

.especializacao-media figure { margin: 0; }

.especializacao-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.7);
}

.especializacao-media figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  max-width: 30rem;
}

.competencias {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

.competencia {
  padding-block: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.competencia:last-child { border-bottom: 1px solid var(--hairline); }

.competencia dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.competencia dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
  font-size: 0.985rem;
}

/* ============================================================
   8 · RESULTADOS — paper (folha impressa)
   ============================================================ */

.resultados-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.indicadores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.indicador {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.indicador + .indicador { border-left: 1px solid var(--hairline); }

.indicador-valor {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
}

.indicador-valor small {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--gold-dark);
}

.indicador-nome {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.indicador-contexto {
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ============================================================
   9 · CONTATO — navy com textura
   ============================================================ */

.contato-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contato-reassure {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.contato-reassure li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2.1rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}

.contato-reassure li:last-child { border-bottom: 1px solid var(--hairline); }

.contato-reassure li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.contato-form {
  background: var(--navy-2);
  border: 1px solid var(--hairline);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.field { margin-bottom: 1.4rem; flex: 1; }

/* Honeypot: fora da tela, inacessível para pessoas */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-row {
  display: flex;
  gap: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.field input,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.3s var(--ease-out);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C6A46A' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.5rem;
  cursor: pointer;
}

.field select:invalid { color: var(--ink-soft); }
.field select option { background: var(--navy); color: var(--paper); }

.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.contato-form .btn { margin-top: 0.75rem; }

.form-feedback {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--gold-light);
  min-height: 1.5em;
}

.form-feedback.error { color: #E2A9A0; }

.form-privacidade {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(215, 209, 199, 0.16);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand p {
  color: var(--ink-faint);
  font-size: 0.925rem;
  max-width: 24rem;
  margin: 1.25rem 0 0;
}

.footer-heading {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a,
.footer-col span:not(.footer-heading) {
  font-size: 0.925rem;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(215, 209, 199, 0.16);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ============================================================
   REVEALS (progressivo — visível por padrão, JS ativa)
   ============================================================ */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Hero: os elementos já têm animação própria; não duplicar */
html.js .hero .reveal {
  opacity: initial;
  transform: none;
  transition: none;
}

/* Escalonamento sutil dentro de grupos */
html.js .ledger-row.in:nth-child(2),
html.js .competencia.in:nth-child(2),
html.js .timeline-step.in:nth-child(2) { transition-delay: 0.08s; }
html.js .ledger-row.in:nth-child(3),
html.js .competencia.in:nth-child(3),
html.js .timeline-step.in:nth-child(3) { transition-delay: 0.16s; }
html.js .ledger-row.in:nth-child(4),
html.js .competencia.in:nth-child(4),
html.js .timeline-step.in:nth-child(4) { transition-delay: 0.24s; }
html.js .timeline-step.in:nth-child(5) { transition-delay: 0.32s; }
html.js .timeline-step.in:nth-child(6) { transition-delay: 0.4s; }

/* ============================================================
   MOVIMENTO REDUZIDO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .mask-line > span,
  .hero .hero-kicker,
  .hero .hero-sub,
  .hero .hero-actions {
    animation: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .panel.in .chart-line-gold { animation: none; stroke-dashoffset: 0; }

  /* Sem vídeo para quem prefere movimento reduzido: apenas o poster */
  .hero-video { display: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 64rem) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }

  .pilar-marketing { grid-column: 1 / 13; grid-row: auto; }
  .pilar-comercial { grid-column: 1 / 13; }
  .pilar-dados { grid-column: 1 / 13; }
  .pilar-estrategia { grid-template-columns: 1fr; }

  .inteligencia-grid { grid-template-columns: 1fr; }

  .especializacao-grid { grid-template-columns: 1fr; }
  .especializacao-media { position: static; }
  .especializacao-media img { aspect-ratio: 16 / 10; }

  .contato-grid { grid-template-columns: 1fr; }

  .indicadores { grid-template-columns: 1fr 1fr; }
  .indicador:nth-child(3) { border-left: 0; }
  .indicador:nth-child(n+3) { border-top: 1px solid var(--hairline); }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  /* Vídeo pesado (>5 MB): em telas pequenas prevalece a velocidade — só o poster.
     O JS remove o elemento; esta regra cobre o intervalo antes de ele rodar. */
  .hero-video { display: none; }
}

@media (max-width: 40rem) {
  .ledger-row { grid-template-columns: 1fr; gap: 0.75rem; }

  .field-row { flex-direction: column; gap: 0; }

  .indicadores { grid-template-columns: 1fr; }
  .indicador + .indicador { border-left: 0; border-top: 1px solid var(--hairline); }

  .panel-kpis { grid-template-columns: 1fr; gap: 1.25rem; }
  .kpi { padding-inline: 0; }
  .kpi + .kpi { border-left: 0; padding-top: 1.25rem; border-top: 1px solid var(--hairline); }

  .hero-foot { display: none; }

  .wordmark-tag { display: none; }
}
