/* Casa Offices — tour horizontal pela Casa e seletor de portas das salas */
.tour { background: var(--grafite); color: #f2efea; position: relative; padding: clamp(56px, 8vw, 96px) 0; }
.tour-palco { overflow: hidden; }
.tour-titulo { margin-bottom: 32px; }
.tour-faixa { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 20px; scrollbar-width: thin; }
.cena { flex: none; scroll-snap-align: center; width: 78vw; max-width: 420px; display: grid; gap: 14px; align-content: start; }
.cena figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.cena img { width: 100%; height: 100%; object-fit: cover; }
.cena .arco { border-radius: 999px 999px 18px 18px; }
.cena .casinha { clip-path: polygon(50% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); }
.cena .canto { border-radius: 18px 140px 18px 18px; }
.cena .reto { border-radius: 18px; }
.cena-num { font: 800 clamp(3.4rem, 9vw, 8rem)/.8 var(--titulo); color: transparent; -webkit-text-stroke: 2px #ff8f86; }
.cena-texto h3 { font-size: 1.6rem; margin: 8px 0 6px; }
.cena-texto p { color: #b9b6b0; font-size: .95rem; }
.tour-barra, .tour-contador { display: none; }

/* Desktop: a Casa passa na horizontal enquanto a página rola */
.tour-pinado { padding: 0; }
.tour-pinado .tour-palco { position: sticky; top: 0; height: 100vh; padding-top: 74px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.tour-pinado .tour-titulo { padding: 0 8vw; margin-bottom: 3vh; }
.tour-pinado .tour-faixa { overflow: visible; scroll-snap-type: none; padding: 0 8vw; gap: 5vw; width: max-content; will-change: transform; align-items: end; }
.tour-pinado .cena { width: auto; max-width: none; grid-template-columns: auto auto; height: 58vh; align-items: end; gap: 2.4vw; }
.tour-pinado .cena figure { height: 100%; }
.tour-pinado .cena-texto { width: min(22vw, 300px); padding-bottom: 6px; }
.tour-pinado .tour-barra { display: block; position: absolute; left: 8vw; right: 8vw; bottom: 5vh; height: 3px; background: rgba(255, 255, 255, .16); }
.tour-pinado .tour-barra i { display: block; height: 100%; background: var(--vermelho); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tour-pinado .tour-contador { display: block; position: absolute; right: 8vw; bottom: calc(5vh + 14px); font: 600 .85rem var(--corpo); letter-spacing: .12em; color: #b9b6b0; }

/* Salas: seletor de portas */
.salas-bloco { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); }
.portas-sala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 26px; }
.porta-sala { appearance: none; position: relative; border: 2px solid #5a5a5f; background: transparent; color: #f2efea; cursor: pointer; border-radius: 999px 999px 10px 10px; height: clamp(104px, 15vw, 168px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding-bottom: 16px; font: 800 clamp(1.8rem, 4vw, 3rem)/1 var(--titulo); transition: background .3s, border-color .3s, transform .3s; }
.porta-sala small { font: 500 .7rem var(--corpo); letter-spacing: .12em; text-transform: uppercase; color: #b9b6b0; }
.porta-sala::after { content: ''; position: absolute; right: 16%; top: 64%; width: 8px; height: 8px; border-radius: 50%; background: #b9b6b0; }
.porta-sala:hover { border-color: #ff8f86; }
.porta-sala[aria-selected="true"] { background: var(--vermelho); border-color: var(--vermelho); transform: translateY(-8px); }
.porta-sala[aria-selected="true"] small { color: #ffd6d2; }
.porta-sala[aria-selected="true"]::after { background: #ffd6d2; }
.detalhe-sala { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; background: #343437; border-radius: 26px; padding: 22px; }
.detalhe-foto { position: relative; border-radius: 18px; overflow: hidden; min-height: 360px; background: #000; }
.detalhe-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detalhe-foto small { position: absolute; left: 14px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(21, 21, 22, .72); font-size: .75rem; }
.detalhe-info { display: flex; flex-direction: column; gap: 14px; padding: 12px 10px; }
.detalhe-info h3 { font-size: clamp(2rem, 4vw, 3.2rem); }
.detalhe-info p { color: #b9b6b0; }
.mesa { width: 100%; max-width: 340px; margin: 6px 0; }
.mesa .mesa-tampo { fill: #4b4b50; }
.mesa .cadeira { fill: var(--vermelho); transform-box: fill-box; transform-origin: center; }
.troca .detalhe-foto img { animation: revelar .8s cubic-bezier(.2, .8, .2, 1); }
.troca .cadeira { animation: pular .5s backwards; }
.troca .cadeira:nth-of-type(2) { animation-delay: .05s; } .troca .cadeira:nth-of-type(3) { animation-delay: .1s; }
.troca .cadeira:nth-of-type(4) { animation-delay: .15s; } .troca .cadeira:nth-of-type(5) { animation-delay: .2s; } .troca .cadeira:nth-of-type(6) { animation-delay: .25s; }
.usos { display: flex; flex-wrap: wrap; gap: 8px; }
.usos span { padding: 7px 14px; border-radius: 999px; border: 1.5px solid #5a5a5f; font-size: .85rem; }
.detalhe-info .botao { align-self: flex-start; margin-top: auto; }
@keyframes revelar { from { clip-path: inset(0 100% 0 0); transform: scale(1.12); } to { clip-path: inset(0); transform: none; } }
@keyframes pular { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .troca .detalhe-foto img, .troca .cadeira { animation: none; } }
