:root {
  --night: #0c1117;
  --ink: #111921;
  --ink2: #17212b;
  --panel: rgba(12, 17, 23, 0.82);
  --line: rgba(216, 200, 174, 0.16);
  --sand: #d8c8ae;
  --text: #ebe5da;
  --mute: #9aa5ad;
  --accent: #ff9a4d;
  --accent-ink: #1a0f06;
  --sea: #5aa6ab;
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gut: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; margin: 0; }
.display em { font-style: italic; color: var(--accent); }
.kicker { color: var(--mute); margin: 0 0 14px; }
.mute { color: var(--mute); }
[hidden] { display: none !important; }

/* ---------- cena ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; touch-action: pan-y; outline: none; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 60% 45%, transparent 55%, rgba(6, 9, 13, 0.55) 100%); }
body.is-off3d #scene, body.is-off3d .vignette { visibility: hidden; }

/* ---------- carregamento ---------- */
#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 18px; background: var(--night); transition: opacity 0.9s var(--ease), visibility 0.9s; }
#loader.done { opacity: 0; visibility: hidden; }
#loader p { color: var(--mute); margin: 0; }
.loader-mark { position: relative; width: 92px; height: 92px; }
.loader-mark svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 0.4s var(--ease); }
.loader-pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; color: var(--text); }

/* ---------- navegação ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut); background: linear-gradient(to bottom, rgba(12, 17, 23, 0.7), transparent); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-word { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.brand-sub { color: var(--mute); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 0.86rem; color: var(--mute); transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 0.92rem; transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s; }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px rgba(255, 154, 77, 0.25); }
.btn-accent:hover { box-shadow: 0 10px 38px rgba(255, 154, 77, 0.45); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--sand); }
.btn-small { padding: 9px 16px; font-size: 0.82rem; }
.btn-wide { width: 100%; }
.btn-icon { width: 46px; padding: 0; height: 46px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-size: 1.2rem; }
.btn-icon[aria-pressed='true'] { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-ghost { background: none; border: 0; cursor: pointer; color: var(--mute); padding: 6px 0; }
.btn-ghost:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- jornada de scroll ---------- */
/* main fica por cima do 3D, mas deixa o mouse passar; só a interface e as seções capturam cliques */
main { position: relative; z-index: 2; pointer-events: none; }
.sheet-wrap { pointer-events: auto; }
.story { height: 520vh; position: relative; pointer-events: none; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.cap { position: absolute; left: var(--gut); bottom: 18vh; max-width: min(560px, 46vw); opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.cap.on { opacity: 1; transform: none; }
.cap h1, .cap h2 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); text-shadow: 0 2px 30px rgba(6, 9, 13, 0.5); }
.cap-text { color: var(--sand); max-width: 400px; margin: 18px 0 0; font-size: 1.02rem; }
.cap .btn { margin-top: 26px; pointer-events: auto; }
.cap.on .btn { pointer-events: auto; }
.cap:not(.on) .btn { pointer-events: none; }
.scroll-cue { position: absolute; right: var(--gut); bottom: 6vh; display: flex; align-items: center; gap: 10px; color: var(--mute); transition: opacity 0.5s; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .cap { left: var(--gut); right: var(--gut); bottom: 9vh; max-width: none; }
  .cap h1, .cap h2 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .cap-text { font-size: 0.95rem; }
  .scroll-cue { display: none; }
}

/* ---------- explorador ---------- */
.explorer { height: 100vh; height: 100svh; position: relative; pointer-events: none; }
.ex-hud { position: sticky; top: 0; height: 100vh; height: 100svh; }
.ex-hud > * { transition: opacity 0.5s var(--ease); }
/* fora do explorador, só a ficha do hover continua viva (ela é fixa na tela) */
body:not(.mode-explore) .ex-hud > *:not(.callout):not(.leader) { opacity: 0; }
body:not(.mode-explore) .ex-hud > *:not(.callout):not(.leader),
body:not(.mode-explore) .ex-hud > *:not(.callout):not(.leader) * { pointer-events: none !important; }
.ex-hud > * { pointer-events: auto; }
.ex-hud .labels, .ex-hud .ex-tip, .ex-hud .ex-hint { pointer-events: none; }

