/* ==========================================================================
   Mdeco — Monolith
   Near-white surfaces, true black type, one warm teak accent used sparingly.
   ========================================================================== */

:root {
  --bg: #fbfbfa;
  --surface: #f2f2f0;
  --surface-2: #e8e8e5;
  --ink: #000;
  --ink-2: #3c3c40;
  --ink-3: #6b6b70;
  --line: rgba(0, 0, 0, .12);
  --teak: #9c5b2c;
  --teak-ink: #87491d;
  --dark: #000;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #a1a1a6;
  --dark-line: rgba(255, 255, 255, .16);

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --nav-h: 52px;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --max-wide: 1600px;

  --fs-hero: clamp(2.6rem, 8.2vw, 9.25rem);
  --fs-1: clamp(2.6rem, 6.6vw, 7rem);
  --fs-2: clamp(2.1rem, 4.6vw, 4.5rem);
  --fs-3: clamp(1.55rem, 2.5vw, 2.35rem);
  --fs-4: clamp(1.2rem, 1.6vw, 1.5rem);
  --fs-lead: clamp(1.15rem, 1.55vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --radius: 28px;
  --radius-s: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 56px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }

:focus-visible {
  outline: 2px solid var(--teak);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.wrap--wide { width: min(100% - var(--gutter) * 2, var(--max-wide)); margin-inline: auto; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
  font-weight: 650;
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: var(--fs-hero); line-height: .96; letter-spacing: -.05em; }
.h1 { font-size: var(--fs-1); line-height: .98; letter-spacing: -.045em; }
.h2 { font-size: var(--fs-2); line-height: 1.02; letter-spacing: -.038em; }
.h3 { font-size: var(--fs-3); line-height: 1.1; letter-spacing: -.028em; }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.38;
  letter-spacing: -.018em;
  color: var(--ink-3);
  font-weight: 450;
  text-wrap: pretty;
}
.lead strong { color: var(--ink); font-weight: 550; }
.muted { color: var(--ink-3); }
.teak { color: var(--teak); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #2a2a2c; }
.btn:active { transform: scale(.98); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e9e9e6; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { min-height: 32px; padding: 6px 15px; font-size: .875rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  color: var(--teak-ink);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link .chev { width: .6em; height: .6em; transition: transform .25s var(--ease); }
.text-link:hover .chev { transform: translateX(3px); }
.on-dark .text-link { color: #e3a877; }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }

/* ---------- Global nav ---------- */
.gnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 251, 250, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.gnav.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 251, 250, .86); }
.gnav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.055em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.gnav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.gnav__links a {
  font-size: .875rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .2s;
}
.gnav__links a:hover, .gnav__links a[aria-current="page"] { color: var(--ink); }
.gnav__links a[aria-current="page"] { font-weight: 550; }
.gnav__right { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mnav {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mnav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mnav a {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.04em;
  text-decoration: none;
  padding: 6px 0;
}
.mnav .btn { margin-top: 24px; font-size: 1.05rem; align-self: flex-start; }
body.menu-open { overflow: hidden; }

@media (max-width: 820px) {
  .gnav__links { display: none; }
  .gnav__right .btn { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 821px) { .mnav { display: none; } }

/* ---------- Hero with scroll-driven settle ---------- */
.hero {
  --p: 0;
  --t0: 52vh;
  --x0: clamp(16px, 7vw, 120px);
  --b0: clamp(16px, 3vw, 40px);
  position: relative;
  height: 230vh;
  margin-top: calc(var(--nav-h) * -1);
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + clamp(24px, 5vh, 64px)) var(--gutter) 0;
  text-align: center;
  opacity: calc(1 - var(--p) * 1.8);
  transform: translateY(calc(var(--p) * -60px)) scale(calc(1 - var(--p) * .06));
  transform-origin: 50% 0;
}
.hero__copy .display { margin-inline: auto; font-size: clamp(2.6rem, 6.4vw, 7.25rem); }
.hero__copy .lead { max-width: 34ch; margin: clamp(14px, 2vh, 22px) auto 0; }
.hero__copy .actions { margin-top: clamp(18px, 3vh, 30px); }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(
    calc(var(--t0) * (1 - var(--p)))
    calc(var(--x0) * (1 - var(--p)))
    calc(var(--b0) * (1 - var(--p)))
    calc(var(--x0) * (1 - var(--p)))
    round calc(var(--radius) * (1 - var(--p)))
  );
  will-change: clip-path;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  /* At the start only a band under the headline is visible: push the photo down so its
     middle (the tables) sits in that band, then let it settle as the hero opens up. */
  transform: translateY(calc(var(--shift, 16vh) * (1 - var(--p)))) scale(calc(1.14 - var(--p) * .14));
  transform-origin: 50% 70%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%);
  opacity: calc((var(--p) - .6) * 2.5);
}
.hero__caption {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  bottom: clamp(32px, 8vh, 80px);
  padding-inline: var(--gutter);
  text-align: center;
  color: #fff;
  font-size: var(--fs-2);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.02;
  opacity: calc((var(--p) - .72) * 4);
  transform: translateY(calc((1 - var(--p)) * 30px));
  text-wrap: balance;
}
@media (max-width: 700px) {
  .hero { height: 190vh; }
  .hero__media img { object-position: 40% 60%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 16vh, 180px); }
.section--tight { padding-block: clamp(64px, 10vh, 120px); }
.section--grey { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark .h1, .section--dark .h2, .section--dark .h3, .section--dark .display { color: var(--dark-ink); }
.section--dark .lead, .section--dark .muted { color: var(--dark-ink-2); }

.statement {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(96px, 14vh, 160px);
}
.statement .h1 { max-width: 15ch; margin-inline: auto; }
.statement .lead { max-width: 40ch; margin: 28px auto 0; }

.head { text-align: center; margin-bottom: clamp(48px, 8vh, 88px); }
.head .lead { max-width: 40ch; margin: 22px auto 0; }
.head .actions { margin-top: 28px; }

/* ---------- Category tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
  min-height: clamp(520px, 62vw, 760px);
  text-align: center;
}
.tile__text { padding: clamp(36px, 5vw, 60px) 28px 28px; }
.tile__text .h3 { font-size: clamp(1.9rem, 3.2vw, 3rem); letter-spacing: -.04em; }
.tile__text p { margin-top: 8px; color: var(--ink-3); font-size: var(--fs-4); line-height: 1.3; max-width: 26ch; margin-inline: auto; letter-spacing: -.02em; }
.tile__text .text-link { margin-top: 16px; }
.tile__media { position: relative; flex: 1; margin-top: auto; min-height: 280px; overflow: hidden; }
.tile__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__link:focus-visible { outline: none; }
.tile:has(.tile__link:focus-visible) { outline: 2px solid var(--teak); outline-offset: 3px; }

.band {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(36px, 5vw, 64px);
  background: var(--surface);
}
.band .h3 { max-width: 22ch; }
.band p { color: var(--ink-3); margin-top: 8px; max-width: 46ch; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 560px; }
  .band { grid-template-columns: 1fr; }
}

/* ---------- Featured piece ---------- */
.feature__media {
  margin-top: clamp(48px, 8vh, 80px);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(48px, 7vh, 72px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.points h3 { font-size: var(--fs-4); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.points p { margin-top: 8px; color: var(--ink-3); max-width: 30ch; }
.section--dark .points { border-top-color: var(--dark-line); }
.section--dark .points p { color: var(--dark-ink-2); }
@media (max-width: 760px) {
  .feature__media { aspect-ratio: 4 / 5; border-radius: var(--radius-s); }
  .points { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Materials (dark) ---------- */
.materials__media {
  margin-top: clamp(56px, 9vh, 96px);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}
.materials__media img { width: 100%; height: 100%; object-fit: cover; }
.finishes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: clamp(56px, 8vh, 88px);
}
.finishes h3 { font-size: var(--fs-4); font-weight: 600; letter-spacing: -.025em; }
.finishes > div > p { margin-top: 6px; color: var(--ink-3); }
.section--dark .finishes > div > p { color: var(--dark-ink-2); }
.dots { display: flex; flex-wrap: wrap; gap: 22px 28px; margin-top: 26px; }
.dots li { display: grid; justify-items: center; gap: 10px; font-size: var(--fs-small); color: var(--ink-3); text-align: center; }
.section--dark .dots li { color: var(--dark-ink-2); }
.dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .35);
}
.dot--painted { background: conic-gradient(#2f5d7c, #6f8f5e, #c9a23a, #b4553f, #6b4f8a, #2f5d7c); }
@media (max-width: 760px) {
  .materials__media { aspect-ratio: 4 / 5; border-radius: var(--radius-s); }
  .finishes { grid-template-columns: 1fr; }
}

/* ---------- Process steps ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) 5fr 4fr;
  gap: 16px 40px;
  align-items: baseline;
  padding: clamp(28px, 5vh, 48px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .6s var(--ease);
}
.js .steps--live .step { opacity: .22; }
.js .steps--live .step.is-active { opacity: 1; }
.step__n {
  font-size: var(--fs-3);
  font-weight: 500;
  color: var(--teak);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.step h3 { font-size: var(--fs-2); font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.step p { color: var(--ink-3); font-size: var(--fs-4); line-height: 1.35; letter-spacing: -.02em; }
@media (max-width: 760px) {
  .step { grid-template-columns: 44px 1fr; }
  .step p { grid-column: 2; }
}

/* ---------- Studio band ---------- */
.fullbleed { position: relative; overflow: hidden; height: min(100vh, 980px); }
.fullbleed img { width: 100%; height: 100%; object-fit: cover; }
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 64px;
  align-items: start;
}
.split p { font-size: var(--fs-4); line-height: 1.4; letter-spacing: -.02em; color: var(--ink-3); }
.split p strong { color: var(--ink); font-weight: 550; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .fullbleed { height: 72vh; } }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .display { max-width: 11ch; margin-inline: auto; }
.cta .lead { max-width: 38ch; margin: 26px auto 0; }
.cta .actions { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  color: var(--ink-3);
  font-size: var(--fs-small);
  padding: 64px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer .wordmark { font-size: 1.75rem; }
.footer__tag { margin-top: 12px; max-width: 28ch; color: var(--ink-3); }
.footer h2 { font-size: var(--fs-small); font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.footer li + li { margin-top: 9px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(80px, 14vh, 150px) 0 clamp(48px, 8vh, 80px); text-align: center; }
.page-head .display { max-width: 12ch; margin-inline: auto; }
.page-head .lead { max-width: 38ch; margin: 24px auto 0; }

/* ---------- Collection ---------- */
.filterbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  padding: 12px 0;
  background: rgba(251, 251, 250, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.segmented {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  flex: none;
  min-height: 38px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .06);
}
.filter-status { text-align: center; margin-top: 10px; font-size: var(--fs-small); color: var(--ink-3); }

.pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
}
.piece {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
}
.piece[hidden] { display: none; }
.piece__media { aspect-ratio: 4 / 3; overflow: hidden; }
.piece__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.piece:hover .piece__media img { transform: scale(1.04); }
.piece__body { padding: 28px clamp(24px, 3vw, 40px) 36px; display: grid; gap: 8px; }
.piece__cat { font-size: var(--fs-small); color: var(--teak-ink); font-weight: 500; }
.piece__body h2 { font-size: var(--fs-3); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.piece__body p { color: var(--ink-3); max-width: 38ch; }
.piece__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 10px; }
.piece.is-entering { animation: pieceIn .6s var(--ease) both; }
@keyframes pieceIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .pieces { grid-template-columns: 1fr; } }

/* ---------- Product: local sub-nav ---------- */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  background: rgba(251, 251, 250, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; }
.subnav__title { font-size: 1.3rem; font-weight: 650; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.subnav__links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.subnav__links a:not(.btn) {
  font-size: .8125rem;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.subnav__links a:not(.btn):hover { color: var(--ink); }
.subnav__links a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.subnav .btn { background: var(--teak); }
.subnav .btn:hover { background: var(--teak-ink); }
@media (max-width: 520px) {
  .subnav__title { font-size: 1.05rem; }
  .subnav__links { gap: 12px; }
  .subnav__links a:not(.btn) { font-size: .75rem; }
  .subnav .btn { padding: 6px 12px; font-size: .75rem; }
}
@media (max-width: 400px) { .subnav__links a[href="#overview"] { display: none; } }

/* ---------- Product: gallery ---------- */
.gallery { position: relative; margin-top: clamp(48px, 8vh, 80px); }
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 1180px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100vw - 1180px) / 2);
  padding-inline: max(var(--gutter), (100vw - 1180px) / 2);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { scroll-snap-align: center; margin: 0; }
.gallery__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}
.gallery__slide figcaption { margin-top: 14px; color: var(--ink-3); text-align: center; font-size: .9375rem; }
.gallery__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.gallery__dots { display: flex; gap: 10px; padding: 12px 18px; background: var(--surface-2); border-radius: 999px; }
.gallery__dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: width .35s var(--ease), background-color .35s var(--ease);
}
.gallery__dots button[aria-current="true"] { width: 32px; background: var(--ink); }
.round-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color .2s;
}
.round-btn:hover { background: #dcdcd8; }
.round-btn:disabled { opacity: .4; cursor: default; }
.round-btn svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .gallery__slide img { aspect-ratio: 4 / 5; border-radius: var(--radius-s); } }

/* ---------- Product: configurator ---------- */
.config {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.config__stage {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--surface);
  padding: clamp(28px, 5vw, 72px);
  min-height: 520px;
}
.config__stage svg { width: min(100%, 520px); height: auto; }
.config__label {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  text-align: center;
  font-size: .9375rem;
  color: var(--ink-3);
}
.config__label output { color: var(--ink); font-weight: 550; }
.config__panel { background: var(--surface); padding: clamp(28px, 4vw, 56px); display: grid; align-content: center; gap: 40px; }
.config__panel legend { font-size: var(--fs-4); font-weight: 600; letter-spacing: -.025em; margin-bottom: 4px; padding: 0; }
.config__panel .hint { color: var(--ink-3); font-size: .9375rem; margin-bottom: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 16px 18px; }
.swatch { position: relative; display: grid; justify-items: center; gap: 8px; width: 72px; text-align: center; font-size: .8125rem; color: var(--ink-3); cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch__chip {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 0 var(--bg), 0 0 0 0 var(--teak);
  transition: box-shadow .25s var(--ease);
}
.swatch input:checked + .swatch__chip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 3px var(--surface), 0 0 0 5px var(--teak); }
.swatch input:checked ~ .swatch__name { color: var(--ink); font-weight: 550; }
.swatch input:focus-visible + .swatch__chip { outline: 2px solid var(--ink); outline-offset: 7px; }
.swatch__chip--painted { background: conic-gradient(#2f5d7c, #6f8f5e, #c9a23a, #b4553f, #6b4f8a, #2f5d7c); }
.paint-pick { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .9375rem; color: var(--ink-2); }
.paint-pick[hidden] { display: none; }
.paint-pick input[type="color"] {
  width: 44px; height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.config svg .frame { fill: var(--frame, #161616); stroke: rgba(0, 0, 0, .22); stroke-width: 1; transition: fill .45s var(--ease); }
.config svg .frame-back { fill: var(--frame, #161616); filter: brightness(.78); stroke: rgba(0, 0, 0, .18); stroke-width: 1; transition: fill .45s var(--ease); }
.config svg .wood { fill: var(--wood, #a8693a); transition: fill .45s var(--ease); }
.config svg .wood-top { fill: var(--wood, #a8693a); transition: fill .45s var(--ease); }
.config svg .grain { fill: none; stroke: rgba(40, 20, 5, .22); stroke-width: 1.2; transition: opacity .45s var(--ease); }
.config[data-painted="true"] svg .grain { opacity: 0; }
@media (max-width: 900px) {
  .config { grid-template-columns: 1fr; }
  .config__stage { min-height: 0; padding-bottom: 72px; }
}

/* ---------- Product: size + making ---------- */
.size-figure { margin: clamp(48px, 8vh, 80px) auto 0; max-width: 760px; }
.size-figure svg { width: 100%; height: auto; }
.size-figure .dim { stroke: var(--teak); stroke-width: 1.5; fill: none; }
.size-figure .dim-txt { fill: var(--teak-ink); font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.size-figure .outline { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linejoin: round; }
.size-figure .outline-soft { stroke: var(--ink); stroke-width: 2; fill: none; opacity: .35; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trio figure { background: var(--surface); }
.trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.trio figcaption { padding: 24px 28px 32px; }
.trio h3 { font-size: var(--fs-4); font-weight: 600; letter-spacing: -.025em; }
.trio p { margin-top: 6px; color: var(--ink-3); }
.section--dark .trio figure { background: #111; }
.section--dark .trio p { color: var(--dark-ink-2); }
.trio--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio--two img { aspect-ratio: 14 / 11; }
.trio .text-link { margin-top: 14px; }
@media (max-width: 900px) { .trio, .trio--two { grid-template-columns: 1fr; } .trio img { aspect-ratio: 16 / 10; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.form { background: var(--surface); padding: clamp(28px, 5vw, 64px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; font-weight: 550; letter-spacing: -.01em; }
.field label span { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #d2d2cf;
  border-radius: 12px;
  background: #fff;
  font-size: 1.0625rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(156, 91, 44, .25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form__note { color: var(--ink-3); font-size: .875rem; max-width: 36ch; }
.form__status { font-size: .9375rem; color: var(--ink-2); min-height: 1.5em; }
.form__status.is-error { color: #b3261e; }
.aside { background: var(--surface); padding: clamp(28px, 4vw, 56px); display: grid; align-content: start; gap: 36px; }
.aside h2 { font-size: var(--fs-4); font-weight: 600; letter-spacing: -.025em; }
.aside p, .aside li { color: var(--ink-3); margin-top: 6px; }
.aside a { color: var(--ink); text-decoration-color: rgba(0, 0, 0, .3); text-underline-offset: 3px; }
.aside a:hover { text-decoration-color: currentColor; }
.aside .big-link { font-size: var(--fs-3); font-weight: 650; letter-spacing: -.035em; text-decoration: none; color: var(--ink); }
.aside .big-link:hover { color: var(--teak-ink); }
.aside ol { counter-reset: s; }
.aside ol li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; }
.aside ol li::before { content: counter(s); color: var(--teak); font-weight: 600; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: 100svh; min-height: 640px; }
  .hero__media img { transform: none; }
  .hero__caption { display: none; }
  .js .steps--live .step { opacity: 1; }
}

/* ---------- Finish picker (café bar table) ---------- */
.mono-config {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(48px, 7vw, 96px);
  text-align: left;
}
.mono-config__stage {
  background: var(--bg);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 48px) clamp(20px, 4vw, 48px) 20px;
}
.mono-config__stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.mono-config__readout {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 12px 0 0; font-size: var(--fs-small); color: var(--ink-3);
}
.cfg-frame { fill: var(--frame, #1b1c1f); stroke: rgba(0, 0, 0, var(--frame-stroke, 0)); stroke-width: 1; transition: fill .5s var(--ease); }
.cfg-wood { fill: var(--wood, #9c6334); transition: fill .5s var(--ease); }
.cfg-grain { fill: none; stroke: rgba(30, 18, 8, var(--grain, .22)); stroke-width: .8; transition: stroke .5s; }
.cfg-shadow { fill: rgba(0, 0, 0, .08); }
.cfg-frame-line, .cfg-frame-ring { stroke: var(--frame-line, var(--frame, #1b1c1f)); transition: stroke .5s var(--ease); }

.mono-config__title { font-size: var(--fs-3); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.mono-config__note { color: var(--ink-3); margin: 12px 0 28px; max-width: 30rem; }
.mc-group { border: 0; padding: 0; margin: 0 0 24px; }
.mc-group legend { padding: 0; margin-bottom: 12px; font-size: var(--fs-small); color: var(--ink-3); }
.mc-group legend b { color: var(--ink); font-weight: 600; margin-left: 6px; }
.mc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-swatch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  font: 500 .9375rem/1 var(--font); color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.mc-swatch:hover { border-color: rgba(0, 0, 0, .3); }
.mc-swatch[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mc-swatch i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.mc-swatch i.mc-teak { background: repeating-linear-gradient(100deg, #9c6334 0 6px, #8d572c 6px 8px, #a66d3b 8px 13px); }
.mc-swatch i.mc-walnut { background: repeating-linear-gradient(100deg, #5a3a26 0 5px, #4c301f 5px 7px, #64432d 7px 12px); }
.mc-swatch i.mc-natural { background: repeating-linear-gradient(100deg, #d6bb91 0 6px, #c9ab7f 6px 8px, #dcc39b 8px 13px); }
.mc-swatch i.mc-painted { background: conic-gradient(#6d8a7a, #c9b38c, #5c6f8a, #b6735c, #6d8a7a); }
.mc-paint { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.mc-paint[hidden] { display: none; }
.mc-paint input { width: 40px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--bg); cursor: pointer; }
.mono-config__panel .btn { margin-top: 8px; }

@media (max-width: 860px) {
  .mono-config { grid-template-columns: 1fr; }
}
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.footer__credit a:hover { text-decoration-color: currentColor; }
