/* ==========================================================================
   Thunder Mídias — Folha de estilo principal
   Fiel ao design Figma. Desktop (1440 / conteúdo 1136) + Mobile (390).
   ========================================================================== */

/* -------------------- Fontes locais -------------------- */
@font-face {
  font-family: "Hanson";
  src: url("../../fonts/Hanson-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roc Grotesk";
  src: url("../../fonts/RocGrotesk-Light.ttf") format("truetype");
  font-weight: 300 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roc Grotesk";
  src: url("../../fonts/RocGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roc Grotesk";
  src: url("../../fonts/RocGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Tokens -------------------- */
:root {
  --bg: #14171a;
  --cream: #faf8ec;
  --yellow: #fbf438;
  --dark: #14171a;
  --border: rgba(252, 252, 240, 0.16);
  --border-soft: rgba(252, 252, 240, 0.08);
  --blue: #038ef3;
  --star: #3a7098;
  --card-grad: linear-gradient(180deg, #1e1e20 0%, #14171a 100%);

  --maxw: 1136px;
  --pad-x: 152px;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-pill: 999px;

  --font-display: "Hanson", sans-serif;
  --font-body: "Roc Grotesk", "Inter", system-ui, sans-serif;
}

/* -------------------- Reset -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  /* clip (não hidden) contém o overflow horizontal dos transforms de reveal
	   (reveal--left/right empurram ±48px) sem criar contexto de scroll nem
	   quebrar scroll-behavior/sticky. No html garante que o viewport clipe o X. */
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* -------------------- Utilitários -------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.tm-tagline {
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 32px;
  line-height: 1.1;
  color: var(--yellow);
}
.tm-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--cream);
  text-transform: uppercase;
  white-space: pre-line;
}
.tm-section {
  padding-block: 96px;
}
.hl {
  color: var(--yellow);
}

/* Botão CTA amarelo com seta */
.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 32px;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 10px 30px rgba(251, 244, 56, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.tm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(251, 244, 56, 0.28);
}
/* Ícone CTA — o SVG já é autocontido (círculo escuro + raio amarelo) */
.tm-btn-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.tm-btn-icon svg {
  width: 40px;
  height: 40px;
}

/* =====================================================================
   HEADER / HERO
   ===================================================================== */
.tm-hero {
  background: var(--bg);
  padding: 24px;
}
.tm-hero__inner {
  position: relative;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 1392 / 708;
  border-radius: var(--radius);
  overflow: hidden;
}
.tm-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
}
.tm-hero__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.22) 100%
  );
  z-index: 1;
}

/* Coluna de conteúdo centralizada (1136 no design de 1392) */
.tm-nav,
.tm-hero__title,
.tm-hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  width: min(1136px, calc(100% - 48px));
}

/* Menu glass — efeito vidro fosco */
.tm-nav {
  /* Fixa no topo e acompanha a rolagem (como o header das páginas internas).
     `fixed` escapa do overflow:hidden do .tm-hero__inner; o .tm-nav--inner das
     páginas internas volta a `position: static` mais abaixo.
     top/width derivados da geometria do card do hero (pad 24px + aspect 1392/708)
     para ficar EXATAMENTE na mesma posição de antes (5,6% do topo do card, e a
     mesma largura/recuos), só que agora fixo. */
  position: fixed;
  z-index: 50;
  top: calc(24px + (100vw - 48px) * 0.0285);
  width: min(1136px, calc(100% - 96px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  /* visible (era hidden): o border-radius já recorta o fundo/borda do pill;
     o overflow só afetava filhos — e agora precisa deixar o dropdown de
     Serviços escapar para baixo do menu. */
  overflow: visible;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 12px 12px 12px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.18);
}
.tm-nav__logo img {
  height: 40px;
  width: auto;
}
.tm-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tm-nav__links a {
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
  padding: 10px 16px;
  position: relative;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}
.tm-nav__links a:hover {
  color: var(--yellow);
  opacity: 0.92;
}

/* ---- Dropdown de Serviços (mega-menu horizontal, largura do menu) ---- */
.tm-nav__item--has-sub {
  /* static (não relative): o mega ancora na .tm-nav e ocupa a largura toda do
     menu, em vez de sair do item e estourar a borda da tela em telas menores. */
  position: static;
}
.tm-nav__item--has-sub > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tm-nav__caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.85;
}
.tm-nav__item--has-sub:hover > a .tm-nav__caret,
.tm-nav__item--has-sub:focus-within > a .tm-nav__caret {
  transform: translateY(1px) rotate(225deg);
}
.tm-nav__mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  transform: translateY(10px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 28px;
  padding: 26px 30px;
  background: rgba(20, 23, 26, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200;
}
/* Ponte invisível para o mouse não "cair" no vão entre o item e o mega. */
.tm-nav__mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.tm-nav__item--has-sub:hover .tm-nav__mega,
.tm-nav__item--has-sub:focus-within .tm-nav__mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(6px);
}
.tm-nav__mega-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.tm-nav__mega-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
}
.tm-nav__mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tm-nav__mega-col a {
  color: var(--cream);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
  padding: 0;
  white-space: normal;
  transition: color 0.18s ease;
}
.tm-nav__mega-col a:hover {
  color: var(--yellow);
  opacity: 1;
}
.tm-nav__cta {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  line-height: 21px;
}
.tm-nav__toggle {
  display: none;
}

/* Menu mobile escondido por padrão (só aparece < 768px) */
.tm-mobile-menu {
  display: none;
}
.tm-nav__toggle span,
.tm-nav__toggle span::before,
.tm-nav__toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  position: relative;
  transition: 0.25s;
}
.tm-nav__toggle span::before {
  position: absolute;
  top: -6px;
}
.tm-nav__toggle span::after {
  position: absolute;
  top: 6px;
}