.ex-top { position: absolute; top: 72px; left: var(--gut); display: flex; align-items: center; gap: 16px; }
.ex-back { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 0.86rem; }
.ex-back:hover { border-color: var(--sand); }
.crumbs { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; color: var(--mute); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: 0.5; }
.crumbs li:last-child { color: var(--text); }

.ex-rail { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rail-title { color: var(--mute); margin: 0; }
.rail-big { font-family: var(--display); font-size: 3.6rem; line-height: 0.9; min-width: 2.2ch; text-align: right; }
.rail-big .rail-ord { font-size: 1.6rem; color: var(--accent); vertical-align: top; }
.rail-ticks { display: flex; flex-direction: column; gap: 2px; margin: 10px 0; }
.tick { display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 9px; background: none; border: 0; padding: 0 0 0 30px; cursor: pointer; color: var(--mute); }
.tick i { display: block; width: 14px; height: 1.5px; background: currentColor; opacity: 0.45; transition: width 0.3s var(--ease), opacity 0.3s, background 0.3s; }
.tick b { font: 500 0.62rem var(--mono); letter-spacing: 0.08em; opacity: 0; transition: opacity 0.3s; }
.tick.label b { opacity: 0.7; }
.tick.lazer i { background: var(--sea); opacity: 0.8; }
.tick:hover i, .tick.on i { width: 30px; opacity: 1; background: var(--accent); }
.tick:hover b, .tick.on b { opacity: 1; color: var(--text); }
.rail-list { margin-top: 4px; }

.ex-tip { position: absolute; left: 0; top: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: nowrap; transform: translate(16px, -50%); color: var(--text); letter-spacing: 0.1em; }
.ex-tip strong { color: var(--accent); font-weight: 500; }

.labels { position: absolute; inset: 0; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 500 0.66rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); white-space: nowrap; transition: border-color 0.3s, background 0.3s, color 0.3s; will-change: transform; }
.lbl::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--line); }
.lbl:hover, .lbl.on { border-color: var(--accent); color: var(--accent); }
.lbl span { color: var(--mute); }
.lbl.on span, .lbl:hover span { color: var(--sand); }
.lbl.poi { pointer-events: none; background: rgba(12, 17, 23, 0.6); color: var(--sand); }
.lbl.poi::after { height: 30px; }

.ex-legend { position: absolute; left: var(--gut); bottom: 8vh; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; width: min(360px, calc(100vw - 2 * var(--gut))); }
.legend-title { margin: 0 0 12px; color: var(--mute); }
.legend-units { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lu { text-align: left; background: var(--ink2); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color 0.25s; }
.lu:hover, .lu.on { border-color: var(--accent); }
.lu b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.lu span { display: block; font-size: 0.78rem; color: var(--mute); margin-top: 4px; }
.lu .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

.ex-card { position: absolute; left: var(--gut); bottom: 6vh; width: min(400px, calc(100vw - 2 * var(--gut))); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; animation: rise 0.6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card-head { display: flex; justify-content: space-between; color: var(--mute); }
.card-code { font-size: 4rem; margin: 6px 0 2px; }
.card-spec { margin: 0; font-weight: 600; }
.card-side { color: var(--accent); margin: 12px 0 2px; }
.card-view { margin: 0; color: var(--sand); font-size: 0.92rem; }
.card-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; }
.card-price .mono { color: var(--mute); }
.card-price strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; margin: 14px 0 10px; }
.card-actions .btn { padding: 11px 8px; font-size: 0.78rem; font-weight: 600; }
.card-actions .btn-icon { width: 42px; height: 42px; }

