/* vitrine.css: a base do Modo Vitrine. Cuida do comportamento das peças (loader, texto partido,
   flutuantes, seletor preso, trilho, pilha, faixa, zigue-zague, cursor). A cara de cada site
   (cores, fontes, composição) fica no CSS do próprio site, por cima das variáveis abaixo.
   Feito pela kntrIA. */

:root {
  --v-fundo: #14091f;
  --v-texto: #fff6e6;
  --v-cor1: #7b2ff7;
  --v-cor2: #ffc629;
  --v-cor3: #ff3d57;
  --v-fonte-t: 'Unbounded', system-ui, sans-serif;
  --v-fonte-c: 'DM Sans', system-ui, sans-serif;
  --v-raio: 28px;
  --v-borda: clamp(20px, 4vw, 64px);
  --v-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--v-fundo); color: var(--v-texto);
  font-family: var(--v-fonte-c); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
section { position: relative; }
:focus-visible { outline: 3px solid var(--v-cor2); outline-offset: 4px; border-radius: 6px; }
.v-so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Tipos ---------- */
.v-titulo { font-family: var(--v-fonte-t); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
.v-gigante { font-family: var(--v-fonte-t); font-weight: 900; line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap; user-select: none; }
.v-vazado { color: transparent; -webkit-text-stroke: 2px currentColor; }
.v-olho { font-size: 0.78em; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Estados antes do motor ligar (só com JS; sem JS tudo fica visível) ---------- */
.v-js [data-v-entra]:not([data-v-entra='mascara']) { opacity: 0; }
.v-js [data-v-entra='mascara'] { clip-path: inset(100% 0% 0% 0%); }
.v-js [data-v-split] { visibility: hidden; }
.v-js [data-v-split].v-partido { visibility: visible; }
.v-js [data-v-hero] [data-v-flutua] { opacity: 0; }
.v-vivo [data-v-hero] [data-v-flutua] { opacity: 1; }
.v-p { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding: 0.08em 0.04em 0.14em; margin: -0.08em -0.04em -0.14em; }
.v-pi { display: inline-block; will-change: transform; }
.v-preenche .v-p { overflow: visible; }

/* ---------- Loader ---------- */
.v-loader { display: none; }
.v-js .v-loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--v-loader-fundo, var(--v-cor1)); color: var(--v-loader-texto, var(--v-texto));
}
.v-loader-marca { font-family: var(--v-fonte-t); font-weight: 900; font-size: clamp(42px, 9vw, 150px); letter-spacing: -0.05em; line-height: 1; position: relative; }
.v-loader-marca::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.18em; height: 0.07em; border-radius: 99px;
  background: currentColor; transform-origin: left; transform: scaleX(var(--v-carga, 0));
}
.v-loader-n { position: absolute; right: var(--v-borda); bottom: var(--v-borda); font-family: var(--v-fonte-t); font-weight: 800; font-size: clamp(28px, 5vw, 72px); font-variant-numeric: tabular-nums; }
.v-loader-n::after { content: '%'; font-size: 0.5em; margin-left: 0.1em; }

/* ---------- Topo ---------- */
.v-barra { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--v-cor2); transform: scaleX(0); transform-origin: left; z-index: 120; }
.v-topo {
  position: fixed; top: 14px; left: var(--v-borda); right: var(--v-borda); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 22px; border-radius: 99px;
  transition: transform 0.6s var(--v-ease), background 0.4s, box-shadow 0.4s, color 0.4s;
}
.v-topo--solto { background: color-mix(in srgb, var(--v-fundo) 78%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.55); }
.v-topo--some { transform: translateY(-160%); }
.v-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); font-weight: 600; font-size: 0.92em; }
.v-nav a:not(.v-btn) { position: relative; padding: 6px 0; }
.v-nav a:not(.v-btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--v-ease); }
.v-nav a:not(.v-btn):hover::after { transform: scaleX(1); transform-origin: left; }
.v-menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--v-cor2); color: #1a0b2a; position: relative; z-index: 2; }
.v-menu-btn::before, .v-menu-btn::after { content: ''; position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 9px; background: currentColor; transition: transform 0.4s var(--v-ease), top 0.4s var(--v-ease); }
.v-menu-btn::before { top: 18px; }
.v-menu-btn::after { top: 26px; }
.v-menu-btn[aria-expanded='true']::before { top: 22px; transform: rotate(45deg); }
.v-menu-btn[aria-expanded='true']::after { top: 22px; transform: rotate(-45deg); }
@media (max-width: 799px) {
  .v-menu-btn { display: block; }
  .v-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--v-fundo); color: var(--v-texto); font-family: var(--v-fonte-t); font-size: 28px; font-weight: 800;
    clip-path: circle(0% at calc(100% - 50px) 40px); transition: clip-path 0.7s var(--v-ease); pointer-events: none;
  }
  .v-nav.aberto { clip-path: circle(150% at calc(100% - 50px) 40px); pointer-events: auto; }
}