.tm-hero__title {
  top: 34.7%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.tm-hero__title .hl {
  color: var(--yellow);
}
.tm-hero__title-br {
  display: none;
} /* Desktop: sem quebra (Figma) */
.tm-hero__scroll {
  top: 70.6%;
  width: 48px;
  transform: translateX(-50%);
  height: 48px;
  display: grid;
  place-items: center;
}
.tm-hero__scroll svg {
  width: 48px;
  height: 48px;
}

/* =====================================================================
   SOBRE
   ===================================================================== */
.tm-sobre {
  padding-block: 152px 0;
}
.tm-sobre__intro {
  display: flex;
  gap: 131px;
  align-items: flex-start;
  margin-bottom: 80px;
}
.tm-sobre__intro .tm-tagline {
  flex: 0 0 161px;
}
.tm-sobre__desc {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  color: var(--cream);
  max-width: 844px;
}
.tm-sobre__divider {
  border-bottom: 1px solid var(--border);
  padding-bottom: 80px;
  margin-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.tm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tm-card {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 290px;
}
.tm-card--yellow {
  background: var(--yellow);
  color: var(--dark);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tm-card--yellow .tm-card__icons {
  display: flex;
  margin-bottom: 32px;
}
.tm-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tm-card__icon svg {
  width: 40px;
  height: 40px;
}
.tm-card__icon--outline {
  background: var(--yellow);
  border: 1px solid var(--dark);
}
.tm-card__icon--outline svg path {
  fill: var(--cream);
}
.tm-card__icon--dark {
  background: var(--dark);
  margin-left: -28px;
}
.tm-card__icon--dark svg path {
  fill: var(--yellow);
}
.tm-card__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 8px;
}
.tm-card__text {
  font-weight: 350;
  font-size: 20px;
  line-height: 22px;
}

.tm-card--photo {
  background: var(--cream);
  position: relative;
  padding: 0;
}
.tm-card--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.tm-card--photo .tm-card__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: var(--radius-sm);
  padding: 10px 16px 8px;
  font-weight: 500;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tm-card--logo {
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}
.tm-card--logo img {
  width: 178px;
  height: auto;
  max-width: 80%;
}

.tm-numbers {
  text-align: center;
}
.tm-numbers__title {
  font-weight: 350;
  font-size: 24px;
  line-height: 26.4px; /* Figma: Roc 24 / 110% */
  margin-bottom: 56px;
}
.tm-numbers__grid {
  display: flex;
  justify-content: center;
  gap: 96px;
  flex-wrap: wrap;
}
.tm-number__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 8px;
}
.tm-number__label {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
}

/* Marquee infinito dos logos de clientes (loop-scroll) */
.tm-clients {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.tm-clients__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: loop-scroll 32s linear infinite;
}
.tm-clients:hover .tm-clients__track {
  animation-play-state: paused;
}
.tm-client {
  flex: 0 0 208px;
  background: var(--bg);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 32px;
  min-height: 128px;
  border: 1px solid transparent;
}
.tm-client img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}
@keyframes loop-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

/* =====================================================================
   SERVIÇOS
   ===================================================================== */
.tm-servicos {
  padding-block: 152px 0;
}
.tm-servicos__wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}
.tm-servicos__head {
  max-width: 844px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.tm-servicos__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tm-service-row {
  display: flex;
  align-items: center;
  gap: 64px;
  background: var(--card-grad);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  height: 316px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.1);
}
.tm-service-row__img {
  flex: 0 0 400px;
  align-self: stretch;
  background: var(--cream);
}
.tm-service-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tm-service-row__content {
  flex: 1;
  padding: 40px 64px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tm-service-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  color: var(--cream);
  text-transform: uppercase;
}
.tm-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tm-service-tag {
  background: var(--cream);
  color: var(--dark);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.tm-service-tag:hover,
.tm-service-tag:focus-visible {
  background: var(--yellow);
  color: var(--dark);
}

/* =====================================================================
   TRABALHOS EM DESTAQUE
   ===================================================================== */
.tm-trabalhos {
  padding-block: 152px;
}
.tm-trabalhos__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 64px;
}
.tm-trabalhos__head .tm-head-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tm-carousel-arrows {
  display: flex;
  gap: 10px;
}
.tm-arrow {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}
.tm-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
}
.tm-arrow--prev {
  background: var(--yellow);
}
.tm-arrow--prev svg path {
  stroke: var(--dark);
}
.tm-arrow--next {
  background: var(--bg);
  border: 1px solid var(--yellow);
}
.tm-arrow--next svg path {
  stroke: var(--yellow);
}

.tm-cases-wrap {
  width: 100%;
  padding-left: 24px;
  overflow: hidden;
}

.tm-cases {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tm-cases::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.tm-case {
  flex: 0 0 406px;
  height: 721px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  cursor: pointer; /* card inteiro clicável */
}
.tm-case img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tm-case:hover img {
  transform: scale(1.06);
}
.tm-case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}
.tm-case__body {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.tm-case__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--cream);
  white-space: pre-line;
}
.tm-case__link {
  background: var(--yellow);
  color: var(--dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px 10px;
  font-weight: 500;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tm-case__link:hover {
  background: #e5de2e;
}

.tm-channels {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-top: 80px;
  overflow: hidden;
}
.tm-channels__title {
  font-weight: 350;
  font-size: 32px;
  line-height: 1.1;
  flex-shrink: 0;
}
.tm-channels__list {
  display: flex;
  gap: 24px;
}
.tm-channel {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--card-grad);
  border: 1px solid var(--dark);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 30px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.1);
  transition: filter 0.25s ease;
  flex-shrink: 0;
}
.tm-channel:hover {
  filter: brightness(1.18);
}
.tm-channel__label {
  font-weight: 700;
  font-size: 20px;
  line-height: 21px;
  color: var(--cream);
  white-space: nowrap;
  text-transform: uppercase;
}
.tm-channel__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tm-channel__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Loop infinito nos canais */
.loop-pai {
  overflow: hidden;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.loop-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tm-marquee 36s linear infinite;
}
.loop-track.is-reverse {
  animation-direction: reverse;
}
/* Espaçamento por margin (não por gap): garante o "vão" após o último item,
   que é o que faz o loop translateX(-50%) fechar sem emenda. */
.loop-track > * {
  margin-right: 24px;
}
@keyframes tm-marquee {
  to {
    transform: translateX(-50%);
  }
}
.loop-pai:hover .loop-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .loop-track {
    animation: none;
  }
}

/* =====================================================================
   NOSSO TIME
   ===================================================================== */