.ex-lazer { position: absolute; left: var(--gut); bottom: 6vh; width: min(420px, calc(100vw - 2 * var(--gut))); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; animation: rise 0.6s var(--ease); }
.ex-lazer h3 { font-size: 2.2rem; margin-bottom: 8px; }
.ex-lazer p { margin: 0 0 12px; color: var(--sand); font-size: 0.92rem; }
.lazer-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.lazer-thumbs button { padding: 0; border: 0; cursor: zoom-in; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--ink2); }
.lazer-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.ex-view-note { position: absolute; left: 50%; top: 76px; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--mute); white-space: nowrap; }
.ex-view-note .btn-ghost { color: var(--accent); }
.ex-hint { position: absolute; left: 50%; bottom: 2.4vh; transform: translateX(-50%); color: var(--sand); margin: 0; white-space: nowrap; transition: opacity 0.4s; text-shadow: 0 1px 12px rgba(6, 9, 13, 0.9); }

.ex-saved { position: absolute; right: var(--gut); bottom: 6vh; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; }
.saved-list { display: flex; gap: 6px; }
.saved-list button { background: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; font: 500 0.7rem var(--mono); }

.list2d { position: absolute; inset: 70px var(--gut) 4vh; background: rgba(12, 17, 23, 0.96); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; pointer-events: auto; z-index: 3; }
.list2d-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.list2d-head p { margin: 0; color: var(--mute); }
.list2d-grid { overflow: auto; display: grid; grid-template-columns: 54px repeat(4, 1fr); gap: 4px; align-content: start; }
.list2d-grid .fl { font: 500 0.7rem var(--mono); color: var(--mute); display: grid; place-items: center; }
.list2d-grid .hd { font: 500 0.64rem var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; padding: 4px; }
.list2d-grid button { background: var(--ink2); border: 1px solid transparent; border-radius: 8px; padding: 7px 8px; cursor: pointer; text-align: left; font-size: 0.78rem; }
.list2d-grid button:hover { border-color: var(--accent); }

@media (max-width: 760px) {
  .ex-top { top: 64px; }
  .crumbs { display: none; }
  .ex-rail { top: auto; bottom: 120px; transform: none; right: 12px; }
  body:not([data-ex='tower']) .ex-rail { display: none; }
  .rail-ticks { display: none; }
  .rail-big { font-size: 2.6rem; }
  .ex-card, .ex-lazer, .ex-legend { left: 12px; right: 12px; width: auto; bottom: 12px; padding: 16px; }
  .card-code { font-size: 3rem; }
  .card-actions { grid-template-columns: 1fr 1fr auto; }
  .card-actions [data-act='decorado'] { display: none; }
  .ex-hint { bottom: 12px; font-size: 0.6rem; }
  .ex-saved { display: none !important; }
  .ex-view-note { top: 110px; font-size: 0.58rem; white-space: normal; width: calc(100vw - 24px); justify-content: space-between; }
  .list2d { inset: 60px 8px 8px; }
}

/* ---------- ficha flutuante (hover no prédio) ---------- */
.leader { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; overflow: visible; opacity: 0 !important; transition: opacity 0.25s; z-index: 3; }
.leader.on { opacity: 1 !important; }
.leader line { stroke: rgba(235, 229, 218, 0.55); stroke-width: 1; }
.leader circle { fill: var(--accent); }
.callout { position: fixed; z-index: 4; pointer-events: auto; left: 0; top: 0; width: 230px; background: rgba(12, 17, 23, 0.9); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px 12px; will-change: transform; transition: opacity 0.2s; }
.co-head { display: flex; justify-content: space-between; align-items: center; color: var(--mute); }
.co-tag { border: 1px solid var(--line); border-radius: 2px; padding: 2px 6px; color: var(--sand); }
.co-tag b { font-weight: 500; color: var(--accent); }
.co-floor { font-size: 3rem; margin: 4px 0 0; }
.co-floor sup { font-size: 1.3rem; color: var(--accent); }
.co-spec { color: var(--sand); margin: 2px 0 8px; letter-spacing: 0.08em; }
.co-view { margin: 0 0 8px; font-size: 0.82rem; color: var(--mute); line-height: 1.4; }
.co-price { margin: 0; font-size: 1.35rem; color: var(--accent); border-top: 1px solid var(--line); padding-top: 8px; }
.co-go { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 0 0; color: var(--mute); cursor: pointer; }
@media (pointer: coarse) { .co-go { color: var(--accent); padding: 12px 0 2px; } }

