/* Montserrat (latin), hospedada aqui para não depender do Google Fonts; variável: cobre os pesos 300 a 800 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   HT Comunicação — site 2026
   Tokens: Elementos/design.md
   ========================================================= */

:root {
  --ht-red: #c13229;
  --ht-red-deep: #bd2f26;
  --ht-red-hover: #a92b24;
  --ht-black: #181818;
  --ht-graphite: #252525;
  --ht-card-dark: #212121;
  --ht-charcoal: #343434;
  --ht-gray: #717171;
  --ht-gray-text: #5f5f5f;
  --ht-light: #f2f2f2;
  --ht-light-2: #ededed;
  --ht-white: #ffffff;

  --radius-card: 24px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(20px, 4.4vw, 64px);

  --tex-light: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.028) 0 2px, transparent 2px 7px);
  --tex-dark: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 7px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  color: var(--ht-charcoal);
  background-color: var(--ht-light);
  background-image: var(--tex-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(193, 50, 41, 0.4);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.btn {
  --chev: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font: 600 16px/1 "Montserrat", Arial, sans-serif;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--red { background: var(--ht-red); color: var(--ht-white); }
.btn--red:hover { background: var(--ht-red-hover); }
.btn--dark { background: var(--ht-charcoal); color: var(--ht-white); }
.btn--dark:hover { background: var(--ht-black); }

.btn__chev {
  width: var(--chev);
  height: calc(var(--chev) * 1.18);
  background: currentColor;
  -webkit-mask: url("../img/chevron-vermelho.webp") center / contain no-repeat;
  mask: url("../img/chevron-vermelho.webp") center / contain no-repeat;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .btn__chev { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}
/* depois do hero: some ao rolar para baixo, volta ao rolar para cima */
.site-header.is-hidden { transform: translateY(-120%); }
.site-header > * { pointer-events: auto; }
.site-header__logo { position: relative; display: block; }
.site-header__logo img { width: clamp(120px, 11vw, 168px); transition: opacity 0.35s var(--ease-out); }
.site-header__logo .logo--white {
  position: absolute; inset: 0; opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
}
/* quando o alvo passa atrás do logo, troca para a versão branca */
.site-header.on-dark .logo--red { opacity: 0; }
.site-header.on-dark .logo--white { opacity: 1; }

/* ---------- Hero ---------- */

.hero { position: relative; }

.hero__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* vinheta suave para dar profundidade ao fundo texturizado */
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero__copy {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: min(92vw, 12.5em);
  font-size: clamp(1.85rem, 5.4vw, 6rem);
  transform: translate(-50%, -50%);
  text-align: center;
  will-change: transform;
}

.hero__title {
  position: relative;
  margin: 0;
  font-size: 1em;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ht-charcoal);
}

.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line__in { display: inline-block; will-change: transform; }

.hl { font-weight: 800; letter-spacing: -0.03em; position: relative; }
.hl--red { color: var(--ht-red); }
/* sublinhado como fundo do texto: acompanha a quebra de linha no celular */
.hl--target {
  color: var(--ht-charcoal);
  background: linear-gradient(var(--ht-red), var(--ht-red)) left 0 bottom 0.04em / 0% 0.09em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: color 0.5s var(--ease-out), background-size 0.7s var(--ease-out) 0.1s;
}
.is-hit .hl--target { color: var(--ht-red); background-size: 100% 0.09em; }


/* Fica fora do fluxo para o título ficar centralizado; a fonte compensa a escala do bloco (--after-scale vem do JS) */
.hero__after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  max-width: var(--after-max, 90vw);
  text-align: center;
  padding-top: 1.6em;
  font-size: calc(1rem * var(--after-scale, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3em;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 1em);
  transition: opacity 0.6s var(--ease-out) 0.35s, transform 0.6s var(--ease-out) 0.35s, visibility 0s linear 0.95s;
}
/* depois do impacto o texto passa para a frente do alvo: o botão nunca fica escondido */
.is-hit .hero__copy { z-index: 3; }
.is-hit .hero__after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0.35s, 0.35s, 0s;
}
.hero__after .btn { font-size: 1em; min-height: 3.25em; padding: 0 1.75em; --chev: 0.65em; }

.hero__tagline {
  margin: 0;
  font-size: 1em;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ht-gray-text);
}
.hero__tagline strong { font-weight: 600; color: var(--ht-charcoal); }

.hero__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 600 11px/1 "Montserrat", Arial, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ht-gray-text);
  transition: opacity 0.4s var(--ease-out);
}
.hero__hint.is-gone { opacity: 0 !important; }
.hero__hint-line {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(52, 52, 52, 0.18);
}
.hero__hint-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ht-red);
  animation: hint 1.8s var(--ease-out) infinite;
}
@keyframes hint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* Sem WebGL: composição estática */
.no-webgl .hero__canvas { display: none; }

/* popup do WhatsApp: nome, telefone e empresa antes da conversa */
.lead-modal {
  width: min(92vw, 440px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--ht-white);
  color: var(--ht-charcoal);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}
