/* Interactive property Viewer shell, controls, overlays and model presentation. */

.concept-proof,
.concept-capabilities,
.concept-workflow {
  max-width: var(--concept-max);
  margin: 0 auto;
  padding: clamp(100px, 10vw, 156px) var(--pad);
}

.concept-viewer-shell {
  width: 100%;
  border-color: rgba(24, 32, 29, .2);
  border-radius: var(--concept-radius);
  background: var(--paper-bright);
  box-shadow: var(--concept-shadow);
}

.concept-viewer-shell .viewer-topbar,
.concept-viewer-shell .viewer-bottombar {
  min-height: 70px;
  padding-right: 18px;
  padding-left: 18px;
}

.concept-viewer-shell .viewer-stage {
  height: min(64vw, 650px);
  min-height: 500px;
}

.concept-viewer-shell .viewer-back {
  display: none;
  place-items: center;
}

.concept-viewer-shell[data-scene="apartment"] .viewer-back {
  display: grid;
}

.concept-viewer-shell .viewer-back .ph,
.concept-viewer-shell .topbar-button > .ph {
  font-size: 18px;
  line-height: 1;
}

.concept-viewer-shell .topbar-button > .ph {
  color: currentColor;
}

.concept-viewer-shell .viewer-hint > .ph {
  color: var(--acid);
  font-size: 16px;
}

.concept-viewer-shell .measure-delete {
  font-size: 0;
}

.concept-viewer-shell .measure-delete .ph {
  font-size: 16px;
}

.concept-viewer-shell .view-button {
  min-width: 40px;
  transition:
    transform 140ms var(--concept-ease-out),
    color 160ms ease,
    background-color 160ms ease;
}

.concept-viewer-shell .view-button > .ph {
  display: grid;
  place-items: center;
  min-width: 20px;
  color: var(--ink-soft);
  font-size: 19px;
}

.concept-viewer-shell .view-button.active > .ph {
  color: var(--acid);
}

.concept-viewer-shell .tool-panel button > .ph {
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  color: var(--ink);
  font-size: 21px;
}

.concept-viewer-shell .tool-panel .tool-clear {
  gap: 7px;
}

.concept-viewer-shell .floor-buttons button,
.concept-viewer-shell .room-button,
.concept-viewer-shell .tool-panel button {
  transition:
    transform 140ms var(--concept-ease-out),
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.building-draft-note {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
}

.concept-proof {
  position: absolute;
  z-index: 5;
  top: 88px;
  right: var(--pad);
  width: min(56vw, 760px);
  padding: 0;
  background: transparent;
}

.concept-proof .concept-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 14px 12px;
}

.concept-proof .concept-section-heading > span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: var(--fs-micro);
  font-weight: var(--fw-label);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.concept-proof .concept-section-heading h2 {
  max-width: 420px;
  font: 400 clamp(19px, 1.8vw, 27px)/1.08 Georgia, serif;
  letter-spacing: -.035em;
  text-align: right;
}

.concept-proof .concept-section-heading p {
  display: none;
}

.concept-viewer-shell {
  border-color: rgba(24, 32, 29, .2);
  border-radius: 10px;
  box-shadow:
    0 40px 110px rgba(24, 32, 29, .18),
    12px 12px 0 rgba(216, 255, 98, .74);
}

.concept-viewer-shell .viewer-stage {
  height: min(45vw, 585px);
  min-height: 510px;
}

.concept-proof {
  top: 86px;
  width: min(56vw, 760px);
}

.concept-proof .concept-section-heading {
  display: none;
}

.concept-viewer-shell .viewer-topbar,
.concept-viewer-shell .viewer-bottombar {
  min-height: 58px;
}

.concept-viewer-shell .viewer-stage {
  height: min(34vw, 440px);
  min-height: 380px;
}

.concept-viewer-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.concept-viewer-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 29, .18);
  border-radius: 14px;
  box-shadow:
    0 34px 84px rgba(24, 32, 29, .17),
    0 10px 26px rgba(67, 97, 238, .08);
}

