@property --g { syntax: '<number>'; inherits: true; initial-value: 0; }
:root {
  --vinho: #8e1a24; --vinho2: #5e0f17; --ambar: #f2a54a; --creme: #efdcb4; --papel: #f6ead2;
  --noite: #120c0a; --noite2: #1d1410; --madeira: #5a321b; --tinta: #2a1a12;
  --disp: 'Fira Sans Extra Condensed', 'Arial Narrow', sans-serif; --txt: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --mola: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(15px, .45vw + 9px, 30px); background: var(--noite); color: var(--papel); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.13rem/1.5 var(--txt); padding-bottom: 28px; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
a { color: inherit; }
::selection { background: var(--vinho); color: #fff; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 4px; border-radius: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h2 { font: italic 900 clamp(2.6rem, 9vw, 5.6rem)/.92 var(--disp); letter-spacing: -.01em; text-wrap: balance; }

/* botão de WhatsApp */
.zap { display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: .2em 1.25em .2em 1em; border-radius: 999px; background: var(--vinho); color: #fff;
  font: 600 1.1rem/1 var(--txt); text-decoration: none; transition: transform .35s var(--mola), background .25s; touch-action: manipulation; }
.zap svg, .link svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.zap:active { transform: scale(.95); background: var(--vinho2); }
@media (hover: hover) { .zap:hover { background: #a8222e; transform: translateY(-2px); } }
.zap.claro { background: var(--papel); color: var(--vinho2); }

/* ---------- 1. palco ---------- */
.palco { position: relative; background: radial-gradient(120% 70% at 70% 30%, #2a1912 0%, var(--noite) 60%); }
.palco-cola { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; }
.barra { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.1rem 0; font-size: 1rem; }
.marca { font: italic 900 1.45rem/1 var(--disp); text-decoration: none; letter-spacing: .005em; }
.lugar { opacity: .8; }
.nome { position: relative; z-index: 1; padding: .2rem .6rem 0; font: italic 900 31vw/.8 var(--disp); letter-spacing: -.02em; color: var(--papel); text-transform: uppercase; white-space: nowrap; }
.nome-a { display: block; font-size: .24em; line-height: 1; letter-spacing: .01em; color: var(--ambar); padding-left: .12em; }
.nome-b { display: block; }
.palco-gl { position: relative; z-index: 2; }
.palco-foto { width: 100%; aspect-ratio: 1200 / 652; object-fit: cover; margin-top: 1rem; }
.palco-txt { position: relative; z-index: 3; padding: 1.2rem 1.1rem 1.6rem; display: grid; gap: .9rem; justify-items: start; }
.faz { font-size: 1.2rem; line-height: 1.3; max-width: 22ch; }
.dica { display: none; }
.pecas { list-style: none; display: grid; gap: .3rem; padding: 0 1.1rem; position: relative; z-index: 3; font: italic 700 1.3rem/1.1 var(--disp); }
.abre-txt { position: relative; z-index: 3; padding: 1.5rem 1.1rem 3rem; max-width: 34rem; }
.abre-txt h2 { font-size: clamp(2.2rem, 8vw, 4rem); margin-bottom: .6rem; }
.abre-txt p { max-width: 30ch; }
.breu { display: none; }

/* com o 3D */
html.gl .palco { height: 390svh; background: none; }
html.gl .palco-cola { position: sticky; top: 0; height: 100svh; min-height: 0; display: block; background: radial-gradient(90% 60% at 78% 42%, #2b1a12 0%, #160e0b 55%, #0d0807 100%); }
html.gl .palco-gl { position: absolute; inset: 0; }
html.gl .palco-foto { display: none; }
.gl canvas.gl, canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
html.gl .nome { position: absolute; left: 0; right: 0; top: calc(2.6rem + 2svh); padding: 0 .55rem; }
html.gl .palco-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 1.1rem calc(28px + 1rem); pointer-events: none; }
html.gl .palco-txt > * { pointer-events: auto; }
html.gl .faz { text-shadow: 0 1px 12px rgba(0,0,0,.9), 0 0 2px #000; }
@media (max-width: 899px) { html.gl .palco-txt { top: 0; align-content: end; } html.gl .faz { position: absolute; left: 1.1rem; right: 1.1rem; top: calc(2.6rem + 2svh + 33vw); max-width: 20ch; font-size: 1.15rem; } }
html.gl .dica { display: block; font-size: .95rem; opacity: .92; text-shadow: 0 1px 6px #000, 0 0 2px #000; }
html.tocou .dica { opacity: 0; transition: opacity .6s; }
html.gl .pecas { position: absolute; inset: 0; padding: 0; pointer-events: none; }
html.gl .pecas li { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity .35s; padding-left: .9rem; margin-top: -1.6rem; }
html.gl .pecas li::before { content: ''; position: absolute; left: -1.4rem; top: .55em; width: 2rem; height: 2px; background: var(--ambar); transform: rotate(-35deg); transform-origin: 0 50%; }
html.gl .pecas li { text-shadow: 0 1px 10px #000, 0 0 2px #000; font-size: 1.25rem; }
html.gl .pecas li.on { opacity: 1; }
html.gl .pecas li.esq { translate: -100% 0; padding: 0 .9rem 0 0; }
html.gl .pecas li.esq::before { left: auto; right: -1.4rem; transform: rotate(35deg); transform-origin: 100% 50%; }
html.gl .abre-txt { position: absolute; left: 0; bottom: 0; padding: 0 1.1rem calc(28px + 1.2rem); opacity: 0; transform: translateY(1.5rem); transition: opacity .5s var(--mola), transform .7s var(--mola); pointer-events: none; }
html.gl .abre-txt h2 { text-shadow: 0 2px 20px rgba(0,0,0,.6); }
html.gl.abrindo .abre-txt { opacity: 1; transform: none; }
html.gl .barra, html.gl .nome, html.gl .palco-txt { transition: opacity .5s, transform .8s var(--mola); }
html.gl.abrindo .nome, html.gl.abrindo .palco-txt, html.gl.passou .nome, html.gl.passou .palco-txt { opacity: 0; transform: translateY(-1rem); pointer-events: none; }
html.gl.abrindo .palco-txt *, html.gl.passou .palco-txt * { pointer-events: none; }
html.gl .breu { display: block; position: absolute; inset: 0; z-index: 5; background: #050302; opacity: var(--mergulho, 0); pointer-events: none; }

/* entrada */
@media (prefers-reduced-motion: no-preference) {
  html.js .barra { animation: desce .9s var(--mola) .15s both; }
  html.js .nome-a { animation: luz .6s ease-out .05s both; }
  html.js .nome-b { animation: ergue 1.1s var(--mola) .08s both; }
  html.js .faz { animation: luz .5s ease-out .3s both; }
  html.js .zap { animation: chega .9s var(--mola) .75s both; }
  html.js .palco-txt .dica { animation: luz .8s ease-out 1.3s both; }
  html.js .palco-gl { animation: luz 1s ease-out 0s both; }
}
@keyframes desce { from { opacity: 0; transform: translateY(-.8rem); } }
@keyframes luz { from { opacity: 0; } }
@keyframes ergue { from { opacity: .0; clip-path: inset(100% 0 0 0); transform: translateY(.18em); } 30% { opacity: 1; } to { clip-path: inset(-10% 0 -10% 0); } }
@keyframes chega { from { opacity: 0; transform: translateY(1rem) scale(.92); } }


/* ---------- 2. a escuta: o furo do bumbo vira o cone da NS-10 ---------- */
.grava { position: relative; background: #050302; }
.grava-cola { position: relative; padding: 2.5rem 1.1rem 4rem; display: grid; gap: 2rem; justify-items: center; }
.ns10 { display: block; width: min(78vw, 46svh); padding: 0; border-radius: 10px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); touch-action: manipulation; }
.ns10 { position: relative; }
.ns10 svg { display: block; width: 100%; height: auto; position: relative; }
.ns10::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -5%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242,165,74,.16), rgba(242,165,74,0)); z-index: -1; }
.ns10 .cone { transform-box: fill-box; transform-origin: center; }
.ns10.bate .cone { animation: bombeia .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes bombeia { 20% { transform: scale(.955); } 55% { transform: scale(1.025); } }
.grava-txt { max-width: 34rem; justify-self: start; }
.grava-txt h2 { margin-bottom: 1rem; max-width: 11ch; }
.grava-txt p { max-width: 34ch; color: #e8dccb; margin-bottom: .8rem; }
.grava-txt .mics { color: var(--ambar); }
html.js .grava { height: 210svh; --g: 0; }
html.gl .grava { margin-top: -100svh; z-index: 6; background: linear-gradient(transparent 0 100svh, #050302 100svh, #050302 calc(100% - 70svh), var(--vinho) 100%); }
html.gl .grava-cola { pointer-events: none; }
html.gl .grava-cola > * { pointer-events: auto; }
html.js .grava-cola { position: sticky; top: 0; height: 100svh; padding-top: 1.6rem; padding-bottom: calc(28px + 1.4rem); align-content: center; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  html.js .ns10 { transform: scale(calc(.09 + .91 * var(--g))); opacity: calc(.2 + 2 * var(--g) - 2.4 * var(--sai, 0)); transform-origin: 50% 61.6%; }
  html.js .grava-txt { opacity: calc((var(--g) - .55) * 3 - 2.4 * var(--sai, 0)); transform: translateY(calc((1 - var(--g)) * 3rem)); }
}

/* ---------- 3. salas ---------- */
.salas { position: relative; background: var(--vinho); color: #fff; padding: 5rem 1.1rem 5rem; transition: background .6s; }
.salas > * { position: relative; }
.salas[data-luz="B"] { background: #7a1620; }
.salas h2 { max-width: 12ch; margin-bottom: 2.2rem; }
.plantas { display: grid; gap: 1rem; }
.planta { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border-radius: 3px; outline-offset: 5px; text-align: left; background: #2a0a0e; box-shadow: 0 18px 40px -18px rgba(40,0,6,.8); }
.planta[data-sala="A"] { aspect-ratio: 1.2; }
.planta[data-sala="B"] { aspect-ratio: 1.714; }
.planta img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8) saturate(.75) sepia(.15); transition: filter .7s var(--mola), transform 1.2s var(--mola); }
.planta[aria-pressed="true"] img { filter: brightness(1.12) saturate(1.05); transform: scale(1.03); }
.planta::after { content: ''; position: absolute; inset: 0; border: 3px solid transparent; pointer-events: none; transition: border-color .4s; }
.planta[aria-pressed="true"]::after { border-color: var(--ambar); border-width: 5px; box-shadow: inset 0 0 60px rgba(242,165,74,.35); }
.planta .m2 { position: absolute; left: .7rem; top: .4rem; font: italic 900 3.6rem/1 var(--disp); text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.planta .cap { position: absolute; left: .8rem; bottom: .7rem; font-size: 1.05rem; font-weight: 600; text-shadow: 0 1px 10px #000; }
.planta:active img { transform: scale(.99); }
.salas-nota { margin: 1.2rem 0 1.4rem; color: #f3d6d0; }

/* ---------- 4. Paulo B ---------- */
.paulo { background: var(--creme); color: var(--tinta); padding: 0 0 5rem; }
.paulo-foto { height: 50svh; overflow: hidden; }
.paulo-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; filter: sepia(.25) contrast(1.08); }
.paulo-txt { padding: 0 1.1rem; position: relative; }
.ano { font: italic 900 9.5rem/.8 var(--disp); color: var(--vinho); margin-top: -3.6rem; letter-spacing: -.02em; position: relative; }
.paulo h2 { font-size: clamp(2.2rem, 8vw, 4.2rem); margin: .9rem 0 1.3rem; max-width: 14ch; }
.paulo-txt p:not(.ano) { max-width: 34ch; margin-bottom: 1rem; }
.paulo .zap { margin-top: .6rem; }

/* ---------- 5. pedido ---------- */
.pedido { position: relative; background: var(--papel); color: var(--tinta); padding: 0 1.1rem 4.5rem; }
.tapete { height: 4.5rem; margin: 0 -1.1rem 3.5rem; background:
  repeating-linear-gradient(90deg, #6b3f1f 0 14px, #e9d3a6 14px 40px, #3a2212 40px 46px, #c69a62 46px 74px, #2a170c 74px 80px, #efdcb4 80px 120px); }
.pedido h2 { margin-bottom: 1.6rem; max-width: 11ch; }
.escolha { display: grid; gap: 0; margin-bottom: 1.6rem; max-width: 30rem; }
.escolha button { display: flex; justify-content: flex-start; align-items: center; gap: 1rem; text-align: left; min-height: 52px; padding: .35rem .2rem .35rem .1rem; border-bottom: 1px solid #d5c3a0; font: italic 900 2.1rem/1 var(--disp); color: var(--tinta); transition: color .3s, padding .45s var(--mola); }
.escolha:not(.sala) button::after { content: ''; order: -1; flex: none; width: 1.05rem; height: 1.05rem; margin-left: .1rem; border: 2px solid currentColor; border-radius: 50%; transition: background .3s, transform .4s var(--mola); }
.escolha:not(.sala) button[aria-pressed="true"]::after { background: currentColor; transform: scale(1.15); }
@media (hover: hover) { .escolha:not(.sala) button:hover { color: var(--vinho); } }
.escolha button[aria-pressed="true"] { color: var(--vinho); }
.escolha:not(.sala) button[aria-pressed="true"]::before { display: none; }
.escolha button[aria-pressed="true"]::before { content: ''; display: inline-block; width: .5rem; height: .9em; margin: 0 .55rem 0 -1.05rem; background: var(--vinho); vertical-align: -.08em; }
.escolha:has([aria-pressed="true"]) button:not([aria-pressed="true"]) { color: #9a8670; }
.escolha.sala { display: flex; gap: .6rem; flex-wrap: wrap; }
.escolha.sala button { border: 2px solid var(--tinta); border-radius: 999px; padding: .3rem 1.1rem .4rem; min-height: 48px; font: 600 1.1rem/1 var(--txt); transition: background .3s, color .3s, border-color .3s; }
.escolha.sala button[aria-pressed="true"] { background: var(--vinho); border-color: var(--vinho); color: var(--papel); padding-left: 1.1rem; }
.escolha.sala button[aria-pressed="true"]::before { display: none; }
.escolha.sala:has([aria-pressed="true"]) button:not([aria-pressed="true"]) { border-color: #b9a587; }
.escolha.sala[hidden] { display: none; }
.msg::before { content: 'Vai assim pro Paulo:'; display: block; font: 600 .85rem/1.2 var(--txt); color: #8a7560; margin-bottom: .35rem; }
.msg { font-size: 1.2rem; line-height: 1.35; padding: 1rem 1.1rem; margin-bottom: 1rem; width: 100%; max-width: 30rem; background: #fff; border-radius: 14px 14px 14px 3px; box-shadow: 0 1px 0 #d5c3a0; color: #1a110c; }
.pedido .zap { width: 100%; max-width: 30rem; justify-content: center; }
.regra { margin-top: 1.4rem; font-size: 1rem; color: #6b5848; }

/* ---------- 6. fecho: o endereço e a Sala A acesa ---------- */
.fecho { position: relative; background: radial-gradient(90% 60% at 70% 70%, #2b1a12 0%, #160e0b 55%, #0d0807 100%); overflow: hidden; }
.fecho { display: flex; flex-direction: column; }
.fecho-txt { order: 0; } .fecho-foto { order: 1; } .rodape { order: 2; }
.fecho-foto { margin: -1rem 0 0; position: relative; }
.fecho-foto img { display: block; width: 100%; height: 52svh; object-fit: cover; object-position: 52% 62%; }
.fecho-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #120b08 0, rgba(18,11,8,0) 18%, rgba(18,11,8,0) 80%, #0d0807 100%); }
.fecho-txt { position: relative; z-index: 2; padding: 3.4rem 1.1rem 1.4rem; }
@media (min-width: 900px) {
  .fecho { min-height: 100svh; justify-content: space-between; }
  .fecho-txt { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .fecho-foto { position: absolute; right: 0; top: 0; bottom: 0; width: 62%; }
  .fecho-foto img { height: 100%; object-fit: cover; object-position: 55% 60%; }
  .fecho-foto::after { background: linear-gradient(90deg, #120b08 0, rgba(18,11,8,.55) 22%, rgba(18,11,8,0) 50%), linear-gradient(0deg, #0d0807 0, rgba(13,8,7,0) 25%); }
}
.end { font-size: 16vw; line-height: .84; text-transform: uppercase; margin-bottom: 1.1rem; }
.end span { display: block; white-space: nowrap; }
.end span + span { color: var(--ambar); }
.fecho-txt > p { font-size: 1.2rem; margin-bottom: 1.4rem; max-width: 26ch; text-shadow: 0 1px 10px #000; }
.fecho-links { display: grid; gap: .9rem; justify-items: start; }
.link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font: 600 1.1rem/1 var(--txt); text-decoration: none; border-bottom: 2px solid rgba(242,165,74,.6); text-shadow: 0 1px 10px #000; }
.rodape { position: relative; z-index: 2; display: grid; gap: 1rem; padding: 2rem 1.1rem 2.2rem; border-top: 1px solid #3a2a22; color: #cdbba5; font-size: 1rem; background: #0d0807; }
.rodape .marca { color: var(--papel); }
.rodape a { text-underline-offset: 3px; }

[data-previa] { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--vinho2); color: #f3dcc0; font: 600 12px/1 var(--txt); letter-spacing: .01em; white-space: nowrap; overflow: hidden; }

/* revelação por rolagem: cada uma do seu jeito */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-rv] { opacity: 0; transform: translateY(2rem); transition: opacity .8s var(--mola), transform 1s var(--mola); }
  html.js [data-rv].vis { opacity: 1; transform: none; }
  html.js .paulo-foto[data-rv] { opacity: 1; transform: none; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path 1.3s var(--mola); }
  html.js .paulo-foto[data-rv].vis { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  html.js .ano[data-rv] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--mola) .2s; }
  html.js .ano[data-rv].vis { clip-path: inset(-10% -5% -10% 0); }
  html.js .plantas[data-rv] { transform: scale(.94); }
  html.js .escolha[data-rv] button { opacity: 0; transform: translateX(-1rem); transition: opacity .5s, transform .7s var(--mola), color .3s, padding .45s var(--mola); }
  html.js .escolha[data-rv].vis button { opacity: 1; transform: none; }
  html.js .escolha[data-rv].vis button:nth-child(2) { transition-delay: .05s; }
  html.js .escolha[data-rv].vis button:nth-child(3) { transition-delay: .1s; }
  html.js .escolha[data-rv].vis button:nth-child(4) { transition-delay: .15s; }
}

/* ---------- telas largas ---------- */
@media (min-width: 900px) {
  h2 { font-size: clamp(3rem, 5.4vw, 7rem); }
  .barra { padding: 1.4rem 2.4rem 0; }
  .nome { font-size: 17vw; padding: 0 2rem; }
  html.gl .nome { top: 3.6rem; padding: 0 1.8rem; }
  html.gl .palco-txt { padding: 0 2.4rem 2.4rem; top: calc(3.6rem + 18.6vw); bottom: auto; }
  .faz { font-size: 1.6rem; }
  .faz { max-width: 24ch; }
  html.gl .abre-txt { padding: 0 2.4rem 3rem; max-width: 40rem; }
  .grava-cola { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: 3rem 2.4rem; }
  .ns10 { width: min(40vw, 74svh * .566); justify-self: end; }
  .grava-txt h2 { max-width: 12ch; }
  .salas { padding: 7rem 2.4rem; }
  .salas h2 { max-width: 16ch; }
  .plantas { display: flex; align-items: flex-end; gap: 1.6rem; }
  .planta[data-sala="A"] { flex: 15; aspect-ratio: 1.2; }
  .planta[data-sala="B"] { flex: 10.5; aspect-ratio: .84; }
  .paulo { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; padding: 0; }
  .paulo-foto { height: 100svh; }
  .paulo-txt { padding: 4rem 2.4rem 5rem 3rem; }
  .paulo-txt .ano { margin-left: -12rem; }
  .ano { font-size: 14rem; margin: 0; }
  .pedido { padding: 0 2.4rem 6rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .pedido .tapete { grid-column: 1 / -1; margin: 0 -2.4rem 4rem; height: 6rem; }
  .pedido h2 { grid-column: 1; grid-row: 2; font-size: clamp(4rem, 8vw, 10rem); max-width: 7ch; }
  .pedido > :not(.tapete):not(h2) { grid-column: 2; }
  .pedido h2 { grid-row: 2 / span 5; align-self: start; }
  .fecho-txt { padding: 5rem 2.4rem 2rem; }
  .end { font-size: 10vw; }
  .rodape { grid-template-columns: 1.2fr 1.4fr 1fr; padding: 2.4rem; }
}
@media (min-width: 2400px) {
  html { font-size: .84vw; }
  html.gl .palco-txt { top: calc(3.6rem + 20.6vw); }
  .nome { font-size: 19vw; }
  .salas > .zap { justify-self: start; }
  .grava-cola { gap: 8rem; }
  .salas { display: grid; grid-template-columns: .8fr 2fr; column-gap: 6rem; padding: 9rem 4rem; align-items: end; }
  .salas h2 { grid-row: 1 / span 3; align-self: start; }
  .pedido { padding-left: 4rem; padding-right: 4rem; }
}
/* enquanto o 3D carrega, não mostra a lista de peças nem o texto da bateria montada */
html.js:not(.gl):not(.semgl):not(.tarde) :is(.pecas li, .abre-txt) { opacity: 0; transition: none; }