.lead-modal::backdrop { background: rgba(24, 24, 24, 0.6); }
.lead-modal__form {
  display: grid;
  gap: 16px;
  padding: clamp(28px, 5vw, 40px);
}
.lead-modal__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ht-red);
}
.lead-modal__title {
  margin: 0 0 4px;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead-modal__field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.lead-modal__field input {
  padding: 12px 14px;
  border: 1px solid rgba(52, 52, 52, 0.2);
  border-radius: 12px;
  background: var(--ht-light);
  color: inherit;
  font: 400 16px/1.2 "Montserrat", Arial, sans-serif;
}
.lead-modal__field input:focus { outline: 2px solid var(--ht-red); outline-offset: 1px; }
.lead-modal__field input[aria-invalid="true"] { border-color: var(--ht-red); }
.lead-modal__error { font-size: 13px; font-weight: 500; color: var(--ht-red); }
.lead-modal__error:empty { display: none; }
.lead-modal__submit { justify-content: center; width: 100%; margin-top: 8px; border: 0; cursor: pointer; }
.lead-modal__submit:disabled { opacity: 0.6; cursor: progress; }
.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ht-light);
  color: var(--ht-charcoal);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* celular: ponteiro clica em "escolhidas" e um círculo vermelho toma a tela (setupMobileHero em main.js) */
.hero__cursor, .hero__burst { display: none; }

@media (max-width: 767px) {
  .hero__hint, .hero__after { display: none; }
  .hero__cursor {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 6;
    width: 36px;
    height: auto;
    pointer-events: none;
    transform-origin: 0 0;
    /* sombra projetada: reforça o volume do ponteiro */
    filter: drop-shadow(3px 6px 6px rgba(0, 0, 0, 0.35));
  }
  .hero__burst {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 0 var(--gutter);
    background-color: var(--ht-red);
    color: var(--ht-white);
    text-align: center;
    clip-path: circle(0px at 50% 50%);
  }
  .hero__burst-title {
    max-width: 14em;
    margin: 0 0 1.4em;
    font-size: clamp(1.15rem, 5.4vw, 1.6rem);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }
  /* "Marketing no lugar certo." em destaque, numa linha própria */
  .hero__burst-title strong {
    display: block;
    margin-bottom: 0.35em;
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }
  .hero__cta { background: var(--ht-white); color: var(--ht-red); }
}
}

/* ---------- Quem confia ---------- */

.clients { position: relative; }

.clients__stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: 110px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
}

.clients__title {
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ht-red);
}
.clients__title .line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.clients__title .line__in { display: inline-block; }
.clients__title strong { font-weight: 800; letter-spacing: -0.04em; }

.clients__lead {
  max-width: 22em;
  margin: 1.4em 0 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ht-gray-text);
}

.clients__count {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2.2em 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ht-gray-text);
  font-variant-numeric: tabular-nums;
}
.clients__count-num { font-weight: 800; color: var(--ht-charcoal); }
.clients__count-bar {
  position: relative;
  width: 96px;
  height: 2px;
  margin-left: 14px;
  background: rgba(52, 52, 52, 0.14);
  overflow: hidden;
}
.clients__count-bar > i {
  position: absolute;
  inset: 0;
  background: var(--ht-red);
  transform: scaleX(0);
  transform-origin: left center;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.client {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-right: 1px solid rgba(52, 52, 52, 0.1);
  border-bottom: 1px solid rgba(52, 52, 52, 0.1);
}
.client:nth-child(3n) { border-right: 0; }
.client:nth-last-child(-n + 3) { border-bottom: 0; }

.client img {
  width: calc(70% * var(--s, 1));
  height: calc(54% * var(--s, 1));
  object-fit: contain;
  will-change: filter, opacity, transform;
}

/* celular / retrato: título no topo, logos abaixo */
@media (max-width: 767px), (max-aspect-ratio: 5/4) {
  .clients__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 28px;
    padding-top: 96px;
    padding-bottom: 40px;
  }
  .clients__title { font-size: clamp(2.6rem, 12vw, 6rem); }
  .clients__title .line { display: inline-block; }
  .clients__title .line + .line { margin-left: 0.22em; }
  .clients__lead { margin-top: 0.8em; }
  .clients__count { margin-top: 1.2em; }
  /* grade em 3 colunas ocupando a largura toda, com células quadradas e logos maiores */
  .clients__grid { align-self: center; justify-self: center; width: 100%; }
  .clients__grid .client { border: 0; }
  .client { aspect-ratio: 1 / 1; }
  .client img { width: calc(92% * var(--s, 1)); height: calc(72% * var(--s, 1)); }
}

/* ---------- O que fazemos ---------- */

.services {
  --tex-red: repeating-linear-gradient(135deg, rgba(150, 30, 24, 0.35) 0 2px, transparent 2px 7px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(110px, 12vw, 170px) var(--gutter) clamp(90px, 10vw, 150px);
  background-color: var(--ht-red);
  background-image: var(--tex-red);
  color: var(--ht-white);
}

/* arcos concêntricos de linha fina, como no slide */
.services__arcs {
  --size: clamp(1000px, 115vw, 1800px);
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(var(--size) * -0.5 + clamp(170px, 15vw, 260px));
  width: var(--size);
  height: var(--size);
  transform: translateX(-50%);
  fill: none;
  stroke: var(--ht-black);
  stroke-width: 1.4;
  opacity: 0.5;
}

.services__inner { max-width: 1240px; margin: 0 auto; }

.services__title {
  margin: 0;
  text-align: center;
  font-size: clamp(3rem, 7.2vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.services__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.services__title .line__in { display: inline-block; }
.services__title strong { font-weight: 800; letter-spacing: -0.04em; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
  align-items: stretch;
  margin-top: clamp(80px, 8vw, 120px);
}

.svc-wrap { perspective: 1400px; display: flex; }

.svc-card {
  --pad-x: clamp(28px, 3.4vw, 52px);
  position: relative;
  flex: 1;
  padding: 64px var(--pad-x) 36px;
  border-radius: 32px;
  transform-style: preserve-3d;
  box-shadow: 0 40px 80px -30px rgba(70, 8, 4, 0.55);
  will-change: transform;
}
.svc-card--light { background: var(--ht-white); color: var(--ht-charcoal); }
.svc-card--dark { background: var(--ht-charcoal); color: var(--ht-white); }

/* brilho que segue o mouse no hover */
.svc-card__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(193, 50, 41, 0.09), transparent 48%);
}
.svc-card--dark .svc-card__glare {
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.11), transparent 48%);
}
.svc-card.is-tilting .svc-card__glare { opacity: 1; }

