@font-face { font-family: Archivo; src: url(assets/fonts/Archivo-Variable.ttf) format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url(assets/fonts/NotoSerif-Light.ttf) format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url(assets/fonts/NotoSerif-LightItalic.ttf) format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }

:root { --linho: #e0dcd6; --tinta: #1a1918; --ouro: #d9c39a; --pad: clamp(16px, 2.6vw, 36px); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #1b1c1e; color: var(--tinta); }
body { font-family: Archivo, system-ui, sans-serif; font-size: 13px; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
.eyebrow, .k, .top-r, .legal { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }

/* topo */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: var(--pad); pointer-events: none; }
.logo { height: 17px; filter: invert(1) brightness(2); transition: filter .5s; }
.top-r { color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.legal { position: fixed; left: var(--pad); bottom: var(--pad); z-index: 20; color: rgba(255,255,255,.7); font-size: 9.5px; }
body.room-on .top, body.room-on .legal { opacity: 0; }

/* ───────── abertura ───────── */
.hero { position: fixed; inset: 0; z-index: 5; overflow: hidden; background: #cfd6dc; transition: opacity .8s ease; }
.hero.gone { opacity: 0; pointer-events: none; }
.hero-stage { position: absolute; inset: 0; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform 1.3s cubic-bezier(.6,0,.2,1); }
.hero.zoom .hero-stage { transform: scale(2.4); }
.hero-img, .hero-mask { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img { animation: heroIn 3.2s cubic-bezier(.2,.7,.1,1) both; }
@keyframes heroIn { from { transform: scale(1.12) translateX(1.5%); filter: brightness(.8) saturate(.9); } to { transform: none; filter: none; } }
.hero-mask { animation: fadeIn .8s 2.2s both; }
@keyframes fadeIn { from { opacity: 0; } }
.hero-mask .veil { fill: rgba(14,16,20,0); transition: fill .35s; pointer-events: none; }
.hero-mask.active .veil { fill: rgba(14,16,20,.32); }
.hero-mask .fl { fill: rgba(255,246,226,0); stroke: rgba(255,255,255,0); stroke-width: 1.5; cursor: pointer; transition: fill .25s, stroke .25s; vector-effect: non-scaling-stroke; }
.hero-mask .fl.on { fill: rgba(255,244,222,.18); stroke: #fff; filter: url(#glow); }
.hero-mask .tag line { stroke: rgba(255,255,255,.9); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-mask .tag text { fill: #fff; font: 500 26px Archivo, sans-serif; letter-spacing: .12em; text-transform: uppercase; paint-order: stroke; stroke: rgba(0,0,0,.25); stroke-width: 4px; }
.hero-mask:not(.active) .tag { opacity: 0; }

.hero-panel { position: absolute; top: calc(var(--pad) + 46px); right: var(--pad); bottom: var(--pad); width: min(360px, 32vw); padding: 30px 28px 26px; display: flex; flex-direction: column; color: #f4f1ec; background: rgba(24,26,30,.42); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); border: 1px solid rgba(255,255,255,.16); animation: panelIn 1.2s 1.6s cubic-bezier(.2,.7,.1,1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateX(28px); } }
.hero-panel .eyebrow { color: rgba(255,255,255,.7); }
.hero-panel h1 { font-family: "Noto Serif", serif; font-weight: 300; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; letter-spacing: -.02em; margin: 12px 0; }
.hero-panel h1 em, h2 em { font-style: italic; }
.hp-text { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.78); margin-bottom: auto; }
.hp-level { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px; margin-top: 22px; }
.hero-panel .k { color: rgba(255,255,255,.65); }
.hp-num { font-family: "Noto Serif", serif; font-weight: 300; font-size: 76px; line-height: .9; letter-spacing: -.03em; }
.hp-sub { font-size: 13px; color: rgba(255,255,255,.85); margin: 10px 0 12px; }
.hp-apts { border-top: 1px solid rgba(255,255,255,.18); margin-bottom: 18px; }
.hp-apts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 12.5px; }
.hp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: linear-gradient(90deg, var(--ouro) var(--p, 36%), rgba(255,255,255,.3) var(--p, 36%)); outline: none; cursor: pointer; }
.hp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ouro); border: 2px solid #fff; }
.hp-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ouro); border: 2px solid #fff; }
.hp-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.6); margin: 8px 0 18px; }
.hp-go { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 18px; background: #f4f1ec; color: var(--tinta); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.hp-go:hover { background: var(--ouro); }
.hp-go:focus-visible, .fl-rooms button:focus-visible, .fl-tabs button:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }

/* ───────── andar ───────── */
.floor { position: fixed; inset: 0; z-index: 4; opacity: 0; pointer-events: none; transition: opacity .8s ease; background: #efebe5; }
.floor.on { opacity: 1; pointer-events: auto; z-index: 6; }
.floor.on ~ .top .logo, body:not(.hero-on) .logo { filter: none; }
.fl-bg { position: absolute; inset: 0; background: url(assets/hero/hero-1920.jpg) center / cover; filter: blur(40px) brightness(1.15) saturate(.6); opacity: .35; transform: scale(1.1); }
.fl-wrap { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr min(400px, 34vw); }
.fl-plan { position: relative; align-self: center; justify-self: center; width: min(calc(100% - 2 * var(--pad)), calc((100vh - 190px) * 1.59)); margin: 90px var(--pad) 60px; transform: scale(.96); opacity: 0; transition: transform 1s .2s cubic-bezier(.2,.7,.1,1), opacity .8s .2s; }
.floor.on .fl-plan { transform: none; opacity: 1; }
.fl-plan img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(40,30,20,.22)); }
.hot { all: unset; position: absolute; transform: translate(-50%, -50%); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.hot i { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--tinta); box-shadow: 0 0 0 6px rgba(255,255,255,.45); transition: transform .2s; }
.hot span { padding: 6px 10px; background: rgba(26,25,24,.88); color: #fff; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.hot:hover i, .hot:focus-visible i { transform: scale(1.25); }
.hot:hover span, .hot:focus-visible span { opacity: 1; transform: none; }
.fl-panel { position: relative; padding: calc(var(--pad) + 46px) var(--pad) var(--pad); background: rgba(244,241,236,.9); backdrop-filter: blur(14px); border-left: 1px solid rgba(0,0,0,.12); overflow-y: auto; transform: translateX(30px); opacity: 0; transition: transform .9s .3s cubic-bezier(.2,.7,.1,1), opacity .8s .3s; }
.floor.on .fl-panel { transform: none; opacity: 1; }
.fl-back { all: unset; cursor: pointer; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(0,0,0,.6); display: inline-block; margin-bottom: 26px; }
.fl-back:hover { color: #000; }
.fl-panel .eyebrow { color: rgba(0,0,0,.55); }
.fl-panel h2 { font-family: "Noto Serif", serif; font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -.03em; margin: 6px 0 8px; }
.fl-sub { font-size: 13px; color: rgba(0,0,0,.7); margin-bottom: 18px; }
.fl-tabs { display: grid; grid-auto-flow: column; gap: 6px; margin-bottom: 16px; }
.fl-tabs button { all: unset; cursor: pointer; padding: 10px 12px; border: 1px solid rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 3px; }
.fl-tabs button span { font-family: "Noto Serif", serif; font-size: 17px; }
.fl-tabs button em { font-style: normal; font-size: 11px; color: rgba(0,0,0,.6); }
.fl-tabs button.on { background: var(--tinta); color: #f4f1ec; border-color: var(--tinta); }
.fl-tabs button.on em { color: rgba(255,255,255,.7); }
.fl-ficha { border-top: 1px solid rgba(0,0,0,.15); margin-bottom: 20px; }
.fl-ficha div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.15); font-size: 12.5px; }
.fl-ficha .k { color: rgba(0,0,0,.55); padding-top: 2px; }
.fl-rooms { border-top: 1px solid rgba(0,0,0,.15); }
.fl-rooms button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; width: 100%; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.15); font-size: 12.5px; transition: padding .2s; }
.fl-rooms button:hover { padding-left: 8px; }
.fl-rooms .n { font-family: "Noto Serif", serif; font-size: 15px; color: rgba(0,0,0,.5); }

