/* IDX Elevadores · V3 (portfólio) — camada de animação sobre o site oficial.
   Nada aqui altera texto: só palco do vídeo do topo, coreografia e galeria lateral. */

/* Lenis no lugar do scroll-behavior nativo */
html, body { height: auto !important; }
html { scroll-behavior: auto !important; }
#dc-root, #dc-root > .sc-host { height: auto !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.v3-carregando, html.v3-carregando body { overflow: hidden; }

/* ---------- TOPO: palco do vídeo ---------- */
#v3-heroscroll { position: relative; }
#v3-heroscroll > #topo { position: sticky !important; top: 0; height: 100vh; min-height: 0 !important; }
#v3-cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none; }
#v3-particulas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
#v3-porta { position: absolute; inset: 0; z-index: 5; overflow: hidden; will-change: transform; background: #1a2230; }
#v3-porta video { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; }
#v3-aviso { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 6; color: #C9A84C;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; transition: opacity 0.6s; pointer-events: none; white-space: nowrap; }
#v3-aviso.oculto { opacity: 0; }
#v3-barra { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; z-index: 6; background: linear-gradient(90deg, #C9A84C, #E8CE8A); pointer-events: none; }

/* palavras do título: máscara para a entrada */
#topo h1 .v3-p { display: inline-block; will-change: transform, opacity, filter; }
#topo h1.v3-pronto .v3-p { display: inline; will-change: auto; }

/* menu fica escondido enquanto o vídeo conta a história */
#idxnav { transition: background 0.4s, padding 0.3s, opacity 0.5s; }
html.v3-no-video #idxnav { opacity: 0; pointer-events: none; }

/* ---------- PALCOS (atos 2 e 3): título oficial sobre vídeo ---------- */
body { background: transparent !important; }
.v3-palco { position: relative; height: 100vh; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.v3-palco .v3-tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v3-veu-lateral { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(11,25,41,0.88) 0%, rgba(11,25,41,0.55) 50%, rgba(11,25,41,0.12) 100%); }
.v3-palco-conteudo { position: relative; z-index: 2; height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2.5rem 1.5rem;
  box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; }
.v3-palco h2 .v3-p { display: inline-block; will-change: transform, opacity, filter; }
.v3-palco h2.v3-pronto .v3-p { display: inline; will-change: auto; }
@media (max-width: 640px) { .v3-palco-conteudo { padding: 0 1.25rem 1rem; } }

/* ---------- ATO 2: Soluções ---------- */
.v3-ato2 .v3-palco-conteudo { justify-content: flex-start; padding-top: calc(72px + 7vh); }
#solucoes.v3-ato2 { padding-top: 0 !important; padding-bottom: 100px !important; }
#solucoes-grid.v3-slides { display: block !important; position: relative; height: 100vh; width: 100vw; margin-left: calc(50% - 50vw);
  background: none !important; overflow: hidden; }
#solucoes-grid.v3-slides > div { position: absolute !important; inset: 0; background: #0B1929 !important; box-shadow: none !important; will-change: transform; }
#solucoes-grid.v3-slides > div > div:first-child { position: absolute !important; inset: 0; height: 100% !important; }
#solucoes-grid.v3-slides > div > div:last-child { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 2.5rem 5rem !important; box-sizing: border-box; }
#solucoes-grid.v3-slides h3 { font-size: clamp(2rem, 4vw, 3.25rem) !important; margin-bottom: 1rem !important; text-shadow: 0 2px 18px rgba(6,14,22,0.75); }
#solucoes-grid.v3-slides p { font-size: 16px !important; max-width: 56ch; color: #E4EAEE !important; text-shadow: 0 1px 12px rgba(6,14,22,0.85); }
#solucoes-grid.v3-slides .v3-selo { position: static !important; display: inline-block; margin-bottom: 1.25rem; }
@media (max-width: 640px) { #solucoes-grid.v3-slides > div > div:last-child { padding: 0 1.25rem 3rem !important; } }

/* ---------- ATO 3: Análise Técnica sobre o martelado, até o rodapé ---------- */
#v3-fundo3 { position: fixed; inset: 0; z-index: -1; visibility: hidden; }
#v3-fundo3.ativo { visibility: visible; }
#v3-fundo3 .v3-tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#v3-veu-escuro { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(11,25,41,0.78) 0%, rgba(11,25,41,0.5) 55%, rgba(11,25,41,0.82) 100%); }
#analise.v3-ato3 { background: transparent !important; padding-top: 0 !important; }
.v3-palco-transparente { background: transparent; }
.v3-sobre-fundo { background: transparent !important; }
html, body { overflow-x: clip; }

/* ---------- "Outros projetos em inox colorido?": foto em tela cheia, sala inteira de lado a lado ---------- */
#inox-outros.v3-tela-cheia { position: relative; height: 100vh; padding: 0 !important; overflow: hidden; }
#inox-outros.v3-tela-cheia > div { position: static !important; display: block !important; max-width: none !important; height: 100%; }
#inox-outros.v3-tela-cheia > div > img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
  aspect-ratio: auto !important; object-fit: cover; object-position: 50% 52%; }
#inox-outros.v3-tela-cheia > div::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top right, rgba(6,14,22,0.82) 0%, rgba(6,14,22,0.35) 32%, rgba(6,14,22,0) 58%); }
#inox-outros.v3-tela-cheia > div > div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: 1280px; margin: 0 auto;
  padding: 0 2.5rem 4.5rem; box-sizing: border-box; }
#inox-outros.v3-tela-cheia h2 { text-shadow: 0 2px 18px rgba(6,14,22,0.8); }
/* tela em pé: a sala inteira só cabe na largura, então a foto fica no formato original e o texto vem abaixo */
@media (max-aspect-ratio: 1/1) {
  #inox-outros.v3-tela-cheia { height: auto; padding: 0 0 4rem !important; }
  #inox-outros.v3-tela-cheia > div::after { display: none; }
  #inox-outros.v3-tela-cheia > div > img { position: static !important; height: auto !important; aspect-ratio: 4 / 3 !important; }
  #inox-outros.v3-tela-cheia > div > div { position: static; padding: 2rem 1.25rem 0; }
}
