:root {
  --paper: #f1eee6;
  --paper-deep: #e7e1d5;
  --card: #fbf9f3;
  --ink: #171713;
  --muted: #736d62;
  --line: #cec5b5;
  --brass: #b58a50;
  --brass-dark: #76532f;
  --green: #263c35;
  --green-soft: #53685f;
  --night: #101513;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
summary {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brass) 72%, white);
  outline-offset: 3px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 38px;
  min-height: 76px;
  padding: 14px clamp(22px, 4vw, 70px);
  color: #f8f2e6;
  border-bottom: 1px solid transparent;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    min-height 220ms ease;
}

.site-nav.scrolled {
  min-height: 64px;
  background: rgba(16, 21, 19, 0.93);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  padding: 8px 10px 7px;
  color: var(--ink);
  background: var(--brass);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 17px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 9px 0;
  color: rgba(248, 242, 230, 0.72);
}

.nav-links a::after {
  position: absolute;
  right: 100%;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--brass);
  content: "";
  transition: right 180ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  right: 0;
}

.present-button {
  min-width: 104px;
  padding: 10px 18px;
  color: #fff8ea;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.present-button:hover {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 132px clamp(24px, 7vw, 120px) 86px;
  color: #f7f2e7;
  background:
    radial-gradient(
      circle at 77% 35%,
      rgba(181, 138, 80, 0.2),
      transparent 22%
    ),
    linear-gradient(120deg, #0d1210 0%, #18231f 60%, #111815 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.hero::before {
  position: absolute;
  right: -4vw;
  bottom: -22vh;
  width: min(70vw, 980px);
  aspect-ratio: 1;
  border: 1px solid rgba(181, 138, 80, 0.25);
  border-radius: 50%;
  content: "";
}

.hero-orbit {
  position: absolute;
  right: 8vw;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.hero-orbit-one {
  bottom: 4vh;
  width: min(49vw, 690px);
  height: min(18vw, 250px);
}

.hero-orbit-two {
  bottom: 11vh;
  width: min(38vw, 540px);
  height: min(13vw, 185px);
}

.hero-content,
.hero-summary,
.hero-foot {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brass-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow,
.visualizer-section .eyebrow {
  color: #d0a86f;
}

.hero h1 {
  max-width: 930px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(66px, 9.5vw, 152px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: #d6bd96;
  font-size: 0.66em;
  font-weight: 400;
}

.hero-lead {
  max-width: 680px;
  margin: 46px 0 0;
  color: rgba(247, 242, 231, 0.73);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary {
  color: var(--ink);
  background: var(--brass);
}

.button-primary:hover {
  background: #c69a60;
}

.button-quiet {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button-quiet:hover {
  border-color: var(--brass);
}

.hero-summary {
  justify-self: end;
  width: min(100%, 340px);
  padding: 34px;
  background: rgba(244, 240, 231, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
}

.summary-label {
  margin: 0 0 14px;
  color: #d6bd96;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.summary-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(78px, 8vw, 118px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.summary-unit {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.summary-rule {
  height: 1px;
  margin: 27px 0;
  background: rgba(255, 255, 255, 0.2);
}

.summary-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.summary-pair b {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.hero-foot {
  position: absolute;
  right: clamp(24px, 7vw, 120px);
  bottom: 34px;
  left: clamp(24px, 7vw, 120px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-line {
  height: 1px;
  background: linear-gradient(90deg, var(--brass), rgba(255, 255, 255, 0.12));
}

.section {
  width: min(100% - 48px, 1380px);
  margin-inline: auto;
  padding-block: clamp(90px, 10vw, 160px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  column-gap: clamp(40px, 8vw, 130px);
  align-items: end;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(43px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-intro > p:last-child,
.spaces-heading > p,
.visualizer-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.principles {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 330px;
  padding: 34px clamp(24px, 3vw, 48px) 40px;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
}

.principle-featured {
  color: #f8f2e7;
  background: var(--green);
}

.principle-number {
  display: block;
  margin-bottom: 72px;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 28px;
}

.principle-kicker {
  margin: 0 0 12px;
  color: var(--brass-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principle-featured .principle-kicker {
  color: #d6bd96;
}

.principle h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 35px);
  font-weight: 400;
  line-height: 1.12;
}

.principle p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.principle-featured p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.plan-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1380px) / 2));
  background: var(--paper-deep);
}

.plan-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.plan-heading > div:first-child {
  max-width: 770px;
}

.plan-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.plan-tabs button {
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.plan-tabs button.active {
  color: #fff;
  background: var(--green);
}

.plan-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 620px;
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(38, 31, 22, 0.12);
}

.plan-canvas-shell {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.plan-canvas {
  width: 100%;
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  background-color: #f8f5ee;
  background-image: radial-gradient(#d6cdbc 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}

.plan-zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  overflow: hidden;
  background: rgba(251, 249, 243, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(31, 27, 20, 0.1);
}

.plan-zoom button {
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.plan-zoom button:last-child {
  border-right: 0;
}

.plan-zoom button:hover {
  background: #ece5d8;
}

.plan-detail {
  display: flex;
  flex-direction: column;
  padding: 52px 38px 36px;
}

.plan-detail h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
}

.plan-detail > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.plan-metrics {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.plan-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.plan-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-metrics strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  text-align: right;
}

.plan-key {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 32px;
  color: var(--muted);
  font-size: 11px;
}

.plan-key span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-key i {
  display: inline-block;
  width: 24px;
  height: 7px;
}

.key-shutter {
  background: #d4ad6d;
}

.key-column {
  width: 9px !important;
  height: 9px !important;
  background: var(--green);
}

.key-boundary {
  height: 2px !important;
  background: var(--brass-dark);
}

.spaces-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 60px;
}

.room-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.room-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.room-card:last-child {
  border-right: 0;
}

.room-card:hover,
.room-card.featured {
  color: #fff;
  background: var(--green);
  transform: translateY(-8px);
}

.room-number {
  color: var(--brass-dark);
  font-family: var(--serif);
  font-size: 22px;
}

.room-card:hover .room-number,
.room-card.featured .room-number {
  color: #d6bd96;
}

.room-card-copy {
  display: block;
  margin-top: auto;
}

.room-card-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.room-card-copy small {
  display: block;
  min-height: 44px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.room-card:hover .room-card-copy small,
.room-card.featured .room-card-copy small {
  color: rgba(255, 255, 255, 0.62);
}

.room-area {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 32px;
}

.room-area small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visualizer-section {
  padding: clamp(90px, 10vw, 150px) 0;
  color: #f8f2e7;
  background: var(--night);
}

.visualizer-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  column-gap: clamp(40px, 8vw, 120px);
  align-items: end;
  padding-top: 0;
  padding-bottom: 58px;
}

.visualizer-copy .eyebrow {
  grid-column: 1 / -1;
}

.visualizer-copy > p:last-child {
  color: rgba(255, 255, 255, 0.57);
}

.visualizer-wrap {
  width: min(100% - 48px, 1500px);
  margin: 0 auto;
}

#viz3d {
  position: relative;
  overflow: hidden;
  background: #0e1513;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.viz-stage {
  position: relative;
  height: min(68vw, 760px);
  min-height: 540px;
  overflow: hidden;
  background: #0e1513;
}

#c3d {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#load {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5c08a;
  background: rgba(14, 21, 19, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

#load button {
  min-height: 42px;
  margin-left: 14px;
  padding: 9px 13px;
  color: #f7f2e7;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#load button:focus-visible {
  outline: 2px solid #e5c08a;
  outline-offset: 2px;
}

.spin {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 10px;
  border: 2px solid #e5c08a;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.canvas-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(14, 21, 19, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

#tourOverlay {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  pointer-events: none;
}

#tourOverlay[hidden] {
  display: none;
}

#tourOverlay .tour-progress {
  display: grid;
  gap: 3px;
  padding: 10px 13px;
  background: rgba(12, 18, 16, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

#tourOverlay b {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#tourOverlay span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.tour-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

#tourOverlay button {
  min-height: 42px;
  padding: 9px 15px;
  color: #fff;
  background: rgba(94, 31, 21, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

#tourOverlay button:focus-visible {
  outline: 2px solid #e5c08a;
  outline-offset: 2px;
}

#tourOverlay button:disabled {
  opacity: 0.45;
  cursor: wait;
}

#tourFinish {
  background: rgba(34, 70, 57, 0.88) !important;
}

#viz3d.record-mode {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: block;
  width: 100vw;
  height: 100vh;
  background: #070b0a;
  border: 0;
}

#viz3d.record-mode .viz-stage {
  width: 100vw;
  height: 100vh;
  min-height: 0;
}

#viz3d.record-mode .viz-controls,
#viz3d.record-mode .canvas-hint,
#viz3d.record-mode #load {
  display: none !important;
}

#viz3d.record-mode #c3d {
  cursor: none;
}

#viz3d:fullscreen.record-mode {
  display: block;
  height: 100vh;
}

#viz3d:fullscreen.record-mode .viz-stage {
  height: 100vh;
}

.viz-controls {
  color: var(--ink);
  background: #eee8dc;
}

.readout {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(110px, 0.6fr));
  align-items: center;
  min-height: 70px;
  background: #18211e;
  color: rgba(255, 255, 255, 0.58);
}

.readout > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.readout > span:last-of-type:not(.sr-only) {
  border-right: 0;
}

.readout small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.readout b {
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.readout-mode b {
  color: #d9b77f;
  font-size: 22px;
}

.primary-toolbar {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr 1.1fr;
}

.control-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.control-group:last-child {
  border-right: 0;
}

.control-group-main {
  background: #e4dbc9;
}

.control-label {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary-toolbar button,
.toolbar button,
.toolbar label,
.seg {
  min-height: 37px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid #cfc4b1;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

.primary-toolbar button,
.toolbar button {
  padding: 8px 10px;
  cursor: pointer;
}

.primary-toolbar button:hover,
.toolbar button:hover {
  border-color: var(--brass-dark);
}

.primary-toolbar button.active,
.toolbar button.active,
.seg button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.primary-toolbar button.warn-on,
.toolbar button.warn-on {
  color: #fff;
  background: #934a2d;
  border-color: #934a2d;
}

.primary-toolbar button:disabled,
.toolbar button:disabled {
  opacity: 0.55;
  cursor: wait;
}

#carTestStatus {
  grid-column: 1 / -1;
  min-height: 30px;
  margin: 0;
  padding-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.seg button {
  min-width: 0;
  padding: 7px 5px;
  background: transparent;
  border: 0;
  border-right: 1px solid #cfc4b1;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.seg button:last-child {
  border-right: 0;
}

.engineering-controls {
  border-top: 1px solid var(--line);
}

.dimensions-controls {
  border-top: 1px solid var(--line);
}

.dimensions-controls summary {
  padding: 13px 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.dimensions-controls[open] summary {
  color: var(--brass-dark);
  background: #e6dece;
}

.dimensions {
  display: grid;
  gap: 10px;
  padding: 12px 16px 16px;
  background: #e6dece;
}

.dim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.dim-grid label {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dim-grid input {
  width: 100%;
  min-height: 37px;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid #cfc4b1;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}

.dim-grid input:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 1px;
}

.dim-actions {
  display: flex;
  gap: 7px;
}

.dim-actions button {
  flex: 1;
  min-height: 37px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid #cfc4b1;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.dim-actions button:hover {
  border-color: var(--brass-dark);
}

.dim-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

#dimApply {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.dim-preview {
  min-height: 20px;
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.dim-row {
  display: grid;
  gap: 6px;
}

.dim-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dim-seg {
  min-height: 37px;
}

.dim-seg button.active {
  color: #fff;
  background: var(--green);
}

.dim-link {
  padding: 4px 10px;
  color: var(--brass-dark);
  background: transparent;
  border: 1px solid #cfc4b1;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.dim-link:hover {
  border-color: var(--brass-dark);
}

.dim-sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 7px;
}

.dim-sizes label {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
}

.dim-sizes input {
  width: 100%;
  min-height: 37px;
  padding: 7px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid #cfc4b1;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}

.dim-sizes input:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 1px;
}

.dim-hint {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .dim-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.engineering-controls summary {
  padding: 13px 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.engineering-controls[open] summary {
  color: var(--brass-dark);
  background: #e6dece;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 12px 16px 16px;
  background: #e6dece;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}

.toolbar input[type="range"] {
  width: 110px;
  accent-color: var(--brass-dark);
}

.facade-picker {
  flex: 1 1 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid #cfc4b1;
  border-radius: 4px;
}

.facade-picker .control-label {
  margin: 0;
}

.facade-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.facade-options button {
  min-height: 58px;
  padding: 9px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #cfc4b1;
  border-radius: 3px;
  text-align: left;
  cursor: pointer;
}

.facade-options button:hover {
  border-color: var(--brass-dark);
}

.facade-options button:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 2px;
}

.facade-options button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 3px 0 0 #d2ad77;
}

.facade-options b,
.facade-options small {
  display: block;
}

.facade-options b {
  font-size: 11px;
}

.facade-options small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.facade-options button.active small {
  color: #dce6df;
}

#facadeStatus {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .facade-options {
    grid-template-columns: 1fr;
  }

  .facade-options button {
    min-height: 52px;
  }
}

#viz3d:fullscreen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  height: 100vh;
  border: 0;
}

#viz3d:fullscreen .viz-stage {
  height: 100vh;
  min-height: 0;
}

#viz3d:fullscreen .viz-controls {
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid #3a403d;
}

#viz3d:fullscreen .readout {
  grid-template-columns: 1fr 1fr;
  position: sticky;
  top: 0;
  z-index: 3;
}

