/* e-Progressus · hero scrollytelling (KM 000 → KM 100).
   Sem JavaScript ou com movimento reduzido: abertura estática (título, caminhão aceso, KM 01–04 e CTA).
   html.hs-pre (antes do script) e html.hs-on (GSAP ativo): palco fixo de 500svh dirigido pela rolagem.
   Ouro e ciano só na luz da cena; textos, cards e botões no champanhe do site. Prefixo hs-. */

.hero-scrollytelling {
  --hs-bg-0: #000;
  --hs-bg-1: #111111;
  --hs-exit: #171916;
  --hs-light: #D4AF37;
  --hs-light-hi: #F3E5AB;
  --hs-cyan: #00E5FF;
  --hs-gold: var(--gold, #cfb48a);
  --hs-gold-hi: var(--gold-bright, #e5ccaa);
  --hs-text: var(--white, #f7f5ef);
  --hs-muted: var(--muted, #cac8bf);
  --hs-ink: #171715;
  --hs-glass: rgba(21, 21, 20, .9);
  --hs-glass-line: rgba(207, 180, 138, .28);
  --hs-display: var(--serif, Georgia, 'Times New Roman', serif);
  --hs-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --hs-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, Menlo, monospace;
  --hs-ease: var(--motion-ease, cubic-bezier(.2, .65, .25, 1));
  position: relative;
  overflow: hidden;
  color: var(--hs-text);
  font-family: var(--hs-sans);
  background:
    radial-gradient(ellipse 46% 60% at 74% 62%, rgba(212, 175, 55, .11), rgba(212, 175, 55, 0) 70%),
    linear-gradient(180deg, #000 0%, #0a0a09 72%, var(--hs-exit) 100%);
}
.hero-scrollytelling img { max-width: none; }
.hero-scrollytelling svg { max-width: none; }

/* ------------------------------------------------------------------ abertura estática */
.hs-stage { position: relative; }
.hs-scene, .hs-hint, .hs-phrase { display: none; }
.hs-ui {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 7vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px 56px;
  align-items: center;
}
.hs-headline { min-width: 0; }
.hs-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0 0 26px;
  font-family: var(--hs-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .15em;
  color: var(--hs-gold);
}
.hs-tag__line { flex: 0 0 30px; height: 1px; margin-right: 14px; background: currentColor; }
.hs-tag__sep { padding: 0 10px; color: rgba(207, 180, 138, .55); }
.hero-scrollytelling .hs-title {
  margin: 0;
  max-width: none;
  font-family: var(--hs-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
  color: var(--hs-text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
}
.hero-scrollytelling .hs-title em { font-style: normal; color: var(--hs-gold); white-space: nowrap; }
.hero-scrollytelling .hs-title .hs-title__hl { color: var(--hs-gold); }
/* Opção 3 (Modo Elétrico): "Tributária" em degradê índigo-magenta → ciano; "move o Brasil." segue em ouro */
.hs-neon .hero-scrollytelling .hs-title .hs-title__hl {
  background: linear-gradient(100deg, #9C7BFF 0%, #E36BE0 45%, #FF8BDF 62%, #6FE6FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(176, 76, 255, .28));
}
.hs-sub {
  margin: 26px 0 0;
  max-width: 470px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--hs-muted);
  text-wrap: pretty;
}
.hs-truck-static {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 400px);
  margin: 0;
}
.hs-truck-static img { display: block; width: 100%; height: auto; filter: brightness(.72) contrast(1.06) saturate(.86); }
.hs-truck-static::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -40%;
  right: -40%;
  bottom: -8%;
  height: 46%;
  background: radial-gradient(ellipse 50% 50% at 50% 34%, rgba(243, 229, 171, .2), rgba(212, 175, 55, .07) 45%, rgba(212, 175, 55, 0) 75%);
  pointer-events: none;
}
.hs-truck-static::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 15% 12.6% at 18.9% 77%, #fffdf4 0 9%, rgba(255, 246, 214, .9) 16%, rgba(243, 229, 171, .45) 34%, rgba(212, 175, 55, .14) 64%, rgba(212, 175, 55, 0) 100%),
    radial-gradient(ellipse 15% 12.6% at 81% 77%, #fffdf4 0 9%, rgba(255, 246, 214, .9) 16%, rgba(243, 229, 171, .45) 34%, rgba(212, 175, 55, .14) 64%, rgba(212, 175, 55, 0) 100%),
    radial-gradient(ellipse 62% 1.6% at 50% 77%, rgba(255, 246, 214, .55), rgba(212, 175, 55, 0)),
    radial-gradient(ellipse 4% 1.3% at 26% 18.5%, rgba(255, 233, 176, .9), rgba(232, 181, 74, 0)),
    radial-gradient(ellipse 4% 1.3% at 42.5% 18.4%, rgba(255, 233, 176, .9), rgba(232, 181, 74, 0)),
    radial-gradient(ellipse 4% 1.3% at 58.8% 18.4%, rgba(255, 233, 176, .9), rgba(232, 181, 74, 0)),
    radial-gradient(ellipse 4% 1.3% at 73.4% 18.6%, rgba(255, 233, 176, .9), rgba(232, 181, 74, 0));
}
.hs-kms {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.hs-km { display: flex; min-width: 0; }
/* KM 01 e KM 01.5 (agronegócio) removidos a pedido da cliente */
.hs-km--1, .hs-km--1b { display: none !important; }
.hs-card {
  position: relative;
  flex: 1;
  box-sizing: border-box;
  padding: 22px 24px 24px;
  border-radius: 16px;
  border: 1px solid var(--hs-glass-line);
  background: linear-gradient(150deg, rgba(243, 229, 171, .06) 0%, rgba(243, 229, 171, 0) 40%, rgba(0, 229, 255, .03) 100%), var(--hs-glass);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 246, 214, .06);
}
.hs-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 229, 171, .5), transparent);
}
.hs-card--cta {
  padding: 24px 26px 26px;
  border-color: rgba(207, 180, 138, .6);
  background: linear-gradient(150deg, rgba(243, 229, 171, .10) 0%, rgba(243, 229, 171, 0) 40%, rgba(0, 229, 255, .03) 100%), var(--hs-glass);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 55, .10), 0 0 46px rgba(212, 175, 55, .20), inset 0 1px 0 rgba(255, 246, 214, .10);
}
.hs-card--cta::before { background: linear-gradient(90deg, transparent, rgba(255, 246, 214, .85), transparent); }
.hero-scrollytelling .hs-badge,
.hs-chapter__km {
  display: block;
  margin: 0;
  font-family: var(--hs-mono);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hs-gold);
}
.hs-badge strong, .hs-chapter__km strong { color: var(--hs-gold-hi); font-weight: 700; }
.hs-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 1px 0;
  border-radius: 50%;
  background: var(--hs-light);
  box-shadow: 0 0 8px 2px rgba(212, 175, 55, .55);
  vertical-align: middle;
}
.hero-scrollytelling .hs-card__title,
.hero-scrollytelling .hs-chapter {
  margin: 12px 0 0;
  max-width: none;
  font-family: var(--hs-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -.025em;
  color: var(--hs-text);
  text-wrap: balance;
}
.hero-scrollytelling .hs-card--cta .hs-card__title { font-size: 28px; }
.hero-scrollytelling .hs-chapter { margin: 0; font-size: inherit; letter-spacing: normal; line-height: normal; }
.hs-chapter__label {
  display: block;
  margin-top: 11px;
  font-family: var(--hs-display);
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: .02em;
  color: var(--hs-text);
  text-wrap: balance;
}
.hero-scrollytelling .hs-card__text {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--hs-muted);
  text-wrap: pretty;
}
.hs-chapter + .hs-card__text { margin-top: 12px; }
.hero-scrollytelling .hs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(207, 180, 138, .16);
  font-family: var(--hs-mono);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--hs-gold);
}
.hs-tags span { padding: 5px 8px; border: 1px solid rgba(207, 180, 138, .26); border-radius: 999px; background: rgba(207, 180, 138, .05); }
.hs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  box-sizing: border-box;
  margin-top: 20px;
  padding: 0 20px 0 22px;
  border-radius: 3px;
  border: 1px solid var(--hs-gold-hi);
  background: var(--hs-gold);
  color: var(--hs-ink);
  font-family: var(--hs-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  box-shadow: 0 10px 30px rgba(212, 175, 55, .22), inset 0 1px 0 rgba(255, 246, 214, .55);
  transition: background-color .2s;
}
.hs-cta:hover { background: var(--hs-gold-hi); }
.hs-cta .icon { width: 20px; height: 20px; flex: 0 0 20px; }
.hero-scrollytelling .hs-cta:focus-visible { outline: 3px solid var(--hs-gold-hi); outline-offset: 4px; }
.hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1150px) {
  .hs-ui { width: calc(100% - 64px); }
  .hs-kms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hs-ui { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hs-truck-static { width: min(46%, 190px); }
  .hs-kms { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 600px) {
  .hs-ui { width: calc(100% - 40px); padding: 28px 0 40px; gap: 16px; }
  .hs-truck-static { width: min(44%, 170px); }
  .hs-tag { font-size: 11.5px; letter-spacing: .075em; line-height: 1.7; margin-bottom: 16px; }
  .hs-tag__line { flex-basis: 26px; margin-right: 12px; }
  .hs-tag__sep { display: none; }
  .hs-tag__b { flex-basis: 100%; }
  .hero-scrollytelling .hs-title { font-size: clamp(32px, 10vw, 39px); line-height: 1.1; }
  .hs-sub { margin-top: 16px; font-size: 15px; }
  .hs-card, .hs-card--cta { padding: 16px; border-radius: 18px; }
  .hero-scrollytelling .hs-card__title { font-size: 23px; margin-top: 10px; }
  .hero-scrollytelling .hs-card--cta .hs-card__title { font-size: 24px; }
  .hs-chapter__label { font-size: 17px; margin-top: 9px; }
  .hero-scrollytelling .hs-card__text { font-size: 14px; line-height: 1.45; margin-top: 8px; }
  .hero-scrollytelling .hs-tags { display: none; }
  .hs-cta { width: 100%; margin-top: 16px; font-size: 15px; }
}

/* ------------------------------------------------------------------ palco dirigido pela rolagem */
html.hs-on { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

:is(.hs-pre, .hs-on) .hero-scrollytelling { height: 500vh; height: 500svh; overflow: visible; background: var(--hs-bg-0); --u: 1; }
/* v2.3: o palco ocupa a janela inteira; o cabeçalho transparente fica por cima (o mapa da Fase 2 continua
   enquadrado na área abaixo dele, pelo JavaScript) */
:is(.hs-pre, .hs-on) .hs-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--hs-bg-0);
}
:is(.hs-pre, .hs-on) .hs-scene { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
:is(.hs-pre, .hs-on) .hs-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
:is(.hs-pre, .hs-on) .hs-truck-static { display: none; }
:is(.hs-pre, .hs-on) .hs-headline {
  position: absolute;
  z-index: 1;
  left: max(24px, 4vw);
  top: 27svh;
  width: calc(568px * var(--u));
  pointer-events: auto;
}
/* como na referência: só título e subtítulo na abertura animada (a etiqueta continua no HTML e na versão estática;
   a identidade regional passa para a placa BR-135 e para o KM 01) */
:is(.hs-pre, .hs-on).hs-m .hs-tag { display: none; }
:is(.hs-pre, .hs-on):not(.hs-m) .hs-tag { margin-bottom: calc(18px * var(--u)); font-size: calc(11px * var(--u)); }
:is(.hs-pre, .hs-on) .hero-scrollytelling .hs-title { font-size: calc(68px * var(--u)); }
:is(.hs-pre, .hs-on) .hs-sub { max-width: calc(470px * var(--u)); margin-top: calc(26px * var(--u)); font-size: calc(19px * var(--u)); text-shadow: 0 1px 16px rgba(0, 0, 0, .6); }
:is(.hs-pre, .hs-on) .hs-kms { display: block; margin: 0; }
:is(.hs-pre, .hs-on) .hs-km { position: absolute; z-index: 3; display: block; }
:is(.hs-pre, .hs-on) .hs-card {
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 0;
  padding: calc(22px * var(--u)) calc(24px * var(--u)) calc(24px * var(--u));
  border-radius: calc(16px * var(--u));
}
:is(.hs-pre, .hs-on) .hs-card--cta { padding: calc(24px * var(--u)) calc(26px * var(--u)) calc(26px * var(--u)); }
:is(.hs-pre, .hs-on) .hs-card::before { left: calc(22px * var(--u)); right: calc(22px * var(--u)); }
:is(.hs-pre, .hs-on) .hero-scrollytelling .hs-badge,
:is(.hs-pre, .hs-on) .hs-chapter__km { font-size: calc(11.5px * var(--u)); }
:is(.hs-pre, .hs-on) .hero-scrollytelling .hs-card__title { margin-top: calc(12px * var(--u)); font-size: calc(26px * var(--u)); }
:is(.hs-pre, .hs-on) .hero-scrollytelling .hs-card--cta .hs-card__title { font-size: calc(28px * var(--u)); }
:is(.hs-pre, .hs-on) .hs-chapter__label { margin-top: calc(11px * var(--u)); font-size: calc(19px * var(--u)); }
:is(.hs-pre, .hs-on) .hero-scrollytelling .hs-card__text { margin-top: calc(10px * var(--u)); font-size: max(13.5px, calc(15.5px * var(--u))); }
:is(.hs-pre, .hs-on) .hs-chapter + .hs-card__text { margin-top: calc(12px * var(--u)); }
:is(.hs-pre, .hs-on) .hero-scrollytelling .hs-tags { margin-top: calc(16px * var(--u)); padding-top: calc(14px * var(--u)); font-size: calc(9.5px * var(--u)); }
:is(.hs-pre, .hs-on) .hs-cta { min-height: calc(54px * var(--u)); margin-top: calc(20px * var(--u)); font-size: max(14px, calc(15.5px * var(--u))); }
:is(.hs-pre, .hs-on) .hs-hint {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: calc(28px * var(--u));
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: calc(12px * var(--u)) calc(26px * var(--u));
  border-radius: 999px;
  border: 1.5px solid rgba(243, 229, 171, .75);
  background: radial-gradient(120% 160% at 50% 0%, rgba(212, 175, 55, .28) 0%, rgba(14, 16, 20, .95) 54%, rgba(6, 7, 10, .98) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .9), 0 0 28px rgba(212, 175, 55, .48), 0 0 54px rgba(0, 229, 255, .18), inset 0 1px 0 rgba(255, 246, 214, .45);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 13px;
  pointer-events: none;
}
:is(.hs-pre, .hs-on) .hs-hint::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22%;
  right: 22%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fffdf4, var(--hs-gold-hi), transparent);
  box-shadow: 0 0 12px rgba(255, 246, 214, .85);
}
.hs-hint svg {
  flex: 0 0 auto;
  fill: none;
  stroke: #fff6d6;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, .85));
}
.hs-hint__swipe { display: none; }
.hero-scrollytelling .hs-hint p {
  margin: 0;
  font-family: var(--hs-mono);
  font-size: calc(13px * var(--u));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #fffdf4;
  text-shadow: 0 0 14px rgba(212, 175, 55, .75), 0 2px 8px rgba(0, 0, 0, .95);
}
:is(.hs-pre, .hs-on) .hero-scrollytelling .hs-phrase {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 40px;
  opacity: 0;
  text-align: center;
  font-family: var(--hs-display);
  font-weight: 400;
  font-size: calc(68px * var(--u));
  line-height: 1.1;
  letter-spacing: -.045em;
  color: var(--hs-ink);
  pointer-events: none;
}
.hs-phrase span { display: block; }
.hs-phrase span:nth-child(3) { color: #6b4f1d; }
.hs-flood { position: absolute; left: 0; top: 0; z-index: 3; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.hs-guides { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hs-veil {
  display: none;
  position: absolute;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 70%, rgba(0, 0, 0, .65) 100%);
}

/* cena (coordenadas do storyboard escaladas por --hs-k; nada aqui recebe foco) */
.hs-scene svg { display: block; max-width: none; overflow: visible; fill: initial; stroke: initial; stroke-width: initial; stroke-linecap: initial; stroke-linejoin: initial; }
.hs-bg { position: absolute; inset: 0; background: var(--hs-bg-0); }
.hs-bg--1 { background: var(--hs-bg-1); opacity: 0; }
.hs-bg--exit { background: var(--hs-exit); opacity: 0; }
.hs-front, .hs-map { position: absolute; inset: 0; }
.hs-map { opacity: 0; visibility: hidden; }
.hs-cv { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; }
.hs-cv--light { mix-blend-mode: screen; }
.hs-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 776px;
  transform-origin: 0 0;
  transform: translate(var(--hs-ox, 0px), var(--hs-oy, 0px)) scale(var(--hs-k, 1));
}
.hs-view-m .hs-frame { width: 390px; height: 756px; }
.hs-frame--screen { mix-blend-mode: screen; }
.hs-anchor { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.hs-truck, .hs-refl, .hs-sprite, .hs-piece, .hs-layer, .hs-amb { position: absolute; }
.hs-sprite svg, .hs-layer svg { width: 100%; height: 100%; }
.hs-refl {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0));
}
.hs-scene .hs-photo { position: absolute; left: 0; top: 0; display: block; max-width: none; }
.hs-photo--body { filter: contrast(1.06) saturate(.86); }
.hs-shade { position: absolute; inset: 0; will-change: opacity; }
.hs-photo--shade { filter: brightness(0); }
.hs-photo--dark { filter: brightness(.069) contrast(1.06) saturate(.86); }
.hs-photo--darkn {
  filter: brightness(.038) contrast(1.06) saturate(.8);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 50%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 50%);
}
.hs-photo--night {
  filter: brightness(.55) contrast(1.06) saturate(.8);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 50%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 50%);
}
.hs-photo--refl { transform: scaleY(-1); transform-origin: 50% 50%; }
.hs-piece { overflow: hidden; }
.hs-piece .hs-photo { filter: brightness(.86) contrast(1.06) saturate(.9); }
.hs-move { will-change: transform; }
.hs-vignette { position: absolute; inset: 0; pointer-events: none; }
.hs-map-vig { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 75% at 50% 48%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%); }

