:root {
  --fundo: #0d0b09;
  --fundo-2: #15120e;
  --texto: #f3ece1;
  --suave: #b9ad9c;
  --amarelo: #f5c518;
  --linha: rgba(243, 236, 225, .14);
  --serifa: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --margem: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; margin: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { background: var(--fundo); color: var(--texto); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serifa); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--amarelo); }

.num { display: block; font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--amarelo); margin-bottom: 18px; }

.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--amarelo); color: #14110b; font: 600 15px/1 var(--sans); text-decoration: none; transition: transform .25s, background .25s; }
.botao:hover { transform: translateY(-2px); background: #ffd84a; }
.botao--linha { background: transparent; color: var(--texto); border: 1px solid rgba(243, 236, 225, .5); min-height: 42px; padding: 0 20px; font-size: 14px; }
.botao--linha:hover { background: var(--texto); color: #14110b; }
.botao--grande { min-height: 62px; padding: 0 38px; font-size: 18px; }

/* abertura: segura a tela enquanto modelos, ceu e shaders carregam; sai sozinha quando termina */
.intro { display: none; }
.com-intro body { overflow: hidden; }
.com-intro .intro, .intro.saindo {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 30px;
  background: var(--fundo); clip-path: inset(0 0 0 0); padding: 24px;
}
.intro__linha { position: absolute; top: 50%; height: 1px; width: 30vw; background: var(--linha); animation: intro-linha 1.3s cubic-bezier(.76, 0, .24, 1) .2s both; }
.intro__linha--e { left: 0; transform-origin: left; }
.intro__linha--d { right: 0; transform-origin: right; }
.intro__selo { width: clamp(104px, 13vw, 148px); filter: drop-shadow(0 0 1px rgba(243, 236, 225, .55)) drop-shadow(0 0 34px rgba(245, 197, 24, .28)); animation: intro-sobe 1s cubic-bezier(.2, .7, .2, 1) .5s both; }
.intro__marca { text-align: center; animation: intro-sobe .9s cubic-bezier(.2, .7, .2, 1) 1s both; }
.intro__nome { font: 400 clamp(38px, 6vw, 60px)/1 var(--serifa); letter-spacing: -.01em; }
.intro__tag { margin-top: 14px; font: 500 11px/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; color: var(--suave); }
.intro__barra { width: min(220px, 50vw); height: 2px; background: var(--linha); overflow: hidden; animation: intro-some .6s 1.4s both; }
.intro__barra i { display: block; height: 100%; background: var(--amarelo); transform-origin: 0 50%; transform: scaleX(.04); transition: transform .5s; }
.intro__coord { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--suave); animation: intro-some .8s 1.7s both; }
@keyframes intro-linha { from { transform: scaleX(0); } }
@keyframes intro-sobe { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes intro-some { from { opacity: 0; } }
/* saida: o selo cresce e a cortina fecha numa linha no meio, como uma escotilha */
.intro.saindo { pointer-events: none; clip-path: inset(50% 0 50% 0); transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1) .45s; }
.intro.saindo > * { opacity: 0; transition: opacity .4s; animation: none; }
.intro.saindo .intro__selo { opacity: 0; transform: scale(6); transition: transform 1.3s cubic-bezier(.6, 0, .9, .4), opacity 1.1s .15s; }
.hero-texto { transition: opacity 1.2s .9s, transform 1.4s cubic-bezier(.2, .7, .2, 1) .9s; }
.com-intro .hero-texto { opacity: 0; transform: translateY(34px); }

/* topo */
.topo { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--margem); background: linear-gradient(rgba(13, 11, 9, .55), transparent); }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 18px/1 var(--serifa); }
.marca img { width: 46px; height: auto; }
.marca small { display: block; margin-top: 4px; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--suave); }