.tm-time {
  padding-block: 0 152px;
  text-align: center;
}
.tm-time__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
}
.tm-time__gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 80px;
  overflow: hidden;
}
.tm-time__row {
  display: flex;
  gap: 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.tm-time__row img,
.loop-track img {
  flex: 0 0 406px;
  height: 325px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
.tm-time__text {
  max-width: 844px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.tm-time__text p {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  display: block;
}

/* =====================================================================
   DEPOIMENTOS
   ===================================================================== */
/* Topo 152 nas PÁGINAS DE SERVIÇO (a seção Logos acima tem bottom 0). */
.tm-depoimentos {
  padding-block: 152px 0;
  text-align: center;
}
/* Na HOME o "Nosso Time" acima já dá os 152px embaixo — sem topo aqui, senão
   vira 304 (era o "grande espaço"). Fiel ao Figma: Depoimentos = 0/0 na home. */
.tm-depoimentos--home {
  padding-block: 0;
}
.tm-depoimentos__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
}
.tm-depoimentos__track-wrap {
  overflow: hidden;
}
.tm-depo-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.tm-depo-track::-webkit-scrollbar {
  display: none;
}
.tm-depo-video,
.tm-depo-card {
  flex: 0 0 406px;
  height: 508px;
  border-radius: var(--radius);
  scroll-snap-align: start;
}
.tm-depo-video {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.tm-depo-video img {
  position: absolute;
  inset: 0;
  z-index: 2; /* pôster ACIMA do iframe: cobre qualquer tela/logo do YouTube até o vídeo tocar */
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tm-depo-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3; /* acima do pôster (z-index 2) — vale p/ depoimentos sem vídeo */
  width: 76px;
  height: 80px;
  display: grid;
  place-items: center;
}
/* Quando há vídeo do YouTube, o play é um botão clicável. */
button.tm-depo-video__play {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
button.tm-depo-video__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.tm-depo-video__play {
  transition: transform 0.25s ease;
}
.tm-depo-video__play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent var(--cream);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
/* Vídeo tocando inline: iframe cobre a capa e o play some. O iframe fica sem
   pointer-events para que a camada de UI própria (.tm-yt) receba os cliques —
   assim a interface do YouTube não aparece no hover. */
.tm-depo-video iframe,
.tm-depo-video .tm-yt__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Vídeo vertical (Shorts 9:16) preenchendo o card por inteiro: cobre a
     largura e recorta topo/base — sem as barras pretas laterais do print. */
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  min-width: 100%;
  min-height: 100%;
  border: 0;
  z-index: 1;
  pointer-events: none;
}
.tm-depo-video.is-playing img,
.tm-depo-video.is-live img {
  opacity: 0;
  visibility: hidden;
}
.tm-depo-video.is-playing .tm-depo-video__play {
  display: none;
}

/* Affordance "Toque para ouvir" sobre o vídeo em autoplay mudo. */
.tm-depo-video__sound {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(20, 23, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.tm-depo-video__sound:hover {
  background: var(--yellow);
  color: var(--dark);
  transform: translateX(-50%) translateY(-2px);
}
.tm-depo-video__sound-ic svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.tm-depo-video.is-playing .tm-depo-video__sound {
  display: none;
}

/* Botão de som (mute/unmute) exibido depois que o usuário ativa o áudio. */
.tm-yt-mute {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 23, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, color 0.2s ease;
}
.tm-yt-mute:hover {
  background: var(--yellow);
  color: var(--dark);
}
.tm-yt-mute svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

/* Setas do carrossel de depoimentos (affordance de "dá para rolar"). */
.tm-depoimentos__arrows {
  justify-content: center;
  margin-top: 40px;
}

/* ----- Player de vídeo com UI própria (estilo do site) ----- */
.tm-yt {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #fff;
  user-select: none;
}
/* Botão central (área toda do vídeo) p/ reproduzir/pausar. */
.tm-yt__big {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tm-yt__big-ic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(20, 23, 26, 0.55);
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tm-yt__big-ic svg {
  width: 34px;
  height: 34px;
  fill: var(--cream);
  margin-left: 2px; /* compensa o "bico" do triângulo do play */
}
/* O ícone central aparece só quando pausado. */
.tm-yt:not(.is-paused) .tm-yt__big-ic {
  opacity: 0;
}
.tm-yt__big:hover .tm-yt__big-ic {
  transform: scale(1.06);
}
/* Barra de controles inferior. */
.tm-yt__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tm-yt.is-idle .tm-yt__bar {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
.tm-yt__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tm-yt__btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  display: block;
}
.tm-yt__time {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.tm-yt__track {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: height 0.15s ease;
}
.tm-yt__track:hover {
  height: 6px;
}
.tm-yt__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: var(--yellow);
}
.tm-yt__fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateY(-50%);
}
.tm-depo-card {
  background: var(--cream);
  color: var(--dark);
  padding: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}
/* Alternância amarelo/branco por classe (definida no PHP por índice) — assim os
   clones do autoplay infinito mantêm a cor certa com qualquer nº de depoimentos. */
.tm-depo-card--yellow {
  background: var(--yellow);
}
.tm-depo-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  background: #d9d9d9;
  flex: 0 0 72px; /* não deixa o flex-column achatar a altura (avatar ovalado) */
  aspect-ratio: 1;
}
.tm-depo-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tm-depo-card__quote {
  font-weight: 350;
  font-size: 24px;
  line-height: 26.4px;
}
.tm-depo-card__stars {
  display: flex;
  gap: 8px;
  color: var(--star);
  margin-top: -4px;
}
.tm-depo-card__stars svg {
  width: 19px;
  height: 18px;
  display: block;
}
.tm-depo-card__name {
  font-weight: 500;
  font-size: 24px;
  line-height: 36px;
  white-space: pre-line;
}
.tm-depo-card__name small {
  display: block;
  font-weight: 350;
}

/* =====================================================================
   BLOG
   ===================================================================== */
.tm-blog {
  padding-block: 152px;
  text-align: center;
}
.tm-blog .container {
  padding-inline: 0;
}
.tm-blog__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 64px;
}
.tm-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-bottom: 80px;
}
.tm-post {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tm-post__img {
  height: 362px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.tm-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tm-post__tags {
  display: flex;
  gap: 8px;
}
.tm-post__tag {
  background: var(--border-soft);
  color: var(--cream);
  border-radius: 6px;
  padding: 6px 9px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  text-transform: uppercase;
}
.tm-post__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tm-post__title {
  font-weight: 350;
  font-size: 20px;
  line-height: 22px;
  color: var(--cream);
}
.tm-blog__more {
  display: flex;
  justify-content: center;
}
.tm-blog__arrows {
  display: none;
} /* desktop: sem setas (só no mobile) */

/* ---------- Página de post (single / Thunder Talks) ---------- */
.tm-article {
  padding-block: 64px 152px;
}
.tm-article__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.tm-article__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.tm-article__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tm-article__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  color: var(--cream);
}
.tm-article__meta {
  font-size: 16px;
  color: var(--cream);
  opacity: 0.6;
}
.tm-article__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.tm-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tm-article__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tm-article__content p {
  font-weight: 350;
  font-size: 18px;
  line-height: 1.7;
  color: var(--cream);
}
.tm-article__content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--cream);
  margin: 16px 0 0;
}
.tm-article__content h3 {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--cream);
  margin: 8px 0 0;
}
.tm-article__content ul,
.tm-article__content ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tm-article__content li {
  font-weight: 350;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream);
}
.tm-article__content a {
  color: var(--yellow);
  text-decoration: underline;
}
.tm-article__content strong {
  font-weight: 700;
}
.tm-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.tm-article__content blockquote {
  margin: 8px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--yellow);
  color: var(--cream);
  font-size: 20px;
}
.tm-article__cta {
  align-self: flex-start;
  margin-top: 8px;
}
.tm-article__back {
  color: var(--cream);
  opacity: 0.7;
  font-size: 16px;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}
