:root {
  color-scheme: light;

  --canvas: #ffffff;
  --canvas-deep: #f4f2ec;
  --surface: #faf9f6;
  --white: #ffffff;
  --ink: #151713;
  --ink-soft: #3e433d;
  --muted: #646a63;
  --line: #e3e1da;
  --line-strong: #c8cbc4;
  --mineral: #1b5246;
  --mineral-dark: #143f36;
  --mineral-soft: #e2ece8;
  --plan-line: #9bb5ae;
  --error: #913f36;
  --error-soft: #f3e0dd;

  --font-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --shadow-raised: 0 1px 2px rgb(24 26 23 / 3%), 0 10px 28px rgb(24 26 23 / 5%);
  --shadow-float: 0 2px 6px rgb(24 26 23 / 4%), 0 22px 60px rgb(24 26 23 / 10%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --section-space: clamp(4.5rem, 6.4vw, 6.75rem);
  --radius-control: 4px;
  --radius-media: 6px;
  --radius-shell: 8px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

fieldset {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(100%, 90rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--mineral);
  outline-offset: 3px;
}

.visually-hidden,
.sr-status {
  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;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  color: var(--mineral);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow-light {
  color: #c9ddd6;
}

.button,
.text-link,
.text-button {
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-control);
  font-size: 0.86rem;
  font-weight: 680;
  letter-spacing: 0.02em;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button {
  display: inline-flex;
  padding: 0.85rem 1.35rem;
}

.button svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 180ms ease;
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  background: var(--mineral);
  color: var(--white);
}

.button-primary:hover {
  background: var(--mineral-dark);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--mineral);
  background: var(--mineral-soft);
}

.button-light {
  background: var(--canvas);
  color: var(--mineral-dark);
}

.button-light:hover {
  background: var(--white);
}

.text-link,
.text-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.35rem;
}

.text-link:hover,
.text-button:hover {
  color: var(--mineral);
  text-decoration-color: currentColor;
}

.text-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.button-reset {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.62rem;
  letter-spacing: 0;
}

.brand-name {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 670;
  font-kerning: normal;
  letter-spacing: -0.042em;
  line-height: 1;
}

.brand-fast {
  color: var(--mineral);
}

.wordmark-small {
  min-height: 0;
  gap: 0.5rem;
}

.wordmark-small .brand-name {
  font-size: 1rem;
}

.trade-window .brand-name {
  color: var(--white);
}

.trade-window .brand-fast {
  color: #9bc4b8;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding-inline: 1rem;
  border-radius: var(--radius-control);
  background: var(--mineral);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 680;
}

.header-cta:hover {
  background: var(--mineral-dark);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgb(24 26 23 / 5%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.desktop-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 610;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: var(--mineral);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 0.3rem;
}

.icon-button,
.saved-button,
.menu-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
}

.icon-button:hover,
.saved-button:hover,
.menu-button:hover {
  background: var(--mineral-soft);
}

.icon-button svg,
.saved-button svg,
.menu-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.saved-button {
  gap: 0.35rem;
  padding-inline: 0.65rem;
  font-size: 0.78rem;
  font-weight: 620;
}

.tool-count {
  display: grid;
  min-width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--mineral);
  color: var(--white);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.icon-button .tool-count {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}

.nav-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  background: rgb(24 26 23 / 34%);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  z-index: 210;
  top: 0;
  right: 0;
  display: flex;
  width: min(90vw, 32rem);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  box-shadow: -20px 0 80px rgb(24 26 23 / 12%);
  transform: translateX(104%);
  transition: transform 260ms var(--ease-out);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-links {
  display: grid;
  margin-top: 2.4rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6vw, 2.1rem);
}

.mobile-nav-links span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.mobile-nav-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 2rem;
}

.mobile-nav-tools button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  font-size: 0.82rem;
}

.mobile-nav > p {
  max-width: 20rem;
  margin-top: auto;
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 3.8vw, 4rem) 0 1.5rem;
}

.hero::before {
  content: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
}

.hero-copy {
  padding-block: 1rem;
}

.hero h1 {
  max-width: 7.8em;
  margin-bottom: 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 5.5vw, 6rem);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.hero-lead {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-note svg {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0.18rem;
  border-radius: 50%;
  background: var(--mineral-soft);
  color: var(--mineral);
  stroke-width: 2;
}

.hero-media {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--canvas-deep);
}

.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-annotation {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgb(255 255 255 / 46%);
  border-radius: 4px;
  background: rgb(252 251 248 / 90%);
  color: var(--ink);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(10px);
}

.annotation-top {
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.68rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.annotation-dot,
.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: none;
  border-radius: 50%;
  background: var(--mineral);
  box-shadow: 0 0 0 4px rgb(32 89 77 / 12%);
}

.annotation-bottom {
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
}