/* camadas próprias para o que muda a cada quadro (só transform, opacity e filter no compositor) */
:is(.hs-pre, .hs-on) :is(.hs-headline, .hs-hint, .hs-card, .hs-veil),
:is(.hs-pre, .hs-on) .hero-scrollytelling .hs-phrase { will-change: transform, opacity; }
.hs-flood, .hs-bg--1, .hs-bg--exit, .hs-front, .hs-layer, .hs-amb, .hs-map-vig, .hs-guide { will-change: opacity; }
.hs-map { will-change: opacity, transform; }
.hs-base svg { position: absolute; left: 0; top: 0; }
.hs-fade { will-change: opacity; }
.hs-own { will-change: transform; }
.hs-odo, .hs-pill { will-change: transform; }
.hs-guide { position: absolute; overflow: visible; fill: initial; stroke: initial; stroke-width: initial; }

/* odômetro: trilho (desktop) e pílula (celular) */
.hs-odo { position: absolute; z-index: 5; pointer-events: none; }
.hs-odo__svg { position: absolute; left: 0; top: 0; overflow: visible; fill: initial; stroke: initial; stroke-width: 1; font-family: var(--hs-mono); font-size: 10px; letter-spacing: 1px; }
.hs-odo__dark { opacity: 0; will-change: opacity; }
.hs-odo__trail { position: absolute; width: 6px; height: 1px; transform-origin: 0 0; transform: scaleY(.001); will-change: transform; }
.hs-odo__trail i { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(0, 229, 255, 0), rgba(0, 229, 255, .45) 55%, #00e5ff); }
.hs-odo__trail i:first-child { left: 0; width: 6px; opacity: .28; }
.hs-odo__trail i:last-child { left: 2px; width: 2px; }
.hs-odo__knob { position: absolute; width: 36px; height: 36px; will-change: transform; }
.hs-odo__knob svg { display: block; overflow: visible; fill: initial; stroke: initial; }
.hs-odo-on { fill: var(--hs-gold-hi); }
.hs-odo.hs-is-lit .hs-odo-on { fill: #3b3020; }
.hs-odo__read {
  position: absolute;
  top: 20px;
  width: 70px;
  height: 46px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--hs-glass-line);
  background: rgba(17, 17, 17, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font-family: var(--hs-mono);
  line-height: 1;
}
.hs-odo__read span { padding-left: .24em; font-size: 10px; letter-spacing: .24em; color: var(--hs-gold); }
.hs-odo__read b { font-size: 17px; font-weight: 700; letter-spacing: .06em; color: var(--hs-text); }
.hs-pill {
  position: absolute;
  z-index: 5;
  height: 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 11px;
  border-radius: 999px;
  border: 1px solid var(--hs-glass-line);
  background: rgba(17, 17, 17, .9);
  font-family: var(--hs-mono);
  white-space: nowrap;
  pointer-events: none;
}
.hs-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hs-light); box-shadow: 0 0 8px 2px rgba(212, 175, 55, .6); }
.hs-pill__txt { font-size: 12px; line-height: 1; letter-spacing: .08em; }
.hs-pill__km { color: var(--hs-gold); }
.hs-pill__txt b { color: var(--hs-text); font-weight: 700; }
.hs-pill__of { color: var(--hs-muted); font-size: 11px; }
.hs-pill__bar { position: relative; display: block; width: 38px; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(207, 180, 138, .22); }
.hs-pill__fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, rgba(0, 229, 255, .35), var(--hs-cyan) 70%, var(--hs-light)); }

