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

:root {
  /* Marca LF */
  --bg: #0d1114;
  --azul: #004fff;
  --azul2: #116cf8;
  --ciano: #21bdef;
  --roxo: #a478e8;
  --titulo: "Belfast Grotesk", "Poppins", sans-serif;
  --corpo: "Poppins", sans-serif;
  /* Mesmo respiro do cabeçalho da home (logo no mesmo lugar). */
  --padding: clamp(32px, 2vw, 2vw);
  /* Fundo azul do hero e do rodapé: brilho (0 escuro a 1 forte) e saturação. */
  --fundo-brilho: 0.78;
  --fundo-saturacao: 1.5;

  --brancoTitle: rgba(255, 255, 255, 0.9);
  --brancoText: rgba(255, 255, 255, 0.75);
  --pretoTitle: rgba(0, 0, 0, 0.9);
  --pretoText: rgba(0, 0, 0, 0.75);
}

@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;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--corpo);
  color: var(--brancoTitle);
  background-color: var(--bg);
}

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

section {
  padding: 4vw;
}

h1,
h2 {
  font-size: 3.8vw;
  font-family: var(--titulo);
  line-height: 5vw;
  font-weight: 400;
}

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

}

a {
  text-decoration: none;
  border: none;
  outline: none;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 20px;
  font-size: 16px;
  gap: 12px;
}

p {
  color: var(--brancoText);
}

.botaoPrimario {
  background-color: var(--azul);
  color: #fff;
}

.botaoSecundario {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--brancoTitle);
  border: 1px solid rgba(255, 255, 255, 0.22);
  height: 68px;
}

/* Botões com ícone (LinkedIn e Enviar mensagem): o disco branco com o ícone
   escuro se expande e cobre o botão no hover e no foco do teclado, o mesmo
   efeito (e as mesmas cores) do "VAMOS CONVERSAR" da home. */
.botaoPrimario,
.botaoSecundario {
  position: relative;
  min-height: 68px;
  /* espaço do disco (52px) + 8px de cada lado + o respiro de antes */
  padding-right: 72px;
}
.botaoDisco {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50px;
  background-color: #ffffff;
  transition: width 0.3s;
}
.botaoDisco img {
  flex: none;
  width: 52px;
  height: 52px;
}
.botaoPrimario:hover .botaoDisco,
.botaoPrimario:focus-visible .botaoDisco,
.botaoSecundario:hover .botaoDisco,
.botaoSecundario:focus-visible .botaoDisco {
  width: calc(100% - 16px);
}

/* 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: 120px;
  aspect-ratio: 46 / 33;
  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% + 56px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--titulo);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  will-change: opacity, transform;
}

.logoHeader {
  opacity: 0;
  /* Mesmo tamanho da logo do cabeçalho da home. */
  width: 44px;
  height: 44px;
}

@media (max-width: 768px) {
  .preloader-logo {
    width: 88px;
  }
  .preloader-percent {
    top: calc(50% + 44px);
    font-size: 13px;
  }
}

main {
  width: 100%;
  height: 100svh;

  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;

  .midiaBackground {
    &:before {
      content: "";
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, var(--bg) 12.22%, rgba(0, 0, 0, 0) 61.85%);
      position: absolute;
      inset: 0;
      z-index: 1;
    }
  }

  .conteudo {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .cardSubtitulo {
      width: min(324px, 100%);
      height: 49px;
      position: relative;
      border-radius: 40px;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;

      &:before {
        content: "";
        width: 100%;
        height: 100%;
        background-color: rgba(0, 79, 255, 0.25);
        position: absolute;
        z-index: 1;
        border-radius: 40px;
        box-shadow:
          -1px -2px 0 0 rgba(255, 216, 194, 0.2) inset,
          1px 2px 0 0 rgba(255, 216, 194, 0.2) inset;
      }

      video {
        width: 100%;
        object-fit: cover;
        object-position: center;
        height: 100%;
        position: absolute;
      }

      h3 {
        position: relative;
        z-index: 2;
        font-size: 14px;
        color: rgb(223, 223, 223);
        mix-blend-mode: color-dodge;
        font-weight: 500;
      }
    }

    h1,
    h2 {
      margin: 3.5vw 0 2vw;
      width: 74vw;
      text-align: center;
    }

    p {
      font-size: clamp(16px, 1.1vw, 24px);
      line-height: 160%;
      text-align: center;
      width: 53vw;
      /* telas muito largas (ultrawide): linhas de 100+ caracteres cansam */
      max-width: 1000px;
      margin-bottom: 40px;
    }
  }
}