/* pílula sobre a borda do card, com cor invertida (como no slide) */
.svc-card__pill {
  position: absolute;
  top: -27px;
  left: var(--pad-x);
  margin: 0;
  padding: 0 44px;
  height: 54px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: 0.01em;
  transform: translateZ(60px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
}
.svc-card--light .svc-card__pill { background: var(--ht-charcoal); color: var(--ht-white); }
.svc-card--dark .svc-card__pill { background: var(--ht-white); color: var(--ht-charcoal); }

.svc-card__num {
  position: absolute;
  top: 26px;
  right: var(--pad-x);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0.4;
  transform: translateZ(24px);
}

.svc-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateZ(36px);
  transform-style: preserve-3d;
}

.svc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(52, 52, 52, 0.1);
}
.svc-item:last-child { border-bottom: 0; }
.svc-card--dark .svc-item { border-bottom-color: rgba(255, 255, 255, 0.09); }

.svc-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f8e8e7;
  color: var(--ht-red);
}
.svc-card--dark .svc-item__icon { background: var(--ht-red); color: var(--ht-white); }
.svc-item__svg { width: 26px; height: 26px; }

.svc-item__label {
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 600;
  line-height: 1.3;
}

/* Gestão de mídias integradas: mesma estrutura, título grafite como no slide + subtítulo */
/* preto (e não grafite) sobre o vermelho: contraste 3,2:1, o mínimo para título grande */
.services--media .services__title { color: var(--ht-black); }
.services__lead {
  max-width: 40em;
  margin: 1.4em auto 0;
  text-align: center;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}
.services__lead strong { display: block; font-weight: 600; color: var(--ht-white); }

.svc-item--desc { align-items: flex-start; }
.svc-item--desc .svc-item__icon { margin-top: 2px; }
.svc-item__text { display: flex; flex-direction: column; gap: 4px; }
.svc-item__desc {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.45;
  color: var(--ht-gray-text);
}
.svc-card--dark .svc-item__desc { color: rgba(255, 255, 255, 0.68); }

@media (max-width: 860px) {
  .services__grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .svc-card { padding-top: 56px; }
  .svc-card__pill { height: 48px; top: -24px; padding: 0 32px; }
  .svc-item { gap: 16px; padding: 15px 0; }
  .svc-item__icon { width: 46px; height: 46px; border-radius: 12px; }
  .svc-item__svg { width: 23px; height: 23px; }
}

/* ---------- Como fazemos (timeline) ---------- */

/* Base (sem JS / movimento reduzido): lista vertical */
.process {
  position: relative;
  background-color: var(--ht-light);
  background-image: var(--tex-light);
}
.process__stage { position: relative; padding: clamp(100px, 10vw, 150px) var(--gutter); }
.process__track { max-width: 1240px; margin: 0 auto; }
.process__intro { margin-bottom: 64px; }

.process__title {
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ht-red);
}
.process__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.process__title .line__in { display: inline-block; }
.process__title strong { font-weight: 800; letter-spacing: -0.04em; }

.process__lead {
  max-width: 24em;
  margin: 1.3em 0 0;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ht-gray-text);
}
.process__lead strong { font-weight: 600; color: var(--ht-charcoal); }

.process__hint {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 2.4em 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ht-red);
  --chev: 9px;
}

.process__axis, .process__count, .step__stem, .step__dot { display: none; }

.process__steps {
  display: grid;
  gap: 44px;
  margin: 0;
  padding: 0 0 0 32px;
  list-style: none;
  border-left: 2px solid var(--ht-red);
}

.step__mask { display: block; overflow: hidden; }
.step__num {
  display: block;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ht-red);
}
.step__title {
  margin: 0.45em 0 0.45em;
  font-size: clamp(20px, 1.6vw, 27px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ht-charcoal);
}
.step__desc {
  max-width: 25em;
  margin: 0;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.5;
  color: var(--ht-gray-text);
}