.annotation-line {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

.hero-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-index span {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Reusable section intro */

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(18rem, 4fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(2.25rem, 3.5vw, 3.5rem);
}

.section-intro h2,
.room-copy h2,
.project-copy h2,
.delivery-copy h2,
.trade-copy h2,
.faq-heading h2,
.closing-inner h2 {
  max-width: 12em;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 3.75vw, 4.05rem);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section-intro > p,
.room-copy > p,
.project-copy > p,
.delivery-copy > p,
.trade-copy > p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Builder */

.builder-section {
  padding-block: clamp(4.5rem, 7vw, 7rem);
  background: linear-gradient(180deg, #f6f3ed 0%, var(--surface) 100%);
}

.builder-section .section-intro {
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.builder-shell {
  position: relative;
  width: min(calc(100% - (var(--gutter) * 2)), calc(90rem - (var(--gutter) * 2)));
  padding-inline: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-shell);
  background: var(--surface);
  box-shadow: 0 16px 48px rgb(21 23 19 / 6%);
}

#property-planner {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.builder-progress {
  padding: 0.9rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.progress-line {
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.progress-line span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--mineral);
  transition: width 320ms var(--ease-out);
}

.builder-progress ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.builder-progress li {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 620;
}

.builder-progress li span {
  margin-right: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.builder-progress li[aria-current="step"] {
  color: var(--mineral);
}

.builder-form {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(19rem, 4fr);
}

.builder-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: clamp(1.4rem, 2.5vw, 2.1rem);
}

.builder-step {
  margin: 0;
  padding: 0;
  border: 0;
}

.builder-step legend {
  display: block;
  width: 100%;
  max-width: 16em;
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.5vw, 2.55rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.05;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.builder-step legend:focus-visible {
  padding-left: 0.65rem;
  border-left: 3px solid var(--mineral);
  outline: 0;
}

.step-kicker {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--mineral);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.step-description {
  max-width: 40rem;
  margin: -1rem 0 2rem;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  gap: 0.75rem;
}

.choice-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card,
.style-card {
  position: relative;
  cursor: pointer;
}

.choice-card input,
.style-card input,
.segmented-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-card {
  display: grid;
  min-height: 6.75rem;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto 1fr;
  gap: 0.5rem 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 220ms var(--ease-out);
}

.choice-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.choice-card:has(input:checked) {
  border-color: var(--mineral);
  background: var(--mineral-soft);
}

.choice-card:has(input:focus-visible),
.style-card:has(input:focus-visible),
.segmented-options label:has(input:focus-visible) {
  outline: 3px solid var(--mineral);
  outline-offset: 3px;
}

.choice-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 6px;
  background: var(--canvas);
  color: var(--mineral);
}

.choice-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.choice-title {
  align-self: center;
  font-size: 1rem;
  font-weight: 680;
}

.choice-copy {
  grid-column: 1 / 4;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.bedroom-question {
  display: grid;
  grid-template-columns: minmax(9rem, 0.6fr) minmax(20rem, 1.4fr);
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.bedroom-question > p {
  margin: 0;
  font-weight: 680;
}

.bedroom-guidance {
  grid-column: 2;
  margin-top: -0.85rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.choice-check {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  align-self: start;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: transparent;
  font-size: 0.72rem;
}

input:checked ~ .choice-check,
.choice-card:has(input:checked) .choice-check,
.style-card:has(input:checked) .choice-check {
  border-color: var(--mineral);
  background: var(--mineral);
  color: var(--white);
}

.segmented-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 38rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.segmented-options label {
  position: relative;
  cursor: pointer;
}

.segmented-options label:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.38;
}

.segmented-options span {
  display: grid;
  min-height: 52px;
  place-items: center;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 670;
}

.segmented-options input:checked + span {
  background: var(--mineral);
  color: var(--white);
}

.room-plan {
  position: relative;
  display: grid;
  max-width: 42rem;
  min-height: 17rem;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 1.1rem 1.5rem 1.5rem 1.8rem;
  border: 1px solid var(--line);
  background-color: var(--surface);
  background-image:
    linear-gradient(rgb(155 181 174 / 10%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(155 181 174 / 10%) 1px, transparent 1px);
  background-size: 24px 24px;
}

.plan-room {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--plan-line);
  color: var(--mineral);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-living {
  grid-row: 1 / 3;
}

.plan-bedroom::after {
  position: absolute;
  right: -1px;
  bottom: 20%;
  width: 1rem;
  height: 2rem;
  border-top: 1px solid var(--mineral);
  border-left: 1px solid var(--mineral);
  border-radius: 100% 0 0;
  content: "";
}

.plan-dim {
  position: absolute;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
}

.plan-dim-x {
  right: 20%;
  bottom: 0.25rem;
}

.plan-dim-y {
  top: 50%;
  left: 0.3rem;
  transform: rotate(-90deg);
}

.style-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.style-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.style-card:has(input:checked) {
  border-color: var(--mineral);
  box-shadow: 0 0 0 1px var(--mineral);
}

.style-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.style-meta {
  display: grid;
  min-height: 5rem;
  align-content: center;
  padding: 0.9rem 2.5rem 0.9rem 0.9rem;
}

.style-meta strong {
  font-size: 0.86rem;
}

.style-meta small {
  color: var(--muted);
  font-size: 0.68rem;
}

.style-card .choice-check {
  position: absolute;
  right: 0.8rem;
  bottom: 1.8rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.field > label {
  font-size: 0.82rem;
  font-weight: 670;
}

.field input,
.field select,
.search-modal > input {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.search-modal > input:focus {
  border-color: var(--mineral);
  outline: 3px solid rgb(32 89 77 / 17%);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-soft);
}

.field small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.field .field-error {
  color: var(--error);
  font-weight: 600;
}

.timing-note {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--canvas);
}

.timing-note svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--mineral);
}

.timing-note div {
  display: grid;
  gap: 0.2rem;
}

.timing-note strong {
  font-size: 0.82rem;
}

.timing-note span {
  color: var(--muted);
  font-size: 0.74rem;
}

.builder-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.builder-controls .button-primary {
  margin-left: auto;
}

.builder-summary {
  display: block;
  border-left: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.summary-image {
  position: relative;
  overflow: hidden;
  height: 7.5rem;
  min-height: 0;
  aspect-ratio: auto;
}

.summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.summary-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
  color: var(--mineral);
  font-size: 0.7rem;
  font-weight: 640;
}

.summary-status .status-dot {
  background: var(--mineral);
  box-shadow: 0 0 0 4px rgb(27 82 70 / 12%);
}

.summary-content {
  display: block;
  padding: 1rem 1.25rem 1.15rem;
}

.summary-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 0.75rem;
}

.summary-code {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0.25rem;
  color: var(--mineral);
}

.summary-content h3 {
  grid-column: 1 / -1;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.25vw, 2.25rem);
  font-weight: 450;
  letter-spacing: -0.03em;
}

.summary-match {
  grid-column: 1 / -1;
  min-height: 0;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-reason {
  grid-column: 1 / -1;
  margin: -0.2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--plan-line);
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.45;
}

.summary-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-facts div {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem;
  border-right: 1px solid var(--line);
}

.summary-facts div:first-child {
  padding-left: 0;
}

.summary-facts div:last-child {
  border-right: 0;
}

.summary-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.summary-facts dd {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  text-align: left;
}

.summary-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.summary-scope > span {
  display: grid;
  gap: 0.05rem;
  padding: 0.6rem 0.5rem;
  border-right: 1px solid var(--line);
}

.summary-scope > span:first-child {
  padding-left: 0;
}

.summary-scope > span:last-child {
  border-right: 0;
}

.summary-scope strong {
  font-size: 0.82rem;
}

.summary-scope small {
  color: var(--muted);
  font-size: 0.625rem;
}

.summary-price {
  display: grid;
  margin-top: 0.65rem;
}

.summary-price > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.summary-price strong {
  font-size: clamp(1.8rem, 2.35vw, 2.25rem);
  font-weight: 570;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.summary-price small {
  color: var(--muted);
  font-size: 0.68rem;
}

.summary-disclaimer {
  margin: 0.45rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.summary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.summary-actions .button {
  min-height: 44px;
  padding: 0.7rem 1rem;
}

.summary-actions .button-primary {
  background: var(--mineral);
  color: var(--white);
}

.summary-actions .button-primary:hover {
  background: var(--mineral-dark);
}

.summary-actions .text-button {
  color: var(--ink-soft);
}

/* Capabilities */

.capability-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.capability-strip > .shell {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-item {
  position: relative;
  display: grid;
  min-height: 8.5rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem clamp(1rem, 2vw, 1.7rem);
  border-right: 1px solid var(--line);
}

.capability-item:last-child {
  border-right: 0;
}

.capability-item > .mono {
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  color: var(--muted);
  font-size: 0.625rem;
}

.capability-item > svg {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.55rem;
  border-radius: 6px;
  background: var(--mineral-soft);
  color: var(--mineral);
}

.capability-item p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.capability-item strong {
  font-size: 0.82rem;
}

.capability-item p span {
  color: var(--muted);
  font-size: 0.7rem;
}

/* Packages */

.packages-section {
  padding-block: var(--section-space);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.package-tier-rail {
  display: contents;
}

.package-card {
  min-width: 0;
}

.package-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.15rem;
  border-radius: var(--radius-media);
  background: var(--canvas-deep);
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease-out);
}

.package-card:hover .package-image img {
  transform: scale(1.018);
}

.package-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.45rem 0.6rem;
  border-radius: 3px;
  background: rgb(252 251 248 / 92%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.save-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 50%;
  background: rgb(252 251 248 / 90%);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.save-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.save-icon.is-saved {
  background: var(--mineral);
  color: var(--white);
}

.save-icon.is-saved svg {
  fill: currentColor;
}

.package-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.package-card h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  font-weight: 450;
  letter-spacing: -0.035em;
}

.package-card > p {
  min-height: 3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.package-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  border-block: 1px solid var(--line);
}

.package-data-grid > span {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
  padding: 0.75rem 0.6rem;
  border-right: 1px solid var(--line);
}

.package-data-grid > span:first-child {
  padding-left: 0;
}

.package-data-grid > span:last-child {
  border-right: 0;
}

.package-data-grid strong {
  color: var(--mineral-dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

.package-data-grid small {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.3;
}

.package-facts {
  margin: 0.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.package-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}

.package-facts span {
  color: var(--muted);
}

.package-facts strong {
  text-align: right;
}

.package-price {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 0.6rem;
  margin-block: 1.1rem;
}

.package-price > span {
  align-self: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.package-price strong {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.package-price small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.65rem;
}

.package-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem 0.8rem;
}

.package-actions > .button {
  grid-column: 1 / -1;
}

.package-spec-link {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  color: var(--mineral);
  font-size: 0.72rem;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: var(--plan-line);
  text-underline-offset: 0.3rem;
}

.package-spec-link:hover {
  color: var(--mineral-dark);
}

.compare-control {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 620;
}

.compare-control input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--mineral);
}

.prototype-price-note {
  max-width: 52rem;
  margin-top: 2.5rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.custom-package {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 7fr) minmax(24rem, 5fr);
  margin-top: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--surface);
}

.custom-plan {
  position: relative;
  display: grid;
  min-height: 26rem;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.7rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  background-color: #edf1ed;
  background-image:
    linear-gradient(rgb(27 82 70 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(27 82 70 / 8%) 1px, transparent 1px);
  background-size: 24px 24px;
}

.custom-plan-room {
  position: relative;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1.2rem;
  border: 1px dashed var(--line-strong);
  background: rgb(255 255 255 / 55%);
  color: var(--muted);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 240ms var(--ease-out);
}

button.custom-plan-room {
  width: 100%;
  border-radius: 0;
  font: inherit;
  text-align: left;
}

button.custom-plan-room:focus-visible {
  z-index: 2;
  outline: 3px solid var(--mineral);
  outline-offset: 2px;
}

.custom-plan-room::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 1.1rem;
  height: 2.2rem;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  border-radius: 100% 0 0;
  content: "";
  opacity: 0.55;
}

.custom-plan-room.is-selected {
  border-style: solid;
  border-color: var(--mineral);
  background: rgb(255 255 255 / 92%);
  color: var(--mineral-dark);
  transform: translateY(-2px);
}

.custom-plan-room:hover {
  border-color: var(--mineral);
  background: rgb(255 255 255 / 82%);
  color: var(--mineral-dark);
}

.custom-plan-room span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.custom-plan-room small {
  font-size: 0.66rem;
}

.custom-plan-readout {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-raised);
  color: var(--mineral);
}

.custom-package-content {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.custom-package-content h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 3.25vw, 3.55rem);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.custom-package-content > p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.custom-room-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 1.25rem 0;
  border: 0;
  border-block: 1px solid var(--line);
}