.concept-frame-beam {
  --concept-beam-angle: 0deg;
  position: absolute;
  z-index: 3;
  inset: 0;
  padding: 2px;
  border-radius: 14px;
  background: conic-gradient(
    from var(--concept-beam-angle),
    transparent 0deg 238deg,
    rgba(67, 97, 238, .12) 252deg,
    var(--blue) 276deg,
    var(--acid) 296deg,
    transparent 320deg
  );
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: concept-viewer-beam 4s linear 1 both;
}

.concept-frame-corner {
  position: absolute;
  z-index: 4;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.concept-frame-corner::before,
.concept-frame-corner::after {
  content: "";
  position: absolute;
  background: rgba(24, 32, 29, .42);
}

.concept-frame-corner::before {
  width: 14px;
  height: 2px;
}

.concept-frame-corner::after {
  width: 2px;
  height: 14px;
}

.concept-frame-corner-tl {
  top: 8px;
  left: 8px;
}

.concept-frame-corner-tr {
  top: 8px;
  right: 8px;
  transform: rotate(90deg);
}

.concept-frame-corner-bl {
  bottom: 8px;
  left: 8px;
  transform: rotate(-90deg);
}

.concept-frame-corner-br {
  right: 8px;
  bottom: 8px;
  transform: rotate(180deg);
}

@keyframes concept-viewer-beam {
  to {
    --concept-beam-angle: 360deg;
  }
}

.concept-viewer-shell .topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.concept-viewer-shell .topbar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-weight: var(--fw-strong);
  font-size: var(--fs-label);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.concept-viewer-shell .topbar-button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.28);
  border-color: var(--acid);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.concept-viewer-shell .topbar-button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.concept-viewer-shell .view-button {
  border-radius: 12px;
  padding: 6px 14px;
  font-weight: var(--fw-strong);
  font-size: var(--fs-label);
  border: 1px solid transparent;
  transition: all 180ms ease;
}

.concept-viewer-shell .view-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.12);
}

.concept-viewer-shell .view-button.active {
  background: rgba(24,32,29,0.08);
  border-color: rgba(24,32,29,0.18);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.concept-viewer-shell .tool-rotate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(67,97,238,0.1) !important;
  border: 1px solid rgba(67,97,238,0.25) !important;
  color: var(--blue-surface) !important;
  font-weight: var(--fw-strong);
}

.concept-viewer-shell .tool-rotate:hover {
  background: rgba(67,97,238,0.2) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(67,97,238,0.25);
}

/* Viewer refinement v11: centered spatial models and a coherent product UI. */
.concept-viewer-shell {
  border-radius: 14px;
}

.concept-viewer-shell .viewer-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
}

.concept-viewer-shell .viewer-heading {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.concept-viewer-shell[data-scene="building"] .viewer-heading {
  grid-column: 1 / 3;
}

.concept-viewer-shell[data-scene="apartment"] .viewer-heading {
  grid-column: 2;
}

.concept-viewer-shell .viewer-tag {
  color: var(--ink-soft);
  font-size: var(--fs-micro);
  font-weight: var(--fw-label);
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.concept-viewer-shell .viewer-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.concept-viewer-shell .topbar-actions {
  grid-column: 3;
  min-width: 0;
}

.concept-viewer-shell .topbar-button,
.concept-viewer-shell .viewer-status {
  flex: 0 0 auto;
  white-space: nowrap;
}

.concept-viewer-shell .topbar-button {
  min-width: 36px;
  border-color: rgba(24, 32, 29, .14);
  background: rgba(250, 249, 245, .72);
  backdrop-filter: blur(12px) saturate(120%);
}

.concept-viewer-shell .topbar-button:focus-visible,
.concept-viewer-shell .view-button:focus-visible,
.concept-viewer-shell .room-button:focus-visible,
.concept-viewer-shell .floor-buttons button:focus-visible,
.concept-viewer-shell .viewer-back:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.concept-viewer-shell .topbar-button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #faf9f5;
}

.concept-viewer-shell .viewer-stage {
  background: #e2e3dc;
}

.concept-viewer-shell .room-panel {
  width: 184px;
  padding: 10px;
  border: 1px solid rgba(24, 32, 29, .12);
  border-radius: 12px;
  background: rgba(250, 249, 245, .9);
  box-shadow: 0 14px 34px rgba(24, 32, 29, .1);
}

.concept-viewer-shell .room-panel > span {
  margin: 3px 8px 8px;
}

.concept-viewer-shell .room-buttons {
  display: grid;
  gap: 3px;
}

.concept-viewer-shell .room-button {
  position: relative;
  min-height: 34px;
  padding: 7px 9px 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-label-s);
  font-weight: var(--fw-strong);
  line-height: 1.2;
}

