/* Atalaia: noite azul na fachada e nas plantas, papel claro na leitura.
   Serifa (Instrument Serif) nos títulos e números, sans (Geist) na interface. */

:root {
  --noite: #0E1626;      /* fundo das plantas; as imagens de planta usam esta mesma cor */
  --marfim: #F3EFE6;
  --papel: #F6F3EC;
  --tinta: #151B28;
  --texto: #3A4050;      /* corpo de texto sobre papel */
  --latao: #D2AE72;
  --nevoa: #A3ACBF;
  --cinza: #6F6D67;
  --linha: rgb(243 239 230 / .17);
  --linha-clara: rgb(21 27 40 / .14);

  --margem: max(1.25rem, 5vw);
  --serifa: 'Instrument Serif', 'Times New Roman', serif;
  --raio: 18px;
  --suave: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.travado { overflow: hidden; }

body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 400 1rem/1.6 Geist, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
em { font-family: var(--serifa); font-style: italic; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--serifa); font-weight: 400; letter-spacing: -0.012em; line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 4.8vw, 4.3rem); }
.bloco h2 em { color: var(--cinza); }

:focus-visible { outline: 2px solid var(--latao); outline-offset: 3px; }
/* Sobre papel claro o latão some: o contorno de foco passa a ser escuro. */
:is(.bloco, .rodape) :focus-visible, .contato:focus-visible { outline-color: var(--tinta); }

.so-leitor, .pular:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular:focus { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--marfim); color: var(--noite); }

/* Rótulos pequenos em caixa alta */
.predio__sobre, .predio__entrega, .ficha__topo, .ficha__dica, .painel__topo, .status {
  font-size: .6875rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .5rem 1.4rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent); background: transparent;
  font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.botao:hover { border-color: currentColor; }