.custom-room-picker legend {
  width: 100%;
  margin-bottom: 0.65rem;
  font-size: 0.7rem;
  font-weight: 680;
}

.custom-room-picker label {
  position: relative;
  cursor: pointer;
}

.custom-room-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-room-picker span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding-inline: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.custom-room-picker input:checked + span {
  border-color: var(--mineral);
  background: var(--mineral-soft);
  color: var(--mineral-dark);
}

.custom-room-picker label:has(input:focus-visible) {
  outline: 3px solid var(--mineral);
  outline-offset: 3px;
}

.custom-scope-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  border-block: 1px solid var(--line);
}

.custom-scope-summary > span {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
  padding: 0.75rem 0.7rem;
  border-right: 1px solid var(--line);
}

.custom-scope-summary > span:first-child {
  padding-left: 0;
}

.custom-scope-summary > span:last-child {
  border-right: 0;
}

.custom-scope-summary small {
  color: var(--muted);
  font-size: 0.625rem;
}

.custom-scope-summary strong {
  overflow-wrap: anywhere;
  font-size: 0.75rem;
}

.custom-scope-error {
  margin: 0.75rem 0 0;
  color: var(--error);
  font-size: 0.72rem;
  font-weight: 650;
}

.custom-package-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.custom-package-footer p {
  display: grid;
  gap: 0.15rem;
  margin: 0;
}