.concept-viewer-shell .room-button::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
}

.concept-viewer-shell .room-button:hover {
  background: rgba(24, 32, 29, .06);
}

.concept-viewer-shell .room-button.active {
  background: var(--ink);
  color: var(--paper-bright);
}

.concept-viewer-shell .room-button.active::before {
  background: var(--acid);
  opacity: 1;
}

.concept-viewer-shell .floor-panel {
  border-radius: 12px;
}

.concept-viewer-shell .floor-buttons button {
  border-radius: 7px;
}

.concept-viewer-shell .viewer-bottombar {
  min-height: 62px;
  padding: 9px 14px;
}

.concept-viewer-shell .view-controls {
  min-width: 0;
  gap: 3px;
}

.concept-viewer-shell .view-button {
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
}

.concept-viewer-shell .view-button i {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.concept-viewer-shell .view-button b {
  display: block;
  /* `b` defaults to `bolder`, which resolves against the parent to weight 900 —
     an unintended fourth step. Pin it to the label token. */
  font-weight: var(--fw-label);
  font-size: var(--fs-micro);
  line-height: 1.15;
  white-space: nowrap;
}

.concept-viewer-shell .view-button:hover {
  border-color: rgba(24, 32, 29, .12);
  background: rgba(24, 32, 29, .045);
}

.concept-viewer-shell .view-button.active {
  border-color: rgba(24, 32, 29, .16);
  background: var(--ink);
  color: var(--paper-bright);
  box-shadow: none;
}

.concept-viewer-shell .view-button.active i {
  color: var(--acid);
}

.concept-viewer-shell:fullscreen {
  display: grid;
  width: 100vw;
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 0;
  border-radius: 0;
}

.concept-viewer-shell:fullscreen .viewer-stage {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.concept-viewer-shell:fullscreen .viewer-topbar,
.concept-viewer-shell:fullscreen .viewer-bottombar {
  width: 100%;
}

.concept-frame-corner {
  display: none;
}

.concept-frame-beam {
  animation: concept-viewer-beam 8s linear infinite;
}

.concept-viewer-frame,
.concept-viewer-shell {
  box-sizing: border-box;
}

.concept-viewer-shell {
  margin-inline: auto;
}

/* `b` defaults to `bolder`, which resolves against the parent's 700 to a
   fourth weight (900) that was never declared anywhere. Pin it, like the
   view-button labels. */
.concept-viewer-shell .topbar-button b,
.concept-viewer-shell .viewer-back b {
  font-weight: var(--fw-label);
}

 Interactive property Viewer shell, controls, overlays and model presentation. */

.concept-proof,
.concept-capabilities,
.concept-workflow {
  max-width: var(--concept-max);
  margin: 0 auto;
  padding: clamp(100px, 10vw, 156px) var(--pad);
}

.concept-viewer-shell {
  width: 100%;
  border-color: rgba(24, 32, 29, .2);
  border-radius: var(--concept-radius);
  background: var(--paper-bright);
  box-shadow: var(--concept-shadow);
}

.concept-viewer-shell .viewer-topbar,
.concept-viewer-shell .viewer-bottombar {
  min-height: 70px;
  padding-right: 18px;
  padding-left: 18px;
}

.concept-viewer-shell .viewer-stage {
  height: min(64vw, 650px);
  min-height: 500px;
}

.concept-viewer-shell .viewer-back {
  display: none;
  place-items: center;
}

.concept-viewer-shell[data-scene="apartment"] .viewer-back {
  display: grid;
}

.concept-viewer-shell .viewer-back .ph,
.concept-viewer-shell .topbar-button > .ph {
  font-size: 18px;
  line-height: 1;
}

.concept-viewer-shell .topbar-button > .ph {
  color: currentColor;
}

.concept-viewer-shell .viewer-hint > .ph {
  color: var(--acid);
  font-size: 16px;
}

.concept-viewer-shell .measure-delete {
  font-size: 0;
}

.concept-viewer-shell .measure-delete .ph {
  font-size: 16px;
}

.concept-viewer-shell .view-button {
  min-width: 40px;
  transition:
    transform 140ms var(--concept-ease-out),
    color 160ms ease,
    background-color 160ms ease;
}

.concept-viewer-shell .view-button > .ph {
  display: grid;
  place-items: center;
  min-width: 20px;
  color: var(--ink-soft);
  font-size: 19px;
}

.concept-viewer-shell .view-button.active > .ph {
  color: var(--acid);
}

.concept-viewer-shell .tool-panel button > .ph {
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  color: var(--ink);
  font-size: 21px;
}

.concept-viewer-shell .tool-panel .tool-clear {
  gap: 7px;
}

.concept-viewer-shell .floor-buttons button,
.concept-viewer-shell .room-button,
.concept-viewer-shell .tool-panel button {
  transition:
    transform 140ms var(--concept-ease-out),
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.building-draft-note {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
}

.concept-proof {
  position: absolute;
  z-index: 5;
  top: 88px;
  right: var(--pad);
  width: min(56vw, 760px);
  padding: 0;
  background: transparent;
}

.concept-proof .concept-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 14px 12px;
}

.concept-proof .concept-section-heading > span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: var(--fs-micro);
  font-weight: var(--fw-label);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.concept-proof .concept-section-heading h2 {
  max-width: 420px;
  font: 400 clamp(19px, 1.8vw, 27px)/1.08 Georgia, serif;
  letter-spacing: -.035em;
  text-align: right;
}

.concept-proof .concept-section-heading p {
  display: none;
}

.concept-viewer-shell {
  border-color: rgba(24, 32, 29, .2);
  border-radius: 10px;
  box-shadow:
    0 40px 110px rgba(24, 32, 29, .18),
    12px 12px 0 rgba(216, 255, 98, .74);
}

.concept-viewer-shell .viewer-stage {
  height: min(45vw, 585px);
  min-height: 510px;
}

.concept-proof {
  top: 86px;
  width: min(56vw, 760px);
}

.concept-proof .concept-section-heading {
  display: none;
}

.concept-viewer-shell .viewer-topbar,
.concept-viewer-shell .viewer-bottombar {
  min-height: 58px;
}

.concept-viewer-shell .viewer-stage {
  height: min(34vw, 440px);
  min-height: 380px;
}

.concept-viewer-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.concept-viewer-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 29, .18);
  border-radius: 14px;
  box-shadow:
    0 34px 84px rgba(24, 32, 29, .17),
    0 10px 26px rgba(67, 97, 238, .08);
}

