:root {
  color-scheme: light;
  --paper:#faf8f2;
  --ink:#243124;
  --muted:#52584b;
  --stroke:#d9d5c7;
  --cream:#f2ebd9;
  --orange:#b84a2b;
  --olive:#31472e;
  font-family:"Helvetica Neue",Helvetica,"Hiragino Sans","Yu Gothic",sans-serif;
}
* {box-sizing:border-box}
body {margin:0;background:var(--paper);color:var(--ink);line-height:1.6}
[hidden] {display:none !important}
p,h1,h2,h3,figure,dl,dd {margin:0}
button,input,select {font:inherit;color:inherit}
button,summary,input[type="range"],select {cursor:pointer}
a {color:inherit;text-underline-offset:.22em}
:focus-visible {outline:2px solid var(--orange);outline-offset:4px}

.masthead,main {width:min(1192px,calc(100% - 76px));margin-inline:auto}
.masthead {display:flex;gap:14px;justify-content:space-between;align-items:center;min-height:68px;border-bottom:1px solid var(--stroke);font-size:14px;font-weight:650}
.masthead a {text-decoration:none}
.masthead a:hover {text-decoration:underline}
.wordmark {display:inline-flex;align-items:center;gap:10px}
.wordmark-symbol {width:22px;height:15px;border:2px solid var(--olive);border-radius:50%;transform:rotate(-24deg)}
.intro {display:grid;grid-template-columns:1fr auto;align-items:end;gap:20px;margin:33px 0 27px}
h1 {font-size:clamp(42px,5.9vw,81px);letter-spacing:-.075em;line-height:1.06;font-weight:750}
.intro p {max-width:39ch;margin-bottom:.22em;color:var(--muted);font-size:16px}

