/* Comum a todas as larguras (v4): assinatura que se escreve, barra de progresso, onda no toque. */

/* assinatura de Henrique Voss — a máscara (degradê 240%) varre da esquerda para a direita: parece escrita à mão */
.assinatura { display: block; height: auto; max-width: 100%; user-select: none; -webkit-user-drag: none; cursor: default; }
.assinatura.escrevendo { -webkit-mask-image: linear-gradient(90deg, #000 0 46%, transparent 54%); mask-image: linear-gradient(90deg, #000 0 46%, transparent 54%);
  -webkit-mask-size: 240% 100%; mask-size: 240% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: var(--mx, 0%) 0; mask-position: var(--mx, 0%) 0; }
.estudio4-texto .assinatura { width: clamp(170px, 15vw, 270px); margin: 22px 0 -4px -8px; rotate: -3deg; }
.rodape2 .assinatura-rodape { width: clamp(120px, 10vw, 170px); margin-left: auto; opacity: .95; filter: drop-shadow(0 0 10px rgba(245,197,24,.35)); }

/* barra de progresso da página */
.progresso-pagina { position: fixed; left: 0; top: 0; z-index: 9500; width: 100%; height: 2px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #d9a90a, #f5c518 60%, #ffe48a); box-shadow: 0 0 10px rgba(245,197,24,.7); }

/* onda no toque/clique (Ripple Button, Magic UI) */
.onda-caixa { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 0; }
.onda { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(245,197,24,.35) 45%, transparent 70%); pointer-events: none; }
.cta-papel, .cta-moldura, .cta-cheio, .espiral-abrir { position: relative; isolation: isolate; }
.cta-papel > :not(.onda-caixa), .cta-moldura > :not(.onda-caixa), .cta-cheio > :not(.onda-caixa) { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) { .assinatura.escrevendo { -webkit-mask-image: none; mask-image: none; } }

/* faixa amarela inclinada com palavras correndo (dentro da faixa Diferença) */
.faixa-giro { position: relative; z-index: 3; grid-column: 1 / -1; width: calc(100% + 2 * var(--gx, 22px) + 60px); margin: clamp(40px, 5vw, 80px) 0 0 calc(-1 * var(--gx, 22px) - 30px);
  padding: clamp(8px, 1vw, 14px) 0; overflow: hidden; rotate: -2.2deg; background: #f5c518; color: #111; box-shadow: 0 14px 40px rgba(0,0,0,.55); pointer-events: none; }
.fg-linha { display: flex; width: max-content; will-change: transform; }
.fg-linha span { flex: none; padding-right: .35em; font: 900 italic clamp(26px, 4.2vw, 70px)/1.04 'Creato Display', 'Sora', system-ui, sans-serif; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.fg-b span { color: transparent; -webkit-text-stroke: 1.4px #111; }

/* trabalhos: nome gigante do projeto atrás da espiral, raias de luz de velocidade, brilho no card que chega na frente */
.trabalhos-nome-fundo { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; z-index: 0; margin: 0; text-align: center; white-space: nowrap; overflow: hidden; pointer-events: none;
  font: 900 italic clamp(64px, 11vw, 200px)/.9 'Creato Display', 'Sora', system-ui, sans-serif; text-transform: uppercase; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(245,197,24,.16); }
.trabalhos-raias { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.trabalhos .espiral-palco { z-index: 1; }
.espiral-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 48%, rgba(255,240,190,.18) 54%, transparent 68%); }
.espiral-card.brilho::after { animation: brilho-card 1.1s cubic-bezier(.25, 1, .5, 1) .15s forwards; }
@keyframes brilho-card { to { transform: translateX(130%); } }

/* hero com a arte cheia (1672 x 941): os veios acesos e o calor foram desenhados para o recorte antigo, que começa em
   x = 690 dessa mesma imagem (medido) — ficam no mesmo lugar dentro do palco novo */
.h2o-palco > img.veia { left: 41.268%; right: auto; width: 58.732%; }
.h2o-calor { left: 81.206%; width: 25.84%; }

/* hero leve (2026-11-26): sem luz que segue o mouse por cima da arte e com uma faixa de energia só — menos camadas em mescla
   animadas sobre a arte cheia (o navegador estava apagando pedaços da tela) */
.veia-lanterna, .veia-corre2 { display: none; }
.h2o-arte, .h2o-palco { will-change: auto; }

/* código flutuando em volta (capa e foto do Estúdio) */
.cod-flutua { position: absolute; z-index: 13; translate: -50% -50%; pointer-events: none; white-space: nowrap;
  font: 600 clamp(11px, .85vw, 15px)/1 'Space Mono', ui-monospace, Consolas, monospace; letter-spacing: .02em; color: #f5c518;
  text-shadow: 0 0 12px rgba(245,197,24,.55); opacity: .78; animation: boia-cod 6s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.cod-flutua:nth-of-type(3n) { color: #f4f2ee; opacity: .55; text-shadow: 0 0 10px rgba(255,255,255,.3); }
.estudio4-foto .cod-flutua { font-size: clamp(12px, 1vw, 17px); opacity: .92; }
.cod-parado .cod-flutua { animation-play-state: paused; }
@keyframes boia-cod { from { transform: translateY(-7px) rotate(-3deg); } to { transform: translateY(9px) rotate(2.5deg); } }

/* lema do Estúdio */
.estudio-lema { margin: 18px 0 0; font: 800 12px/1.2 'Sora', system-ui, sans-serif; letter-spacing: .26em; text-transform: uppercase; color: #8a6d00; }

/* luz que percorre a borda (painéis do planejamento, cards do processo, comparador, botão do case) */
@property --ang-borda { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.borda-luz { position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1.6px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--ang-borda), transparent 0 64%, rgba(245,197,24,.2) 72%, #f5c518 82%, #fff4c7 86%, transparent 93%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: gira-borda 2.8s linear infinite paused; transition: opacity .45s cubic-bezier(.25, 1, .5, 1); }
:is(.peca, .etapa, .comparador, .espiral-abrir):hover > .borda-luz, .no-foco > .borda-luz { opacity: 1; animation-play-state: running; }
@keyframes gira-borda { to { --ang-borda: 360deg; } }
@media (prefers-reduced-motion: reduce) { .cod-flutua { animation: none; } .borda-luz { display: none; } }