/* Recuo em perspectiva (script.js, tlTransitionHero): ao rolar, o topo inteiro
   recua como uma tela que se afasta para o palco escuro (escala, cantos e
   inclinação para trás, com a borda de baixo como eixo) e escurece pela camada
   ::after (variável --recuo, de 0 a 1), enquanto a frase sobe na frente. */
.hero {
  --recuo: 0;
  transform-origin: 50% 100%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: var(--bg);
  opacity: var(--recuo);
}
html.proj-anim .hero {
  will-change: transform;
}

.midiaBackground {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;

  img,
  video {
    width: 100%;

    object-fit: cover;
    object-position: center;
    position: absolute;
    bottom: 0;
    left: 0;
  }
}
.botoes {
  display: flex;
  gap: 32px;
}

.textoTransicao {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4vw;
  pointer-events: none;

  p {
    font-size: 5vw;
  }
}

.projetos {
  width: 100%;
  padding: 0;
  background-color: var(--bg);
  position: relative;
  z-index: 3;
  margin-top: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4vw;

  a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .titulo {
    display: flex;
    flex-direction: column;
    align-items: center;

    h2 {
      margin-bottom: 12px;
    }
  }

  .projeto {
    width: 60%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6vw;
  }
  img {
    width: 100vw;
    object-fit: cover;
    filter: saturate(0);
  }
}

.div3d {
  margin-top: -1px;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  overflow: hidden;

  h2 {
    position: absolute;
    z-index: 2;
    font-size: 12vw;
    text-shadow: 0 8px 50px rgba(0, 0, 0, 0.55);
  }
}

.animations {
  width: 100%;
  height: 100svh;
  position: relative;
}

footer {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 4vw;
  position: absolute;
  align-items: end;
  gap: 32px;
  z-index: 9;
  top: 0;
  left: 0;
  background-color: var(--bg);

  .midiaBackground {
    img,
    video {
      top: 0;
    }
  }

  .marcaFooter,
  .conteudo {
    position: relative;
    width: 50%;
  }

  .marcaFooter {
    display: flex;
    flex-direction: column;

    h2 {
      font-size: 9vw;
      line-height: 11vw;
    }

    /* © e política empilhados, alinhados à esquerda: lado a lado, o "g" do
       logotipo encostava no texto e quebrava a simetria */
    div {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-top: clamp(6px, 0.8vw, 14px);

      a {
        padding: 0;
        border-radius: 0;
      }
    }
  }
  .conteudo {
    display: flex;
    flex-direction: column;
    align-items: end;
    h2 {
      text-align: start;
      font-size: 3vw;
      line-height: 3.2vw;
      text-align: end;
      margin-bottom: clamp(32px, 2vw, 2vw);
    }
  }
}

@media (max-width: 1385px) {
  .hero {
    .conteudo {
      p {
        width: min(733px, 90vw);
      }
    }
  }
}

@media (max-width: 1250px) {
  footer {
    .marcaFooter {
      div {
        p {
          font-size: 14px;
        }
      }
    }
  }
}

@media (max-width: 1200px) {
  .hero {
    .conteudo {
      h1,
      h2 {
        width: 100%;
        font-size: 4.5vw;
      }
    }
  }

  footer {
    .marcaFooter {
      div {
        flex-direction: column;
      }
    }
  }
}

