/*
  MOTOR DE EFEITOS · Agência de Um
  Copie motor.css e motor.js para a pasta do site e ligue no <head>:
    <script>document.documentElement.classList.add('js')</script>
    <link rel="stylesheet" href="motor.css">
  e antes do </body> (nesta ordem):
    gsap.min.js, ScrollTrigger.min.js, lenis.min.js (links em references/efeitos.md) e motor.js

  O motor só usa estas variáveis, que a página define no :root:
  --fundo, --texto, --texto-suave, --destaque, --destaque-texto, --linha, --whatsapp,
  --fonte-titulo, --fonte-texto, --gutter, --ease
  Não edite este arquivo por site. O visual de cada site mora no <style> da página.
*/

/* Rolagem suave (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Grão de filme. Desligue com <body class="sem-grao"> em sites claros e limpos */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: var(--grao, .07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: motor-grao 1s steps(4) infinite;
}
body.sem-grao::after { display: none; }
@keyframes motor-grao { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* Palavras que sobem de dentro de uma máscara (.divide) */
.pw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.pw__in { display: inline-block; will-change: transform; }
.acende .pw { overflow: visible; }

/* Tela de abertura (.loader) */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100; background: var(--destaque); color: var(--destaque-texto);
  display: flex; flex-direction: column; justify-content: space-between; padding: var(--gutter);
}
.loader__nome { font-family: var(--fonte-titulo); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); }
.loader__num { font-family: var(--fonte-titulo); font-size: clamp(6rem, 24vw, 18rem); line-height: .8; letter-spacing: -.05em; align-self: flex-end; }

/* Cursor personalizado (só com mouse) */
.cursor, .cursor-anel { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor, .js .cursor-anel { display: block; position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor { width: 8px; height: 8px; background: var(--destaque); }
  .js .cursor-anel {
    width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--texto) 50%, transparent);
    display: grid; place-items: center; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), border-color .35s;
  }
  .cursor-anel.ativo { width: 64px; height: 64px; border-color: var(--destaque); }
  .cursor-anel.ver { width: 96px; height: 96px; background: var(--destaque); border-color: var(--destaque); color: var(--destaque-texto); }
}

/* Cabeçalho fixo que fica sólido ao rolar e some ao descer (.topo) */
.topo { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: transform .5s var(--ease), background .4s, border-color .4s; }
.topo.solido { background: color-mix(in srgb, var(--fundo) 75%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--linha); }
.topo.escondido { transform: translateY(-100%); }
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--destaque); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Botão com preenchimento que sobe no hover (.botao) */
.botao {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate; text-decoration: none;
  font: 600 1rem/1 var(--fonte-texto); background: var(--texto); color: var(--fundo);
}
.botao::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--destaque); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.botao:hover::before { transform: translateY(0); }
.botao:hover { color: var(--destaque-texto); }
.botao--borda { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--texto) 35%, transparent); }
.botao--whats { background: var(--whatsapp); color: #fff; }
.botao--pequeno { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.botao--grande { min-height: 72px; padding: 0 44px; font-size: 1.15rem; }
.botao .icone, .whats .icone, .selo__miolo .icone { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* Ícones prontos. Use <span class="icone i-whats" aria-hidden="true"></span>. Nunca redigite o desenho. */
.i-whats, .i-seta { display: inline-block; width: 1.2em; height: 1.2em; flex: none; background-color: currentColor; -webkit-mask: var(--icone) center / contain no-repeat; mask: var(--icone) center / contain no-repeat; }
.i-whats { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21c5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2Zm5.8 14.04c-.24.69-1.42 1.32-1.95 1.36-.5.05-.97.23-3.27-.68-2.77-1.09-4.52-3.92-4.66-4.1-.13-.18-1.11-1.48-1.11-2.82 0-1.34.7-2 .95-2.27.25-.27.54-.34.72-.34l.52.01c.17.01.39-.06.61.47.24.55.79 1.89.86 2.03.07.14.11.3.02.48-.09.18-.14.3-.27.46-.14.16-.29.36-.41.48-.14.14-.28.29-.12.56.16.27.71 1.17 1.52 1.9 1.05.93 1.93 1.22 2.2 1.36.27.14.43.11.59-.07.16-.18.68-.79.86-1.07.18-.27.36-.23.61-.14.25.09 1.59.75 1.86.89.27.14.45.2.52.32.07.11.07.66-.17 1.3Z'/%3E%3C/svg%3E"); }
.i-seta { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Selo giratório com texto em círculo (.selo) */
.selo { position: absolute; z-index: 2; right: var(--gutter); top: 120px; width: clamp(110px, 12vw, 150px); aspect-ratio: 1; display: grid; place-items: center; }
.selo svg.selo__texto { position: absolute; inset: 0; animation: motor-gira 14s linear infinite; }
.selo text { font: 600 8.6px var(--fonte-texto); text-transform: uppercase; fill: currentColor; }
.selo__miolo { width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; color: #fff; transition: transform .5s var(--ease); }
.selo:hover .selo__miolo { transform: scale(1.12); }
.selo__miolo .icone { width: 46%; height: 46%; }
@keyframes motor-gira { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .selo { top: 100px; width: 96px; } }

/* Faixa de texto que corre sem parar (.faixa) */
.faixa { border-block: 1px solid var(--linha); padding: 22px 0; overflow: hidden; white-space: nowrap; }
.faixa__trilho { display: inline-flex; animation: motor-corre 28s linear infinite; will-change: transform; }
.faixa span { font-family: var(--fonte-titulo); font-size: clamp(2.2rem, 5.5vw, 4.5rem); line-height: 1; padding-right: .6em; display: inline-flex; align-items: center; gap: .6em; }
.faixa span:nth-child(even) { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--texto-suave); }
.faixa span::after { content: var(--faixa-simbolo, "✺"); color: var(--destaque); font-style: normal; font-size: .5em; -webkit-text-stroke: 0; }
@keyframes motor-corre { to { transform: translateX(-50%); } }

/* Trilho horizontal: fixa e corre de lado no computador, arrasta no celular ([data-trilho] > .trilho) */
[data-trilho] { overflow: hidden; }
.trilho { display: flex; gap: 20px; padding: 0 var(--gutter); }
.trilho > * { flex: 0 0 clamp(270px, 30vw, 400px); }
@media (max-width: 899px) {
  .trilho { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .trilho::-webkit-scrollbar { display: none; }
  .trilho > * { flex-basis: 78vw; scroll-snap-align: center; }
}
.so-cel { display: none; }
@media (max-width: 899px) { .so-pc { display: none; } .so-cel { display: inline; } }

/* Foto que segue o mouse em listas ([data-img]) */
.seguidor { position: fixed; top: 0; left: 0; z-index: 40; width: 260px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.seguidor img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 899px) { .seguidor { display: none; } }

/* Foto que dá zoom suave no hover (.zoom) */
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.2s var(--ease); }
.zoom:hover img { transform: scale(1.07); }

/* Botão flutuante de WhatsApp (.whats) */
.whats { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgb(0 0 0 / .35); transition: transform .4s var(--ease); }
.whats:hover { transform: scale(1.08); }
.whats .icone { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  body::after, .faixa__trilho, .selo svg.selo__texto { animation: none; }
  .js .loader { display: none; }
}
