/* ============================================================
   HOUSE BOTOX — styles
   ============================================================ */
:root {
  --cream: #f7f1ea; --ink: #231c1f; --rose: #b5525f; --blush: #e8b4b0; --champ: #c8a27a; --muted: #7a6d6a;
  --serif: "Fraunces", Georgia, serif; --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- header / hero ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(247, 241, 234, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(35, 28, 31, .08); }
.logo { font: 600 22px/1 var(--serif); text-decoration: none; letter-spacing: .02em; }
.logo span { font-style: italic; font-weight: 400; color: var(--rose); }
.top nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.top nav a { text-decoration: none; }
.navcta { background: var(--ink); color: var(--cream) !important; padding: 8px 14px; border-radius: 999px; }
@media (max-width: 560px) { .top nav a:not(.navcta) { display: none; } }

.hero { text-align: center; padding: clamp(28px, 6vw, 64px) 20px 18px; max-width: 760px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--rose); margin: 0 0 8px; font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 10px; }
h1 { font-size: clamp(36px, 7vw, 68px); }
h2 { font-size: clamp(28px, 4.5vw, 42px); }
.lead { font-size: 18px; color: var(--muted); margin: 0 auto; max-width: 600px; }
.muted { color: var(--muted); }

/* ---------- tour toolbar ---------- */
.tour { max-width: 1280px; margin: 0 auto; padding: 0 clamp(8px, 2vw, 24px); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1px solid rgba(35, 28, 31, .18); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.chip.sel { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tools { display: flex; gap: 6px; }
.ghost { border: 1px solid rgba(35, 28, 31, .2); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; text-decoration: none; display: inline-block; }
.cta { background: var(--rose); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; display: inline-block; font-size: 14px; }

/* ---------- viewport & stage ---------- */
.viewport { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(#cfe4ee, #f3e7da 70%, #e9dccb);
  height: min(78vh, calc(100vw * 1080 / 1240)); min-height: 330px; box-shadow: inset 0 0 0 1px rgba(35, 28, 31, .08); transition: background .6s; }
body.evening .viewport { background: linear-gradient(#141a3a, #3a2f55 60%, #6b4a5c); }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .7s cubic-bezier(.6, .05, .25, 1); }
body.dragging .stage { transition: none; }
#shell { position: absolute; inset: 0; }
#shell .roof { position: absolute; left: 0; top: 0; overflow: visible; }
#dragLayer { position: absolute; inset: 0; z-index: 2000; pointer-events: none; }
#dragLayer .item { pointer-events: auto; }

/* ---------- rooms ---------- */
.room { position: absolute; overflow: hidden; background-color: #eee; cursor: zoom-in; transition: opacity .5s;
  box-shadow: inset 0 10px 18px rgba(0, 0, 0, .12), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.stage.zoomed .room { cursor: default; }
.stage.zoomed .room:not(.active) { opacity: .45; }
.room.attic { clip-path: polygon(14% 0, 86% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; }
.floor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(0, 0, 0, .14); }
.shade { position: absolute; inset: 0; z-index: 800; pointer-events: none; background: rgba(12, 10, 30, .66); opacity: 0; transition: opacity .6s, background .6s; }
body.evening .shade { opacity: 1; }
body.evening .room.lit .shade { background: rgba(255, 190, 110, .1); }
.tag { position: absolute; left: 10px; top: 8px; z-index: 950; background: rgba(255, 255, 255, .88); border-radius: 10px; padding: 4px 9px; pointer-events: none;
  font-size: 13px; line-height: 1.2; transition: opacity .4s; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.tag b { display: block; font-family: var(--serif); font-size: 15px; }
.tag span { color: var(--rose); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.room.attic .tag { left: 50%; transform: translateX(-50%); top: auto; bottom: 30px; }
.stage.zoomed .tag { opacity: 0; }

/* wall finishes */
.wall-plaster { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .5), transparent 60%), #ebe3d7; }
.wall-subway { background-color: #f4f1ea; background-image:
  linear-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .07) 1px, transparent 1px);
  background-size: 30px 15px, 30px 30px; background-position: 0 0, 0 0; }
.wall-deco { background-color: #18453c; background-image:
  radial-gradient(circle at 50% 100%, transparent 14px, rgba(201, 162, 92, .45) 15px, rgba(201, 162, 92, .45) 16px, transparent 17px, transparent 22px, rgba(201, 162, 92, .3) 23px, transparent 24px);
  background-size: 48px 26px; }
.wall-panel { background-color: #4a2b22; background-image:
  linear-gradient(transparent 58%, rgba(0, 0, 0, .25) 58%, rgba(0, 0, 0, .25) 59%, transparent 59%),
  repeating-linear-gradient(90deg, transparent 0 76px, rgba(0, 0, 0, .3) 76px 79px, rgba(255, 255, 255, .05) 79px 80px); }
.wall-twotone { background: linear-gradient(#f2e6cf 0 60%, #2f6f73 60% 61%, #2f6f73 61%); }
.wall-twotone::after { content: ""; position: absolute; left: 0; right: 0; top: 60%; height: 4px; background: #d99a2b; }
.wall-sage { background: linear-gradient(180deg, #b7c3a8, #a9b79a); }
.wall-shiplap { background-color: #dbe8ee; background-image: repeating-linear-gradient(transparent 0 26px, rgba(0, 0, 0, .06) 26px 28px); }
.wall-limewash { background: radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, .45), transparent 55%), radial-gradient(ellipse at 80% 70%, rgba(110, 98, 85, .15), transparent 60%), #d9d0c3; }
.wall-dots { background-color: #f6d9d4; background-image: radial-gradient(circle, rgba(255, 255, 255, .8) 3px, transparent 4px); background-size: 28px 28px; }
.wall-brick { background-color: #8e4433; background-image:
  linear-gradient(rgba(230, 210, 190, .45) 2px, transparent 2px),
  linear-gradient(90deg, rgba(230, 210, 190, .45) 2px, transparent 2px),
  linear-gradient(90deg, rgba(230, 210, 190, .45) 2px, transparent 2px);
  background-size: 44px 22px, 44px 44px, 44px 44px; background-position: 0 0, 0 0, 22px 22px; }
.wall-brick::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.1), transparent 30%, transparent 70%, rgba(0,0,0,.15)); }

/* floors */
.floor-oak { background: repeating-linear-gradient(90deg, #d6b98f 0 56px, #c9ab80 56px 58px); }
.floor-farmwood { background: repeating-linear-gradient(90deg, #8a6143 0 70px, #7a533a 70px 72px); }
.floor-checker { background: conic-gradient(#f1e7d0 25%, #1b1b1b 0 50%, #f1e7d0 0 75%, #1b1b1b 0) 0 0/24px 24px; }
.floor-darkwood { background: repeating-linear-gradient(90deg, #3a2419 0 40px, #2e1c13 40px 42px); }
.floor-walnut { background: repeating-linear-gradient(90deg, #6b4428 0 60px, #5c3a22 60px 62px); }
.floor-terracotta { background: conic-gradient(#c86b45 25%, #b85d3a 0 50%, #c86b45 0 75%, #b85d3a 0) 0 0/36px 36px; }
.floor-whitewash { background: repeating-linear-gradient(90deg, #efe9df 0 64px, #e2dacd 64px 66px); }
.floor-stone { background: repeating-linear-gradient(90deg, #b9ae9e 0 90px, #a89c8a 90px 92px); }
.floor-lightwood { background: repeating-linear-gradient(90deg, #e9d4b4 0 50px, #dcc5a2 50px 52px); }
.floor-concrete { background: radial-gradient(circle at 30% 50%, #8e9294, #74787a); }

/* windows */
.win { position: absolute; border: 6px solid var(--frame); background: var(--frame); overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.win .sky { position: absolute; inset: 0; background: linear-gradient(#a9d6ef, #e8f3f6 75%, #b8d1a2 75%); transition: background .6s; }
body.evening .win .sky { background: radial-gradient(circle at 70% 30%, #f6f0d0 0 6px, transparent 7px), linear-gradient(#141a3a, #3a2f55 75%, #222 75%); }
.win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - 2px), var(--frame) calc(50% - 2px), var(--frame) calc(50% + 2px), transparent calc(50% + 2px)),
  linear-gradient(transparent calc(50% - 2px), var(--frame) calc(50% - 2px), var(--frame) calc(50% + 2px), transparent calc(50% + 2px)); }
.win-round { border-radius: 50%; }
.win-arch { border-radius: 50px 50px 4px 4px; }
.win-shoji::after { background: repeating-linear-gradient(90deg, transparent 0 24px, var(--frame) 24px 27px), repeating-linear-gradient(transparent 0 22px, var(--frame) 22px 25px); }
.win-shoji .sky { background: linear-gradient(#f6efe2, #ece2cf); }
body.evening .win-shoji .sky { background: linear-gradient(#3a3550, #2a2640); }

/* ---------- items ---------- */
.item { position: absolute; touch-action: none; cursor: grab; transition: filter .2s; }
.item .art { display: block; pointer-events: none; overflow: visible; }
.item:hover { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9)) drop-shadow(0 3px 6px rgba(0, 0, 0, .18)); }
.item.lifted { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .3)); cursor: grabbing; }
.item.k-rug:hover { filter: none; }
.glow { position: absolute; z-index: 850; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .45s; }
.glow.on { opacity: .6; }
body.evening .glow.on { opacity: 1; }
body.dragging .glow { display: none; }

/* lights: lit shade looks luminous */
.act-light.on .lshade, .act-light.on .neontext { filter: brightness(1.25) drop-shadow(0 0 6px #ffe7b0); }
.act-light .neontext { opacity: .45; }
.act-light.on .neontext { opacity: 1; filter: drop-shadow(0 0 4px #ff5fa8) drop-shadow(0 0 10px #ff5fa8); }
.act-light .flame { opacity: 0; }
.act-light.on .flame, .act-fire.on .flame { opacity: 1; animation: flicker .5s infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.act-fire .flame { opacity: 0; }
@keyframes flicker { from { transform: scaleY(1) scaleX(1); } to { transform: scaleY(1.12) scaleX(.94); } }

/* tv & screens */
.act-tv.on .tvscreen { animation: tv 4s infinite; }
@keyframes tv { 0% { fill: #5d8bd6; } 25% { fill: #d68a5d; } 50% { fill: #6bbf9c; } 75% { fill: #c26bbf; } 100% { fill: #5d8bd6; } }
.act-screen.on .scr { fill: #9fc8ff; }

/* spinning things */
.spinner { transform-box: fill-box; transform-origin: center; }
.act-spin.on .spinner { animation: spin 1.6s linear infinite; }
.act-spin.on .fanblades { animation: fanspin .35s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fanspin { 0% { transform: scaleX(1); } 50% { transform: scaleX(.15); } 100% { transform: scaleX(1); } }
.act-spin .notes { opacity: 0; }
.act-spin.on .notes { animation: note 1.6s ease-out infinite; }
@keyframes note { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -14px); } }

/* curtains */
.act-curtain .cl, .act-curtain .cr { transform-box: fill-box; transition: transform .8s ease; }
.act-curtain .cl { transform-origin: 0 0; } .act-curtain .cr { transform-origin: 100% 0; }
.act-curtain.on .cl, .act-curtain.on .cr { transform: scaleX(.3); }

/* bath bubbles, steam */
.bub { opacity: 0; }
.act-bath.on .bub { animation: bub 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bub { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 40% { opacity: .95; } 100% { opacity: 0; transform: translateY(-24px) scale(1.1); } }
.steam { opacity: 0; }
.act-steam.on .steam { animation: steam 2s ease-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }

/* wiggle / swing / launch */
.item.wig .art { animation: wig .8s ease; transform-origin: 50% 100%; }
.item.k-ceiling.wig .art { transform-origin: 50% 0; animation: swing 1.4s ease; }
@keyframes wig { 20% { transform: rotate(-5deg); } 45% { transform: rotate(4deg); } 70% { transform: rotate(-2deg); } }
@keyframes swing { 20% { transform: rotate(7deg); } 45% { transform: rotate(-5deg); } 70% { transform: rotate(3deg); } 90% { transform: rotate(-1deg); } }
.act-launch .flame { opacity: 0; }
.act-launch.on .flame { opacity: 1; }
.act-launch.on .art { animation: launch 1.6s ease-in-out; }
@keyframes launch { 0% { transform: none; } 45% { transform: translateY(-120px) rotate(4deg); } 100% { transform: none; } }

/* ---------- overlays inside viewport ---------- */
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(35, 28, 31, .86); color: #fff; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; white-space: nowrap; pointer-events: none; transition: opacity .5s; z-index: 10; }
.hint.gone { opacity: 0; }
@media (max-width: 560px) { .hint { white-space: normal; width: 86%; text-align: center; } }
.toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -10px); background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); opacity: 0; transition: .3s; pointer-events: none; z-index: 12; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.bag { position: absolute; right: 12px; bottom: 12px; z-index: 11; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
.bagbtn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); position: relative; transition: transform .2s; }
.bag.hot .bagbtn { transform: scale(1.25); background: var(--blush); }
.bagbtn b { position: absolute; top: -2px; right: -2px; background: var(--rose); color: #fff; font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; line-height: 20px; }
.bagbtn b:empty { display: none; }
.baglist { display: none; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); width: 220px; max-height: 50vh; overflow: auto; }
.bag.open .baglist { display: block; }
.bagitem { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px; border-radius: 10px; text-align: left; }
.bagitem:hover { background: var(--cream); }
.bagitem svg { width: 40px; height: 40px; flex: none; }
.bagempty { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- room panel ---------- */
.panel { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border-radius: 18px; padding: 16px 20px; margin: 12px 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05); min-height: 90px; }
.panel h3 { font-size: 26px; margin: 0 0 4px; }
.panel p { margin: 0 0 6px; color: var(--muted); }
.panel small { color: var(--rose); text-transform: uppercase; letter-spacing: .15em; font-weight: 700; font-size: 11px; }
.ptxt { flex: 1 1 340px; }
.pnav { display: flex; align-items: center; gap: 6px; font-size: 14px; flex: none; }
.pnav button { border: 1px solid rgba(35, 28, 31, .2); background: #fff; border-radius: 999px; padding: 6px 12px; }
.pbtns { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.swatches { display: flex; gap: 6px; margin: 6px 0 8px; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.try { font-size: 14px; }

/* ---------- sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: clamp(48px, 8vw, 90px) 20px 20px; text-align: center; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; text-align: left; }
.svc { background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.svc h4 { font-size: 22px; }
.svc p { color: var(--muted); margin: 0 0 14px; }
.svc span { font-weight: 700; color: var(--rose); font-size: 14px; }
.links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 10px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 20px 30px; }

/* ---------- phone tweaks ---------- */
@media (max-width: 640px) {
  .chips { flex-basis: 100%; order: 2; }
  .tools { order: 1; margin-left: auto; }
  .hint { left: 12px; right: 80px; transform: none; width: auto; white-space: normal; text-align: left; border-radius: 14px; }
  .bagbtn { width: 48px; height: 48px; font-size: 22px; }
  .panel { padding: 14px; gap: 10px; }
  .panel h3 { font-size: 22px; }
  .pbtns { width: 100%; }
  .pbtns > * { flex: 1; text-align: center; }
}