@media (max-width: 1140px) {
  footer {
    .conteudo {
      width: 600px;
    }
  }
}

@media (max-width: 1004px) {
  footer {
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 80px;
    padding: 80px 20px;
    .conteudo {
      align-items: center;
      width: 100%;
      h2 {
        text-align: center;
      }
    }

    .marcaFooter {
      order: 2;

      div {
        align-items: center;
      }
    }
  }

  .marcaFooter,
  .conteudo {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .hero .conteudo {
    width: 100%;
  }
  .hero .conteudo p {
    width: 100%;
  }
  h1,
  h2,
  .hero .conteudo h1,
  .hero .conteudo h2,
  footer .conteudo h2 {
    font-size: 6.4vw;
    line-height: 7vw;
  }
}

@media (max-width: 600px) {
  a {
    width: 238px;
  }
  h1,
  h2,
  .hero .conteudo h1,
  .hero .conteudo h2,
  footer .conteudo h2 {
    font-size: 6.2vw;
    line-height: 7.4vw;
  }
  .botoes {
    flex-direction: column;
    gap: 16px;
  }

  .hero {
    padding: 40px 4vw 4vw;

    .conteudo {
      align-items: start;

      .cardSubtitulo {
        margin: auto;
      }

      h1,
      h2,
      p {
        text-align: start;
      }

      h1,
      h2 {
        margin: 32px 0px 20px;
      }

      p {
        margin-bottom: 28px;
      }
    }

    .midiaBackground {
      width: 220vw;
      right: 0;
      left: auto;
    }

  }
  .textoTransicao {
    p {
      font-size: 7vw;
      width: 100%;
    }
  }

  .projetos {
    .titulo {
      padding: 0 4vw;
    }

    h2 {
      font-size: 8vw;
    }

    p {
      text-align: center;
      margin-bottom: 20px;
    }
  }

  footer {
    gap: 40px;
    .conteudo {
      align-items: start;
      h2 {
        font-size: 9.2vw;
        line-height: 10vw;
        text-align: start;
      }
    }

    .midiaBackground {
      width: 220vw;

      left: 0%;
    }

    .marcaFooter {
      width: 100%;
      /* título, © e política partem da mesma borda esquerda */
      align-items: flex-start;
      h2 {
        font-size: 21vw;
        line-height: 22vw;
      }

      div {
        margin-top: 8px;
        gap: 4px;
        align-items: flex-start;

        /* o "a { width: 238px }" de cima deixava a caixa do link mais estreita
           que a linha do © e, centralizada, empurrava o texto para a direita */
        a {
          width: auto;
        }
      }
    }
  }
}

/* ───────── TELAS BAIXAS (notebook com zoom, celular na horizontal) ─────────
   Antes, abaixo de 670px de altura o título do hero sumia (só ficava para o leitor
   de tela) e abaixo de 600px o © e a Política saíam do rodapé. Agora o conteúdo
   encolhe pela altura e tudo continua à vista. 76px = altura do cabeçalho fixo
   (logo, pausa e menu), que o conteúdo não pode cobrir. */
@media (max-height: 560px) {
  .hero {
    padding: 76px 24px 16px;

    .conteudo {
      .cardSubtitulo {
        width: 260px;
        height: 36px;
        h3 {
          font-size: 12px;
        }
      }
      h1,
      h2 {
        margin: 1.8vh 0 1.2vh;
        font-size: min(3.8vw, 7.2vh);
        line-height: 1.2;
      }
      p {
        font-size: clamp(13px, 2.9vh, 16px);
        line-height: 145%;
        width: min(80vw, 760px);
        margin-bottom: 14px;
      }
    }
  }
  .botaoPrimario,
  .botaoSecundario {
    height: 52px;
    min-height: 52px;
    padding-right: 58px;
  }
  .botaoDisco {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
  }
  .botaoDisco img {
    width: 40px;
    height: 40px;
  }
  .botaoPrimario:hover .botaoDisco,
  .botaoPrimario:focus-visible .botaoDisco,
  .botaoSecundario:hover .botaoDisco,
  .botaoSecundario:focus-visible .botaoDisco {
    width: calc(100% - 12px);
  }

  footer {
    padding: 76px 24px 16px;
    gap: 16px;

    .conteudo h2 {
      font-size: min(6.4vw, 8vh);
      line-height: 1.15;
      margin-bottom: 12px;
    }
    /* só o logotipo grande sai; o © e a Política ficam */
    .marcaFooter h2 {
      display: none;
    }
    .marcaFooter div {
      margin-top: 0;
    }
  }
}
@media (max-height: 400px) {
  .hero .conteudo .cardSubtitulo {
    display: none;
  }
  .hero .conteudo p {
    font-size: 12.5px;
    margin-bottom: 10px;
  }
}

@media (max-width: 350px) {
  .hero {
    & .conteudo {
      & .cardSubtitulo {
        width: 100%;
      }
    }
  }
}


/* ─── Página de projetos: identidade LF ─── */
/* Fundo com textura e movimento: a imagem e o vídeo originais dão nitidez e
   movimento ao efeito de luz; o hue-rotate leva o dourado deles para o azul da
   marca e alterna até o ciano. --fundo-brilho e --fundo-saturacao (no :root)
   controlam a intensidade e a vivacidade do azul. */
@keyframes brilho {
  0%, 100% { filter: hue-rotate(188deg) saturate(var(--fundo-saturacao)) brightness(var(--fundo-brilho)); }
  50% { filter: hue-rotate(158deg) saturate(var(--fundo-saturacao)) brightness(var(--fundo-brilho)); }
}
.hero .midiaBackground img,
.hero .midiaBackground video,
footer .midiaBackground img,
footer .midiaBackground video {
  animation: brilho 12s ease-in-out infinite;
}

header > a {
  padding: 0;
  gap: 0;
  width: auto;
  border-radius: 0;
  color: inherit;
}
footer .marcaFooter h2 b { font-weight: 700; }

/* O blend "difference" deixava o cabeçalho laranja sobre o fundo azul. */
header {
  mix-blend-mode: normal;
  color: #fff;
}


/* ─── Boost visual: foco, pausa e cartões ─── */

/* Foco visível em links e botões (o CSS de base tira o contorno do navegador). */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ciano);
  outline-offset: 3px;
}

