:root {
  --bg: #ece7df;
  --bg-2: #e4ddd2;
  --paper: #f4f0ea;
  --ink: #2a2622;
  --ink-2: #5a524a;
  --line: #cfc6b9;
  --accent: #c4552d;
  --accent-ink: #a8431f;
  --accent-btn: #b84e28;
  --sage: #8aa39b;
  --felt: #8aa39b;
  --felt-edge: #6f877f;
  --r-sm: 5px;
  --r-lg: 6px;
  --display: "Zen Maru Gothic", "Albert Sans", system-ui, sans-serif;
  --text: "Albert Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.005em; overflow-wrap: break-word; min-width: 0; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
.defs { position: absolute; }
.wrap { width: min(1320px, 100% - 64px); margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 5px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.btn-accent { background: var(--accent-btn); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-quiet { background: var(--bg-2); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--bg); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin-left: -4px; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; text-decoration: none; line-height: 1; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-2); padding: 10px 0; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.wordmark:hover { color: var(--accent-ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.basket-btn { min-height: 44px; padding: 0 14px; border: 0; background: none; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; border-radius: 5px; }
.basket-btn:hover { background: var(--bg-2); }
.basket-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 4px; background: var(--ink); color: var(--bg); font-size: 14px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.basket-count.bump { background: var(--accent-ink); color: #fff; }

/* hero */
.hero { padding: 28px 0 40px; min-height: calc(100dvh - 72px); display: flex; align-items: flex-start; }
.hero > .wrap { display: flex; flex-direction: column; gap: 26px; }
.hero-head { display: grid; gap: 12px; }
h1 { font-size: clamp(38px, 4.4vw, 80px); line-height: 1.08; letter-spacing: -0.01em; }
.hero-sub { font-size: 19px; color: var(--ink-2); max-width: 72ch; text-wrap: pretty; }

.stage {
  display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
}
.room { position: relative; aspect-ratio: 4 / 3; background: #d8cfc2; }
.room img, .room-panels { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-panels { pointer-events: none; }
.room-panels .panel {
  transform-box: fill-box; transform-origin: center;
  transition: transform .8s var(--ease), opacity .45s ease;
  transition-delay: var(--d, 0ms);
}
.stage[data-panels="off"] .room-panels .panel { opacity: 0; transform: translate(var(--fx, 0), var(--fy, -24px)); transition-delay: calc(var(--d, 0ms) / 3); }
.felt, .room-panels .panel polygon { fill: var(--felt); stroke: var(--felt-edge); stroke-width: .8; filter: url(#felt); transition: fill .4s ease, stroke .4s ease; }

.play {
  position: absolute; left: 51.9%; top: 80.5%; translate: -50% -50%;
  width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(42, 38, 34, .22);
  transition: background-color .18s;
}
.play:hover { background: var(--accent-ink); }
.play svg { width: 44px; height: 44px; fill: currentColor; }
.play .i-wave { display: none; }
.play.is-playing .i-play { display: none; }
.play.is-playing .i-wave { display: inline; }

.rail { padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rail-title { font-size: 30px; }
.rail-note { color: var(--ink-2); font-size: 16px; }

.switch {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  min-height: 48px; padding: 4px 4px; border: 0; background: none; cursor: pointer; font-weight: 600;
}
.switch-label { color: var(--ink-2); transition: color .2s; }
.switch[aria-checked="false"] [data-off], .switch[aria-checked="true"] [data-on] { color: var(--ink); }
.switch-track { width: 66px; height: 36px; border-radius: 5px; background: var(--line); position: relative; transition: background-color .25s; }
.switch-knob { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 3px; background: #fff; box-shadow: 0 1px 3px rgba(42, 38, 34, .25); transition: transform .3s var(--ease); }
.switch[aria-checked="true"] .switch-track { background: var(--accent); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(30px); }

.wave { margin: 8px 0 0; display: grid; gap: 6px; }
.wave-box { position: relative; aspect-ratio: 600 / 250; }
.wave-box canvas, .wave-static { position: absolute; left: 0; right: 0; bottom: 0; top: 26px; width: 100%; height: calc(100% - 26px); }
.wave-static .s-off { fill: var(--ink); }
.wave-static .s-on { fill: var(--accent); }
.wave-static .s-mid { stroke: rgba(42, 38, 34, .25); stroke-width: 1; }
.wave-static .s-rt { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.wave-static .s-rt-on { stroke: var(--accent-ink); }
.rt-tag { position: absolute; top: 0; transform: translateX(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 20px; }
.rt-tag-on { color: var(--accent-ink); transform: translateX(-12%); }
.stage[data-panels="on"] .rt-tag-off, .stage[data-panels="off"] .rt-tag-on { opacity: .6; }
.furn-l polygon, .furn-l rect, .furn-l circle { fill: #ddd0c4; }
.furn-l * { stroke: #3a3530; stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; }
.rays path { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }
.rays .src { fill: var(--accent); opacity: 0; }
.js .wave-static { display: none; }
html:not(.js) .wave-box canvas { display: none; }
.wave-axis { position: relative; height: 22px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wave-axis span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.wave-axis span::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 5px; background: var(--ink-2); }
.wave-axis span:first-child { transform: none; }
.wave-note { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.wave-axis span:first-child::before { left: 0; }
.readout { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.readout-label { font-weight: 600; }
.readout-vals { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; }
.rt { transition: color .3s; }
.stage[data-panels="off"] .rt-on, .stage[data-panels="on"] .rt-off { color: #7d7469; }
.stage[data-panels="on"] .rt-on { color: var(--accent-ink); }
.arrow { width: 26px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: #7d7469; }

/* spec label */
.numbers { padding: 40px 0 24px; }
.spec-label { margin: 0; display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; border-block: 2px solid var(--ink); padding: 16px 0; }
.spec-label > div { padding: 0 22px; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.spec-label > div:first-child { padding-left: 0; border-left: 0; }
.spec-label > div:last-child { padding-right: 0; }
.spec-label dt { font-size: 15px; color: var(--ink-2); }
.spec-label dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.spec-label dd.sub { font-family: var(--text); font-weight: 400; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
/* sections */
section[id] { scroll-margin-top: 80px; }
:root { --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px; --s7: 136px; }
.layout { padding: var(--s6) 0 var(--s6); }
.panels { padding: var(--s5) 0 var(--s6); }
.colours { padding: var(--s6) 0; }
.shipping { padding: var(--s7) 0; }
.sec-title { font-size: clamp(34px, 3.8vw, 56px); letter-spacing: -0.005em; }
.sec-lead { margin-top: 14px; font-size: 19px; color: var(--ink-2); max-width: 54ch; }

/* layout planner */
.layout-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-top: 44px; align-items: start; }
.planner fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.planner legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dims legend { grid-column: 1 / -1; }
.dims label { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.dims input {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1.5px solid #b9ae9f; background: var(--paper); font-size: 20px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dims input:hover { border-color: #8d8274; }
.dims input:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.dims input[aria-invalid="true"] { border-color: var(--accent); }
.field-error { color: var(--accent-ink); font-weight: 600; font-size: 15px; min-height: 0; margin: -10px 0 14px; }
.field-error:empty { display: none; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--bg-2); border-radius: 5px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:hover span { color: var(--ink); background: rgba(255, 255, 255, .5); }
.seg input:checked + span, .seg label:hover input:checked + span { background: var(--ink); color: var(--bg); }
.seg span { display: grid; place-items: center; min-height: 46px; border-radius: 3px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.result { margin-top: 30px; padding-top: 26px; border-top: 2px solid var(--ink); display: grid; gap: 14px; justify-items: start; }
.rt-pair { display: flex; align-items: center; gap: 22px; }
.rt-pair p { display: grid; gap: 2px; }
.rt-pair .k { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.rt-pair strong { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.rt-pair .accent { color: var(--accent-ink); }
.arrow-lg { width: 34px; height: 18px; margin-top: 18px; }
.set-line { font-size: 19px; font-weight: 600; }
.total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.total [data-total] { font-family: var(--display); font-weight: 700; font-size: 30px; }
.muted { color: var(--ink-2); }
.added { color: var(--ink); font-weight: 600; }

.plan { background: var(--paper); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 18px; }
.plan-svg { width: 100%; height: auto; max-height: 380px; display: block; }
.plan-svg text { font-family: var(--text); font-size: 19px; fill: var(--ink-2); }
.plan-svg .room-wall { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.plan-svg .floor { fill: #ebe4da; }
.plan-svg .furn { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.plan-svg .chair { fill: var(--ink); }
.plan-svg .spk { fill: var(--ink-2); }
.plan-svg .ray { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 4; opacity: .85; }
.plan-svg .cloud { fill: var(--felt); fill-opacity: .35; stroke: var(--felt-edge); stroke-width: 1.5; stroke-dasharray: 6 4; transition: fill .4s, stroke .4s; }
.plan-svg .p { fill: var(--felt); stroke: var(--felt-edge); stroke-width: 1; transition: fill .4s, stroke .4s; }
.plan-svg .dim { fill: var(--ink-2); font-size: 19px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.legend li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.legend b { font-weight: 600; white-space: nowrap; }
.plan-note { font-size: 15px; color: var(--ink-2); }

/* panels */
.studio img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-lg); margin-top: 40px; background: #d8cfc2; }
.t-size { font-weight: 600; }
.t-price { font-family: var(--display); font-weight: 700; font-size: 32px; font-variant-numeric: tabular-nums; }
.scale { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--ink-2); font-size: 15px; }
.scale-bar { width: calc(50 / 396 * min(1320px, 100vw - 64px)); height: 8px; border: 2px solid var(--ink); border-top: 0; flex: none; }

/* colours */
.colours { background-color: var(--bg-2); 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.colours-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.felt-photo img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 1; object-fit: cover; background: #d8cfc2; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.swatches button {
  --felt: var(--sw); --felt-edge: rgba(42, 38, 34, .25);
  display: grid; grid-template-rows: auto auto auto; align-content: start; gap: 4px;
  padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.dot { width: 100%; height: auto; aspect-ratio: 3 / 4; display: block; margin-bottom: 10px; border-radius: 4px; outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .2s; }
.swatches button:hover .dot { outline-color: var(--line); }
.swatches button[aria-checked="true"] .dot { outline-color: var(--ink); }
.swatches button:focus-visible { outline: none; }
.swatches button:focus-visible .dot { outline: 3px solid var(--accent); }
.sw-name { font-family: var(--display); font-weight: 700; font-size: 19px; }
.sw-note { color: var(--ink-2); font-size: 15px; line-height: 1.4; }

/* shipping */
.shipping-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.ship-big { margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; max-width: 24ch; text-wrap: balance; color: var(--ink); }
.ship-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); padding-top: var(--s3); border-top: 2px solid var(--ink); }
.ship-list dt { font-family: var(--display); font-weight: 700; font-size: 21px; margin-bottom: 4px; }
.ship-list dd { margin: 0; color: var(--ink-2); max-width: 36ch; }

/* footer */
.foot { background: var(--ink); color: #e9e3da; padding: 64px 0 34px; }
.foot-top { display: grid; grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.foot-mark { font-size: 56px; color: #f1ece4; min-height: 0; margin: -6px 0 0; }
.foot-say { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.35; color: #f1ece4; max-width: 44ch; }
.foot-say a, .nw { white-space: nowrap; }
.foot-addr { color: #d6cec3; line-height: 1.6; padding-top: 6px; }
.foot a { color: #f1ece4; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: #e7a184; }
.foot a:hover { color: #fff; }
.foot :focus-visible { outline-color: #e7a184; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #4a443d; font-size: 14px; color: #bdb4a8; }

/* basket */
.basket { width: min(460px, 100% - 32px); border: 0; border-radius: var(--r-lg); padding: 30px; background: var(--paper); color: var(--ink); }
.basket::backdrop { background: rgba(42, 38, 34, .45); }
.basket h2 { font-size: 28px; margin-bottom: 18px; }
.basket-close-form { position: absolute; top: 14px; right: 14px; }
.x { width: 44px; height: 44px; border: 0; border-radius: 5px; background: var(--bg-2); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.b-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.b-qty { display: inline-flex; align-items: center; gap: 4px; }
.b-qty button { width: 44px; height: 44px; border: 0; border-radius: 5px; background: var(--bg-2); cursor: pointer; font-size: 20px; font-weight: 600; }
.b-qty span { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.b-sum { display: grid; gap: 4px; padding: 14px 0; }
.b-sum p { display: flex; justify-content: space-between; }
.b-sum .b-total { font-family: var(--display); font-weight: 700; font-size: 24px; }
.b-empty { color: var(--ink-2); padding: 6px 0 16px; }
.checkout { display: grid; gap: 8px; margin-top: 8px; }
.checkout label { font-weight: 600; }
.checkout select { min-height: 50px; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid #b9ae9f; background: #fff; font: inherit; color: inherit; }
.checkout input { min-height: 50px; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid #b9ae9f; background: #fff; }
.checkout input::placeholder { color: #7d7468; }
.checkout .field-error { margin: 0; }
.checkout .btn { margin-top: 6px; }
.done { font-weight: 600; line-height: 1.5; }

/* motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
}

/* tablet */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { padding: 26px 24px 24px; }
}

/* phone */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-in { height: 64px; gap: 10px; }
  .wordmark { font-size: 26px; }
  .nav-cta { padding: 0 16px; font-size: 15px; }
  .basket-btn { padding: 0 8px; }
  .hero { min-height: 0; padding-top: 18px; }
  .hero > .wrap { gap: 20px; }
  .hero-sub { font-size: 17px; }
  .play { width: 60px; height: 60px; top: 84%; }
  .play svg { width: 30px; height: 30px; }
  .rail { padding: 22px 18px 20px; gap: 14px; }
  .rail-title { font-size: 26px; }
  .readout-vals { font-size: 24px; }
  .spec-label { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .spec-label > div, .spec-label > div:first-child, .spec-label > div:last-child { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .spec-label > div:nth-child(-n+2) { border-top: 0; }
  .spec-label > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .layout, .panels, .colours, .shipping { padding: var(--s5) 0; }
  .sec-lead { font-size: 17px; }
  .layout-grid, .colours-grid, .shipping-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .plan { padding: 16px; }
  .plan-svg text, .plan-svg .dim { font-size: 22px; }
  .felt-photo { order: 2; }
  .legend { grid-template-columns: minmax(0, 1fr); }
  .rt-pair strong { font-size: 40px; }
  .studio img { aspect-ratio: 720 / 819; }
  .swatches { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .swatches button { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 16px; padding: 6px 0; min-height: 68px; align-items: center; }
  .dot { width: 48px; height: 60px; grid-row: 1 / span 2; margin: 0; }
  .ship-list { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .studio img { object-position: 50% 30%; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .foot-mark { font-size: 44px; }
  .basket { padding: 24px 18px; }
}
@media (max-width: 380px) {
  .nav-cta { display: none; }
}

/* wide screens: more room for the hero and every section */
@media (min-width: 1600px) {
  .wrap { width: min(1560px, 100% - 128px); }
  body { font-size: 18px; }
  .rail { padding: 44px 44px 38px; gap: 22px; }
  .rail-title { font-size: 36px; }
  .readout-vals { font-size: 36px; }
  .studio img { aspect-ratio: 16 / 6.4; }
  .stage { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
  .wave-box { aspect-ratio: 600 / 300; }
}

/* scroll-driven reveals, only where supported; content is visible without them */
/* transform only: nothing is ever hidden, even if the timeline never runs */
@keyframes rise { from { transform: translateY(26px); } to { transform: none; } }
@keyframes drop { from { transform: translateY(-28px) rotate(-1.5deg); } to { transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear forwards; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* the panels: one scale drawing on a shared shelf line, captions under each piece */
.shelf { margin-top: var(--s4); }
.shelf-svg { display: block; width: 100%; height: auto; overflow: visible; }
.shelf-line { fill: var(--ink); }
.shelf-ticks line { stroke: var(--ink-2); stroke-width: 0.5; }
.shelf-piece { transform-box: fill-box; transform-origin: 50% 100%; }
.shelf-caps { display: grid; grid-template-columns: var(--cols); margin-top: var(--s3); }
.cap { display: grid; justify-items: start; gap: 4px; padding-right: 24px; }
.cap-1 { grid-column: 2 / 4; } .cap-2 { grid-column: 4 / 6; } .cap-3 { grid-column: 6 / 8; }
.cap h3 { font-size: 30px; }
.cap .t-size { color: var(--ink-2); font-weight: 400; max-width: 30ch; }
.cap .t-price { margin: 6px 0 8px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shelf-piece { animation: drop linear forwards; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .shelf-piece:nth-child(2) { animation-range: entry 4% entry 50%; }
    .shelf-piece:nth-child(3) { animation-range: entry 8% entry 55%; }
  }
}
@media (max-width: 767px) {
  .shelf-caps { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .cap-1, .cap-2, .cap-3 { grid-column: 1; padding-right: 0; }
  .cap { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; padding-top: var(--s3); border-top: 1px solid var(--line); }
  .cap h3, .cap .t-size { grid-column: 1; }
  .cap .t-price { grid-column: 2; grid-row: 1; margin: 0; }
  .cap .btn { grid-column: 1 / -1; width: 100%; margin-top: 8px; }
  .cap h3 { font-size: 24px; }
}
@media (min-width: 1600px) { .scale-bar { width: calc(50 / 396 * min(1560px, 100vw - 128px)); } }
@media (max-width: 767px) { .scale-bar { width: calc(50 / 396 * (100vw - 32px)); } }
@media (min-width: 768px) and (max-width: 1100px) { .foot-top { grid-template-columns: auto minmax(0, 1fr); } .foot-addr { grid-column: 2; } }

/* customer photo caption, mounting note, dated colour note */
.studio-fig { margin: 0; }
.studio-fig figcaption { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.mount { margin-top: var(--s5); max-width: 60ch; color: var(--ink-2); }
.colour-note { margin-top: 24px; color: var(--ink-2); max-width: 52ch; }
.colour-note span { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; }