.concept-frame-beam {
  --concept-beam-angle: 0deg;
  position: absolute;
  z-index: 3;
  inset: 0;
  padding: 2px;
  border-radius: 14px;
  background: conic-gradient(
    from var(--concept-beam-angle),
    transparent 0deg 238deg,
    rgba(67, 97, 238, .12) 252deg,
    var(--blue) 276deg,
    var(--acid) 296deg,
    transparent 320deg
  );
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: concept-viewer-beam 4s linear 1 both;
}

.concept-frame-corner {
  position: absolute;
  z-index: 4;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.concept-frame-corner::before,
.concept-frame-corner::after {
  content: "";
  position: absolute;
  background: rgba(24, 32, 29, .42);
}

.concept-frame-corner::before {
  width: 14px;
  height: 2px;
}

.concept-frame-corner::after {
  width: 2px;
  height: 14px;
}

.concept-frame-corner-tl {
  top: 8px;
  left: 8px;
}

.concept-frame-corner-tr {
  top: 8px;
  right: 8px;
  transform: rotate(90deg);
}

.concept-frame-corner-bl {
  bottom: 8px;
  left: 8px;
  transform: rotate(-90deg);
}

.concept-frame-corner-br {
  right: 8px;
  bottom: 8px;
  transform: rotate(180deg);
}

@keyframes concept-viewer-beam {
  to {
    --concept-beam-angle: 360deg;
  }
}

.concept-viewer-shell .topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.concept-viewer-shell .topbar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-weight: var(--fw-strong);
  font-size: var(--fs-label);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.concept-viewer-shell .topbar-button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.28);
  border-color: var(--acid);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.concept-viewer-shell .topbar-button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.concept-viewer-shell .view-button {
  border-radius: 12px;
  padding: 6px 14px;
  font-weight: var(--fw-strong);
  font-size: var(--fs-label);
  border: 1px solid transparent;
  transition: all 180ms ease;
}