/* Horizontal (JS ativo): trilha presa à tela que desliza para o lado */
.process.is-horizontal {
  --rail-h: min(74svh, 760px);
  --gap: clamp(250px, 16.5vw, 330px);   /* distância entre uma etapa e a seguinte */
  --body-w: calc(var(--gap) * 1.72);    /* largura do texto (etapas do mesmo lado ficam a 2 × gap) */
}
.is-horizontal .process__stage {
  height: 100vh;
  height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.is-horizontal .process__track {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: none;
  height: var(--rail-h);
  margin: 0;
  padding: 0 var(--gutter);
  will-change: transform;
}
.is-horizontal .process__intro {
  flex: none;
  width: clamp(300px, 30vw, 520px);
  margin: 0 7vw 0 0;
}
.is-horizontal .process__hint { display: flex; }

.is-horizontal .process__rail {
  position: relative;
  flex: none;
  height: 100%;
  /* espaço depois da última etapa: ela precisa chegar a ~38% da tela para o texto terminar de aparecer */
  width: calc(var(--gap) * 7 + max(var(--body-w) + 6vw, 66vw));
}

.is-horizontal .process__axis {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(52, 52, 52, 0.12);
}
.process__line {
  position: absolute;
  inset: 0;
  background: var(--ht-red);
  transform: scaleX(0);
  transform-origin: left center;
}
/* chevron da HT na ponta da linha: o "avante" do símbolo */
.process__head {
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 22px;
  margin: -11px 0 0 -4px;
  background: var(--ht-red);
  -webkit-mask: url("../img/chevron-vermelho.webp") center / contain no-repeat;
  mask: url("../img/chevron-vermelho.webp") center / contain no-repeat;
  will-change: transform;
}

.is-horizontal .process__steps {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
}
.is-horizontal .step {
  position: absolute;
  left: calc(var(--i) * var(--gap));
  width: var(--body-w);
  height: 50%;
}
.is-horizontal .step--top { top: 0; }
.is-horizontal .step--bottom { bottom: 0; }

.is-horizontal .step__stem {
  display: block;
  position: absolute;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--ht-red);
}
.is-horizontal .step--top .step__stem { top: 8px; bottom: 0; transform-origin: center bottom; }
.is-horizontal .step--bottom .step__stem { top: 0; bottom: 8px; transform-origin: center top; }

.is-horizontal .step__dot {
  display: block;
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ht-red);
}
.is-horizontal .step__dot--base { width: 18px; height: 18px; left: -9px; box-shadow: 0 0 0 6px rgba(193, 50, 41, 0.15); }
.is-horizontal .step--top .step__dot--base { bottom: -9px; }
.is-horizontal .step--top .step__dot--end { top: 1px; }
.is-horizontal .step--bottom .step__dot--base { top: -9px; }
.is-horizontal .step--bottom .step__dot--end { bottom: 1px; }

.is-horizontal .step__body { position: absolute; left: 34px; right: 0; }
.is-horizontal .step--top .step__body { top: -0.15em; }
.is-horizontal .step--bottom .step__body { bottom: 0; }

.is-horizontal .process__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  position: absolute;
  left: var(--gutter);
  bottom: clamp(22px, 4vh, 40px);
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ht-gray-text);
  font-variant-numeric: tabular-nums;
}
.process__count-label { text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px; }
.process__count-num { font-weight: 800; color: var(--ht-charcoal); }

@media (max-width: 767px) {
  .process.is-horizontal {
    --rail-h: 70svh;
    --gap: 46vw;
    --body-w: 78vw;
  }
  .is-horizontal .process__intro { width: 84vw; margin-right: 14vw; }
  .is-horizontal .step__body { left: 24px; }
}

/* ---------- Vantagens de trabalhar conosco ---------- */

/* Base (sem JS / movimento reduzido): grade de cards como no slide */
.adv {
  position: relative;
  background-color: var(--ht-black);
  background-image: var(--tex-dark);
  color: var(--ht-white);
}
.adv__stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(100px, 10vw, 150px) var(--gutter);
}

/* arcos vermelhos finos, como no slide */
.adv__arcs {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: clamp(1100px, 120vw, 2000px);
  height: clamp(1100px, 120vw, 2000px);
  transform: translate(-30%, -46%);
  fill: none;
  stroke: var(--ht-red);
  stroke-width: 1.2;
  opacity: 0.55;
}

.adv__intro { max-width: 1240px; margin: 0 auto 56px; }
.adv__title {
  margin: 0;
  font-size: clamp(2.2rem, 3.6vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ht-red);
}
.adv__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.adv__title .line__in { display: inline-block; }
.adv__title strong { font-weight: 800; letter-spacing: -0.04em; }
.adv__lead {
  max-width: 34em;
  margin: 1em 0 0;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}
.adv__lead strong { font-weight: 600; color: var(--ht-white); }

.adv__heads, .adv__rail { display: none; }

