.hero { --px: 0; --py: 0; position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--night); color: #eef7ef; isolation: isolate; perspective: 1200px; }
.hero__camada--arte { position: absolute; inset: -4%; transform: translate3d(calc(var(--px) * -36px), calc(var(--py) * -24px), 0) scale(1.04); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.8s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: kenburns 10s ease-out forwards; }
@keyframes kenburns { 0% { transform: scale(1.05); } 100% { transform: scale(1.15) translate(-1.5%, -1%); } }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(90% 70% at 75% 40%, transparent 30%, color-mix(in srgb, var(--night) 65%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--night) 92%, transparent) 0%, color-mix(in srgb, var(--night) 45%, transparent) 42%, transparent 70%), linear-gradient(0deg, var(--night) 0%, transparent 40%); transition: background .9s; }
.hero__shade::after { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 30% at 20% 85%, var(--aurora-1), transparent 70%), radial-gradient(35% 30% at 85% 15%, var(--aurora-3), transparent 70%); mix-blend-mode: screen; opacity: .55; animation: aurora 30s ease-in-out infinite alternate; }
.hero__moldura { position: absolute; inset: 22px; z-index: 4; pointer-events: none; border: 1px solid rgba(232, 184, 90, .22); border-radius: 26px; transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 6px), 0); }
.hero__moldura::before, .hero__moldura::after { content: ''; position: absolute; width: 90px; height: 90px; border: 2px solid rgba(232, 184, 90, .75); filter: drop-shadow(0 0 8px rgba(232, 184, 90, .6)); }
.hero__moldura::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 26px 0 0 0; }
.hero__moldura::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 26px 0; }
.hero__content { position: absolute; z-index: 5; left: clamp(20px, 6vw, 96px); bottom: clamp(150px, 21vh, 230px); width: min(640px, calc(100% - 40px)); transform: translate3d(calc(var(--px) * 22px), calc(var(--py) * 14px), 0); }
.hero__logo { width: min(500px, 100%, 40vh); margin-bottom: .8rem; transform: rotateY(calc(var(--px) * 9deg)) rotateX(calc(var(--py) * -7deg)); opacity: 0; filter: drop-shadow(0 0 26px rgba(63, 224, 192, .4)); }
.hero__tagline { margin: 0 0 .7rem; font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.05; text-transform: uppercase; color: var(--yellow); }
.hero__palavra { display: inline-block; opacity: 0; text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--magenta); }
.hero__subtitle { margin: 0 0 1.6rem; font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 52ch; text-shadow: 1px 1px 0 #000; opacity: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0; }
.hero__ghost { color: #eef7ef; }
.hero.is-entrando .hero__logo { animation: logo-materializa 1.6s var(--ease-out) forwards; }
@keyframes logo-materializa { 0% { opacity: 0; transform: scale(1.15); filter: blur(18px) brightness(2.5); } 100% { opacity: 1; transform: rotateY(calc(var(--px) * 9deg)) rotateX(calc(var(--py) * -7deg)); filter: blur(0) brightness(1) drop-shadow(0 0 26px rgba(63, 224, 192, .4)); } }
.hero__palavra.is-carimbada { animation: palavra-surge .9s var(--ease-out) forwards; }
@keyframes palavra-surge { 0% { opacity: 0; transform: translateY(14px); filter: blur(10px); } 60% { opacity: 1; filter: blur(0) drop-shadow(0 0 30px var(--cyan)); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 55%, transparent)); } }
.hero.is-entrou .hero__logo, .hero.is-entrou .hero__palavra { opacity: 1; }
.hero.is-entrou .hero__subtitle, .hero.is-entrou .hero__cta { opacity: 1; transform: none; transition: opacity .7s, transform .7s var(--ease-out); }
.hero.is-entrando .hero__subtitle, .hero.is-entrando .hero__cta { transform: translateY(16px); }
html[data-motion="off"] .hero__logo, html[data-motion="off"] .hero__palavra, html[data-motion="off"] .hero__subtitle, html[data-motion="off"] .hero__cta { opacity: 1; }

.hero__hud { position: absolute; z-index: 5; right: clamp(20px, 4vw, 64px); bottom: 40px; display: grid; grid-template-columns: auto auto; align-items: end; gap: .6rem 1.2rem; font-family: var(--font-ui); font-weight: 700; letter-spacing: .08em; }
.hero__caption { grid-column: 1 / -1; justify-self: end; margin: 0; text-transform: uppercase; font-size: .95rem; opacity: .9; text-shadow: 1px 1px 0 #000; max-width: 40ch; text-align: right; }
.hero__counter { font-size: 1.1rem; }
.hero__counter b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.hero__bars { display: flex; gap: 6px; grid-column: 1; }
.hero__bars button { width: 36px; height: 4px; padding: 0; background: rgba(255, 255, 255, .22); border: 0; border-radius: 4px; cursor: pointer; overflow: hidden; }
.hero__bars button span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); box-shadow: 0 0 10px var(--teal); }
.hero__bars button.is-active span { animation: bar-fill var(--dur, 7s) linear forwards; }
.hero__bars button.is-done span { width: 100%; }
.hero.is-paused .hero__bars button.is-active span { animation-play-state: paused; }
@keyframes bar-fill { to { width: 100%; } }
.hero__arrows { display: flex; gap: .6rem; grid-row: 2; grid-column: 2; }
.hero__scroll { position: absolute; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-family: var(--font-ui); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: #eef7ef; text-decoration: none; }
.hero__scroll::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: descer 2s ease-in-out infinite; }
@keyframes descer { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) {
  .hero__content { bottom: 180px; }
  .hero__hud { left: 20px; right: 20px; bottom: 56px; grid-template-columns: 1fr auto; }
  .hero__caption { justify-self: start; text-align: left; }
  .hero__scroll { display: none; }
  .hero__shade { background: linear-gradient(0deg, rgba(6,19,26,.97) 0%, rgba(6,19,26,.6) 55%, rgba(6,19,26,.2) 100%); }
  .hero__moldura { inset: 10px; }
}