.concept-viewer-shell .view-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.12);
}

.concept-viewer-shell .view-button.active {
  background: rgba(24,32,29,0.08);
  border-color: rgba(24,32,29,0.18);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.concept-viewer-shell .tool-rotate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(67,97,238,0.1) !important;
  border: 1px solid rgba(67,97,238,0.25) !important;
  color: var(--blue-surface) !important;
  font-weight: var(--fw-strong);
}

.concept-viewer-shell .tool-rotate:hover {
  background: rgba(67,97,238,0.2) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(67,97,238,0.25);
}

/* Viewer refinement v11: centered spatial models and a coherent product UI. */
.concept-viewer-shell {
  border-radius: 14px;
}

.concept-viewer-shell .viewer-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
}

.concept-viewer-shell .viewer-heading {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.concept-viewer-shell[data-scene="building"] .viewer-heading {
  grid-column: 1 / 3;
}

.concept-viewer-shell[data-scene="apartment"] .viewer-heading {
  grid-column: 2;
}

.concept-viewer-shell .viewer-tag {
  color: var(--ink-soft);
  font-size: var(--fs-micro);
  font-weight: var(--fw-label);
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.concept-viewer-shell .viewer-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.concept-viewer-shell .topbar-actions {
  grid-column: 3;
  min-width: 0;
}

.concept-viewer-shell .topbar-button,
.concept-viewer-shell .viewer-status {
  flex: 0 0 auto;
  white-space: nowrap;
}

.concept-viewer-shell .topbar-button {
  min-width: 36px;
  border-color: rgba(24, 32, 29, .14);
  background: rgba(250, 249, 245, .72);
  backdrop-filter: blur(12px) saturate(120%);
}

.concept-viewer-shell .topbar-button:focus-visible,
.concept-viewer-shell .view-button:focus-visible,
.concept-viewer-shell .room-button:focus-visible,
.concept-viewer-shell .floor-buttons button:focus-visible,
.concept-viewer-shell .viewer-back:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.concept-viewer-shell .topbar-button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #faf9f5;
}

.concept-viewer-shell .viewer-stage {
  background: #e2e3dc;
}

.concept-viewer-shell .room-panel {
  width: 184px;
  padding: 10px;
  border: 1px solid rgba(24, 32, 29, .12);
  border-radius: 12px;
  background: rgba(250, 249, 245, .9);
  box-shadow: 0 14px 34px rgba(24, 32, 29, .1);
}

.concept-viewer-shell .room-panel > span {
  margin: 3px 8px 8px;
}

.concept-viewer-shell .room-buttons {
  display: grid;
  gap: 3px;
}

.concept-viewer-shell .room-button {
  position: relative;
  min-height: 34px;
  padding: 7px 9px 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-label-s);
  font-weight: var(--fw-strong);
  line-height: 1.2;
}

