/* Teakline Furniture, sample site by Final Draft. A lamp-lit showroom at night. */

@font-face {
  font-family: "Gloock";
  src: url("assets/fonts/gloock.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --night: #120b07;
  --espresso: #1b120c;
  --espresso-2: #26190f;
  --teak: #9c5e2b;
  --brass: #c9a062;
  --brass-soft: #e2b86e;
  --brass-ink: #6f4f22;
  --kota: #cdd0c1;
  --kota-hi: #dfe1d6;
  --kota-lo: #b9bdac;
  --ink: #1d1a14;
  --ink-soft: #4a463b;
  --on-dark: #f1e7d7;
  --on-dark-soft: #c6b69e;
  --warn: #ff9a7a;
  --ok: #a9c48a;
  --line: rgba(29, 26, 20, 0.16);
  --line-dark: rgba(226, 184, 110, 0.2);

  --display: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fd-h: 40px;
  --head-h: 60px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--fd-h) + var(--head-h)); background: var(--night); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--kota);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 420;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: inherit; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .stage :focus-visible, .site-head :focus-visible, .fd-bar :focus-visible { outline-color: var(--brass-soft); }

.skip {
  position: absolute; left: var(--s4); top: -80px; z-index: 90;
  background: var(--espresso); color: var(--on-dark); padding: var(--s3) var(--s4); text-decoration: none; border-radius: 6px;
}
.skip:focus { top: calc(var(--fd-h) + 8px); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--s4); }

h2 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.6rem);
  line-height: 1; letter-spacing: -0.015em; text-wrap: balance;
}

/* dark wood surfaces */
.dark {
  position: relative; color: var(--on-dark);
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(243, 180, 100, 0.14), transparent 70%),
    url("assets/grain-espresso.webp") center / 1600px auto,
    var(--espresso);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 22px;
  font-family: var(--sans); font-weight: 650; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.btn:active { transform: scale(0.96); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn-brass {
  color: #1d1208;
  background: linear-gradient(180deg, #f0cd8c 0%, #d4a75e 48%, #b88a45 100%);
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.7), inset 0 -2px 0 rgba(90, 55, 15, 0.35), 0 10px 28px -10px rgba(240, 170, 80, 0.6);
}
.btn-ghost { border-color: rgba(241, 231, 215, 0.45); color: var(--on-dark); background: rgba(18, 11, 7, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ico { width: 22px; height: 22px; flex: none; }
html:not(.touch) .btn:hover { transform: translateY(-2px); }
html:not(.touch) .btn-brass:hover { box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.7), inset 0 -2px 0 rgba(90, 55, 15, 0.35), 0 16px 34px -10px rgba(240, 170, 80, 0.75); }

/* ---------- Final Draft bar ---------- */
.fd-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--fd-h);
  display: flex; align-items: center; justify-content: center; gap: 4px 12px; padding: 0 var(--s4);
  background: #0c0704; color: #d9cfc1;
  font-weight: 600; font-stretch: 92%; font-size: 0.82rem; line-height: 1.2;
  border-bottom: 1px solid rgba(226, 184, 110, 0.18);
}
.fd-bar span { white-space: nowrap; }
.fd-bar a { display: inline-flex; align-items: center; min-height: var(--fd-h); padding: 0 4px; color: var(--brass-soft); font-weight: 750; text-underline-offset: 3px; white-space: nowrap; }
.fd-bar a:focus-visible { outline-offset: -6px; }

/* ---------- Header: floats over the stage, hides while you scroll down ---------- */
.site-head {
  position: fixed; top: var(--fd-h); left: 0; right: 0; z-index: 70; color: var(--on-dark);
  transition: transform 0.45s var(--ease), background-color 0.3s;
}
.site-head.solid { background: rgba(18, 11, 7, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(226, 184, 110, 0.12); }
.site-head.away { transform: translateY(calc(-100% - var(--fd-h))); }
.head-row { display: flex; align-items: center; gap: var(--s4); min-height: var(--head-h); }
.brand { display: flex; align-items: baseline; gap: var(--s2); text-decoration: none; color: var(--brass-soft); margin-right: auto; min-height: 44px; align-items: center; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.005em; color: var(--on-dark); }
.brand-sub { font-stretch: 85%; font-weight: 550; font-size: 0.85rem; color: var(--on-dark-soft); display: none; }
.nav { display: none; }
.head-cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; min-width: 44px; padding: 0 14px;
  background: rgba(18, 11, 7, 0.4); border: 1.5px solid rgba(241, 231, 215, 0.3); border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; color: var(--on-dark); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.menu-lines, .menu-lines::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.25s var(--ease); }