/* ───────── ambientes (renders) ───────── */
.rv { position: fixed; inset: 0; z-index: 12; background: #0f0f0f; opacity: 0; pointer-events: none; transition: opacity .7s ease; cursor: grab; touch-action: none; }
.rv.on { opacity: 1; pointer-events: auto; }
.rv.grab { cursor: grabbing; }
.rv-stage { position: absolute; inset: 0; overflow: hidden; }
.rv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; will-change: transform; user-select: none; -webkit-user-drag: none; }
.rv-img.vis { opacity: 1; }
.rv::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%, transparent 70%, rgba(0,0,0,.55)); }
.rv-top { position: absolute; top: var(--pad); left: var(--pad); right: var(--pad); z-index: 2; display: flex; flex-direction: column; gap: 10px; color: #fff; }
.rv-close { all: unset; cursor: pointer; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.rv-close:hover { color: #fff; }
.rv-name { font-family: "Noto Serif", serif; font-weight: 300; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.02em; line-height: 1; }
.rv-nav { all: unset; position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); color: #fff; font-size: 28px; cursor: pointer; backdrop-filter: blur(8px); background: rgba(0,0,0,.15); transition: background .2s; }
.rv-nav:hover { background: rgba(255,255,255,.2); }
.rv-prev { left: var(--pad); } .rv-fwd { right: var(--pad); }
.rv-list { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.rv-list button { all: unset; cursor: pointer; padding: 8px 12px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); background: rgba(0,0,0,.18); }
.rv-list button.on, .rv-list button:hover { background: #f4f1ec; color: var(--tinta); border-color: #f4f1ec; }
.rv-hint { position: absolute; right: var(--pad); bottom: calc(var(--pad) + 48px); z-index: 2; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* carregamento */
.loader { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: var(--linho); transition: opacity .8s; }
.loader img { width: 54px; animation: pulse 1.4s ease-in-out infinite; }
.loader.done { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* celular */
@media (max-width: 760px) {
  .top-r { display: none; }
  .hero-stage { bottom: 250px; }
  .hero-img, .hero-mask { object-position: 53% 50%; }
  .hero-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; padding: 16px var(--pad) 18px; border-width: 1px 0 0; animation-delay: .8s; }
  .hero-panel h1, .hp-text, .hp-apts { display: none; }
  .hp-level { border-top: 0; padding-top: 2px; margin-top: 0; }
  .hp-num { font-size: 50px; }
  .fl-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .fl-plan { width: auto; margin: 64px 12px 12px; }
  .fl-panel { padding-top: 18px; border-left: 0; }
  .rv-nav { width: 42px; height: 42px; } .rv-hint { display: none; }
  .legal { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; } }
body.floor-on .top-r { opacity: 0; }
body.floor-on .legal { color: rgba(0,0,0,.45); }