.botao:active { transform: scale(.98); }
.botao--claro { border-color: var(--marfim); background: var(--marfim); color: var(--noite); }
.botao--claro:hover { background: #fff; border-color: #fff; }
.botao--escuro { border-color: var(--tinta); background: var(--tinta); color: var(--papel); }
.botao--escuro:hover { background: #26304a; border-color: #26304a; }

.passo {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1rem;
  border: 1px solid var(--linha); border-radius: 999px; background: none; font-size: .9rem; cursor: pointer;
}
.passo:disabled { opacity: .35; pointer-events: none; }

.status { display: inline-flex; align-items: center; gap: .4rem; padding: .24rem .55rem; border: 1px solid; border-radius: 3px; color: var(--cor, var(--latao)); white-space: nowrap; }
.status::before { content: ''; width: .34rem; height: .34rem; border-radius: 50%; background: currentColor; }
.status--reservado { --cor: var(--marfim); }
.status--vendido { --cor: var(--nevoa); }

/* ---------- Topo flutuante ---------- */

.topo {
  position: fixed; z-index: 20; top: max(1rem, env(safe-area-inset-top)); left: var(--margem); right: var(--margem);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; pointer-events: none;
}
.topo > * {
  pointer-events: auto; display: flex; align-items: center; color: var(--marfim);
  background: rgb(14 22 38 / .62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--linha); border-radius: 999px;
}
.topo__marca { gap: .8rem; padding: .45rem 1.1rem; text-decoration: none; }
.topo__marca b { font: italic 400 1.5rem/1 var(--serifa); }
.topo__marca span { padding-left: .8rem; border-left: 1px solid var(--linha); font-size: .78rem; color: var(--nevoa); }
.topo__nav { gap: 1.6rem; padding: .3rem .3rem .3rem 1.5rem; font-size: .875rem; }
.topo__nav a { text-decoration: none; transition: color .15s; }
.topo__nav a:not(.topo__visita) { color: rgb(243 239 230 / .82); }
.topo__nav a:not(.topo__visita):hover { color: #fff; }
.topo__visita { padding: .55rem 1.15rem; border-radius: 999px; background: var(--marfim); color: var(--noite); font-weight: 500; }
.topo__visita:hover { background: #fff; }

/* ---------- O prédio ---------- */

.predio { position: relative; overflow: hidden; height: 100svh; min-height: 560px; background: var(--noite); color: var(--marfim); }
.predio__cena { position: absolute; inset: 0; }
.predio__img, .predio__faixas { position: absolute; inset: 0; width: 100%; height: 100%; }
.predio__img { object-fit: cover; }
.predio::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(8 13 24 / .88), transparent 44%), linear-gradient(to bottom, rgb(8 13 24 / .5), transparent 24%);
}

/* Abertura: a fachada surge e assenta, depois o texto sobe. Acontece uma vez, ao carregar. */
.predio__img { opacity: 0; transform: scale(1.06); }
.predio--pronto .predio__img { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 2.2s var(--suave); }
.predio__texto > *, .predio__entrega { opacity: 0; transform: translateY(18px); }
.predio--pronto .predio__texto > *, .predio--pronto .predio__entrega { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.1s var(--suave); }
.predio--pronto .predio__texto > :nth-child(1) { transition-delay: .35s; }
.predio--pronto .predio__texto > :nth-child(2) { transition-delay: .45s; }
.predio--pronto .predio__texto > :nth-child(3) { transition-delay: .6s; }
.predio--pronto .predio__texto > :nth-child(4) { transition-delay: .7s; }
.predio--pronto .predio__entrega { transition-delay: .8s; }
.ficha { opacity: 0; }
.predio--pronto .ficha { opacity: 1; }
/* O destaque do andar só aparece junto com a fachada, nunca solto sobre o fundo escuro. */
.predio__faixas { opacity: 0; }
.predio--pronto .predio__faixas { opacity: 1; transition: opacity .6s ease .7s; }

.predio__faixas polygon { fill: transparent; stroke: transparent; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .14s; }
.predio__faixas polygon.ativa { fill: rgb(255 240 205 / .24); stroke: var(--marfim); }
.predio--status .predio__faixas [data-status='disponivel'] { fill: rgb(210 174 114 / .42); }
.predio--status .predio__faixas [data-status='reservado'] { fill: rgb(243 239 230 / .3); }
.predio--status .predio__faixas [data-status='vendido'] { fill: rgb(10 16 28 / .74); }
.predio--status .predio__faixas polygon.ativa { stroke: var(--marfim); }

/* Enquanto a câmera aproxima do andar, o texto e o cartão saem de cena. */
.predio.predio--saindo :is(.predio__texto, .predio__entrega, .ficha, .trilho) { opacity: 0; transition: opacity .3s; }

.predio__texto { position: absolute; z-index: 2; left: var(--margem); bottom: clamp(2rem, 7vh, 4.5rem); max-width: min(38rem, 46%); }
.predio__sobre { display: flex; align-items: center; gap: .8rem; color: rgb(243 239 230 / .9); text-shadow: 0 1px 12px rgb(0 0 0 / .6); }
.predio__sobre::before { content: ''; width: 2rem; height: 1px; background: var(--latao); }
.predio__texto h1 { margin-top: 1rem; font-size: clamp(2.9rem, 5.6vw, 5.6rem); line-height: .95; letter-spacing: -0.018em; }
.predio__texto h1 em { color: #F1DCB1; }
.predio__dica { margin-top: 1.1rem; font-size: 1.05rem; color: rgb(243 239 230 / .84); }
.predio__entrega { position: absolute; z-index: 2; right: var(--margem); bottom: clamp(2rem, 7vh, 4.5rem); color: rgb(243 239 230 / .8); text-shadow: 0 1px 12px rgb(0 0 0 / .6); }

.chave {
  position: relative; margin-top: 1.2rem; min-height: 2.5rem; padding: .5rem 1.1rem .5rem 2.3rem;
  border: 1px solid var(--linha); border-radius: 999px; background: rgb(14 22 38 / .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .875rem; cursor: pointer; transition: border-color .18s;
}
.chave:hover { border-color: rgb(243 239 230 / .5); }
.chave::before { content: ''; position: absolute; left: .95rem; top: 50%; width: .7rem; height: .7rem; translate: 0 -50%; border-radius: 50%; border: 1px solid var(--marfim); transition: background-color .18s, border-color .18s; }
.chave[aria-pressed='true']::before { background: var(--latao); border-color: var(--latao); }

/* Trilho de andares, como o painel de um elevador */
.trilho {
  position: absolute; z-index: 2; right: var(--margem); top: 50%; translate: 0 -50%;
  width: 2.6rem; height: min(70vh, 640px); padding: .5rem .25rem;
  display: flex; flex-direction: column;
  background: rgb(14 22 38 / .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--linha); border-radius: 999px; transition: opacity .2s;
}
/* Com mouse, escolhe-se o andar no próprio prédio; o trilho só aparece para quem navega pelo teclado. */
.trilho:not(:focus-within) { opacity: 0; pointer-events: none; }
.trilho li { flex: 1; min-height: 0; display: flex; }
.trilho button {
  flex: 1; position: relative; border: 0; border-radius: 999px; background: none; color: var(--nevoa); cursor: pointer;
  font-size: clamp(.6rem, 1.5vh, .78rem); font-variant-numeric: tabular-nums;
}
.trilho [data-status='reservado']::after { content: ''; position: absolute; right: .2rem; top: 50%; width: .22rem; height: .22rem; translate: 0 -50%; border-radius: 50%; background: var(--latao); }
.trilho [data-status='vendido'] { opacity: .45; text-decoration: line-through; }
.trilho button.ativa { background: var(--marfim); color: var(--noite); opacity: 1; text-decoration: none; font-weight: 600; }

/* Cartão do andar em foco, preso à faixa do andar */
.ficha {
  position: absolute; z-index: 3; left: var(--x, 60%); top: var(--y, 50%); translate: 0 -50%;
  width: 16rem; padding: 1rem 1.2rem 1.05rem; border-radius: 6px;
  background: rgb(15 23 41 / .92); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--linha); box-shadow: 0 30px 70px -24px rgb(0 0 0 / .8);
  transition: top .2s var(--suave), left .2s var(--suave), opacity .5s ease 1s; pointer-events: none;
}
.ficha::before { content: ''; position: absolute; top: 50%; left: -1.75rem; width: 1.75rem; height: 1px; background: rgb(243 239 230 / .65); }
.ficha--esquerda { translate: -100% -50%; }
.ficha--esquerda::before { left: auto; right: -1.75rem; }
.ficha__topo { display: flex; justify-content: space-between; align-items: center; color: var(--nevoa); }
.ficha__num { margin-top: .5rem; font: 400 4.6rem/.9 var(--serifa); }
.ficha__num sup { font-size: .42em; vertical-align: top; position: relative; top: .12em; margin-left: .04em; }
.ficha__resumo { margin-top: .55rem; font-size: .875rem; color: rgb(243 239 230 / .82); }
.ficha__preco { margin-top: .4rem; font: 400 1.65rem/1.1 var(--serifa); color: var(--latao); }
.ficha__dica { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--linha); color: var(--nevoa); }
.ficha__acoes { display: none; margin-top: .9rem; gap: .5rem; }
.ficha__abrir { flex: 1; }

/* ---------- Seções claras ---------- */

.bloco { padding: clamp(4.5rem, 9vw, 8rem) var(--margem); }
.bloco > h2 { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.bloco__cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.25rem; }

.manifesto { max-width: 25em; margin-inline: auto; text-align: center; font-size: clamp(1.55rem, 3vw, 2.6rem); font-weight: 500; line-height: 1.16; letter-spacing: -0.025em; text-wrap: balance; }
.manifesto em { font-weight: 400; color: var(--cinza); letter-spacing: 0; font-size: 1.1em; }

.destaque { position: relative; margin-top: clamp(3rem, 6vw, 5rem); border-radius: var(--raio); overflow: hidden; background: var(--noite); }
.destaque img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.destaque figcaption { position: absolute; inset: auto 1.5rem 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.destaque figcaption p { max-width: 25rem; padding: 1rem 1.25rem; border-radius: 12px; background: rgb(246 243 236 / .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .95rem; line-height: 1.5; color: var(--tinta); }

.tipologia__principal { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tipologia--invertida .tipologia__capa { order: 2; }
.tipologia__capa { display: block; border-radius: var(--raio); overflow: hidden; background: var(--noite); }
.tipologia__capa img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: scale .7s var(--suave); }
.tipologia__capa:hover img { scale: 1.03; }
.tipologia__texto p { max-width: 42ch; font-size: 1.0625rem; color: var(--texto); }
.tipologia__dados { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); margin: 2rem 0; padding-bottom: 1.6rem; border-bottom: 1px solid var(--linha-clara); }
.tipologia__dados div { display: flex; flex-direction: column-reverse; }
.tipologia__dados dd { font: 400 2.4rem/1 var(--serifa); }
.tipologia__dados dt { margin-top: .4rem; font-size: .8125rem; color: var(--cinza); }
.tipologia__texto .botao + span { margin-left: 1rem; font-size: .9rem; color: var(--cinza); }
.tipologia__ambientes { margin-top: clamp(1.25rem, 2.5vw, 2rem); display: grid; grid-template-columns: repeat(var(--colunas, 4), 1fr); gap: clamp(.6rem, 1.4vw, 1.1rem); }
.tipologia__ambientes a { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--noite); text-decoration: none; }
.tipologia__ambientes a::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(to top, rgb(8 13 24 / .7), transparent); pointer-events: none; }
.tipologia__ambientes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: scale .6s var(--suave); }
.tipologia__ambientes a:hover img { scale: 1.05; }
.tipologia__ambientes span { position: absolute; z-index: 1; left: .8rem; bottom: .65rem; color: #fff; font-size: .875rem; font-weight: 500; }

.filtro { display: inline-flex; padding: .2rem; border: 1px solid var(--linha-clara); border-radius: 999px; }
.filtro__op { min-height: 2.5rem; padding: .45rem 1.15rem; border: 0; border-radius: 999px; background: none; font-size: .9rem; cursor: pointer; transition: background-color .18s, color .18s; }
.filtro__op[aria-pressed='true'] { background: var(--tinta); color: var(--papel); }

.tabela-rolagem { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
/* position: relative mantém dentro da célula o texto oculto para leitores de tela. */
.tabela th { position: relative; padding: .6rem .75rem .6rem 0; text-align: left; font-size: .8125rem; font-weight: 500; color: var(--cinza); border-bottom: 1px solid var(--tinta); }
/* O texto oculto do último cabeçalho fica preso à borda, sem criar 1 px de rolagem lateral. */
.tabela th .so-leitor { right: 0; }
.tabela td { padding: .8rem .75rem .8rem 0; border-bottom: 1px solid var(--linha-clara); transition: background-color .15s; }
.tabela td:first-child { font: 400 1.8rem/1 var(--serifa); }
.tabela td:last-child, .tabela th:last-child { padding-right: 0; text-align: right; }
.tabela tbody tr:hover td { background: rgb(21 27 40 / .035); }
.tabela tr[data-status='vendido'] td { color: var(--cinza); }
.tabela td:nth-child(5) { white-space: nowrap; }
.tabela a { display: inline-block; padding: .45rem 0; font-weight: 500; text-underline-offset: .28em; text-decoration-thickness: 1px; white-space: nowrap; }
.tabela .status { --cor: #80591A; }
.tabela .status--reservado { --cor: var(--tinta); }
.tabela .status--vendido { --cor: var(--cinza); }
.tabela .tabela__vazio td { padding: 2rem 0; font: inherit; text-align: left; color: var(--cinza); }

.lazer { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 2vw, 1.5rem); }
.lazer figure > div { border-radius: var(--raio); overflow: hidden; background: var(--noite); }
.lazer img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lazer figcaption { margin-top: 1rem; max-width: 34ch; font-size: .95rem; color: var(--texto); }
.lazer figcaption b { display: block; margin-bottom: .2rem; font-size: 1rem; font-weight: 600; color: var(--tinta); }

.visita { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); border-top: 1px solid var(--linha-clara); }
.visita p { margin-top: 1.5rem; max-width: 42ch; font-size: 1.0625rem; color: var(--texto); }
.visita .visita__quem { font-size: 1rem; font-weight: 600; color: var(--tinta); }
.form { display: grid; gap: 1.1rem; align-content: start; }
.form label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 500; color: var(--cinza); }
.form input, .form select {
  min-height: 3.1rem; padding: .5rem 1rem; border: 1px solid var(--linha-clara); border-radius: 12px; background: #fff; color: var(--tinta);
  font-size: 1rem; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus { outline: 0; border-color: var(--tinta); box-shadow: 0 0 0 3px rgb(210 174 114 / .35); }
.form .botao { margin-top: .4rem; min-height: 3.2rem; font-size: .95rem; }
.form .form__nota { margin-top: 0; font-size: .8125rem; color: var(--cinza); }

.rodape { padding: 3rem var(--margem) 0; border-top: 1px solid var(--linha-clara); overflow: hidden; }
.rodape__texto { font-size: .875rem; color: var(--cinza); }
.rodape__texto p { max-width: 70ch; }
.rodape__texto p + p { margin-top: .4rem; }
.rodape__marca { margin: 2rem 0 -0.16em -0.04em; font: 400 clamp(6.5rem, 30vw, 30rem)/.78 var(--serifa); color: #A9853F; letter-spacing: -0.02em; white-space: nowrap; }

/* Imagens das seções chegam com um leve assentamento conforme entram na tela.
   Só em navegadores com animação ligada à rolagem; nos demais ficam paradas. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .destaque img, .tipologia__capa img, .lazer img {
      animation: assentar linear both; animation-timeline: view(); animation-range: entry 0% cover 42%;
    }
  }
}
@keyframes assentar { from { transform: scale(1.14); } to { transform: scale(1); } }

/* Atalho de conversa, visível depois da fachada */
.contato {
  position: fixed; z-index: 15; right: var(--margem); bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3.1rem; padding: .5rem 1.25rem .5rem 1rem; border-radius: 999px;
  background: var(--tinta); color: var(--papel); font-size: .9rem; font-weight: 500; text-decoration: none;
  box-shadow: 0 14px 36px -12px rgb(21 27 40 / .55);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .4s var(--suave), background-color .18s;
}
.contato--visivel { opacity: 1; transform: none; pointer-events: auto; }
.contato:hover { background: #26304a; }
.contato svg { width: 1.25rem; height: 1.25rem; flex: none; fill: var(--latao); }

/* ---------- Planta e ambientes ---------- */

.imersao { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: var(--mesa, var(--noite)); color: var(--marfim); opacity: 0; transition: opacity .35s ease; }
.imersao--visivel { opacity: 1; }
.imersao--direto { transition: none; }

.planta { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1rem; padding: clamp(1rem, 2.5vw, 2.5rem); }
.planta__palco { display: grid; place-items: center; min-height: 0; perspective: 1500px; }
.planta__quadro { position: relative; }
.planta__voltar { display: none; }
/* A planta inclina com o mouse (--tx e --ty vêm do script). */
.planta__inclina {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
/* A máscara dissolve a borda da imagem no fundo, mesmo que o tom não seja idêntico. */
.planta__img {
  max-height: calc(100svh - 2 * clamp(1rem, 2.5vw, 2.5rem)); width: auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 78%, transparent 100%);
}

/* Sem imagem de planta: uma foto do apartamento ocupa o palco. */
.planta--foto .planta__img { width: 100%; height: calc(100svh - 2 * clamp(1rem, 2.5vw, 2.5rem)); object-fit: cover; border-radius: var(--raio); -webkit-mask-image: none; mask-image: none; }
.planta--foto .planta__quadro { width: 100%; }

.planta__pinos button { position: absolute; translate: -50% -50%; transform: translateZ(34px); width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.planta__pinos b {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--marfim); border: 2px solid var(--noite); box-sizing: content-box;
  box-shadow: 0 0 0 .32rem rgb(243 239 230 / .3), 0 2px 12px rgb(0 0 0 / .7);
  font-size: 0; transition: scale .18s var(--suave), background-color .18s;
}
/* Um pulso discreto avisa que os pontos são clicáveis. */
.planta__pinos b::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--marfim); animation: pulso 2.6s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
.planta__pinos span {
  position: absolute; left: 50%; bottom: 100%; translate: -50% 0; white-space: nowrap; padding: .32rem .7rem; border-radius: 999px;
  background: rgb(14 22 38 / .94); border: 1px solid var(--linha); font-size: .8125rem; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.planta__pinos button:is(:hover, :focus-visible, .ativa) b { scale: 1.4; background: var(--latao); }
.planta__pinos button:is(:hover, :focus-visible, .ativa) span { opacity: 1; }

.painel {
  align-self: center; max-height: 100%; overflow-y: auto; display: flex; flex-direction: column;
  padding: 1.6rem 1.7rem; border: 1px solid var(--linha); border-radius: 6px; background: rgb(10 16 30 / .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.painel__topo { display: flex; justify-content: space-between; align-items: center; color: var(--nevoa); }
.painel__nome { margin-top: 1rem; font-size: 2.7rem; }
.painel__dados { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); }
.painel__dados div { display: flex; flex-direction: column-reverse; padding-left: 1rem; border-left: 1px solid var(--linha); }
.painel__dados div:first-child { padding-left: 0; border-left: 0; }
.painel__dados dd { font: 400 1.75rem/1 var(--serifa); }
.painel__dados dt { margin-top: .35rem; font-size: .75rem; color: var(--nevoa); }
.painel__preco { margin-top: 1.2rem; font: 400 1.85rem/1.1 var(--serifa); color: var(--latao); }
.painel__resumo { margin-top: .7rem; font-size: .9rem; line-height: 1.55; color: rgb(243 239 230 / .8); }
.painel__ambientes { margin-top: 1.1rem; counter-reset: amb; border-top: 1px solid var(--linha); }
.painel__ambientes a {
  counter-increment: amb; display: flex; align-items: baseline; gap: .9rem; padding: .6rem 0;
  border-bottom: 1px solid var(--linha); text-decoration: none; font-size: .95rem; transition: padding-left .2s var(--suave), color .15s;
}
.painel__ambientes a::before { content: counter(amb, decimal-leading-zero); font-size: .6875rem; letter-spacing: .1em; color: var(--nevoa); }
.painel__ambientes a:is(:hover, :focus-visible) { padding-left: .4rem; color: var(--latao); }
.painel__acoes { margin-top: 1.4rem; display: flex; gap: .6rem; }
.painel__acoes .botao { flex: 1; }
.painel__extra { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .8125rem; color: var(--nevoa); }
.painel__extra :is(a, button) { padding: .6rem 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 1px; cursor: pointer; }
.painel__extra :is(a, button):hover { color: var(--marfim); }
.painel__vizinhos { display: contents; }
.painel__vizinhos a[aria-disabled='true'] { display: none; }

/* z-index próprio: a foto fica acima do botão de voltar da planta, que é fixo no celular. */
.ambiente { position: absolute; z-index: 2; inset: 0; overflow: hidden; background: var(--noite); opacity: 0; transition: opacity .4s ease; }
.ambiente--visivel { opacity: 1; }
.ambiente__img { width: 100%; height: 100%; object-fit: cover; }
.ambiente::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgb(8 13 24 / .82), transparent 40%), linear-gradient(to bottom, rgb(8 13 24 / .35), transparent 16%); }
.ambiente > :not(img) { z-index: 1; }
.ambiente__voltar, .planta__voltar {
  position: absolute; z-index: 2; top: max(1rem, env(safe-area-inset-top)); left: var(--margem);
  background: rgb(14 22 38 / .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--linha);
}
.ambiente__legenda { position: absolute; left: var(--margem); bottom: clamp(5rem, 11vh, 6.5rem); max-width: 34rem; }
.ambiente__nome { font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-style: italic; text-shadow: 0 2px 30px rgb(0 0 0 / .5); }
.ambiente__nota { margin-top: .5rem; font-size: 1.05rem; color: rgb(243 239 230 / .88); }
.ambiente__outros {
  position: absolute; left: 50%; bottom: max(1.4rem, env(safe-area-inset-bottom)); translate: -50% 0; max-width: calc(100% - 2 * var(--margem));
  display: flex; gap: .2rem; padding: .25rem; overflow-x: auto; scrollbar-width: none;
  background: rgb(14 22 38 / .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--linha); border-radius: 999px;
}
.ambiente__outros::-webkit-scrollbar { display: none; }
.ambiente__outros a {
  flex: none; display: flex; align-items: center; min-height: 2.5rem; padding: .5rem 1rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: rgb(243 239 230 / .82); transition: background-color .18s, color .18s;
}
.ambiente__outros a:hover { color: #fff; }
.ambiente__outros a[aria-current='true'] { background: var(--marfim); color: var(--noite); }

.imersao__video { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; background: var(--noite); }

.aviso { position: fixed; z-index: 90; left: 50%; bottom: 1.5rem; translate: -50% 0; padding: .7rem 1.2rem; border-radius: 999px; background: var(--marfim); color: var(--noite); font-size: .9rem; font-weight: 500; box-shadow: 0 14px 36px -12px rgb(0 0 0 / .6); }

/* ---------- Toque e telas estreitas ---------- */

@media (hover: none), (max-width: 900px) {
  .trilho, .predio__entrega, .predio__dica, .ficha__dica, .ficha::before { display: none; }
  /* O bloco de texto fica sobre o topo da torre: os toques passam por ele e chegam aos andares. */
  .predio__texto { top: 5.4rem; bottom: auto; max-width: none; right: var(--margem); pointer-events: none; }
  .chave { pointer-events: auto; }
  .predio__texto h1 { font-size: clamp(2.3rem, 9.4vw, 3.6rem); max-width: 11em; }
  .predio::after { background: linear-gradient(to bottom, rgb(8 13 24 / .8), transparent 48%); }

  .ficha {
    inset: auto 0 0 0; translate: none; width: auto; border-radius: 0; pointer-events: auto;
    display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: center;
    padding: 1rem var(--margem) max(1rem, env(safe-area-inset-bottom)); border-width: 1px 0 0;
    transition: opacity .5s ease 1s;
  }
  .ficha__topo { grid-column: 2; justify-content: flex-start; gap: .6rem; }
  .ficha__topo > span:first-child { display: none; }
  .ficha__num { grid-row: 1 / span 3; margin: 0; font-size: 4.2rem; }
  .ficha__resumo { margin-top: .35rem; }
  .ficha__preco { margin-top: .15rem; font-size: 1.4rem; }
  .ficha__acoes { display: flex; grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .topo__nav { padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topo__nav a:not(.topo__visita) { display: none; }
  .topo__visita { padding: .7rem 1.2rem; box-shadow: 0 8px 24px -10px rgb(0 0 0 / .6); }
  .topo__marca span { display: none; }

  .destaque img { aspect-ratio: 4 / 5; }
  .destaque figcaption { flex-direction: column; align-items: stretch; inset: auto 1rem 1rem; }
  .tipologia__principal, .visita { grid-template-columns: 1fr; }
  .tipologia--invertida .tipologia__capa { order: 0; }
  .tipologia__ambientes { grid-template-columns: repeat(2, 1fr); }
  .tipologia__ambientes a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tipologia__ambientes a:last-child:nth-child(odd) img { aspect-ratio: 2 / 1; }
  .lazer { grid-template-columns: 1fr; gap: 2rem; }

  .contato span { display: none; }
  .contato { padding: 0; width: 3.4rem; height: 3.4rem; justify-content: center; }
  .contato svg { width: 1.5rem; height: 1.5rem; }

  .planta { display: block; overflow-y: auto; padding: 0; }
  .planta__palco { padding: 3.4rem .5rem .5rem; }
  .planta__voltar { display: inline-flex; }
  .painel [data-voltar] { display: none; }
  .planta__img { max-height: 44svh; }
  .planta__pinos span { display: none; }
  .painel { max-height: none; overflow: visible; border-width: 1px 0 0; border-radius: 0; padding: 1.4rem var(--margem) max(2rem, env(safe-area-inset-bottom)); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ambiente__legenda { bottom: 5.4rem; right: var(--margem); }
  .ambiente__outros { left: var(--margem); right: var(--margem); translate: none; max-width: none; }
}

/* Em telas estreitas a tabela mostra só o essencial e cabe sem rolagem lateral. */
@media (max-width: 640px) {
  .tabela :is(th, td):nth-child(2), .tabela :is(th, td):nth-child(3) { display: none; }
  .tabela td:first-child { font-size: 1.6rem; }
  .tabela td, .tabela th { padding-right: .5rem; }
  .tabela td { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .planta__inclina { transform: none; }
  .predio__img, .predio__texto > *, .predio__entrega { opacity: 1; transform: none; }
}