.tm-article__back:hover {
  opacity: 1;
  color: var(--yellow);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.tm-footer {
  border-top: 1px solid var(--border);
  padding-block: 152px;
}
.tm-footer .container {
  padding-inline: 0;
}
.tm-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding-bottom: 112px;
}
.tm-footer__brand {
  flex: 0 0 438px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tm-footer__brand img {
  width: 148px;
  height: auto;
}
.tm-footer__brand p {
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
}
.tm-footer__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--cream);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 32px;
  font-weight: 700;
  font-size: 20px;
  line-height: 21px;
  min-height: 56px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.tm-footer__cta:hover {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}
.tm-footer__cta:hover .tm-btn-icon svg path:first-child {
  fill: var(--cream);
}
.tm-footer__cta:hover .tm-btn-icon svg path:last-child {
  fill: var(--dark);
}
.tm-footer__cta .tm-btn-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
/* Ícone igual ao Figma: círculo AMARELO + raio ESCURO (inverso do back-thunder). */
.tm-footer__cta .tm-btn-icon svg path:first-child {
  fill: var(--yellow);
}
.tm-footer__cta .tm-btn-icon svg path:last-child {
  fill: var(--dark);
}
.tm-footer__cols {
  display: flex;
  gap: 128px;
  flex-wrap: nowrap;
}
.tm-footer__col h4 {
  font-weight: 500;
  font-size: 24px;
  line-height: 24px;
  margin-bottom: 24px;
}
.tm-footer__col li {
  margin-bottom: 16px;
}
.tm-footer__col a,
.tm-footer__col li {
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: var(--cream);
}
.tm-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.tm-footer__social a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.tm-footer__social a:hover svg path {
  fill: var(--yellow);
}
.tm-footer__social svg {
  width: 24px;
  height: 24px;
}
.tm-footer__social svg path {
  fill: var(--cream);
}
.tm-footer__social svg path[fill="none"] {
  fill: none;
}
.tm-footer__totop {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-top: 56px;
}
.tm-footer__totop svg {
  width: 48px;
  height: 48px;
}
.tm-footer__bottom {
  padding-block: 112px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.tm-footer__bottom p {
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: var(--cream);
}
.tm-footer__dev {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 20px;
  white-space: nowrap;
}
.tm-footer__dev svg {
  width: 107px;
  height: 32px;
}

/* =====================================================================
   PÁGINAS INTERNAS — HEADER (nav fixa) + HERO DO SERVIÇO + FAQ
   ===================================================================== */

/* Header das páginas internas: wrapper sem estilo, sticky fica na nav */
.tm-siteheader {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 24px;
}
.tm-nav--inner {
  /* relative (sem offsets = mesmo visual do static): serve de contexto para o
     mega-dropdown de Serviços ancorar na largura da nav, e não na do header. */
  position: relative;
  transform: none;
  left: auto;
  top: auto;
  width: min(1136px, 100%);
  margin-inline: auto;
  background: rgba(0, 0, 0, 0.004);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* Link de serviço na home (tag clicável) — mantém o visual do pill */
a.tm-service-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ---------- Hero do serviço ---------- */
.tm-shero {
  padding-block: 64px 0;
}
.tm-shero__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.tm-shero__content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.tm-shero__tagline {
  font-size: 32px;
  line-height: 1; /* Figma: 100% */
}
.tm-shero__title {
  font-size: 40px;
  line-height: 1.1; /* Figma: 110% — unitless p/ manter o ratio no mobile (32px) */
  margin-top: 8px;
}
.tm-shero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tm-shero__text p {
  font-weight: 350;
  font-size: 24px;
  line-height: 1.2; /* Figma: 120% */
  color: var(--cream);
}
.tm-shero__cta {
  margin-top: 24px;
}
.tm-shero__media {
  flex: 1 1 50%;
}
.tm-shero__media img {
  width: 100%;
  aspect-ratio: 552 / 548;
  object-fit: cover;
  border-radius: 24px;
}

/* ---------- Quem Somos: Nossa História + Valores ---------- */
.tm-historia {
  padding-block: 120px 0;
}
.tm-historia .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.tm-historia__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 844px;
}
.tm-historia__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.tm-historia__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tm-historia__text p {
  font-weight: 350;
  font-size: 20px;
  line-height: 1.4;
  color: var(--cream);
}
.tm-historia__text strong {
  font-weight: 600;
  color: var(--yellow);
}
.tm-historia__values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tm-value {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: var(--card-grad);
}
.tm-value__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 10px;
}
.tm-value__text {
  font-weight: 350;
  font-size: 16px;
  line-height: 1.4;
  color: var(--cream);
  opacity: 0.85;
}
@media (max-width: 900px) {
  .tm-historia {
    padding-block: 80px 0;
  }
  .tm-historia__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- FAQ do serviço ---------- */
.tm-faq {
  padding-block: 152px 0;
}
.tm-faq > .container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.tm-faq__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 0 0 436px;
}
.tm-faq__cta {
  margin-top: 8px;
}
.tm-faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 0%;
}
.tm-faq__item {
  background: var(--card-grad);
  border-radius: var(--radius);
  overflow: hidden;
}
.tm-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cream);
}
.tm-faq__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.tm-faq__icon::before,
.tm-faq__icon::after {
  content: "";
  position: absolute;
  background: var(--yellow);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.tm-faq__icon::before {
  left: 0;
  top: 11px;
  width: 24px;
  height: 2px;
}
.tm-faq__icon::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 24px;
}
.tm-faq__item.is-open .tm-faq__icon::after {
  transform: scaleY(0);
  opacity: 0;
}
.tm-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.tm-faq__item.is-open .tm-faq__a {
  grid-template-rows: 1fr;
}
.tm-faq__a > p {
  overflow: hidden;
  min-height: 0;
  padding: 0 48px 0 32px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2; /* Figma: 120% */
  color: var(--cream);
  opacity: 0.85;
}
.tm-faq__item.is-open .tm-faq__a > p {
  padding: 0 48px 28px 32px;
}

