:root {
  color-scheme: light;
  --accent: #35312b;
  --deep: #252421;
  --ink: #302c26;
  --muted: #6a6256;
  --line: #d8cdbb;
  --paper: #f4f0e8;
  --surface: #fffdf8;
  --gold: #d9b085;
  --free: #397456;
  --sold: #985248;
  --sold-bg: #f1e2d9;
  --free-bg: #deecdb;
  --radius: 5px;
  --display: Baskervville, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font:
    16px/1.4 Inter, 'Segoe UI',
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
button,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #a97a3e;
  outline-offset: 3px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
}
h1 {
  font-size: clamp(2.55rem, 4.5vw, 4.6rem);
  letter-spacing: -0.054em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.12rem);
  letter-spacing: -0.036em;
  line-height: 1.15;
}
h3 {
  font-size: 0.93rem;
  font-weight: 650;
}
button,
select {
  font-size: 0.91rem;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
.masthead {
  background: var(--deep);
  color: #faf7eb;
  border-bottom: 2px solid #987751;
}
.mast-inner,
main {
  max-width: 1600px;
  margin: auto;
  padding: 0 clamp(16px, 3.4vw, 56px);
}
.mast-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: 'brand nav view download';
  align-items: center;
  gap: 0 16px;
}
.wordmark {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  font: 1.35rem/.95 var(--display);
  letter-spacing: .085em;
  text-transform: uppercase;
}
.wordmark i {
  display: block;
  margin-top: 5px;
  font: 600 .54rem/1.1 Inter, 'Segoe UI', sans-serif;
  letter-spacing: .38em;
  font-style: normal;
  color: var(--gold);
}
.brand-icon {
  display: inline-block;
  width: 31px;
  height: 32px;
  background: var(--gold);
  clip-path: polygon(49% 0, 100% 100%, 86% 100%, 49% 23%, 13% 100%, 0 100%, 49% 0,
    50% 43%, 79% 100%, 66% 100%, 49% 64%, 41% 81%, 58% 81%, 62% 90%, 36% 90%, 31% 100%, 19% 100%, 50% 43%);
}
.workspace-nav {
  grid-area: nav;
  display: flex;
  align-self: stretch;
  gap: 24px;
  margin-left: clamp(8px, 3vw, 50px);
}
.workspace-nav a {
  display: grid;
  align-items: center;
  color: #d2c6b6;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
}
.workspace-nav a[aria-current='page'] {
  color: white;
  border-color: var(--gold);
}
.workspace-nav a:hover {
  color: #fff;
}
.concept {
  grid-area: view;
  justify-self: end;
  padding: 8px 12px;
  color: #f4ebdf;
  border: 1px solid #73634f;
  border-radius: 3px;
}
.concept:hover {
  background: #413a32;
}
.blender-link {
  grid-area: download;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  justify-self: end;
  padding: 8px 13px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--gold);
  color: #302417;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 600;
  white-space: nowrap;
}
.blender-link:hover { background: #efd1a9; }
.download-icon {
  position: relative;
  width: 13px;
  height: 13px;
  border-bottom: 1.5px solid currentColor;
}
.download-icon::before, .download-icon::after {
  content: '';
  position: absolute;
  left: 50%;
}
.download-icon::before {
  height: 8px;
  top: 0;
  border-left: 1.5px solid currentColor;
}
.download-icon::after {
  width: 6px;
  height: 6px;
  top: 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateX(-43%) rotate(45deg);
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  padding: clamp(24px, 3vh, 42px) 0 25px;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #805d42;
  margin-bottom: 8px;
}
.project-facts,
.sales-total {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.91rem;
  padding-bottom: 4px;
}
.project-facts span + span {
  padding-left: 18px;
  border-left: 1px solid #d5c8b5;
}
.project-facts b {
  display: block;
  color: var(--ink);
  font: 400 clamp(1.3rem,2.3vw,2rem)/1.2 var(--display);
  letter-spacing: -.035em;
}
.project-facts {
  font-size: .78rem;
}
#project-title em {
  color: #785b40;
  font-weight: 400;
}
.explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(274px, 23vw, 345px);
  gap: 16px;
  align-items: stretch;
}
.visual,
.house-stock,
.inventory,
.sales-filters,
.unit-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stage {
  position: relative;
  isolation: isolate;
  min-height: 395px;
  height: clamp(420px, 59vh, 680px);
  background: #d5cdbf;
  overflow: hidden;
}
.fallback,
.canvas-host,
.canvas-host canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.fallback {
  object-fit: cover;
}
.ready .fallback {
  display: none;
}
.canvas-host canvas {
  touch-action: none;
  cursor: grab;
}
.canvas-host canvas:active {
  cursor: grabbing;
}
.scene-head,
.tools,
.assist,
.legend,
.stage-unit,
#unit-hint {
  position: absolute;
  z-index: 1;
}
.scene-head,
.legend,
.assist,
.stage-unit,
#unit-hint {
  border-radius: 5px;
}
.scene-head {
  top: 15px;
  left: 15px;
  max-width: 50%;
  background: #28241feb;
  color: white;
  font-size: 0.88rem;
  padding: 8px 12px;
}
.tools {
  top: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
}
.tools button,
.stage-unit {
  min-height: 34px;
  background: #fffaf1f5;
  border: 1px solid #ad9f8c;
  border-radius: 5px;
  padding: 5px 10px;
  color: #3c352b;
}
.tools button:not(:first-child) {
  font-size: 1.18rem;
  line-height: 1;
}
.tools button[aria-pressed='true'] {
  color: #fff;
  background: var(--accent);
}
.assist,
.legend,
#unit-hint {
  margin: 0;
  background: #fffdf4ec;
  color: #413a2f;
  padding: 5px 9px;
  font-size: 0.76rem;
  pointer-events: none;
}
.assist {
  left: 14px;
  bottom: 13px;
}
.legend {
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stage-unit {
  bottom: 12px;
  right: 12px;
  font-size: 0.83rem;
}
.stage-unit:hover {
  background: #fff;
}
.available,
.sold {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  font-style: normal;
  flex: none;
}
.available {
  background: var(--free);
}
.sold {
  background: var(--sold);
  border-radius: 2px;
  transform: rotate(-6deg);
}
.stage-controls {
  padding: 9px 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  border-top: 1px solid var(--line);
  background: #f7f4ed;
}
.stage-controls:not(:has(> :not([hidden]))) {
  display: none;
}
.stage-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.83rem;
}
select {
  border: 1px solid #d3c7b5;
  color: #39332a;
  border-radius: 5px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #746552 50%) calc(100% - 13px) 51%/5px 5px no-repeat,
    linear-gradient(135deg, #746552 50%, transparent 50%) calc(100% - 8px) 51%/5px 5px no-repeat,
    #fffdf8;
  padding: 6px 25px 6px 8px;
}
.stage-controls select {
  max-width: 220px;
  font-size: 0.86rem;
}
#evening {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid #d0c2ad;
  border-radius: 5px;
  font-size: 0.84rem;
}
#evening[aria-pressed='true'] {
  color: #fff2d9;
  background: #394559;
  border-color: #394559;
}
.views {
  background: var(--deep);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 9px;
}
.views button {
  color: #ede3d6;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 4px;
}
.views button:hover {
  background: #484038;
}
.views button[aria-pressed='true'] {
  background: var(--gold);
  color: #2c251d;
}
.visual.expanded {
  position: fixed;
  inset: 0;
  z-index: 12;
  border: 0;
  border-radius: 0;
}
.expanded .stage {
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 1;
}
.view-expanded:has(.expanded) {
  overflow: hidden;
}
.walking.expanded .views {
  display: none;
}
.walking .canvas-host canvas {
  cursor: grab;
}
.walking .canvas-host canvas:active {
  cursor: grabbing;
}
.walking canvas:focus-visible {
  outline-offset: -3px;
}
#walk-hud {
  pointer-events: none;
}
.walk-locator,
#walk-help,
#walk-pad {
  position: absolute;
  z-index: 1;
}
.walk-locator {
  right: 16px;
  bottom: 16px;
  padding: 6px 8px 9px;
  border-radius: 9px;
  background: #fffaf0ed;
  color: #3b342a;
  box-shadow: 0 2px 12px #291e1324;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
}
#walk-map {
  display: block;
  width: 112px;
  height: 84px;
  margin: 0 auto 2px;
}
#walk-help {
  left: 16px;
  bottom: 16px;
  margin: 0;
  max-width: calc(100% - 175px);
  padding: 7px 11px;
  border-radius: 5px;
  color: #fffdf5;
  background: #302a23ec;
  line-height: 1.45;
  font-size: 0.78rem;
}
#walk-pad,
.walk-touch {
  display: none;
}
#walk-plan {
  background: var(--accent);
  color: white;
}
@media (pointer: coarse), (max-width: 700px) {
  .walk-desktop {
    display: none;
  }
  .walk-touch {
    display: inline;
  }
  #walk-help {
    top: 55px;
    bottom: auto;
    left: 12px;
    right: 12px;
    width: fit-content;
    max-width: calc(100% - 24px);
    font-size: 0.72rem;
  }
  .walk-locator {
    right: 12px;
    bottom: 12px;
    padding: 3px 6px 6px;
    font-size: 0.72rem;
  }
  #walk-map {
    width: 88px;
    height: 66px;
  }
  #walk-pad {
    display: grid;
    place-items: center;
    touch-action: none;
    pointer-events: auto;
    left: max(20px, env(safe-area-inset-left));
    bottom: 20px;
    width: 86px;
    height: 86px;
    border: 1.5px solid #fff9e6c4;
    border-radius: 50%;
    background: #332c237d;
    box-shadow: inset 0 0 0 9px #ede4d21a;
    user-select: none;
  }
  #walk-pad i {
    display: block;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #fff8e6eb;
    box-shadow: 0 2px 5px #342a1f51;
    transform: translate(var(--stick-x, 0px), var(--stick-y, 0px));
  }
  .walking .stage-controls {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}