/* ---------- Botão ---------- */
.v-btn {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.95em 1.6em; border-radius: 99px;
  background: var(--v-cor2); color: #1a0b2a; font-weight: 800; letter-spacing: -0.01em; line-height: 1;
  position: relative; overflow: hidden; isolation: isolate; transition: color 0.4s;
}
.v-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--v-btn-hover, #fff); border-radius: inherit; transform: translateY(101%); transition: transform 0.5s var(--v-ease); }
.v-btn:hover::before { transform: translateY(0); }
.v-btn svg { width: 1.1em; height: 1.1em; transition: transform 0.5s var(--v-ease); }
.v-btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.v-btn--linha { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.v-btn--linha:hover { color: #1a0b2a; }

/* ---------- Flutuantes ---------- */
[data-v-flutua] { position: absolute; pointer-events: none; will-change: transform; z-index: 2; }
.v-vivo [data-v-flutua] { animation: v-boia var(--v-boia-t, 6s) ease-in-out var(--v-boia-d, 0s) infinite alternate; }
@keyframes v-boia { from { translate: 0 calc(var(--v-boia-y, 14px) * -1); } to { translate: 0 var(--v-boia-y, 14px); } }

/* ---------- Faixa infinita ---------- */
[data-v-faixa] { overflow: hidden; white-space: nowrap; }
.v-faixa-in { display: inline-flex; align-items: center; gap: var(--v-faixa-gap, 1.2em); padding-right: var(--v-faixa-gap, 1.2em); will-change: transform; }
.v-faixa-in > * { flex: none; }
.v-calmo [data-v-faixa], html:not(.v-vivo) [data-v-faixa] { overflow-x: auto; }

/* ---------- Zigue-zague (a seção de cima morde a de baixo) ---------- */
.v-zz-baixo, .v-zz-topo, .v-zz-duplo { --zz: 26px; position: relative; z-index: 3; }
.v-zz-baixo { margin-bottom: calc(var(--zz) * -1); padding-bottom: calc(var(--zz) * 1.6);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%; }
.v-zz-topo { margin-top: calc(var(--zz) * -1); padding-top: calc(var(--zz) * 1.6);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%; }
.v-zz-duplo { margin-block: calc(var(--zz) * -1);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 51% repeat-x bottom, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 51% repeat-x top;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 51% repeat-x bottom, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 51% repeat-x top; }

/* ---------- Seletor preso ---------- */
[data-v-seletor] { background: var(--v-fundo); }
.v-seletor-fixo { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 4vw; padding: 90px var(--v-borda) 40px; overflow: hidden; }
.v-seletor-lista { display: grid; gap: 0.1em; font-family: var(--v-fonte-t); font-weight: 900; font-size: clamp(30px, 5.4vw, 96px); line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; }
[data-v-item] { cursor: pointer; opacity: 0.28; display: flex; align-items: center; gap: 0.3em; transition: opacity 0.5s, transform 0.6s var(--v-ease); transform-origin: left; }
[data-v-item]::before { content: ''; width: 0.36em; height: 0.36em; border-radius: 50%; background: var(--v-cor2); flex: none; scale: 0; transition: scale 0.6s var(--v-ease); margin-left: -0.66em; }
[data-v-item].ativo { opacity: 1; transform: translateX(0.66em); }
[data-v-item].ativo::before { scale: 1; }
[data-v-item]:hover { opacity: 0.75; }
.v-seletor-palco { position: relative; height: min(76vh, 760px); }
[data-v-painel] { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 18px; visibility: hidden; text-align: center; }
[data-v-painel].ativo { visibility: visible; }
[data-v-astro] { height: 100%; width: auto; max-width: 100%; object-fit: contain; min-height: 0; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.4)); }
html:not(.v-vivo) .v-seletor-palco { height: auto; display: grid; gap: 40px; }
html:not(.v-vivo) [data-v-painel] { position: static; visibility: visible; }
html:not(.v-vivo) [data-v-astro] { height: 300px; }
html:not(.v-vivo) [data-v-item] { opacity: 1; }
@media (max-width: 799px) {
  .v-seletor-fixo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; padding-top: 84px; }
  .v-seletor-lista { font-size: clamp(22px, 7.4vw, 40px); }
  .v-seletor-palco { height: 100%; min-height: 0; }
}

/* ---------- Trilho horizontal ---------- */
[data-v-horizontal] { overflow: hidden; }
.v-trilho { display: flex; align-items: stretch; gap: clamp(16px, 2vw, 32px); padding-inline: var(--v-borda); width: max-content; will-change: transform; }
.v-trilho > * { flex: none; }
@media (max-width: 799px) {
  [data-v-horizontal] { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  [data-v-horizontal]::-webkit-scrollbar { display: none; }
  .v-trilho > * { scroll-snap-align: center; }
}
html:not(.v-vivo) [data-v-horizontal] { overflow-x: auto; }

/* ---------- Pilha de cartas ---------- */
[data-v-pilha] { display: grid; gap: 28px; }
.v-carta { position: sticky; top: calc(90px + var(--v-i, 0) * 16px); border-radius: var(--v-raio); transform-origin: 50% 0; will-change: transform; overflow: hidden; }

/* ---------- Foto que abre ---------- */
[data-v-zoom] { overflow: hidden; position: relative; }
[data-v-zoom] > img, [data-v-zoom] > video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cursor ---------- */
.v-cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; opacity: 0; mix-blend-mode: difference; }
.v-cursor.on { opacity: 1; }
.v-cursor span { display: grid; place-items: center; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; color: #000; font-size: 0; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; transition: width 0.45s var(--v-ease), height 0.45s var(--v-ease), margin 0.45s var(--v-ease), font-size 0.3s; }
.v-cursor.grande span { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.v-cursor.com-txt { mix-blend-mode: normal; }
.v-cursor.com-txt span { width: 96px; height: 96px; margin: -48px 0 0 -48px; font-size: 11px; background: var(--v-cor2); color: #1a0b2a; }

/* ---------- Selo que gira sozinho ---------- */
.v-selo { animation: v-gira 14s linear infinite; }
@keyframes v-gira { to { rotate: 360deg; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