.concept-viewer-shell .room-button::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
}

.concept-viewer-shell .room-button:hover {
  background: rgba(24, 32, 29, .06);
}

.concept-viewer-shell .room-button.active {
  background: var(--ink);
  color: var(--paper-bright);
}

.concept-viewer-shell .room-button.active::before {
  background: var(--acid);
  opacity: 1;
}

.concept-viewer-shell .floor-panel {
  border-radius: 12px;
}

.concept-viewer-shell .floor-buttons button {
  border-radius: 7px;
}

.concept-viewer-shell .viewer-bottombar {
  min-height: 62px;
  padding: 9px 14px;
}

.concept-viewer-shell .view-controls {
  min-width: 0;
  gap: 3px;
}

.concept-viewer-shell .view-button {
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
}

.concept-viewer-shell .view-button i {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.concept-viewer-shell .view-button b {
  display: block;
  /* `b` defaults to `bolder`, which resolves against the parent to weight 900 —
     an unintended fourth step. Pin it to the label token. */
  font-weight: var(--fw-label);
  font-size: var(--fs-micro);
  line-height: 1.15;
  white-space: nowrap;
}

.concept-viewer-shell .view-button:hover {
  border-color: rgba(24, 32, 29, .12);
  background: rgba(24, 32, 29, .045);
}

.concept-viewer-shell .view-button.active {
  border-color: rgba(24, 32, 29, .16);
  background: var(--ink);
  color: var(--paper-bright);
  box-shadow: none;
}

.concept-viewer-shell .view-button.active i {
  color: var(--acid);
}

.concept-viewer-shell:fullscreen {
  display: grid;
  width: 100vw;
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 0;
  border-radius: 0;
}

.concept-viewer-shell:fullscreen .viewer-stage {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.concept-viewer-shell:fullscreen .viewer-topbar,
.concept-viewer-shell:fullscreen .viewer-bottombar {
  width: 100%;
}

.concept-frame-corner {
  display: none;
}

.concept-frame-beam {
  animation: concept-viewer-beam 8s linear infinite;
}

.concept-viewer-frame,
.concept-viewer-shell {
  box-sizing: border-box;
}

.concept-viewer-shell {
  margin-inline: auto;
}

/* `b` defaults to `bolder`, which resolves against the parent's 700 to a
   fourth weight (900) that was never declared anywhere. Pin it, like the
   view-button labels. */
.concept-viewer-shell .topbar-button b,
.concept-viewer-shell .viewer-back b {
  font-weight: var(--fw-label);
}

/* ---------------------------------------------------------------------------
   Two-column hero: the viewer fills its column
   ---------------------------------------------------------------------------
   The viewer sits beside the hero copy at a fixed height, while the copy's
   height depends on the language: the Russian headline wraps to more lines
   and ran ~190px taller, leaving a dead band under the viewer that vanished
   in English.

   `.concept-proof` is now nested inside `.concept-hero` so the hero is its
   containing block — as a sibling it resolved `bottom` against `main`, i.e.
   the whole page, which blew the shell up to ~4800px tall. Anchoring top and
   bottom now makes the shell track the column, so the band is gone in every
   language.

   Applied only where the two-column hero exists. Below that the section goes
   back to `position: relative` and becomes an ordinary grid item, so it just
   needs to span the single column.
   --------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .concept-proof {
    top: 96px;
    bottom: auto;
    height: 640px;
  }

  .concept-proof .concept-viewer-frame,
  .concept-proof .concept-viewer-shell {
    height: 100%;
  }

  .concept-proof .concept-viewer-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .concept-proof .concept-viewer-shell .viewer-stage {
    flex: 1 1 auto;
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }
}

@media (max-width: 1199px) {
  .concept-hero > .concept-proof {
    grid-column: 1 / -1;
  }
}

/* Fullscreen iframe overrides */
iframe#property-viewer-frame:fullscreen,
.concept-viewer-frame:fullscreen,
.concept-viewer-frame:fullscreen iframe,
:fullscreen iframe#property-viewer-frame {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 999999 !important;
}


/* ===========================================================================
   Hero scan + on-demand viewer
   ===========================================================================
   The page tells one story across two sections: the hero shows the captured
   space (the raw material), and #why-us shows what it becomes. The heading
   there — "from real space to a working digital twin" — is now literally
   answered by the live viewer sitting under it.

   The viewer is an iframe pulling ~27 MB of GLB, so it never loads on its
   own. A facade button occupies its place until the visitor asks for it.
   =========================================================================== */

/* --- Hero: the captured space ------------------------------------------- */

.concept-hero-scan {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  pointer-events: none;
}

.concept-hero-scan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(9, 18, 30, .34));
}