/* WhatsApp do site sob a luz total: contorno escuro para não sumir no creme */
.whatsapp-float.hs-lit { border-color: rgba(23, 23, 21, .45); box-shadow: 0 6px 18px rgba(60, 45, 10, .35); }

/* ------------------------------------------------------------------ celular (cena 390×756) */
:is(.hs-pre, .hs-on).hs-m .hs-headline { left: 20px; top: calc(var(--header-h) + 14px); width: calc(100% - 40px); }
:is(.hs-pre, .hs-on).hs-m .hero-scrollytelling .hs-title { font-size: calc(39px * var(--u)); line-height: 1.1; }
:is(.hs-pre, .hs-on).hs-m .hs-sub { max-width: none; margin-top: calc(16px * var(--u)); font-size: calc(15px * var(--u)); }
:is(.hs-pre, .hs-on).hs-m .hs-card,
:is(.hs-pre, .hs-on).hs-m .hs-card--cta { padding: calc(16px * var(--u)); border-radius: calc(18px * var(--u)); }
:is(.hs-pre, .hs-on).hs-m .hs-card::before { left: calc(24px * var(--u)); right: calc(24px * var(--u)); }
:is(.hs-pre, .hs-on).hs-m .hs-km--1 .hs-card,
:is(.hs-pre, .hs-on).hs-m .hs-km--1b .hs-card,
:is(.hs-pre, .hs-on).hs-m .hs-km--2 .hs-card { transform-origin: 50% 100%; }
:is(.hs-pre, .hs-on).hs-m .hs-km--3 .hs-card,
:is(.hs-pre, .hs-on).hs-m .hs-km--4 .hs-card { transform-origin: 50% 0; }
:is(.hs-pre, .hs-on).hs-m .hero-scrollytelling .hs-card__title { margin-top: calc(10px * var(--u)); font-size: calc(23px * var(--u)); }
:is(.hs-pre, .hs-on).hs-m .hero-scrollytelling .hs-card--cta .hs-card__title { font-size: calc(24px * var(--u)); }
:is(.hs-pre, .hs-on).hs-m .hs-chapter__label { margin-top: calc(9px * var(--u)); font-size: calc(17px * var(--u)); }
:is(.hs-pre, .hs-on).hs-m .hero-scrollytelling .hs-card__text { margin-top: calc(8px * var(--u)); font-size: max(13px, calc(14px * var(--u))); line-height: 1.45; }
:is(.hs-pre, .hs-on).hs-m .hero-scrollytelling .hs-tags { display: none; }
:is(.hs-pre, .hs-on).hs-m .hs-cta { width: 100%; margin-top: calc(16px * var(--u)); font-size: max(14px, calc(15px * var(--u))); }
:is(.hs-pre, .hs-on).hs-m .hs-hint { bottom: calc(72px * var(--u)); padding: calc(10px * var(--u)) calc(20px * var(--u)); gap: 10px; }
:is(.hs-pre, .hs-on).hs-m .hs-hint__mouse { display: none; }
:is(.hs-pre, .hs-on).hs-m .hs-hint__swipe { display: block; }
:is(.hs-pre, .hs-on).hs-m .hero-scrollytelling .hs-hint p { font-size: calc(11.5px * var(--u)); letter-spacing: .14em; }
:is(.hs-pre, .hs-on).hs-m .hero-scrollytelling .hs-phrase { padding: 0 20px; font-size: calc(36px * var(--u)); line-height: 1.16; }
:is(.hs-pre, .hs-on).hs-m .hs-veil { display: block; }