.menu-lines::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu-lines { transform: translateY(-3px); }
.menu-btn[aria-expanded="true"] .menu-lines { transform: translateY(0) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(-6px) rotate(-90deg); }
@media (max-width: 959px) {
  .nav.open {
    display: flex; flex-direction: column; position: absolute; left: var(--s4); right: var(--s4); top: calc(var(--head-h) - 4px);
    background: var(--kota-hi); color: var(--ink); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); padding: var(--s2);
  }
  .nav.open a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s4); text-decoration: none; font-weight: 600; border-radius: 8px; }
  .nav.open a + a { border-top: 1px solid var(--line); }
}

/* =========================================================
   The stage: hero and the sizing tool share one 3D room.
   Without 3D it is a still hero followed by the tool.
   ========================================================= */
.stage { position: relative; background: var(--night); color: var(--on-dark); --hero: 1; --tool: 0; }
.stage-pin { position: relative; display: grid; grid-template-areas: "hero" "tool"; }
.scene, .hero-copy { grid-area: hero; }
.scene { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.poster, .scene picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster { object-fit: cover; object-position: 50% 40%; }
.gl { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.gl canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.gl canvas.is-dragging { cursor: grabbing; }
.live .gl { opacity: 1; }
.scene-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 55% 45%, transparent 55%, rgba(8, 5, 3, 0.55) 100%),
    linear-gradient(0deg, rgba(14, 9, 5, 0.96) 0%, rgba(14, 9, 5, 0.82) 30%, rgba(14, 9, 5, 0) 58%);
  opacity: var(--hero);
}
.scene::after { /* film grain */
  content: ""; position: absolute; inset: -50%; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tags { position: absolute; inset: 0; pointer-events: none; display: none; }
.live .tags { display: block; }
.tag3d {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-weight: 700; font-stretch: 88%; font-size: 0.82rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
  color: #1d1208; background: var(--brass-soft); padding: 3px 10px 3px; border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s, color 0.3s;
}

.hero-copy { position: relative; z-index: 2; align-self: end; padding: 0 0 var(--s7); }
.hero-copy h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.75rem, 1.2rem + 7.4vw, 6.4rem);
  line-height: 0.95; letter-spacing: -0.02em; max-width: 11ch; color: #fbf3e6;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}