@media (max-height: 450px) and (orientation: landscape) {
  .walking #walk-help {
    top: 10px;
    left: 50%;
    right: auto;
    max-width: 43%;
    transform: translateX(-50%);
  }
  .walking .walk-locator {
    bottom: 7px;
  }
}
.house-stock {
  border-top: 3px solid #a58460;
  padding: clamp(16px, 1.65vw, 25px);
  display: flex;
  flex-direction: column;
}
.section-heading,
.floor-heading,
.preview-top,
.preview-meta,
.inventory-head,
.detail-heading,
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-heading h2 {
  font-size: 1.57rem;
}
.section-heading > span {
  font-size: 0.84rem;
  color: var(--muted);
}
.stock-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 12px;
}
.stock-numbers button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 11px;
  text-align: left;
}
.stock-numbers button:first-child {
  background: #e6eee1;
  color: #29573d;
}
.stock-numbers button:last-child {
  background: #f1e8df;
  color: #824c42;
}
.stock-numbers button:hover {
  border-color: currentColor;
}
.stock-numbers button span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.84rem;
}
.stock-numbers strong {
  display: block;
  font:
    2.5rem/1.08 Georgia,
    serif;
  letter-spacing: -0.04em;
  margin-top: 5px;
}
.stock-meter,
.floor-track {
  display: block;
  background: #e2c8ba;
  overflow: hidden;
  border-radius: 6px;
}
.stock-meter {
  height: 6px;
}
.stock-meter span,
.floor-track i {
  display: block;
  height: 100%;
  background: #52775b;
}
.floor-heading {
  margin: 21px 0 5px;
}
.floor-heading small,
.demo,
.floor-num {
  color: var(--muted);
}
.floor-stock {
  display: grid;
  margin-bottom: 16px;
}
.floor-row {
  display: grid;
  grid-template-columns: 48px 1fr 25px;
  gap: 10px;
  align-items: center;
  padding: 5px 3px;
  border-radius: 4px;
  font-size: 0.82rem;
  text-align: left;
}
.floor-row b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.floor-row:hover {
  background: #f1eade;
}
.floor-track {
  height: 5px;
  background: #ece5da;
}
.primary,
.secondary {
  border-radius: 5px;
  min-height: 39px;
  padding: 8px 14px;
  font-weight: 600;
}
.primary {
  background: var(--accent);
  color: #fffcf0;
  border: 1px solid var(--accent);
}
.primary:hover {
  background: #574532;
}
.secondary {
  background: #fffdf8;
  border: 1px solid #c8bba6;
}
.secondary:hover {
  background: #eee6d9;
}
.house-stock > .primary {
  margin-top: auto;
}
.demo {
  font-size: 0.75rem;
}
.house-stock > .demo {
  text-align: center;
  margin-top: 7px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 24px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
footer span:first-child {
  font-family: var(--display);
  font-size: 1.02rem;
  color: #544332;
}
.sales-filters {
  padding: 14px 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.status-switch,
.view-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #f1ece3;
  border: 1px solid #dbd0c0;
  border-radius: 7px;
  gap: 2px;
}
.status-switch button,
.view-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.status-switch button[aria-pressed='true'],
.view-switch button[aria-pressed='true'] {
  background: var(--deep);
  color: #fffdf0;
}
.status-switch button[aria-pressed='true'] i {
  outline: 1px solid #d9c9b7;
}
.status-switch b {
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.select-filters {
  display: flex;
  align-items: end;
  gap: 9px;
}
.select-filters label {
  display: grid;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--muted);
}
.select-filters select {
  min-height: 35px;
  min-width: 87px;
}
.text-button {
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #715036;
}
.sales-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(255px, 22vw, 330px);
  gap: 17px;
  align-items: start;
}
.inventory {
  min-width: 0;
  padding: 20px;
}
.inventory-head {
  align-items: start;
}
.inventory-head p,
.unit-preview > p {
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 5px;
}
.view-switch button {
  font-size: 0.82rem;
  min-height: 27px;
  padding: 4px 8px;
}
.grid-key {
  display: flex;
  gap: 18px;
  margin: 17px 0 12px;
}
.grid-key > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.matrix-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 14px 13px;
}
.matrix-section {
  min-width: 0;
}
.matrix-section h3 {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: #5e4a35;
}
.matrix-rows {
  display: grid;
  gap: 4px;
}
.matrix-row {
  display: grid;
  gap: 4px;
  grid-template-columns: 18px repeat(4, minmax(0, 1fr));
  align-items: center;
}
.matrix-labels {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin: 5px 0 2px;
}
.matrix-labels span:nth-child(n + 2) {
  grid-column: span 2;
}
.floor-num {
  font-size: 0.79rem;
  text-align: left;
}
.flat {
  min-width: 0;
  display: grid;
  place-items: center;
  position: relative;
  padding: 4px 1px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: clamp(0.69rem, 0.95vw, 0.83rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.flat[data-stock='free'],
.free-tag {
  background: var(--free-bg);
  color: #295337;
}
.flat[data-stock='sold'],
.sold-tag {
  background: repeating-linear-gradient(-42deg, #f0e1d7 0 5px, #ecdbd1 5px 6px);
  color: #7c4a40;
}
.flat.off {
  color: #a39c8e;
  background: #f4f1eb;
  cursor: default;
}
.flat:hover:not(.off) {
  border-color: currentColor;
}
.flat[aria-pressed='true'] {
  outline: 2px solid #4c3b2d;
  outline-offset: -1px;
  box-shadow: inset 0 0 0 2px var(--surface);
}
.flat[aria-pressed='true']::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 2px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 5px 5px 0;
  border-color: transparent var(--deep) transparent transparent;
}
.unit-list {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  max-height: 560px;
  overflow: auto;
}
.list-unit {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) 1.45fr 1fr minmax(80px, auto);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid #e4dccd;
  border-radius: 5px;
}
.list-unit:nth-child(2n) {
  background: #f7f4ee;
}
.list-unit[aria-pressed='true'] {
  border-color: #907856;
  background: #f2eadb;
}
.list-unit span {
  color: var(--muted);
  font-size: 0.85rem;
}
.list-unit small,
.unit-status {
  padding: 3px 7px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.77rem;
  font-weight: 600;
}
.unit-preview {
  padding: 19px;
  position: sticky;
  top: 12px;
}
.preview-top {
  margin-bottom: 12px;
}
.preview-top .eyebrow {
  margin: 0;
}
.preview-plan {
  margin: 15px 0;
  background: #f4f1e6;
  border: 1px solid #dedacd;
  border-radius: 4px;
  overflow: hidden;
}
.preview-plan canvas,
.floorplan canvas {
  display: block;
  width: 100%;
  height: auto;
}
.preview-meta {
  font-size: 0.89rem;
  color: var(--muted);
  margin: 7px 0 16px;
}
.preview-meta strong {
  font:
    1.55rem Georgia,
    serif;
  color: var(--ink);
}
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.preview-actions button {
  flex: auto;
  padding: 8px;
}
.catalog-note {
  padding: 12px 1px;
}
.empty {
  padding: 28px 0 10px;
}
.empty p {
  color: var(--muted);
  margin: 5px 0 12px;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #c7bba8;
  border-radius: 10px;
  width: min(1100px, 95vw);
  max-height: 92dvh;
  padding: 0;
  overflow: auto;
}
dialog::backdrop {
  background: #1e1914cf;
}
.dialog-header {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 1.4rem;
}
.dialog-header .eyebrow {
  margin: 0;
}
.close {
  font:
    1.6rem/1 Georgia,
    serif;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
#concept-dialog img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #252421;
}
.detail-heading {
  padding: 18px 21px;
  align-items: end;
}
.detail-heading p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 3px 0 6px;
}
.detail-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
  gap: 20px;
  padding: 0 21px 20px;
}
.floorplan {
  overflow: hidden;
  background: #f4f1e6;
  border: 1px solid #d9cfbd;
  border-radius: 5px;
}
.room-row {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.room-row span {
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.room-link {
  font-size: inherit;
  font-weight: 600;
  border-bottom: 1px dotted #977a59;
  text-align: left;
  padding: 0;
}
.room-link:hover {
  color: #775d35;
}
@media (min-width: 1180px) {
  .matrix-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .matrix-groups:has(> .matrix-section:only-child) {
    grid-template-columns: minmax(220px, 440px);
  }
}
@media (max-width: 1179px) {
  .matrix-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sales-filters {
    align-items: center;
  }
  .views button {
    padding: 7px 8px;
  }
  .intro {
    padding: 24px 0 18px;
  }
  .explorer {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .house-stock {
    padding: 14px;
  }
  .stage {
    height: clamp(405px, 57vh, 570px);
  }
}
@media (max-width: 950px) {
  .explorer {
    grid-template-columns: minmax(0, 1fr);
  }
  .house-stock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    align-items: center;
  }
  .house-stock .section-heading,
  .house-stock .stock-numbers,
  .house-stock .stock-meter {
    grid-column: 1;
  }
  .house-stock .stock-numbers {
    margin: 2px 0;
  }
  .house-stock .floor-heading {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  .house-stock .floor-stock {
    grid-column: 2;
    grid-row: 2/6;
    margin: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
  .house-stock .primary,
  .house-stock .demo {
    grid-column: 1;
    margin: 0;
  }
  .floor-row {
    grid-template-columns: 39px 1fr 16px;
    gap: 4px;
  }
  .sales-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .sales-filters {
    gap: 10px;
  }
  .select-filters {
    flex-wrap: wrap;
  }
  .intro .sales-total {
    display: block;
    font-size: 0.84rem;
  }
  .inventory {
    padding: 15px;
  }
  .workspace-nav {
    gap: 15px;
  }
}
@media (max-width: 790px) {
  .mast-inner {
    min-height: 80px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand view' 'nav download';
    gap: 4px 8px;
    padding-top: 9px;
  }
  .brand-icon {
    width: 23px;
    height: 25px;
  }
  .wordmark {
    font-size: 1.01rem;
    gap: 8px;
  }
  .wordmark i {
    margin-top: 3px;
    font-size: .46rem;
  }
  .workspace-nav {
    margin: 0;
    gap: 16px;
  }
  .workspace-nav a {
    font-size: 0.82rem;
    padding: 6px 0;
  }
  .concept {
    padding: 5px 9px;
    font-size: 0.78rem;
  }
  .blender-link {
    align-self: center;
    padding: 3px 0;
    font-size: .78rem;
    color: var(--gold);
    background: transparent;
    border: 0;
  }
  .blender-link:hover { background: transparent; color: #fff0db; }
}
@media (max-width: 720px) {
  .intro {
    align-items: start;
    flex-direction: column;
    gap: 11px;
  }
  .project-facts,
  .sales-total {
    gap: 12px;
    font-size: 0.83rem;
    padding: 0;
  }
  .project-facts span + span {
    padding-left: 12px;
  }
  .project-facts b { display: inline; font: 600 .9rem/1 'Segoe UI', sans-serif; letter-spacing: normal; }
  .intro h1 {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }
  .eyebrow {
    margin-bottom: 5px;
  }
  .stage {
    min-height: 300px;
    height: 49vh;
    max-height: 480px;
  }
  .stage-controls {
    padding: 7px 9px;
    gap: 6px 9px;
  }
  .stage-controls label {
    font-size: 0.78rem;
  }
  .views {
    gap: 2px;
    padding: 6px;
  }
  .views button {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 0.78rem;
  }
  .sales-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .inventory,
  .unit-preview {
    width: 100%;
  }
  .unit-preview {
    order: -1;
    position: static;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 10px;
  }
  .preview-top {
    margin: 0 0 2px;
    justify-content: start;
    flex-wrap: wrap;
  }
  .unit-preview h2 {
    grid-column: 1;
    font-size: 1.45rem;
  }
  .unit-preview > p {
    grid-column: 1;
    margin: 0;
    font-size: 0.8rem;
  }
  .preview-top .eyebrow,
  .preview-plan {
    display: none;
  }
  .preview-meta {
    grid-column: 2;
    grid-row: 1/3;
    align-self: start;
    margin: 2px 0 0;
    gap: 6px;
    flex-direction: column;
    align-items: end;
  }
  .preview-meta strong {
    font-size: 1.25rem;
  }
  .preview-meta span {
    font-size: 0.76rem;
  }
  .preview-actions {
    grid-column: 1/-1;
    margin-top: 5px;
  }
  .preview-actions button {
    min-height: 36px;
  }
  .sales-filters {
    padding: 10px;
  }
  .status-switch,
  .select-filters {
    width: 100%;
  }
  .status-switch button {
    flex: 1;
    padding: 5px 6px;
    gap: 5px;
  }
  .select-filters {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr auto;
    gap: 6px;
  }
  .select-filters select {
    width: 100%;
    min-width: 0;
    font-size: 0.82rem;
  }
  .text-button {
    font-size: 0.78rem;
  }
  .inventory-head h2 {
    font-size: 1.45rem;
  }
  .grid-key {
    margin: 12px 0 8px;
  }
  .detail-heading {
    padding: 12px 14px;
  }
  .detail-content {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
    gap: 8px;
  }
  .dialog-header {
    padding: 6px 12px;
  }
  .list-unit {
    grid-template-columns: 1fr 1.3fr auto;
    gap: 4px;
  }
  .list-unit small {
    grid-column: 1;
    font-size: 0.7rem;
    justify-self: start;
  }
  .list-unit span {
    font-size: 0.76rem;
  }
  footer {
    flex-wrap: wrap;
  }
  .tools {
    gap: 3px;
    right: 9px;
    top: 9px;
  }
  .tools button {
    padding: 5px 7px;
  }
  .scene-head {
    top: 9px;
    left: 9px;
    padding: 7px 9px;
    font-size: 0.8rem;
  }
  .assist,
  .legend {
    left: 8px;
    bottom: 8px;
    font-size: 0.7rem;
  }
  .stage-unit {
    font-size: 0.73rem;
    bottom: 8px;
    right: 8px;
  }
}
@media (max-width: 520px) {
  .house-stock {
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .house-stock .stock-numbers {
    margin: 10px 0;
  }
  .house-stock .floor-heading {
    margin: 12px 0 3px;
  }
  .house-stock .floor-stock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 18px;
    margin-bottom: 9px;
  }
  .floor-row {
    padding: 6px 1px;
  }
  .house-stock .demo {
    margin-top: 5px;
  }
  .matrix-groups {
    grid-template-columns: minmax(0, 1fr);
  }
  .flat {
    height: 37px;
    font-size: 0.86rem;
  }
  .matrix-row {
    grid-template-columns: 25px repeat(4, 1fr);
  }
  .select-filters {
    grid-template-columns: 1.17fr 1fr 1fr;
  }
  .text-button {
    grid-column: 1/-1;
    justify-self: end;
    padding: 2px;
  }
  .text-button:disabled {
    display: none;
  }
  .status-switch button {
    font-size: 0.83rem;
  }
  .detail-heading .primary {
    padding: 7px;
    font-size: 0.8rem;
  }
  .inventory-head {
    gap: 5px;
  }
  .view-switch {
    gap: 0;
    padding: 2px;
  }
  .view-switch button {
    font-size: 0.76rem;
    padding: 4px 6px;
  }
  .stage-controls #evening {
    margin-left: 0;
  }
  .legend:has(+ .stage-unit:not([hidden])) {
    bottom: 50px;
  }
  .room-row {
    gap: 4px;
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 365px) {
  .status-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .status-switch button {
    flex-direction: column;
    gap: 2px;
    padding: 4px 1px;
    font-size: .77rem;
  }
  .status-switch button i { display: none; }
}
@media (max-width: 720px) {
  #apartments:has(.unit-preview:not([hidden])) {
    padding-bottom: 112px;
  }
  .unit-preview {
    position: fixed;
    z-index: 6;
    inset: auto 0 0;
    border-radius: 10px 10px 0 0;
    padding: 8px max(16px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -5px 24px #34291d24;
    grid-template-columns: 1fr auto;
  }
  .unit-preview .preview-top {
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
  }
  .unit-preview h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.25rem;
  }
  .preview-meta {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    align-self: center;
    font-size: 0.76rem;
    margin: 0;
  }
  .preview-meta strong {
    font:
      600 0.9rem 'Segoe UI',
      sans-serif;
  }
  .preview-meta span {
    display: none;
  }
  .preview-actions {
    margin-top: 3px;
  }
  .unit-preview > p {
    grid-row: 2;
  }
  .matrix-groups {
    column-gap: 12px;
  }
}
@media (min-width: 721px) {
  .unit-preview .preview-actions button {
    padding: 7px 8px;
  }
}
#unit-hint {
  background: #383026;
  color: #fffdf2;
  box-shadow: 0 3px 14px #35271c24;
  white-space: nowrap;
}
.back-stock {
  border: 1px solid #c9bca6;
  border-radius: 5px;
  background: #efe6d7;
  padding: 6px 10px;
  font-size: 0.85rem;
}
.back-stock:hover {
  background: #e6d9c5;
}
.sales-layout:has(.unit-preview[hidden]) {
  grid-template-columns: 1fr;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.facade-key {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 9px;
  background: #fffaf1f5;
  border: 1px solid #cdbfa9;
  border-radius: 6px;
  box-shadow: 0 3px 13px #32241a21;
}
.facade-key p {
  font-size: 0.81rem;
  font-weight: 600;
  color: #443a2e;
  margin: 0 0 5px;
}
.facade-key [role='group'] {
  display: flex;
  align-items: center;
  gap: 3px;
}
.facade-key button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.78rem;
  min-height: 28px;
  padding: 3px 7px;
}
.facade-key button:hover {
  background: #f1e7d7;
}
.facade-key button[aria-pressed='true'] {
  background: #3e3429;
  color: #fffdf2;
  border-color: #3e3429;
}
.facade-key button[aria-pressed='true'] i {
  outline: 1px solid #d9c9b7;
}
#facade-switch {
  font-size: 0.86rem;
  min-height: 32px;
  border: 1px solid #cfbda6;
  border-radius: 5px;
  padding: 5px 9px;
}
#facade-switch[aria-pressed='true'] {
  background: #eee1cc;
  border-color: #bca37d;
  color: #62472e;
}
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 7px;
  flex-wrap: wrap;
}
.canvas-host canvas:focus-visible {
  outline: 3px solid #a9824e;
  outline-offset: -3px;
}
@media (max-width: 600px) {
  .facade-key {
    bottom: 7px;
    left: 7px;
    padding: 5px 7px;
  }
  .facade-key p {
    font-size: 0.73rem;
    margin-bottom: 2px;
  }
  .facade-key button {
    min-height: 30px;
    padding: 3px 6px;
  }
  .detail-heading {
    flex-wrap: wrap;
  }
  .detail-actions {
    width: 100%;
    justify-content: start;
  }
  .detail-actions button {
    flex: 1;
    font-size: 0.79rem;
  }
  .stage-controls #facade-switch {
    min-height: 32px;
  }
}
@media (min-width: 951px) {
  .floor-row {
    min-height: 34px;
  }
  .house-stock .primary {
    margin-top: 14px;
  }
  .house-stock {
    align-self: start;
  }
}