/* ------------------------------------------------------------------ v2.3 · Fase 1 realista */
/* cards KM 01 / KM 01.5 em vidro fosco (só no desktop; no celular o vidro continua opaco, mais leve) */
:is(.hs-pre, .hs-on):not(.hs-m) :is(.hs-km--1, .hs-km--1b) .hs-card {
  background: linear-gradient(150deg, rgba(243, 229, 171, .07) 0%, rgba(243, 229, 171, 0) 42%, rgba(0, 229, 255, .025) 100%), rgba(12, 13, 14, .52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(229, 204, 170, .26);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 246, 214, .08);
}
/* adesivo translúcido no quebra-sol interno do para-brisa (desativado a pedido da cliente) */
.hs-sticker {
  display: none !important;
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--hs-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: #F3E5AB;
  opacity: .56;
  text-shadow: 0 0 .08em rgba(243, 229, 171, .42);
  pointer-events: none;
}
/* névoa à deriva atrás do caminhão: só o transform muda (compositor) */
.hs-fog {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: .5;
  pointer-events: none;
  will-change: transform;
}
.hs-rain { pointer-events: none; }
/* modo leve automático (aparelho sem fôlego): vidro sem desfoque, mais opaco */
.hs-lite .hero-scrollytelling :is(.hs-km--1, .hs-km--1b) .hs-card { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(14, 14, 13, .86); }