.custom-package-footer p span {
  color: var(--muted);
  font-size: 0.66rem;
}

.custom-package-footer p strong {
  font-size: 0.8rem;
}

.custom-package-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Room explorer */

.room-section {
  padding-block: var(--section-space);
  background: var(--canvas-deep);
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}

.room-copy h2 {
  margin-bottom: 1.5rem;
}

.room-detail {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.room-detail > .mono {
  color: var(--mineral);
}

.room-detail h3 {
  margin: 0.55rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 450;
}

.room-detail > p {
  color: var(--muted);
  font-size: 0.82rem;
}

.room-detail dl {
  margin: 1.5rem 0 0;
}

.room-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

.room-detail dt {
  color: var(--muted);
}

.room-detail dd {
  margin: 0;
  font-weight: 650;
}

.room-experience {
  min-width: 0;
}

.room-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-media);
  background: #dfe3df;
  contain: layout paint;
  view-transition-name: room-stage;
}

.room-wide-scene,
.room-product-scene {
  position: absolute;
  inset: 0;
}

.room-wide-scene {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 320ms ease,
    transform 560ms var(--ease-out);
}

.room-wide-scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-product-scene {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(17rem, 5fr);
  opacity: 0;
  pointer-events: none;
  transform: translateX(4%);
  transition:
    opacity 300ms ease,
    transform 560ms var(--ease-out);
}

.room-visual.is-product-view .room-wide-scene {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4%);
}

.room-visual.is-product-view .room-product-scene {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.room-product-image {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 32% 24%, rgb(255 255 255 / 92%), transparent 40%),
    #ecece6;
}

.room-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  view-transition-name: room-product-image;
}

.room-product-image > .mono {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgb(21 23 19 / 10%);
  background: rgb(255 255 255 / 84%);
  color: var(--muted);
  font-size: 0.625rem;
  backdrop-filter: blur(8px);
}

.room-product-dock {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--mineral-dark);
  color: var(--white);
}

.room-product-dock > .mono {
  margin-bottom: 0.75rem;
  color: #a9c4bb;
  font-size: 0.625rem;
}

.room-product-dock h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.room-product-dock > p:not(.mono) {
  margin-bottom: 1rem;
  color: #c7d5d0;
  font-size: 0.76rem;
}

.room-product-dock dl {
  margin: 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.room-product-dock dl div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  font-size: 0.68rem;
}

.room-product-dock dt {
  color: #9eb5ad;
}

.room-product-dock dd {
  margin: 0;
  font-weight: 650;
}

.room-product-actions {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.room-product-actions .button {
  min-height: 44px;
  background: var(--white);
  color: var(--mineral-dark);
}

.room-product-actions .text-button {
  width: fit-content;
  color: var(--white);
  text-decoration-color: rgb(255 255 255 / 34%);
}

.hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--mineral);
  border-radius: 50%;
  background: rgb(252 251 248 / 92%);
  color: var(--mineral);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  box-shadow: 0 5px 18px rgb(24 26 23 / 15%);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
  transition:
    opacity 220ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.hotspot::after {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(32 89 77 / 30%);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 160ms ease,
    transform 220ms var(--ease-out);
}

.hotspot:hover::after,
.hotspot.is-active::after {
  opacity: 1;
  transform: scale(1);
}

.hotspot.is-active {
  background: var(--mineral);
  color: var(--white);
}

.room-view-control {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 4px;
  background: rgb(255 255 255 / 92%);
  color: var(--ink);
  box-shadow: var(--shadow-raised);
  transition: background-color 180ms ease;
}

.room-visual:not(.is-product-view) .room-view-control button {
  visibility: hidden;
}

.room-visual.is-product-view .room-view-control {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(20 63 54 / 92%);
  color: var(--white);
}

.room-visual.is-product-view .room-view-control button {
  border-color: rgb(255 255 255 / 26%);
  background: transparent;
  color: var(--white);
}

.room-view-control button {
  min-height: 44px;
  padding-inline: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  font-size: 0.65rem;
  font-weight: 650;
}

.room-product-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--white);
}

.room-product-rail button {
  display: grid;
  min-height: 72px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.room-product-rail button:last-child {
  border-right: 0;
}

.room-product-rail button.is-active {
  background: var(--mineral-soft);
  color: var(--mineral-dark);
}

.room-product-rail span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
}

.room-product-rail strong {
  font-size: 0.7rem;
}

.room-concept-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.room-scale {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  width: 8rem;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--white);
  color: var(--white);
  text-shadow: 0 1px 4px rgb(0 0 0 / 40%);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.01ms;
}

::view-transition-group(room-stage) {
  animation-duration: 520ms;
  animation-timing-function: var(--ease-out);
}

::view-transition-old(room-product-image) {
  animation: room-product-out 220ms ease both;
}

::view-transition-new(room-product-image) {
  animation: room-product-in 420ms var(--ease-out) both;
}

