* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* As <img> agora têm width/height no HTML (reserva o espaço e evita
   layout shift). Sem este height:auto o atributo height viraria uma
   altura FIXA nas imagens em que o CSS só define a largura, deformando
   os cards. Com ele, a altura volta a sair da proporção — igual a antes,
   só que o espaço já fica reservado antes da imagem carregar.
   Seletor de tipo (menor especificidade): qualquer regra do site vence. */
img {
  height: auto;
}

:root {
  --padding: clamp(32px, 2vw, 2vw);
  --padding2: clamp(32px, 4vw, 4vw);
  --branco: rgba(255, 255, 255, 0.9);
  --branco2: rgba(255, 255, 255, 0.7);
  --preto: rgba(0, 0, 0, 0.9);
  --preto2: rgba(0, 0, 0, 0.7);
  --titulo: "Belfast Grotesk", "Poppins", sans-serif;
  --poppins: "Poppins", sans-serif;

  /* Marca LF */
  --bg: #0d1114;
  --superficie: #151b20;
  --borda: rgba(255, 255, 255, 0.08);
  --azul: #004fff;
  --azul2: #116cf8;
  --ciano: #21bdef;
  --roxo: #a478e8;
  --texto-suave: rgba(255, 255, 255, 0.65);

  /* Brilho do hero: alterna entre --brilho-a e --brilho-b.
     Cores da marca: var(--azul), var(--ciano), var(--azul2), var(--roxo) */
  --brilho-a: var(--azul); /* #004FFF */
  --brilho-b: var(--ciano); /* #21BDEF */
  /* Quanto da cor entra no fundo. O color-dodge multiplica ~37x no
     centro do brilho, então valores pequenos já tingem bastante. */
  --brilho-forca: 5%;
}

/* ───────── PRELOADER ───────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
  touch-action: none;
  overscroll-behavior: contain;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 1;
  will-change: transform;
}

.preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  z-index: 2;
  will-change: transform, opacity;
}

.preloader-logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.preloader-logo-fill {
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

.preloader-percent {
  position: absolute;
  top: calc(50% + 70px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--titulo);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  will-change: opacity, transform;
}

.logoHeader {
  opacity: 0;
  width: 44px;
  height: 44px;
}

@media (max-width: 768px) {
  .preloader-logo {
    width: 110px;
    height: 110px;
  }
  .preloader-percent {
    top: calc(50% + 58px);
    font-size: 14px;
  }
}

/* Belfast Grotesk (títulos e destaques). Só WOFF2: todos os navegadores
   atuais leem, e é o formato mais leve. */