/* ------------------------------------------------------------------ v2.6 · Seletor Header (ELÉTRICO | MANUAL) e Botão START / ENGINE */
.hs-mode {
  position: fixed;
  z-index: 102;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .38);
  background: linear-gradient(180deg, rgba(16, 18, 22, .94) 0%, rgba(7, 8, 10, .98) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .72), 0 0 22px rgba(0, 229, 255, .1), inset 0 1px 0 rgba(255, 246, 214, .14);
  pointer-events: auto;
  will-change: opacity, transform;
}
.hs-mode__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(202, 200, 191, .68);
  font-family: var(--hs-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color .25s, background-color .25s, border-color .25s, box-shadow .25s;
}
.hs-mode__btn:hover { color: var(--hs-text); }
.hs-mode__btn:focus-visible { outline: 2px solid var(--hs-gold-hi); outline-offset: 2px; }
.hs-mode__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, rgba(255, 255, 255, .4), rgba(140, 140, 140, .2) 60%, rgba(0, 0, 0, .5) 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background .25s, box-shadow .25s, border-color .25s, transform .25s;
}
.hs-mode__btn.hs-is-on {
  border-color: rgba(212, 175, 55, .48);
  background: linear-gradient(135deg, rgba(212, 175, 55, .2) 0%, rgba(0, 229, 255, .14) 100%);
  color: #fffdf4;
  box-shadow: 0 0 18px rgba(0, 229, 255, .18), inset 0 1px 0 rgba(255, 246, 214, .22);
}
.hs-mode__btn--tron.hs-is-on .hs-mode__dot {
  background: radial-gradient(circle at 42% 38%, #fffdf4 0%, #f3e5ab 42%, #d4af37 78%, #00e5ff 100%);
  border-color: #fff6d6;
  box-shadow: 0 0 12px 3px rgba(0, 229, 255, .65), 0 0 22px 5px rgba(212, 175, 55, .45);
  transform: scale(1.08);
}
.hs-mode__btn--rain.hs-is-on .hs-mode__dot {
  background: radial-gradient(circle at 42% 38%, #fffdf4 0%, #f3e5ab 50%, #d4af37 100%);
  border-color: #fff6d6;
  box-shadow: 0 0 12px 3px rgba(212, 175, 55, .75);
  transform: scale(1.08);
}

:is(.hs-pre, .hs-on).hs-m .hs-mode { padding: 3px 4px; gap: 2px; }
:is(.hs-pre, .hs-on).hs-m .hs-mode__btn { height: 26px; padding: 0 10px; font-size: 9.5px; letter-spacing: .09em; gap: 6px; }
:is(.hs-pre, .hs-on).hs-m .hs-mode__dot { width: 11px; height: 11px; }

/* sem a abertura animada (movimento reduzido ou sem JavaScript), a hero estática começa abaixo do cabeçalho fixo */
html:not(.hs-pre):not(.hs-on) .hero-scrollytelling { padding-top: var(--header-h); }

/* ------------------------------------------------------------------ v2.3 · cabeçalho cinema
   Fixo, sem borda nem cor chapada: sobre a abertura é só o degradê de proteção de leitura (preto 88% → 0) e os
   cliques atravessam o vazio. Depois da abertura (hs-hdr-solid, posto pelo hero-scrollytelling.js) ganha fundo
   sólido para continuar legível nas seções claras. Sob a luz total (hs-hdr-lit) o degradê some e o texto escurece. */
:root { --header-h: 88px; }
html { scroll-padding-top: calc(var(--header-h) + 18px); }
body .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-h);
  min-height: 0;
  box-sizing: border-box;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  border-bottom: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
}
body .header.is-scrolled { box-shadow: none; }
body .header::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  height: auto;
  z-index: -2;
  background: linear-gradient(180deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, 0) 100%);
  transition: opacity .35s;
  pointer-events: none;
}
body .header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 16, 15, .94);
  box-shadow: 0 1px 0 rgba(207, 180, 138, .16), 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
