:root {
  --paper: #f5efe6;
  --paper-2: #ece3d5;
  --card: #fffdf9;
  --ink: #1c1714;
  --ink-2: #4a3f37;
  --line: #cdbfab;
  --garnet: #7b1e2b;
  --garnet-2: #5e1520;
  --gold: #a47a2c;
  --gold-ink: #6e5016;
  --teal: #1e5552;
  --teal-bg: #dfeae6;
  --focus: #0b4fb3;
  --serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(40, 25, 15, .08), 0 8px 24px rgba(40, 25, 15, .08);
}

* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--garnet); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h1:focus { outline: none; }
p { margin: 0 0 1em; }
em { font-style: italic; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.ic { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 10px;
}
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(245, 239, 230, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand img { width: 52px; height: 52px; flex: none; }
.brand span { display: flex; flex-direction: column; }
.brand b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.6rem; white-space: nowrap; }
.brand small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-top: 4px; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.mainnav a > span { white-space: nowrap; }
.mainnav a:hover { background: var(--paper-2); }
.mainnav .home-link { display: none; }
.mainnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.mainnav svg { width: 22px; height: 22px; flex: none; }
.tools { display: flex; align-items: center; gap: 8px; }
.lang {
  min-height: 48px; min-width: 56px; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.cartlink {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px;
  border-radius: 999px; background: var(--garnet); color: #fff; text-decoration: none; font-weight: 700;
}
.cartlink svg { width: 22px; height: 22px; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--garnet); font-size: .85rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--garnet); margin-left: 2px; }
.mainnav a[aria-current="page"] .dot { background: #fff; }

main { min-height: 60vh; }
.page { padding-top: 40px; padding-bottom: 72px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 12px 26px;
  border: 2px solid var(--garnet); border-radius: 10px; background: var(--garnet); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { background: var(--garnet-2); border-color: var(--garnet-2); }
.btn.ghost { background: transparent; color: var(--garnet); }
.btn.ghost:hover { background: rgba(123, 30, 43, .07); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.teal { background: var(--teal); border-color: var(--teal); }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }

/* hero */
.hero { padding: 48px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 em { color: var(--garnet); }
.hero .lede { margin-bottom: 28px; }
.collage { position: relative; height: 560px; }
.collage figure { position: absolute; margin: 0; background: var(--card); padding: 10px; box-shadow: var(--shadow); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { left: 0; top: 40px; width: 46%; height: 72%; transform: rotate(-2.5deg); }
.collage .c2 { left: 30%; top: 0; width: 42%; height: 62%; z-index: 2; }
.collage .c3 { right: 0; bottom: 0; width: 40%; height: 58%; transform: rotate(3deg); }
.collage figcaption { position: absolute; left: 10px; bottom: -34px; font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: .95rem; }

/* steps strip */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 56px 0; list-style: none; padding: 0; }
.steps li { padding: 28px 24px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps .num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.25rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-2); }

/* section heads */
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.head h2 { margin: 0; }

/* work cards */
.works { columns: 3 300px; column-gap: 28px; }
.work { break-inside: avoid; display: block; margin: 0 0 28px; color: var(--ink); text-decoration: none; }
.work .mat { background: var(--card); padding: 12px; box-shadow: var(--shadow); transition: transform .25s ease; }
.work:hover .mat { transform: translateY(-4px); }
.work img { width: 100%; height: auto; }
.work .meta { padding: 14px 4px 0; }
.work h3 { margin: 0 0 4px; font-size: 1.3rem; }
.price { font-weight: 700; font-size: 1.15rem; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--teal-bg); color: var(--teal); font-weight: 700; font-size: .92rem;
}
.badge svg { width: 18px; height: 18px; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border: 1.5px solid var(--ink);
  border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600;
}
.chip[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* feature band */
.band { background: var(--ink); color: var(--paper); padding: 72px 0; margin: 24px 0; }
.band .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.band .eyebrow { color: #d9b36a; }
.band .lede { color: #e6dccd; }
.band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair figure { margin: 0; }
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 8px solid #2c2420; }
.pair figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; color: #e6dccd; }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding: 40px 0; }
.about blockquote { margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; }
.about .mat { background: var(--card); padding: 12px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }

/* product */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.product .mat { background: var(--card); padding: 14px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.product .mat img { width: 100%; max-height: 78vh; object-fit: contain; margin: 0 auto; }
.facts { list-style: none; padding: 0; margin: 20px 0 28px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts span:first-child { color: var(--ink-2); }
.facts span:last-child { font-weight: 700; text-align: right; }
.bigprice { font-family: var(--serif); font-size: 2.1rem; margin: 6px 0 14px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 12px; font-weight: 700; text-decoration: none; }

/* wall preview */
.wallbox { margin-top: 40px; }
.scene {
  position: relative; width: 100%; aspect-ratio: 360 / 250; overflow: hidden; border-radius: var(--radius);
  background: var(--wall, #efe8dc); transition: background .3s ease; box-shadow: inset 0 -60px 80px rgba(0, 0, 0, .05);
}
.scene .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: #b89a77; }
.scene .skirt { position: absolute; left: 0; right: 0; bottom: 7%; height: 1.6%; background: #fbf8f2; }
.scene .art {
  position: absolute; background: #fff; padding: .35%; box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
  transition: all .35s ease;
}
.scene .art img { width: 100%; height: 100%; object-fit: cover; }
.scene .sofa { position: absolute; bottom: 7%; left: 20.8%; width: 58.4%; }
.scene .lamp { position: absolute; bottom: 7%; right: 6%; width: 7%; }
.walltools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.swatch {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0;
}
.swatch[aria-pressed="true"] { border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--paper) inset; }
.caption { color: var(--ink-2); font-size: .95rem; margin-top: 8px; }

/* designer */
.designer { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 28px; }
.progress li { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); }
.progress li.on { background: var(--garnet); }
.stepnum { font-weight: 700; color: var(--gold-ink); margin-bottom: 6px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt label {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 12px; border: 2px solid var(--line);
  border-radius: var(--radius); background: var(--card); cursor: pointer; font-weight: 700;
}
.opt label img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.opt label small { font-weight: 500; color: var(--ink-2); }
.opt input:checked + label { border-color: var(--garnet); box-shadow: 0 0 0 2px var(--garnet); }
.opt input:focus-visible + label { outline: 4px solid var(--focus); outline-offset: 3px; }
.opt.text label { flex-direction: row; align-items: center; justify-content: space-between; min-height: 72px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 24px 0 32px; }
.palette .opt label { flex-direction: row; align-items: center; min-height: 72px; }
.palette .sw { width: 44px; height: 44px; border-radius: 50%; flex: none; border: 1px solid rgba(0, 0, 0, .15); }
.summary { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.summary h3 { margin-bottom: 14px; }
.summary .facts { margin: 0 0 16px; }
.estimate { font-family: var(--serif); font-size: 1.9rem; }
.navbtns { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.navbtns .btn { flex: 1; }

label.field-label { display: block; font-weight: 700; margin-bottom: 8px; }
.field { margin-bottom: 22px; }
.hint { color: var(--ink-2); font-size: .92rem; margin: -2px 0 8px; }
input[type="text"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%; min-height: 58px; padding: 12px 14px; border: 2px solid var(--ink-2); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input[type="file"] { width: 100%; min-height: 58px; padding: 12px; border: 2px dashed var(--ink-2); border-radius: 10px; background: #fff; font: inherit; }
.upload-preview { margin-top: 12px; max-width: 220px; border-radius: 8px; box-shadow: var(--shadow); }

/* timeline */
.order-head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; margin-bottom: 32px; }
.order-head img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border: 8px solid var(--card); box-shadow: var(--shadow); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 0 0 32px 64px; }
.tl .pin {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--line); color: var(--ink-2); font-weight: 700;
}
.tl.done .pin { background: var(--teal); border-color: var(--teal); color: #fff; }
.tl.now .pin { background: var(--garnet); border-color: var(--garnet); color: #fff; box-shadow: 0 0 0 6px rgba(123, 30, 43, .15); }
.tl h3 { font-size: 1.3rem; margin: 6px 0 4px; }
.tl.todo h3 { color: var(--ink-2); }
.tl .when { color: var(--ink-2); font-size: .92rem; }
.update { margin-top: 14px; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); max-width: 520px; }
.update img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.update p { margin: 0; }
.approve { margin-top: 14px; padding: 18px; border: 2px solid var(--garnet); border-radius: var(--radius); background: #fff6f2; max-width: 520px; }
.approve h4 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 0 0 6px; }
.fx-sketch { filter: grayscale(1) contrast(1.6) brightness(1.15); }
.fx-wip { filter: saturate(.55) sepia(.25) contrast(.95); }

/* panels & lists */
.panel { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 24px; }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item img { width: 88px; height: 104px; object-fit: cover; border-radius: 6px; }
.item h3 { font-size: 1.2rem; margin: 0 0 4px; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .88rem; background: var(--paper-2); color: var(--ink); }
.status.act { background: var(--garnet); color: #fff; }
.status.ok { background: var(--teal-bg); color: var(--teal); }
.total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.5rem; padding-top: 14px; }
.note { background: var(--teal-bg); color: var(--ink); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }

/* chat */
.chat { max-width: 760px; }
.msgs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.msg .who { display: block; font-weight: 700; font-size: .85rem; color: var(--gold-ink); }
.msg.mine { align-self: flex-end; background: var(--garnet); color: #fff; }
.msg.mine .who { color: #f3d9c5; }
.msg img { margin-top: 8px; max-width: 240px; border-radius: 8px; }
.composer { scroll-margin-bottom: 110px; }
.composer .btns .btn { flex: 1; }

/* studio */
.studio-bar { background: var(--ink); color: var(--paper); }
.studio-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-weight: 600; }
.studio-bar a { color: #f0d9a8; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.col h3 { font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-ink); }
.ticket { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 12px; margin-bottom: 12px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.ticket img { width: 64px; height: 76px; object-fit: cover; border-radius: 6px; }
.ticket strong { display: block; }
.empty { color: var(--ink-2); font-style: italic; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-2); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site a { display: inline-flex; align-items: center; min-height: 48px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(140%); z-index: 60;
  background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 12px; font-weight: 600;
  transition: transform .3s ease, opacity .3s ease; max-width: calc(100% - 32px); opacity: 0; pointer-events: none;
}
.toast:empty { display: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 980px) {
  .hero .wrap, .band .wrap, .about, .product, .designer, .two { grid-template-columns: 1fr; gap: 32px; }
  .collage { height: 440px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product .mat, .summary { position: static; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .top { backdrop-filter: none; background: var(--paper); }
  .top .wrap { min-height: 64px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand b { font-size: 1.3rem; }
  .brand small { font-size: .7rem; letter-spacing: .1em; }
  .tools { margin-left: auto; }
  .cartlink .label { display: none; }
  .mainnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(40, 25, 15, .08);
  }
  .mainnav a {
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; padding: 6px 2px; border-radius: 10px;
    font-size: .8rem; line-height: 1.15; text-align: center; min-height: 60px;
  }
  .mainnav a > span { white-space: normal; }
  .page { padding-top: 28px; padding-bottom: 56px; }
  .hero { padding: 28px 0 8px; }
  .collage { height: 380px; margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; margin: 40px 0; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 4px; }
  .steps li:last-child { border-bottom: 0; }
  .head { flex-direction: column; align-items: start; }
  .works { columns: 2 150px; column-gap: 14px; }
  .work { margin-bottom: 18px; }
  .work .mat { padding: 6px; }
  .work h3 { font-size: 1.05rem; }
  .work .badge { font-size: .8rem; padding: 4px 10px; }
  .band { padding: 48px 0; }
  .btns .btn { flex: 1 1 100%; }
  .product .mat img { max-height: 56vh; }
  .order-head { grid-template-columns: 96px 1fr; gap: 16px; }
  .order-head img { width: 96px; border-width: 5px; }
  .item { grid-template-columns: 64px 1fr; }
  .item img { width: 64px; height: 76px; }
  .item > :last-child { grid-column: 1 / -1; }
  .options { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opt label { padding: 8px; font-size: .95rem; }
  .composer { scroll-margin-bottom: 120px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