/* "Pausar o movimento": no cabeçalho, ao lado do menu (mesmo desenho da home).
   O cabeçalho usa mix-blend-mode: difference, então o botão é só contorno branco. */
.pausa {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 99px;
  background: transparent;
  color: #ffffff;
  font: 500 13px / 1 var(--corpo);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.pausa[hidden] {
  display: none;
}
.pausa:hover {
  background: rgba(255, 255, 255, 0.14);
}
.pausa__ico {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: none;
}
.pausa__ico--toca {
  display: none;
}
.pausa[aria-pressed="true"] {
  background: #ffffff;
  color: #000000;
}
.pausa[aria-pressed="true"] .pausa__ico--toca {
  display: block;
}
.pausa[aria-pressed="true"] .pausa__ico--pausa {
  display: none;
}
@media (max-width: 768px) {
  .pausa {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .pausa__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Pausa: o filtro de cor do fundo (os vídeos e o giro do diamante escutam o mesmo evento em JS). */
html.proj-pausado .hero .midiaBackground img,
html.proj-pausado .hero .midiaBackground video,
html.proj-pausado footer .midiaBackground img,
html.proj-pausado footer .midiaBackground video {
  animation-play-state: paused;
}

/* ─── Cartões dos cases: rótulo, borda na cor do case e profundidade ───
   A rolagem presa de hoje (largura, raio e cor da capa) segue no script.js.
   Em cima da capa há três camadas: rótulo, pílula e botão. */
.caso--mavidev {
  --cor: #b79bff;
  --cor-33: #b79bff33;
  --cor-88: #b79bff88;
}
.caso--nexo {
  --cor: #8ed2c3;
  --cor-33: #8ed2c333;
  --cor-88: #8ed2c388;
}
.caso--prumo {
  --cor: #7d9bff;
  --cor-33: #7d9bff33;
  --cor-88: #7d9bff88;
}
.caso--quadra {
  --cor: #7a68ff;
  --cor-33: #7a68ff33;
  --cor-88: #7a68ff88;
}
.caso--barro {
  --cor: #e48a5c;
  --cor-33: #e48a5c33;
  --cor-88: #e48a5c88;
}
.caso--cofre {
  --cor: #dec554;
  --cor-33: #dec55433;
  --cor-88: #dec55488;
}
.caso--mare {
  --cor: #57dbc3;
  --cor-33: #57dbc333;
  --cor-88: #57dbc388;
}

.projetos .projeto {
  --margem: clamp(14px, 1.7vw, 28px);
  position: relative;
  isolation: isolate;
  transition: box-shadow 0.35s ease;
}
/* véu escuro embaixo: o rótulo lê sobre qualquer capa (curto, para não apagar a capa) */
.projeto__veu {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 8, 12, 0.92) 0%, rgba(6, 8, 12, 0.5) 17%, rgba(6, 8, 12, 0) 36%);
}
/* a borda acesa fica numa camada própria (não mexe no tamanho do cartão) */
.projetos .projeto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--cor);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projeto__pilula,
.projeto__rotulo,
.projeto__botao {
  position: absolute;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.projeto__pilula {
  left: var(--margem);
  top: clamp(12px, 1.4vw, 24px);
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--cor);
  border-radius: 99px;
  background: rgba(6, 8, 12, 0.7);
  color: var(--cor);
  font: 600 10px / 1 var(--corpo);
  letter-spacing: 0.12em;
  white-space: nowrap;
  transform: translate3d(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 4px), 0);
}
/* produto autoral: o amarelo da faixa da folhinha do Nexo */
.projeto__pilula--autoral {
  border-color: rgba(255, 210, 58, 0.7);
  color: #ffd23a;
}
/* case real: a pílula ganha um ponto verde, o mesmo selo da página do case */
.projeto__pilula--real {
  gap: 7px;
  border-color: rgba(74, 222, 128, 0.6);
  color: #9ef0b8;
}
.projeto__pilula--real::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}
.projeto__rotulo {
  left: var(--margem);
  bottom: var(--margem);
  max-width: calc(100% - var(--margem) * 2 - 200px);
  transform: translate3d(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 4px), 0);

  b {
    display: block;
    font: 500 clamp(30px, 4.6vw, 80px) / 1 var(--titulo);
    letter-spacing: -0.01em;
    color: #fff;
  }
  span {
    display: block;
    margin-top: 8px;
    font: 400 clamp(11px, 0.95vw, 15px) / 1.4 var(--corpo);
    color: rgba(255, 255, 255, 0.82);
  }
}
.projeto__botao {
  z-index: 3;
  right: var(--margem);
  bottom: var(--margem);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 8px), 0) scale(var(--esc, 1));

  span {
    font: 600 11px / 1 var(--corpo);
    letter-spacing: 0.08em;
    color: var(--cor);
  }
  svg {
    display: block;
    width: clamp(44px, 3.9vw, 60px);
    height: clamp(44px, 3.9vw, 60px);
  }
  circle {
    fill: var(--cor);
  }
  path {
    fill: none;
    stroke: #0b0e12;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* foco do teclado: borda na cor do case, botão para frente e o anel de foco do site */
.projetos a:focus-visible {
  outline: none;
  --esc: 1.06;
}
.projetos a:focus-visible .projeto {
  outline: 2px solid var(--ciano);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px var(--cor-33),
    0 30px 60px -20px var(--cor-88);
}
.projetos a:focus-visible .projeto::after {
  opacity: 1;
}
/* mouse de verdade: o mesmo no hover e a profundidade com o cursor */
@media (hover: hover) and (pointer: fine) {
  .projetos a:hover {
    --esc: 1.06;
  }
  .projetos a:hover .projeto {
    box-shadow:
      0 0 0 4px var(--cor-33),
      0 30px 60px -20px var(--cor-88);
  }
  .projetos a:hover .projeto::after {
    opacity: 1;
  }
}
/* a imagem fica um pouco maior que o cartão para a borda não aparecer ao se mexer */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .projetos .projeto img {
    transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0) scale(1.06);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
}
/* cartão mais baixo (tablet e celular): o rótulo ocupa uma fatia maior, o véu sobe junto */
@media (max-width: 1024px) {
  .projeto__veu {
    background: linear-gradient(0deg, rgba(6, 8, 12, 0.92) 0%, rgba(6, 8, 12, 0.58) 28%, rgba(6, 8, 12, 0) 60%);
  }
}
@media (max-width: 600px) {
  .projeto__veu {
    background: linear-gradient(0deg, rgba(6, 8, 12, 0.94) 0%, rgba(6, 8, 12, 0.72) 38%, rgba(6, 8, 12, 0) 80%);
  }
  .projeto__rotulo {
    max-width: calc(100% - var(--margem) * 2 - 52px);
  }
  .projeto__rotulo span {
    font-size: 11px;
  }
  .projeto__botao span {
    display: none;
  }
}