.lede { margin-top: var(--s4); font-size: 1.1rem; line-height: 1.5; color: #e6d8c4; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.scroll-cue { display: none; }

/* one entrance: the words rise out of the dark */
.js .hero-copy h1, .js .hero-copy .lede, .js .hero-actions { animation: rise 1.1s var(--ease) both; }
.js .hero-copy .lede { animation-delay: 0.12s; }
.js .hero-actions { animation-delay: 0.2s; }
.js .poster { animation: dawn 2.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes dawn { from { filter: brightness(0.35); transform: scale(1.06); } to { filter: none; transform: none; } }

/* ---------- Build your sofa ---------- */
.tool { grid-area: tool; position: relative; z-index: 3; padding: var(--s7) var(--s4) var(--s8); display: grid; gap: 14px; align-content: start; }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.tool h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.sound {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(241, 231, 215, 0.08); border: 1px solid rgba(241, 231, 215, 0.2); color: var(--on-dark-soft); cursor: pointer;
}
.sound svg { width: 22px; height: 22px; }
.sound[aria-pressed="true"] .sound-off, .sound[aria-pressed="false"] .sound-on { display: none; }
.still { width: 100%; border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; }
.js3d .still { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.row { border: 0; margin: 0; padding: 0; min-width: 0; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.ctl-label { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.95rem; color: var(--on-dark); padding: 0; margin: 0 0 6px; }
.step-no {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 0.75rem; font-weight: 750; color: #1d1208; background: var(--brass-soft);
}
.pick-now { font-weight: 500; color: var(--on-dark-soft); }
.readout { margin: 0; text-align: right; white-space: nowrap; }
.r-big { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: #fbf3e6; font-variant-numeric: tabular-nums; }
.r-sub { font-size: 0.85rem; color: var(--on-dark-soft); font-stretch: 92%; }

.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: var(--s2); }
.step {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(241, 231, 215, 0.25); background: rgba(241, 231, 215, 0.06);
  color: var(--on-dark); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: transform 0.2s var(--spring), background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.step:active { transform: scale(0.88); background: rgba(241, 231, 215, 0.16); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--brass-soft) var(--fill), rgba(241, 231, 215, 0.16) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(241, 231, 215, 0.16); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--brass-soft); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: #fbf3e6; box-shadow: 0 0 0 5px rgba(226, 184, 110, 0.25), 0 3px 10px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s var(--spring);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fbf3e6; box-shadow: 0 0 0 5px rgba(226, 184, 110, 0.25), 0 3px 10px rgba(0, 0, 0, 0.6); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--espresso), 0 0 0 6px var(--brass-soft); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--espresso), 0 0 0 6px var(--brass-soft); }

.picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.disc {
  width: 44px; height: 44px; border-radius: 50%; display: block;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(241, 231, 215, 0.18);
  transition: transform 0.35s var(--spring), box-shadow 0.25s;
}
.pick:active .disc { transform: scale(0.9); }
.pick input:checked + .disc { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--night), 0 0 0 5px var(--brass-soft); }
.pick input:focus-visible + .disc { outline: 3px solid var(--brass-soft); outline-offset: 6px; }
.d-emerald { background: radial-gradient(circle at 30% 25%, #3f8f6a, #0f3d2a 60%, #062016 100%); }
.d-navy { background: radial-gradient(circle at 30% 25%, #5170b8, #172650 60%, #0b1430 100%); }
.d-mustard { background: radial-gradient(circle at 30% 25%, #f2c35e, #a8701a 58%, #5c3a08 100%); }
.d-champagne { background: radial-gradient(circle at 30% 25%, #f3dcc0, #a88d6c 60%, #5f4b37 100%); }
.d-rose { background: radial-gradient(circle at 30% 25%, #f6d3cf, #c28d8a 58%, #7a4f4d 100%); }
.d-teak { background: #a8703f center / 140px auto; }
.d-sheesham { background: #5a2e1c center / 140px auto; }
.d-rubber { background: #b9a487 center / 140px auto; }
/* the grain pictures load only once the tool is in use, so they never slow the first view */
.near .d-teak, html:not(.js) .d-teak { background-image: url("assets/3d/teak-diff.webp"); }
.near .d-sheesham, html:not(.js) .d-sheesham { background-image: url("assets/3d/sheesham-diff.webp"); }
.near .d-rubber, html:not(.js) .d-rubber { background-image: url("assets/3d/rubber-diff.webp"); }

.quote { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line-dark); }
.price { display: grid; gap: 0; min-width: 0; }
.price-value { font-weight: 750; font-stretch: 92%; font-size: 1.2rem; letter-spacing: -0.01em; color: #fbf3e6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-note { font-size: 0.78rem; color: var(--on-dark-soft); font-stretch: 90%; line-height: 1.3; }
.quote .btn { flex: none; min-height: 48px; padding: 0 18px; }
.drag-hint { display: none; }

/* ---------- 3D mode: the stage pins while the camera moves ---------- */
.js3d .stage { height: 280vh; height: 280svh; }
.js3d .stage-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; overflow: hidden; }
.js3d .scene { position: absolute; inset: 0; min-height: 0; }
.js3d .hero-copy { position: absolute; left: 0; right: 0; bottom: 0; opacity: var(--hero); transform: translate3d(0, calc((1 - var(--hero)) * -40px), 0); }
.js3d .stage.past-hero .hero-copy { pointer-events: none; }
.js3d .scroll-cue {
  display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-weight: 600; font-stretch: 85%; font-size: 0.78rem; color: var(--on-dark-soft); white-space: nowrap;
}
.scroll-cue span { width: 1px; height: 22px; background: linear-gradient(var(--brass-soft), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.js3d .hero-copy { padding-bottom: 64px; }

.js3d .tool {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); gap: 12px;
  background: linear-gradient(180deg, rgba(26, 17, 11, 0.9), rgba(16, 10, 6, 0.97));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px 22px 0 0; border-top: 1px solid rgba(226, 184, 110, 0.25);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: var(--tool); transform: translate3d(0, calc((1 - var(--tool)) * 60px), 0);
}
.js3d .stage:not(.at-tool) .tool { pointer-events: none; }
.js3d .tool h2 { font-size: 1.45rem; }
/* phone: each choice is one compact row, so the sofa stays in view */
@media (max-width: 959px) {
  .js3d .swatch-set { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 0 8px; }
  .js3d .picks { flex-wrap: nowrap; justify-content: flex-end; }
  .quote { display: grid; justify-content: stretch; gap: 8px; padding-top: 10px; }
  .price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .quote .btn { width: 100%; }
  .js3d .swatch-set legend { float: left; margin: 0; }
  .js3d .swatch-set .ctl-label { flex-wrap: wrap; row-gap: 0; }
  .js3d .pick-now { flex-basis: 100%; padding-left: 30px; font-size: 0.82rem; }
  .js3d .picks { grid-column: 2; gap: 8px; }
  .js3d .disc { width: 40px; height: 40px; }
  .js3d .pick { padding: 2px; }
}
@media (max-width: 379px) {
  .js3d .swatch-set { grid-template-columns: 92px 1fr; }
  .js3d .picks { gap: 5px; }
  .js3d .disc { width: 36px; height: 36px; }
  .js3d .price-note { display: none; }
}
.live .drag-hint {
  display: block; position: absolute; left: 50%; top: calc(var(--fd-h) + 12px); transform: translateX(-50%);
  margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(18, 11, 7, 0.55); color: var(--on-dark-soft);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap; opacity: calc(var(--tool) * 0.95); pointer-events: none;
}
.js3d .stage:not(.live).at-tool .still { display: block; position: absolute; left: 16px; right: 16px; bottom: calc(100% + 16px); width: auto; max-height: 34vh; }

@media (max-height: 700px) and (max-width: 959px) {
  .js3d .tool { gap: 9px; padding-top: 12px; }
  .js3d .tool h2 { font-size: 1.25rem; }
  .js3d .sound { width: 40px; height: 40px; }
  .js3d .price-note { display: none; }
}

/* ---------- Not just sofas: photos with shop price tags ---------- */
.pieces { padding: var(--s8) 0 var(--s7); background: var(--kota); position: relative; overflow: hidden; }
.pieces-head { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.pieces-head p { color: var(--ink-soft); max-width: 44ch; }
.gallery {
  list-style: none; margin: 0; padding: 46px var(--s4) var(--s5);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 340px); gap: var(--s4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--s4); scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
.piece { scroll-snap-align: start; }
.piece a {
  position: relative; display: block; text-decoration: none; color: var(--ink); border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}
.piece img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
  box-shadow: 0 2px 4px rgba(29, 26, 20, 0.18), 0 30px 50px -28px rgba(29, 26, 20, 0.6);
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.8s var(--ease), filter 0.6s;
}
html:not(.touch) .piece a:hover img { transform: scale(1.02); filter: saturate(1.05) contrast(1.04); }
/* the tag: kraft card on a string, pinned to the photo */
.ptag {
  position: absolute; left: 18px; top: -8px; width: 172px;
  display: grid; gap: 1px; padding: 26px 14px 12px 14px;
  background:
    radial-gradient(circle at 50% 13px, var(--kota) 0 4.5px, rgba(80, 50, 20, 0.5) 5px 5.6px, transparent 6px),
    repeating-linear-gradient(115deg, rgba(120, 80, 30, 0.04) 0 2px, transparent 2px 5px),
    linear-gradient(170deg, #e2c590, #cfa868);
  clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  transform-origin: 50% 13px;
  transform: rotate(var(--tilt, -4deg));
  filter: drop-shadow(0 6px 8px rgba(29, 18, 8, 0.4));
}
.piece:nth-child(even) .ptag { --tilt: 3deg; }
.piece a::before { /* brass pin the tag hangs from */
  content: ""; position: absolute; z-index: 2; left: calc(var(--hole) - 5px); top: -42px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1cf, #d4a75e 50%, #7d5a26);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}
.piece a::after { /* string */
  content: ""; position: absolute; z-index: 1; left: calc(var(--hole) - 0.75px); top: -37px; width: 1.5px; height: 42px; background: #4a3218;
}
.piece { --hole: 104px; }
.ptag-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.05; color: #2a1a0b; }
.ptag-kinds { font-size: 0.8rem; line-height: 1.3; color: #4d3518; font-stretch: 92%; }
.ptag-price { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(60, 35, 10, 0.45); font-weight: 750; font-size: 0.95rem; color: #2a1a0b; font-variant-numeric: tabular-nums; }
.piece a:hover .ptag, .piece a:focus-visible .ptag, .piece.swing .ptag { animation: swing 1.6s var(--ease); }
@keyframes swing {
  0% { transform: rotate(var(--tilt, -4deg)); }
  15% { transform: rotate(9deg); }
  35% { transform: rotate(-7deg); }
  55% { transform: rotate(4deg); }
  75% { transform: rotate(-2deg); }
  100% { transform: rotate(var(--tilt, -4deg)); }
}

/* ---------- Workshop story ---------- */
.story { position: relative; padding-top: var(--s8); }
.story-head { position: relative; z-index: 2; padding-bottom: var(--s6); }
.story-head p { margin-top: var(--s3); color: var(--on-dark-soft); max-width: 40ch; }
.story-media, .story-progress { display: none; }
.story-steps { list-style: none; margin: 0 auto; padding: 0 var(--s4) var(--s8); display: grid; gap: var(--s7); max-width: 1280px; counter-reset: st; }
.story-steps li { counter-increment: st; display: grid; gap: var(--s3); }
.story-fig { margin: 0; border-radius: 8px; overflow: hidden; }
.story-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-word { font-family: var(--display); font-size: clamp(4.4rem, 2rem + 12vw, 11rem); line-height: 0.85; letter-spacing: -0.02em; color: var(--brass-soft); }
.story-word::before { content: counter(st); font-family: var(--sans); font-weight: 700; font-size: 0.16em; letter-spacing: 0; vertical-align: top; margin-right: 0.5em; color: var(--on-dark-soft); }
.story-text h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.story-text p { margin-top: var(--s2); color: var(--on-dark-soft); max-width: 40ch; }
.story.pinned .story-track { height: 520vh; height: 520svh; position: relative; }
.story.pinned .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-stage { display: none; }
.story.pinned .story-stage { display: block; position: absolute; inset: 0; background: #0d0906; }
.story-poster, .story-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-poster { object-fit: cover; object-position: 50% 35%; }
.story-gl { opacity: 0; transition: opacity 0.8s var(--ease); }
.story-gl canvas { display: block; width: 100% !important; height: 100% !important; }
.story.live3d .story-gl { opacity: 1; }
.story.pinned .story-pin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(14, 9, 5, 0.92) 0%, rgba(14, 9, 5, 0.55) 26%, rgba(14, 9, 5, 0) 46%);
}
.story.pinned .story-steps { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0; display: block; }
.story.pinned .story-steps li { position: absolute; left: var(--s4); right: var(--s4); bottom: calc(var(--s7) + var(--bar-h)); visibility: hidden; }
.story.pinned .story-steps li.on { visibility: visible; }
.story.pinned .story-fig { display: none; }
.story.pinned .story-word, .story.pinned .story-text { transform: translateY(30px); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.6s; }
.story.pinned li.on .story-word, .story.pinned li.on .story-text { transform: none; opacity: 1; }
.story.pinned li.on .story-text { transition-delay: 0.08s; }
.story.pinned .story-word { font-size: clamp(3.4rem, 1.6rem + 8vw, 7.5rem); }
.story.pinned .story-progress { display: flex; gap: 6px; position: absolute; z-index: 3; top: calc(var(--fd-h) + var(--s3)); left: var(--s4); right: var(--s4); }
.story-progress button { flex: 1; min-height: 24px; padding: 10px 0; border: 0; background: transparent; cursor: pointer; display: block; --p: 0; }
.story-progress button span { display: block; height: 3px; border-radius: 2px; background: rgba(241, 231, 215, 0.22); overflow: hidden; position: relative; transition: height 0.2s; }
.story-progress button span::after { content: ""; position: absolute; inset: 0; background: var(--brass-soft); transform: scaleX(var(--p)); transform-origin: left; }
.story-progress button:hover span, .story-progress button:focus-visible span { height: 5px; }
.story-progress button:focus-visible { outline-offset: 2px; }
.story-skip { display: none; }
.story.pinned .story-skip {
  display: inline-flex; align-items: center; gap: 6px; position: absolute; z-index: 3; right: var(--s4); top: calc(var(--fd-h) + var(--s5) + 34px);
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(241, 231, 215, 0.28);
  background: rgba(14, 9, 5, 0.5); color: var(--on-dark-soft); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.story.pinned .story-skip:hover { color: var(--on-dark); border-color: rgba(241, 231, 215, 0.5); }


/* ---------- Knock on wood ---------- */
.wood { padding: var(--s8) 0; background: var(--kota-lo); }
.wood-head { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.wood-head p { color: var(--ink-soft); max-width: 40ch; }
.swatches {
  list-style: none; margin: 0; padding: 0 var(--s4) var(--s3);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: var(--s4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--s4); scrollbar-width: none; overscroll-behavior-x: contain;
}
.swatches::-webkit-scrollbar { display: none; }
.swatch { position: relative; scroll-snap-align: start; perspective: 1100px; aspect-ratio: 3 / 4; container-type: inline-size; }
.sw-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))) scale(var(--press, 1));
  transition: transform 0.8s var(--ease);
}
.swatch.flipped { --flip: 180deg; }
.swatch.knock .sw-inner { animation: knock 0.42s var(--spring); }
@keyframes knock { 0% { scale: 1; } 25% { scale: 0.95; } 60% { scale: 1.02; } 100% { scale: 1; } }
.ring { position: absolute; z-index: 4; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid rgba(255, 240, 210, 0.9); pointer-events: none; animation: ring 0.7s var(--ease) forwards; }
@keyframes ring { from { transform: scale(0.3); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.sw-face { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.sw-front {
  display: flex; flex-direction: column; justify-content: space-between; padding: var(--s5) var(--s4) var(--s4);
  box-shadow: 0 2px 3px rgba(40, 24, 12, 0.25), 0 26px 40px -22px rgba(40, 24, 12, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.sw-front::after {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 240, 210, 0.32), rgba(255, 240, 210, 0) 40%);
  transform: translate(var(--hx, -10%), var(--hy, -20%)); transition: transform 0.4s var(--ease); mix-blend-mode: soft-light;
}
.wd-teak .sw-front { background: #9c6334 center / cover; color: #fff7ea; }
.wd-sheesham .sw-front { background: #5e321e center / cover; color: #fff2e2; }
.wd-rubber .sw-front { background: #d9c3a0 center / cover; color: #3b2a19; }
.wd-eng .sw-front { background: #c9a77c center / cover; color: #33241a; }
.near .wd-teak .sw-front, html:not(.js) .wd-teak .sw-front { background-image: url("assets/swatch-teak.webp"); }
.near .wd-sheesham .sw-front, html:not(.js) .wd-sheesham .sw-front { background-image: url("assets/swatch-sheesham.webp"); }
.near .wd-rubber .sw-front, html:not(.js) .wd-rubber .sw-front { background-image: url("assets/swatch-rubberwood.webp"); }
.near .wd-eng .sw-front, html:not(.js) .wd-eng .sw-front { background-image: url("assets/swatch-engineered.webp"); }
.sw-word { position: relative; z-index: 1; font-family: var(--display); font-size: 24cqi; line-height: 0.9; letter-spacing: -0.01em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 -1px 0 rgba(0, 0, 0, 0.3); }
.sw-w-teak { font-size: 32cqi; }
.sw-w-sheesham { font-size: 19cqi; }
.sw-w-rubber span, .sw-w-ply span { display: block; }
.sw-w-ply { font-size: 21cqi; }
.sw-w-ply small { display: block; margin-top: 0.4em; font-family: var(--sans); font-size: 0.26em; font-weight: 700; letter-spacing: 0; }
.wd-teak .sw-word, .wd-sheesham .sw-word { text-shadow: 0 2px 12px rgba(40, 18, 4, 0.5); }
.sw-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--s3); font-weight: 650; font-size: 0.9rem; }
.wd-teak .sw-meta, .wd-sheesham .sw-meta { background: rgba(28, 16, 8, 0.6); color: #fff3e0; padding: 6px 10px; border-radius: 4px; align-self: flex-start; }
.wd-rubber .sw-meta, .wd-eng .sw-meta { background: rgba(255, 250, 240, 0.65); color: #33241a; padding: 6px 10px; border-radius: 4px; align-self: flex-start; }
.cost { display: inline-flex; gap: 3px; }
.cost b, .cost i { width: 14px; height: 6px; border-radius: 1px; background: currentColor; }
.cost i { opacity: 0.3; }
.sw-back {
  transform: rotateY(180deg); background: var(--kota-hi); color: var(--ink); padding: var(--s5) var(--s4);
  display: flex; flex-direction: column; gap: var(--s3);
  box-shadow: 0 2px 3px rgba(40, 24, 12, 0.2), 0 26px 40px -22px rgba(40, 24, 12, 0.55), inset 0 0 0 1px var(--line);
}
.sw-back h3 { font-family: var(--display); font-size: 2rem; line-height: 1; padding-bottom: var(--s2); border-bottom: 2px solid var(--brass); }
.sw-back p { font-size: 0.98rem; line-height: 1.5; }
.sw-mind { color: var(--ink-soft); }
.sw-mind span { display: block; font-weight: 700; font-size: 0.85rem; color: var(--brass-ink); }
.sw-flip { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: transparent; font-size: 1px; -webkit-tap-highlight-color: transparent; }
.sw-flip:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* ---------- Wall to home ---------- */
.order { padding: var(--s8) 0; background: var(--kota-hi); }
.order-head { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.order-head p { color: var(--ink-soft); }
.tape { list-style: none; margin: 0; padding: 0 0 0 56px; position: relative; counter-reset: step; }
.tape::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 30px; border-radius: 3px;
  background:
    repeating-linear-gradient(to bottom, rgba(29, 26, 20, 0.55) 0 1px, transparent 1px 8px) left / 8px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(29, 26, 20, 0.7) 0 1.5px, transparent 1.5px 40px) left / 14px 100% no-repeat,
    linear-gradient(90deg, #e9c47e, #c9a062);
  box-shadow: inset 0 0 0 1px rgba(90, 58, 34, 0.25);
}
.tape li { position: relative; padding-bottom: var(--s6); counter-increment: step; }
.tape li:last-child { padding-bottom: 0; }
.tape li::before {
  content: counter(step); position: absolute; left: -56px; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--espresso); color: var(--on-dark); font-weight: 750; font-size: 0.95rem; box-shadow: 0 0 0 3px var(--kota-hi);
}
.when { display: block; font-weight: 650; font-stretch: 85%; font-size: 0.88rem; color: var(--brass-ink); }
.tape h3 { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; margin: 2px 0 var(--s1); }
.tape p { color: var(--ink-soft); max-width: 36ch; }
.terms { margin: var(--s7) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
.terms div { padding: var(--s3) 0; border-top: 1.5px solid var(--ink); display: grid; gap: 2px; }
.terms dt { font-weight: 700; font-size: 0.9rem; }
.terms dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.4; }
.terms-note { margin-top: var(--s3); font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Visit ---------- */
.visit { padding: var(--s8) 0; }
.visit-grid { display: grid; gap: var(--s6); }
.visit-lede { margin-top: var(--s3); color: var(--on-dark-soft); max-width: 40ch; }
.visit-facts { margin: var(--s5) 0 0; display: grid; }
.visit-facts div { padding: var(--s3) 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 92px 1fr; gap: var(--s3); }
.visit-facts dt { font-weight: 700; font-size: 0.92rem; color: var(--brass-soft); padding-top: 2px; }
.visit-facts dd { margin: 0; }
.visit-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.visit-side { display: grid; gap: var(--s3); }
.map { margin: 0; border-radius: 12px; overflow: hidden; background: #2a1d13; box-shadow: inset 0 0 0 1px var(--line-dark); }
.map svg { display: block; width: 100%; height: auto; }
.m-land { fill: #2a1d13; }
.m-park { fill: #34361f; }
.m-water { fill: #1f2a33; }
.m-road-minor { fill: none; stroke: #3d2c1e; stroke-width: 7; }
.m-road { fill: none; stroke: #5a4330; stroke-width: 18; stroke-linecap: round; }
.m-rail { fill: none; stroke: #6c5a46; stroke-width: 3; }
.m-rail-ties { fill: none; stroke: #6c5a46; stroke-width: 8; stroke-dasharray: 1.5 7; }
.m-label { font-family: var(--sans); font-weight: 650; font-size: 13px; fill: #cdbda6; }
.m-small { font-size: 11px; font-weight: 600; }
.m-strong { font-family: var(--display); font-size: 20px; font-weight: 400; fill: var(--brass-soft); }
.m-stop rect { fill: #8aa070; }
.m-pin path { fill: var(--brass-soft); }
.m-pin-dot { fill: var(--espresso); }
.m-pulse { fill: rgba(226, 184, 110, 0.35); transform-origin: 0 -2px; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.visit-photo { width: 100%; border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { padding: var(--s8) 0; background: var(--kota); }
.faq-grid { display: grid; gap: var(--s5); }
.faq-head { display: grid; gap: var(--s3); }
.faq-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.faq-head p { color: var(--ink-soft); }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 60px; padding: var(--s3) 0; font-weight: 650; font-size: 1.05rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s4); color: var(--ink-soft); max-width: 60ch; }
.faq details[open] p { animation: reveal 0.35s var(--ease); }
@keyframes reveal { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.site-foot { padding: var(--s7) 0 calc(var(--s7) + var(--bar-h)); font-size: 0.95rem; color: var(--on-dark-soft); }
.foot-grid { display: grid; gap: var(--s5); }
.foot-brand { font-family: var(--display); font-size: 1.6rem; color: var(--on-dark); margin-bottom: var(--s1); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--on-dark); }
.foot-note { padding-top: var(--s4); border-top: 1px solid var(--line-dark); color: #b8a88f; }

/* ---------- Phone bar ---------- */
.mobile-bar {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 2.2fr; gap: var(--s2);
  padding: 6px var(--s3) calc(6px + env(safe-area-inset-bottom));
  background: rgba(14, 9, 5, 0.94); border-top: 1px solid rgba(226, 184, 110, 0.2);
  transition: transform 0.4s var(--ease);
}
.mobile-bar.away { transform: translateY(110%); }
.mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.98rem; transition: transform 0.2s var(--ease); }
.mobile-bar a:active { transform: scale(0.97); }
.mb-call { color: var(--on-dark); border: 1.5px solid rgba(241, 231, 215, 0.35); }
.mb-wa { color: #1d1208; background: linear-gradient(180deg, #f0cd8c 0%, #d4a75e 48%, #b88a45 100%); }
body { --bar-h: calc(60px + env(safe-area-inset-bottom)); }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .wrap { padding: 0 var(--s6); }
  .gallery, .swatches { padding-left: var(--s6); padding-right: var(--s6); scroll-padding: 0 var(--s6); }
  .story-steps { padding: 0 var(--s6) var(--s8); }
  .story.pinned .story-steps li { left: var(--s6); right: var(--s6); }
  .story.pinned .story-progress { left: var(--s6); right: var(--s6); }
  .story.pinned .story-skip { right: var(--s6); }
  .terms { grid-template-columns: repeat(4, 1fr); }
  .tool:not(.js3d .tool) { padding-left: var(--s6); padding-right: var(--s6); }
}

@media (min-width: 960px) {
  :root { --head-h: 76px; }
  body { --bar-h: 0px; }
  .mobile-bar { display: none; }
  .brand-sub { display: inline; }
  .menu-btn { display: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 550; font-size: 0.95rem; color: #e6dccd; border-radius: 999px; }
  .nav a:hover { color: #fff; background: rgba(241, 231, 215, 0.1); }
  .head-cta { display: inline-flex; }

  .scene-shade {
    background:
      radial-gradient(120% 100% at 60% 50%, transparent 50%, rgba(8, 5, 3, 0.6) 100%),
      linear-gradient(90deg, rgba(14, 9, 5, 0.9) 0%, rgba(14, 9, 5, 0.6) 32%, rgba(14, 9, 5, 0) 55%);
  }
  .hero-copy { align-self: center; padding: 0; }
  .js3d .hero-copy { top: 0; bottom: 0; display: flex; align-items: center; padding: 60px 0 0; }
  .hero-copy h1 { font-size: clamp(4rem, 1rem + 5.4vw, 7rem); max-width: 9.5ch; }
  .lede { font-size: 1.2rem; }

  /* without 3D: picture and controls side by side */
  .tool { grid-template-columns: 1.3fr 1fr; column-gap: var(--s7); max-width: 1280px; margin: 0 auto; width: 100%; padding: var(--s8) var(--s6); }
  .tool > * { grid-column: 2; }
  .tool .still { grid-column: 1; grid-row: 1 / span 6; align-self: start; position: sticky; top: 120px; }

  /* with 3D: a glass panel on the right, the room on the left */
  .js3d .tool {
    left: auto; right: 28px; top: auto; bottom: 28px; width: 380px;
    display: flex; flex-direction: column; gap: 18px; padding: 24px; margin: 0;
    border-radius: 20px; border: 1px solid rgba(226, 184, 110, 0.22);
    background: linear-gradient(180deg, rgba(30, 20, 13, 0.82), rgba(18, 11, 7, 0.9));
    transform: translate3d(calc((1 - var(--tool)) * 60px), 0, 0);
  }
  .js3d .tool > * { grid-column: auto; }
  .js3d .tool h2 { font-size: 2rem; }
  .js3d .scroll-cue { display: none; }
  .quote { flex-direction: column; align-items: stretch; }
  .quote .btn { width: 100%; }
  .price-value { font-size: 1.5rem; }
  .js3d .stage:not(.live).at-tool .still { left: 40px; right: 450px; bottom: auto; top: 22%; max-height: none; }
  .live .drag-hint { left: calc((100% - 420px) / 2); top: auto; bottom: 28px; }

  .pieces { padding: var(--s9) 0; }
  .pieces-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .gallery {
    max-width: 1280px; margin: 0 auto; overflow: visible;
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 80px 32px; padding-top: 50px;
  }
  .piece:nth-child(3n + 2) { transform: translateY(70px); }
  .piece:nth-child(3n) { transform: translateY(24px); }
  .gallery { padding-bottom: 90px; }
  .ptag { width: 190px; }
  .piece { --hole: 113px; }

  .story.pinned .story-steps li { right: auto; width: min(560px, 46vw); }
  .story:not(.pinned) .story-steps li { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr auto auto; column-gap: var(--s7); row-gap: var(--s2); }
  .story:not(.pinned) .story-fig { grid-row: 1 / span 3; }
  .story:not(.pinned) .story-word { grid-row: 2; grid-column: 2; }
  .story:not(.pinned) .story-text { grid-row: 3; grid-column: 2; }
  .story:not(.pinned) .story-word { font-size: clamp(4rem, 2rem + 4vw, 7rem); }
  .wood { padding: var(--s9) 0; }
  .wood-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .swatches { max-width: 1280px; margin: 0 auto; overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }

  .order { padding: var(--s9) 0; }
  .order-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .tape { padding: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
  .tape::before {
    left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 30px;
    background:
      repeating-linear-gradient(to right, rgba(29, 26, 20, 0.55) 0 1px, transparent 1px 8px) top / 100% 8px no-repeat,
      repeating-linear-gradient(to right, rgba(29, 26, 20, 0.7) 0 1.5px, transparent 1.5px 40px) top / 100% 14px no-repeat,
      linear-gradient(180deg, #e9c47e, #c9a062);
  }
  .tape li { padding-bottom: 0; }
  .tape li::before { left: 0; top: -64px; width: 36px; height: 36px; margin-top: -3px; }

  .visit { padding: var(--s9) 0; }
  .visit-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
  .visit-photo { aspect-ratio: 21 / 9; }
  .faq { padding: var(--s9) 0; }
  .faq-grid { grid-template-columns: 4fr 8fr; gap: var(--s7); }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
  .foot-note { grid-column: 1 / -1; }
}

@media (min-width: 960px) and (max-height: 760px) {
  .js3d .tool { gap: 12px; padding: 18px 20px; }
  .js3d .tool h2 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .sw-inner { --rx: 0deg !important; --ry: 0deg !important; }
  .piece:nth-child(n) { transform: none; }
}