/* The scan overlays are absolutely positioned against the figure, matching
   the treatment they had in #why-us. */
.concept-hero-scan .concept-scan-mesh,
.concept-hero-scan .concept-scan-sweep,
.concept-hero-scan .concept-media-label {
  position: absolute;
}

.concept-hero-scan .concept-media-label {
  right: 12px;
  bottom: 12px;
}

/* Cinematic hero scan: the apartment is deliberately pulled back from the
   frame so every facade edge remains visible, including on ultra-wide screens. */
.concept-hero-scan {
  z-index: 2;
  inset: 0;
}

.concept-hero-scan img {
  object-fit: contain;
  mix-blend-mode: screen;
  filter:
    contrast(1.06)
    saturate(.9)
    drop-shadow(0 34px 52px rgba(0, 0, 0, .42))
    drop-shadow(0 0 34px rgba(76, 105, 229, .18));
  transform: scale(var(--scan-scale));
  transform-origin: 50% 52%;
  animation: concept-scan-breathe 7.5s ease-in-out infinite paused;
  will-change: filter, opacity;
  transition: opacity .6s var(--concept-ease-out), filter .6s var(--concept-ease-out);
}

.concept-hero-scan.has-particle-scan img {
  opacity: .58;
  filter:
    contrast(1.05)
    saturate(.82)
    drop-shadow(0 34px 52px rgba(0, 0, 0, .38));
}

.concept-particle-scan {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .65s var(--concept-ease-out);
}

.concept-particle-scan.is-ready {
  opacity: .92;
}

.concept-particle-scan-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.concept-hero-scan .concept-scan-mesh {
  z-index: 4;
  opacity: .18;
  background-size: 36px 36px;
  animation: concept-scan-grid-drift 9s linear infinite paused;
}

.concept-hero-scan .concept-scan-sweep {
  z-index: 5;
  top: -16%;
  height: 18%;
  opacity: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(116, 192, 255, .08) 42%,
      rgba(216, 255, 98, .48) 76%,
      rgba(250, 249, 245, .96) 96%,
      transparent 100%
    );
  border-bottom: 0;
  filter: drop-shadow(0 7px 12px rgba(91, 132, 238, .3));
  transform: translateY(-120%);
  animation: concept-scan-pass 5.8s cubic-bezier(.45, 0, .25, 1) infinite paused;
  will-change: transform, opacity;
}

.concept-hero-scan.is-scan-active img,
.concept-hero-scan.is-scan-active .concept-scan-mesh,
.concept-hero-scan.is-scan-active .concept-scan-sweep {
  animation-play-state: running;
}

@keyframes concept-scan-breathe {
  0%,
  100% {
    opacity: .92;
    filter:
      contrast(1.04)
      saturate(.88)
      drop-shadow(0 34px 52px rgba(0, 0, 0, .42))
      drop-shadow(0 0 26px rgba(76, 105, 229, .14));
  }

  50% {
    opacity: 1;
    filter:
      contrast(1.12)
      saturate(1.02)
      drop-shadow(0 38px 58px rgba(0, 0, 0, .46))
      drop-shadow(0 0 38px rgba(76, 105, 229, .22));
  }
}

