/* Landing cinematográfica do Exori Idle: o scroll roda o filme de lançamento num canvas fixo. */
:root {
  --fundo: #07090b;
  --tinta: #ece6d8;
  --apagado: #b3ac9c;
  --ouro: #e4bc6c;
  --ouro-forte: #f0c95e;
  --tinta-ouro: #1a1206;
  --sai: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Cinzel", "Times New Roman", serif;
  --texto: "Alegreya", Georgia, serif;
  --borda: clamp(20px, 6vw, 96px);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--fundo); color: var(--tinta); scrollbar-color: #4a3f2a var(--fundo); scrollbar-width: thin; }
body { font: 400 1.125rem/1.5 var(--texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--ouro); color: var(--tinta-ouro); }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--ouro-forte); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }

.pula { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ouro); color: var(--tinta-ouro); padding: 10px 14px; text-decoration: none; }
.pula:focus { top: 12px; }

/* ── Palco ── */
.palco { position: fixed; inset: 0; z-index: 0; background: var(--fundo); }
.palco canvas { width: 100%; height: 100%; display: block; }
.palco::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,9,11,.86) 0%, rgba(7,9,11,.5) 34%, rgba(7,9,11,0) 62%),
    linear-gradient(0deg, rgba(7,9,11,.8) 0%, rgba(7,9,11,0) 34%),
    linear-gradient(180deg, rgba(7,9,11,.6) 0%, rgba(7,9,11,0) 16%);
  opacity: var(--veu, 1); }

/* ── Carga ── */
.carga { position: fixed; inset: 0; z-index: 40; background: var(--fundo); display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity 600ms var(--sai), visibility 0s 600ms; }
.carga.pronta { opacity: 0; visibility: hidden; }
.carga__barra { width: 220px; height: 2px; background: #2a2418; overflow: hidden; }
.carga__barra span { display: block; height: 100%; background: var(--ouro); transform-origin: 0 50%; transform: scaleX(0); transition: transform 200ms linear; }
.carga p { font: 500 0.75rem/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--apagado); }
html:not(.js) .carga { display: none; }

/* ── Topo, trilho de cenas e linha do tempo ── */
.topo { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--borda); }
.topo__logo img { height: 30px; width: auto; }

.trilho-nav { position: fixed; z-index: 20; right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); transition: opacity 300ms var(--sai); }
.trilho-nav ol { list-style: none; padding: 0; display: grid; gap: 4px; justify-items: end; }
.trilho-nav button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 7px 4px; font: 500 0.6875rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--apagado); }
.trilho-nav button span { opacity: 0; transform: translateX(6px); transition: opacity 200ms var(--sai), transform 200ms var(--sai); }
.trilho-nav button::after { content: ""; width: 18px; height: 2px; background: currentColor; opacity: .5; transition: width 240ms var(--sai), opacity 240ms var(--sai), background-color 240ms; }
.trilho-nav button:hover span, .trilho-nav button:focus-visible span, .trilho-nav button[aria-current="true"] span { opacity: 1; transform: none; }
.trilho-nav button[aria-current="true"] { color: var(--ouro-forte); }
.trilho-nav button[aria-current="true"]::after { width: 34px; opacity: 1; }
.trilho-nav button:focus-visible { outline: 2px solid var(--ouro-forte); outline-offset: 2px; }

.linha { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(236,230,216,.12); }
.linha span { display: block; height: 100%; background: var(--ouro); transform-origin: 0 50%; transform: scaleX(0); }
.auto { all: unset; position: fixed; z-index: 20; right: clamp(10px, 2vw, 28px); bottom: 18px; cursor: pointer; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center;
  font: 500 0.6875rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--tinta); border: 1px solid rgba(236,230,216,.3); border-radius: 2px; background: rgba(7,9,11,.55);
  transition: opacity 300ms var(--sai), border-color 200ms ease, color 200ms ease, transform 160ms var(--sai); }
.auto:hover { border-color: var(--ouro); color: var(--ouro-forte); }
.auto:active { transform: scale(0.97); }
.auto:focus-visible { outline: 2px solid var(--ouro-forte); outline-offset: 2px; }
html:not(.js) .auto { display: none; }
.fim .trilho-nav, .fim .linha, .fim .auto { opacity: 0; pointer-events: none; }

/* ── Cenas ── */
.trilho { position: relative; z-index: 10; height: 1340vh; height: 1340svh; }
.cena { position: fixed; z-index: 10; left: var(--borda); bottom: clamp(56px, 13vh, 150px); width: min(36rem, 62vw);
  opacity: 0; visibility: hidden; will-change: opacity, transform, filter; }