.adv__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.adv-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ht-red);
  border-radius: 24px;
  background: var(--ht-card-dark);
}
.adv-card__inner { display: flex; flex-direction: column; height: 100%; }
.adv-card__art { display: grid; place-items: center; padding: 36px 24px 12px; }
.adv-card__art img { width: 42%; height: auto; max-height: 150px; object-fit: contain; }
.adv-card__foot { padding: 12px 28px 32px; text-align: center; }
.adv-card__num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--ht-red);
}
.adv-card__text {
  margin: 0.7em 0 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.adv-card__text strong { font-weight: 700; color: var(--ht-white); }

@media (max-width: 860px) { .adv__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .adv__track { grid-template-columns: minmax(0, 1fr); } }

/* Tira de cards guiada pelo scroll (JS ativo). Medidas em variáveis vindas do JS. */
.adv.is-strip .adv__stage { height: 100vh; height: 100svh; padding: 0; }

.is-strip .adv__intro {
  position: absolute;
  top: clamp(88px, 13vh, 130px);
  left: var(--gutter);
  right: var(--gutter);
  max-width: none;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.is-strip .adv__lead { max-width: 30em; margin: 0.3em 0 0; text-align: right; }

/* texto do card em foco, logo acima da borda comum da tira */
.is-strip .adv__heads {
  display: block;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(100% - var(--strip-top) + clamp(18px, 3vh, 34px));
  height: 3.3em;
  font-size: clamp(24px, 2.6vw, 46px);
}
.adv-head {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.adv-head .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.adv-head .line__in { display: inline-block; transform: translateY(110%); }
.adv-head strong { font-weight: 800; color: var(--ht-red); letter-spacing: -0.035em; }

.is-strip .adv__track {
  position: absolute;
  top: var(--strip-top);
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  max-width: none;
  margin: 0;
  will-change: transform;
}
.is-strip .adv-card {
  flex: none;
  width: var(--card-w);
  height: var(--card-half);
  border-radius: 20px;
  cursor: pointer;
}
/* o conteúdo tem sempre a altura cheia; o card corta pela metade (só o ícone aparece) */
.is-strip .adv-card__inner { height: var(--card-full); }
.is-strip .adv-card__art { flex: 0 0 50%; padding: 0; }
.is-strip .adv-card__art img { width: 50%; max-height: 62%; }
.is-strip .adv-card__foot {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 calc(var(--card-w) * 0.1) calc(var(--card-w) * 0.1);
  text-align: left;
}
.is-strip .adv-card__num {
  font-size: calc(var(--card-w) * 0.26);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ht-white);
}
/* título dentro do card, no lugar do número: fica na parte de baixo da caixa */
.adv-card__title { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; color: var(--ht-white); }
.adv-card__title strong { font-weight: 800; letter-spacing: -0.03em; }
.is-strip .adv-card__title { font-size: calc(var(--card-w) * 0.1); }
.is-strip .adv__heads { display: none; }
/* cards fora de foco recuam um pouco */
.is-strip .adv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--dim, 0.35);
  pointer-events: none;
}

.is-strip .adv__rail {
  display: block;
  position: absolute;
  left: var(--gutter);
  bottom: clamp(18px, 3.5vh, 36px);
  width: clamp(160px, 20vw, 320px);
}
.adv__rail-nums {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.adv__rail-cur { color: var(--ht-white); font-weight: 800; }
.adv__rail-bar {
  position: relative;
  display: block;
  height: 1px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.22);
}
.adv__rail-bar > i {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: calc(100% / 6);
  background: var(--ht-red);
  will-change: transform;
}

/* desktop: texto em foco centralizado sobre o card ativo, para facilitar a leitura */
@media (min-width: 768px) {
  .adv-head { left: 50%; transform: translateX(-50%); width: max-content; max-width: 100%; text-align: center; }
}

@media (max-width: 767px) {
  .is-strip .adv__intro { flex-direction: column; gap: 0; }
  .is-strip .adv__lead { display: none; }
  .is-strip .adv__heads { font-size: clamp(24px, 7.4vw, 34px); }
}

/* ---------- Branding ---------- */

.brand {
  position: relative;
  background-color: var(--ht-graphite);
  background-image: var(--tex-dark);
  color: var(--ht-white);
}

.brand__stage {
  --arc: 111vw;   /* diâmetro da cúpula (mesma curva do slide) */
  --dip: 11.7vw;  /* quanto a cúpula desce na tela */
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.4vh, 56px);
  padding: calc(var(--dip) + clamp(28px, 4vh, 56px)) var(--gutter) clamp(48px, 7vh, 90px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* cúpula vermelha no topo com o título dentro, como no slide */
.brand__arc {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(var(--dip) - var(--arc));
  width: var(--arc);
  aspect-ratio: 1;
  margin-left: calc(var(--arc) / -2);
  border-radius: 50%;
  background-color: var(--ht-red);
  background-image: repeating-linear-gradient(135deg, rgba(150, 30, 24, 0.35) 0 2px, transparent 2px 7px);
  transform-origin: 50% 100%;
}

.brand__title {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--dip) * 0.5);
  transform: translateY(-58%);
  margin: 0;
  font-size: clamp(2.2rem, 4.3vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ht-white);
}
.brand__title .line { display: block; overflow: hidden; padding: 0.04em 0 0.1em; }
.brand__title .line__in { display: inline-block; }

.brand__lead {
  max-width: 50em;
  margin: 0;
  font-size: clamp(15px, 1.32vw, 21px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: balance;
}
.brand__lead strong { font-weight: 600; color: var(--ht-white); }

.brand__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 1240px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 20%;
  height: clamp(104px, 17vh, 170px);
}
/* segunda fileira com 3 logos: mesma largura de célula, centralizados */
.brand-logo img {
  width: auto;
  max-width: calc(78% * var(--s, 1));
  height: calc(clamp(48px, 9vh, 92px) * var(--s, 1));
  object-fit: contain;
  will-change: filter, opacity, transform;
}

