/* ============================================================
   HOME — REFINAMENTO EDITORIAL
   Menos ornamento, mais hierarquia e presença arquitetônica.
   ============================================================ */

:root {
  --home-seam: rgba(240, 187, 74, 0.28);
  --home-rule: rgba(197, 202, 211, 0.2);
}

/* A capa passa a ter uma única assinatura: tese + arquitetura. */
.hero-v2 {
  background:
    radial-gradient(82% 64% at 4% -8%, rgba(240, 187, 74, 0.045), transparent 58%),
    linear-gradient(180deg, var(--cool-800) 0%, var(--cool-900) 52%, var(--cool-950) 100%);
}

.hero-v2 .hero-chapter,
.hero-v2 .hero-continue,
.hero-v2 .hero-kpis-label {
  display: none;
}

.hero-v2 .hero-top {
  gap: var(--space-4);
  padding-bottom: 18px;
}

.hero-v2 .hero-top::after {
  background: linear-gradient(90deg,
    rgba(240, 187, 74, 0.62) 0,
    rgba(240, 187, 74, 0.62) 28px,
    var(--home-rule) 28px,
    var(--home-rule) 100%);
}

.hero-v2 .hero-eyebrow {
  color: rgba(245, 242, 236, 0.7);
  letter-spacing: 0.105em;
}

.hero-v2 .hero-meta {
  color: rgba(245, 242, 236, 0.48);
  letter-spacing: 0.105em;
}

.hero-v2 .hero-content {
  gap: clamp(24px, 3.1vh, 32px);
  padding: clamp(34px, 5vh, 52px) 0;
}

.hero-v2 .hero-headline {
  line-height: 1.01;
  letter-spacing: -0.03em;
}

.hero-v2 .hl-line {
  padding-bottom: 0.08em;
}

.hero-v2 .hl-muted {
  margin-top: 0.12em;
  font-size: 0.7em;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: rgba(197, 202, 211, 0.7);
}

.hero-v2 .hl-italic {
  margin-top: 0.04em;
  padding-right: 0.18em;
  font-size: 0.9em;
  line-height: 1.08;
}

.hero-v2 .hero-lead {
  max-width: 45ch;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.78);
}

.hero-v2 .hero-cta-row {
  gap: 22px;
}

.hero-v2 .hero-cta-row .btn-primary {
  min-height: 54px;
  padding-inline: 24px;
  border-radius: 2px;
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.72);
}

.hero-v2 .hero-cta-row .link-arrow {
  transition: color 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}

/* Registro estrutural: uma linha calma, sem dupla ornamentação.
   Estrutura à esquerda, colofão de praça e ano à direita; o tique
   dourado que abre a régua do topo fecha aqui, na ponta oposta. */
.hero-v2 .hero-foot {
  position: relative;
  min-height: 82px;
  padding: 18px 0 clamp(24px, 3.2vh, 34px);
  border-top: 1px solid var(--home-rule);
  justify-content: space-between;
  column-gap: 16px;
}

.hero-v2 .hero-foot::after {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  width: 28px;
  height: 1px;
  background: rgba(240, 187, 74, 0.62);
}

.hero-v2 .hero-foot .hero-meta {
  margin-left: auto;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(245, 242, 236, 0.46);
}

.hero-v2 .hero-kpis-v2 {
  gap: 12px 0;
}

.hero-v2 .hero-kpis-list li + li {
  margin-left: 20px;
  padding-left: 20px;
}

.hero-v2 .kpi-num {
  font-size: 1.1875rem;
}

.hero-v2 .kpi-lbl {
  color: rgba(245, 242, 236, 0.58);
}

/* A fotografia recupera o azul do vidro sem comprometer o cabeçalho. */
.hero-v2 .hero-panel {
  border-left-color: var(--home-seam);
}

.hero-v2 .hero-panel-img {
  filter: grayscale(0.06) brightness(0.94) contrast(1.045) saturate(1.02);
}

