/* Lumen House — 3D residences demo (SimplyCreated demo concept) */
:root {
  --paper: #F4F1EC; --paper-2: #EAE5DD; --white: #FFFFFF;
  --ink: #1C1B19; --ink-2: #4A4741; --muted: #8A857C; --line: rgba(28,27,25,.12);
  --accent: #B5874B; --accent-ink: #fff; --sky: #DCE8F0;
  --ok: #2F8F5B; --warn: #C98A1A; --sold: #8A857C;
  --display: "Sora", system-ui, sans-serif; --font: "Manrope", system-ui, sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --r: 16px; --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Ribbon + header */
.ribbon { position: relative; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 7px 16px; background: #14131A; color: #fff; font-size: 12.5px; }
.ribbon a { font-weight: 700; color: #C4B5FD; white-space: nowrap; }
.top { position: absolute; z-index: 20; left: 0; right: 0; top: 33px; display: flex; align-items: center; gap: 28px; padding: 16px clamp(16px, 3vw, 36px); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 300; letter-spacing: .32em; font-size: 15px; text-decoration: none; }
.logo b { font-weight: 700; letter-spacing: .32em; }
.logo__mark { width: 22px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #fff 0 45%, var(--accent) 45% 55%, var(--ink) 55%); box-shadow: inset 0 0 0 1.5px var(--ink); }
.top__nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 14px; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn svg { width: 20px; height: 20px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 26px -12px rgba(181,135,75,.8); }
.btn--accent:hover { background: #A2763C; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.92); color: var(--ink); border-color: rgba(0,0,0,.06); backdrop-filter: blur(10px); }
.btn--light:hover, .btn--light[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Stage */
.stage { position: relative; height: calc(100vh - 33px); height: calc(100svh - 33px); min-height: 640px; overflow: hidden; background: linear-gradient(180deg, #B9D4E8 0%, #D5E5F0 45%, #D8DCDA 70%, #9FA39E 100%); }
.stage::after { content: ""; position: absolute; inset: 0 0 auto; height: 220px; background: linear-gradient(180deg, rgba(244,241,236,.85), rgba(244,241,236,0)); pointer-events: none; z-index: 1; }
.stage.is-touring::after, .stage.is-touring::before { display: none; }
.stage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: min(560px, 46%); z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(244,241,236,.9) 0%, rgba(244,241,236,.7) 55%, rgba(244,241,236,0) 100%); transition: opacity .5s; }
@media (max-width: 860px) { .stage::before { display: none; } }
/* Building scene (render + clickable floors) */
.scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .9s var(--ease), width .9s var(--ease), height .9s var(--ease); will-change: transform; }
.scene__inner { position: absolute; inset: 0; animation: breathe 24s ease-in-out infinite alternate; transform-origin: 53% 55%; }
@keyframes breathe { to { transform: scale(1.025); } }
.scene__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; user-select: none; -webkit-user-drag: none; }
.stage.is-ready .scene__img { opacity: 1; }
.scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.floor { fill: rgba(255,255,255,0); stroke: rgba(255,255,255,0); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .3s, stroke .3s; pointer-events: all; }
.stage:not(.has-active):not(.is-hovering) .floor { animation: invite 5s ease-in-out infinite; }
.floor:nth-child(2) { animation-delay: 1.2s !important; } .floor:nth-child(3) { animation-delay: 2.4s !important; } .floor:nth-child(4) { animation-delay: 3.6s !important; }
@keyframes invite { 0%, 70%, 100% { fill: rgba(255,255,255,0); stroke: rgba(255,255,255,0); } 82% { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.7); } }
.floor.is-hot { fill: rgba(181,135,75,.32); stroke: #fff; animation: none; }
.floor.is-active { fill: rgba(181,135,75,.42); stroke: #fff; stroke-width: 2.5; animation: none; }
.stage.has-active .floor:not(.is-active):not(.is-hot) { fill: rgba(20,20,24,.18); }


.intro { position: absolute; z-index: 5; left: clamp(16px, 3vw, 36px); top: 110px; width: min(380px, 40vw); transition: opacity .4s, transform .4s var(--ease); }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.intro h1 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); font-weight: 700; }
.intro h1 em { color: var(--accent); }
.intro__sub { margin: 16px 0 22px; color: var(--ink-2); max-width: 34ch; }
.unit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.unit { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.72); backdrop-filter: blur(12px); font: inherit; text-align: left; cursor: pointer; color: var(--ink); transition: background .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.unit:hover, .unit.is-hot { background: #fff; transform: translateX(4px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.unit.is-active { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(181,135,75,.25); }
.unit__lvl { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); font: 700 13px var(--display); }
.unit.is-active .unit__lvl { background: var(--accent); color: #fff; }
.unit__name { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.unit__meta { display: block; font-size: 12.5px; color: var(--muted); }
.unit__price { font-weight: 700; font-size: 13.5px; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--available { color: var(--ok); } .status--reserved { color: var(--warn); } .status--sold { color: var(--sold); }
.hint { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 8px 14px; border-radius: 999px; background: rgba(28,27,25,.82); color: #fff; font-size: 13px; font-weight: 600; transition: opacity .5s; }
.hint__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hint__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--accent); animation: ping 1.8s infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Floating level tags */
.tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tag { transform: translate(-6px, -50%); }
.tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: auto; cursor: pointer; border: 1px solid transparent; transition: opacity .3s, border-color .2s, transform .3s var(--ease); }
.tag:hover, .tag.is-hot, .tag.is-active { transform: translate(-6px, -50%) scale(1.06); }
.tag b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 11px var(--display); }
.tag .status { font-size: 11px; }
.tag:hover, .tag.is-hot { border-color: var(--accent); }
.tag.is-active { background: var(--ink); color: #fff; } .tag.is-active b { background: var(--accent); }
.tag.is-hidden { opacity: 0; pointer-events: none; }

/* Detail panel */
.panel { position: absolute; z-index: 8; top: 96px; right: clamp(12px, 2vw, 28px); bottom: 20px; width: min(400px, calc(100% - 24px)); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 30px 70px -30px rgba(0,0,0,.45); backdrop-filter: blur(16px); animation: panelIn .45s var(--ease); display: flex; }
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateX(24px); } }
.panel__scroll { overflow-y: auto; padding: 26px 24px 24px; width: 100%; overscroll-behavior: contain; }
.panel__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; }
.panel__close:hover { background: var(--paper-2); }
.panel__level { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel__title { font-size: 1.75rem; margin-bottom: 8px; padding-right: 32px; }
.panel__status { margin: 0 0 18px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; }
.specs div { padding: 10px 8px; border-radius: 12px; background: var(--paper); text-align: center; }
.specs dt { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 2px 0 0; font: 700 15px var(--display); }
.panel__price { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.panel__price strong { font: 700 1.5rem var(--display); color: var(--ink); }
.plan { margin: 22px 0 16px; }
.plan figcaption { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.plan svg { width: 100%; height: auto; display: block; stroke: none; }
.features { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.features li { display: flex; gap: 10px; }
.features li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }

/* Tour HUD */
.tour { position: absolute; inset: 0; z-index: 12; pointer-events: none; background: #0E0E10; }
.tour__stage { position: absolute; inset: 0; overflow: hidden; pointer-events: auto; }
.tour__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.tour__img.is-on { opacity: 1; }
.tour__img.is-on.kb1 { animation: kb1 14s ease-out forwards; } .tour__img.is-on.kb2 { animation: kb2 14s ease-out forwards; } .tour__img.is-on.kb3 { animation: kb3 14s ease-out forwards; }
@keyframes kb1 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
@keyframes kb2 { from { transform: scale(1.1) translate(2%, 0); } to { transform: scale(1.02) translate(-1%, 0); } }
@keyframes kb3 { from { transform: scale(1.03) translate(-1%, 1%); } to { transform: scale(1.13) translate(1.5%, -1%); } }
.tour__pano { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s; }
.tour__pano.is-on { opacity: 1; pointer-events: auto; }
.tour__pano canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.tour__pano canvas:active { cursor: grabbing; }
.tour__pano.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tour::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent); pointer-events: none; }
.tour[hidden] { display: none; }
.tour > * { pointer-events: auto; }
.tour > .tour__room, .tour > .tour__hint { pointer-events: none; }
.tour__bar { position: absolute; z-index: 3; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -20px rgba(0,0,0,.4); }
.tour__title { display: grid; line-height: 1.2; white-space: nowrap; }
.tour__title small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tour__title b { font-family: var(--display); }
.tour__rooms { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tour__rooms::-webkit-scrollbar { display: none; }
.tour__rooms button { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font: 600 13px var(--font); cursor: pointer; color: var(--ink-2); }
.tour__rooms button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tour__room { position: absolute; z-index: 2; left: 50%; bottom: 96px; transform: translateX(-50%); padding: 10px 20px; border-radius: 999px; background: rgba(28,27,25,.8); color: #fff; font: 600 15px var(--display); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.tour__nav { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.round svg { width: 22px; height: 22px; }
.round:hover { background: #fff; }
.tour__nav .btn { white-space: nowrap; }
.tour__hint { position: absolute; z-index: 2; right: 18px; bottom: 36px; margin: 0; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 999px; }
.stage.is-touring .intro, .stage.is-touring .panel, .stage.is-touring .scene { display: none; }
body.is-touring .top { opacity: 0; pointer-events: none; }
.top { transition: opacity .3s; }
.stage.has-active .intro .kicker, .stage.has-active .intro h1, .stage.has-active .intro__sub { opacity: 0; pointer-events: none; }
.intro .kicker, .intro h1, .intro__sub { transition: opacity .4s; }
@media (min-width: 861px) { .stage.has-active .unit-list { transform: translateY(-300px); } .unit-list { transition: transform .5s var(--ease); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--white); }
.h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 32px; }
.h2 em { color: var(--accent); }
.lead { color: var(--ink-2); font-size: 1.075rem; max-width: 46ch; }
.table-wrap { overflow-x: auto; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.units { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.units th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 18px; border-bottom: 1px solid var(--line); }
.units td { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.units tr:last-child td { border-bottom: 0; }
.units td:first-child { font-weight: 700; }
.units .linkbtn { border: 0; background: none; font: 700 14px var(--font); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid3 article { padding: 28px; border-radius: var(--r); background: var(--paper); }
.grid3 .num { font: 700 13px var(--display); color: var(--accent); }
.grid3 h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.grid3 p { margin: 0; color: var(--ink-2); }
.viewing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
.contact-list b { display: inline-block; min-width: 110px; color: var(--ink); }
.form { display: grid; gap: 14px; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.form input, .form select, .form textarea { font: inherit; font-weight: 500; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,135,75,.2); }
.form__note { margin: 0; font-size: 14px; font-weight: 600; color: var(--ok); min-height: 1.2em; }
.foot { padding: 32px 0; background: var(--ink); color: rgba(255,255,255,.75); font-size: 13.5px; }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .logo { color: #fff; }
.foot p { margin: 0; }
.foot .logo__mark { box-shadow: inset 0 0 0 1.5px #fff; }

/* Responsive */
@media (max-width: 1100px) {
  .intro { width: 330px; }
  .unit__price { display: none; }
}
@media (max-width: 860px) {
  .top__nav { display: none; }
  .top__cta { margin-left: auto; height: 40px; padding: 0 16px; font-size: 14px; }
  .stage { min-height: 600px; }
  .stage::after { height: 260px; }
  .intro { position: static; width: auto; padding: 92px 16px 0; }
  .intro .kicker, .intro h1 { position: relative; z-index: 5; }
  .intro .kicker { font-size: 11px; }
  .intro h1 { font-size: 2.2rem; }
  .intro__sub { display: none; }
  .unit-list { position: absolute; z-index: 6; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0 16px 4px; transition: opacity .3s; }
  .stage.has-active .unit-list { opacity: 0; pointer-events: none; }
  .unit-list::-webkit-scrollbar { display: none; }
  .unit-list li { flex: none; }
  .unit { grid-template-columns: auto auto; padding: 8px 12px 8px 8px; }
  .unit:hover, .unit.is-hot { transform: none; }
  .unit__meta .status { display: none; }
  .hint { display: none; }
  .tag { font-size: 11.5px; padding: 4px 10px 4px 4px; }
  .tag .status { display: none; }
  .panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 58%; border-radius: 22px; animation-name: sheetIn; }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(40px); } }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .tour__bar { flex-wrap: wrap; gap: 8px; padding: 10px 10px 10px 14px; }
  .tour__rooms { order: 3; width: 100%; margin: 0; }
  .tour__bar .btn { margin-left: auto; }
  .tour__hint { bottom: auto; top: 136px; right: 50%; transform: translateX(50%); white-space: nowrap; }
  .tour__room { bottom: 90px; font-size: 14px; }
  .grid3, .viewing { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rb-more { display: none; }
  .logo { font-size: 13px; letter-spacing: .26em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