@keyframes concept-scan-grid-drift {
  from {
    background-position: 0 0;
    opacity: .12;
  }

  50% {
    opacity: .24;
  }

  to {
    background-position: 36px 36px;
    opacity: .12;
  }
}

@keyframes concept-scan-pass {
  0%,
  10% {
    opacity: 0;
    transform: translateY(-120%);
  }

  16% {
    opacity: .94;
  }

  70% {
    opacity: .94;
    transform: translateY(690%);
  }

  76%,
  100% {
    opacity: 0;
    transform: translateY(690%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept-hero-scan img,
  .concept-hero-scan .concept-scan-mesh,
  .concept-hero-scan .concept-scan-sweep {
    animation: none;
  }

  .concept-particle-scan {
    display: none;
  }
}

/* --- #why-us: the working twin ------------------------------------------ */

.concept-why-viewer .concept-why-media-stage {
  display: grid;
  place-items: center;
  /* Taller than the still it replaces: the viewer carries a floor panel down
     its left edge and a mode bar along the bottom. */
  min-height: clamp(460px, 42vw, 640px);

  /* Square corners, scoped to the viewer stage only.
     The shared 12px radius is right for the quote, workflow and contact cards
     it is declared with, but the viewer is a window onto an application, not a
     card: the stage clips the iframe (`.concept-viewer-embed` inherits this
     radius), so a rounded stage was also rounding the corners of the viewer's
     own header inside it. Overridden here rather than in the shared rule so
     the other three keep their radius. */
  border-radius: 0;
}

.concept-viewer-facade {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 30ch;
  padding: 22px 26px;
  border: 1px solid rgba(250, 249, 245, .22);
  border-radius: 14px;
  background: rgba(7, 17, 27, .58);
  backdrop-filter: blur(10px);
  color: var(--paper-bright);
  cursor: pointer;
  text-align: center;
  transition:
    transform 200ms var(--concept-ease-out),
    border-color 200ms ease,
    background-color 200ms ease;
}

.concept-viewer-facade:hover,
.concept-viewer-facade:focus-visible {
  transform: translateY(-2px);
  border-color: var(--acid);
  background: rgba(7, 17, 27, .72);
}

.concept-viewer-facade:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.concept-viewer-facade[disabled] {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}

.concept-viewer-facade-cta,
.concept-viewer-facade-cta > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--palette-sand-linen);
  font-size: var(--fs-body);
  font-weight: var(--fw-strong);
  letter-spacing: -.01em;
}

.concept-viewer-facade-cta > span {
  display: inline;
}

.concept-viewer-facade-cta .ph {
  font-size: 20px;
  color: var(--acid);
}

.concept-viewer-facade-note {
  color: rgba(250, 249, 245, .78);
  font-size: var(--fs-label);
  line-height: 1.45;
}

/* --- The frame itself ---------------------------------------------------- */

.concept-viewer-embed {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  background: var(--paper-dim);
}

/* Hide the decorative gradient behind the viewer once it is running: two GPU
   contexts competing for the same frame budget is the one thing this project
   must not do. */
[data-viewer-state] .concept-twin-shader,
[data-viewer-state] .concept-twin-shader-fallback {
  transition: opacity 300ms ease;
}

[data-viewer-state="loading"] .concept-twin-shader,
[data-viewer-state="ready"] .concept-twin-shader,
[data-viewer-state="loading"] .concept-twin-shader-fallback,
[data-viewer-state="ready"] .concept-twin-shader-fallback {
  opacity: 0;
}

[data-viewer-state="loading"]::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  animation: concept-viewer-loading 1.1s linear infinite;
}

@keyframes concept-viewer-loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  [data-viewer-state="loading"]::after {
    animation: none;
    opacity: .6;
  }
}
