/* Épreuve — a quiet shop: white pages, posters on grey tiles, black type, nothing that competes with the artwork. */

@font-face {
  font-family: 'Onest';
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/onest.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/newsreader.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-2: #3c3a37;
  --muted: #74706a;
  --line: #e7e4df;
  --line-2: #d6d2cc;
  --tile: #f2f1ee;
  --soft: #f7f6f4;
  --oak: #c49a6c;
  --ok: #2f6b3a;
  --err: #b3261e;

  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --pad: clamp(16px, 2.4vw, 32px);
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}
.skip:focus {
  top: 8px;
}
.soft {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  background: none;
  border: 0;
  padding: 0;
}
.link:hover {
  color: var(--muted);
}
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap.narrow {
  max-width: 820px;
}
.block {
  margin-top: clamp(56px, 7vw, 96px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.15s;
}
.btn:hover {
  background: #3a3a3a;
}
.btn:active {
  transform: scale(0.98);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn-big {
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius);
  font-size: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  transition: background-color 0.2s, color 0.2s;
}
.pill:hover {
  background: var(--ink);
  color: #fff;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  border-radius: 50%;
}
.icon-btn:hover {
  background: var(--soft);
}

/* ---------- header ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px var(--pad);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hdr {
  max-width: 1440px;
  margin: 0 auto;
  height: 66px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-main {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
}
.nav-main a:hover,
.nav-main a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.logo {
  font: 400 31px/1 var(--serif);
  letter-spacing: -0.02em;
}
.hdr-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.cart-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
.bubble {
  position: absolute;
  right: 0;
  top: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s var(--ease);
}
.bubble[data-zero] {
  display: none;
}
.bubble.bump {
  transform: scale(1.3);
}
.menu-btn {
  display: none;
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 20, 20, 0.35);
}
.menu-panel {
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  padding: 12px 20px 32px;
}
.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}
.menu nav {
  display: grid;
  margin-top: 12px;
}
.menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

/* ---------- home ---------- */
.hero {
  position: relative;
}
.hero-img {
  width: 100%;
  height: clamp(440px, 52vw, 760px);
  object-fit: cover;
  object-position: 72% center;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: max(var(--pad), calc((100vw - 1440px) / 2 + var(--pad)));
  transform: translateY(-50%);
  max-width: 470px;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.hero h1 {
  font: 400 clamp(38px, 4.3vw, 64px) / 1.04 var(--serif);
  letter-spacing: -0.015em;
}
.hero p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 40ch;
}
.usp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.usp > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
}
.usp svg {
  grid-row: span 2;
  margin-top: 1px;
}
.usp h2 {
  font-size: 15px;
  font-weight: 500;
}
.usp p {
  font-size: 14px;
  color: var(--muted);
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.sec-head h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* the product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 20px;
}
.card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.card-img {
  aspect-ratio: 4 / 5;
  background: var(--tile);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-img {
  position: relative;
}
.tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}
.cat-empty {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--tile);
  margin-bottom: 10px;
}
.preview-banner {
  background: #fff1c2;
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  padding: 10px var(--pad);
}
.preview-banner a {
  text-decoration: underline;
  margin-left: 8px;
}
.prose ul {
  margin: 0;
  padding-left: 20px;
}
.card-img img {
  width: 62%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 24px -10px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover .card-img img,
.card:focus-visible .card-img img {
  transform: scale(0.94);
  box-shadow: 0 0 0 12px #fbfbf9, 0 0 0 19px var(--oak), 0 22px 32px -10px rgba(0, 0, 0, 0.35);
}
.card-meta {
  display: grid;
  gap: 1px;
}
.card-col {
  font-size: 12px;
  color: var(--muted);
}
.card-title {
  font-size: 15px;
  font-weight: 500;
}
.card-price {
  font-size: 14px;
  color: var(--ink-2);
}

/* collections */
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cat {
  display: grid;
  gap: 6px;
  align-content: start;
}
.cat img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  margin-bottom: 10px;
  transition: opacity 0.3s;
}
.cat:hover img {
  opacity: 0.92;
}
.cat h3 {
  font-size: 18px;
  font-weight: 500;
}
.cat p {
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
}
.cat .more {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 4px;
}