/* marca com case: botão com "Ver case" que aparece no hover */
.brand-logo__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.brand-logo__btn::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.brand-logo__btn > img { transition: scale 0.5s var(--ease-out); }
.brand-logo__btn:hover::before,
.brand-logo__btn:focus-visible::before { opacity: 1; transform: none; }
.brand-logo__btn:hover > img,
.brand-logo__btn:focus-visible > img { scale: 1.06; }
.brand__hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.brand__hint i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ht-red);
  box-shadow: 0 0 0 0 rgba(193, 50, 41, 0.6);
  animation: brand-ping 2s var(--ease-out) infinite;
}
@keyframes brand-ping {
  0% { box-shadow: 0 0 0 0 rgba(193, 50, 41, 0.6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(193, 50, 41, 0); }
}

/* celular / retrato: cúpula mais funda, logos em 2 colunas */
@media (max-width: 767px), (max-aspect-ratio: 5/4) {
  .brand__stage { --arc: 190vw; --dip: clamp(128px, 36vw, 220px); gap: 16px; padding-bottom: 32px; }
  .brand__title { font-size: clamp(2.2rem, 10vw, 4rem); }
  .brand__lead { font-size: clamp(14px, 3.7vw, 17px); line-height: 1.55; }
  .brand__grid { row-gap: clamp(14px, 2.6vh, 28px); }
  .brand-logo { flex-basis: 50%; height: clamp(64px, 9vh, 104px); }
  .brand-logo img { height: calc(clamp(30px, 4.9vh, 52px) * var(--s, 1)); }
  .brand__hint { font-size: 11px; letter-spacing: 0.16em; }
}
@media (min-width: 768px) and (max-aspect-ratio: 5/4) {
  .brand-logo { flex-basis: 33.333%; }
}

/* ---------- Popup dos cases ---------- */

.case-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: var(--case-bg, var(--ht-light));
  color: var(--case-ink, var(--ht-charcoal));
}
.case-modal:not([open]) { display: none; }
.case-modal::backdrop { background: rgba(24, 24, 24, 0.55); }

.case-modal__close {
  position: fixed;
  z-index: 3;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 10px 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ht-charcoal);
  color: var(--ht-white);
  font: 600 14px/1 "Montserrat", Arial, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out);
}
.case-modal__close:hover { background: var(--ht-red); }
.case-modal__close i {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.45s var(--ease-out);
}
.case-modal__close i::before,
.case-modal__close i::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.case-modal__close i::after { transform: rotate(-45deg); }
.case-modal__close:hover i { transform: rotate(90deg); }

/* conteúdo do case */
.case {
  --case-pad: clamp(20px, 4.4vw, 64px);
  min-height: 100%;
  padding: clamp(96px, 12vh, 140px) var(--case-pad) clamp(56px, 8vw, 110px);
  background: var(--case-bg);
  color: var(--case-ink);
}
.case > * { max-width: 1240px; margin-left: auto; margin-right: auto; }

.case__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 5vw, 96px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.case__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--case-soft);
}
.case__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--case-accent); }
.case__title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.case__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.case__title .line__in { display: inline-block; }
.case__title-sub { font-weight: 300; color: var(--case-soft); letter-spacing: -0.03em; }
.case__tagline {
  display: inline-block;
  margin: 22px 0 0;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--case-alt);
  color: var(--case-alt-ink, #fff);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600;
  font-style: italic;
}
.case__text {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
}
.case__text + .case__text { margin-top: 1em; }
.case__meta {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--case-ink) 18%, transparent);
}
.case__meta > div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--case-ink) 18%, transparent);
  font-size: 14px;
  line-height: 1.45;
}
.case__meta dt { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; padding-top: 2px; color: var(--case-soft); }
.case__meta dd { margin: 0; }

.case__media { margin-top: 0; margin-bottom: clamp(28px, 4vw, 56px); }
.case__media img {
  width: 100%;
  border-radius: clamp(14px, 1.8vw, 26px);
  background: color-mix(in srgb, var(--case-ink) 8%, transparent);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}
.case__caption { margin-top: 14px; font-size: 13px; letter-spacing: 0.04em; color: var(--case-soft); }

.case__palette { margin-bottom: clamp(28px, 4vw, 56px); }
.case__label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--case-soft);
}
.case__palette ul {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.case__palette li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  aspect-ratio: 3 / 4;
  padding: clamp(10px, 1.2vw, 18px);
  border-radius: clamp(12px, 1.4vw, 20px);
  background: var(--c);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.case__palette li.is-dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.case__palette li.is-light { color: var(--case-light-ink, var(--case-ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--case-ink) 25%, transparent); }
.case__palette ul[style*="--cols:3"] li { aspect-ratio: 16 / 9; }
.case__palette code { font: 400 12px/1 "Montserrat", Arial, sans-serif; letter-spacing: 0.08em; opacity: 0.8; }

.case__end { display: flex; justify-content: center; padding-top: clamp(12px, 3vw, 40px); }
.btn--case {
  border: 0;
  cursor: pointer;
  background: var(--case-ink);
  color: var(--case-bg);
}
.btn--case:hover { background: var(--case-accent); color: #fff; }
.btn__chev--back { transform: scaleX(-1); }
.btn--case:hover .btn__chev--back { transform: scaleX(-1) translateX(4px); }

@media (max-width: 860px) {
  .case__intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .case__palette ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case__palette li { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .case-modal__close { min-height: 44px; padding-left: 18px; font-size: 13px; }
  .case__title { font-size: clamp(2.6rem, 15vw, 4rem); }
  .case__palette ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn--case { padding: 0 22px; font-size: 15px; }
}

/* ---------- Campanha (mesma base do Branding, em fundo claro) ---------- */

.brand--camp {
  background-color: var(--ht-light);
  background-image: var(--tex-light);
  color: var(--ht-charcoal);
}
.brand--camp .brand__lead { max-width: 54em; color: var(--ht-gray-text); font-weight: 400; }
.brand--camp .brand__lead strong { color: var(--ht-charcoal); }
.brand--camp .brand-logo__btn::before {
  border-color: rgba(52, 52, 52, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.25);
}
.brand--camp .brand__hint { color: var(--ht-gray); }

.brand--camp .brand__stage { gap: clamp(22px, 3.6vh, 44px); }
.brand--camp .brand-logo { flex-basis: 25%; height: clamp(84px, 12.5vh, 132px); }
.brand--camp .brand-logo img { height: calc(clamp(40px, 7vh, 72px) * var(--s, 1)); }

@media (max-width: 767px), (max-aspect-ratio: 5/4) {
  .brand--camp .brand-logo { flex-basis: 50%; height: clamp(60px, 8.6vh, 100px); }
  .brand--camp .brand-logo img { height: calc(clamp(28px, 4.4vh, 46px) * var(--s, 1)); }
}

/* ---------- Popup de campanha ---------- */

.case--camp .case__title { font-size: clamp(2.6rem, 5.4vw, 6rem); }
.case--camp .case__intro { align-items: start; }
.case--camp .case__tagline { font-style: normal; }
.case__block + .case__block { margin-top: clamp(22px, 2.6vw, 34px); }
.case__block .case__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--case-ink);
}
.case__block .case__label span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--case-accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.case__text strong { font-weight: 600; }

/* galeria: colunas no estilo "mural", cada peça na proporção original */
.case__gallery {
  columns: 3 260px;
  column-gap: clamp(12px, 1.4vw, 20px);
  margin-bottom: clamp(28px, 4vw, 56px);
}
.case__piece {
  position: relative;
  margin: 0 0 clamp(12px, 1.4vw, 20px);
  break-inside: avoid;
}
.case__piece img {
  width: 100%;
  border-radius: clamp(12px, 1.4vw, 20px);
  background: color-mix(in srgb, var(--case-ink) 8%, transparent);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.4);
}
.case__piece figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .case__gallery { columns: 2 140px; }
}

