*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #f5f0e8;
  color: #2c2824;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

:root {
  --ink: #2c2824;
  --muted: #7a7268;
  --sand: #f5f0e8;
  --cream: #faf7f2;
  --sage: #7d8f72;
  --sage-deep: #5c6b54;
  --clay: #c4785a;
  --stone: #a89f92;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --line: rgba(44,40,36,0.1);
}

/* ——— PAINT SWATCH CHIP NAV (unique) ——— */
.studio-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 18px;
}
.studio-bar .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.studio-bar .brand {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.studio-bar .brand em {
  font-style: italic;
  color: var(--clay);
}
.studio-bar .brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.studio-bar .city {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.swatches {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.swatches a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
}
.swatches a .chip {
  width: 52px;
  height: 64px;
  border-radius: 4px 4px 2px 2px;
  box-shadow: 0 2px 8px rgba(44,40,36,0.12);
  border: 1px solid rgba(44,40,36,0.08);
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
/* paint chip hole at top */
.swatches a .chip::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(44,40,36,0.15);
}
.swatches a:nth-child(1) .chip { background: #c4785a; height: 72px; }
.swatches a:nth-child(2) .chip { background: #7d8f72; height: 64px; }
.swatches a:nth-child(3) .chip { background: #a89f92; height: 68px; }
.swatches a:nth-child(4) .chip { background: #5c6b54; height: 60px; }
.swatches a .lbl {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.swatches a:hover {
  color: var(--ink);
  transform: translateY(-4px);
}
.swatches a:hover .chip {
  box-shadow: 0 6px 16px rgba(44,40,36,0.18);
}
.swatches a.active {
  color: var(--ink);
}
.swatches a.active .chip {
  box-shadow: 0 0 0 2px var(--ink), 0 4px 12px rgba(44,40,36,0.15);
}

.mob {
  display: none;
  background: var(--clay);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* ——— ROOM HERO ——— */
.room {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.room .tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}
.room h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}
.room h1 em {
  font-style: italic;
  color: var(--sage-deep);
}
.room p {
  font-family: var(--sans);
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 26px;
  font-size: 1.05rem;
}
.room .frame {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--sage);
}
.room .frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-clay {
  background: var(--clay);
  color: #fff;
}
.btn-clay:hover { filter: brightness(1.05); }
.btn-sage {
  background: var(--sage);
  color: #fff;
}
.btn-sage:hover { background: var(--sage-deep); }
.btn-ghost {
  background: transparent;
  color: var(--clay);
  box-shadow: inset 0 0 0 1.5px var(--clay);
}
.btn-ghost:hover { background: rgba(196,120,90,0.08); }

/* ——— OBJECTS ——— */
.objects {
  max-width: 1040px;
  margin: 0 auto 44px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.obj {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px;
  border-top: 3px solid var(--clay);
}
.obj:nth-child(2) { border-top-color: var(--sage); }
.obj:nth-child(3) { border-top-color: var(--stone); }
.obj .n {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
}
.obj h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 6px;
}
.obj p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ——— PALETTE ——— */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}
.section .tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  margin-bottom: 24px;
}

.palette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pal-card {
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.pal-card:hover { box-shadow: 0 8px 28px rgba(44,40,36,0.08); }
.pal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.pal-card .body { padding: 20px; }
.pal-card .id {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 6px;
}
.pal-card h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 6px;
}
.pal-card p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ——— HEARTH ——— */
.hearth-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 65vh;
}
.hearth-split img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}
.hearth-split .txt {
  background: #2c2824;
  color: rgba(245,240,232,0.88);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hearth-split .txt .tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}
.hearth-split .txt h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: #faf7f2;
  margin-bottom: 14px;
}
.hearth-split .txt p {
  font-family: var(--sans);
  margin-bottom: 10px;
  color: rgba(245,240,232,0.7);
}

/* ——— THRESHOLD ——— */
.thresh-wrap {
  max-width: 1040px;
  margin: 24px auto 56px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
}
.thresh-side {
  background: #2c2824;
  color: rgba(245,240,232,0.88);
  padding: 32px;
}
.thresh-side h2 {
  color: var(--clay);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 20px;
}
.t-row { margin-bottom: 14px; }
.t-row .lbl {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 3px;
}
.t-row p, .t-row a {
  font-family: var(--sans);
  font-size: 0.95rem;
}
.t-row a:hover { color: var(--clay); }

.thresh-form {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 28px;
}
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--sand);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--clay);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ft {
  border-top: 1px solid var(--line);
  padding: 28px 20px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.ft strong { color: var(--ink); }

@media (max-width: 860px) {
  .swatches {
    display: none;
    gap: 10px;
  }
  .swatches.open { display: flex; }
  .mob { display: inline-block; }
  .room { grid-template-columns: 1fr; }
  .room .frame { box-shadow: 8px 8px 0 var(--sage); }
  .room .frame img { height: 240px; }
  .objects { grid-template-columns: 1fr; }
  .palette-grid { grid-template-columns: 1fr; }
  .hearth-split { grid-template-columns: 1fr; }
  .hearth-split img { min-height: 220px; }
  .thresh-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