/* hero: video real; sobe como cortina e revela a cena 3D que ja esta atras */
.hero { position: relative; z-index: 3; height: 100vh; height: 100svh; overflow: hidden; background: #2a1c12 url(../assets/img/poster-1080.webp) center / cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero::after { content: ''; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(13, 11, 9, .55)); pointer-events: none; }
.hero-texto { position: absolute; z-index: 1; left: var(--margem); right: var(--margem); bottom: 14svh; }
.hero-texto .sobre { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 22px; }
.hero-texto h1 { font-size: clamp(42px, 8.4vw, 128px); text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.hero-texto .rolar { margin-top: 30px; font-size: 13px; letter-spacing: .08em; color: rgba(243, 236, 225, .8); }
.hero-texto .rolar::before { content: ''; display: inline-block; width: 36px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; }

/* o fundo e o primeiro quadro do video: ele entra por cima sem salto quando comeca a tocar */
@media (max-aspect-ratio: 4/5) { .hero { background-image: url(../assets/img/poster-retrato.webp); } }

/* viagem */
.viagem { position: relative; height: 1000vh; margin-top: -100vh; margin-top: -100svh; }
.palco { position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; overflow: hidden; background: #2a1c12; }
#cena, .veu { position: absolute; inset: 0; width: 100%; height: 100%; }
#cena { display: block; opacity: 0; transition: opacity .7s; }
.cena-pronta #cena { opacity: 1; }
.veu { background: linear-gradient(90deg, rgba(13, 11, 9, .72) 0%, rgba(13, 11, 9, .35) 32%, transparent 58%); opacity: 0; pointer-events: none; }

.cap { position: absolute; left: var(--margem); top: 50%; width: min(420px, 34vw); transform: translateY(-50%); opacity: 0; visibility: hidden; will-change: opacity, transform; }
.cap h2 { font-size: clamp(30px, 3.5vw, 54px); text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.cap p { margin-top: 18px; color: #e6dccd; max-width: 34ch; text-shadow: 0 1px 16px rgba(0, 0, 0, .6); }
.cap .botao { margin-top: 28px; }
.cap--fim { pointer-events: auto; }

.progresso { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(243, 236, 225, .12); }
.progresso i { display: block; height: 100%; background: var(--amarelo); transform-origin: 0 50%; transform: scaleX(0); }

/* blocos de conteudo */
.bloco { position: relative; padding: clamp(72px, 12vw, 160px) var(--margem); background: var(--fundo); }
.bloco:nth-of-type(odd) { background: var(--fundo-2); }
.cabeca { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.cabeca h2, .contato h2 { font-size: clamp(34px, 5vw, 72px); }
.cabeca p { margin-top: 18px; color: var(--suave); max-width: 48ch; }
.cabeca .botao { margin-top: 28px; }

/* fotos pequenas de proposito: os originais do cliente tem ate ~1100px */
.mural { columns: 4 240px; column-gap: 14px; }
.mural figure { position: relative; break-inside: avoid; margin-bottom: 14px; border-radius: 10px; overflow: hidden; background: #201b15; }
.mural img { width: 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mural figure:hover img { transform: scale(1.05); }
.mural figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(13, 11, 9, .72); font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }

.duas { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.duas .cabeca { margin: 0; }
.moldura { border-radius: 14px; overflow: hidden; }

.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--linha); }
.numeros div { padding: 36px 24px 0 0; }
.numeros strong { display: block; font: 400 clamp(34px, 4.6vw, 68px)/1 var(--serifa); color: var(--amarelo); }
.numeros span { display: block; margin-top: 14px; color: var(--suave); }

.contato { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.selo { width: 120px; }
.dados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; width: 100%; max-width: 980px; margin-top: 24px; padding-top: 36px; border-top: 1px solid var(--linha); text-align: left; color: var(--suave); font-size: 15px; overflow-wrap: anywhere; }
.dados b { display: block; margin-bottom: 8px; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--texto); }
.aviso { max-width: 620px; font-size: 13px; color: var(--suave); }

.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px var(--margem); border-top: 1px solid var(--linha); font-size: 13px; color: var(--suave); }

.zap { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); transition: transform .25s; }
.zap:hover { transform: scale(1.08); }

/* entrada suave dos blocos */
.revelar { opacity: 0; transform: translateY(28px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.revelar.visto { opacity: 1; transform: none; }

/* tela em pe e celular: texto embaixo, cena em cima */
@media (max-width: 820px) {
  .topo .botao--linha { display: none; }
  .marca img { width: 40px; }
  .veu { background: linear-gradient(0deg, rgba(13, 11, 9, .88) 0%, rgba(13, 11, 9, .5) 30%, transparent 55%); }
  .cap { top: auto; bottom: 11svh; right: var(--margem); width: auto; transform: none; padding-right: 60px; }
  .cap h2 { font-size: clamp(26px, 7.6vw, 38px); }
  .cap p { margin-top: 12px; font-size: 15px; }
  .hero-texto { bottom: 12svh; padding-right: 0; }
  .duas, .dados { grid-template-columns: 1fr; }
  .numeros { grid-template-columns: 1fr; }
  .mural { columns: 2 130px; column-gap: 10px; }
  .mural figure { margin-bottom: 10px; }
  .botao--grande { font-size: 16px; padding: 0 24px; }
}

/* sem WebGL, sem modelos ou com movimento reduzido: so o hero em video e as legendas em lista */
.sem3d .viagem { height: auto; margin-top: 0; }
.sem3d .palco { position: relative; height: auto; padding: clamp(56px, 9vw, 120px) var(--margem); background: var(--fundo); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 44px 56px; }
.sem3d .cap { position: static; width: auto; transform: none; opacity: 1; visibility: visible; padding: 0; }
.sem3d .cap:first-of-type, .sem3d .cap--fim { display: none; }
.sem3d .progresso, .sem3d #cena, .sem3d .veu { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; transition: none; }
}