.hero-v2 .hero-panel::after {
  background:
    linear-gradient(200deg, rgba(240, 187, 74, 0.045) 0%, transparent 44%),
    linear-gradient(90deg, var(--cool-900) 0%, rgba(26, 29, 36, 0.3) 18%, transparent 43%),
    linear-gradient(0deg, rgba(15, 17, 22, 0.46) 0%, transparent 31%),
    linear-gradient(180deg, rgba(15, 17, 22, 0.82) 0%, rgba(15, 17, 22, 0.43) 11%, transparent 27%);
}

.hero-v2 .hero-panel-cap {
  color: rgba(245, 242, 236, 0.8);
}

/* O CTA do menu mantém contraste quando o cabeçalho troca para o tema claro. */
#mobile-menu .btn-primary {
  background-color: var(--cool-900);
  border-color: var(--cool-900);
  color: var(--text-inverse);
}

#mobile-menu .btn-primary:hover {
  background-color: var(--brand-300);
  border-color: var(--brand-300);
  color: var(--cool-900);
}

/* A página abre depressa; a arquitetura continua sendo o único reveal amplo. */
.hero-v2.is-revealed .hero-top > * {
  transition-duration: 420ms;
  transition-delay: 60ms;
}

.hero-v2.is-revealed .hero-top::after {
  transition-duration: 700ms;
  transition-delay: 40ms;
}

.hero-v2.is-revealed .hero-lead {
  transition-duration: 480ms;
  transition-delay: 120ms;
}

.hero-v2.is-revealed .hero-cta-row {
  transition-duration: 480ms;
  transition-delay: 210ms;
}

.hero-v2.is-revealed .hero-foot {
  transition-duration: 500ms;
  transition-delay: 320ms;
}

.hero-v2 .hero-headline.is-revealed .hl-key::after {
  transition-duration: 650ms;
  transition-delay: 520ms;
}

/* Menos “efeito de interface”: planos firmes e revelações sem desfoque. */
.ko-depth-field,
.ko-glare,
.btn-primary::after {
  display: none !important;
}

.hero-v2 .hero-shell {
  transform: none !important;
  opacity: 1 !important;
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .reveal {
    filter: none;
    transform: translateY(18px);
    transition:
      opacity 560ms var(--ease-emphasized),
      transform 560ms var(--ease-emphasized);
  }

  .reveal.visible { filter: none; }

  .hero-v2 .hero-panel {
    width: max(400px, 42vw);
  }

  .hero-v2 .hero-doc {
    width: min(100%, calc(58vw - max(32px, 50vw - 568px) - 52px));
  }
}

/* A esteira mantém uma cadência constante, sem reagir ao scroll. */
.logos-track.is-kinetic {
  animation: logos-scroll 64s linear infinite !important;
}

.step .step-icon,
.timeline.in-view .step.reveal .step-icon,
.section-rule .rule-mark,
.section-rule.in-view .rule-mark {
  transform: none;
}

.section-rule .rule-mark { opacity: 1; }

@media (max-width: 1279px) and (min-width: 1024px) {
  .hero-v2 .hero-meta { display: none; }
}

@media (max-width: 767.98px) {
  .hero-v2 {
    padding-top: 88px;
  }

  .hero-v2 .hero-top {
    padding-bottom: 16px;
  }

  .hero-v2 .hero-content {
    gap: 22px;
    padding: 30px 0 34px;
  }

  .hero-v2 .hero-headline {
    font-size: clamp(2.45rem, 10.3vw, 2.9rem);
  }

  .hero-v2 .hl-muted {
    font-size: 0.72em;
  }

  .hero-v2 .hl-italic {
    font-size: 0.92em;
  }

  .hero-v2 .hero-cta-row {
    gap: 17px;
  }

  .hero-v2 .hero-foot {
    min-height: 96px;
    padding: 16px 0 24px;
  }

  .hero-v2 .hero-kpis-list li + li {
    margin-left: 14px;
    padding-left: 14px;
  }

  .office-story-mobile.is-enhanced {
    min-height: 160svh;
    height: 160svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track.is-kinetic { animation: none !important; }
}