/* ---------- Case de campanha "story": vídeo + selos + fotos ---------- */

/* capa do vídeo funcionando como player */
.cs-video {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: clamp(40px, 6vw, 88px);
  padding: 0;
  border: 0;
  border-radius: clamp(16px, 2vw, 28px);
  overflow: hidden;
  background: #111;
  cursor: pointer;
  aspect-ratio: 21 / 9;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}
.cs-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out);
}
.cs-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55));
}
.cs-video__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(72px, 8vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease-out);
}
/* anel que pulsa em volta do botão */
.cs-video__play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: play-ring 2.2s var(--ease-out) infinite;
}
.cs-video__play i {
  width: 0;
  height: 0;
  margin-left: 12%;
  border-style: solid;
  border-width: calc(var(--p, 26px) * 0.6) 0 calc(var(--p, 26px) * 0.6) var(--p, 26px);
  border-color: transparent transparent transparent var(--case-accent);
  --p: clamp(18px, 2vw, 28px);
}
@keyframes play-ring {
  0% { transform: scale(0.9); opacity: 1; }
  80%, 100% { transform: scale(1.35); opacity: 0; }
}
.cs-video__meta {
  position: absolute;
  z-index: 1;
  left: clamp(16px, 2.4vw, 32px);
  bottom: clamp(14px, 2.2vw, 28px);
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.cs-video__meta strong { font-size: clamp(15px, 1.3vw, 19px); letter-spacing: 0; font-weight: 600; }
.cs-video:hover img { transform: scale(1.04); filter: brightness(0.9); }
.cs-video:hover .cs-video__play { transform: translate(-50%, -50%) scale(1.08); }

/* selos */
.cs-seals { margin-bottom: clamp(40px, 6vw, 88px); }
.cs-seals__row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);
}
.cs-seal {
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(24px, 4vw, 56px);
  border-radius: clamp(16px, 2vw, 28px);
  background: #fffaf3;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--case-ink) 8%, transparent);
  aspect-ratio: 1.15;
}
.cs-seal--wide { aspect-ratio: auto; background: var(--case-ink); }
.cs-seal img { width: 100%; max-height: 100%; object-fit: contain; }
.cs-seal--round img { width: 82%; }

/* fotos em mural desencontrado */
.cs-photos { margin-bottom: clamp(48px, 6vw, 96px); }
.cs-photos__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  padding-bottom: clamp(32px, 4vw, 64px);
}
.cs-photo { margin: 0; }
.cs-photo:nth-child(even) { transform: translateY(clamp(32px, 4vw, 64px)); }
/* uma peça por linha, centralizada (sobrepõe a grade de 4 colunas e a de 2 no celular) */
.cs-photos__grid.cs-photos__grid--stack { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.cs-photos__grid--stack .cs-photo { width: 100%; max-width: 900px; margin: 0 auto; }
.cs-photos__grid--stack .cs-photo:nth-child(even) { transform: none; }
/* miniaturas lado a lado, centralizadas (flyers) */
.cs-photos__grid.cs-photos__grid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; margin: 0 auto; }
/* três peças por linha, sem corte; no celular volta para 2 colunas */
.cs-photos__grid.cs-photos__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* grade reta: sem o deslocamento alternado das fotos, que sobrepunha as imagens */
.cs-photos__grid--three .cs-photo:nth-child(even) { transform: none; }
/* máscara 16:9 só nas fotos da campanha: todas com a mesma largura e altura, cortadas no centro */
.cs-photos__grid--crop .cs-photo--full img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
@media (max-width: 860px) {
  .cs-photos__grid.cs-photos__grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cs-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: clamp(12px, 1.4vw, 20px);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.45);
}
/* folder institucional: páginas inteiras, sem cortar o texto */
.cs-photo--folder img { aspect-ratio: 1000 / 1576; }
/* peças sem corte: a imagem mantém a proporção original (vem depois de .cs-photo img para vencer) */
.cs-photo--full img { aspect-ratio: auto; height: auto; }

