.residence-light { margin: 0 0 7rem; }
.light-heading { margin-bottom: 2rem; }
.light-heading h3 { font-size: clamp(2rem,4vw,4.3rem); font-weight: 400; line-height: 1.1; margin: .5rem 0 1rem; }
.light-heading > p:last-child { color: #b9b9ba; font-size: .9rem; }
.light-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); gap: clamp(1.5rem,3vw,4rem); align-items: center; }
.light-building { position: relative; overflow: hidden; }
.light-elevation { display: block; width: 100%; height: auto; }
.light-base { filter: brightness(.42) saturate(.55); }
.unit-lit { opacity: 0; pointer-events: none; transition: opacity 650ms cubic-bezier(.16,1,.3,1); }
.unit-hit { fill: transparent; cursor: pointer; pointer-events: all; }
[data-unit-zone].is-lit .unit-lit { opacity: 1; }
.light-image-note { font-size: .65rem; color: #a5a5a8; margin: .75rem 0 0; }
.light-info { min-height: 22rem; padding: 2rem 0; }
.light-info h4 { font-size: clamp(1.7rem,2.7vw,3rem); font-weight: 400; line-height: 1.12; margin: 1rem 0; }
.light-info .unit-area { font-size: 2.2rem; font-weight: 300; color: var(--amber); margin: 1.2rem 0; }
.light-info > p:not(.eyebrow):not(.unit-area):not(.source-note) { color: #c1c0bf; font-size: .9rem; }
.light-info .text-link { font-size: .85rem; }
.light-info [hidden] { display: none; }
.unit-controls { display: grid; grid-template-columns: repeat(3,1fr) auto; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); margin-top: 1.5rem; }
.unit-controls button { padding: 1.2rem 1rem; background: transparent; color: var(--paper); border: none; font: inherit; text-align: left; cursor: pointer; transition: background .3s,color .3s; }
.unit-controls button span { display: block; font-size: .75rem; margin-bottom: .4rem; }
.unit-controls button strong { font-weight: 400; font-size: 1.25rem; }
.unit-controls button.is-lit { background: rgba(208,160,111,.12); color: var(--amber); }
.unit-controls button:focus-visible { outline: 2px solid var(--amber); outline-offset: -3px; }
.unit-controls .unit-reset { color: #b9b9ba; font-size: .75rem; }
@media(max-width:800px) {
  .light-layout { grid-template-columns: 1fr; gap: .5rem; }
  .light-info { min-height: 19rem; padding: 1rem 0; }
  .light-info h4 { font-size: 2rem; }
  .unit-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .unit-controls button { padding: 1rem .45rem; }
  .unit-controls button span { font-size: .67rem; }
  .unit-controls button strong { font-size: 1rem; }
  .unit-controls .unit-reset { grid-column: 1/-1; text-align: center; }
}
@media(prefers-reduced-motion:reduce) { .unit-lit, .unit-controls button { transition: none; } }

/* One continuous full-bleed scene. The light reveals the original material
   response through a smooth radial mask, never rectangular floor cut-outs. */
.residence-light { position: relative; isolation: isolate; height: max(100svh, 850px); margin: 0 calc(-1 * var(--page-x)) 5rem; }
.light-layout { display: block; position: absolute; inset: 0; }
.light-building { position: absolute; inset: 0; }
.light-elevation { width: 100%; height: 100%; }
.light-base { filter: brightness(.36) saturate(.65); }
.unit-lit { display: none; }
.travelling-light { opacity: 0; pointer-events: none; }
.light-building::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--night), transparent 19%, transparent 63%, var(--night) 100%); }
.light-heading { position: absolute; z-index: 2; top: 3.5rem; left: var(--page-x); right: var(--page-x); pointer-events: none; }
.light-heading h3 { font-size: clamp(2rem, 4.5vw, 5rem); }
.light-heading > p:last-child { color: var(--paper); }
.light-info { position: absolute; z-index: 3; right: var(--page-x); bottom: 12rem; width: min(23vw, 22rem); min-height: 0; padding: 1.5rem; background: linear-gradient(110deg, rgba(17,19,25,.94), rgba(17,19,25,.78)); opacity: 0; transform: translateY(8px); transition: opacity 350ms, transform 350ms; pointer-events: none; }
.has-selection .light-info { opacity: 1; transform: none; pointer-events: auto; }
.light-info h4 { font-size: clamp(1.4rem, 2vw, 2rem); }
.light-info .unit-area { font-size: 1.8rem; margin: .7rem 0; }
.light-info .source-note { margin: 1rem 0 0; font-size: .65rem; }
.light-info .eyebrow { font-size: .65rem; }
.unit-controls { position: absolute; z-index: 3; bottom: 4.8rem; left: var(--page-x); right: var(--page-x); background: rgba(17,19,25,.7); }
.residence-light > .source-note { position: absolute; z-index: 2; bottom: .5rem; left: var(--page-x); right: var(--page-x); max-width: 75rem; font-size: .65rem; margin: 0; }
.light-image-note { display: none; }
@media(max-width:800px) {
  .residence-light { height: max(100svh, 860px); }
  .light-heading { top: 2rem; }
  .light-heading > p:last-child { max-width: 26rem; font-size: .8rem; }
  .light-elevation { position: absolute; top: 19%; height: 42%; }
  .light-building::after { background: linear-gradient(to bottom, var(--night), transparent 25%, transparent 50%, var(--night) 68%); }
  .light-info { left: var(--page-x); right: var(--page-x); bottom: 15rem; width: auto; padding: .75rem 0; background: transparent; }
  .light-info h4 { font-size: 1.3rem; margin: .4rem 0; }
  .light-info .unit-area { font-size: 1.3rem; margin: .3rem 0; }
  .light-info > p:not(.eyebrow):not(.unit-area):not(.source-note) { font-size: .75rem; margin: .4rem 0; }
  .light-info .source-note { display: none; }
  .unit-controls { bottom: 5rem; }
  .residence-light > .source-note { bottom: .6rem; font-size: .6rem; }
}
@media(prefers-reduced-motion:reduce) { .light-info { transition: none; transform: none; } }
.room-test .room-on { opacity: 0; pointer-events: none; transition: opacity 1500ms ease-out; }
.room-test.room-is-on .room-on { opacity: 1; transition-duration: 800ms; }
.room-target { cursor: pointer; }
.room-test .unit-controls { grid-template-columns: 1fr auto; }
.room-test .light-info { width: min(23vw, 22rem); }
@media(max-width:800px) {
  .room-test .light-info { width: auto; }
  .room-test .unit-controls .unit-reset { grid-column: auto; }
}
@media(prefers-reduced-motion:reduce) { .room-test .room-on { transition: none; } }
.light-elevation { display: none; }
.room-canvas { position: absolute; width: min(100%, calc(100svh * 1.79)); aspect-ratio: 1678 / 937; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.room-canvas > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.room-canvas .room-target { position: absolute; z-index: 4; left: 47.5%; top: 59.4%; width: 14.7%; height: 17.3%; border: 0; padding: 0; background: transparent; color: var(--paper); cursor: pointer; touch-action: manipulation; }
.room-target span { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 100%); padding: .35rem .65rem; background: rgba(17,19,25,.85); font: 11px/1.4 "Avenir Next", Arial, sans-serif; white-space: nowrap; border: 1px solid rgba(239,237,230,.3); }
.room-target:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.room-is-on .room-target span { opacity: 0; }
@media(max-width:800px) { .room-canvas { top: 39%; width: 100%; } }
.floor-on { opacity: 0; transition: opacity 1100ms ease-out; }
.floor-target { position: absolute; z-index: 4; left: 0; width: 78%; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; color: var(--paper); }
.floor-penthouse { top: 13%; height: 43%; }
.floor-first { top: 58%; height: 23%; }
.floor-ground { top: 83%; height: 17%; }
.floor-target span { position: absolute; right: 0; top: 45%; padding: .3rem .6rem; background: rgba(17,19,25,.8); font: 11px/1.4 Arial,sans-serif; border: 1px solid rgba(239,237,230,.3); }
.floor-target.is-lit span { color: var(--amber); }
.floor-target:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
@media(prefers-reduced-motion:reduce) { .floor-on { transition: none; } }