.workbench {display:grid;grid-template-columns:1.13fr 1fr;gap:14px;align-items:stretch}
.room-photo {position:relative;min-width:0;min-height:100%;overflow:hidden;background:#dccdb7;border-radius:50px 50px 164px 50px}
.room-photo img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 57%}
figcaption {position:absolute;inset:auto auto 18px 24px;background:#fbf5eae8;color:var(--ink);padding:4px 12px;border-radius:24px;font-size:12px}
.instrument {min-width:0;display:flex;flex-direction:column;gap:12px;padding:23px 26px 17px;background:var(--cream);border:1px solid #e8e1d0;border-radius:46px 46px 46px 95px}
.instrument-top {display:flex;align-items:center;justify-content:space-between;gap:10px}
.instrument h2 {font-size:clamp(18px,2vw,24px);letter-spacing:-.04em}
.height-readout {display:inline-flex;align-items:baseline;gap:.22em;color:var(--olive);font-size:clamp(33px,4.4vw,54px);line-height:1;letter-spacing:-.065em;font-weight:680;font-variant-numeric:tabular-nums}
.height-readout small {font-size:.37em;letter-spacing:0}
.stage {border-radius:28px;background:#f9f4e7;overflow:hidden}
.stage-drawing {display:block;width:100%;height:clamp(93px,10vw,140px)}
.stage-result {min-height:40px;padding:4px 14px 10px;text-align:center;color:var(--olive);font-size:14px;font-weight:650}
.stage-result[data-state="size"],.stage-result[data-state="close"] {color:#893e23}
#robot-shape {transition:transform .32s cubic-bezier(.23,.75,.28,1)}
.height-input {display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:14px;align-items:start}
.ruler-control label,.numeric {font-size:13px;font-weight:650}
.ruler-ends {display:flex;justify-content:space-between;color:var(--muted);font-size:11px}
input[type="range"] {display:block;width:100%;height:26px;margin:1px 0 0;accent-color:var(--orange)}
.numeric {display:block;min-width:0}
.numeric span {display:flex;align-items:center;gap:6px;margin-top:2px}
.numeric input {min-width:0;width:100%;padding:3px 6px;border:1px solid #cfc4ad;border-radius:9px;background:#faf5e8;font-size:19px;line-height:1.55;font-weight:650;font-variant-numeric:tabular-nums}
.workbench-row {display:flex;flex-wrap:wrap;gap:11px;align-items:end;justify-content:space-between}
.model-picker {display:flex;flex:1;flex-direction:column;min-width:125px;font-size:13px;font-weight:650}
.model-picker select {min-width:0;width:100%;min-height:36px;margin-top:2px;padding:4px 7px;border:1px solid #cfc4ad;border-radius:8px;background:#f9f4e7;font-size:13px}
.result-jump {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 17px;border-radius:28px;background:var(--olive);color:white;text-decoration:none;font-weight:680;font-size:14px}
.result-jump:hover {background:#435c40}
details {padding-top:7px;border-top:1px solid #dcd1b9}
summary {font-size:14px;font-weight:650}
.dock-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.small {margin-top:7px;color:var(--muted);font-size:12px}
.presets {display:flex;gap:6px;flex-wrap:wrap}
.presets button {min-height:35px;padding:5px 9px;border:1px solid #cfc4ad;border-radius:17px;background:transparent;font-size:12px}
.presets button:hover,.presets button[aria-pressed="true"] {background:#fff8ea;border-color:var(--orange)}

.catalog {margin-top:52px;scroll-margin-top:18px}
.catalog-heading {display:flex;gap:16px;justify-content:space-between;align-items:baseline;margin-bottom:13px}
.catalog h2 {font-size:clamp(25px,3.1vw,42px);letter-spacing:-.05em}
.summary {color:var(--muted);font-size:14px}
.filters {display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:10px;margin-bottom:14px}
.filters label {display:grid;min-width:0;gap:3px;color:var(--muted);font-size:13px;font-weight:600}
.filters input,.filters select {width:100%;min-width:0;min-height:43px;padding:7px 10px;border:1px solid var(--stroke);border-radius:13px;background:#fffdf7;color:var(--ink);font-size:15px}
.disclosure {margin:8px 0;font-size:14px}
.models {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.product {display:grid;grid-template-columns:123px minmax(0,1fr);gap:13px;min-width:0;padding:13px;border:1px solid var(--stroke);border-radius:24px;background:#fffdf7;scroll-margin-top:18px}
.product:target {outline:2px solid var(--orange);outline-offset:2px}
.schematic {display:flex;min-height:154px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:8px 6px;border-radius:65px 27px 28px 29px;background:#ece8d8;color:var(--olive)}
.schematic svg {display:block;width:100%;max-width:101px}
.schematic figcaption {position:static;padding:0;background:none;color:var(--muted);font-size:11px}
.product-copy {display:flex;flex-direction:column;min-width:0;align-items:start}
.brand {display:block;margin:0 0 1px;color:var(--muted);font-size:12px;font-weight:550}
h3 {margin:0;font-size:clamp(16px,1.7vw,22px);line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
.flag {margin-top:8px;color:var(--olive);font-size:13px;font-weight:690}
[data-state="size"] .flag,[data-state="close"] .flag {color:#893e23}
.reason,.use {margin-top:2px;color:var(--muted);font-size:13px;line-height:1.45}
.product dl {width:100%;display:flex;flex-wrap:wrap;column-gap:11px;row-gap:4px;border-top:1px solid var(--stroke);margin:7px 0 8px;padding-top:5px;font-size:13px;font-variant-numeric:tabular-nums}
.product dt {color:var(--muted);font-size:11px}
.links {display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;margin-top:auto}
.links a {display:inline-flex;align-items:center;min-height:40px;font-size:12px}
.shop {padding:6px 10px;border:1px solid var(--olive);border-radius:20px;background:var(--olive);color:white;text-decoration:none;font-weight:650}
.shop:hover {background:#435c40}
.reason:empty {display:none}
footer {display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:28px 0 40px;padding-top:15px;border-top:1px solid var(--stroke);font-size:13px;color:var(--muted)}
@media(max-width:930px) {
  .masthead,main {width:calc(100% - 44px)}
  .product {grid-template-columns:95px minmax(0,1fr)}
  .intro {grid-template-columns:1fr auto}
  .intro p {max-width:29ch}
  .desktop-break {display:none}
  .instrument {padding:18px 18px 15px;border-radius:32px 32px 32px 62px}
}
@media(max-width:680px) {
  .masthead,main {width:calc(100% - 28px)}
  .masthead {min-height:54px;font-size:13px}
  .intro {grid-template-columns:1fr;gap:9px;margin:22px 0 15px}
  h1 {font-size:clamp(39px,11vw,60px)}
  .intro p {font-size:14px;max-width:46ch}
  .workbench {display:flex;flex-direction:column;gap:9px}
  .room-photo {order:2;aspect-ratio:1.76;min-height:0;border-radius:30px 26px 84px 28px}
  .instrument {order:1;gap:9px;padding:14px 13px 12px;border-radius:30px 30px 30px 48px}
  .room-photo img {object-position:center 62%}
  .room-photo figcaption {inset:auto auto 12px 14px}
  .height-input {grid-template-columns:1fr 98px;gap:10px}
  .stage-drawing {height:104px}
  .catalog {margin-top:31px}
  .catalog-heading {display:block;margin-bottom:8px}
  .filters {grid-template-columns:1fr 1fr}
  .filters label:first-child {grid-column:1 / -1}
  .models {grid-template-columns:1fr}
  .product {grid-template-columns:86px minmax(0,1fr);gap:9px;padding:10px}
  footer {grid-template-columns:1fr;gap:7px}
}
@media(prefers-reduced-motion:reduce) { #robot-shape {transition:none} }
