/* GTA VI — Leonida · Parte 1 (Abertura) */

@font-face { font-family: "ArtDeco"; src: url("../assets/fonts/artdeco-heavy.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "ArtDeco"; src: url("../assets/fonts/artdeco-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "HNow"; src: url("../assets/fonts/hnow-text.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HNow"; src: url("../assets/fonts/hnow-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --cor-fundo: #0d0717;
  --cor-superficie: #1a0f2c;
  --cor-texto: #fff4ec;
  --cor-suave: rgba(255, 236, 226, .68);
  --cor-linha: rgba(255, 255, 255, .12);
  --cor-destaque: #ff6fae;
  --cor-destaque-texto: #140a24;

  --fonte-titulo: "ArtDeco", "Arial Narrow", Impact, sans-serif;
  --fonte-texto: "HNow", "Helvetica Neue", Arial, sans-serif;

  /* paleta Leonida, tirada do logo VI */
  --vi-azul: #3f5fe0;
  --vi-roxo: #8a3fd1;
  --vi-rosa: #ff4fa3;
  --vi-laranja: #ffab5c;
  --grad-vi: linear-gradient(180deg, #4d6bff 0%, #9b47e0 38%, #ff4fa3 68%, #ffb062 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { scroll-behavior: auto; }
body { background: var(--cor-fundo); font-size: 16px; }
body.is-loading { overflow: hidden; }
::selection { background: var(--vi-rosa); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ---------- PRELOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 18px;
  pointer-events: none;
}
.loader__half { position: absolute; left: 0; right: 0; height: 50.5%; background: #07030d; z-index: -1; }
.loader__half--top { top: 0; }
.loader__half--bot { bottom: 0; }
.loader__logo { position: relative; width: min(260px, 52vw); aspect-ratio: 883 / 684; }
.loader__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.loader__vi { opacity: .12; filter: grayscale(1) brightness(2); }
.loader__fill { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.loader__gta { opacity: 0; transform: scale(1.3); }
.loader__count {
  font-family: var(--fonte-titulo); font-weight: 900; font-size: 15px; letter-spacing: .2em;
  color: var(--cor-texto); display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums;
}
.loader__count small { font-size: 11px; opacity: .6; }
.loader__tag { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--cor-suave); }

/* ---------- CURSOR ---------- */
.cursor { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.cursor__ring, .cursor__dot { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(255, 255, 255, .7);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s, border-color .35s;
  mix-blend-mode: difference;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--vi-rosa); }
.cursor__label { font: 700 9px/1 var(--fonte-texto); letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .25s; }
.cursor.is-hero .cursor__ring { width: 82px; height: 82px; margin: -41px 0 0 -41px; }
.cursor.is-hero .cursor__label { opacity: 1; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; border-color: #fff; }
.cursor.is-link .cursor__label { opacity: 0; }
@media not ((hover: hover) and (pointer: fine)) { .cursor { display: none; } }

/* ---------- TOPO ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(14px, 2.2vh, 26px) clamp(18px, 3vw, 44px);
}
.nav__logo img { height: clamp(38px, 6.4vh, 58px); width: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.45)); }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__links a, .nav__som {
  font: 700 12px/1 var(--fonte-texto); letter-spacing: .2em; text-transform: uppercase; color: #fff;
  position: relative; padding: 10px 2px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--grad-vi);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__som {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22); border-radius: 99px; padding: 10px 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 3px; background: #fff; border-radius: 1px; transition: height .2s; }
.nav__som[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite; background: var(--vi-rosa); }
.nav__som[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.nav__som[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.nav__som[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }

/* ---------- ABERTURA ---------- */
.abertura { position: relative; }
.abertura__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #07030d; }

.sunset {
  position: absolute; inset: 0; z-index: 0; opacity: 0;
  background:
    radial-gradient(120% 70% at 50% 108%, #ffb062 0%, #ff4fa3 28%, rgba(155,71,224,.9) 52%, transparent 75%),
    linear-gradient(180deg, #120827 0%, #2a1052 45%, #5b1f7a 70%, #ff6fae 100%);
}
.sunset__sun {
  position: absolute; left: 50%; bottom: -24vmin; width: 70vmin; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: linear-gradient(180deg, #ffd27a, #ff4fa3 70%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
          mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
  filter: blur(.3px); opacity: .55;
}
.sunset__grid {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 42%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 60px);
  transform: perspective(400px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask: linear-gradient(0deg, #000 10%, transparent 90%); mask: linear-gradient(0deg, #000 10%, transparent 90%);
  animation: grid-run 2.4s linear infinite;
}
@keyframes grid-run { to { background-position: 0 0, 0 60px; } }

.hero-video { position: absolute; inset: -3%; z-index: 1; will-change: transform; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.06); }
.hero-video__tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,4,22,.78) 0%, rgba(10,4,22,.25) 55%, rgba(10,4,22,0) 75%),
    linear-gradient(0deg, rgba(10,4,22,.85) 0%, rgba(10,4,22,0) 45%);
}
/* vídeo da abertura é 640x360: linhas finas disfarçam o upscale */
.hero-video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.flare {
  position: absolute; z-index: 2; top: 0; left: 0; width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: radial-gradient(circle, rgba(255,111,174,.45) 0%, rgba(155,71,224,.18) 35%, transparent 65%);
}

.hero-copy {
  position: absolute; z-index: 5; left: clamp(20px, 5vw, 80px); bottom: clamp(52px, 12vh, 130px);
  max-width: min(760px, 88vw);
}
.hero-copy__eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 700 11px/1 var(--fonte-texto); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.85);
  margin-bottom: clamp(10px, 2.2vh, 22px);
}
.hero-copy__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vi-rosa); box-shadow: 0 0 14px var(--vi-rosa); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-copy__clock { padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; font-variant-numeric: tabular-nums; letter-spacing: .16em; }
.hero-copy__title {
  font-family: var(--fonte-titulo); font-weight: 900; text-transform: uppercase;
  font-size: clamp(50px, min(10.5vw, 17vh), 176px); line-height: .86; letter-spacing: -.01em;
}
.hero-copy__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-copy__title .ch { display: inline-block; will-change: transform; }
.line--grad .ch {
  background: var(--grad-vi); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 100% 100%;
  filter: drop-shadow(0 6px 30px rgba(255,79,163,.35));
}
.hero-copy__lead {
  margin-top: clamp(12px, 2.6vh, 26px); max-width: 44ch;
  font-size: clamp(15px, 1.25vw, 19px); line-height: 1.5; color: rgba(255,244,236,.82);
}

.hero-side {
  position: absolute; z-index: 5; right: clamp(16px, 2.6vw, 40px); top: 50%; translate: 0 -50%;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
  font: 700 10px/1 var(--fonte-texto); letter-spacing: .3em; color: rgba(255,255,255,.6);
}
.hero-side .bar { width: 1px; height: 70px; background: linear-gradient(var(--vi-rosa), transparent); }

.scroll-hint {
  position: absolute; z-index: 5; right: clamp(20px, 5vw, 80px); bottom: clamp(52px, 12vh, 130px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 700 10px/1 var(--fonte-texto); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.scroll-hint__line { width: 1px; height: 54px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; inset: 0; background: var(--vi-rosa); animation: drip 1.6s var(--ease-out) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- PÔSTER ---------- */
.poster {
  position: absolute; z-index: 4; left: 50%; top: 52%; translate: -50% -50%;
  perspective: 1400px; pointer-events: none;
  --ratio: 2.3715;
  width: min(92vw, 74vh * var(--ratio));
  aspect-ratio: var(--ratio);
}
.poster__tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.poster__set { position: absolute; inset: 0; transform-style: preserve-3d; }
.poster__set img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; will-change: transform, opacity; }
.poster__set--tall { display: none; }
.shard { opacity: 0; filter: drop-shadow(0 18px 30px rgba(10,0,30,.45)); }
.poster__logo { opacity: 0; filter: drop-shadow(0 10px 40px rgba(255,79,163,.45)); }
@media (max-aspect-ratio: 13/10) {
  .poster { --ratio: .9038; width: min(90vw, 70vh * var(--ratio)); top: 50%; }
  .poster__set--wide { display: none; }
  .poster__set--tall { display: block; }
}

.poster-caption {
  position: absolute; z-index: 6; left: 50%; bottom: clamp(14px, 3.6vh, 40px); translate: -50% 0;
  display: flex; align-items: center; gap: 22px; white-space: nowrap; opacity: 0; visibility: hidden;
}
.poster-caption p { font: 900 clamp(13px, 1.1vw, 16px)/1 var(--fonte-titulo); letter-spacing: .14em; text-transform: uppercase; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: 99px; border: 1px solid rgba(255,255,255,.5);
  font: 700 11px/1 var(--fonte-texto); letter-spacing: .22em; text-transform: uppercase;
  background: rgba(20,8,40,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .4s, color .4s, border-color .4s;
}
.btn-ghost:hover { background: #fff; color: #140a24; border-color: #fff; }

/* ---------- TEXTURAS ---------- */
.letterbox { position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 8; pointer-events: none; }
.letterbox--top { top: 0; transform: translateY(-100%); }
.letterbox--bot { bottom: 0; transform: translateY(100%); }
.grain {
  position: absolute; inset: -50%; z-index: 9; pointer-events: none; opacity: .09;
  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: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(4%,-7%); }
  60% { transform: translate(-3%,6%); } 80% { transform: translate(7%,2%); } 100% { transform: translate(0,0); }
}
.vignette { position: absolute; inset: 0; z-index: 7; pointer-events: none; box-shadow: inset 0 0 22vmin rgba(0,0,0,.75); }

/* ---------- MARQUEE ---------- */
.marquees { position: relative; z-index: 2; padding: clamp(40px, 8vh, 90px) 0; overflow: hidden; background: #0d0717; }
.marquee { display: flex; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; gap: .5em; padding-right: .5em; flex-shrink: 0; will-change: transform; }
.marquee span, .marquee b { font-family: var(--fonte-titulo); font-weight: 900; text-transform: uppercase; line-height: 1; }
.marquee--a span { font-size: clamp(48px, 9vw, 150px); background: var(--grad-vi); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee--a b { font-size: clamp(26px, 4vw, 60px); color: var(--vi-rosa); font-weight: 400; }
.marquee--b { margin-top: 6px; }
.marquee--b span { font-size: clamp(30px, 5vw, 84px); color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }
.marquee--b b { font-size: clamp(30px, 5vw, 84px); color: var(--vi-laranja); font-weight: 400; }

/* ---------- PRÓXIMA PARTE ---------- */
.proxima { min-height: 80vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 80px 24px; }
.proxima h2 { font-family: var(--fonte-titulo); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 9vw, 140px); line-height: .9; }
.proxima .rotulo { color: var(--vi-rosa); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .hero-side { display: none; }
  .scroll-hint { display: none; }
  .hero-video__tint { background: linear-gradient(0deg, rgba(10,4,22,.92) 0%, rgba(10,4,22,.35) 60%, rgba(10,4,22,.2) 100%); }
  .poster-caption { flex-direction: column; gap: 14px; text-align: center; white-space: normal; width: 86vw; }
  .hero-copy__title { font-size: clamp(50px, 15.5vw, 120px); }
}
@media (max-height: 640px) {
  .hero-copy { bottom: 40px; }
  .hero-copy__lead { font-size: 14px; }
  .scroll-hint { bottom: 40px; }
  .scroll-hint__line { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .sunset__grid, .scroll-hint__line::after, .hero-copy__eyebrow .dot { animation: none; }
}