/* ---------- O que fazemos (grid de cards) ---------- */
.tm-oqf {
  padding-block: 152px 0;
}
.tm-oqf__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin-bottom: 64px;
}
.tm-oqf__title {
}
.tm-oqf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tm-oqf__card {
  background: var(--yellow);
  border: none;
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tm-oqf__card:nth-child(even) {
  background: #fcfcf0;
} /* Figma: cards intercalam amarelo / off-white */
.tm-oqf__icon {
  width: 52px;
  height: 40px;
  flex-shrink: 0;
}
.tm-oqf__icon svg {
  width: 100%;
  height: 100%;
}
.tm-oqf__card-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2; /* Figma: 120% */
  color: #14171a;
}
.tm-oqf__card-desc {
  font-weight: 350;
  font-size: 20px;
  line-height: 1.2; /* Figma: 120% */
  color: #14171a;
}
.tm-oqf__card-title + .tm-oqf__card-desc {
  margin-top: -24px;
}

/* ---------- Cases (estudo de caso) ---------- */
.tm-case-study {
  padding-block: 152px 0;
}
.tm-case-study__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.tm-case-study__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.tm-case-study__media {
  flex: 0 0 362px;
}
.tm-case-study__media img {
  width: 100%;
  aspect-ratio: 362 / 644;
  object-fit: cover;
  border-radius: 24px;
}
.tm-case-study__content {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.tm-case-study__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tm-case-study__text p {
  font-weight: 350;
  font-size: 24px;
  line-height: 1.2; /* Figma: 120% */
  color: var(--cream);
}
.tm-case-study__text p:first-child {
  font-weight: 500;
}
.tm-case-study__text strong {
  font-weight: 700;
  color: var(--yellow);
}
.tm-case-study__cta {
  margin-top: 80px;
}

/* ---------- Página de Trabalho (case study "Ver Trabalhos", node 27619:139) ---------- */
.tm-trab {
  padding-block: 152px 0;
}
.tm-trab__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 80px;
}
.tm-trab__titles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tm-trab__case {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1; /* Figma: 110% */
  color: var(--cream);
  text-transform: uppercase;
}
.tm-trab__chamada {
  font-weight: 350;
  font-size: 24px;
  line-height: 1.2; /* Figma: 120% */
  color: var(--cream);
  max-width: 700px;
}
.tm-trab__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.tm-trab__media {
  flex: 0 0 362px;
}
.tm-trab__media img {
  width: 100%;
  aspect-ratio: 362 / 644;
  object-fit: cover;
  border-radius: 24px;
}
.tm-trab__text {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tm-trab__text p {
  font-weight: 350;
  font-size: 24px;
  line-height: 1.2; /* Figma: 120% */
  color: var(--cream);
}
/* 1º parágrafo de cada case entra em peso médio (igual ao Figma). */
.tm-trab__text p:first-child {
  font-weight: 500;
}
/* Ênfase do Figma = peso 500 na MESMA cor (não 700, não amarelo). */
.tm-trab__text strong,
.tm-trab__chamada strong {
  font-weight: 500;
  color: inherit;
}
.tm-trab__cta {
  display: flex;
  width: fit-content;
  margin: 80px auto 0;
}

/* ---------- Página de Orçamento / Contato ---------- */
.tm-contato {
  padding-block: 64px 152px;
} /* respiro antes do footer */
.tm-contato__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.tm-contato__info {
  flex: 1 1 42%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.tm-contato__title {
  font-size: 40px;
  line-height: 1.1; /* Figma: 110% */
}
.tm-contato__desc {
  font-weight: 350;
  font-size: 24px;
  line-height: 1.2; /* Figma: 120% */
  color: var(--cream);
  max-width: 460px;
}
.tm-contato__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.tm-contato__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--cream);
}
.tm-contato__list a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tm-contato__list a:hover {
  color: var(--yellow);
}
.tm-contato__list li > :last-child {
  min-width: 0;
  overflow-wrap: anywhere;
} /* e-mail/endereço longo não estoura no mobile */
.tm-contato__ic {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--yellow);
}
.tm-contato__ic svg {
  width: 22px;
  height: 22px;
  display: block;
}
.tm-contato__form {
  flex: 1 1 58%;
  min-width: 0;
}
/* o formulário do plugin já ocupa 100% da coluna */
.tm-contato__form .thunder-orc-wrap {
  max-width: none;
}

/* ---------- Cases (galeria / grid de fotos e vídeos) ---------- */
.tm-case-grid {
  padding-block: 152px 0;
}
.tm-case-grid .container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.tm-case-grid__head {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.tm-case-grid__head-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.tm-case-grid__intro {
  align-self: flex-start;
  width: 100%;
  max-width: 698px;
  font-weight: 350;
  font-size: 24px;
  line-height: 1.2;
  color: var(--cream);
}
.tm-case-grid__intro strong {
  font-weight: 500;
}

.tm-case-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tm-cg-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tm-cg-card__media {
  position: relative;
  aspect-ratio: 362 / 644;
  border-radius: 24px;
  overflow: hidden;
  background: #0d0f11;
}
.tm-cg-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tm-cg-card:hover .tm-cg-card__cover {
  transform: scale(1.05);
}
.tm-cg-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}
.tm-cg-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}
.tm-cg-card__play svg {
  width: 30px;
  height: 30px;
  fill: var(--dark);
  margin-left: 3px;
}
.tm-cg-card__media:hover .tm-cg-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #e5de2e;
}
.tm-cg-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
  white-space: normal;
}
/* Quebras de linha do título por breakpoint (geradas por thunder_card_title_breaks).
   Espelha o padrão de .tm-hero__title-br: alterna o display do <br>. */
.tm-cg-br--mob {
  display: none;
} /* desktop: esconde quebra mobile */
.tm-cg-br--desk {
  display: inline;
} /* desktop: mostra quebra desktop */
.tm-case-grid__cta {
  align-self: center;
}

/* ---------- Nosso Processo (passos numerados) ---------- */
.tm-processo {
  padding-block: 152px 0;
}
.tm-processo__head {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.tm-processo__title {
}
.tm-processo__inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.tm-processo__carousel {
  flex: 1 1 0%;
  position: relative;
  max-height: 348px;
  overflow: hidden;
}
.tm-processo__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: loop-scroll-vertical 20s linear infinite;
}
@keyframes loop-scroll-vertical {
  from {
    transform: translateY(calc(-50% - 6px));
  }
  to {
    transform: translateY(0);
  }
}
.tm-processo__fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 168px;
  pointer-events: none;
  z-index: 1;
}
.tm-processo__fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.tm-processo__fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}
.tm-processo__step {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--cream);
  border-radius: 80px;
  width: fit-content;
}
.tm-processo__num {
  display: none;
}
.tm-processo__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: #14171a;
}