/* ─── Sem GSAP (JavaScript desligado ou CDN fora do ar) ───
   O script.js liga proj-anim no <html> quando as animações de rolagem existem.
   Sem ela não há cortina, pins nem palavras trocando: a página vira um documento
   estático e legível, com as três palavras empilhadas. */
html:not(.proj-anim) main {
  height: auto;
  overflow: visible;
}
html:not(.proj-anim) .hero {
  height: 100svh;
}
html:not(.proj-anim) .textoTransicao {
  position: static;
  height: auto;
  padding: 12vw 4vw;
}
html:not(.proj-anim) .animations {
  height: auto;
}
html:not(.proj-anim) .div3d {
  height: auto;
  flex-direction: column;
  gap: 2vw;
  padding: 10vw 4vw;
}
html:not(.proj-anim) .div3d h2 {
  position: static;
  line-height: 1.1;
}
html:not(.proj-anim) footer {
  position: relative;
  height: auto;
  min-height: 100svh;
}

/* ─── Movimento reduzido ───
   Sem vídeo (o script.js nem cria), sem o ciclo azul ↔ ciano do filtro (fica
   parado no azul), sem parallax, sem giro do diamante e sem botão de pausa (não há
   o que pausar). No topo, sem escala nem inclinação: ele só escurece e a frase
   aparece; os pins seguem a rolagem, sem suavização. */
@media (prefers-reduced-motion: reduce) {
  .hero .midiaBackground img,
  .hero .midiaBackground video,
  footer .midiaBackground img,
  footer .midiaBackground video {
    animation: none;
    filter: hue-rotate(188deg) saturate(var(--fundo-saturacao)) brightness(var(--fundo-brilho));
  }
  .pausa {
    display: none;
  }
  .projetos .projeto,
  .projetos .projeto::after,
  .projeto__pilula,
  .projeto__rotulo,
  .projeto__botao {
    transition: none;
  }
}

/* ─── Bordas dos fundos novos ───
   A mídia de fundo (imagem e vídeo) é mais baixa que o bloco quando a tela é
   alta ou estreita: o topo do hero e a base do footer terminavam numa borda dura
   contra o fundo da página. A máscara esmaece essas pontas. */
.hero .midiaBackground img,
.hero .midiaBackground video {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 32%);
  mask-image: linear-gradient(180deg, transparent 0, #000 32%);
}
footer .midiaBackground img,
footer .midiaBackground video {
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 26%);
  mask-image: linear-gradient(0deg, transparent 0, #000 26%);
}