@keyframes room-product-out {
  to {
    opacity: 0;
    transform: translateX(-2%);
  }
}

@keyframes room-product-in {
  from {
    opacity: 0;
    transform: translateX(3%);
  }
}

/* Process */

.process-section {
  padding-block: var(--section-space);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
}

.process-card {
  position: relative;
  min-height: 11.5rem;
  padding: 1.25rem;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line);
}

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

.process-number {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.process-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin: 1.45rem 0 1rem;
  place-items: center;
  border-radius: 6px;
  background: var(--mineral-soft);
  color: var(--mineral);
}

.process-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.process-card h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 450;
}

.process-card p {
  max-width: 16rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

/* Project */

.project-section {
  padding-block: var(--section-space);
  background: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(19rem, 4fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-media);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-label,
.project-coordinate {
  position: absolute;
  border-radius: 4px;
  background: rgb(252 251 248 / 90%);
  backdrop-filter: blur(8px);
}

.project-label {
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 650;
}

.project-coordinate {
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  font-size: 0.625rem;
  line-height: 1.5;
}

.project-copy h2 {
  margin-bottom: 1.5rem;
}

.project-facts {
  margin: 2.2rem 0 1.2rem;
}

.project-facts div {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.project-facts div:last-child {
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  color: var(--muted);
}

.project-facts dd {
  margin: 0;
  font-weight: 650;
}

/* Delivery and trade */

.delivery-section {
  padding-block: var(--section-space);
  background: var(--mineral-dark);
  color: var(--canvas);
}

.delivery-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
}

.delivery-copy h2 {
  margin-bottom: 1.5rem;
}

.delivery-copy > p {
  margin-bottom: 2rem;
  color: #bfd0c9;
}

.coverage-checker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.coverage-checker > div {
  display: grid;
  gap: 0.4rem;
}

.coverage-checker label {
  color: #cbd9d4;
  font-size: 0.7rem;
  font-weight: 650;
}

.coverage-checker input,
.coverage-checker select {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 5px;
  background: rgb(255 255 255 / 96%);
  color: var(--ink);
  font-size: 0.9rem;
}

.coverage-checker input:focus,
.coverage-checker select:focus {
  outline: 3px solid #9bc4b8;
  outline-offset: 2px;
}

.coverage-checker input[aria-invalid="true"] {
  border-color: #ffd1ca;
  background: #fff1ef;
}

.coverage-checker .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.coverage-result {
  grid-column: 1 / -1;
  min-height: 3.2rem;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid rgb(255 255 255 / 18%);
  color: #d8e3df;
  font-size: 0.72rem;
}

.delivery-steps {
  counter-reset: delivery;
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.delivery-steps article {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.4fr;
  align-items: start;
  gap: 1.5rem;
  padding-block: 1.7rem;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.delivery-steps .mono {
  color: #98b8ae;
  font-size: 0.625rem;
}

.delivery-steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 450;
}

.delivery-steps p {
  margin: 0;
  color: #bfd0c9;
  font-size: 0.75rem;
}

.trade-section {
  padding-block: var(--section-space);
}

.trade-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 26rem;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  overflow: hidden;
  border-radius: var(--radius-shell);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: min(calc(100% - (var(--gutter) * 2)), calc(90rem - (var(--gutter) * 2)));
  padding-inline: 0;
}

.trade-copy {
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2.5rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5rem);
}

.trade-copy h2 {
  margin-bottom: 1.5rem;
}

.trade-copy > p {
  margin-bottom: 2rem;
  color: var(--muted);
}

.trade-preview {
  align-self: stretch;
  padding: clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem) 0;
}

.trade-window {
  height: 100%;
  min-height: 20rem;
  padding: 1.4rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-media);
  background: #232622;
  color: var(--white);
  box-shadow: 0 18px 48px rgb(0 0 0 / 20%);
}

.trade-window-head,
.trade-window-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.trade-window-head .mono {
  color: #93a39c;
  font-size: 0.625rem;
}

.trade-window-project {
  justify-content: start;
  padding-block: 1.4rem;
}

.project-avatar {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
  place-items: center;
  border-radius: 5px;
  background: var(--mineral);
  font-size: 0.75rem;
  font-weight: 700;
}

.trade-window-project div {
  display: grid;
}

.trade-window-project strong {
  font-size: 0.8rem;
}

.trade-window-project small {
  color: #8f958f;
  font-size: 0.65rem;
}

.status-chip {
  margin-left: auto;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  background: var(--mineral-soft);
  color: var(--mineral-dark);
  font-size: 0.6rem;
  font-weight: 700;
}

.trade-window-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.6rem 1rem;
  padding-block: 1.5rem;
  font-size: 0.68rem;
}

.trade-window-grid span {
  color: #858c86;
}

.trade-window-grid strong {
  font-weight: 620;
}

.trade-progress {
  height: 3px;
  margin: 1rem 0;
  overflow: hidden;
  background: rgb(255 255 255 / 12%);
}

.trade-progress span {
  display: block;
  height: 100%;
  background: #8fc1b3;
}

.trade-window > small {
  color: #a8b0aa;
  font-size: 0.625rem;
}

/* FAQ and closing */

