:root {
  --wash: #EDEFEA; --paper: #F8F9F6; --ink: #19224A; --ink-2: #4A5274; --ink-3: #2C376A;
  --walnut: #7A4A2A; --pom: #B8293F; --pom-d: #961F33; --sand: #DCCDB3; --sage: #9FB0A0;
  --line: rgba(25, 34, 74, .12);
  --deep: #19224A; --on-deep: #F8F9F6; --on-deep-2: #BFC6DE;
  --price: #B8293F; --pom-hover: #19224A; --sand-bg: #DCCDB3; --art-floor: #E4E0D6;
  --header-bg: rgba(237, 239, 234, .86); --backdrop: rgba(25, 34, 74, .45);
  --p1: #DDE3EF; --p2: #EFE3DE; --p3: #E1E8DD; --p4: #EDE6D7; --p5: #DFE9F1; --p6: #E6E3EA; --p7: #ECE4DA;
  --room-wall: #E3E6E0; --room-floor: #D8CDB8; --room-fl: #C9BCA3; --room-sill: #F8F9F6; --room-line: #19224A;
  --sky0: #9DBBD6; --sky1: #E8EEF0; --hill: #9FB0A0; --sun: #F2D27A; --moon: 0; --stars: 0; --glow: 0;
  color-scheme: light;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
/* Evening in Andijan: indigo night, warm lamplight */
:root[data-theme="dark"] {
  --wash: #10142B; --paper: #1A2042; --ink: #ECEEF5; --ink-2: #A9B0CC; --line: rgba(236, 238, 245, .13);
  --deep: #0A0D1F; --price: #F28597; --pom-hover: #7E1A2B; --sand-bg: #231C24; --art-floor: #151A38;
  --header-bg: rgba(16, 20, 43, .82); --backdrop: rgba(3, 5, 15, .68);
  --p1: #1C2450; --p2: #2B1E2D; --p3: #1A2A2A; --p4: #29251F; --p5: #182A3D; --p6: #241F3B; --p7: #2A221F;
  --room-wall: #252C54; --room-floor: #2E2A3E; --room-fl: #3A3452; --room-sill: #3A4278; --room-line: #0A0D1F;
  --sky0: #0C1135; --sky1: #4B3B70; --hill: #222C47; --sun: #F4E8C1; --moon: 1; --stars: 1; --glow: 1;
  --grid: rgba(236, 238, 245, .06);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: 90px; }
@media (min-width: 981px) { html { scroll-padding-top: 250px; } }
body { margin: 0; background: var(--wash); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
.locked, .locked body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
[tabindex="-1"]:focus { outline: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pom); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* split-word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1s var(--ease) calc(var(--i) * 70ms); }
body.ready .hero-title .w > span, .in .w > span { transform: none; }

/* loader */
#loader { position: fixed; inset: 0; z-index: 200; background: var(--deep); animation: loaderBail .01s 6s forwards; display: grid; place-content: center; justify-items: center; gap: 14px; transition: clip-path .9s cubic-bezier(.7, 0, .2, 1); clip-path: inset(0 0 0 0); }
#loader.gone { clip-path: inset(0 0 100% 0); }
#loader svg { width: 96px; }
#loader .draw { fill: none; stroke: var(--sand); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.2s var(--ease) forwards; }
#loader p { font: 800 1.4rem var(--display); color: var(--on-deep); letter-spacing: .02em; opacity: 0; animation: fadeup .6s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes loaderBail { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--pom); transform-origin: left; transform: scaleX(0); z-index: 60; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 14px var(--pad); transition: background .3s, box-shadow .3s, padding .3s; }
body.scrolled .top { background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 34px; transition: transform .6s var(--ease); }
.logo-out { fill: var(--ink); }
.logo:hover svg { transform: rotate(90deg); }
.logo span { display: flex; flex-direction: column; line-height: 1; }
.logo b { font: 800 1.15rem var(--display); }
.logo small { font-size: .78rem; color: var(--ink-2); margin-top: 3px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--pom); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang button { font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.cart-btn svg { width: 22px; }
#cartCount { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pom); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--wash); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), background .25s, color .25s; position: relative; overflow: hidden; isolation: isolate; }
.btn:active { transform: scale(.97); }
.btn-pom { background: var(--pom); color: #fff; }
.btn-pom::before { content: ''; position: absolute; inset: 0; background: var(--pom-hover); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; border-radius: inherit; }
.btn-pom:hover::before { transform: none; }
.btn-line { border: 1.5px solid currentColor; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.wide { width: 100%; }
.btn-sub { font-weight: 500; opacity: .85; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .35); }

/* hero */
.hero { height: 360vh; position: relative; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; align-items: center; gap: 24px; padding: 90px var(--pad) 40px; overflow: hidden; }
.hero-title { font: 800 clamp(2.1rem, 4.6vw, 4.4rem)/1.04 var(--display); letter-spacing: -.02em; max-width: 11ch; }
.hero-sub { margin-top: 22px; max-width: 46ch; color: var(--ink-2); font-size: 1.05rem; }
.ticker { margin-top: 26px; display: flex; gap: 32px; flex-wrap: wrap; }
.ticker > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tk-label { font-size: .82rem; color: var(--ink-2); }
.tk-stage { font: 600 1.05rem var(--display); display: inline-block; min-height: 1.5em; }
.tk-stage.flip { animation: flip .55s var(--ease); }
@keyframes flip { from { opacity: 0; transform: translateY(14px) rotateX(70deg); } to { opacity: 1; transform: none; } }
.tk-num { font: 600 1.05rem var(--display); color: var(--price); font-variant-numeric: tabular-nums; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stage { position: relative; align-self: stretch; display: flex; align-items: center; }
#room { width: 100%; max-height: 82svh; border-radius: 28px 28px 200px 28px; background: var(--room-wall); overflow: hidden; }
.pc { transform-box: fill-box; transform-origin: center bottom; opacity: 0; will-change: transform; }
.room-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.tag { opacity: 0; }
.tag-in { transform-box: fill-box; }
.sun, .moonbite { transform: translateY(calc((1 - var(--p, 0)) * 60px)); }
.r-wall { fill: var(--room-wall); } .r-floor { fill: var(--room-floor); } .r-fl { stroke: var(--room-fl); }
.r-sill { fill: var(--room-sill); } .r-frame { stroke: var(--room-sill); } .room-line { stroke: var(--room-line); }
.sky0 { stop-color: var(--sky0); } .sky1 { stop-color: var(--sky1); } .r-hill { fill: var(--hill); }
.sun { fill: var(--sun); } .moonbite { opacity: var(--moon); } .star { opacity: var(--stars); } .glow { opacity: var(--glow); }
.scroll-hint { position: absolute; left: var(--pad); bottom: 22px; display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-2); opacity: calc(1 - var(--p, 0) * 8); }
.mouse { width: 20px; height: 32px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.mouse::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--pom); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* marquee */
.marquee { background: var(--deep); color: var(--sand); padding: 22px 0; overflow: hidden; transform: rotate(-2deg) scale(1.04); margin: 40px 0 0; position: relative; z-index: 2; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; will-change: transform; }
.marquee-track span { font: 600 clamp(1.6rem, 3.4vw, 2.8rem) var(--display); white-space: nowrap; }
.marquee-track svg { width: 26px; color: var(--price); flex: none; }
.marquee-track svg path:last-child { fill: var(--deep); }

/* category rail */
.rail { position: relative; }
.rail-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 40px); padding-top: 70px; }
.rail-head { padding: 0 var(--pad); display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 40px; }
.rail-head h2, .sec-head h2 { font: 600 clamp(2rem, 4.6vw, 3.8rem)/1.04 var(--display); letter-spacing: -.02em; }
.rail-head p { color: var(--ink-2); max-width: 40ch; justify-self: end; }
.rail-bar { grid-column: 1 / -1; height: 2px; background: var(--line); }
.rail-bar span { display: block; height: 100%; background: var(--pom); transform-origin: left; transform: scaleX(0); }
.rail-track { display: flex; gap: 22px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.panel { width: min(78vw, 440px); flex: none; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); overflow: hidden; }
.panel:nth-child(7n+1) { background: var(--p1); }
.panel:nth-child(7n+2) { background: var(--p2); }
.panel:nth-child(7n+3) { background: var(--p3); }
.panel:nth-child(7n+4) { background: var(--p4); }
.panel:nth-child(7n+5) { background: var(--p5); }
.panel:nth-child(7n+6) { background: var(--p6); }
.panel:nth-child(7n+7) { background: var(--p7); }
.panel-art { height: clamp(150px, 30svh, 260px); display: flex; align-items: center; justify-content: center; will-change: transform; }
.panel-art svg { height: 100%; width: auto; }
.panel h3 { font: 600 1.5rem var(--display); }
.panel p { color: var(--ink-2); }
.panel-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-top: 2px; flex-wrap: wrap; }
.panel-meta span:last-child { color: var(--price); font-weight: 600; }
.panel .btn { align-self: flex-start; min-height: 44px; padding: 8px 20px; }