#viz3d:fullscreen .readout > span {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#viz3d:fullscreen .primary-toolbar {
  grid-template-columns: 1fr;
}

#viz3d:fullscreen .control-group {
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

#viz3d:fullscreen .engineering-controls summary {
  text-align: left;
}

.future {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1380px) / 2));
  color: #f7f2e7;
  background: var(--green);
}

.future-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(60px, 10vw, 150px);
}

.future .eyebrow {
  color: #d2ad77;
}

.future-timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.future-timeline article {
  display: grid;
  grid-template-columns: 70px minmax(180px, 0.8fr) minmax(220px, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.future-timeline span {
  color: #d2ad77;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.future-timeline h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.future-timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.65;
}

.decisions-heading {
  max-width: 900px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 62px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.decision-card {
  min-height: 240px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-card span {
  display: inline-block;
  padding: 5px 8px;
  color: var(--brass-dark);
  background: rgba(181, 138, 80, 0.13);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.decision-card.open span {
  color: var(--green);
  background: rgba(38, 60, 53, 0.1);
}

.decision-card h3 {
  margin: 38px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.14;
}

.decision-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.technical {
  padding-top: 0;
}

.technical-drawer {
  color: #f7f2e7;
  background: var(--ink);
}

.technical-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 38px;
  list-style: none;
  cursor: pointer;
}

.technical-drawer > summary::-webkit-details-marker {
  display: none;
}

.technical-drawer > summary span {
  font-family: var(--serif);
  font-size: 27px;
}

.technical-drawer > summary small {
  display: block;
  margin-bottom: 8px;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.technical-drawer > summary b {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.technical-drawer[open] > summary b::after {
  content: " less";
}

.technical-content {
  padding: 10px 38px 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.technical-content > div:first-child {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
  padding: 36px 0;
}

.technical-content h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.technical-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.comparison {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.comparison > div {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
}

.comparison > div > * {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  font-size: 12px;
  line-height: 1.5;
}

.comparison-head {
  color: #d6bd96;
}

.technical-content blockquote {
  margin: 34px 0 0;
  padding: 24px 28px;
  color: rgba(255, 255, 255, 0.65);
  border-left: 3px solid var(--brass);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px clamp(24px, 5vw, 80px);
  color: rgba(255, 255, 255, 0.5);
  background: var(--night);
  font-size: 11px;
}

footer strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

footer small {
  text-align: right;
}

.asset-credits {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.58);
}

.asset-credits summary {
  width: max-content;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.asset-credits span {
  display: block;
  max-width: 900px;
  margin-top: 8px;
  line-height: 1.6;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.presentation-mode {
  scroll-snap-type: y proximity;
}

.presentation-mode .site-nav {
  opacity: 0;
  pointer-events: none;
}

.presentation-mode [data-slide] {
  min-height: 100vh;
  scroll-snap-align: start;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr 290px;
  }

  .plan-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .room-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .room-card:nth-child(3) {
    border-right: 0;
  }

  .room-card:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .primary-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .control-group:nth-child(2) {
    border-right: 0;
  }

  .control-group:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .future-timeline article {
    grid-template-columns: 60px 1fr;
  }

  .future-timeline p {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .brand-name {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 55px;
    padding-top: 116px;
  }

  .hero h1 {
    font-size: clamp(60px, 17vw, 110px);
  }

  .hero-summary {
    justify-self: start;
  }

  .section-intro,
  .spaces-heading,
  .visualizer-copy,
  .future-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle-number {
    margin-bottom: 44px;
  }

  .plan-heading {
    align-items: start;
    flex-direction: column;
  }

  .plan-workspace {
    grid-template-columns: 1fr;
  }

  .plan-canvas-shell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .plan-canvas,
  .plan-workspace {
    min-height: 520px;
  }

  .plan-canvas-shell {
    min-height: 520px;
  }

  .plan-detail {
    min-height: 400px;
  }

  .room-cards {
    grid-template-columns: 1fr 1fr;
  }

  .room-card:nth-child(n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .room-card:nth-child(even) {
    border-right: 0;
  }

  .viz-stage {
    height: 64vh;
    min-height: 470px;
  }

  .readout {
    grid-template-columns: 1fr 1fr;
  }

  .decision-grid {
    grid-template-columns: 1fr 1fr;
  }

  .technical-content > div:first-child {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #viz3d:fullscreen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 62vh) minmax(0, 38vh);
  }

  #viz3d:fullscreen .viz-stage {
    height: auto;
  }

  #viz3d:fullscreen .viz-controls {
    height: auto;
    border-top: 1px solid #3a403d;
    border-left: 0;
  }

  #viz3d:fullscreen .primary-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-nav {
    min-height: 64px;
    padding: 10px 16px;
  }

  .present-button {
    min-width: 86px;
    padding-inline: 13px;
    font-size: 10px;
  }

  .hero {
    min-height: 900px;
    padding: 105px 20px 74px;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 84px);
    line-height: 0.84;
  }

  .hero-lead {
    margin-top: 34px;
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-summary {
    padding: 26px;
  }

  .hero-foot {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .hero-foot span:first-child,
  .hero-foot span:last-child {
    display: none;
  }

  .section {
    width: min(100% - 32px, 1380px);
    padding-block: 84px;
  }

  .section h2 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .plan-section,
  .future {
    width: 100%;
    padding-inline: 16px;
  }

  .plan-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 12px;
  }

  .plan-tabs button {
    border-radius: 8px;
  }

  .plan-tabs button:last-child {
    grid-column: 1 / -1;
  }

  .plan-canvas,
  .plan-canvas-shell {
    min-height: 440px;
  }

  .plan-workspace {
    min-height: 440px;
    margin-top: 28px;
  }

  .plan-detail {
    min-height: 410px;
    padding: 38px 25px 28px;
  }

  .room-cards {
    grid-template-columns: 1fr;
  }

  .room-card {
    min-height: 230px;
  }

  .room-card:nth-child(n) {
    border-right: 0;
  }

  .visualizer-wrap {
    width: calc(100% - 20px);
  }

  .viz-stage {
    height: 520px;
    min-height: 0;
  }

  .canvas-hint {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }

  .readout {
    grid-template-columns: 1fr 1fr;
  }

  .readout > span {
    padding: 12px;
  }

  .primary-toolbar,
  #viz3d:fullscreen .primary-toolbar {
    grid-template-columns: 1fr;
  }

  .control-group:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-card {
    min-height: 210px;
  }

  .future-timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .future-timeline p {
    grid-column: auto;
  }

  .technical-drawer > summary {
    padding: 24px;
  }

  .technical-drawer > summary span {
    font-size: 22px;
  }

  .technical-drawer > summary b {
    display: none;
  }

  .technical-content {
    padding: 8px 22px 30px;
  }

  .comparison > div {
    grid-template-columns: 1fr;
  }

  .comparison-head span {
    display: none;
  }

  .comparison > div > * {
    padding: 14px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer small {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-nav,
  .scroll-progress,
  .hero-actions,
  .plan-zoom,
  .viz-controls,
  .canvas-hint {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding: 70px 50px;
    break-after: page;
  }

  .section,
  .visualizer-section {
    padding-block: 50px;
    break-inside: avoid;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .visualizer-section {
    background: #fff;
  }

  .visualizer-copy {
    color: var(--ink);
  }

  .viz-stage {
    height: 500px;
    min-height: 0;
  }
}