html:not(.js) .trilho { height: auto; padding: 120px var(--borda) 40px; display: grid; gap: 64px; }
html:not(.js) .cena { position: static; opacity: 1; visibility: visible; }
html:not(.js) .palco, html:not(.js) .trilho-nav, html:not(.js) .linha { display: none; }

.cena h1, .cena h2, .fecho h2 { font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; line-height: 1.04; text-wrap: balance; color: var(--tinta); }
.cena h1 { font-size: clamp(3.25rem, 8.4vw, 6rem); color: var(--ouro-forte); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.cena h2 { font-size: clamp(2rem, 4.4vw, 4rem); text-shadow: 0 2px 24px rgba(0,0,0,.7); }
.cena__sub { margin-top: 10px; font: 500 clamp(0.8125rem, 1.3vw, 1.0625rem)/1.2 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--tinta); }
.cena__txt { margin-top: 20px; max-width: 30rem; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: var(--tinta); text-shadow: 0 1px 14px rgba(0,0,0,.8); }
.cena .btn { margin-top: 26px; }

.rola { margin-top: 44px; display: flex; align-items: center; gap: 12px; font: 500 0.75rem/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--apagado); opacity: var(--rola, 1); }
.rola svg { width: 12px; height: 20px; }

.pacotes { list-style: none; padding: 0; margin-top: 22px; max-width: 30rem; border-top: 1px solid rgba(228,188,108,.35); }
.pacotes li { display: grid; grid-template-columns: 1fr auto 8.6em; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(228,188,108,.35); }
.pacotes b { font: 600 1.1875rem/1 var(--display); color: var(--ouro-forte); font-variant-numeric: tabular-nums; }
.pacotes i { font-style: normal; text-align: right; color: var(--apagado); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

/* ── Botões ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font: 600 0.8125rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border-radius: 2px;
  transition: transform 160ms var(--sai), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn--ouro { background: var(--ouro); color: var(--tinta-ouro); }
.btn--linha { border: 1px solid rgba(236,230,216,.4); color: var(--tinta); }
.btn--p { min-height: 40px; padding: 0 18px; font-size: 0.75rem; }
.btn--g { min-height: 56px; padding: 0 34px; font-size: 0.875rem; }
@media (hover: hover) {
  .btn--ouro:hover { background: var(--ouro-forte); transform: translateY(-1px); }
  .btn--linha:hover { border-color: var(--ouro); color: var(--ouro-forte); transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
}

/* ── Fecho ── */
.fecho { position: relative; z-index: 15; min-height: 100vh; min-height: 100svh; background: var(--fundo); display: grid; align-content: center; justify-items: center; text-align: center; gap: 22px; padding: 120px var(--borda) 28px; }
.fecho::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40vh; background: linear-gradient(0deg, var(--fundo), rgba(7,9,11,0)); pointer-events: none; }
.fecho h2 { font-size: clamp(2.5rem, 7vw, 5.5rem); color: var(--ouro-forte); }
.fecho > p { max-width: 34rem; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: var(--tinta); }
.fecho__acoes { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rodape { margin-top: clamp(56px, 12vh, 140px); display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; font-size: 0.9375rem; color: var(--apagado); }
.rodape a { text-decoration: none; padding: 6px 0; transition: color 200ms ease; }
.rodape a:hover { color: var(--ouro-forte); }

/* ── Em pé (celular): o filme ocupa a faixa de cima e o texto fica embaixo, no escuro ── */
@media (max-aspect-ratio: 4/5) {
  .palco { bottom: auto; height: 58vh; height: 58svh; }
  .palco::after { background:
    linear-gradient(0deg, var(--fundo) 0%, rgba(7,9,11,0) 38%),
    linear-gradient(180deg, rgba(7,9,11,.65) 0%, rgba(7,9,11,0) 22%); }
  .cena { left: 20px; right: 20px; width: auto; bottom: auto; top: 50vh; top: 50svh; }
  .cena h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .cena h2 { font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
  .cena__txt { margin-top: 14px; }
  .rola { margin-top: 28px; }
  .trilho-nav { display: none; }
  .topo { padding: 12px 16px; }
  .topo__logo img { height: 24px; }
  .pacotes { margin-top: 14px; }
  .pacotes li { padding: 8px 0; gap: 10px; grid-template-columns: 1fr auto 7.4em; font-size: 1rem; }
  .cena .btn { margin-top: 16px; }
  .fecho__acoes { flex-direction: column; align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .trilho-nav button span, .trilho-nav button::after { transition: none; }
}