/* frames */
.frames-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  background: var(--tile);
  padding: clamp(32px, 5vw, 72px);
}
.fb-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5%;
}
.mini-frame {
  background: var(--wood);
  padding: 7px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12), 0 20px 30px -14px rgba(0, 0, 0, 0.35);
}
.mini-frame img {
  border: clamp(8px, 1.4vw, 18px) solid #fbfbf9;
}
.mini-frame:nth-child(1) {
  width: 36%;
}
.mini-frame:nth-child(2) {
  width: 27%;
}
.mini-frame:nth-child(3) {
  width: 24%;
}
.fb-text {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.fb-text h2 {
  font: 400 clamp(28px, 3vw, 40px) / 1.1 var(--serif);
}
.fb-text p {
  color: var(--ink-2);
  max-width: 52ch;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.ticks li::before {
  content: '✓';
  margin-right: 10px;
}

/* how it works */
.how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.how li {
  counter-increment: step;
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.how li::before {
  content: counter(step);
  font: 400 32px/1 var(--serif);
  margin-bottom: 8px;
}
.how h3 {
  font-size: 16px;
  font-weight: 500;
}
.how p {
  color: var(--muted);
  font-size: 14px;
  max-width: 40ch;
}

/* accordions (home FAQ, product details) */
.acc details {
  border-top: 1px solid var(--line);
}
.acc details:last-child {
  border-bottom: 1px solid var(--line);
}
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  font-weight: 500;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.25s var(--ease);
}
.acc details[open] summary::after {
  transform: rotate(45deg);
}
.acc details p {
  padding-bottom: 18px;
  color: var(--ink-2);
  max-width: 70ch;
}
.faq .acc {
  max-width: 880px;
}

/* newsletter */
.news {
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--tile);
}
.news-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.news h2 {
  font: 400 clamp(26px, 2.6vw, 36px) / 1.15 var(--serif);
  margin-bottom: 6px;
}
.news p {
  color: var(--ink-2);
}
.news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.news-form input {
  flex: 1 1 240px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
}
.news-msg {
  flex-basis: 100%;
  font-size: 14px;
  min-height: 1.4em;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
}
.foot-cols {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  max-width: 36ch;
}
.foot-cols nav {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 14px;
}
.foot-cols nav a {
  color: var(--muted);
}
.foot-cols nav a:hover {
  color: var(--ink);
}
.foot-cols h2 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.foot-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px var(--pad) 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- listing ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs [aria-current] {
  color: var(--ink);
}
.page-head {
  display: grid;
  gap: 24px;
  padding: 4px 0 28px;
}
.page-head h1,
.page-title {
  font: 400 clamp(34px, 4vw, 52px) / 1.05 var(--serif);
  letter-spacing: -0.015em;
}
.page-title {
  margin: 4px 0 28px;
}
.page-head p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 60ch;
}
.page-head.with-art {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
}
.page-head.with-art img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 7px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  transition: border-color 0.2s, background-color 0.2s;
}
.chip:hover {
  border-color: var(--ink);
}
.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.sort {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.sort select {
  border: 0;
  background: none;
  font-weight: 500;
  padding: 4px;
}

/* ---------- product ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}
.gallery {
  position: sticky;
  top: 86px;
}
.stage {
  position: relative;
  aspect-ratio: 4 / 5;
  width: min(100%, calc((100svh - 200px) * 0.8));
  margin: 0 auto;
  background: var(--tile);
  overflow: hidden;
}
.view {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 9%;
  container-type: size;
}
.view[data-view='room'],
.view[data-view='detail'] {
  padding: 0;
}
.piece {
  width: min(100cqw, calc(100cqh * var(--arn, 0.73)));
}
.frame {
  background: var(--oak);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12), 0 26px 40px -16px rgba(0, 0, 0, 0.38);
  transition: background-color 0.3s, padding 0.3s;
}
.frame .mat {
  background: #fafaf8;
  box-shadow: inset 2px 3px 8px rgba(0, 0, 0, 0.14);
  transition: padding 0.3s;
}
.frame .window {
  overflow: hidden;
}
.frame .window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame.bare {
  background: none;
  box-shadow: none;
}
.frame.bare .mat {
  background: none;
  box-shadow: none;
}
.frame.bare .window {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 30px -12px rgba(0, 0, 0, 0.3);
}
.room,
.room svg {
  width: 100%;
  height: 100%;
  display: block;
}
.scenes {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 6px;
}
.scenes button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}
.scenes button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.detail {
  width: 100%;
  height: 100%;
  object-fit: none;
  object-position: 30% 35%;
}
.thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.thumbs button {
  display: grid;
  gap: 6px;
  justify-items: start;
  border: 0;
  padding: 0;
  background: none;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.th-img {
  width: 76px;
  height: 92px;
  background: var(--tile);
  display: grid;
  place-items: center;
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.2s;
}
.th-img img {
  width: 58%;
}
.thumbs button[aria-pressed='true'] {
  color: var(--ink);
}
.thumbs button[aria-pressed='true'] .th-img {
  outline: 2px solid var(--ink);
}
.th-room {
  position: relative;
  background: #e7e0d4;
}
.th-room i {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 20%;
  height: 16%;
  background: #3b3a3c;
  border-radius: 2px;
}
.th-room b {
  position: absolute;
  left: 41%;
  top: 22%;
  width: 18%;
  height: 26%;
  background: var(--oak);
  box-shadow: inset 0 0 0 2px #fafaf8;
}
.th-detail {
  background-size: 380%;
  background-position: 30% 35%;
}
.scale {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.5em;
  text-align: center;
}
.buybox {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}
.col-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  justify-self: start;
}
.buybox h1 {
  font: 400 clamp(32px, 3vw, 44px) / 1.05 var(--serif);
  letter-spacing: -0.015em;
  margin-top: -8px;
}
.buybox .price {
  font-size: 22px;
  font-weight: 500;
}
.buybox .price .soft {
  font-size: 13px;
  font-weight: 400;
}
.buy {
  display: grid;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.buy fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.buy legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}
.buy .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt {
  position: relative;
}
.opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.opt.tile > span {
  display: grid;
  gap: 1px;
  min-width: 96px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.opt.tile.wide > span {
  min-width: 168px;
}
.opt.tile b {
  font-size: 14px;
  font-weight: 500;
}
.opt.tile small {
  font-size: 12px;
  color: var(--muted);
}
.opt.tile:hover > span {
  border-color: var(--ink);
}
.opt.tile input:checked + span {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.opt input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.opt.swatch > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
}
.opt.swatch i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.opt.swatch input:checked + span {
  border-color: var(--ink);
}
.add-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.qty button {
  width: 40px;
  height: 50px;
  border: 0;
  background: none;
  font-size: 18px;
}
.qty input {
  width: 34px;
  border: 0;
  text-align: center;
  background: none;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.eta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.trust {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust svg {
  width: 18px;
  height: 18px;
}
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.sticky-buy.on {
  transform: none;
}
.sticky-buy > div {
  display: grid;
  font-size: 14px;
}

/* ---------- drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.38);
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  outline: none;
}
.drawer.open .drawer-overlay {
  opacity: 1;
}
.drawer.open .drawer-panel {
  transform: none;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 14px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  font-size: 17px;
  font-weight: 500;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 0 24px 24px;
}
.drawer-foot {
  padding: 18px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.drawer-foot .row {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}
.drawer-foot .link {
  justify-self: center;
  font-size: 14px;
}
.freebar {
  padding: 16px 0;
  font-size: 14px;
  display: grid;
  gap: 8px;
}
.freebar .track {
  height: 6px;
  background: var(--tile);
  border-radius: 3px;
  overflow: hidden;
}
.freebar .fill {
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: width 0.4s var(--ease);
}
.freebar.done {
  color: var(--ok);
}
.freebar.done .fill {
  background: var(--ok);
}
.lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.line-img {
  aspect-ratio: 4 / 5;
  background: var(--tile);
  display: grid;
  place-items: center;
}
.line-img img {
  width: 60%;
}
.line-img.framed img {
  box-shadow: 0 0 0 3px #fbfbf9, 0 0 0 5px var(--fc, var(--oak));
}
.line-what {
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.line-what a {
  font-weight: 500;
}
.line-what small {
  color: var(--muted);
  font-size: 12px;
}
.line-ctrl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.line-ctrl .qty button {
  width: 32px;
  height: 34px;
  font-size: 15px;
}
.line-ctrl .qty span {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.line-ctrl .rm {
  font-size: 12px;
  color: var(--muted);
}
.line-sum {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.upsell {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.upsell h3 {
  font-size: 14px;
  font-weight: 500;
}
.up {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.up .line-img img {
  width: 62%;
}
.up small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: 32px 0;
}

/* ---------- cart page ---------- */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.cart-grid .line {
  grid-template-columns: 110px minmax(0, 1fr) auto;
  padding: 20px 0;
}
.sum-box {
  background: var(--soft);
  padding: 24px;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 90px;
}
.sum-box .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.sum-box .row.total {
  font-size: 18px;
  font-weight: 500;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.sum-box .note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- checkout ---------- */
.co-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}
.co-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.co {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.co-main {
  width: 100%;
  max-width: 600px;
  justify-self: end;
  padding: 36px clamp(20px, 4vw, 56px) 64px;
}
.co-summary {
  background: var(--soft);
  border-left: 1px solid var(--line);
  padding: 36px clamp(20px, 4vw, 56px);
}
.co-summary > * {
  max-width: 440px;
}
.co-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.co-steps button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}
.co-steps button:disabled {
  cursor: default;
}
.co-steps [aria-current] {
  color: var(--ink);
  font-weight: 500;
}
.co-toggle {
  display: none;
}
.co-h {
  font-size: 19px;
  font-weight: 500;
  margin: 26px 0 14px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fields .wide {
  grid-column: 1 / -1;
}
.f {
  position: relative;
}
.f input,
.f select {
  width: 100%;
  height: 52px;
  padding: 20px 13px 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.f select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2374706a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.f input:focus,
.f select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.f input[aria-invalid='true'] {
  border-color: var(--err);
  box-shadow: 0 0 0 1px var(--err);
}
.f label {
  position: absolute;
  left: 14px;
  top: 16px;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: top 0.15s, font-size 0.15s;
}
.f input:focus + label,
.f input:not(:placeholder-shown) + label,
.f select + label {
  top: 7px;
  font-size: 11px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.co-err {
  margin-top: 14px;
  color: var(--err);
  font-size: 14px;
}
.co-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.co-nav .btn-big {
  width: auto;
  padding: 0 28px;
}
.co-nav .link {
  font-size: 14px;
}
.recap {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 14px;
}
.recap > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 16px;
}
.recap > div + div {
  border-top: 1px solid var(--line);
}
.recap dt {
  color: var(--muted);
}
.recap dd {
  margin: 0;
}
.ship-options {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.ship-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  font-size: 14px;
  cursor: pointer;
}
.ship-options label + label {
  border-top: 1px solid var(--line);
}
.ship-options label:has(input:checked) {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.ship-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.ship-options small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.secure {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.pay-test {
  padding: 16px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 14px;
  display: grid;
  gap: 4px;
}
.pay-element {
  min-height: 120px;
}
.co-legal {
  margin-top: 22px;
}
.sum-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.sum-lines li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}
.sum-img {
  position: relative;
  width: 64px;
  height: 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.sum-img img {
  width: 56%;
}
.sum-img i {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #6b6762;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  line-height: 21px;
  text-align: center;
}
.sum-what {
  display: grid;
}
.sum-what small {
  color: var(--muted);
  font-size: 12px;
}
.promo {
  display: flex;
  gap: 10px;
  margin: 22px 0 6px;
}
.promo .f {
  flex: 1;
}
.promo button {
  min-width: 100px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #ecebe8;
  font-weight: 500;
}
.promo-msg {
  font-size: 13px;
  min-height: 1.4em;
}
.promo-msg.ok {
  color: var(--ok);
}
.promo-msg.bad {
  color: var(--err);
}
.sum-rows {
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.sum-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sum-rows dd {
  margin: 0;
}
.sum-rows .sum-total {
  padding-top: 12px;
  font-size: 19px;
  font-weight: 500;
}
.sum-total small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-right: 4px;
}
.sum-rows .sum-vat {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- order page ---------- */
.thanks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(32px, 4vw, 64px);
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}
.th-main {
  display: grid;
  gap: 16px;
}
.th-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}
.th-check {
  width: 50px;
  height: 50px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.th-check.wait {
  border-color: var(--line-2);
  color: var(--muted);
}
.th-head h1 {
  font: 400 32px/1.1 var(--serif);
}
.box {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 20px 24px;
  display: grid;
  gap: 10px;
}
.box h2 {
  font-size: 17px;
  font-weight: 500;
}
.box p {
  color: var(--ink-2);
  font-size: 14px;
}
.stages {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stages li {
  position: relative;
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.stages li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.stages li i {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-2);
}
.stages li.done {
  color: var(--ink);
}
.stages li.done::before,
.stages li.done i {
  background: var(--ink);
}
.stages li.now::before {
  background: var(--line);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.info-grid h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}
.th-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.co-summary.static {
  border: 0;
  border-radius: 8px;
  padding: 24px;
}

/* ---------- text pages ---------- */
.prose {
  display: grid;
  gap: 14px;
  padding-bottom: 40px;
  color: var(--ink-2);
}
.prose h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 16px;
}
mark {
  background: #fff1c2;
  color: inherit;
  padding: 0 3px;
}

/* ---------- compose a wall ---------- */
.nav-compose {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-compose svg {
  width: 18px;
  height: 18px;
}
.nav-compose:hover span,
.nav-compose[aria-current] span {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.offer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 14px;
  color: var(--ink-2);
}
.offer svg {
  flex: none;
}
.offer b {
  color: var(--ink);
  font-weight: 500;
}
.bundle {
  font-size: 13px;
  color: var(--ink-2);
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--soft);
  margin-bottom: 4px;
}
.bundle.on {
  color: var(--ok);
}
.row.ok,
.sum-rows .ok {
  color: var(--ok);
}
s {
  color: var(--muted);
  font-weight: 400;
}

/* a wall drawn to scale (home, product page, composer) */
.wallsvg {
  display: block;
  width: 100%;
  height: 100%;
}
.walls-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.wallcard {
  display: grid;
  gap: 12px;
  align-content: start;
}
.wallcard-art {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tile);
}
.wallcard-art svg {
  transition: transform 0.5s var(--ease);
}
.wallcard:hover .wallcard-art svg {
  transform: scale(1.03);
}
.wallcard-meta {
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.wallcard-title {
  font-weight: 500;
}
.wallcard:hover .wallcard-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wallcard-price b {
  font-weight: 500;
}
.wb-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
  margin-bottom: 26px;
}
.wb-text {
  display: grid;
  gap: 12px;
}
.wb-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.wb-text h2,
.pwall-text h2 {
  font: 400 clamp(28px, 3vw, 40px) / 1.1 var(--serif);
}
.wb-text p,
.pwall-text p {
  color: var(--ink-2);
  max-width: 52ch;
}
.wb-text .offer {
  color: var(--ink-2);
}
.pwall {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}
.pwall-art {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tile);
}
.pwall-text {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.pwall-text .pwall-price {
  font-size: 17px;
  color: var(--ink);
}
.pwall-price b {
  font-weight: 500;
}
.pwall-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.pwall-cta .pill {
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
}
.compose-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.compose-link:hover {
  border-color: var(--ink);
}
.compose-link svg {
  flex: none;
}
.compose-link span {
  display: grid;
}
.compose-link b {
  font-size: 14px;
  font-weight: 500;
}
.compose-link small {
  font-size: 12px;
  color: var(--muted);
}

/* "see it on my wall" */
.ar-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 16px -6px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.ar-btn:hover {
  background: var(--soft);
}
.ar-btn:active {
  transform: scale(0.97);
}

/* the composer */
.cmp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: start;
  padding-bottom: 24px;
}
.cmp-stage {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
}
.cmp-wall {
  position: relative;
  height: clamp(360px, calc(100svh - 210px), 780px);
  background: var(--tile);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  --ring: #141414;
}
.cmp-wall[data-dark] {
  --ring: #fff;
}
.cmp-wall .fr {
  cursor: grab;
  outline: none;
}
.cmp-wall.dragging,
.cmp-wall.dragging .fr {
  cursor: grabbing;
}
.cmp-wall .ring {
  stroke: transparent;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.15s;
}
.cmp-wall .fr:hover .ring {
  stroke: color-mix(in srgb, var(--ring) 35%, transparent);
}
.cmp-wall .fr.sel .ring,
.cmp-wall .fr:focus-visible .ring {
  stroke: var(--ring);
}
.cmp-wall .fr.target .ring {
  stroke: var(--ring);
  stroke-dasharray: 6 4;
}
.cmp-wall .fr.lifted {
  opacity: 0.88;
}
.cmp-wall .guides line {
  stroke: #d2462f;
  stroke-width: 1px;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.cmp-view {
  position: relative;
}
.cmp-sel {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: min(540px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 24px -10px rgba(0, 0, 0, 0.3);
}
.cmp-sel img {
  width: 40px;
  height: 56px;
  object-fit: cover;
}
.sel-what {
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.sel-what b {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmp-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.seg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.seg button,
.fmts button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.seg button:hover,
.fmts button:hover {
  border-color: var(--ink);
}
.seg button[aria-pressed='true'],
.fmts button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.fmts {
  display: flex;
  gap: 4px;
}
.fmts button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.undo {
  margin-left: auto;
}
.undo[disabled] {
  opacity: 0.35;
  cursor: default;
}
.wallcolors {
  display: flex;
  gap: 4px;
}
.wallcolors button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
}
.wallcolors button::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.wallcolors button[aria-pressed='true'] {
  border-color: var(--ink);
}
.cmp-panel {
  display: grid;
  gap: 20px;
}
.cmp-panel h1 {
  font: 400 clamp(32px, 3vw, 44px) / 1.05 var(--serif);
  letter-spacing: -0.015em;
}
.cmp-lead {
  color: var(--ink-2);
  margin-top: -6px;
}
.cmp-sec {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cmp-sec h2 {
  font-size: 14px;
  font-weight: 500;
}
.cmp-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cmp-h output {
  font-size: 13px;
  color: var(--muted);
}
.cmp-sec .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cmp-sec .opt.tile > span {
  min-width: 150px;
}
.tpl-group {
  display: grid;
  gap: 8px;
}
.tpl-group + .tpl-group {
  margin-top: 6px;
}
.tpl-group h3 {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.tpls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tpls button {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tpls button:hover {
  border-color: var(--ink);
}
.tpls button[aria-pressed='true'] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.tpls svg {
  width: 100%;
  height: 44px;
}
.tpls small {
  margin-top: -5px;
  font-size: 11px;
  color: var(--muted);
}
.tpls rect {
  fill: var(--tile);
  stroke: var(--ink-2);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}
.tpls button[aria-pressed='true'] rect {
  fill: var(--oak);
  stroke: var(--ink);
}
.slots {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.slot.sel {
  box-shadow: inset 3px 0 0 var(--ink);
  padding-left: 12px;
}
.slot-img {
  position: relative;
  width: 48px;
  padding: 0;
  border: 0;
  background: var(--tile);
}
.slot-img img {
  width: 100%;
  aspect-ratio: 600 / 849;
  object-fit: cover;
}
.slot-img i {
  position: absolute;
  left: -6px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 11px/20px var(--sans);
  font-style: normal;
}
.slot-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.slot-title {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.slot-price {
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.slot-rm[disabled] {
  opacity: 0.3;
  cursor: default;
}
.addslot {
  min-height: 44px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  transition: border-color 0.15s;
}
.addslot:hover {
  border-color: var(--ink);
}
.addslot[disabled] {
  opacity: 0.5;
  cursor: default;
}
.cmp-frames {
  display: grid;
  gap: 12px;
}
.cmp-frames .opt.swatch {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.cmp-frames .opt.swatch em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.cmp-frames .opt.tile > span {
  min-width: 0;
}
.range {
  width: 100%;
  accent-color: var(--ink);
}
.range[disabled] {
  opacity: 0.4;
}
.cmp-sum {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--soft);
}
.cmp-sum .sum-rows .sum-total {
  padding-top: 6px;
}
.cmp-sum s {
  font-size: 14px;
  margin-right: 4px;
}
.cmp-sum .bundle {
  background: #fff;
}
.cmp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cmp-mbar {
  display: none;
}

/* sheets: choosing a poster, the hanging plan, augmented reality */
dialog.sheet {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.sheet::backdrop {
  background: rgba(20, 20, 20, 0.45);
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 {
  font-size: 17px;
  font-weight: 500;
}
.sheet-head h2:focus {
  outline: none;
}
.picker .chips {
  padding: 16px 22px 0;
}
.picker .chip {
  font: inherit;
  font-size: 13px;
}
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px 14px;
  padding: 18px 22px 26px;
}
.pick {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13px;
}
.pick-img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--tile);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s;
}
.pick-img img {
  width: 66%;
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.35);
}
.pick-img i {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-style: normal;
}
.pick:hover .pick-img {
  outline-color: var(--line-2);
}
.pick.on .pick-img {
  outline-color: var(--ink);
}
[data-plan-body] {
  display: grid;
  gap: 16px;
  padding: 18px 22px;
  color: var(--ink-2);
}
.plan-art {
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.plansvg {
  display: block;
  width: 100%;
  max-height: 44svh;
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.plan-table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 0 8px 6px 0;
}
.plan-table td {
  padding: 8px 8px 8px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.plan-foot {
  padding: 0 22px 22px;
}
.ar-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}
.ar-body.solo {
  grid-template-columns: 1fr;
}
.ar-3d {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--tile);
  border-radius: 8px;
  overflow: hidden;
}
.ar-3d model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}
.ar-side {
  display: grid;
  gap: 16px;
  align-content: start;
  color: var(--ink-2);
}
.qr {
  width: 188px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.ar-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.25s var(--ease);
  pointer-events: none;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media print {
  body.print-plan * {
    visibility: hidden;
  }
  body.print-plan dialog.plan,
  body.print-plan dialog.plan * {
    visibility: visible;
  }
  body.print-plan dialog.plan {
    position: absolute;
    inset: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    border-radius: 0;
  }
  body.print-plan .sheet-head button,
  body.print-plan .plan-foot {
    display: none;
  }
}

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

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .hdr {
    height: 58px;
  }
  .menu-btn {
    display: inline-grid;
    justify-self: start;
    margin-left: -8px;
  }
  .nav-main,
  .hide-sm {
    display: none;
  }
  .logo {
    font-size: 27px;
  }
  .hero-img {
    height: 62vw;
    min-height: 260px;
    object-position: 78% center;
  }
  .hero-text {
    position: static;
    transform: none;
    max-width: none;
    padding: 24px var(--pad) 8px;
  }
  .usp,
  .cats,
  .how,
  .news-in,
  .frames-band,
  .foot-cols {
    grid-template-columns: 1fr;
  }
  .foot-cols {
    gap: 24px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }
  .page-head.with-art {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  .product {
    grid-template-columns: 1fr;
  }
  .gallery {
    position: static;
  }
  .stage {
    width: 100%;
  }
  .opt.tile.wide > span {
    min-width: 140px;
  }
  .cart-grid {
    grid-template-columns: 1fr;
  }
  .cart-grid .line {
    grid-template-columns: 84px minmax(0, 1fr) auto;
  }
  .sum-box {
    position: static;
  }
  .co {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .co-main {
    max-width: none;
    justify-self: stretch;
    padding-top: 20px;
  }
  .co-summary {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    order: -1;
    display: none;
    padding-top: 20px;
  }
  .co-summary.open {
    display: block;
  }
  .co-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 14px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--soft);
    font-size: 14px;
  }
  .co-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .co-nav .btn-big {
    width: 100%;
  }
  .co-nav .link {
    text-align: center;
  }
  .thanks {
    grid-template-columns: 1fr;
  }
  .co-summary.static {
    display: block;
    order: 0;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .fields > * {
    grid-column: 1 / -1;
  }
  .thumbs button span:last-child {
    font-size: 11px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* the composer and its sheets on a tablet and a phone */
@media (max-width: 1100px) {
  .cmp {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .tpls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .pwall {
    grid-template-columns: minmax(0, 1fr);
  }
  .walls-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad) 4px;
    scrollbar-width: none;
  }
  .walls-row::-webkit-scrollbar {
    display: none;
  }
  .wallcard {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .cmp {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 96px;
  }
  .cmp-stage {
    top: 58px;
    z-index: 5;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 0 10px;
    background: #fff;
    gap: 8px;
  }
  .cmp-wall {
    height: 34svh;
    min-height: 220px;
  }
  /* what scrolls into view (focus, find) stops below the sticky wall and above the bottom bar */
  html:has(.cmp) {
    scroll-padding: calc(58px + max(34svh, 220px) + 100px) 0 90px;
  }
  .cmp-bar {
    gap: 8px;
    padding: 0 var(--pad);
  }
  .seg {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .seg button {
    min-height: 32px;
    padding: 0 11px;
    white-space: nowrap;
  }
  .wallcolors button {
    width: 30px;
    height: 30px;
  }
  .wallcolors button::before {
    width: 22px;
    height: 22px;
  }
  .cmp-sel {
    position: static;
    width: auto;
    margin: 8px var(--pad) 0;
    grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
    gap: 8px;
    box-shadow: none;
    border: 1px solid var(--line-2);
  }
  .cmp-sel img {
    width: 34px;
    height: 48px;
  }
  .ar-btn {
    top: 10px;
    right: 10px;
  }
  .cmp-view .ar-btn {
    top: calc(max(34svh, 220px) - 48px);
  }
  .cmp-mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.3s var(--ease);
  }
  .cmp-mbar.on {
    transform: none;
  }
  .cmp-mbar > div {
    display: grid;
    line-height: 1.3;
  }
  .cmp-mbar b {
    font-size: 17px;
    font-weight: 500;
  }
  .cmp-mbar span {
    font-size: 12px;
  }
  .ar-body {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .ar-3d {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 700px) {
  dialog.sheet {
    width: 100%;
    max-width: 100%;
    max-height: 90svh;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-table th:nth-child(3),
  .plan-table td:nth-child(3) {
    display: none;
  }
}