/* ---------- apartamento (maquete) ---------- */
.apt-panel { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); width: min(360px, calc(100vw - 2 * var(--gut))); max-height: calc(100svh - 120px); overflow: auto; background: rgba(12, 17, 23, 0.92); border: 1px solid var(--line); border-radius: 4px; padding: 20px; animation: slidein 0.7s var(--ease); scrollbar-width: thin; }
@keyframes slidein { from { opacity: 0; transform: translate(24px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.ap-head { display: flex; justify-content: space-between; color: var(--mute); }
.ap-tag { border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; color: var(--sand); }
.ap-title { font-size: 2.6rem; margin: 10px 0 14px; }
.ap-title span { display: block; }
.ap-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ap-stats div { padding: 10px 0 8px; }
.ap-stats div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.ap-stats dd { margin: 0; font-size: 1.7rem; }
.ap-stats dt { color: var(--mute); font-size: 0.6rem; order: 2; }
.ap-stats div { display: flex; flex-direction: column-reverse; }
.ap-price { color: var(--accent); font-size: 1.6rem; margin: 0 0 10px; }
.ap-text { color: var(--sand); font-size: 0.88rem; margin: 0 0 12px; }
.ap-rooms { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: r; }
.ap-rooms li { counter-increment: r; }
.ap-rooms button { width: 100%; display: flex; gap: 12px; align-items: baseline; background: none; border: 0; border-top: 1px solid var(--line); padding: 9px 0; cursor: pointer; text-align: left; font-size: 0.88rem; color: var(--text); transition: color 0.2s, padding 0.3s var(--ease); }
.ap-rooms button::before { content: counter(r, decimal-leading-zero); font: 500 0.66rem var(--mono); color: var(--mute); }
.ap-rooms button span { margin-left: auto; font: 500 0.66rem var(--mono); color: var(--mute); }
.ap-rooms button:hover, .ap-rooms button.on { color: var(--accent); padding-left: 4px; }
.ap-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.btn-light { background: var(--text); color: var(--night); }
.btn-light:hover { background: #fff; }
.ap-back { display: block; margin: 10px auto 0; }

.apt-hots { position: absolute; inset: 0; pointer-events: none; }
.hot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.35); cursor: pointer; pointer-events: auto; transition: transform 0.25s var(--ease), background 0.25s; will-change: transform; }
.hot::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--night); }
.hot:hover, .hot.on { background: var(--accent); }
.hot span { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: rgba(12, 17, 23, 0.9); border: 1px solid var(--line); border-radius: 4px; padding: 5px 9px; font: 500 0.62rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.hot:hover span, .hot.on span { opacity: 1; }
.hot.pulse { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.35); } 50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.35); } }