/* ---------- Logos (parceiros) ---------- */
.tm-logos {
  padding-block: 152px 0;
}
.tm-logos__title {
  text-align: center;
  margin-bottom: 56px;
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 24px;
  line-height: 24px;
  color: var(--cream);
}
.tm-logos__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.tm-logos__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: loop-scroll 32s linear infinite;
}
.tm-logos__marquee:hover .tm-logos__track {
  animation-play-state: paused;
}
.tm-logos__item {
  flex: 0 0 208px;
  background: var(--bg);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 32px;
  min-height: 128px;
}
.tm-logos__item img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.tm-logos__item img:hover {
  opacity: 1;
}

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1200px) {
  :root {
    --pad-x: 64px;
  }
  .tm-sobre__intro {
    gap: 48px;
  }
  .tm-time__row img {
    flex-basis: 280px;
    height: 240px;
  }
  .tm-channels {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  /* Orçamento/Contato: empilha as colunas (form ganha a largura toda). */
  .tm-contato__inner {
    flex-direction: column;
    gap: 48px;
  }
  .tm-contato__info,
  .tm-contato__form {
    width: 100%;
  }
  .tm-contato__desc {
    max-width: 560px;
  }

  .tm-cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .tm-card {
    width: 100%;
    max-width: 362px;
  }
  .tm-card--yellow {
    min-height: auto;
  } /* mobile: abraça o conteúdo (Figma) — remove o vão no topo */
  .tm-blog__grid {
    grid-template-columns: 1fr;
  }
  .tm-service-row {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
  }
  /* Figma: todas as imagens dos cards têm altura fixa de 277px. O `min-height:auto`
	   padrão do flex deixava as fotos em retrato (ex.: Tecnologia/Performance) crescerem
	   até ~513px; `min-height:0` + `overflow:hidden` travam em 277 e o object-fit recorta. */
  .tm-service-row__img {
    flex: 0 0 auto;
    height: 277px;
    min-height: 0;
    overflow: hidden;
  }
  .tm-service-row__img img {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .tm-service-row__content {
    padding: 40px 20px;
    gap: 24px;
  }
  .tm-footer__top {
    flex-direction: column;
    gap: 56px;
  }
  .tm-footer__brand {
    flex-basis: auto;
  }
  .tm-footer__cols {
    flex-wrap: wrap;
    gap: 64px;
  }
  .tm-channels {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .tm-channels__list {
    flex-wrap: wrap;
  }

  /* Hero do serviço empilha */
  .tm-shero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  /* Mobile: mantém a proporção ~quadrada do desktop (552/548) para a imagem não
	   ficar baixa/menor que o Figma. Antes era 16/10 (faixa larga e baixa). */
  .tm-shero__media img {
    aspect-ratio: 552 / 548;
  }

  /* O que fazemos: 2 colunas */
  .tm-oqf__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cases empilha */
  .tm-case-study__inner {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
  }
  .tm-section {
    padding-block: 64px;
  }

  /* Header mobile */
  .tm-hero {
    padding: 12px;
  }
  .tm-hero__inner {
    aspect-ratio: 366 / 651;
    min-height: 0;
  }
  .tm-nav__links,
  .tm-nav__cta {
    display: none;
  }
  .tm-nav__toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--cream);
    border-radius: 50%;
    flex: 0 0 auto;
  }
  .tm-nav {
    /* Mesma posição de antes: 4% do topo do card (pad 12px + aspect 366/651)
       e a mesma largura/recuos (card - 48px), agora fixo. */
    top: calc(12px + (100vw - 24px) * 0.0712);
    width: calc(414px - 72px);
    padding: 12px 12px 12px 16px;
    height: 64px;
  }
  .tm-nav__logo img {
    height: 36px;
  }
  .tm-hero__title {
    font-size: 22px;
    line-height: 1;
    text-align: center;
    width: calc(100% - 24px);
    top: 44.8%;
  }
  .tm-hero__title-br {
    display: none;
  } /* Mobile: quebra natural (Figma não tem br manual neste título) */
  .tm-hero__scroll {
    top: 78%;
  }

  /* ===== Menu mobile (overlay) ===== */
  .tm-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 16px 24px 32px;
    /* brilho amarelo sutil no canto + fundo da marca */
    background:
      radial-gradient(
        130% 80% at 100% 0%,
        rgba(251, 244, 56, 0.1) 0%,
        rgba(20, 23, 26, 0) 55%
      ),
      var(--bg);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition:
      transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.3s ease,
      visibility 0s linear 0.42s;
  }
  .tm-mobile-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.3s ease;
  }

  /* Barra do topo: logo + botão fechar (espelha o header) */
  .tm-mobile-menu__bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  .tm-mobile-menu__logo img {
    height: 36px;
    width: auto;
  }
  .tm-mobile-menu__close {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(250, 248, 236, 0.4);
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
    transition:
      border-color 0.25s ease,
      transform 0.3s ease;
  }
  .tm-mobile-menu__close:hover {
    border-color: var(--yellow);
    transform: rotate(90deg);
  }
  .tm-mobile-menu__close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
  }
  .tm-mobile-menu__close span:first-child {
    transform: rotate(45deg);
  }
  .tm-mobile-menu__close span:last-child {
    transform: rotate(-45deg);
  }

  /* Lista de links — centralizada, hierárquica, com índice e divisórias */
  .tm-mobile-menu__links {
    flex: 1 1 auto;
    list-style: none;
    margin: 0;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .tm-mobile-menu__links li {
    border-bottom: 1px solid rgba(250, 248, 236, 0.1);
    opacity: 0;
    transform: translateX(28px);
  }
  .tm-mobile-menu.is-open .tm-mobile-menu__links li {
    opacity: 1;
    transform: translateX(0);
    transition:
      opacity 0.4s ease,
      transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: calc(0.06s * var(--i, 0) + 0.12s);
  }
  .tm-mobile-menu__links a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--cream);
    transition: color 0.25s ease;
  }
  .tm-mobile-menu__links a:hover,
  .tm-mobile-menu__links a.is-active {
    color: var(--yellow);
  }
  .tm-mobile-menu__num {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--yellow);
  }

  /* Acordeão de Serviços no menu mobile */
  .tm-mobile-menu__item--has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .tm-mobile-menu__item--has-sub > a {
    flex: 1 1 auto;
  }
  .tm-mobile-menu__subtoggle {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: var(--cream);
    cursor: pointer;
  }
  .tm-mobile-menu__caret {
    width: 11px;
    height: 11px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s ease, color 0.25s ease;
  }
  .tm-mobile-menu__subtoggle[aria-expanded="true"] .tm-mobile-menu__caret {
    transform: translateY(3px) rotate(225deg);
    color: var(--yellow);
  }
  .tm-mobile-menu__sub {
    flex-basis: 100%;
    display: none;
    padding: 2px 4px 14px;
  }
  .tm-mobile-menu__sub.is-open {
    display: block;
  }
  .tm-mobile-menu__sub-title {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yellow);
    margin: 14px 0 6px;
  }
  .tm-mobile-menu__sub ul {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .tm-mobile-menu__sub li {
    border: 0;
    opacity: 1;
    transform: none;
  }
  .tm-mobile-menu__sub a {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    text-transform: none;
    padding: 8px 0;
    color: var(--cream);
  }
  .tm-mobile-menu__sub a:hover {
    color: var(--yellow);
  }

  /* Rodapé do menu: CTA cheia + redes (revela depois dos links) */
  .tm-mobile-menu__foot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .tm-mobile-menu.is-open .tm-mobile-menu__foot {
    opacity: 1;
    transition-delay: 0.45s;
  }
  .tm-mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 10px 10px 28px;
    background: var(--yellow);
    color: var(--dark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    border-radius: var(--radius-pill);
  }
  .tm-mobile-menu__social {
    margin-top: 0;
    justify-content: center;
    gap: 28px;
  }
  .tm-mobile-menu__social svg,
  .tm-mobile-menu__social a {
    width: 22px;
    height: 22px;
  }

  .tm-sobre {
    padding-block: 64px 0;
  }
  .tm-sobre__intro {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
  }
  .tm-sobre__intro .tm-tagline {
    flex: 0 0 0px;
  }
  .tm-sobre__desc {
    font-size: 32px;
  }
  .tm-clients {
    display: none;
  } /* mobile: Figma não tem o marquee de clientes na Sobre */
  .tm-numbers__grid {
    gap: 40px;
  }
  .tm-number__value {
    font-size: 40px;
  }
  .tm-number__label {
    font-size: 24px;
  }

  .tm-servicos {
    padding-block: 0px;
  }
  .tm-service-row__title {
    font-size: 24px;
  }

  .tm-trabalhos {
    padding-block: 0 64px;
  }
  .tm-trabalhos__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .tm-trabalhos__head .tm-head-left {
    margin-top: 64px;
  }
  .tm-carousel-arrows {
    display: none;
  } /* mobile: sem setas (igual ao Figma) */
  .tm-cases-wrap {
    padding-left: 10px;
  }
  .tm-cases {
    scroll-snap-type: x mandatory;
    gap: 16px;
  } /* passa 1 de cada vez, estilo depoimentos */
  .tm-case {
    flex: 0 0 72vw;
    max-width: none;
    height: auto;
    aspect-ratio: 350 / 622;
  } /* mostra ~metade do próximo card */
  .tm-channels {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    margin-top: 40px;
  }
  .tm-channels__list {
    width: 100%;
  }
  .tm-channel {
    flex-shrink: 0;
  }

  .tm-time {
    padding-block: 0 64px;
  }
  .tm-time__row {
    overflow: hidden;
  }
  .tm-time__row img,
  .loop-track img {
    flex-basis: 240px;
    height: 200px;
  }
  /* set mais curto no mobile → duração menor p/ manter a mesma sensação de velocidade */
  .loop-track {
    animation-duration: 22s;
  }
  .tm-time__text p {
    font-size: 24px;
    color: var(--cream);
  }
  .tm-time__text p:first-child {
    color: var(--yellow);
  }

  .tm-depo-video,
  .tm-depo-card {
    flex-basis: 300px;
    height: 440px;
  }
  /* Mais respiro no card mobile (300px) para o conteúdo caber sem comprimir o avatar. */
  .tm-depo-card {
    padding: 24px;
    gap: 20px;
  }
  .tm-depo-card__quote {
    font-size: 20px;
    line-height: 24px;
  }
  .tm-depo-card__name {
    font-size: 20px;
    line-height: 28px;
  }

  .tm-blog {
    padding-block: 64px;
  }
  .tm-article {
    padding-block: 40px 64px;
  }
  .tm-article__title {
    font-size: 30px;
  }
  .tm-article__content p,
  .tm-article__content li {
    font-size: 17px;
  }
  .tm-article__content h2 {
    font-size: 24px;
  }
  .tm-blog .container {
    padding-inline: 20px;
  }
  /* Blog vira carrossel com setas no mobile (igual ao Figma) */
  .tm-blog__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -20px 40px 0;
    padding-right: 20px;
  }
  .tm-blog__grid::-webkit-scrollbar {
    display: none;
  }
  .tm-post {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: start;
  }
  .tm-post__img {
    height: auto;
    aspect-ratio: 1;
  }
  .tm-blog__arrows {
    display: flex;
  }
  .tm-blog__more {
    display: none;
  }
  .tm-post__tags {
    flex-wrap: wrap;
    gap: 12px;
  } /* Figma: wrap, não estoura o card */
  .tm-post__tag {
    font-size: 12px;
    line-height: 1;
    padding: 5px 10px 3px;
  } /* Figma mobile: tag menor */
  .tm-tagline {
    font-size: 28px;
  }
  .tm-heading {
    font-size: 28px;
    white-space: normal;
  }
  /* Mobile: nenhum título estoura/corta palavra. O título é flex-item em heads
	   centralizados (align-items:center) e dimensiona por max-content, ficando mais
	   largo que a viewport (clipado pelo overflow-x). Limita à largura disponível e
	   quebra só por palavra inteira — fiel ao Figma (quebra natural, sem cortar). */
  .tm-heading,
  .tm-hero__title,
  .tm-shero__title {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .tm-footer {
    padding-block: 0 80px;
    border-top: none;
  }
  .tm-footer .container {
    padding-inline: 20px;
  }
  .tm-footer__top {
    gap: 64px;
    padding-bottom: 80px;
    align-items: stretch;
  }
  .tm-footer__cols {
    flex-direction: row;
    gap: 40px;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .tm-footer__col {
    flex: 1 1 0;
    min-width: 0;
  }
  .tm-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding-block: 80px 0;
  }
  .tm-footer__social {
    margin-top: 24px;
  }

  /* Header + hero + FAQ internos no mobile */
  .tm-siteheader {
    padding: 12px;
  }
  .tm-shero {
    padding-block: 40px 0;
  }
  .tm-shero__title {
    font-size: 32px;
  }
  .tm-shero__tagline {
    font-size: 24px;
  }
  .tm-faq {
    padding-block: 64px 0;
  }
  .tm-faq > .container {
    flex-direction: column;
  }
  .tm-faq__head {
    flex: unset;
    align-items: center;
    text-align: center;
  }
  .tm-faq__q {
    padding: 20px 20px;
    font-size: 18px;
  }
  .tm-faq__a > p {
    padding: 0 20px;
  }
  .tm-faq__item.is-open .tm-faq__a > p {
    padding: 0 20px 20px;
  }

  /* Corpo do serviço — mobile */
  .tm-oqf {
    padding-block: 64px 0;
  }
  .tm-oqf__head {
    margin-bottom: 0px;
  }
  /* Figma mobile: título "O que fazemos" = 30px com quebra NATURAL.
     white-space:normal ignora o \n (que existe só p/ o desktop) e evita fragmentar
     a palavra — fiel ao Figma (ex.: ESTRUTURAMOS / SUA PRESENÇA / DIGITAL). */
  .tm-oqf__title {
    font-size: 30px;
    white-space: normal;
    margin-bottom: 40px;
  }
  /* Mobile: "O que fazemos" vira carrossel (arrasta 1 de cada vez), igual aos
     depoimentos — scroll horizontal nativo + scroll-snap, sem setas. */
  .tm-oqf__grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-right: -24px; /* sangra até a borda direita (container = 24px) p/ o "peek" */
    padding-right: 24px;
  }
  .tm-oqf__grid::-webkit-scrollbar {
    display: none;
  }
  .tm-oqf__card {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: start;
    padding: 32px 24px;
  }

  .tm-case-study {
    padding-block: 64px 0;
  }
  .tm-case-study__head {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 40px;
  }
  .tm-case-study__media {
    display: block;
    flex: none;
    width: 100%;
  }
  .tm-case-study__inner {
    flex-direction: column;
    gap: 24px;
  }
  .tm-case-study__cta {
    margin-top: 40px;
  }

  /* Página de Trabalho — mobile */
  .tm-trab {
    padding-block: 64px 0;
  }
  .tm-trab__head {
    margin-bottom: 40px;
  }
  .tm-trab__case {
    font-size: 32px;
    line-height: 35.2px; /* Figma: 110% */
  }
  .tm-trab__chamada {
    font-size: 20px;
    line-height: 24px;
  }
  .tm-trab__inner {
    flex-direction: column;
    gap: 24px;
  }
  .tm-trab__media {
    flex: none;
    width: 100%;
  }
  .tm-trab__text p {
    font-size: 20px;
    line-height: 24px;
  }
  .tm-trab__cta {
    margin-top: 40px;
  }

  /* Página de Orçamento / Contato (mobile) */
  .tm-contato {
    padding-block: 40px 64px;
  }
  .tm-contato__inner {
    gap: 40px;
  }
  .tm-contato__info {
    gap: 20px;
  }
  .tm-contato__title {
    font-size: 32px;
    line-height: 35.2px; /* Figma: 110% */
  }
  .tm-contato__desc {
    font-size: 20px;
    line-height: 24px;
    max-width: none;
  }

  .tm-processo {
    padding-block: 64px 0;
  }
  .tm-processo__inner {
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
  }
  .tm-processo__step {
    width: 100%;
  }

  .tm-logos {
    padding-block: 64px 0;
  }
  .tm-logos__title {
    margin-bottom: 40px;
  }
  .tm-logos__item {
    flex: 0 0 150px;
    min-height: 96px;
    padding: 24px;
  }

  /* Mobile: serviço = topo 64 (Logos acima tem 0); home = 0 (Nosso Time já dá 64). */
  .tm-depoimentos {
    padding-block: 64px 0;
  }
  .tm-depoimentos__head {
    margin-bottom: 40px;
  }
  .tm-depoimentos--home {
    padding-block: 0;
  }
}