.faq-section {
  padding-block: var(--section-space);
  background: var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.faq-item {
  border-top: 1px solid var(--line-strong);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 450;
  text-align: left;
}

.faq-item button span {
  position: relative;
  width: 1.3rem;
  height: 1.3rem;
}

.faq-item button span::before,
.faq-item button span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.85rem;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.faq-item button span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item button[aria-expanded="true"] span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-panel {
  max-width: 42rem;
  padding: 0 3rem 1.5rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.faq-panel p {
  margin: 0;
}

.closing-section {
  padding-block: clamp(4.25rem, 5.5vw, 5.75rem);
  text-align: center;
}

.closing-inner {
  display: grid;
  justify-items: center;
}

.closing-inner h2 {
  max-width: 12em;
  margin-bottom: 2.2rem;
}

/* Footer */

.site-footer {
  padding-top: 3.75rem;
  background: var(--canvas-deep);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(15rem, 2.1fr) repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  max-width: 15rem;
  margin: 1rem 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.prototype-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-top nav {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.footer-top nav h2 {
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.footer-top nav a,
.footer-button,
.footer-placeholder {
  width: fit-content;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-placeholder {
  display: inline-flex;
  align-items: center;
  opacity: 0.72;
}

.footer-top nav a:hover,
.footer-button:hover {
  color: var(--mineral);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
}

/* Compare bar and modals */

.compare-bar {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  background: rgb(252 251 248 / 94%);
  box-shadow: 0 -12px 48px rgb(24 26 23 / 10%);
  backdrop-filter: blur(14px);
}

.compare-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.compare-bar-inner > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.compare-count {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--mineral);
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.compare-bar p {
  display: grid;
  margin: 0;
}

.compare-bar p strong {
  font-size: 0.75rem;
}

.compare-bar p span {
  color: var(--muted);
  font-size: 0.65rem;
}

.compare-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal {
  width: min(calc(100% - 2rem), 70rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.modal::backdrop {
  background: rgb(24 26 23 / 46%);
  backdrop-filter: blur(7px);
}

.modal-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--line);
  background: rgb(252 251 248 / 94%);
  backdrop-filter: blur(10px);
}

.modal-head .eyebrow {
  margin-bottom: 0.3rem;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 450;
  letter-spacing: -0.035em;
}

.compare-table-wrap {
  padding: 1.5rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.compare-table caption {
  margin-bottom: 1rem;
  color: var(--muted);
  text-align: left;
}

.compare-table th,
.compare-table td {
  min-width: 9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--canvas);
}

.compare-table thead th:not(:first-child) {
  color: var(--mineral-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 450;
}

.compare-table tbody th {
  color: var(--muted);
  font-weight: 550;
}

.search-modal {
  width: min(calc(100% - 2rem), 42rem);
  overflow: hidden;
}

.search-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.4rem 0.5rem;
}

.search-head > svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--mineral);
}

.search-head label {
  font-size: 0.75rem;
  font-weight: 700;
}

.search-modal > input {
  width: calc(100% - 2.8rem);
  margin: 0.5rem 1.4rem 1rem;
  font-size: 1.05rem;
}

.search-results {
  display: grid;
  max-height: 24rem;
  gap: 0.4rem;
  overflow: auto;
  padding: 0.4rem 1.4rem 1.4rem;
}

.search-results > .mono {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.625rem;
}

.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-result:hover {
  border-color: var(--mineral);
  background: var(--mineral-soft);
}

.search-result span {
  display: grid;
}

.search-result strong {
  font-size: 0.8rem;
}

.search-result small {
  color: var(--muted);
  font-size: 0.65rem;
}

.search-empty {
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.saved-modal {
  width: min(calc(100% - 2rem), 40rem);
}

.saved-empty,
.saved-project-card {
  margin: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.saved-empty {
  color: var(--muted);
  text-align: center;
}

.saved-project-card > .mono {
  color: var(--mineral);
}

.saved-project-card h3 {
  margin: 0.5rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 450;
}

.saved-project-card > p {
  color: var(--muted);
  font-size: 0.78rem;
}

.saved-project-card dl {
  margin: 1.2rem 0;
}

.saved-project-card dl div {
  display: flex;
  justify-content: space-between;
  padding-block: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

.saved-project-card dd {
  margin: 0;
  font-weight: 650;
}

.saved-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.toast {
  position: fixed;
  z-index: 500;
  right: 1rem;
  bottom: 1rem;
  max-width: min(calc(100% - 2rem), 24rem);
  padding: 0.9rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--canvas);
  box-shadow: var(--shadow-float);
  font-size: 0.75rem;
  transition: bottom 180ms var(--ease-out);
}

body.has-compare-bar .toast {
  bottom: 5.5rem;
}

/* Reveal motion */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms var(--ease-out),
    transform 520ms var(--ease-out);
}

.reveal[data-delay="1"] {
  transition-delay: 80ms;
}

.reveal[data-delay="2"] {
  transition-delay: 160ms;
}

.reveal[data-delay="3"] {
  transition-delay: 240ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1200px) {
  .desktop-nav {
    gap: 1.15rem;
  }

  .desktop-nav a {
    font-size: 0.76rem;
  }

  .saved-button span:not(.tool-count) {
    display: none;
  }

  .hero-grid {
    gap: 3rem;
  }

  .builder-form {
    grid-template-columns: minmax(0, 7.5fr) minmax(18rem, 4.5fr);
  }

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

  .style-card:last-child {
    grid-column: auto;
  }

  .style-card:last-child img {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 68px;
  }

  .desktop-nav,
  .desktop-tool {
    display: none;
  }

  .desktop-tool.mobile-cart-visible {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-button {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 7.5vw, 5.3rem);
  }

  .hero-media {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .builder-form {
    grid-template-columns: 1fr;
  }

  .builder-main {
    min-height: 0;
  }

  .builder-summary {
    display: grid;
    grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 2.25fr);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .summary-image {
    height: auto;
    aspect-ratio: auto;
    min-height: 14rem;
  }

  .summary-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
    gap: 1.5rem;
  }

  .capability-strip > .shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-item:nth-child(2) {
    border-right: 0;
  }

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

  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-card[data-package="signature"] {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    column-gap: 1.5rem;
  }

  .package-card[data-package="signature"] .package-image {
    grid-row: 1 / 8;
    aspect-ratio: auto;
    height: 100%;
    margin: 0;
  }

  .custom-package {
    grid-template-columns: 1fr 1fr;
  }

  .custom-plan {
    min-height: 25rem;
  }

  .room-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .room-copy,
  .project-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }

  .room-copy .eyebrow,
  .room-copy h2,
  .project-copy .eyebrow,
  .project-copy h2 {
    grid-column: 1 / 3;
  }

  .room-detail,
  .project-facts {
    margin-top: 0;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card:nth-child(2) {
    border-right: 0;
  }

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

  .delivery-grid,
  .trade-card,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .delivery-copy {
    max-width: 44rem;
  }

  .trade-copy {
    padding: 3rem 3rem 0;
  }

  .trade-preview {
    padding: 2rem 3rem 3rem;
  }

  .faq-heading {
    position: static;
    max-width: 48rem;
  }

  .footer-top {
    grid-template-columns: 2fr repeat(2, 1fr);
  }

  .footer-brand {
    grid-row: 1 / 3;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .package-card[data-package="signature"] {
    display: block;
    grid-column: auto;
  }

  .package-card[data-package="signature"] .package-image {
    height: auto;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.15rem;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .capability-strip > .shell {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .capability-item:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .capability-item:nth-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (min-width: 821px) and (max-width: 1024px) {
  .room-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.75rem;
  }

  .room-copy {
    max-width: 44rem;
  }

  .project-grid {
    grid-template-columns: minmax(0, 8fr) minmax(17rem, 4fr);
  }

  .delivery-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
  }

  .trade-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
  }

  .trade-copy {
    padding: 2.5rem 0 2.5rem 2.5rem;
  }

  .trade-preview {
    padding: 2rem 2rem 2rem 0;
  }

  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process-card:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .process-card:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .room-copy,
  .project-copy {
    display: block;
  }

  .room-detail,
  .project-facts {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 1.25rem;
    --section-space: 3.65rem;
  }

  .hero {
    padding-top: 1.65rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 12vw, 3.55rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-note {
    align-items: flex-start;
  }

  .hero-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-media > img {
    object-position: 46% center;
  }

  .annotation-top {
    top: 0.8rem;
    right: 0.8rem;
  }

  .annotation-bottom {
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
  }

  .annotation-bottom .annotation-line,
  .annotation-bottom span:last-child {
    display: none;
  }

  .hero-index {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0.6rem;
  }

  .section-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .section-intro h2,
  .room-copy h2,
  .project-copy h2,
  .delivery-copy h2,
  .trade-copy h2,
  .faq-heading h2,
  .closing-inner h2 {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  .header-inner {
    gap: 0.75rem;
  }

  .icon-button[aria-label*=', 0 items'] .tool-count,
  .icon-button[aria-label*=' 0 items'] .tool-count {
    display: none;
  }

  .mobile-nav {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }

  .mobile-nav > p {
    padding-top: 1.25rem;
  }

  .builder-section {
    padding-block: 3.75rem;
  }

  .builder-shell {
    padding-inline: 0;
    border-radius: 0;
  }

  #property-planner {
    scroll-margin-top: calc(var(--header-height) + 4rem);
  }

  .builder-progress {
    padding: 1.1rem 1.25rem 0.9rem;
  }

  .builder-progress ol {
    gap: 0.35rem;
  }

  .builder-progress li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
  }

  .builder-progress li span {
    font-size: 0.625rem;
  }

  .builder-main {
    padding: 1.5rem 1.25rem;
  }

  .builder-step legend {
    max-width: 100%;
    margin-bottom: 1rem;
    font-size: 1.85rem;
    text-wrap: balance;
  }

  .builder-step,
  .step-description,
  .style-options {
    width: 100%;
    max-width: 100%;
  }

  .choice-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-card {
    min-height: 6.5rem;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    padding: 1rem;
  }

  .choice-card .choice-check {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
  }

  .choice-title {
    padding-right: 1rem;
  }

  .choice-icon {
    grid-row: auto;
  }

  .choice-copy {
    display: none;
  }

  .bedroom-question {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .bedroom-guidance {
    grid-column: 1;
    margin-top: 0;
  }

  .style-options {
    display: flex;
    overflow-x: auto;
    padding: 0.2rem 0.15rem 0.75rem;
    scroll-padding-inline: 0.15rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .style-options::-webkit-scrollbar {
    display: none;
  }

  .style-card {
    min-width: 82%;
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .style-card:last-child {
    grid-column: auto;
  }

  .style-card img,
  .style-card:last-child img {
    aspect-ratio: 16 / 8;
  }

  .segmented-options {
    width: 100%;
  }

  .room-plan {
    min-height: 13rem;
  }

  .builder-summary {
    grid-template-columns: 1fr;
  }

  .summary-image {
    display: none;
  }

  .summary-content {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
  }

  .summary-copy {
    grid-template-columns: 1fr;
  }

  .summary-code {
    grid-column: 1;
    grid-row: auto;
  }

  .summary-match {
    min-height: 0;
    margin-bottom: 1rem;
  }

  .summary-facts {
    display: none;
  }

  .summary-facts div {
    display: grid;
    align-content: start;
    gap: 0.3rem;
    padding: 0.7rem;
    border-right: 1px solid rgb(255 255 255 / 14%);
  }

  .summary-facts div:last-child {
    border-right: 0;
  }

  .summary-facts dd {
    text-align: left;
  }

  .summary-price {
    margin-top: 0;
  }

  .summary-disclaimer {
    margin-block: 0.85rem;
  }

  .summary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .summary-actions .button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .summary-actions .text-button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .capability-strip > .shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .capability-item,
  .capability-item:nth-child(2) {
    min-height: 7.25rem;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0.55rem;
    padding: 1.6rem 1rem 1rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .capability-item:nth-child(2n) {
    border-right: 0;
  }

  .capability-item:nth-child(n + 3) {
    border-bottom: 0;
  }

  .capability-item > svg {
    width: 2.1rem;
    height: 2.1rem;
  }

  .capability-item p span {
    display: none;
  }

  .capability-item:last-child {
    border-bottom: 0;
  }

  .package-grid {
    grid-template-columns: 1fr;
    row-gap: 2.75rem;
  }

  .package-tier-rail {
    display: flex;
    width: calc(100% + (var(--gutter) * 2));
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.85rem;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .package-tier-rail::-webkit-scrollbar {
    display: none;
  }

  .package-tier-rail > .package-card {
    width: min(84vw, 22rem);
    min-width: min(84vw, 22rem);
    flex: 0 0 min(84vw, 22rem);
    scroll-snap-align: start;
  }

  .package-card:last-child {
    grid-column: auto;
    display: block;
  }

  .package-card[data-package="signature"] {
    grid-column: auto;
    display: block;
  }

  .package-card[data-package="signature"] .package-image {
    height: auto;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.15rem;
  }

  .custom-package {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .custom-plan {
    order: 2;
    min-height: 0;
    grid-template-rows: minmax(7rem, 1fr) minmax(7rem, 1fr) auto;
    padding: 1rem;
  }

  .custom-package-content {
    order: 1;
  }

  .custom-plan-readout {
    position: static;
    grid-column: 1 / -1;
    justify-content: center;
    box-shadow: none;
  }

  .custom-package-content {
    padding: 1.75rem 1.25rem;
  }

  .custom-scope-summary {
    grid-template-columns: 1fr 1fr;
  }

  .custom-scope-summary > span:nth-child(2) {
    border-right: 0;
  }

  .custom-scope-summary > span:last-child {
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .custom-package-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .custom-package-footer .button {
    width: 100%;
  }

  .package-topline {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }

  .package-card > p {
    min-height: 0;
  }

  .room-copy,
  .project-copy {
    display: block;
  }

  .project-facts {
    margin-top: 2rem;
  }

  .room-detail {
    display: none;
  }

  .room-experience {
    margin-top: 1.65rem;
  }

  .room-visual {
    aspect-ratio: 4 / 3;
    scroll-margin-top: calc(var(--header-height) + 1rem);
  }

  .room-visual.is-product-view {
    min-height: 0;
    aspect-ratio: auto;
  }

  .room-visual.is-product-view .room-wide-scene {
    display: none;
  }

  .room-visual.is-product-view .room-product-scene {
    position: relative;
    inset: auto;
  }

  .room-product-scene {
    grid-template-columns: 1fr;
    grid-template-rows: 14rem auto;
  }

  .room-product-image {
    padding: 1.25rem 2rem;
  }

  .room-product-image > .mono {
    bottom: 0.65rem;
    left: 0.65rem;
  }

  .room-product-dock {
    align-content: start;
    padding: 1.35rem 1.25rem;
  }

  .room-product-dock h3 {
    font-size: 2.2rem;
  }

  .room-product-dock > p:not(.mono) {
    margin-bottom: 0.75rem;
  }

  .room-view-control {
    top: 0.75rem;
    left: 0.75rem;
  }

  .room-visual:not(.is-product-view) .room-view-control button {
    display: none;
  }

  .room-product-rail {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .room-product-rail::-webkit-scrollbar {
    display: none;
  }

  .room-product-rail button {
    min-width: 10rem;
    flex: 0 0 10rem;
    scroll-snap-align: start;
  }

  .hotspot {
    width: 36px;
    height: 36px;
  }

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

  .process-card,
  .process-card:nth-child(2) {
    display: grid;
    min-height: auto;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.25rem 1rem;
    padding: 1.1rem 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-number {
    position: absolute;
    top: 1.1rem;
    right: 0;
  }

  .process-icon {
    grid-row: 1 / 3;
    margin: 0;
  }

  .process-card h3,
  .process-card p {
    grid-column: 2;
    padding-right: 2.5rem;
  }

  .delivery-steps article {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .coverage-checker {
    grid-template-columns: 1fr;
  }

  .coverage-checker .button,
  .coverage-result {
    grid-column: 1;
  }

  .coverage-checker .button {
    width: 100%;
    justify-self: stretch;
  }

  .trade-card {
    min-height: 0;
    gap: 0;
    border-radius: var(--radius-media);
  }

  .trade-copy {
    padding: 2.25rem 1.25rem;
  }

  .trade-preview {
    padding: 0 1.25rem 2.25rem;
  }

  .faq-item button {
    min-height: 60px;
    font-size: 1.03rem;
  }

  .faq-panel {
    padding-right: 0;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-brand {
    grid-column: 1 / 3;
    grid-row: auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-top nav a,
  .footer-button,
  .footer-placeholder {
    min-height: 44px;
  }

  .compare-bar-inner {
    align-items: center;
    gap: 0.55rem;
  }

  .compare-bar p {
    display: none;
  }

  .compare-bar {
    padding-block: 0.55rem calc(0.55rem + env(safe-area-inset-bottom));
  }

  .compare-bar-actions {
    gap: 0.55rem;
  }

  .compare-bar-actions .text-button {
    min-width: 3.25rem;
    min-height: 44px;
  }

  .compare-bar-actions .button {
    min-height: 46px;
    padding-inline: 1rem;
    white-space: nowrap;
  }

  .compare-table-wrap {
    overflow-x: auto;
    padding: 1rem;
  }

  .compare-table thead th:first-child,
  .compare-table tbody th {
    position: sticky;
    z-index: 1;
    left: 0;
    background: var(--surface);
  }

  .modal-head h2 {
    font-size: 1.8rem;
  }

  .modal-head {
    gap: 0.75rem;
    padding: 1.1rem 1rem;
  }

  .search-results {
    max-height: calc(100dvh - 12rem);
  }

  .saved-empty,
  .saved-project-card {
    margin: 1rem;
    padding: 1rem;
  }

  .toast {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 0.75rem;
  }

  body.has-compare-bar .toast {
    bottom: calc(5.6rem + env(safe-area-inset-bottom));
  }

  body.has-compare-bar {
    padding-bottom: calc(4.8rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

  .hero-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .mobile-nav-tools {
    grid-template-columns: 1fr;
  }

  .mobile-nav-links {
    margin-top: 1.25rem;
  }

  .mobile-nav-links a {
    min-height: 56px;
    font-size: 1.4rem;
  }

  .mobile-nav-tools {
    margin-top: 1.25rem;
  }

  .segmented-options span {
    min-height: 48px;
    font-size: 0.78rem;
  }

  .room-plan {
    min-height: 11rem;
  }

  .saved-project-actions {
    display: grid;
  }

  .closing-inner .button {
    width: 100%;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