@font-face {
  font-family: "Belfast Grotesk";
  src: url(fonts/BelfastGrotesk-Light.woff2) format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Belfast Grotesk";
  src: url(fonts/BelfastGrotesk-Regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Belfast Grotesk";
  src: url(fonts/BelfastGrotesk-Medium.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Belfast Grotesk";
  src: url(fonts/BelfastGrotesk-Bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

html,
body {
  overflow-x: hidden !important;
  overscroll-behavior-y: none;
}

body {
  background-color: var(--bg);
  color: var(--branco);
  font-family: "Poppins", sans-serif;
}

/* ───────── PADROES ───────── */

section {
  width: 100%;
  padding: var(--padding);
  display: flex;
  flex-direction: column;
  position: relative;
}
a {
  text-decoration: none;
}

h1,
h2 {
  font-size: 4vw;
  font-family: var(--titulo);
  font-weight: 400;
}
h3 {
  font-family: var(--titulo);
}
p {
  font-size: clamp(14px, 1vw, 1vw);
}

.botoes {
  display: flex;
  gap: 20px;
  align-items: center;
}

.botao {
  font-size: clamp(12px, 3.7vw, 16px);
  height: 62px;
  text-decoration: none;
  color: var(--branco);
  background-color: var(--preto);
  border: none;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px 8px 20px;
  gap: clamp(6px, 2.2vw, 12px);
  cursor: pointer;
  box-shadow:
    0 2px 4px 0 rgba(0, 0, 0, 0.08),
    0 18px 38px 0 rgba(0, 0, 0, 0.15),
    0 4px 5.8px 0 rgba(255, 255, 255, 0.07) inset,
    0 4px 8px 0 rgba(255, 255, 255, 0.02) inset;
}

.botaoPrimario,
.botaoPrimario.branco,
.botaoPrimario.preto {
  color: #ffffff;
  background-color: var(--azul);
  border: none;
  box-shadow:
    0 10px 30px rgba(0, 79, 255, 0.35),
    0 4px 5.8px 0 rgba(255, 255, 255, 0.12) inset;
}

.botaoPrimario {
  position: relative;
  justify-content: start;
  white-space: nowrap;
  /* espaço da bolinha da seta (até 44px) + 8px de cada lado */
  padding-right: calc(clamp(20px, 13vw, 44px) + 20px);
  div,
  &.branco div {
    background-color: #ffffff;
    padding: 1vw 0;
    border-radius: 50px;
    width: clamp(20px, 13vw, 44px);
    height: clamp(20px, 13vw, 44px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width 0.3s;
    position: absolute;
    right: 8px;

    img {
      width: 20px;
    }
  }

  &:hover {
    div {
      width: calc(100% - 16px);
    }
  }
}
.branco {
  color: var(--preto);
  background-color: var(--branco);
  border: 1px solid rgba(255, 255, 255, 1);
}
.botaoSecundario {
  padding: 20px;
  opacity: 0.8;
  transition:
    opacity 0.3s,
    transform 0.3s;

  &:hover {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.botaoSecundario.branco {
  color: var(--branco);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.transparente {
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.282);
  backdrop-filter: blur(12px);
}

.textoLongo {
  font-size: 3.1vw;
  letter-spacing: -3%;
  font-weight: 300;
}

.cardSubtitulo {
  width: max-content;
  display: flex;
  padding: clamp(12px, 0.8vw, 0.8vw) clamp(16px, 1vw, 1vw);
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 65px;
  background: rgba(0, 79, 255, 0.16);
  border: 1px solid rgba(0, 79, 255, 0.55);
  box-shadow: 0 0 24px rgba(0, 79, 255, 0.2) inset;

  img {
    width: clamp(18px, 1.1vw, 1.1vw);
  }

  h3 {
    font-family: var(--poppins);

    color: #9db8ff;
    font-size: clamp(14px, 1vw, 1vw);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
  }
}

.cardBordaInterna {
  flex: 1;
  position: relative;
  background-color: var(--superficie);
  padding: clamp(20px, 1.8vw, 1.8vw) clamp(16px, 1.3vw, 1.3vw);
  border-radius: clamp(20px, 2vw, 2vw);

  h3 {
    font-size: clamp(20px, 1.4vw, 1.4vw);
    font-weight: 500;
    margin-bottom: clamp(12px, 0.5vw, 0.5vw);
    margin-top: clamp(12px, 0.5vw, 0.5vw);
  }

  h3 {
    color: #ffffff;
  }

  p {
    color: var(--texto-suave);
  }

  .icone {
    position: absolute;
    right: 0;
    top: 0;
    background-color: var(--bg);
    width: 73px;
    height: 73px;
    border-radius: 0px 0px 0px 32px;
    display: flex;
    justify-content: end;
    align-items: start;

    span {
      width: 63px;
      height: 63px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--titulo);
      font-size: 22px;
      font-weight: 500;
      color: var(--ciano);
    }
  }

  &:before {
    content: "";
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    right: 73px;
    top: 0;
    left: auto;
    box-shadow: 10px -10px 0px var(--bg);
  }

  &:after {
    content: "";
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    right: -1px;
    top: 73px;
    left: auto;
    box-shadow: 10px -10px 0px var(--bg);
  }
}

/* ───────── VÍDEOS ───────── */
.video-container {
  position: relative;
  max-height: 80vh;
  max-width: 1920px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem auto;

  video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 30, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.3s ease;

  &:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
  }
}

/* ───────── HEADER ───────── */
header {
  position: fixed;
  display: flex;
  width: 100%;
  padding: var(--padding);
  display: flex;
  justify-content: space-between;
  z-index: 201;
  top: 0;
  left: 0;
  mix-blend-mode: difference;

  a {
    display: flex;
  }
}
/* O menu lateral (hambúrguer, painel e overlay) mora em menu-lateral.css,
   compartilhado com a página de Projetos. */

/* ───────── HERO ───────── */

main {
  background-color: var(--bg);
}

.hero {
  position: relative;
  height: 100svh;

  /* overflow: hidden; */
  /* Fundo quase preto tingido pelas cores do brilho: o degradê cônico
     com color-dodge (.divDegrade) transforma esses tons no brilho, e a
     animação de 30s desliza o degradê, alternando --brilho-a e --brilho-b.
     #08081e é a reserva para navegadores sem color-mix(). */
  background-color: #08081e;
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--brilho-a) var(--brilho-forca), #000),
    color-mix(in srgb, var(--brilho-b) var(--brilho-forca), #000),
    color-mix(in srgb, var(--brilho-a) var(--brilho-forca), #000),
    color-mix(in srgb, var(--brilho-b) var(--brilho-forca), #000),
    color-mix(in srgb, var(--brilho-a) var(--brilho-forca), #000),
    color-mix(in srgb, var(--brilho-b) var(--brilho-forca), #000)
  );
  background-size: 800% 800%;

  -webkit-animation: AnimationName 30s ease infinite;
  -moz-animation: AnimationName 30s ease infinite;
  animation: AnimationName 30s ease infinite;
  perspective: 3000px !important;
  perspective-origin: 50% 78%;

  .conteudo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    z-index: 2;
    color: var(--branco2);

    .estudos {
      font-family: var(--titulo);
      padding-top: 24px;
      text-transform: uppercase;
      word-spacing: 40%;
    }

    .principal {
      display: flex;
      width: 100%;
      justify-content: space-between;
      padding: var(--padding);

      h1,
      p {
        width: 26%;
      }

      h1 {
        font-size: 2.4vw;
        color: var(--branco);
      }

      p {
        text-align: end;
      }
    }

    .rodape {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .destaques {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 40px;

      h3 {
        font-size: 20px;
        font-weight: 500;
        white-space: nowrap;
      }
    }

    /* Logos das empresas: monocromáticos e discretos */
    .empresas {
      display: flex;
      flex-direction: column;
      gap: 10px;

      p {
        font-size: 12px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        opacity: 0.6;
      }
    }
    .logos {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px 22px;

      img {
        height: 18px;
        width: auto;
        opacity: 0.55;
        transition: opacity 0.3s;
      }
      img:hover {
        opacity: 0.9;
      }
      /* B3 e e-SaúdeSP têm muito respiro interno: um pouco maiores para
         ficarem com o mesmo peso visual dos outros */
      img[src$="b3.svg"],
      img[src$="esaude-sp.svg"] {
        height: 22px;
      }
    }
  }

  .divDegrade,
  .divDegrade2 {
    width: 100%;
    position: absolute;
    inset: 0;
    display: flex;
    mix-blend-mode: color-dodge;
    -mix-blend-mode: color-dodge;
    height: 100%;
  }

  .degradeRadial,
  .degradeRadial2 {
    width: 50%;
    height: 155%;
  }

  .divDegrade {
    .degradeRadial {
      background: conic-gradient(
        from 90deg at 50% 50%,
        #f8f8f8 0deg,
        #000 15deg,
        #aaa 100deg,
        #f8f8f8 360deg
      );
    }

    .degradeRadial:nth-child(2) {
      transform: scaleX(-1);
      margin-left: -1px;
    }
  }
  .divDegrade2 {
    opacity: 0;

    .degradeRadial2 {
      background: conic-gradient(
        from 90deg at 50% 50%,
        #000 15deg,
        #aaa 358deg,
        #f8f8f8 360deg
      );
    }

    .degradeRadial2:nth-child(2) {
      transform: scaleX(-1);
      margin-left: -1px;
    }
  }

  .sobreposicao {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      #000000a6 0%,
      rgba(0, 0, 0, 0) 77%,
      #000000c5 100%
    );
  }

  .tela {
    width: 100%;
    padding: var(--padding);
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    top: 27.7%;
    background-color: var(--bg);
    transform: rotateX(90deg) scaleX(0.44);
    transform-origin: center center;
    z-index: 9;
    opacity: 0;
    border-radius: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .conteudoTela {
      margin-top: 40px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;

      h2 {
        font-size: clamp(16px, 6vw, 40px);
        padding-bottom: 2vw;
      }

      p {
        opacity: 0.7;
        padding-bottom: 16px;
      }
    }

    .rolePagina {
      margin-top: 20px;
      position: relative;
      img {
        width: 120px;
      }
      .texto {
        animation: girar 12s infinite linear;
        position: absolute;
        inset: 0;
      }
    }

    .sobreposicaoTela {
      pointer-events: none;
      background-color: var(--bg);
      position: absolute;
      width: 100%;
      height: 100%;
      inset: 0;
      z-index: 9;
    }
  }

  /* Largura limitada pela largura E pela altura da tela: em telas
     largas e baixas o 68svh segura a logo para não cobrir o texto.
     A altura sai do aspect-ratio (proporção do viewBox 38x25). */
  .logoHero {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(34vw, 68vh);
    width: min(34vw, 68svh);
    height: auto;
    aspect-ratio: 38 / 25;
    mix-blend-mode: color-dodge;

    path {
      fill: rgb(145, 145, 145);
    }
  }
}
@keyframes girar {
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-moz-keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media screen and (max-width: 1024px) {
  .divPai {
    perspective-origin: 50% 64%;
  }
}

@media screen and (max-width: 767px) {
  .divPai {
    perspective-origin: 50% 65.1%;
  }
}

.divJuncao {
  width: 100%;
  position: relative;
  margin-top: -1px;
  background-color: var(--bg);
}

/* ───────── SECAO 2 ───────── */
.secao2 {
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* ───────── SECAO 3 ───────── */
.secao3 {
  z-index: 2;

  margin: clamp(60px, 6vw, 6vw) 0;
  h2 {
    font-size: 7vw;
    margin-bottom: 2vw;
  }

  .conteudo {
    display: flex;
    justify-content: space-between;

    /* 5 serviços: 3 na primeira linha, 2 na segunda (6 colunas de grade) */
    .cards {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 1vw;
      width: 62%;

      .cardBordaInterna {
        grid-column: span 2;
        padding-top: clamp(28px, 2.6vw, 2.6vw);

        /* o título não pode passar por baixo do número no canto */
        h3 {
          margin-top: 0;
          margin-right: 64px;
        }

        &:nth-child(n + 4) {
          grid-column: span 3;
        }
      }
    }
  }
}

/* ───────── SECAO 4 ───────── */
.secao4 {
  margin-bottom: clamp(60px, 6vw, 6vw);
}

/* ───────── SECAO 5 ───────── */
.secao5 {
  height: 100dvh;
  padding-bottom: 4px;
  justify-content: center;
  /* overflow-x: hidden; */

  align-items: center;

  .conteudo {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: clamp(20px, 1%, 1%);
    position: relative;

    .titulos {
      h2 {
        font-size: 2vw;
        position: absolute;
        top: 0;
        left: 0;
      }
    }

    a {
      padding: 12px 0;

      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: var(--branco);
      border-bottom: 1px solid rgba(255, 255, 255, 0.6);
      font-family: monospace;
      font-size: 17px;
      background: var(--bg);
      
      cursor: pointer;
      transition: 0.3s;
      overflow: hidden;
    }
    .ui-btn span {
      transition: color 0.3s;
      box-sizing: border-box;
      position: relative;
      display: inline-block;
      text-align: center;
    }
    .ui-btn span::before,
    .ui-btn span::after {
      content: attr(data-text);
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.12s;
    }

    @media (hover: hover) and (min-width: 1024px) {
      .ui-btn:hover span,
      .ui-btn:focus span {
        color: #ffffff;
        animation: glitchSkew 0.5s steps(8) infinite;
      }

      .ui-btn:hover span::before,
      .ui-btn:focus span::before {
        opacity: 0.95;
        color: var(--roxo);
        text-shadow: 1px 0 var(--roxo);
        animation: glitchSliceTop 0.7s steps(5) infinite;
      }

      .ui-btn:hover span::after,
      .ui-btn:focus span::after {
        opacity: 0.95;
        color: var(--ciano);
        text-shadow: -1px 0 var(--ciano);
        animation: glitchSliceBottom 0.62s steps(6) infinite;
      }
    }
  }

  .slides {
    width: 100%;
  }

  .modulos {
    display: flex;
    align-items: end;
    width: max-content;
    gap: 4px;

    .divImg {
      position: relative;
      height: 40%;
      overflow: hidden;
      display: flex;
      align-items: end;
      border-radius: 12px;
    }

    img {
      /* cresce com a largura da tela, mas as duas fileiras de módulos + o título
         (~180px) precisam caber na altura da seção (100dvh): em telas muito
         largas ou baixas a imagem para de crescer */
      width: max(100px, min(10vw, calc((100vh - 180px) / 3.6)));
      width: max(100px, min(10vw, calc((100dvh - 180px) / 3.6)));
    }
  }

  .slideSuperior,
  .slideInferior {
    display: flex;
    width: 100%;
    position: relative;
  }
  .slideSuperior {
    justify-content: start;

    margin-bottom: 4px;
  }

  .slideInferior {
    justify-content: end;

    /* .modulos{
      align-items: start;
    }
    .divImg{
      
      align-items: start;
    } */
  }
}
@keyframes glitchSliceTop {
  0%   { clip-path: inset(6% 0 80% 0); transform: translate(-3px, 0); }
  20%  { clip-path: inset(20% 0 65% 0); transform: translate(3px, -1px); }
  40%  { clip-path: inset(0%  0 90% 0); transform: translate(-2px, 1px); }
  60%  { clip-path: inset(32% 0 55% 0); transform: translate(2px, 0); }
  80%  { clip-path: inset(10% 0 75% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(6% 0 80% 0);  transform: translate(-3px, 0); }
}

@keyframes glitchSliceBottom {
  0%   { clip-path: inset(70% 0 5% 0);  transform: translate(3px, 0); }
  20%  { clip-path: inset(50% 0 30% 0); transform: translate(-3px, 1px); }
  40%  { clip-path: inset(85% 0 0% 0);  transform: translate(2px, -1px); }
  60%  { clip-path: inset(55% 0 25% 0); transform: translate(-2px, 0); }
  80%  { clip-path: inset(78% 0 8% 0);  transform: translate(3px, 0); }
  100% { clip-path: inset(70% 0 5% 0);  transform: translate(3px, 0); }
}

@keyframes glitchSkew {
  0%, 100% { transform: skewX(0deg); }
  20%      { transform: skewX(-2deg); }
  40%      { transform: skewX(1.5deg); }
  60%      { transform: skewX(-1deg); }
  80%      { transform: skewX(0.8deg); }
}
/* ───────── SECAO 6 ───────── */
.secao6 {
  margin: clamp(60px, 6vw, 6vw) 0;
}

/* ───────── SECAO 7 ───────── */
.secao7 {
  flex-direction: row;
  gap: var(--padding);
  padding-top: 10vh;

  .depoimentos {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: 20px;

    .cardBordaInterna {
      flex: 1 1 300px;
      max-width: 100%;

      .pessoa {
        display: flex;
        gap: clamp(10px, 3%, 3%);
        margin-bottom: 20px;

        img {
          border-radius: 50%;
          width: clamp(45px, 4vw, 4vw);

          object-fit: cover;
        }

        .nome {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: start;

          h3 {
            margin: 0;
            margin-bottom: 0px;

            font-size: clamp(16px, 1.4vw, 1.4vw);
          }
        }
      }
    }

  }

  .depoimento--vazio {
    background-color: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.22);

    &:before,
    &:after {
      display: none;
    }

    a {
      color: inherit;
      text-decoration: underline;
    }
  }

  .video {
    width: 50vh;

    .video-container-vertical {
      position: relative;
      width: 100%;
      /* max-width: 420px; */
      aspect-ratio: 9 / 15;
      border-radius: 12px;
      overflow: hidden;
    }

    .video-container-vertical video {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 12px;
    }

    .video-overlay-vertical {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(8, 8, 30, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.3s ease;
      z-index: 2;
    }

    .play-btn-vertical {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.2);
      color: white;
      font-size: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition:
        transform 0.2s ease,
        background 0.3s ease;
    }

    .play-btn-vertical:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: scale(1.1);
    }
  }
}

/* ───────── TRANSICAO 8 9 ───────── */

.transicao {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  margin-top: clamp(80px, 10vw, 10vw);
}

/* ───────── SECAO 8 ───────── */
.secao8 {
  height: 100%;
  background-color: var(--bg);
  align-items: center;
  justify-content: center;
  mask-image: url("img/mascara-sobre.svg");
  mask-repeat: no-repeat;
  mask-size: 5000vw;
  /* Zoom concêntrico, como no projeto original: parte do centro da palavra
     (50,9%, a letra B) e não desliza para os lados; o script.js só desce a
     posição vertical até o fim. Começa a 95% de altura, na barra de baixo do
     B (ela cobre a tela inteira no início, em telas largas e em tablet).
     Começar a 50%, na barra do meio, fazia a máscara cair no vão do B e
     deixava ~25% da rolagem só com o fundo da seção, sem letras, antes da
     palavra surgir. */
  mask-position: 50.9% 95%;
  z-index: 2;

  .conteudo {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-bottom: clamp(20px, 1%, 1%);

    p {
      width: clamp(360px, 32%, 32%);
    }
  }
  .textosScroll {
    width: 100%;

    div {
      display: flex;
      width: max-content;

      h2 {
        /* 17dvh: em tela muito larga (ultrawide) os 3 letreiros passavam da altura */
        font-size: min(8vw, 17vh);
        font-size: min(8vw, 17dvh);
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.88);
      }
    }
    .letreiroTransparente {
      opacity: 0.5;
    }
  }
  .sobreposicao {
    width: 100%;
    height: 100%;
    background-color: var(--azul);
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
  }
}

/* ───────── SECAO 9 ───────── */
.secao9 {
  margin-top: 1px;
  height: 100%;
  /* Fundo provisório: troque pela foto (ex.: url("img/foto-lucas.webp"))
     mantendo background-position/size. */
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(0, 79, 255, 0.55), transparent 70%),
    radial-gradient(40% 50% at 92% 85%, rgba(164, 120, 232, 0.35), transparent 70%),
    #0d1114;
  background-position: center bottom;
  background-size: cover;
  position: absolute;
  inset: 0;

  &:before {
    content: "";
    width: 100%;
    height: 100%;
    background:
      linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 3.34%,
        rgba(0, 0, 0, 0.32) 34.77%
      ),
      linear-gradient(
        57deg,
        rgba(0, 0, 0, 0.9) 31.91%,
        rgba(0, 0, 0, 0.32) 80.47%
      );
    position: absolute;
    inset: 0;
  }

  .conteudo {
    display: flex;
    height: 100%;
    justify-content: space-between;
    flex-direction: column;
    color: var(--branco);
    position: relative;
    width: 68%;

    .paragrafos {
      display: flex;
      flex-direction: column;
      gap: clamp(16px, 1vw, 1vw);
      padding: var(--padding);

      p {
        font-size: clamp(16px, min(1.6vw, 3.2vh), 1.6vw);
      }
    }

    .social {
      margin-top: min(10%, 14vh);
      display: flex;
      gap: 40px;

      .redeSocial {
        display: flex;
        align-items: center;
        gap: 8px;
        color: inherit;
        text-decoration: none;
        transition: opacity 0.3s;
        cursor: pointer;

        &:hover {
          opacity: 0.75;

          p {
            text-decoration: underline;
            text-underline-offset: 3px;
          }
        }

        h3 {
          font-weight: 500;
          font-size: 28px;
        }

        p {
          opacity: 0.7;
        }
      }
    }
  }
}

/* ───────── FOOTER ───────── */
footer {
  width: 100%;
  padding: var(--padding2);
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: -1px;

  &:before {
    content: "";
    width: 100%;
    height: 100%;
    background:
      linear-gradient(180deg, #000 10.19%, rgba(0, 0, 0, 0.32) 88.53%),
      linear-gradient(
        78deg,
        rgba(0, 0, 0, 0.9) 1.82%,
        rgba(0, 0, 0, 0.32) 83.97%
      );
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* Fundo provisório no lugar do vídeo */
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(0, 79, 255, 0.45), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(33, 189, 239, 0.25), transparent 70%),
    #0d1114;

  .conteudo {
    width: 100%;
    display: flex;
    align-items: end;
    flex-direction: column;
    z-index: 2;
    margin-bottom: -13vw;
  }

  h2 {
    color: var(--branco);
    font-size: 8vw;
    text-align: end;
    margin-bottom: 4vw;
    line-height: 8vw;
  }

  .faq {
    width: 50%;
    max-width: 600px;
    z-index: 2;
  }
  .faq__abas {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
  }
  .faq__aba {
    font-family: var(--poppins);
    font-size: 14px;
    font-weight: 500;
    color: var(--branco2);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .faq__aba:hover {
    color: var(--branco);
  }
  .faq__aba--ativa {
    color: var(--branco);
    background: rgba(0, 79, 255, 0.35);
    border-color: rgba(0, 79, 255, 0.8);
  }
  .faq__list {
    display: flex;
    flex-direction: column;
  }
  .faq__list[hidden] {
    display: none;
  }
  .faq__answer a {
    color: var(--branco);
  }
  .rodape-assinatura {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);

    a {
      color: inherit;
    }
  }
  .faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .faq__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    font-size: 16px;
    font-family: var(--poppins);
    font-weight: 500;
    color: var(--branco);
    user-select: none;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
  }
  .faq__chev {
    width: 16px;
    height: 16px;
    color: var(--branco2);
    transition: transform 0.3s ease;
    flex: 0 0 16px;
  }
  .faq__item--open .faq__chev {
    transform: rotate(180deg);
  }
  .faq__body {
    display: grid;
    grid-template-rows: 0fr;
    transition:
      grid-template-rows 0.3s ease,
      padding-bottom 0.3s ease;
    padding-bottom: 0;
  }
  .faq__item--open .faq__body {
    grid-template-rows: 1fr;
    padding-bottom: 22px;
  }
  .faq__answer {
    overflow: hidden;
    font-size: 14.7px;
    line-height: 1.75;
    color: var(--branco2);
    max-width: 720px;
  }
}

/* ─────────────────────────────────────────
   MODAL FORMULÁRIO
───────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
}

.modal-overlay.ativo {
  pointer-events: all;
}

.modal-container {
  position: relative;
  background: #11171b;
  border: 1px solid var(--borda);
  border-radius: 28px;
  width: 100%;
  max-width: 500px;
  /* Nunca passa da altura da tela (notebook, celular em paisagem, zoom): só o
     miolo (.modal-rolagem) rola e o botão de fechar fica sempre à vista.
     A 1ª linha é o plano B para navegadores sem dvh. */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  /* NÃO colocar filter: blur() aqui. Era o estado inicial de um blur-in,
     mas o abrirModal() anima só opacity/scale/y — o filter nunca era
     zerado e o formulário ficava borrado e ilegível de forma permanente.
     A entrada do modal é feita pelo GSAP (opacity + scale + y).
     Se um dia quiser o blur-in de volta, anime-o pelo gsap.fromTo, nunca
     pelo CSS: assim, se o GSAP falhar, o formulário continua legível. */
}

.modal-rolagem {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(40px, 4vw, 52px) clamp(12px, 3.5vw, 24px);
}

.modal-fechar {
  z-index: 2;
  position: absolute;
  top: clamp(10px, 4vw, 20px);
  right: clamp(10px, 4vw, 20px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.modal-fechar:hover {
  background: rgba(255, 255, 255, 0.13);
  color: white;
  transform: rotate(90deg);
}

.modal-titulo {
  font-family: var(--titulo);
  font-size: clamp(14px, 4vw, 24px);
  text-transform: uppercase;
  font-weight: 500;
  color: white;

  margin-bottom: 8px;
}

.modal-titulo span {
  background: linear-gradient(135deg, var(--ciano) 0%, var(--roxo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-subtitulo {
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(12px, 2.8vw, 14px);
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 12px;
}

.form-input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--poppins);
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
  border-color: rgba(0, 79, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 79, 255, 0.18);
}

.form-input.erro {
  border-color: rgba(255, 90, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.08);
}

.form-erro {
  display: block;
  color: #ff7070;
  font-size: 11.5px;
  margin-top: 5px;
  min-height: 16px;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.form-erro.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mensagem ── */
.form-textarea {
  display: block;
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* ── Consentimento LGPD ── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--poppins);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  cursor: pointer;

  span{
    padding-top: 2px;
  }
}
.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}
.form-consent input[type="checkbox"]:checked {
  background: var(--azul);
  border-color: var(--azul);
}
.form-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-consent a {
  color: var(--ciano);
  text-decoration: underline;
}

/* ── Submit button ── */
.modal-submit {
  width: 100%;
  margin-top: 6px;
  height: 56px;
  background: var(--azul);
  color: #ffffff;
  border: none;
  border-radius: 40px;
  font-family: var(--poppins);
  font-size: clamp(12px, 4vw, 16px);
  font-weight: 500;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 24px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  box-shadow:
    0 8px 24px rgba(0, 79, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(0, 79, 255, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-submit:active:not(:disabled) {
  transform: translateY(0);
}

.modal-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.submit-seta {
  background: #ffffff;
  color: var(--azul);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.modal-submit:hover:not(:disabled) .submit-seta {
  transform: translateX(3px);
}

/* ── Resultado do envio ── */
.form-status {
  font-family: var(--poppins);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  margin-top: 12px;
  min-height: 19px;
  color: rgba(255, 255, 255, 0.75);
}
.form-status.sucesso {
  color: #7ee2b8;
}
.form-status.falha {
  color: #ff7070;
}

/* ── Shake animation ── */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(3px);
  }
}

.shake {
  animation: shake 0.4s ease;
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
  .modal-container {
    border-radius: 20px;
  }
}

/* Tela baixa (notebook de 768px de altura, celular em paisagem, zoom 125–150%):
   o formulário encolhe os espaços para caber inteiro; o que não couber rola
   dentro de .modal-rolagem, com o fechar sempre à vista. */
@media (max-height: 760px) {
  .modal-rolagem {
    padding-top: 28px;
    padding-bottom: 20px;
  }
  .modal-titulo {
    font-size: clamp(14px, 4vw, 21px);
    margin-bottom: 6px;
  }
  .modal-subtitulo {
    margin-bottom: 12px;
  }
  .form-group {
    margin-bottom: 6px;
  }
  .form-input {
    padding: 10px 16px;
  }
  .form-textarea {
    min-height: 84px;
    height: 84px;
  }
  .form-erro {
    min-height: 14px;
    margin-top: 3px;
  }
  .modal-submit {
    height: 50px;
  }
  .form-status {
    margin-top: 8px;
    min-height: 0;
  }
}
@media (max-height: 520px) {
  /* celular em paisagem: nem o subtítulo cabe */
  .modal-subtitulo {
    display: none;
  }
}

/* O título do painel (.conteudoTela) continua no HTML em telas largas, só
   que visualmente oculto: a regra fica no bloco do player, no fim do arquivo. */
@media (min-width: 1000px) {
  .rolePagina {
    display: none !important;
  }
}

/* Hero: número e logos das empresas empilhados à direita dos botões.
   Lado a lado eles só cabem a partir de ~1366px. */
@media (max-width: 1365px) {
  .hero .conteudo {
    .destaques {
      flex-direction: column;
      align-items: end;
      gap: 12px;
      max-width: 44%;
    }
    .empresas {
      align-items: end;
      text-align: end;
    }
    .logos {
      justify-content: end;
    }
  }
}

@media (max-width: 1139px) {
  .hero {
    .conteudo {
      .principal {
        h1,
        p {
          width: 32%;
        }
      }
      .destaques h3 {
        font-size: 16px;
      }
    }

    .logoHero {
      width: min(28vw, 68vh);
      width: min(28vw, 68svh);
    }
  }

  .secao3 {
    .conteudo {
      align-items: center;
    }
    .botoes {
      flex-direction: column;
      align-items: start;
      gap: 8px;
    }
  }


  .secao8 {
    mask-size: 6000vw;
  }
}

/* Tablet (769 a 1099px): os cards de serviço não cabem ao lado do texto (cada
   título ficava com ~100px e quebrava palavra por palavra, "Produ/Design/e/UX/UI").
   Os botões ficam numa linha e os cards ocupam a largura toda. */
@media (min-width: 769px) and (max-width: 1099px) {
  .secao3 .conteudo {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    .botoes {
      flex-direction: row;
      align-items: center;
      gap: 12px;
    }
    .cards {
      width: 100%;
      gap: 12px;
    }
  }
}

@media (max-width: 875px) {
  .hero {
    .conteudo .principal {
      padding: 0;
      /* espaço da logo 3D embaixo do texto: 52% da largura, mas nunca mais que
         ~38% da altura (em celular na horizontal 52% da largura passava da tela
         e empurrava os botões para fora dela) */
      padding-bottom: min(52%, 38vh);
      padding-bottom: min(52%, 38svh);

      h1 {
        font-size: 3vw;
      }
      p {
        width: 46%;
        font-size: clamp(14px, 1.8vw, 1.8vw);
      }
    }
    .logoHero {
      top: 57%;
      width: min(50vw, 50vh);
      width: min(50vw, 50svh);
    }
  }
}

@media (max-width: 768px) {
  :root {
    --padding: 5vw;
    --padding2: clamp(16px, 4vw, 4vw);
  }

  .botoes {
    gap: 4vw;
    justify-content: space-between;

    width: 100%;
  }
  .botao {
    padding: 2.2vw 4vw;
  }
  .botaoPrimario {
    padding: 2vw calc(clamp(20px, 13vw, 44px) + 4vw) 2vw 4vw;
  }
  .botao {
    font-size: clamp(12px, 3.4vw, 16px);
    white-space: nowrap;
  }

  .hero {
    .conteudo {
      padding-top: 68px;
      justify-content: start;

      .estudos {
        display: none;
      }
      .principal {
        padding-bottom: 24px;
        flex-direction: column;

        h1,
        p {
          width: 100%;
          text-align: start;
        }

        h1 {
          font-size: 5.3vw;
          padding-bottom: 3vw;
        }

        p {
          font-size: clamp(13px, 3.5vw, 22px);
        }
      }

      .rodape {
        .destaques {
          width: 100%;
          position: absolute;
          bottom: 5%;
          left: 0;

          flex-direction: column;
          align-items: center;
          gap: 14px;
          /* a regra de até 1139px limita a 44% para caber ao lado dos
             botões; no celular o bloco ocupa a largura toda */
          max-width: none;
          padding: 0 var(--padding);

          .empresas {
            align-items: center;
            text-align: center;
          }
          .logos {
            justify-content: center;
            gap: 10px 18px;

            img {
              height: 15px;
            }
            img[src$="b3.svg"],
            img[src$="esaude-sp.svg"] {
              height: 18px;
            }
          }
        }
      }
    }
    .logoHero {
      top: 63%;
      width: min(56vw, 40vh);
      width: min(56vw, 40svh);
    }

    .divDegrade,
    .divDegrade2 {
      width: 170vw;
      left: 50%;
      transform: translateX(-50%);
    }

    .tela {
      transform: rotateX(90deg) scaleX(0.7);
    }
  }
  .textoLongo {
    font-size: 6vw;
  }
  .secao3 {
    h2 {
      font-size: 9.3vw;
      margin-bottom: 5vw;
    }
    .conteudo {
      flex-direction: column;
      .botoes {
        flex-direction: row;
        margin-bottom: 40px;
      }
      .cards {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;

        .cardBordaInterna,
        .cardBordaInterna:nth-child(n + 4) {
          grid-column: auto;
          width: 100%;
          p {
            font-size: 16px;
          }

          h3 {
            font-size: 6vw;
          }
        }
      }
    }
  }
  .secao4 {
    margin-bottom: 0;
  }

  .secao5 {
    justify-content: space-between;
    padding-bottom: 28px;
    .modulos img {
      /* 100px em celular de altura normal; encolhe em telas baixas (360x640 passava
         12px da tela) */
      width: min(100px, calc((100vh - 300px) / 3.6));
      width: min(100px, calc((100dvh - 300px) / 3.6));
    }
    .cardSubtitulo {
      margin-top: 56px;
      margin-bottom: 24px;
    }
    .conteudo {
      flex-direction: column;
      align-items: center;
      margin-bottom: 32px;

      .titulos {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 14vw;
        h2 {
          font-size: 13vw;

          left: auto;
        }
      }
    }
  }

  .secao7 {
    padding-top: 0;
    flex-direction: column;
    .depoimentos {
      width: 100%;
      gap: 20px;
    }
    .video {
      width: 100%;
    }
  }

  .transicao {
    margin-top: 0;
  }

  .secao8 {
    .conteudo {
      flex-direction: column;
      padding-bottom: 56px;
      p {
        width: 100%;
        font-size: 16px;
        padding-bottom: 20px;
      }
    }
    .textosScroll {
      display: flex;
      flex-direction: column;
      gap: 3vw;
      div {
        align-items: center;
        gap: 2vw;
        h2 {
          font-size: 8vw;
        }

        img {
          width: 8vw;
        }
      }
    }
  }

  footer {
    padding-top: 80px;
    padding-bottom: 80px;
    .conteudo {
      margin-bottom: 32px;
      align-items: start;

      h2 {
        text-align: start;
        font-size: 8.6vw;
        padding-bottom: 3vw;
      }
    }
    .faq {
      width: 100%;
    }
  }
}

@media (max-height: 680px) {
  .rolePagina {
    display: none;
  }
}

@media (max-width: 500px) {
  .botaoSecundario {
    flex: 1;
  }
}


@media (max-width: 379px) {
  .botaoSecundario {
    img {
      display: none;
    }
  }
}

/* ───────── SOBRE · composição compacta ─────────
   Vale no celular em pé (até 768px de largura) e em telas largas porém baixas
   (até 560px de altura: celular em paisagem, zoom de 200% no notebook).
   - Com 9000vw a barra de cima do B da máscara fica mais alta que a tela e,
     começando no topo (2%), o zoom parte de dentro dela, sem vão e sem trecho
     vazio até a palavra "SOBRE" surgir.
   - A palavra "SOBRE" é a máscara da .secao8: 170px de largura, ~33px de altura,
     a 14% da altura da tela. O texto começa 20px abaixo dela, em qualquer altura
     de tela. Os valores acompanham fundadorMaskP/S (gsap.matchMedia "compacto")
     do script.js, que usa a mesma condição. */
@media (max-width: 768px), (min-width: 769px) and (max-height: 560px) {
  .secao8 {
    mask-size: 9000vw;
    mask-position: 50.9% 2%;
  }
  .secao9 {
    --sobre-y: 0.14;
    --sobre-h: 33px;
    --sobre-pad: 5vw;
    padding: var(--sobre-pad) var(--sobre-pad) 40px;
    .conteudo {
      width: 100%;
      justify-content: flex-start;
      /* o --sobre-pad do topo da .secao9 e 1px da margem já empurram o texto */
      padding-top: calc(
        (100dvh - var(--sobre-h)) * var(--sobre-y) + var(--sobre-h) + 20px - var(--sobre-pad) - 1px
      );

      .paragrafos {
        padding: 0;
      }
      .social {
        /* a folga da tela vai para cima do LinkedIn/Currículo, e o texto fica
           colado na palavra; em tela baixa sobra só o respiro de 16px */
        margin-top: auto;
        padding-top: 16px;
        /* respiro mínimo entre LinkedIn e Currículo; o que sobrar da largura
           também vai para o meio (space-between) */
        gap: 6vw;
        width: 100%;
        justify-content: space-between;
        .redeSocial {
          h3 {
            font-size: 5vw;
          }
          p {
            font-size: 3vw;
          }
          img {
            /* o width="62" do HTML deixava a caixa do ícone ~15px mais larga que
               o desenho (que é quadrado) e comia o espaço entre os dois links */
            width: auto;
            height: 12vw;
          }
        }
      }
    }
  }
}

/* Hero em celular na horizontal (até 875px de largura e 520px de altura).
   A composição de celular em pé (texto empilhado, logos de empresas coladas no
   rodapé, 52% da largura reservados para a logo 3D) passa de 700px de altura e
   empurrava os botões para fora da tela. Aqui o hero volta à composição de
   tela larga (título à esquerda, texto à direita, botões e números no rodapé),
   com tipografia e espaços medidos pela altura. */
@media (max-width: 875px) and (max-height: 520px) and (orientation: landscape) {
  .hero {
    .conteudo {
      padding-top: 52px;
      justify-content: space-between;
      .estudos {
        display: none;
      }
      .principal {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 16px;
        h1 {
          width: 36%;
          padding-bottom: 0;
          font-size: clamp(14px, 6.4vh, 26px);
          line-height: 1.15;
        }
        p {
          width: 44%;
          text-align: end;
          font-size: clamp(11px, 3.7vh, 14px);
          line-height: 1.35;
        }
      }
      .rodape {
        align-items: flex-end;
        padding: 0 16px 12px;
        .botoes {
          width: auto;
          gap: 10px;
        }
        .destaques {
          position: static;
          width: auto;
          max-width: 46%;
          padding: 0;
          gap: 6px;
          align-items: flex-end;
          h3 {
            font-size: 13px;
          }
          .empresas {
            gap: 4px;
            align-items: flex-end;
            text-align: end;
            p {
              font-size: 10px;
            }
          }
          .logos {
            justify-content: flex-end;
            gap: 4px 12px;
            img {
              height: 11px;
            }
            img[src$="b3.svg"],
            img[src$="esaude-sp.svg"] {
              height: 13px;
            }
          }
        }
      }
    }
    .logoHero {
      top: 52%;
      width: min(34vw, 46svh);
    }
  }
}

/* Paisagem baixa (qualquer largura): o texto abre em linhas longas e os links
   ficam do tamanho de um botão, em vez de escalar com a largura da tela. */
@media (max-height: 560px) and (orientation: landscape) {
  .secao9 {
    --sobre-pad: 16px;
    padding-bottom: 16px;
    .conteudo {
      .paragrafos {
        gap: 8px;
        max-width: 760px;
        p {
          font-size: 13px;
          line-height: 1.4;
        }
      }
      .social {
        width: auto;
        justify-content: flex-start;
        gap: 28px;
        padding-top: 10px;
        .redeSocial {
          h3 {
            font-size: 17px;
          }
          p {
            font-size: 12px;
          }
          img {
            height: 34px;
          }
        }
      }
    }
  }
}

/* Celular pequeno na horizontal (568x320, iPhone SE antigo): mais um degrau */
@media (max-height: 380px) and (orientation: landscape) {
  .secao9 .conteudo {
    .paragrafos {
      gap: 6px;
      p {
        font-size: 12px;
        line-height: 1.3;
      }
    }
    .social {
      padding-top: 6px;
      .redeSocial img {
        height: 28px;
      }
      .redeSocial h3 {
        font-size: 15px;
      }
    }
  }
}

/* Celular baixo (barras do navegador à mostra, iPhone SE): o texto do Sobre
   encolhe um pouco para caber entre a palavra "SOBRE" e os links, sem cortar o
   fim da seção (a .transicao tem overflow: hidden). */
@media (max-width: 768px) and (max-height: 760px) and (orientation: portrait) {
  .secao9 {
    padding-bottom: 24px;
    .conteudo {
      .paragrafos {
        gap: 12px;
        p {
          font-size: 14.5px;
          line-height: 1.45;
        }
      }
      .social {
        padding-top: 12px;
      }
    }
  }
}
@media (max-width: 768px) and (max-height: 680px) and (orientation: portrait) {
  .secao9 .conteudo .paragrafos p {
    font-size: 14px;
  }
}
/* Celular estreito e baixo (320x568, iPhone SE 1ª geração) */
@media (max-width: 360px) and (max-height: 600px) and (orientation: portrait) {
  .secao9 {
    padding-bottom: 16px;
    .conteudo {
      .paragrafos {
        gap: 8px;
        p {
          font-size: 13px;
          line-height: 1.4;
        }
      }
      .social {
        padding-top: 8px;
      }
    }
  }
}

/* ═════════════════════════════════════════════════════════════════
   PLAYER DO PROCESSO (vive dentro do painel 3D .tela do hero)
   Comportamento (palco, capítulos, tela cheia): criarPlayerProcesso()
   em script.js. Os tempos dos capítulos ficam lá, não aqui.
   ═════════════════════════════════════════════════════════════════ */

/* Visualmente oculto, mas lido por leitores de tela */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Título do painel: sempre no HTML, mas só aparece em tablet em pé, onde
   sobra altura. No desktop e no celular a capa do vídeo já traz o título. */
.hero .tela .conteudoTela {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* O indicador "role a página" não cabe junto do player; o aviso de rolagem
   volta no fim do vídeo (.player-continuar) */
.hero .tela .rolePagina {
  display: none;
}

/* ── medidas ──
   --reserva = tudo que fica em volta do vídeo (respiro do painel, barra,
   capítulos). A largura do vídeo sai da ALTURA que sobra, para nunca passar
   da tela, e é a mesma da barra de controles. */
.player {
  --alt: 100vh;
  --barra: 48px;
  --capitulos: 44px;
  --vao: 10px;
  --reserva-topo: var(--padding);
  --reserva-extra: 0px;
  --reserva: calc(
    var(--reserva-topo) + var(--padding) + var(--reserva-extra) + var(--barra) +
      var(--capitulos) + 2 * var(--vao)
  );
  --largura: min(100%, 1600px, calc((var(--alt) - var(--reserva)) * 16 / 9));

  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--vao);
  /* Sem cliques enquanto o painel ainda está girando: só depois que ele
     chega na posição de leitura (data-palco, ligado pelo script). */
  pointer-events: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@supports (height: 100svh) {
  .player {
    --alt: 100svh;
  }
}

.player[data-palco] {
  pointer-events: auto;
}

.player-tela,
.player-barra {
  width: var(--largura);
}

.player-tela {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  /* clip-path recorta direito no Safari, mesmo com o vídeo em camada 3D;
     overflow:hidden + border-radius costuma falhar ali */
  clip-path: inset(0 round 12px);
  background: #080b0e;
}

.player-capa,
.player-capa img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.player-capa img {
  object-fit: cover;
}

.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.player.tocou video {
  opacity: 1;
}

.player.tocou .player-capa {
  visibility: hidden;
  transition: visibility 0s 0.25s;
}

/* botão de play da capa: reaproveita .botao.botaoSecundario.branco */
.player .player-play-grande {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15%;
  margin-inline: auto;
  width: max-content;
  height: 52px;
  padding: 0 22px 0 18px;
  z-index: 2;

  svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
  }

  span {
    white-space: nowrap;
  }

  .player-duracao {
    margin-left: 6px;
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
  }
}

.player.tocou .player-play-grande,
.player[data-estado="erro"] .player-play-grande {
  display: none;
}

.player-erro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  z-index: 4;
  margin: 0 16px;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--branco);
  background: rgba(13, 17, 20, 0.92);
  border-radius: 12px;

  a {
    color: var(--ciano);
  }
}

/* aviso de rolagem, só no fim do vídeo */
.player-continuar {
  position: absolute;
  top: 4%;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--titulo);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--branco2);
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
  pointer-events: none;

  svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

.player[data-estado="fim"] .player-continuar {
  opacity: 1;
}

/* ── as seis etapas (painel de texto sobre o vídeo) ── */
.player-painel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 20px);
  padding: clamp(16px, 2.4vw, 36px);
  overflow: auto;
  background: rgba(13, 17, 20, 0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player[data-etapas="aberto"] .player-painel {
  opacity: 1;
  pointer-events: auto;
}

.player-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
}

.painel-titulo {
  padding-right: 52px;
  font-family: var(--titulo);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  color: var(--branco);
}

.painel-lista {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.1vw, 16px);

  li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: clamp(10px, 1.2vw, 18px);
    border: 1px solid var(--borda);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  p {
    font-size: clamp(12px, 1.05vw, 15px);
    line-height: 1.45;
    color: var(--texto-suave);
  }

  .titulo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--titulo);
    font-size: clamp(14px, 1.3vw, 19px);
    font-weight: 500;
    color: var(--branco);
  }

  .n {
    color: var(--ciano);
  }

  .saida {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(11px, 0.9vw, 13px);
    color: rgba(255, 255, 255, 0.55);
  }
}

.painel-nota {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ── barra de controles (fica abaixo do vídeo, nunca sobre ele: os dois
   vídeos têm informação nas bordas) ── */
.player-barra {
  display: flex;
  flex-direction: column;
  gap: var(--vao);
}

.pb-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--barra);
}