/* =====================================================================
   EFEITOS / ANIMAÇÕES (entrada ao rolar, seta flutuante, drag)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transition:
      opacity 0.8s ease,
      transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
  }
  .reveal--up {
    transform: translateY(40px);
  }
  .reveal--down {
    transform: translateY(-40px);
  }
  .reveal--left {
    transform: translateX(-48px);
  }
  .reveal--right {
    transform: translateX(48px);
  }
  .reveal--in {
    transform: none;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Seta do hero flutuando (float-down) */
  .tm-hero__scroll svg {
    animation: float-down 2.5s ease-in-out infinite;
  }
}
@keyframes float-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Drag nos carrosséis */
.tm-cases,
.tm-depo-track {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
/* Imagens não devem iniciar o "arraste de imagem" nativo durante o drag. */
.tm-cases img,
.tm-depo-track img {
  -webkit-user-drag: none;
  user-drag: none;
}
.tm-cases.is-dragging,
.tm-depo-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.tm-cases.is-dragging *,
.tm-depo-track.is-dragging * {
  pointer-events: none;
}

/* Hover sutil (lift) nos cards e botões */
.tm-post__img img,
.tm-service-tag,
.tm-client img {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s ease;
}
.tm-post:hover .tm-post__img img {
  transform: scale(1.04);
}
.tm-case__link,
.tm-nav__cta,
.tm-footer__cta,
.tm-btn {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.tm-case__link:hover,
.tm-nav__cta:hover {
  transform: translateY(-2px);
}
.tm-arrow {
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}
.tm-arrow:hover {
  transform: scale(1.08);
}

/* ---------- Cases (galeria / grid) — responsivo ---------- */
@media (max-width: 900px) {
  .tm-case-grid__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tm-case-grid__intro {
    align-self: stretch;
    max-width: none;
  }
}
@media (max-width: 768px) {
  /* Cases mobile — fiel ao Figma (frame 27712-19833, conteúdo 350px) */
  .tm-case-grid {
    padding-block: 64px 0;
  }
  .tm-case-grid .container {
    gap: 40px;
  } /* head → grid = 40 */
  .tm-case-grid__cta {
    margin-top: 24px;
  } /* grid → botão = 40 + 24 = 64 */
  .tm-case-grid__head {
    gap: 32px;
  } /* bloco tagline+título → intro = 32 */
  .tm-case-grid__head-top {
    padding-bottom: 0;
    border-bottom: none;
  } /* Figma mobile não tem divisória */
  .tm-case-grid .tm-tagline {
    font-size: 32px;
  } /* "Cases" = 32px */
  .tm-case-grid .tm-heading {
    font-size: 30px;
    white-space: normal;
  } /* título Cases = 30px, quebra natural */
  .tm-case-grid__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
  } /* Figma mobile: 2 colunas — gap 40px (linhas) / 16px (colunas) */
  .tm-cg-card {
    gap: 24px;
  } /* Figma mobile: imagem → título = 24px */
  .tm-cg-card__title {
    font-size: 15.8px;
  } /* Figma mobile (2 col): título do card */
  .tm-case-grid__intro {
    font-size: 24px;
    line-height: 1.2;
  } /* intro = 24px / lh 1.2 (era 18) */
  .tm-cg-card__play {
    width: 60px;
    height: 60px;
  }
  .tm-cg-card__play svg {
    width: 24px;
    height: 24px;
  }

  /* Quebras de linha do título: mostra mobile, esconde desktop */
  .tm-cg-br--mob {
    display: inline;
  }
  .tm-cg-br--desk {
    display: none;
  }
}