body .header.hs-hdr-solid::before { opacity: 1; }
body .header.hs-hdr-lit::after { opacity: .12; }
body .header :is(.brand, .menu-toggle, .nav > a) { pointer-events: auto; }
body .header .header__inner {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}
body .header .brand { position: relative; z-index: 1; gap: 12px; }
/* emblema com transparência real (derivado do JPEG da marca): só os traços dourados sobre o breu */
body .header .brand img { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; }
body .header .brand__type > span { font-size: 26px; line-height: 1; color: #f4f1ea; letter-spacing: -.02em; transition: color .3s; }
/* o anel do emblema já diz "Soluções Contábeis e Empresariais" */
body .header .brand__type small { display: none; }
body .header.hs-hdr-lit .brand__type > span { color: #171715; }
@media (min-width: 1021px) {
  /* links no centro geométrico da tela; CTA à direita */
  body .header .nav {
    position: absolute;
    inset: 0;
    padding: 0 4vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 13.5px;
    pointer-events: none;
  }
  body .header .nav > a {
    position: relative;
    padding: 10px 0;
    color: rgba(255, 255, 255, .78);
    letter-spacing: .01em;
    line-height: 1.2;
    transition: color .25s;
  }
  body .header .nav > a:not(.nav__contact)::after {
    content: "\2197";
    position: absolute;
    left: 100%;
    top: 50%;
    margin-left: 5px;
    font-size: .86em;
    opacity: 0;
    transform: translate(-3px, -46%);
    transition: opacity .25s, transform .25s;
  }
  body .header .nav > a:hover,
  body .header .nav > a:focus-visible { color: #D4AF37; }
  body .header .nav > a:not(.nav__contact):hover::after,
  body .header .nav > a:not(.nav__contact):focus-visible::after { opacity: 1; transform: translate(0, -46%); }
  body .header .nav .nav__contact {
    position: absolute;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 6px;
    background: transparent;
    color: #F3E5AB;
    font-size: 13.5px;
    transition: border-color .25s, box-shadow .25s, background-color .25s, color .25s;
  }
  body .header .nav .nav__contact:hover,
  body .header .nav .nav__contact:focus-visible {
    border-color: rgba(212, 175, 55, .9);
    background: rgba(212, 175, 55, .07);
    color: #fff3cf;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, .15), 0 0 24px rgba(212, 175, 55, .3);
  }
  body .header .nav__contact .icon { width: 14px; height: 14px; flex: 0 0 14px; }
  body .header.hs-hdr-lit .nav > a { color: rgba(23, 23, 21, .82); }
  body .header.hs-hdr-lit .nav .nav__contact { color: #3b3020; border-color: rgba(59, 48, 32, .5); }
}
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  body .header { padding: 0 20px; }
  body .header .brand img { width: 46px; height: 46px; flex-basis: 46px; }
  body .header .brand__type > span { font-size: 22px; }
  body .header .menu-toggle { width: 44px; height: 44px; border-color: rgba(212, 175, 55, .45); border-radius: 6px; }
  body .header .nav.is-open { pointer-events: auto; }
}

/* Fase 2 em 3D (Modo Elétrico): palco WebGL do módulo hero-fase2-3d.js; opacidade e visibilidade vêm do motor */
.hs-f3 { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; background: #000; overflow: hidden; }
.hs-f3__cv { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; }
.hs-f3__vig { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 72% 70% at 50% 52%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .72) 100%); }