.fade { position: fixed; inset: 0; background: var(--night); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); z-index: 5; }
.fade.on { opacity: 1; }
/* entrada no cômodo: um clarão suave, como quem atravessa a porta */
.fade.warm { background: radial-gradient(60% 60% at 50% 55%, #f6e2c6 0%, #b98d62 45%, var(--night) 100%); transition-duration: 0.32s; }

/* ---------- cômodo imersivo ---------- */
.room-ui { position: absolute; left: var(--gut); bottom: 6vh; width: min(340px, calc(100vw - 2 * var(--gut))); background: rgba(12, 17, 23, 0.86); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; animation: rise 0.8s var(--ease) 0.2s both; }
.room-kicker { color: var(--mute); margin: 0; }
.room-title { font-size: 2.6rem; margin: 6px 0 2px; }
.room-meta { color: var(--accent); margin: 0 0 14px; }
.room-nav { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.room-nav .btn-line { width: 46px; padding: 0; }
.room-back { display: block; margin: 12px 0 0; }
.room-note { position: absolute; right: var(--gut); bottom: 6vh; color: var(--sand); margin: 0; white-space: nowrap; text-shadow: 0 1px 12px rgba(6, 9, 13, 0.9); animation: rise 0.8s var(--ease) 0.6s both; }
@media (max-width: 760px) {
  .room-ui { left: 12px; right: 12px; width: auto; bottom: 12px; padding: 14px 16px; }
  .room-title { font-size: 2rem; }
  .room-note { top: 112px; bottom: auto; right: 12px; left: 12px; text-align: center; white-space: normal; font-size: 0.56rem; }
}

@media (max-width: 760px) {
  .apt-panel { top: auto; bottom: 0; right: 0; left: 0; width: auto; transform: none; max-height: 46svh; border-radius: 14px 14px 0 0; padding: 16px; animation: up 0.6s var(--ease); }
  @keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
  .ap-title { font-size: 2rem; margin: 6px 0 10px; }
  .ap-title span { display: inline; }
  .callout { width: 200px; }
  body[data-ex='apt'] .ex-hint { display: none; }
  .hot { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
}

/* ---------- seções do site ---------- */
.sheet-wrap { position: relative; background: var(--night); box-shadow: 0 -80px 120px 40px var(--night); }
.sheet { padding: clamp(80px, 12vw, 150px) var(--gut); max-width: 1280px; margin: 0 auto; }
.sheet-head { max-width: 720px; margin-bottom: 48px; }
.sheet-head .display { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.lead { color: var(--sand); font-size: 1.08rem; margin: 20px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.two { align-items: start; margin-top: 56px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 980px) { .types { grid-template-columns: 1fr; } }
.type { background: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.type-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.type h3 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; margin: 0; line-height: 1; }
.type .area { font-family: var(--display); font-size: 1.6rem; color: var(--accent); }
.type .plan { background: #f4f1ec; border-radius: 14px; padding: 10px; cursor: zoom-in; border: 0; }
.type .plan img { width: 100%; height: 260px; object-fit: contain; }
.type p { margin: 0; color: var(--sand); }
.rooms { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: 0.86rem; }
.rooms li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.rooms li span:last-child { color: var(--mute); font-family: var(--mono); font-size: 0.78rem; }
@media (max-width: 520px) { .rooms { columns: 1; } }
.type-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.lazer-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.lazer-tabs button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 0.86rem; color: var(--mute); transition: all 0.3s; }
.lazer-tabs button[aria-selected='true'] { background: var(--text); color: var(--night); border-color: var(--text); }
.lazer-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .lazer-panel { grid-template-columns: 1fr; } }
.lazer-main { border-radius: 22px; overflow: hidden; aspect-ratio: 16/10; background: var(--ink2); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.lazer-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lazer-main:hover img { transform: scale(1.03); }
.lazer-side h3 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; margin: 0 0 4px; }
.lazer-side .sub { color: var(--accent); margin: 0 0 14px; }
.lazer-side p { color: var(--sand); }
.lazer-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.lazer-mini button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--ink2); }
.lazer-mini img { width: 100%; height: 100%; object-fit: cover; }
.lazer-plan { background: #0f1419; border-radius: 12px; padding: 8px; border: 1px solid var(--line); cursor: zoom-in; width: 100%; }
.lazer-plan img { max-height: 180px; margin: 0 auto; object-fit: contain; }

.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shot { flex: 0 0 min(420px, 78vw); scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.shot img { border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.shot span { display: block; margin-top: 10px; color: var(--mute); }

.frame { margin: 0; }
.frame img { border-radius: 22px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.frame figcaption { color: var(--mute); margin-top: 10px; }
.addr { color: var(--mute); margin: 22px 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin: 0; }
.stats div { background: var(--night); padding: 26px 22px; }
.stats dt { color: var(--mute); }
.stats dd { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.h-small { color: var(--mute); margin: 0 0 16px; font-weight: 500; }
.team { list-style: none; padding: 0; margin: 0; }
.team li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team li span:first-child { color: var(--mute); }
.progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.progress li { display: grid; grid-template-columns: 120px 1fr 54px; gap: 12px; align-items: center; font-size: 0.9rem; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 1.6s var(--ease); }
.progress .pct { font-family: var(--mono); font-size: 0.78rem; color: var(--mute); text-align: right; }

/* ---------- formulário ---------- */
.form-sheet { max-width: 860px; }
.lead-form { display: grid; gap: 18px; background: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 36px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { color: var(--mute); padding: 0; }
.field input[type='text'], .field input[type='tel'] { width: 100%; background: var(--night); border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--text); font: inherit; transition: border-color 0.3s; }
.field input:focus { outline: none; border-color: var(--accent); }
#f-unidade.filled { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 0.86rem; color: var(--mute); transition: all 0.25s; }
.chips input:checked + span { border-color: var(--accent); color: var(--text); background: rgba(255, 154, 77, 0.1); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips-saved { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-saved button { background: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font: 500 0.68rem var(--mono); cursor: pointer; color: var(--sand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--sand); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.form-error { color: #ff8a7a; margin: 0; }
.demo-note { color: var(--mute); margin: 0; text-align: center; }
.lead-done { background: var(--ink); border: 1px solid var(--accent); border-radius: 24px; padding: clamp(20px, 4vw, 36px); animation: rise 0.6s var(--ease); }
.lead-done h3 { font-size: 3rem; margin-bottom: 10px; }
.payload { background: var(--night); border: 1px solid var(--line); border-radius: 14px; padding: 16px; white-space: pre-wrap; text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; color: var(--sand); line-height: 1.7; overflow-x: auto; }

.foot { padding: 60px var(--gut) 80px; border-top: 1px solid var(--line); max-width: 1280px; margin: 0 auto; color: var(--mute); }
.foot p.mono { max-width: 760px; line-height: 1.9; text-transform: none; letter-spacing: 0.04em; }
.foot-brand { margin: 0 0 16px; }

/* ---------- lightbox ---------- */
#lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(6, 9, 13, 0.94); display: grid; place-items: center; padding: 60px var(--gut); }
#lightbox figure { margin: 0; max-width: 1400px; width: 100%; }
#lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 12px; object-fit: contain; background: #f4f1ec00; }
#lightbox img.plan { background: #f4f1ec; padding: 12px; }
#lightbox figcaption { color: var(--mute); text-align: center; margin-top: 14px; }
.lb-close { position: absolute; top: 18px; right: var(--gut); }
.lb-nav { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; }

/* sem 3D: a jornada vira um hero estático com a fachada */
body.no3d .story { height: 100vh; background: url('../img/fachada-2.webp') center 30% / cover; }
body.no3d .story .cap { opacity: 0; }
body.no3d .story .cap[data-k='0'] { opacity: 1; transform: none; }
body.no3d .explorer { height: auto; pointer-events: auto; }
body.no3d .ex-hud { display: none; }
body.no3d .list2d { position: relative; inset: auto; margin: 60px var(--gut); display: flex !important; max-height: none; }
.noscript { position: fixed; bottom: 20px; left: 20px; z-index: 70; background: var(--panel); padding: 14px; border-radius: 12px; }
