@font-face { font-family: "Queens"; src: url("fonts/queens-var.woff2") format("woff2"); font-weight: 300 800; font-stretch: 25% 100%; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("fonts/assistant-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --ink: #0e1e2e; --navy: #103f66; --stone: #ede9e3; --paper: #f6f4f0; --muted: #55606c;
  --glass: rgba(246, 244, 240, .84);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --gutter: clamp(1rem, 3vw, 2.25rem);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #e7ddcf; color: var(--ink); font-family: "Assistant", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.eyebrow { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Loader */
.loader { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.1rem; background: var(--stone); transition: opacity 1.2s var(--ease), visibility 1.2s; z-index: 5; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { margin: 0; font-family: "Queens", "Cormorant", serif; font-weight: 300; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--navy); }
.loader-bar { width: min(240px, 60vw); height: 1px; background: rgba(14, 30, 46, .15); overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(.04); transition: transform .4s var(--ease); }
.loader-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* Top bar */
.topbar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: var(--gutter); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { font-family: "Queens", "Cormorant", serif; font-weight: 400; font-size: 1.35rem; color: #fff; text-decoration: none; text-shadow: 0 1px 18px rgba(14, 30, 46, .45); }
.back { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid rgba(255,255,255,.7); background: rgba(14, 30, 46, .28); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.back:hover { background: rgba(14, 30, 46, .45); }

/* Intro */
.intro { position: fixed; left: var(--gutter); bottom: calc(var(--gutter) + 1.5rem); max-width: 34rem; color: #fff; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.intro .eyebrow { color: rgba(255,255,255,.88); }
.intro.gone { opacity: 0; transform: translateY(10px); pointer-events: none; }
.statement { margin: .7rem 0 .6rem; font-family: "Queens", "Cormorant", serif; font-weight: 300; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; text-shadow: 0 2px 40px rgba(14, 30, 46, .35); }
.lede { margin: 0 0 1.4rem; font-size: 1.05rem; color: rgba(255,255,255,.92); text-shadow: 0 1px 18px rgba(14, 30, 46, .5); }
.intro::before { content: ""; position: absolute; inset: -55vh -45vw -8rem -20vw; z-index: -1; background: radial-gradient(ellipse at 8% 100%, rgba(14,30,46,.6), rgba(14,30,46,.28) 38%, transparent 66%); pointer-events: none; }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.4rem; border: 0; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .3s; }
.cta:hover { background: var(--navy); }
.intro .cta { background: #fff; color: var(--ink); }
.intro .cta:hover { background: var(--stone); }
.ghost { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.2rem; border: 1px solid rgba(14,30,46,.35); background: transparent; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.ghost:hover { border-color: var(--ink); }

/* Floor strip */
.floors { position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 9.5rem; max-height: calc(100vh - 9rem); display: flex; flex-direction: column; padding: 1rem .9rem .9rem; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(14,30,46,.12); }
.floors ol { list-style: none; margin: .7rem 0; padding: 0; overflow-y: auto; scrollbar-width: thin; }
.floor-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 30px; padding: 0 .35rem; border: 0; background: none; cursor: pointer; border-radius: 2px; }
.floor-btn:hover { background: rgba(14,30,46,.06); }
.floor-btn[aria-current="true"] { background: var(--ink); color: #fff; }
.floor-btn.soldout { color: #8c949c; }
.fnum { font-family: "Cormorant", serif; font-size: 1.15rem; font-variant-numeric: lining-nums tabular-nums; }
.fdots { display: inline-flex; gap: 3px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; opacity: .55; }
.dot.on { background: #d9a441; border-color: #d9a441; opacity: 1; }
.floor-btn[aria-current="true"] .dot { opacity: .8; }
.legend { margin: 0; display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); }
.legend .dot:nth-of-type(2) { margin-inline-start: .5rem; }

/* Card */
.card { position: fixed; left: var(--gutter); bottom: var(--gutter); width: min(25rem, calc(100vw - 2 * var(--gutter))); padding: 1.5rem 1.5rem 1.4rem; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 50px rgba(14,30,46,.16); animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-title { margin: .45rem 0 .9rem; font-family: "Cormorant", serif; font-weight: 400; font-size: 2.3rem; line-height: 1; font-variant-numeric: lining-nums; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.6rem; margin: 0 0 1.3rem; }
.facts dt { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-family: "Cormorant", serif; font-size: 1.45rem; font-variant-numeric: lining-nums; }
.sold-line { margin: 0 0 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.homes { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(14,30,46,.12); }
.home-btn { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .7rem .2rem; border: 0; border-bottom: 1px solid rgba(14,30,46,.12); background: none; text-align: left; cursor: pointer; }
.home-btn:hover { background: rgba(14,30,46,.04); }
.home-btn .hn { font-family: "Cormorant", serif; font-size: 1.3rem; font-variant-numeric: lining-nums; }
.home-btn .hd { font-size: .85rem; color: var(--muted); }
.home-btn.sold .hn { color: #8c949c; }
.ask { display: grid; gap: .7rem; margin-top: 1.1rem; }
.ask label { display: grid; gap: .2rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.ask input { min-height: 42px; padding: .3rem 0; border: 0; border-bottom: 1px solid #7d838a; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); }
.sent { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }

/* View from the balcony */
.viewbar { position: fixed; left: 50%; bottom: calc(var(--gutter) + .5rem); transform: translateX(-50%); text-align: center; color: #fff; text-shadow: 0 1px 18px rgba(14,30,46,.55); width: min(40rem, 90vw); }
.viewbar p { margin: 0; }
.viewbar::before { content: ""; position: absolute; inset: -5rem -30vw -2rem; z-index: -1; background: radial-gradient(ellipse at 50% 70%, rgba(14,30,46,.42), transparent 65%); pointer-events: none; }
#view-caption { font-family: "Cormorant", serif; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.viewbar .hint { margin-top: .35rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; transition: opacity 1.2s ease; }
.viewbar .hint.used { opacity: 0; }

.tip { position: fixed; left: 0; top: 0; padding: .4rem .65rem; background: var(--ink); color: #fff; font-size: .8rem; pointer-events: none; white-space: nowrap; }
.proto-note { position: fixed; right: var(--gutter); bottom: .6rem; margin: 0; font-size: .68rem; color: rgba(14,30,46,.55); pointer-events: none; }

@media (max-width: 800px) {
  .floors { top: auto; bottom: 0; right: 0; left: 0; transform: none; width: auto; max-height: none; padding: .6rem .8rem .7rem; }
  .floors ol { display: flex; gap: .2rem; overflow-x: auto; overflow-y: hidden; margin: .4rem 0; }
  .floors li { flex: 0 0 auto; }
  .floor-btn { flex-direction: column; min-height: 46px; min-width: 42px; justify-content: center; }
  .legend { display: none; }
  .card { left: 0; right: 0; bottom: 0; width: auto; max-height: 62vh; overflow-y: auto; }
  .intro { right: var(--gutter); bottom: calc(var(--gutter) + 1rem); }
  .proto-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loader, .intro, .card, .loader-bar span { transition: none; animation: none; }
}