.pb-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--branco);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--borda);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;

  &:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

.pb-btn[hidden] {
  display: none;
}

/* ícones que trocam conforme o estado */
.pb-play {
  .ic-pause,
  .ic-replay {
    display: none;
  }
}

.player[data-estado="tocando"] .pb-play {
  .ic-play {
    display: none;
  }
  .ic-pause {
    display: block;
  }
}

.player[data-estado="fim"] .pb-play {
  .ic-play {
    display: none;
  }
  .ic-replay {
    display: block;
  }
}

.pb-tela-cheia .ic-recolher {
  display: none;
}

.player.em-tela-cheia .pb-tela-cheia {
  .ic-expandir {
    display: none;
  }
  .ic-recolher {
    display: block;
  }
}

.pb-tempo {
  flex: none;
  min-width: 88px;
  font-family: var(--titulo);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--texto-suave);
}

.pb-progresso {
  --p: 0%;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.pb-progresso input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  /* o arrasto é do player, não da rolagem da página */
  touch-action: none;
}

.pb-progresso input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--azul2) var(--p),
    rgba(255, 255, 255, 0.18) var(--p)
  );
}

.pb-progresso input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
}

.pb-progresso input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.pb-progresso input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--azul2);
}

.pb-progresso input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
}

/* capítulos: a linha de cima de cada um enche com o avanço dentro dele,
   como a barra segmentada do próprio vídeo */