/* celular */
@media (max-width: 860px) {
  .cs-video { aspect-ratio: 4 / 5; margin-left: calc(var(--case-pad) * -0.5); margin-right: calc(var(--case-pad) * -0.5); width: auto; }
  .cs-seals__row { grid-template-columns: minmax(0, 1fr); }
  .cs-seal { aspect-ratio: auto; padding: 28px; }
  .cs-seal--round img { width: 62%; }
  .cs-photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Popup do vídeo ---------- */

.video-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.video-modal:not([open]) { display: none; }
.video-modal[open] { display: grid; place-items: center; }
.video-modal::backdrop { background: rgba(0, 0, 0, 0.6); }
/* vídeo do YouTube usa o mesmo popup; o iframe segue o tamanho do player */
.video-modal__embed {
  width: min(92vw, 1200px);
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  max-height: 86svh;
  border: 0;
  border-radius: clamp(12px, 1.6vw, 20px);
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.video-modal__player[hidden],
.video-modal__embed[hidden] { display: none; }
.video-modal__player {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  max-height: 86svh;
  border-radius: clamp(12px, 1.6vw, 20px);
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.video-modal__close {
  position: fixed;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ht-charcoal);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background-color 0.25s;
}
.video-modal__close:hover { transform: rotate(90deg); background: var(--ht-red); color: #fff; }
.video-modal__close i::before,
.video-modal__close i::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transform: rotate(45deg);
}
.video-modal__close i::after { transform: rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .cs-video__play::before { animation: none; }
}

/* ---------- Rodapé / encerramento ---------- */

.foot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ht-black);
  background-image: var(--tex-dark);
  color: var(--ht-white);
}

/* alvo de linhas finas, em baixo contraste (lembra a foto do slide de encerramento) */
.foot__rings {
  position: absolute;
  z-index: -1;
  right: -18vw;
  top: 50%;
  width: clamp(700px, 78vw, 1400px);
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1.4;
  pointer-events: none;
}
.foot__rings circle:nth-child(odd) { stroke: rgba(255, 255, 255, 0.05); stroke-width: 18; }
.foot__bull { fill: var(--ht-red); stroke: none !important; opacity: 0.85; }

.foot__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(110px, 14vw, 190px) var(--gutter) clamp(56px, 7vw, 96px);
}
.foot__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.foot__eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--ht-red); }
.foot__title {
  margin: 0;
  font-size: clamp(2.6rem, 7.6vw, 8.4rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.foot__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.foot__title .line__in { display: inline-block; }
.foot__title strong { font-weight: 800; color: var(--ht-red); letter-spacing: -0.05em; }

.foot__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(32px, 4vw, 52px); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 17px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--ghost {
  color: var(--ht-white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ht-white); background: rgba(255, 255, 255, 0.06); }

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(64px, 9vw, 130px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.foot__logo img { width: clamp(150px, 15vw, 230px); }
.foot__label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.foot__address { display: grid; gap: 2px; text-decoration: none; }
.foot__address strong { font-size: clamp(15px, 1.25vw, 19px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.foot__address span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s;
}
.foot__address span svg { width: 15px; height: 15px; color: var(--ht-red); }
.foot__address:hover span { color: var(--ht-white); }
.foot__link {
  display: block;
  width: max-content;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.foot__link small { font-size: 0.6em; font-weight: 400; opacity: 0.6; vertical-align: 0.15em; }
.foot__link:hover { background-size: 100% 1.5px; }
.foot__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
}
.foot__sign > a:first-child { font-weight: 800; text-decoration: none; }
.foot__sign > a:first-child span { font-weight: 400; }
.foot__slashes { color: var(--ht-red); letter-spacing: -0.12em; font-weight: 800; }
.foot__social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ht-white);
  color: var(--ht-black);
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease-out);
}
.foot__social svg { width: 20px; height: 20px; }
.foot__social:hover { background: var(--ht-red); color: var(--ht-white); transform: translateY(-3px); }

/* frase correndo na base */
.foot__marquee {
  overflow: hidden;
  padding: clamp(8px, 1.4vw, 20px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot__marquee-track { display: flex; width: max-content; will-change: transform; }
.foot__marquee-track span {
  padding-right: 0.6em;
  font-size: clamp(3rem, 9vw, 9.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--ht-white);
}
.foot__marquee-track strong { font-weight: 800; color: var(--ht-red); }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px var(--gutter) 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.foot__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ht-white);
  font: 600 13px/1 "Montserrat", Arial, sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.foot__top svg {
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease-out), background-color 0.25s;
}
.foot__top:hover svg { transform: translateY(-4px); background: var(--ht-red); }

@media (max-width: 960px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__logo { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot__cta .btn { width: 100%; justify-content: center; }
  .foot__rings { right: -60vw; top: 32%; width: 150vw; }
  .foot__bar { flex-direction: column-reverse; align-items: flex-start; }
}

/* celular: ícones das redes abaixo do site; "Fale com a HT" vira barra fixa na base, no vermelho da marca (estilo .btn--red) */
.cta-bar { display: none; }
@media (max-width: 767px) {
  .foot__sign {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    gap: 12px;
  }
  .foot__sign > a:first-child { grid-column: 1 / -1; }
  .foot__slashes { display: none; }
  .foot__bar { margin-bottom: calc(60px + env(safe-area-inset-bottom)); }

  .site-header__cta { display: none; }
  .cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__hint-line::after { animation: none; }
  .brand__hint i { animation: none; }
}