/* sections */
.catalog, .sep, .visit { padding: clamp(80px, 12vh, 140px) var(--pad); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 36px; }
.sec-head p { color: var(--ink-2); max-width: 60ch; }
.note { font-size: .88rem; color: var(--ink-2); padding-left: 14px; border-left: 3px solid var(--sage); }

/* catalogue */
.toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 34px; background: var(--wash); padding: 10px 0; }
@media (min-width: 981px) { .toolbar { position: sticky; top: 64px; z-index: 5; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; transition: background .25s, color .25s, border-color .25s; background: var(--paper); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 46px; }
.search svg { width: 18px; color: var(--ink-2); flex: none; }
.search input { border: 0; background: none; outline: none; width: 100%; padding: 10px 0; }
.search:focus-within { border-color: var(--ink); }
.sort { display: flex; }
.count { color: var(--ink-2); font-size: .9rem; margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 36px 24px; }
.card { position: relative; display: flex; flex-direction: column; }
.card-art { position: relative; aspect-ratio: 4 / 3; background: var(--paper); border-radius: 22px 22px 22px 4px; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.card-art::before { content: ''; position: absolute; inset: auto 0 0; height: 28%; background: var(--art-floor); }
.card-tilt { position: relative; display: grid; width: 100%; transition: transform .5s var(--ease); transform-style: preserve-3d; }
.card-tilt > svg { grid-area: 1 / 1; width: 100%; }
.card-art:hover .card-tilt { transform: translateY(-6px) scale(1.03); }
.swap-in { animation: swapIn .45s var(--ease); }
.swap-out { animation: swapOut .4s var(--ease) forwards; }
@keyframes swapIn { from { clip-path: circle(0% at 50% 60%); } to { clip-path: circle(80% at 50% 60%); } }
@keyframes swapOut { to { opacity: 0; } }
.badge { position: absolute; top: 14px; left: 14px; font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: var(--paper); pointer-events: none; }
.badge-sale { background: var(--pom); }
.badge-new { background: var(--sage); color: #19224A; }
.card-body { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .82rem; color: var(--ink-2); }
.card h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.card-dims { font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.swatches { display: flex; gap: 8px; margin: 6px 0 4px; }
.sw { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; transition: transform .2s; }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; transform: scale(.7); transition: .25s var(--ease); }
.sw[aria-checked="true"]::after { opacity: 1; transform: none; }
.sw:hover { transform: scale(1.12); }
.swatches.lg .sw { width: 32px; height: 32px; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price s { font-size: .82rem; color: var(--ink-2); }
.price b { font: 600 1.05rem var(--display); color: var(--price); white-space: nowrap; letter-spacing: -.01em; }
.price.big b { font-size: 1.5rem; }
.add { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 10px 16px 10px 12px; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .25s, transform .2s; min-height: 44px; }
.add svg { width: 18px; transition: transform .4s var(--ease); }
.add:hover { background: var(--pom); color: #fff; }
.add:hover svg { transform: rotate(90deg); }
.add:active { transform: scale(.94); }
.empty { padding: 40px 0; color: var(--ink-2); }

/* sep */
.sep { background: var(--sand-bg); position: relative; overflow: hidden; }
.sep::before { content: ''; position: absolute; inset: 0 0 auto; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M0 0h40v20H0z' fill='%2319224A'/%3E%3Cpath d='M10 2l7 8-7 8-7-8z' fill='%23B8293F'/%3E%3Cpath d='M30 2l7 8-7 8-7-8z' fill='%23DCCDB3'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 20px; }
.bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.bundle { background: var(--paper); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(60px) rotate(2deg); transition: transform 1s var(--ease) calc(var(--d) * 140ms), opacity .8s calc(var(--d) * 140ms); }
.bundle.in { opacity: 1; transform: none; }
.bundle:nth-child(2) { background: var(--deep); color: var(--on-deep); }
.bundle:nth-child(2) .bundle-note, .bundle:nth-child(2) li, .bundle:nth-child(2) .price s { color: #BFC6DE; }
.bundle:nth-child(2) .price b { color: #F08597; }
.bundle-art { position: relative; height: 150px; margin-bottom: 10px; }
.ba { position: absolute; width: 58%; transition: transform .7s var(--ease); }
.ba-0 { left: 0; top: 10px; z-index: 2; }
.ba-1 { right: 0; top: 0; transform: scale(.82); }
.ba-2 { left: 28%; top: 50px; transform: scale(.7); z-index: 3; }
.bundle:hover .ba-0 { transform: translate(-6px, -4px) rotate(-3deg); }
.bundle:hover .ba-1 { transform: scale(.86) translate(8px, -6px) rotate(3deg); }
.bundle:hover .ba-2 { transform: scale(.74) translateY(-10px); }
.bundle h3 { font: 600 1.35rem var(--display); }
.bundle-note { color: var(--ink-2); }
.bundle ul { margin: 6px 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; display: grid; gap: 3px; }
.bundle-save { font-size: .9rem; font-weight: 600; color: var(--sage); }
.bundle .btn { margin-top: auto; }
.bundle:nth-child(2) .btn-pom::before { background: #F8F9F6; }
.bundle:nth-child(2) .btn-pom:hover { color: #19224A; }

/* delivery */
.delivery { background: var(--deep); color: var(--on-deep); padding: clamp(80px, 12vh, 140px) var(--pad); position: relative; overflow: hidden; }
.delivery .sec-head p, .delivery .note { color: #BFC6DE; }
.delivery .note { border-color: var(--price); }
.road-wrap { margin: 10px calc(var(--pad) * -.5) 30px; }
.road { width: 100%; overflow: visible; }
.stop circle { fill: var(--ink-3); stroke: var(--sand); stroke-width: 2.5; transition: fill .4s, r .4s; }
.stop text { fill: var(--sand); font: 700 15px var(--body); text-anchor: middle; }
.stop.hit circle { fill: var(--pom); stroke: #fff; }
.stop.hit text { fill: #fff; }
.steps { list-style: none; padding: 0; margin: 0 0 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink-3); transition: border-color .5s, opacity .5s; opacity: .5; }
.steps li.hit { border-color: var(--price); opacity: 1; }
.steps h3 { font: 600 1.15rem var(--display); margin-bottom: 6px; }
.steps h3::before { content: counter(s) ". "; color: var(--price); }
.steps p { color: #BFC6DE; font-size: .95rem; }
.zones { max-width: 760px; opacity: 0; transform: translateY(30px); transition: 1s var(--ease); }
.zones.in { opacity: 1; transform: none; }
.zones h3 { font: 600 1.35rem var(--display); margin-bottom: 14px; }
.zones ul { list-style: none; margin: 0 0 16px; padding: 0; }
.zones li { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--ink-3); }
.z-days { color: #BFC6DE; font-size: .9rem; }
.zones b { text-align: right; font-weight: 600; white-space: nowrap; }
.zones b small { display: block; font-weight: 400; font-size: .78rem; color: var(--sage); }

/* visit */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.visit-txt { display: grid; gap: 18px; justify-items: start; }
.visit-txt h2 { font: 600 clamp(2rem, 4.6vw, 3.8rem)/1.04 var(--display); letter-spacing: -.02em; }
.visit-txt > p { color: var(--ink-2); }
.visit dl { margin: 6px 0; display: grid; gap: 14px; }
.visit dt { font-size: .82rem; color: var(--ink-2); }
.visit dd { margin: 0; font-weight: 600; }
.visit dd a { color: var(--price); }
.map { border-radius: 30px 30px 30px 160px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); opacity: 0; transform: scale(.94); transition: 1.1s var(--ease); }
.map.in { opacity: 1; transform: none; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.7) contrast(1.05); }

.foot { padding: 40px var(--pad); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: .9rem; }
.foot-logo { font-family: var(--display); color: var(--ink); }
.visit-txt, .sec-head { opacity: 1; }

/* drawer & modals */
.drawer, .modal { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.drawer.open, .modal.open { visibility: visible; pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: var(--backdrop); opacity: 0; transition: opacity .4s; }
.open .backdrop { opacity: 1; }
.drawer { transition: visibility 0s .5s; }
.drawer.open { transition: none; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--wash); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 600 1.4rem var(--display); }
.close { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; transition: transform .3s var(--ease), background .2s; }
.close:hover { transform: rotate(90deg); background: var(--sand-bg); }
.cart-list { list-style: none; margin: 0; padding: 10px 22px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.line.leaving { pointer-events: none; overflow: hidden; }
.cart-empty { padding: 50px 0; display: grid; gap: 18px; justify-items: start; color: var(--ink-2); }
.line { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; animation: fadeup .4s var(--ease); }
.line-art { background: var(--paper); border-radius: 14px; padding: 4px; }
.line-name { font-weight: 600; line-height: 1.3; font-size: .95rem; }
.line-sub { font-size: .82rem; color: var(--ink-2); margin: 2px 0 8px; }
.line-end { display: grid; justify-items: end; gap: 6px; }
.line-end b { font-size: .92rem; white-space: nowrap; }
.link { font-size: .82rem; color: var(--ink-2); text-decoration: underline; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 50%; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.qty button:disabled { opacity: .3; }
.qty.sm button { width: 34px; height: 34px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; }
.subtotal b { font-family: var(--display); color: var(--price); }
.hint { font-size: .85rem; color: var(--ink-2); }

.modal { display: grid; place-items: center; padding: 20px; transition: visibility 0s .45s; }
.modal.open { transition: none; }
.modal-panel { overscroll-behavior: contain; position: relative; background: var(--wash); border-radius: 30px; width: min(940px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; opacity: 0; transform: translateY(40px) scale(.96); transition: transform .45s var(--ease), opacity .3s; }
.open .modal-panel { opacity: 1; transform: none; }
.modal-panel > .close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.pm-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.pm-art { background: var(--paper); padding: 40px 24px; display: grid; place-items: center; border-radius: 30px 0 0 30px; }
.pm-info { padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.pm-info h2 { font: 600 1.6rem/1.15 var(--display); padding-right: 40px; }
.pm-desc { color: var(--ink-2); }
.pm-spec { margin: 4px 0; display: grid; gap: 8px; }
.pm-spec div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.pm-spec dt { color: var(--ink-2); }
.pm-spec dd { margin: 0; font-weight: 600; }
.pm-buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pm-buy .btn { flex: 1; }

.co { width: min(560px, 100%); padding: 30px 28px 20px; display: flex; flex-direction: column; overflow: hidden; }
.co .co-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; margin: 0 -8px; padding: 4px 8px 8px; }
.co-foot { flex: none; border-top: 1px solid var(--line); padding-top: 12px; }
.co h2 { font: 600 1.5rem var(--display); margin-bottom: 18px; }
.co-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: c; }
.co-steps li { counter-increment: c; font-size: .85rem; color: var(--ink-2); padding-top: 10px; border-top: 3px solid var(--line); transition: border-color .3s, color .3s; }
.co-steps li::before { content: counter(c) ". "; }
.co-steps li.on { border-color: var(--price); color: var(--ink); font-weight: 600; }
.co-steps li.done { border-color: var(--ink); }
.co-body { display: grid; gap: 16px; animation: fadeup .4s var(--ease); }
.field { display: grid; gap: 6px; }
.field > span, legend { font-size: .88rem; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 12px 14px; min-height: 50px; outline: none; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.tel { display: flex; align-items: stretch; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; overflow: hidden; }
.tel:focus-within { border-color: var(--ink); }
.tel-pre { display: grid; place-items: center; padding: 0 12px 0 14px; font-weight: 600; border-right: 1px solid var(--line); }
.field .tel input { border: 0; border-radius: 0; }
.radios { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.radios legend { margin-bottom: 8px; padding: 0; }
.radio { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; transition: border-color .2s; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input, .check input { accent-color: var(--price); width: 18px; height: 18px; }
.r-main { display: flex; flex-direction: column; font-weight: 500; line-height: 1.3; }
.r-main small { color: var(--ink-2); font-weight: 400; }
.radio b { font-size: .9rem; white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.summary { background: var(--paper); border-radius: 16px; padding: 14px 16px; font-size: .92rem; }
.summary ul { list-style: none; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px dashed var(--line); }
.summary li, .summary p { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sum-total { font-weight: 600; font-size: 1.05rem; }
.sum-total b { color: var(--price); font-family: var(--display); }
.co-foot { margin-top: 8px; }
.co-err { color: var(--price); font-weight: 600; font-size: .9rem; min-height: 1.4em; margin-bottom: 8px; }
.co-row { display: flex; align-items: center; gap: 10px; }
.co-total { margin-left: auto; text-align: right; display: flex; flex-direction: column; line-height: 1.2; }
.co-total small { color: var(--ink-2); font-size: .78rem; }
.co-total b { font-family: var(--display); color: var(--price); white-space: nowrap; }
.done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 20px 0; }
.done svg { width: 84px; color: var(--ink); }
.done .tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .2s var(--ease) forwards; }
.done h3 { font: 600 1.4rem var(--display); }
.done-total { font: 600 1.3rem var(--display); color: var(--price); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; visibility: hidden; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 500; transform: translate(-50%, calc(100% + 40px)); transition: transform .45s var(--ease), visibility 0s .45s; max-width: calc(100vw - 32px); text-align: center; font-size: .92rem; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }
.ghost { position: fixed; z-index: 110; pointer-events: none; }

/* responsive */
@media (max-width: 980px) {
  .hero-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 80px; padding-bottom: 20px; gap: 14px; }
  .hero-title { font-size: clamp(2rem, 8.4vw, 3.4rem); max-width: 14ch; }
  .hero-sub { margin-top: 10px; font-size: .95rem; }
  .ticker { margin-top: 14px; gap: 22px; }
  .hero-cta { margin-top: 16px; }
  .hero-cta .btn-line { display: none; }
  .hero-stage { align-self: start; }
  #room { border-radius: 22px 22px 90px 22px; max-height: 46svh; }
  .scroll-hint { left: 50%; transform: translateX(-50%); bottom: 18px; white-space: nowrap; font-size: .8rem; }
  .rail-head { grid-template-columns: 1fr; }
  .rail-head p { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: 1fr; }
  .pm-body { grid-template-columns: 1fr; }
  .pm-art { border-radius: 30px 30px 0 0; padding: 30px 16px 10px; }
  .pm-info { padding: 20px 22px 26px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { gap: 10px; }
  .logo small { display: none; }
  .lang button { padding: 5px 8px; }
  .hero { height: 300vh; }
  .btn-sub { display: none; }
  .search { flex-basis: 100%; }
  .tools { display: grid; grid-template-columns: 1fr auto; }
  .sort .dd-btn { min-width: 0; max-width: 46vw; }
  .count { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .card h3 { font-size: .98rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .price b { font-size: .95rem; }
  .add { justify-content: center; padding: 9px 12px; }
  .sw { width: 22px; height: 22px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .zones li { grid-template-columns: 1fr auto; }
  .z-days { grid-row: 2; }
  .toast { bottom: auto; top: 74px; transform: translate(-50%, -200%); }
  .toast.show { transform: translate(-50%, 0); }
  .modal { padding: 0; place-items: end stretch; }
  .modal-panel { border-radius: 26px 26px 0 0; max-height: 92svh; transform: translateY(100%); }
  .open .modal-panel { transform: none; }
  .co { padding: 26px 18px 18px; }
  .co-row .btn { padding: 12px 16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.reduced .hero { height: auto; }
.reduced .hero-pin { position: relative; height: auto; min-height: 100svh; }
.reduced .pc, .reduced .tag { opacity: 1; }
.reduced .room-line { stroke-dashoffset: 0; }
.reduced .rail { height: auto !important; }
.reduced .rail-pin { position: relative; height: auto; padding: 80px 0; }
.reduced .rail-track { overflow-x: auto; width: auto; }
.reduced .w > span { transform: none; }
.reduced #roadDone { stroke-dashoffset: 0; }
.reduced .stop circle { fill: var(--pom); }
.reduced .steps li { opacity: 1; border-color: var(--price); }

/* ---------- header controls: theme toggle, mobile menu ---------- */
.menu { display: contents; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--paper); border: 1px solid var(--line); transition: background .25s, transform .3s var(--ease); flex: none; }
@media (hover: hover) { .icon-btn:hover { background: var(--sand-bg); } }
.icon-btn:active { transform: scale(.92); }
.theme-btn svg { width: 22px; overflow: visible; }
.tm-core { transform-origin: 12px 12px; transition: transform .6s var(--ease); }
.tm-bite { transition: transform .6s var(--ease); }
.tm-rays { transform-origin: 12px 12px; transition: transform .6s var(--ease), opacity .35s; }
[data-theme="dark"] .tm-core { transform: scale(1.6); }
[data-theme="dark"] .tm-bite { transform: translate(-6px, 4px); }
[data-theme="dark"] .tm-rays { transform: rotate(90deg) scale(.3); opacity: 0; }
.menu-btn { display: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), background .2s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .top { gap: 8px; }
  .top > :not(.menu) { position: relative; z-index: 2; }
  .menu-btn { display: grid; }
  .menu { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 28px; padding: 96px var(--pad) calc(32px + env(safe-area-inset-bottom)); background: var(--wash); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .5s cubic-bezier(.7, 0, .2, 1), visibility 0s .5s; }
  .menu.open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .55s cubic-bezier(.7, 0, .2, 1); }
  html.menu-open .top, html.menu-open body.scrolled .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  .menu .nav { flex-direction: column; gap: 0; }
  .menu .nav a { font: 600 clamp(1.6rem, 7vw, 2.3rem)/1.2 var(--display); padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .5s var(--ease); }
  .menu .nav a::after { display: none; }
  .menu.open .nav a { opacity: 1; transform: none; }
  .menu.open .nav a:nth-child(1) { transition-delay: .12s; } .menu.open .nav a:nth-child(2) { transition-delay: .18s; }
  .menu.open .nav a:nth-child(3) { transition-delay: .24s; } .menu.open .nav a:nth-child(4) { transition-delay: .3s; }
  .menu .lang { align-self: flex-start; }
  .menu .lang button { padding: 8px 16px; font-size: .95rem; }
}
@media (max-width: 380px) { .logo b { font-size: 1rem; } .logo svg { width: 30px; } .icon-btn { width: 40px; height: 40px; } .cart-btn { width: 42px; height: 42px; } }

/* ---------- navbar travel & theme switching ---------- */
.instant [data-reveal], .instant [data-reveal] *, .instant .w > span { transition: none !important; }
.navigating .tk-stage.flip { animation: none; }
html.theming, html.theming *, html.theming *::before, html.theming *::after { transition: background-color .4s, color .4s, border-color .4s, fill .4s, stroke .4s !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.55) contrast(.95); }
[data-theme="dark"] .card-art svg, [data-theme="dark"] .pm-art svg, [data-theme="dark"] .line-art svg { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); }

.noscript { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; margin: 0; padding: 14px 16px; background: var(--pom); color: #fff; text-align: center; font-weight: 500; }

/* =================== ROOM STUDIO =================== */
.cube { width: 20px; flex: none; }
.nav-studio { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1.5px solid var(--pom); color: var(--price); font-weight: 600; transition: background .25s, color .25s; }
.nav-studio .cube { transition: transform .6s var(--ease); }
.nav-studio:hover { background: var(--pom); color: #fff; }
.nav-studio:hover .cube { transform: rotate(-30deg) scale(1.1); }
.studio-btn { display: none; color: var(--price); }
.studio-btn .cube { width: 22px; }
.hero-studio { flex-basis: 100%; display: inline-flex; align-items: center; gap: 8px; justify-content: flex-start; margin-top: 2px; color: var(--ink-2); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); width: fit-content; }
.hero-studio:hover { color: var(--price); text-decoration-color: currentColor; }
.try-btn .cube { width: 20px; }
.pm-info .try-btn { margin-top: 2px; }
.bundle-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.bundle .bundle-btns .btn { margin-top: 0; flex: 1 1 auto; }

/* homepage teaser: graph-paper planning table */
.intro-studio { padding: clamp(80px, 12vh, 140px) var(--pad); display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; background-color: var(--wash); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.is-copy { display: grid; gap: 18px; justify-items: start; }
.is-copy h2 { font: 600 clamp(2rem, 4.4vw, 3.5rem)/1.05 var(--display); letter-spacing: -.02em; }
.is-copy > p { color: var(--ink-2); max-width: 52ch; }
.is-steps { list-style: none; counter-reset: s; padding: 0; margin: 4px 0 8px; display: grid; gap: 12px; }
.is-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.is-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.is-scene { position: relative; padding: 0; border-radius: 28px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 70px -35px rgba(25, 34, 74, .5); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); opacity: 0; transition: transform 1s var(--ease), opacity .9s; }
.is-scene.in { opacity: 1; }
.is-scene:hover, .is-scene:focus-visible { transform: perspective(1400px) rotateY(0) rotateX(0); }
.is-scene svg { width: 100%; display: block; }
.is-badge { position: absolute; right: 18px; top: 18px; background: var(--pom); color: #fff; font-weight: 600; padding: 8px 16px; border-radius: 999px; font-size: .9rem; box-shadow: 0 8px 20px -8px rgba(184, 41, 63, .7); }
.demo-move { animation: demoMove 7s var(--ease) infinite; }
.demo-cursor { animation: demoCursor 7s var(--ease) infinite; }
@keyframes demoMove { 0%, 12% { transform: translate(0, 0); } 40%, 66% { transform: translate(-170px, 60px); } 86%, 100% { transform: translate(0, 0); } }
@keyframes demoCursor {
  0% { transform: translate(60px, 60px); opacity: 0; } 7% { transform: translate(0, 0); opacity: 1; } 12% { transform: translate(0, 0) scale(.82); }
  40% { transform: translate(-106px, 37px) scale(.82); } 50% { transform: translate(-106px, 37px) scale(1); } 60% { transform: translate(-106px, 37px) scale(1); } 66% { transform: translate(-106px, 37px) scale(.82); }
  86% { transform: translate(0, 0) scale(.82); } 92% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(60px, 60px); opacity: 0; }
}

/* the studio itself */
.studio { position: fixed; inset: 0; z-index: 75; background: var(--wash); display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top" "stage side" "bar side"; visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; -webkit-user-select: none; user-select: none; }
.studio.open { visibility: visible; opacity: 1; transition: opacity .35s; }
.st-top { grid-area: top; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.st-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-title .cube { width: 34px; color: var(--price); }
.st-title h2 { font: 600 1.25rem/1.1 var(--display); }
.st-title p { font-size: .85rem; color: var(--ink-2); }
.st-actions { display: flex; gap: 8px; align-items: center; }
.st-btn { height: 42px; min-width: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font-weight: 600; font-size: .9rem; transition: background .2s, transform .2s; }
.st-btn svg { width: 20px; flex: none; }
.st-btn:disabled { opacity: .35; }
@media (hover: hover) { .st-btn:hover:not(:disabled) { background: var(--sand-bg); } }
.st-btn:active:not(:disabled) { transform: scale(.94); }

.st-stage { grid-area: stage; position: relative; display: grid; place-items: center; padding: 20px; min-height: 0; container-type: size; background-image: radial-gradient(var(--grid) 1.3px, transparent 1.3px); background-size: 22px 22px; }
#stSvg { display: block; aspect-ratio: 1200 / 760; width: min(100cqw, 100cqh * 1.5789); height: auto; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(25, 34, 74, .5); touch-action: none; outline: 3px dashed transparent; outline-offset: 6px; transition: outline-color .2s; }
.st-stage.dropping #stSvg { outline-color: var(--pom); }
#stRoom [data-k] { transition: fill .55s, opacity .8s; }
#stDim, #stGlow { transition: opacity .8s; pointer-events: none; }
#stPieces { transition: filter .8s; }
#stGuides, #stSel, .st-ruler { pointer-events: none; }
#stSel { animation: ants 1s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -36; } }
.sp { cursor: grab; outline: none; }
.sp.dragging { cursor: grabbing; filter: drop-shadow(0 22px 16px rgba(0, 0, 0, .3)); }

.st-tool { position: absolute; z-index: 3; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: 0 18px 40px -18px rgba(25, 34, 74, .5); display: grid; gap: 10px; min-width: 270px; max-width: min(380px, calc(100% - 20px)); animation: toolIn .25s var(--ease); }
@keyframes toolIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.st-tool-head { display: flex; flex-direction: column; line-height: 1.3; }
.st-tool-head b { font-weight: 600; }
.st-tool-head span { font-size: .82rem; color: var(--ink-2); }
.st-tool-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-tool .swatches { margin: 0; }
.st-tool-btns { display: flex; gap: 6px; }
.st-tool-btns button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--wash); border: 1px solid var(--line); transition: background .2s, color .2s; }
.st-tool-btns svg { width: 20px; }
@media (hover: hover) { .st-tool-btns button:hover { background: var(--sand-bg); } .st-tool-btns .danger:hover { background: var(--pom); color: #fff; } }
.st-tool-btns .ok { background: var(--ink); color: var(--wash); border-color: var(--ink); }
@media (hover: hover) { .st-tool-btns .ok:hover { background: var(--sage); color: #19224A; } }
.st-warn { color: var(--price); font-weight: 600; font-size: .85rem; }

.st-empty { position: absolute; inset: 20px; z-index: 2; display: grid; place-items: center; border-radius: 24px; background: color-mix(in srgb, var(--wash) 84%, transparent); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.st-empty-in { width: min(820px, 100%); display: grid; gap: 8px; text-align: center; padding: 20px; }
.st-empty h3 { font: 600 clamp(1.2rem, 2.4vw, 1.9rem) var(--display); }
.st-empty p { color: var(--ink-2); }
.st-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.st-presets.small { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0; }
.st-preset { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 7px; display: grid; gap: 6px; font-weight: 600; font-size: .88rem; transition: transform .25s var(--ease), border-color .2s; }
.st-preset svg { width: 100%; display: block; border-radius: 10px; }
.st-presets.small .st-preset { font-size: .8rem; border-radius: 12px; }
@media (hover: hover) { .st-preset:hover { transform: translateY(-3px); border-color: var(--ink); } }

.st-hint { position: absolute; left: 50%; bottom: 36px; z-index: 2; transform: translateX(-50%); margin: 0; background: var(--deep); color: #fff; padding: 10px 18px 10px 46px; border-radius: 999px; font-weight: 500; font-size: .9rem; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); animation: hintBob 1.6s ease-in-out infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3v13l3.2-3 2.3 5.4 2.3-1-2.3-5.3 4.3-.2z' fill='%23fff'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 16px center; background-size: 22px; }
@keyframes hintBob { 50% { transform: translate(-50%, -6px); } }

.st-side { grid-area: side; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.st-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 10px; gap: 6px; border-bottom: 1px solid var(--line); }
.st-tabs button { padding: 10px; border-radius: 12px; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s; }
.st-tabs button[aria-selected="true"] { background: var(--ink); color: var(--wash); }
.st-panel { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
.st-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.st-cats .chip { padding: 6px 12px; font-size: .84rem; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 10px; display: grid; gap: 2px; align-content: start; text-align: left; cursor: grab; touch-action: pan-y; transition: transform .2s var(--ease), border-color .2s; }
@media (hover: hover) { .st-item:hover { border-color: var(--ink); transform: translateY(-2px); } }
.st-item:active { cursor: grabbing; }
.st-thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(transparent 72%, var(--art-floor) 72%); }
.st-thumb svg { width: 100%; height: 100%; }
.st-name { font-weight: 600; font-size: .84rem; line-height: 1.25; margin-top: 4px; }
.st-meta { font-size: .75rem; color: var(--ink-2); }
.st-meta b { color: var(--price); font-weight: 600; }

.st-field { display: grid; gap: 10px; padding: 0 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.st-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .9rem; }
.st-label output { color: var(--price); font-family: var(--display); }
#stW { width: 100%; accent-color: var(--pom); height: 28px; }
.st-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-2); margin-top: -6px; }
.st-walls { display: flex; gap: 12px; flex-wrap: wrap; }
.st-walls .sw { width: 34px; height: 34px; }
.st-floors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-floors button, .st-seg button { border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; font-size: .84rem; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.st-floors button { display: flex; align-items: center; gap: 8px; padding: 8px; text-align: left; }
.st-floors button[aria-checked="true"], .st-seg button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.st-floors i { width: 30px; height: 22px; border-radius: 6px; flex: none; background: var(--c); }
.st-floors i.fl-plank { background: repeating-linear-gradient(90deg, var(--c) 0 6px, var(--l) 6px 7px); }
.st-floors i.fl-tile { background: linear-gradient(var(--l) 1px, transparent 1px) 0 0 / 11px 11px, linear-gradient(90deg, var(--l) 1px, transparent 1px) 0 0 / 11px 11px, var(--c); }
.st-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.st-seg button { padding: 9px 6px; }
.st-tip { font-size: .85rem; color: var(--ink-2); background: var(--paper); padding: 10px 12px; border-radius: 12px; border-left: 3px solid #D9A441; }

.st-bar { grid-area: bar; display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); min-width: 0; }
.st-sum { display: flex; flex-direction: column; line-height: 1.2; flex: none; }
.st-sum span { font-size: .82rem; color: var(--ink-2); }
.st-sum b { font: 600 1.25rem var(--display); color: var(--price); }
.st-chips { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; min-width: 0; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chip { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .82rem; }
.st-chip b { color: var(--price); }
#stAddAll { flex: none; margin-left: auto; }
#stAddAll.done { background: var(--sage); color: #19224A; }
.st-ghost { position: fixed; left: 0; top: 0; width: 120px; z-index: 130; pointer-events: none; opacity: .92; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .3)); transition: scale .2s; }
.st-ghost.over { scale: 1.15; }

@media (max-width: 980px) {
  .studio-btn { display: grid; }
  .menu .nav .nav-studio { font: 600 clamp(1.6rem, 7vw, 2.3rem)/1.2 var(--display); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; justify-content: flex-start; opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .5s var(--ease); }
  .menu .nav .nav-studio .cube { width: 30px; }
  .menu.open .nav .nav-studio { opacity: 1; transform: none; transition-delay: .36s; }
  .intro-studio { grid-template-columns: 1fr; }
  .is-scene { transform: none; }
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "top" "stage" "side" "bar"; }
  .st-top { padding: 10px 12px; gap: 8px; }
  .st-title { gap: 8px; } .st-title .cube { width: 26px; } .st-title h2 { font-size: 1.02rem; } .st-title p { display: none; }
  .st-actions { gap: 6px; }
  .st-btn.wide { width: 42px; padding: 0; } .st-btn.wide span { display: none; }
  .st-stage { padding: 8px; height: calc(100vw * 760 / 1200 + 16px); z-index: 4; }
  #stSvg { border-radius: 16px; }
  .st-tool { position: static; margin: 8px 12px 0; max-width: none; min-width: 0; border-radius: 16px; padding: 10px 12px; box-shadow: none; }
  .st-tool-row { flex-wrap: wrap; }
  .st-stage { z-index: auto; }
  .st-side { border-left: 0; }
  .st-tabs { padding: 8px 12px; }
  .st-panel { padding: 12px; }
  .st-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .st-grid { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 128px; overflow-x: auto; padding-bottom: 6px; overscroll-behavior-x: contain; }
  .st-item { touch-action: pan-x; }
  .st-chips { display: none; }
  .st-bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .st-sum b { font-size: 1.05rem; }
  #stAddAll { padding: 10px 16px; min-height: 46px; }
  .st-empty { inset: 8px; border-radius: 16px; }
  .st-empty-in { padding: 8px; gap: 2px; }
  .st-empty h3 { font-size: 1rem; } .st-empty p { font-size: .78rem; }
  .st-presets { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; justify-content: start; gap: 8px; margin-top: 6px; padding-bottom: 4px; }
  .st-preset { font-size: .74rem; padding: 5px; border-radius: 12px; }
  .st-hint { bottom: 16px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .demo-move, .demo-cursor, #stSel, .st-hint { animation: none !important; } }

/* =================== SITE-STYLED CONTROLS =================== */
::selection { background: var(--pom); color: #fff; }
input, textarea { caret-color: var(--pom); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 100px var(--paper) inset; transition: background-color 9999s; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 26%, transparent); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--ink) 45%, transparent); }

/* dropdowns */
.dd { position: relative; display: inline-flex; min-width: 0; }
.field .dd { display: flex; }
.dd-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; }
.dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 10px 14px 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; text-align: left; transition: border-color .2s, box-shadow .2s; }
.field .dd-btn { border-radius: 14px; min-height: 50px; padding-left: 14px; }
.dd-btn:hover, .dd-btn.open { border-color: var(--ink); }
.dd-btn.open { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pom) 14%, transparent); }
.dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-chev { width: 18px; flex: none; color: var(--ink-2); transition: transform .3s var(--ease); }
.dd-btn.open .dd-chev { transform: rotate(180deg); color: var(--price); }
.dd-list { position: fixed; z-index: 140; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(16, 20, 43, .45); overflow-y: auto; overscroll-behavior: contain; outline: none; transform-origin: top center; opacity: 0; transform: translateY(-6px) scale(.97); transition: opacity .18s, transform .25s var(--ease); }
.dd-list.up { transform-origin: bottom center; transform: translateY(6px) scale(.97); }
.dd-list.in { opacity: 1; transform: none; }
.dd-list.out { opacity: 0; transition-duration: .15s; }
.dd-list [role="option"] { display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 10px; border-radius: 12px; cursor: pointer; white-space: nowrap; opacity: 0; transform: translateY(-4px); transition: background .15s, opacity .25s calc(var(--d) * 25ms), transform .3s var(--ease) calc(var(--d) * 25ms); }
.dd-list.in [role="option"] { opacity: 1; transform: none; }
.dd-list [role="option"].active { background: var(--sand-bg); }
.dd-list [role="option"][aria-selected="true"] { font-weight: 600; color: var(--price); }
.dd-check { width: 18px; flex: none; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease); }
[aria-selected="true"] > .dd-check { opacity: 1; transform: none; }
.sort .dd-btn { min-width: 190px; }

/* radios and checkbox */
.radio input[type="radio"], .check input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; flex: none; display: grid; place-content: center; width: 22px; height: 22px; border: 2px solid color-mix(in srgb, var(--ink) 35%, transparent); background: var(--paper); transition: border-color .2s, background .2s; cursor: pointer; }
.radio input[type="radio"] { border-radius: 50%; }
.radio input[type="radio"]::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pom); transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.radio input[type="radio"]:checked { border-color: var(--pom); }
.radio input[type="radio"]:checked::before { transform: scale(1); }
.check input[type="checkbox"] { border-radius: 7px; }
.check input[type="checkbox"]::before { content: ''; width: 14px; height: 14px; background: #fff; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); transform: scale(0) rotate(-20deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.check input[type="checkbox"]:checked { background: var(--pom); border-color: var(--pom); }
.check input[type="checkbox"]:checked::before { transform: none; }
.radio input:focus-visible, .check input:focus-visible { outline: 3px solid var(--pom); outline-offset: 3px; }

/* room-width slider */
#stW { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
#stW::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--pom) var(--pct, 50%), color-mix(in srgb, var(--ink) 14%, transparent) var(--pct, 50%)); }
#stW::-moz-range-track { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
#stW::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--pom); }
#stW::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 3px solid var(--pom); box-shadow: 0 4px 12px -2px rgba(16, 20, 43, .35); transition: transform .2s var(--ease); }
#stW::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--pom); box-shadow: 0 4px 12px -2px rgba(16, 20, 43, .35); }
#stW:active::-webkit-slider-thumb { transform: scale(1.18); }
#stW:focus-visible { outline: none; }
#stW:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pom) 25%, transparent); }

/* search clear */
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-clear { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--wash); transition: background .2s, color .2s, transform .25s var(--ease); }
.search-clear svg { width: 16px; }
.search-clear:hover { background: var(--pom); color: #fff; transform: rotate(90deg); }
.search input:placeholder-shown + .search-clear { display: none; }

/* tooltips */
.tip { position: fixed; z-index: 150; max-width: 240px; padding: 7px 12px; border-radius: 10px; background: var(--deep); color: #F8F9F6; font-size: .8rem; font-weight: 500; line-height: 1.3; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .2s var(--ease); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.tip.below { transform: translateY(-4px); }
.tip.show { opacity: 1; transform: none; }
:root[data-theme="dark"] .tip { background: #ECEEF5; color: #141A33; }

/* =================== CUSTOM CURSOR =================== */
/* a small upholstery button under the mouse, and a soft outline that settles on what you're about to use */
:root { --cur-btn: radial-gradient(circle at 34% 30%, #5A67A8 0, #26306A 45%, #141A3F 100%); --cur-edge: rgba(248, 249, 246, .95); --cur-stitch: #B8293F; }
:root[data-theme="dark"] { --cur-btn: radial-gradient(circle at 34% 30%, #FFFDF6 0, #EADFC6 50%, #B9A47C 100%); --cur-edge: rgba(16, 20, 43, .85); --cur-stitch: #F28597; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor iframe { cursor: auto !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 2147483000; opacity: 0; transition: opacity .25s; }
html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }

.cur-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--cur-btn); box-shadow: 0 0 0 2px var(--cur-edge), 0 3px 8px rgba(0, 0, 0, .35); will-change: translate; transition: opacity .25s, scale .25s var(--ease), width .2s var(--ease), height .2s var(--ease), margin .2s var(--ease), border-radius .2s, background .2s; }
.cur-dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(0, 0, 0, .45); box-shadow: 0 1px 0 rgba(255, 255, 255, .35); transition: opacity .2s; }
html.cur-down .cur-dot { scale: .78; }

.cur-ring { width: 30px; height: 30px; border-radius: 15px; will-change: translate, width, height; }
.cur-ring::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid color-mix(in srgb, var(--cur-stitch) 55%, transparent); transition: border-color .25s, background-color .25s, box-shadow .3s, border-width .2s; }
.cur-label { position: absolute; left: 50%; top: 0; translate: -50% -50%; padding: 5px 12px; border-radius: 999px; background: var(--cur-stitch); color: #fff; font: 600 .78rem/1.1 var(--body); white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(184, 41, 63, .7); opacity: 0; scale: .8; transition: opacity .2s, scale .3s var(--ease); }
:root[data-theme="dark"] .cur-label { color: #141A33; }
html.cur-labelled .cur-label { opacity: 1; scale: 1; }

/* small controls: a snug outline with a faint fill */
[data-cur="snap"] .cur-ring::before { border: 2px solid var(--cur-stitch); background-color: color-mix(in srgb, var(--cur-stitch) 7%, transparent); }
[data-cur="snap"] .cur-dot { scale: .6; }
/* whole things (cards, panels, sets, studio pieces): a calm frame and a label on top */
[data-cur="zone"] .cur-ring::before, [data-cur="grab"] .cur-ring::before { border: 2px solid color-mix(in srgb, var(--cur-stitch) 75%, transparent); background-color: color-mix(in srgb, var(--cur-stitch) 4%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cur-stitch) 8%, transparent); }
[data-cur="zone"] .cur-dot, [data-cur="grab"] .cur-dot { scale: .6; }
[data-cur="grabbing"] .cur-ring::before { border: 2px solid var(--cur-stitch); background-color: color-mix(in srgb, var(--cur-stitch) 9%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cur-stitch) 12%, transparent); }
[data-cur="grabbing"] .cur-dot { scale: .5; }
/* text fields: the field is outlined and the button becomes a caret */
[data-cur="text"] .cur-ring::before { border: 1.5px solid color-mix(in srgb, var(--cur-stitch) 60%, transparent); }
[data-cur="text"] .cur-dot { width: 3px; height: 24px; margin: -12px 0 0 -1.5px; border-radius: 2px; background: var(--cur-stitch); box-shadow: none; }
[data-cur="text"] .cur-dot::after { opacity: 0; }
[data-cur="disabled"] .cur-ring::before { border: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
[data-cur="disabled"] .cur-dot { filter: grayscale(1); opacity: .6; }

/* a gentle ring spreading from each click */
.cur-ripple { position: fixed; z-index: 2147482999; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--cur-stitch); pointer-events: none; animation: curRipple .45s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes curRipple { from { transform: scale(1); opacity: .55; } to { transform: scale(3.4); opacity: 0; } }