.pb-capitulos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  height: var(--capitulos);
}

.pb-cap {
  --cap-p: 0%;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 0;
  overflow: hidden;
  font-family: var(--titulo);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
  color: var(--texto-suave);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
  }

  &::before {
    right: 0;
    background: rgba(255, 255, 255, 0.14);
  }

  &::after {
    width: var(--cap-p);
    background: var(--azul2);
  }

  &:hover,
  &[aria-current="step"] {
    color: #ffffff;
  }

  .n {
    flex: none;
    color: var(--ciano);
  }

  .nome {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* foco visível em tudo que dá para operar com o teclado */
.player button:focus-visible,
.player a:focus-visible,
.player input:focus-visible {
  outline: 2px solid var(--ciano);
  outline-offset: 3px;
}

/* ── telas e formatos ── */

/* tablet e telas menores: o header fixo (logo e menu) passa por cima do
   canto do painel, então o conteúdo começa abaixo dele */
@media (max-width: 999px) {
  .hero .tela {
    padding-top: 76px;
  }
  .player {
    --reserva-topo: 76px;
  }
  .painel-lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* tablet em pé: sobra altura, então o título aparece acima do vídeo */
@media (min-width: 768px) and (max-width: 999px) and (min-height: 720px) {
  .hero .tela .conteudoTela {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }
  .player {
    --reserva-extra: 110px;
  }
}

/* telas baixas: sem a faixa de capítulos (eles seguem na barra do teclado
   e no painel de etapas) */
@media (max-height: 699px) {
  .player {
    --capitulos: 0px;
  }
  .pb-capitulos {
    display: none;
  }
}

/* celular em pé: vídeo vertical, quase a largura toda do painel */
@media (max-width: 767px) and (orientation: portrait) {
  .player {
    --largura: min(100%, calc((var(--alt) - var(--reserva)) * 9 / 16));
  }
  .player-tela {
    aspect-ratio: 9 / 16;
  }
  .pb-btn {
    width: 40px;
    height: 40px;
  }
  .pb-linha {
    gap: 8px;
  }
  .pb-tempo {
    display: none;
  }
  .pb-cap {
    justify-content: center;
    padding-inline: 0;
  }
  .pb-cap .nome {
    display: none;
  }
  .painel-lista {
    grid-template-columns: 1fr;
  }
  .painel-lista .saida {
    display: none;
  }
}

/* celular deitado: barra compacta e sem a folga extra do topo (o header
   fica nos cantos, longe do vídeo centralizado) */
@media (max-height: 520px) {
  .hero .tela {
    padding-top: var(--padding);
  }
  .player {
    --barra: 44px;
    --vao: 8px;
    --reserva-topo: var(--padding);
  }
}

/* tela cheia (a classe é posta pelo script; funciona também no Safari,
   que usa o prefixo -webkit-) */
.player.em-tela-cheia {
  --alt: 100vh;
  --reserva: calc(32px + var(--barra) + var(--capitulos) + 2 * var(--vao));
  --largura: min(100%, calc((var(--alt) - var(--reserva)) * 16 / 9));
  justify-content: center;
  padding: 16px;
  background: #000000;
}

@supports (height: 100svh) {
  .player.em-tela-cheia {
    --alt: 100svh;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .player.em-tela-cheia {
    --largura: min(100%, calc((var(--alt) - var(--reserva)) * 9 / 16));
  }
}

/* menos movimento: sem transições no player e sem o fundo animado do hero
   (o giro 3D do painel também vira um fade; isso fica em script.js) */
@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
    -webkit-animation: none;
  }
  .hero .tela .rolePagina .texto {
    animation: none;
  }
  .player *,
  .player *::before,
  .player *::after {
    transition: none !important;
  }
}

/* enquanto o painel está em posição de leitura, o fundo animado do hero
   (escondido atrás dele) para de repintar: poupa GPU para decodificar o vídeo */
.hero.em-palco {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

/* ═════════════════════════════════════════════════════════════
   BOOST VISUAL · efeitos novos da home
   Tudo abaixo é acréscimo: o que já existia acima continua valendo.
   Os efeitos de cursor são ligados por home-extras.js (classes ativo,
   com-cursor, imanta...). Sem esse arquivo a página é a de antes. "Pausar o movimento" põe a classe lf-pausado
   no <html>; "reduzir movimento" do sistema desliga o que se mexe.
   ═════════════════════════════════════════════════════════════ */

:root {
  --saida: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────── FOCO VISÍVEL (teclado) ───────── */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="tab"]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="range"]:focus-visible {
  outline: 2px solid var(--ciano);
  outline-offset: 3px;
}

/* ───────── BOTÕES DO LINKEDIN: mesmo hover do "VAMOS CONVERSAR" ─────────
   O ícone fica num círculo branco que, no hover (ou no foco do teclado), se
   expande e cobre o botão. É a mecânica do .botaoPrimario (círculo .divSeta
   com transição de largura), aplicada aos botões secundários. */
.botao.botaoIcone {
  position: relative;
  justify-content: start;
  white-space: nowrap;
  padding: 8px calc(clamp(20px, 13vw, 44px) + 20px) 8px 20px;
  opacity: 1;
  transform: none;
}
.botao.botaoIcone:hover {
  opacity: 1;
  transform: none;
}
.botaoIcone .divSeta {
  position: absolute;
  right: 8px;
  width: clamp(20px, 13vw, 44px);
  height: clamp(20px, 13vw, 44px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  background-color: #ffffff;
  transition: width 0.3s;
}
.botaoIcone .divSeta img {
  width: 20px;
}
.botaoIcone:hover .divSeta,
.botaoIcone:focus-visible .divSeta {
  width: calc(100% - 16px);
}
@media (max-width: 768px) {
  .botao.botaoIcone {
    padding: 2vw calc(clamp(20px, 13vw, 44px) + 4vw) 2vw 4vw;
  }
}

/* ───────── PAUSAR O MOVIMENTO ───────── */
.pausa-movimento {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-left: auto;
  margin-right: 8px;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #ffffff;
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.pausa-movimento[hidden] {
  display: none;
}
.pausa-movimento:hover {
  background: rgba(255, 255, 255, 0.14);
}
.pausa-movimento svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.pausa-movimento .ic-retomar {
  display: none;
}
.pausa-movimento[aria-pressed="true"] {
  background: #ffffff;
  color: #000000;
}
.pausa-movimento[aria-pressed="true"] .ic-pausa {
  display: none;
}
.pausa-movimento[aria-pressed="true"] .ic-retomar {
  display: block;
}
@media (max-width: 768px) {
  .pausa-movimento {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .pausa-movimento .pausa-rotulo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* pausa geral: congela toda animação de CSS da página */
html.lf-pausado *,
html.lf-pausado *::before,
html.lf-pausado *::after {
  animation-play-state: paused !important;
}

/* ───────── O QUE EU FAÇO · cartões com profundidade ───────── */
.secao3 .cards {
  perspective: 1100px;
}
.secao3 .cardBordaInterna {
  --ax: 0;
  --ay: 1;
  --ang: 0deg;
  rotate: var(--ax) var(--ay) 0 var(--ang);
  translate: 0 0;
  transition:
    rotate 0.6s var(--saida),
    translate 0.6s var(--saida),
    box-shadow 0.5s;
}
.secao3 .cardBordaInterna.ativo {
  translate: 0 -4px;
  box-shadow: 0 26px 44px -18px rgba(0, 79, 255, 0.6);
  transition:
    rotate 0.18s ease-out,
    translate 0.4s var(--saida),
    box-shadow 0.4s;
}
.luz-cartao {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 38%),
    rgba(33, 189, 239, 0.26),
    transparent 62%
  );
}
.cardBordaInterna.ativo .luz-cartao {
  opacity: 1;
}
.secao3 .cardBordaInterna .icone span {
  transition:
    scale 0.4s var(--saida),
    color 0.3s;
}
.secao3 .cardBordaInterna.ativo .icone span {
  scale: 1.18;
  color: #7fe0ff;
}

/* ───────── FERRAMENTAS E SKILLS · módulos ───────── */
.secao5 .slideSuperior,
.secao5 .slideInferior {
  perspective: 900px;
}
.secao5 .modulos .divImg {
  --ax: 0;
  --ay: 1;
  --ang: 0deg;
  rotate: var(--ax) var(--ay) 0 var(--ang);
  translate: 0 0;
  transition:
    rotate 0.5s var(--saida),
    translate 0.4s var(--saida),
    box-shadow 0.4s;
}
.secao5 .modulos .divImg.ativo {
  translate: 0 -6px;
  box-shadow: 0 22px 30px -14px rgba(0, 79, 255, 0.7);
  transition:
    rotate 0.16s ease-out,
    translate 0.3s var(--saida),
    box-shadow 0.3s;
}
.secao5 .modulos .divImg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    150px circle at var(--mx, 50%) var(--my, 50%),
    rgba(33, 189, 239, 0.3),
    transparent 65%
  );
  box-shadow: inset 0 0 0 1px rgba(33, 189, 239, 0.55);
}
.secao5 .modulos .divImg.ativo::after {
  opacity: 1;
}
/* derrapagem pela velocidade da rolagem: uma fileira para cada lado */
.secao5.derrapa .slideSuperior .divImg {
  transform: skewX(calc(var(--sk, 0) * 1deg));
}
.secao5.derrapa .slideInferior .divImg {
  transform: skewX(calc(var(--sk, 0) * -1deg));
}

/* ───────── LETREIROS · deriva contínua e inclinação ───────── */
@keyframes deriva-esq {
  to {
    translate: -7% 0;
  }
}
@keyframes deriva-dir {
  from {
    translate: -7% 0;
  }
  to {
    translate: 0 0;
  }
}
.secao8 .letreiroEsq {
  animation: deriva-esq 52s linear infinite alternate;
}
.secao8 .letreiroDir {
  animation: deriva-dir 64s linear infinite alternate;
}
.secao8 .textosScroll {
  transition: transform 0.7s var(--saida);
}
.secao8 .textosScroll h2 {
  transition:
    color 0.4s,
    opacity 0.4s;
}
@media (hover: hover) and (pointer: fine) {
  .secao8 .textosScroll:hover {
    transform: perspective(1400px) rotateX(5deg) skewY(-2.5deg);
  }
  .secao8 .textosScroll:hover h2 {
    color: #ffffff;
  }
  .secao8 .textosScroll:hover .letreiroTransparente {
    opacity: 0.72;
  }
}

/* ───────── SOBRE · fundo de luz (no lugar do "fundo provisório") ───────── */
.secao9 {
  isolation: isolate;
}
.sobre-luzes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sobre-luzes i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.sobre-luzes .sl-a {
  left: -8%;
  top: -6%;
  width: 46vw;
  height: 40vw;
  background: rgba(0, 79, 255, 0.42);
  animation: luz-a 18s ease-in-out infinite;
}
.sobre-luzes .sl-b {
  left: 36%;
  top: 30%;
  width: 38vw;
  height: 30vw;
  background: rgba(164, 120, 232, 0.28);
  animation: luz-b 22s ease-in-out infinite;
}
.sobre-luzes .sl-c {
  right: -8%;
  top: -10%;
  width: 34vw;
  height: 30vw;
  background: rgba(33, 189, 239, 0.26);
  animation: luz-c 26s ease-in-out infinite;
}
.sobre-luzes::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
}
@keyframes luz-a {
  50% {
    transform: translate(5vw, 3vw) scale(1.15);
  }
}
@keyframes luz-b {
  50% {
    transform: translate(-4vw, -3vw) scale(1.12);
  }
}
@keyframes luz-c {
  50% {
    transform: translate(-3vw, 4vw) scale(1.1);
  }
}
/* LinkedIn e Currículo: brilho que segue o cursor */
.secao9 .redeSocial {
  position: relative;
  isolation: isolate;
}
.secao9 .redeSocial::before {
  content: "";
  position: absolute;
  inset: -12px -16px;
  z-index: -1;
  border-radius: 22px;
  border: 1px solid rgba(33, 189, 239, 0);
  background: radial-gradient(
    170px circle at var(--mx, 50%) var(--my, 50%),
    rgba(33, 189, 239, 0.22),
    transparent 70%
  );
  opacity: 0;
  transition:
    opacity 0.3s,
    border-color 0.3s;
}
.secao9 .redeSocial:hover::before,
.secao9 .redeSocial:focus-visible::before {
  opacity: 1;
  border-color: rgba(33, 189, 239, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  .secao9 .redeSocial:hover {
    opacity: 1;
  }
}

/* ───────── RODAPÉ · halo, título que acende, botões magnéticos ───────── */
footer .rodape-halo {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
footer .rodape-halo i {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  translate: var(--hx, 62vw) var(--hy, 30vh);
  transition: translate var(--t) var(--saida);
}
footer .rodape-halo i:nth-child(1) {
  --d: 380px;
  --c: rgba(33, 189, 239, 0.3);
  --t: 0.25s;
}
footer .rodape-halo i:nth-child(2) {
  --d: 680px;
  --c: rgba(0, 79, 255, 0.28);
  --t: 0.6s;
}
footer .rodape-halo i:nth-child(3) {
  --d: 1040px;
  --c: rgba(164, 120, 232, 0.16);
  --t: 1.1s;
}
@keyframes respira {
  50% {
    scale: 1.14;
    opacity: 0.75;
  }
}
@media (hover: none), (pointer: coarse) {
  footer .rodape-halo i {
    translate: 50vw 34vh;
    animation: respira 9s ease-in-out infinite;
  }
}

footer h2.tituloAnimado {
  position: relative;
}
footer.com-lanterna h2.tituloAnimado {
  color: rgba(255, 255, 255, 0.72);
}
footer .lanterna {
  position: absolute;
  inset: 0;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  text-shadow:
    0 0 0.2em rgba(33, 189, 239, 0.8),
    0 0 0.6em rgba(0, 79, 255, 0.6);
  -webkit-mask-image: radial-gradient(
    circle 280px at var(--lx, 50%) var(--ly, 50%),
    #000 0%,
    rgba(0, 0, 0, 0.55) 45%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 280px at var(--lx, 50%) var(--ly, 50%),
    #000 0%,
    rgba(0, 0, 0, 0.55) 45%,
    transparent 100%
  );
}
footer.com-cursor .lanterna {
  opacity: 1;
}
footer .botao {
  translate: var(--tx, 0px) var(--ty, 0px);
  transition:
    translate 0.6s var(--saida),
    opacity 0.3s,
    transform 0.3s;
}
footer .botao.imanta {
  transition:
    translate 0.12s ease-out,
    opacity 0.3s,
    transform 0.3s;
}

/* ───────── MENOS MOVIMENTO ───────── */
@media (prefers-reduced-motion: reduce) {
  .secao8 .letreiroEsq,
  .secao8 .letreiroDir,
  .sobre-luzes i,
  footer .rodape-halo i {
    animation: none;
  }
  .secao8 .textosScroll:hover {
    transform: none;
  }
  .secao3 .cardBordaInterna,
  .secao5 .modulos .divImg,
  footer .botao {
    transition: none;
  }
}
