/* Wellborn Joinery
   Layout: left-aligned, wide headlines over a slate ground; drawings to scale carry the colour;
   a tape-measure strip is the one recurring device (hero edge and designer progress). */
:root {
  color-scheme: light;
  --ink: #0a0a09;        /* the black behind the Wellborn logo */
  --ink-2: #24211d;
  --ink-soft: #57534c;
  --paper: #edebe6;      /* warm board white */
  --board: #ffffff;
  --rule: #d3cfc6;
  --tape: #f0a81c;       /* tape-measure yellow, warmed toward the timber in the logo */
  --tape-deep: #c98510;
  --tape-ink: #1b1a10;
  --dim: #1f6f9c;        /* dimension-line blue */
  --ok: #1f7a4d;
  --bad: #b3261e;
  --on-ink: #f4f2ee;
  --on-ink-soft: #b9b4aa;
  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;                 /* reading text, buttons, sizes */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;  /* headings */
  --r: 6px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1273de; outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 700; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; max-width: 34em; }
.fine { font-size: 0.875rem; color: var(--ink-soft); max-width: 46em; }
.fine--light { color: var(--on-ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tape); color: var(--tape-ink); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 2px solid transparent; border-radius: var(--r); font-weight: 700; text-decoration: none; line-height: 1.15; text-align: center; transition: transform .12s, background-color .12s; }
.btn:active { transform: translateY(1px); }
.btn--big { min-height: 56px; padding: 14px 26px; font-size: 1.125rem; }
.btn--tape { background: var(--tape); color: var(--tape-ink); }
.btn--tape:hover { background: #ffbd3f; }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--on-ink-soft); color: var(--on-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--on-ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: rgba(10, 10, 9, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-head { background: var(--ink); color: var(--on-ink); position: relative; z-index: 30; }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
.brand img { display: block; height: 64px; width: auto; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--tape); }
.site-nav__phone { font-variant-numeric: tabular-nums; }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--on-ink-soft); color: var(--on-ink); border-radius: var(--r); min-height: 44px; padding: 6px 16px; font-weight: 700; }
@media (max-width: 900px) {
  .brand img { height: 46px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .site-nav .btn { margin-top: 10px; }
}
@media (min-width: 901px) { .site-head { position: sticky; top: 0; } }

/* ---------- tape measure ---------- */
.tape { position: relative; height: 38px; overflow: hidden; background-color: var(--tape); color: var(--tape-ink);
  background-image:
    repeating-linear-gradient(90deg, var(--tape-ink) 0 2px, transparent 2px 100px),
    repeating-linear-gradient(90deg, var(--tape-ink) 0 1.5px, transparent 1.5px 50px),
    repeating-linear-gradient(90deg, var(--tape-ink) 0 1px, transparent 1px 10px);
  background-size: 100% 20px, 100% 13px, 100% 7px; background-repeat: no-repeat; border-block: 2px solid var(--tape-ink); }
.tape span { position: absolute; top: 15px; transform: translateX(5px); font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.tape--progress { height: 22px; background: var(--board); border: 2px solid var(--ink); border-radius: 3px; margin-block: 14px 28px; }
.tape__fill { height: 100%; width: 25%; background-color: var(--tape); border-right: 6px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--tape-ink) 0 1.5px, transparent 1.5px 50px), repeating-linear-gradient(90deg, var(--tape-ink) 0 1px, transparent 1px 10px);
  background-size: 100% 12px, 100% 6px; background-repeat: no-repeat; transition: width .35s ease; }

/* ---------- drawings ---------- */
.wb-room, .wb-plan { display: block; width: 100%; height: auto; }
[data-part] { transition: fill .45s ease; }
.wb-dim { font-family: var(--font); font-weight: 700; font-variant-numeric: tabular-nums; }
.wb-plan [data-cab] { cursor: pointer; }
.can-move .sheet, .can-move .wb-plan { user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.can-move .wb-plan [data-cab] { cursor: grab; touch-action: pan-y; }
.wb-plan g.is-dragging { cursor: grabbing; opacity: .82; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.wb-drop { fill: var(--tape); stroke: var(--tape-ink); stroke-width: 6; pointer-events: none; }
.wb-plan [data-cab]:focus-visible { outline: none; filter: drop-shadow(0 0 22px #1273de); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); }
.hero[data-photo] { --shade: linear-gradient(90deg, rgba(10, 10, 9, .9) 0%, rgba(10, 10, 9, .7) 42%, rgba(10, 10, 9, .12) 100%); background-size: cover; background-position: center; }
.hero__in { display: grid; padding-block: clamp(64px, 11vw, 170px); }
.hero__copy { display: grid; gap: 22px; max-width: 41rem; justify-items: start; }
.hero[data-photo] .lede { color: var(--on-ink); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero .lede { color: var(--on-ink-soft); }
.stage { border-radius: var(--r); overflow: hidden; background: #e8e5de; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.stage__tag { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 600; min-height: 1.6em; }
.stage__chip { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--on-ink); flex: none; transition: background-color .45s; }
@media (max-width: 760px) { .hero[data-photo] { --shade: linear-gradient(rgba(10, 10, 9, .8), rgba(10, 10, 9, .68)); } }

/* ---------- bands ---------- */
.band { padding-block: clamp(52px, 8vw, 104px); }
.band--paper { background: var(--paper); }
.band--board { background: var(--board); }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--tape { background: var(--tape); color: var(--tape-ink); }
.band[data-photo] { --shade: linear-gradient(rgba(240, 168, 28, .9), rgba(240, 168, 28, .9)); background-size: cover; background-position: center; }
.band__head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 44px); max-width: 44em; }
.band--ink .band__head p { color: var(--on-ink-soft); }

.page-head { background: var(--ink); color: var(--on-ink); padding-block: clamp(32px, 5vw, 60px); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head .lede { color: var(--on-ink-soft); }
.page-head--tape { background: var(--tape); color: var(--tape-ink); }
.page-head--tape .lede { color: var(--tape-ink); }
.page-head--tape .wrap.split { display: grid; }
.page-head--tape[data-photo] { --shade: linear-gradient(90deg, rgba(240, 168, 28, .96) 0 45%, rgba(240, 168, 28, .7)); background-size: cover; background-position: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__copy { display: grid; gap: 18px; justify-items: start; }
.split__side { display: grid; gap: 14px; min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) { .split--flip .split__copy { order: 2; } }

/* room cards */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.room-card { display: grid; gap: 10px; text-decoration: none; }
.room-card__art { display: block; border-radius: var(--r); overflow: hidden; background: #e8e5de; aspect-ratio: 20 / 11; }
.room-card__art svg { width: 100%; height: 100%; }
.room-card__art .wb-room { height: 100%; }
.room-card__name { font-weight: 700; font-size: 1.125rem; display: flex; justify-content: space-between; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.room-card:hover .room-card__name { border-bottom-color: var(--tape-deep); }
@media (max-width: 860px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rooms { grid-template-columns: minmax(0, 1fr); } }

/* reference photos */
.ideas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 25vw, 360px); gap: clamp(10px, 1.4vw, 18px); }
.idea { position: relative; display: block; overflow: hidden; border-radius: var(--r); grid-column: span 2; background: var(--ink); }
.idea--wide { grid-column: span 4; }
.idea img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.idea:hover img { transform: scale(1.03); }
.idea span { position: absolute; left: 10px; bottom: 10px; background: var(--ink); color: var(--on-ink); font-weight: 700; padding: 5px 12px; border-radius: 3px; }
@media (max-width: 760px) {
  .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .idea { grid-column: span 1; }
  .idea--wide { grid-column: span 2; }
}

/* supplier strips */
.strip { display: grid; gap: 8px; text-decoration: none; }
.strip__name { font-weight: 800; font-family: var(--display); font-size: 1.2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.strip__name small { font-weight: 600; font-family: var(--font); font-size: 0.875rem; color: var(--ink-soft); }
.strip__chips { display: flex; height: 58px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); }
.strip__chips i { flex: 1 1 0; min-width: 0; transition: flex-grow .2s; }
.strip:hover .strip__chips i:hover { flex-grow: 3; }

/* texture hints on colour chips */
.tex-w { background-image: repeating-linear-gradient(92deg, rgba(60, 35, 10, .16) 0 2px, transparent 2px 7px, rgba(255, 240, 215, .14) 7px 9px, transparent 9px 15px); }
.tex-m { background-image: radial-gradient(rgba(0, 0, 0, .16) 1px, transparent 1.6px), radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.6px); background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px; }
.tex-x { background-image: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .45) 48%, rgba(255, 255, 255, 0) 66%); }
.is-gloss { box-shadow: inset 14px 0 14px -10px rgba(255, 255, 255, .7); }

/* numbered steps: these are real sequences */
.steps { counter-reset: s; display: grid; gap: 16px; max-width: 34em; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 48px; text-align: center; background: var(--tape); color: var(--tape-ink); border-radius: var(--r); }
.steps li strong { display: block; font-size: 1.125rem; }
.steps li { color: var(--on-ink-soft); }
.steps li strong { color: var(--on-ink); }
.steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 28px; margin-bottom: 24px; }
@media (max-width: 860px) { .steps--row { grid-template-columns: minmax(0, 1fr); } }

.sheet { background: var(--board); border-radius: var(--r); padding: clamp(8px, 1.5vw, 18px); border: 2px solid var(--ink);
  background-image: linear-gradient(rgba(31, 111, 156, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 111, 156, .09) 1px, transparent 1px); background-size: 20px 20px; }
.fp-art { display: block; width: 100%; height: auto; font-family: var(--font); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact > div { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.facts > div { border-top: 2px solid var(--ink); padding-block: 12px 18px; }
.facts dt { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts--stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- colour studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 44px); padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 90px); align-items: start; }
.studio__pick { order: 1; display: grid; gap: 22px; min-width: 0; }
.studio__view { order: 2; display: grid; gap: 14px; position: sticky; top: 98px; min-width: 0; max-height: calc(100vh - 110px); overflow-y: auto; }
.studio__rooms { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.studio__rooms[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio__none { background: var(--board); border: 2px dashed var(--rule); border-radius: var(--r); padding: 48px 20px; text-align: center; font-weight: 600; }
.shot { border-radius: var(--r); overflow: hidden; background: #e8e5de; position: relative; }
.shot figcaption { position: absolute; left: 8px; top: 8px; background: var(--ink); color: var(--on-ink); font-size: 0.8125rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.studio__cta { display: grid; gap: 10px; justify-items: start; }

.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.slot { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--board); border: 2px solid var(--rule); border-radius: var(--r); padding: 8px 10px; min-height: 60px; min-width: 0; }
.slot[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 -5px 0 var(--tape); }
.slot__chip { width: 38px; height: 38px; border-radius: 4px; flex: none; border: 1px solid rgba(0, 0, 0, .25); background-size: cover; }
.slot__text { display: grid; min-width: 0; line-height: 1.25; }
.slot__text b { font-size: 0.9375rem; }
.slot__text span { font-size: 0.8125rem; color: var(--ink-soft); overflow-wrap: anywhere; }

.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 32px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin: 0; }
.check--inline { font-size: 0.9375rem; }

.houseplan { display: grid; gap: 10px; }
.houseplan legend { font-weight: 800; font-family: var(--display); font-size: 1.2rem; margin-bottom: 8px; }
.houseplan__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-areas: "alfresco alfresco alfresco" "kitchen pantry laundry" "kitchen tv fireplace"; gap: 0; border: 4px solid var(--ink); border-radius: 3px; background: var(--board); }
.houseplan__room { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 10px; min-height: 58px; font-weight: 700; font-size: 0.9375rem; line-height: 1.2; cursor: pointer; border: 2px solid var(--ink); margin: -1px; }
.houseplan__room input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin: 0; }
.houseplan__room:has(input:checked) { background: var(--tape); }
.houseplan__room--alfresco { grid-area: alfresco; border-style: dashed; }
.houseplan__room--kitchen { grid-area: kitchen; }
.houseplan__room--pantry { grid-area: pantry; }
.houseplan__room--laundry { grid-area: laundry; }
.houseplan__room--tv { grid-area: tv; }
.houseplan__room--fireplace { grid-area: fireplace; }

.tabs { display: flex; gap: 6px; border-bottom: 4px solid var(--ink); }
.tabs button { flex: 1 1 0; min-width: 0; background: var(--board); border: 2px solid var(--rule); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; padding: 12px 8px; font-weight: 800; font-family: var(--display); font-size: 1.0625rem; }
.tabs button small { font-weight: 600; font-family: var(--font); font-size: 0.8125rem; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tabs button[aria-selected="true"] small { color: var(--on-ink-soft); }
.panel { display: grid; gap: 14px; min-width: 0; }
.panel__blurb { color: var(--ink-soft); }
.panel__note { font-weight: 700; min-height: 1.5em; color: var(--ok); }
.panel__empty { font-weight: 600; padding: 20px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { background: var(--board); border: 2px solid var(--rule); border-radius: 999px; padding: 6px 14px; min-height: 40px; font-weight: 600; font-size: 0.9375rem; }
.chip small { color: var(--ink-soft); font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip[aria-pressed="true"] small { color: var(--on-ink-soft); }
.chips__label { font-size: 0.9375rem; color: var(--ink-soft); font-weight: 600; }
.chips--mm .chip { font-variant-numeric: tabular-nums; min-width: 60px; }

.search input, .field > input, .field > select, .field > textarea, .mm input { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--board); border: 2px solid var(--rule); border-radius: var(--r); }
.search input:focus, .field > input:focus, .field > select:focus, .field > textarea:focus, .mm input:focus { border-color: var(--ink); }

.swatches { display: grid; gap: 26px; }
.swatches--short { max-height: 420px; overflow-y: auto; padding-right: 6px; }
.swgroup { display: grid; gap: 8px; }
.swgroup h3 { font-family: var(--display); font-weight: 800; border-top: 2px solid var(--ink); padding-top: 10px; }
.swgroup > p { font-size: 0.9375rem; color: var(--ink-soft); }
.swgroup--bench > p { color: var(--tape-ink); background: var(--tape); font-weight: 700; padding: 8px 12px; border-radius: var(--r); justify-self: start; }
.swgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px 8px; }
.sw { position: relative; display: grid; gap: 5px; background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.sw__chip { display: block; height: 58px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .22); background-size: cover; background-position: center; }
.sw__name { font-size: 0.78rem; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.sw:hover .sw__chip { transform: translateY(-2px); }
.sw[aria-pressed="true"] .sw__chip { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px var(--tape); }
.sw__new { position: absolute; top: 4px; right: 4px; background: var(--tape); color: var(--tape-ink); font-style: normal; font-size: 0.6875rem; font-weight: 800; padding: 1px 6px; border-radius: 3px; }

@media (max-width: 900px) {
  .studio { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .studio__view { display: contents; }
  .studio__view { max-height: none; overflow: visible; }
  .studio__rooms { order: 1; align-items: flex-start; position: sticky; top: 0; z-index: 20; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; background: var(--paper); padding-block: 8px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); border-bottom: 2px solid var(--ink); }
  .studio__rooms .shot { flex: 0 0 100%; scroll-snap-align: center; }
  .studio__rooms:not([data-count="1"]) .shot { flex-basis: 82%; }
  .studio__none { flex: 1; padding: 28px 16px; }
  .studio .slots { order: 2; }
  .studio .check--inline { order: 3; }
  .studio__pick { order: 4; }
  .studio__cta { order: 5; }
}

/* ---------- designer ---------- */
.designer { padding-block: clamp(24px, 4vw, 44px) clamp(48px, 7vw, 90px); }
.dsteps { counter-reset: d; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dsteps li { counter-increment: d; min-width: 0; }
.dsteps button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 0; font-weight: 700; text-align: left; color: var(--ink-soft); line-height: 1.15; }
.dsteps button::before { content: counter(d); flex: none; width: 34px; height: 34px; line-height: 30px; text-align: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 800; }
.dsteps li[aria-current="step"] button { color: var(--ink); }
.dsteps li[aria-current="step"] button::before { background: var(--tape); border-color: var(--ink); color: var(--tape-ink); }
.dsteps li.is-done button { color: var(--ink); }
.dsteps li.is-done button::before { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media (max-width: 640px) { .dsteps button { flex-direction: column; align-items: flex-start; font-size: 0.8125rem; gap: 6px; } }

.dpanel { display: grid; gap: 20px; }
.dpanel > h2:focus { outline: none; }
.bigpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bigpick__card { position: relative; display: block; cursor: pointer; }
.bigpick__card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bigpick__card > span { display: grid; gap: 6px; height: 100%; background: var(--board); border: 3px solid var(--rule); border-radius: var(--r); padding: 22px 20px; }
.bigpick__card b { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.bigpick__card small { font-size: 0.9375rem; color: var(--ink-soft); }
.bigpick__card input:checked + span { border-color: var(--ink); background: var(--tape); }
.bigpick__card input:checked + span small { color: var(--tape-ink); }
.bigpick__card input:focus-visible + span { outline: 3px solid #1273de; outline-offset: 2px; }
@media (max-width: 760px) { .bigpick { grid-template-columns: minmax(0, 1fr); } }

.partlist legend { font-weight: 700; margin-bottom: 12px; font-size: 1.125rem; }
.partlist__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.check--card { align-items: flex-start; background: var(--board); border: 2px solid var(--rule); border-radius: var(--r); padding: 12px 14px; }
.check--card:has(input:checked) { border-color: var(--ink); box-shadow: inset 6px 0 0 var(--tape); }
.check--card span { display: grid; line-height: 1.3; }
.check--card small { font-weight: 400; font-size: 0.875rem; color: var(--ink-soft); }
.check--big { font-size: 1.125rem; }
.check--big input { width: 28px; height: 28px; }

.dwork { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.dwork__controls { display: grid; gap: 18px; min-width: 0; }
.dwork__sheet { position: sticky; top: 98px; display: grid; gap: 10px; min-width: 0; }
@media (max-width: 900px) {
  .dwork { grid-template-columns: minmax(0, 1fr); }
  .dwork__sheet { order: -1; top: 0; z-index: 20; background: var(--paper); padding-block: 8px; }
  .dwork__sheet .fine { display: none; }
}
.roomtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.roomtabs button { background: var(--board); border: 2px solid var(--rule); border-radius: var(--r); padding: 8px 14px; min-height: 44px; font-weight: 700; }
.roomtabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.ask { display: grid; gap: 12px; background: var(--board); border-radius: var(--r); padding: 16px 18px; border-left: 6px solid var(--ink); }
.ask--edit { border-left-color: var(--tape); background: #fff8dd; }
.ask__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ask__hint { font-size: 0.9375rem; color: var(--ink-soft); }
.ask__sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper__btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); font-size: 2rem; font-weight: 700; line-height: 1; }
.stepper__btn[data-dir="1"] { background: var(--tape); color: var(--tape-ink); }
.stepper__btn:active { transform: scale(.94); }
.stepper__n { min-width: 2ch; text-align: center; font-size: 2.2rem; font-weight: 800; font-family: var(--display); font-variant-numeric: tabular-nums; line-height: 1; }
.mm { display: flex; align-items: center; gap: 8px; }
.mm i { font-style: normal; font-weight: 700; color: var(--ink-soft); }
.movehint { background: var(--tape); color: var(--tape-ink); font-weight: 700; padding: 10px 14px; border-radius: var(--r); }
.moverow { display: flex; flex-wrap: wrap; gap: 10px; }
.moverow .btn { flex: 1 1 140px; min-height: 52px; }
.moverow .btn:disabled { opacity: .35; cursor: not-allowed; }
.chip--add { border-color: var(--ink); font-weight: 700; }
.chip--add::before { content: "+"; font-weight: 800; margin-right: 6px; }
.chip--add:hover { background: var(--tape); }
.ask__q { font-weight: 700; margin-top: 4px; }
.sliderask { display: grid; gap: 8px; }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.dwork .sheet, .dwork .wb-plan { touch-action: pan-y; }
.wb-plan [data-slide] { cursor: ew-resize; touch-action: pan-y; }
.fit { font-weight: 700; padding: 10px 14px; border-radius: var(--r); background: var(--board); border-left: 6px solid var(--ink-soft); }
.fit--ok { border-left-color: var(--ok); color: var(--ok); }
.fit--bad { border-left-color: var(--bad); color: var(--bad); }
.dnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.dnav .btn--tape { margin-left: auto; }
.pdfbox { display: grid; gap: 8px; justify-items: start; }
.pdfbox .btn { width: 100%; }
.pdfbox__status { font-weight: 700; min-height: 1.5em; }
.pdfbox__status.is-bad { color: var(--bad); }
.pdfbox__status.is-ok { color: var(--ok); }
.summary { display: grid; gap: 6px; background: var(--board); border-radius: var(--r); padding: 16px 18px; border: 2px solid var(--ink); }
.summary h4 { margin-top: 10px; border-bottom: 2px solid var(--tape); padding-bottom: 4px; }
.summary h4:first-child { margin-top: 0; }
.summary li { font-size: 0.9375rem; padding-block: 3px; }

/* ---------- forms ---------- */
.twocol { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(28px, 4vw, 56px); }
.band .twocol, .dpanel .twocol { padding-block: 0; }
.twocol__main { display: grid; gap: 20px; min-width: 0; }
.twocol__side { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 860px) { .twocol { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form__row, .ask__sizes { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span:first-child, .field legend { font-weight: 700; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field--bad > input { border-color: var(--bad); }
.field--bad > span:first-child::after { content: attr(data-err); display: block; color: var(--bad); font-weight: 700; }
.forpick.field--bad > legend::after { content: attr(data-err); display: block; color: var(--bad); font-weight: 700; }
.forpick { display: grid; gap: 10px; }
.forpick .bigpick__card > span { padding: 16px 16px; }
.forpick .bigpick__card b { font-size: 1.15rem; }
.forpick__design { margin: 0; }
.field > input[type="file"] { padding: 9px; }
.field--set legend { margin-bottom: 8px; }
.field--set { display: block; }
.tickrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.tickrow .check { min-width: 0; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.notice { border-radius: var(--r); padding: 16px 18px; display: grid; gap: 6px; border-left: 6px solid; background: var(--board); }
.notice--ok { border-color: var(--ok); }
.notice--bad { border-color: var(--bad); color: var(--bad); font-weight: 600; }
.notice ul { list-style: disc; padding-left: 20px; }

/* ---------- flat packs ---------- */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.prose-grid > div { display: grid; gap: 14px; align-content: start; max-width: 38em; }
@media (max-width: 860px) { .prose-grid { grid-template-columns: minmax(0, 1fr); } }
.ticks { display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 9px; border-left: 4px solid var(--tape-deep); border-bottom: 4px solid var(--tape-deep); transform: rotate(-45deg); }
.pros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 48px); }
.pros li { display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--ink); padding-top: 14px; }
.pros h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
@media (max-width: 860px) { .pros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pros { grid-template-columns: minmax(0, 1fr); } }
.wide-photo { display: block; width: 100%; border-radius: var(--r); margin-top: clamp(28px, 4vw, 48px); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--on-ink-soft); padding-block: clamp(36px, 5vw, 60px) 24px; font-size: 0.9375rem; }
.site-foot a { color: var(--on-ink); }
.site-foot__in { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-foot__in > div { display: grid; gap: 8px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.site-foot__logo { display: block; width: 170px; height: auto; margin: -14px 0 0 -14px; }
.site-foot__name { color: var(--on-ink); font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.site-foot__h { color: var(--on-ink); font-weight: 700; }
.site-foot__legal { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 0.8125rem; }
@media (max-width: 860px) { .site-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-foot__in { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .site-head, .site-foot, .dnav, .tape, .dsteps { display: none; }
}

/* Design your own: the drawing stays still and only the questions beside it scroll,
   like the side panel of a drawing program. This works the same on the website and inside previews. */
.designer { scroll-margin-top: 110px; }
.dwork__controls { max-height: max(360px, min(720px, calc(100vh - 240px))); overflow-y: auto; scrollbar-gutter: stable; padding: 12px 10px 12px 12px; border-radius: 20px; background: rgba(255, 255, 255, .35); border: 1px solid rgba(255, 255, 255, .6); scrollbar-width: thin; scrollbar-color: rgba(10, 10, 9, .35) transparent; }
.dwork__sheet { position: static; }
@media (max-width: 900px) {
  .dwork__sheet { position: static; order: -1; background: transparent; padding-block: 0; }
  .dwork__controls { max-height: max(280px, min(460px, calc(100vh - 400px))); }
}

/* stepper rows keep the + and - buttons on the right, lined up, and let the words wrap instead */
.ask__head { flex-wrap: nowrap; align-items: center; }
.ask__head > div:first-child { flex: 1 1 auto; min-width: 0; }
.ask__head > .stepper, .ask__head > .btn { flex: none; }
@media (max-width: 380px) { .ask__head { flex-wrap: wrap; } }

/* inside the wardrobe */
.robein { display: grid; gap: 12px; border-top: 2px dashed rgba(10, 10, 9, .15); padding-top: 14px; margin-top: 4px; }
.robein__head { display: grid; gap: 10px; }
.robein__head h3 { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.robein__secs .chip small { margin-left: 4px; }
.robein__sec { display: grid; gap: 4px; background: var(--board); border-radius: var(--r); padding: 14px 16px; }
.robein__title { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.robein__title small { font-family: var(--font); font-weight: 600; font-size: .875rem; color: var(--ink-soft); margin-left: 6px; }
.robein__full { color: var(--bad); font-weight: 600; }
.robein > .btn { justify-self: start; }
.robe-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 8px; border-top: 1px solid var(--rule); min-height: 64px; }
.robein__sec > .robe-row:first-of-type { border-top: 0; }
.robe-row > div:first-child { flex: 1 1 auto; min-width: 0; }
.robe-row > div:first-child .ask__hint { font-size: .875rem; margin-top: 1px; }
.robe-row > .stepper, .robe-row > .chips { flex: none; }
.robe-row--wrap { flex-wrap: wrap; }
.robe-row--wrap > .chips { flex: 1 1 100%; }
/* where each fixed shelf goes */
.robe-fix { display: grid; gap: 2px; background: var(--paper); border-radius: var(--r); padding: 10px 12px; margin-block: 2px 6px; }
.robe-fix .ask__q { margin: 0; }
.robe-fix .ask__q small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .875rem; }
.robe-row--fix { min-height: 56px; }
.robe-fix__ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.robe-fix__ctl .mm input { width: 6.5em; min-height: 44px; text-align: center; }
.robe-fix > .chip { justify-self: start; margin-top: 6px; }
/* "Something else": what to design */
.customask { display: grid; gap: 6px; max-width: 34rem; margin-top: 14px; }
.customadd { display: grid; gap: 8px; max-width: 30rem; margin-top: 10px; }
.customadd .btn { justify-self: start; }
.stepper--s { gap: 6px; }
.stepper--s .stepper__btn { width: 46px; height: 46px; font-size: 1.6rem; }
.stepper--s .stepper__n { font-size: 1.6rem; min-width: 2.2ch; }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; }
.summary__sub { list-style: disc; padding-left: 18px; margin-top: 4px; display: grid; gap: 2px; }
.summary__sub li { padding-block: 0; }
@media (max-width: 480px) {
  .ask__head .stepper__btn { width: 48px; height: 48px; font-size: 1.7rem; }
  .ask__head .stepper__n { font-size: 1.8rem; }
  .robe-row { flex-wrap: wrap; }
  .robe-row > div:first-child { flex-basis: 100%; }
}

/* ---------- search-friendly pages ---------- */
.site-foot__in { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .site-foot__in { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .site-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-foot__in { grid-template-columns: minmax(0, 1fr); } }
.hero__kicker { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .875rem; color: var(--tape); }
.page-head h1 { max-width: 22em; }
.crumbs { font-size: .9rem; color: var(--on-ink-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: inherit; }
.svc-photo { margin: 0; display: grid; gap: 6px; }
.svc-photo img { display: block; width: 100%; height: auto; border-radius: var(--r); object-fit: cover; aspect-ratio: 4 / 3; }
.svc-photo figcaption { font-size: .8125rem; color: var(--on-ink-soft); }
.page-head .sheet, .page-head .stage { width: 100%; }
.prose-grid h2 + p, .prose-grid p + h2 { margin-top: 0; }
.prose-grid > div > h2:not(:first-child) { margin-top: 18px; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.faq__item { display: grid; gap: 8px; background: var(--board); border-radius: var(--r); padding: 18px 20px; align-content: start; }
.faq__item h3 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.linklist { display: grid; gap: 6px; }
.linklist a { font-weight: 600; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.svc-card { display: grid; gap: 8px; height: 100%; text-decoration: none; background: var(--board); border-radius: var(--r); padding: 22px; align-content: start; }
.svc-card h2 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.svc-card p { color: var(--ink-soft); }
.svc-card__go { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-bottom: 20px; }
.review { display: grid; gap: 8px; background: var(--board); border-radius: var(--r); padding: 18px 20px; }
.review blockquote { margin: 0; }
.review__stars { color: var(--tape-deep); letter-spacing: 2px; }
.review__by { font-weight: 700; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.project { display: grid; gap: 8px; }
.project img { width: 100%; height: auto; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.project h2 { font-size: 1.15rem; }
.brand picture, .site-foot picture { display: contents; }
/* a <picture> wrapper should not change the layout of the image inside it */
picture { display: contents; }
/* seven menu items: keep them on one line on laptops */
@media (min-width: 901px) {
  .site-head__in { flex-wrap: nowrap; }
  .site-nav { gap: clamp(4px, 0.9vw, 14px); flex-wrap: nowrap; }
  .site-nav a:not(.btn) { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1420px) {
  .site-nav__phone { display: none; }
  .site-nav a:not(.btn) { padding-inline: 10px; font-size: .95rem; }
  .brand img { height: 52px; width: auto; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .site-nav a:not(.btn) { padding-inline: 7px; font-size: .9rem; }
  .site-nav .btn { padding-inline: 14px; }
}
.site-nav .btn { white-space: nowrap; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; }

/* ---------- design program: home or business, hardware, toolbar, parts list ---------- */
.dsteps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .dsteps button::before { width: 30px; height: 30px; line-height: 26px; } .dsteps button { font-size: .75rem; } }
.bigpick--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
@media (max-width: 560px) { .bigpick--two { grid-template-columns: minmax(0, 1fr); } }
.dpanel__h3 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin: 22px 0 12px; }
#com-block { margin-top: 18px; }
#com-block > .ask__hint { margin-top: 12px; }
.hwq + .hwq { margin-top: 12px; }
#hw-panel, #mat-panel { display: grid; gap: 12px; }
#mat-panel { margin-top: 8px; }
.chips--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; align-items: stretch; }
.chips--cards .chip { border-radius: var(--r); display: grid; gap: 2px; text-align: left; align-content: start; padding: 10px 12px; height: 100%; line-height: 1.2; }
.chip--hint small { display: block; font-weight: 400; font-size: .8125rem; line-height: 1.3; }
.tickcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.tickcards .check--card { height: 100%; }

/* toolbar above the drawing, like a drawing program */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--ink); color: var(--on-ink); border-radius: calc(var(--r) + 4px); padding: 6px; }
.toolbar__group { display: flex; gap: 4px; align-items: center; }
.tool { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 0; border-radius: var(--r); background: transparent; color: var(--on-ink); font-weight: 700; font-size: .9rem; }
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.tool[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); }
.tool:disabled { opacity: .35; cursor: not-allowed; }
.tool.is-armed { background: var(--bad); color: #fff; }
.toolbar__msg { font-size: .9rem; font-weight: 600; color: var(--ink-2); min-height: 0; }
.toolbar__msg:empty { display: none; }
.hide-dims .wb-dimgroup { display: none; }
.wb-top { cursor: default; }

/* the live parts list under the drawing, and the full one at the end */
.bomlive { background: var(--board); border-radius: var(--r); padding: 0 14px; }
.bomlive > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.bomlive > summary span { color: var(--ink-soft); font-weight: 600; }
.bomlive[open] > summary { border-bottom: 1px solid var(--rule); }
#bomlive-body { max-height: 260px; overflow: auto; padding-bottom: 10px; }
.bom { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.3; }
.bom th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 8px; border-bottom: 2px solid var(--ink); }
.bom td { padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bom tbody tr:nth-child(even) td { background: rgba(10, 10, 9, .03); }
.bom__n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bom__note { color: var(--ink-soft); font-size: .8125rem; }
.specgrid--one { grid-template-columns: minmax(0, 1fr) !important; max-width: 760px; }
.specgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; margin: 18px 0 28px; align-items: start; }
@media (max-width: 860px) { .specgrid { grid-template-columns: minmax(0, 1fr); } }
.specbox { display: grid; gap: 12px; background: var(--board); border-radius: var(--r); padding: 18px 20px; min-width: 0; overflow-x: auto; }
.specbox h3 { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.spec { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 0; font-size: .9375rem; }
.spec dt, .spec dd { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-weight: 700; padding-right: 14px; color: var(--ink-soft); }

/* ---------- how it works: moving 3D demos of the hardware ---------- */
.showcase { display: grid; gap: 12px; background: var(--ink); color: var(--on-ink); border-radius: calc(var(--r) + 6px); padding: 14px; margin: 14px 0 18px; }
.showcase .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: var(--on-ink); }
.showcase .chip[aria-pressed="true"] { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); }
.showcase__stage { display: grid; gap: 12px; }
.showcase__text { display: grid; gap: 6px; }
.showcase__title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--tape); }
.showcase__body { color: var(--on-ink-soft); font-size: .95rem; }
.showcase__text .btn { justify-self: start; }
.showcase .btn--line { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, .5); }

.demo { --demo-door: #e9e5dd; --demo-handle: #1d1e20; --open: -110deg; --cab-w: 170px; --cab-h: 230px; --cab-d: 150px;
  position: relative; height: 300px; border-radius: var(--r); overflow: hidden; perspective: 900px; perspective-origin: 50% 30%;
  background: radial-gradient(ellipse at 50% 85%, #3a352f 0, #1a1815 60%, #121110 100%); }
.demo[data-angle="155"] { --open: -155deg; }
.demo[data-angle="170"] { --open: -170deg; }
.demo[data-demo="angle"]::after { content: attr(data-angle) "\00b0"; position: absolute; left: 14px; top: 10px; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--tape); }
.demo[data-demo="lift"] { --cab-w: 240px; --cab-h: 140px; --cab-d: 120px; }
.demo__room { position: absolute; left: 50%; top: 52%; width: var(--cab-w); height: var(--cab-h); margin: calc(var(--cab-h) / -2) 0 0 calc(var(--cab-w) / -2);
  transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(26deg); }
.demo__room::before { content: ""; position: absolute; left: -30%; right: -30%; bottom: -26px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); transform: translateZ(-60px); }
.demo__cab { position: absolute; inset: 0; transform-style: preserve-3d; }
/* the cabinet box: side, top and the inside you see when it opens */
.demo__cab::before, .demo__cab::after { content: ""; position: absolute; background: #d9d3c8; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08); }
.demo__cab::before { top: 0; left: 100%; width: var(--cab-d); height: 100%; transform-origin: left center; transform: rotateY(90deg); background: linear-gradient(90deg, #cfc8bc, #b9b2a6); }
.demo__cab::after { left: 0; top: 0; width: 100%; height: var(--cab-d); transform-origin: top center; transform: rotateX(-90deg); background: linear-gradient(#e6e0d6, #cfc8bc); }
.demo__inside { position: absolute; inset: 0; background:
  linear-gradient(transparent calc(50% - 3px), #cbc4b8 calc(50% - 3px), #cbc4b8 calc(50% + 3px), transparent calc(50% + 3px)),
  linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, .3)), #efeae2;
  box-shadow: inset 0 0 0 8px #e4ded4, inset 0 0 30px rgba(0, 0, 0, .45); transform: translateZ(-1px); }
.demo__door, .demo__half, .demo__front { position: absolute; background: var(--demo-door); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset -6px -8px 16px rgba(0, 0, 0, .08), inset 6px 6px 14px rgba(255, 255, 255, .25); backface-visibility: visible; }
.demo__door { inset: 0; transform-origin: left center; }
.demo__half { left: 0; right: 0; height: 50%; display: none; }
.demo__half--top { top: 0; transform-origin: top center; }
.demo__half--bottom { top: 50%; transform-origin: top center; }
.demo__drawer { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; transform-style: preserve-3d; display: none; }
.demo__front { inset: 0; }
/* the drawer box: a floor and two sides that come out with the front */
.demo__box { position: absolute; left: 8px; right: 8px; top: calc(100% - 8px); height: calc(var(--cab-d) - 10px); transform-origin: top center; transform: rotateX(-90deg); transform-style: preserve-3d; background: #8e8a84; }
.demo__box::before, .demo__box::after { content: ""; position: absolute; top: 0; width: 70px; height: 100%; background: linear-gradient(90deg, #b8bcc0, #8f9499); }
.demo__box::before { left: 0; transform-origin: left center; transform: rotateY(90deg); }
.demo__box::after { right: 0; transform-origin: right center; transform: rotateY(-90deg); }
.demo__handle { position: absolute; right: 12px; top: 50%; width: 6px; height: 42%; margin-top: -21%; border-radius: 3px; background: var(--demo-handle); box-shadow: 1px 2px 3px rgba(0, 0, 0, .35); transform: translateZ(6px); }
.demo__handle--h { right: auto; left: 50%; top: 18px; width: 48%; height: 6px; margin: 0 0 0 -24%; }
.demo__finger { position: absolute; display: none; right: 18px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f1c9a5, #c98f68); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.demo__finger::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--tape); opacity: 0; }

/* which pieces each demo shows */
.demo[data-demo="push"] .demo__handle { display: none; }
.demo[data-demo="push"] .demo__finger { display: block; }
.demo[data-demo="drawer"] .demo__door { display: none; }
.demo[data-demo="drawer"] .demo__half--top, .demo[data-demo="drawer"] .demo__drawer { display: block; }
.demo[data-demo="lift"] .demo__door { transform-origin: top center; }
.demo[data-demo="lift"] .demo__handle { right: auto; left: 50%; top: auto; bottom: 12px; width: 40%; height: 6px; margin: 0 0 0 -20%; }
.demo[data-demo="lift"][data-lift="bifold"] .demo__door { display: none; }
.demo[data-demo="lift"][data-lift="bifold"] .demo__half { display: block; }
.demo[data-demo="lift"][data-lift="bifold"] .demo__half--top .demo__handle, .demo__half--top .demo__handle { display: none; }

/* the moves */
.demo.is-playing[data-demo="soft"] .demo__door { animation: wb-soft 4.6s cubic-bezier(.45, 0, .2, 1) infinite; }
.demo.is-playing[data-demo="angle"] .demo__door { animation: wb-angle 4.6s ease-in-out infinite; }
.demo.is-playing[data-demo="push"] .demo__door { animation: wb-push-door 5.2s ease-in-out infinite; }
.demo.is-playing[data-demo="push"] .demo__finger { animation: wb-push-finger 5.2s ease-in-out infinite; }
.demo.is-playing[data-demo="push"] .demo__finger::after { animation: wb-push-ring 5.2s ease-out infinite; }
.demo.is-playing[data-demo="drawer"] .demo__drawer { animation: wb-drawer 4.6s cubic-bezier(.45, 0, .2, 1) infinite; }
.demo.is-playing[data-demo="lift"][data-lift="liftup"] .demo__door { animation: wb-liftup 4.6s ease-in-out infinite; }
.demo.is-playing[data-demo="lift"][data-lift="stay"] .demo__door { animation: wb-stay 4.6s ease-in-out infinite; }
.demo.is-playing[data-demo="lift"][data-lift="upover"] .demo__door { animation: wb-upover 4.6s ease-in-out infinite; }
.demo.is-playing[data-demo="lift"][data-lift="bifold"] .demo__half--top { animation: wb-bifold-a 4.6s ease-in-out infinite; }
.demo.is-playing[data-demo="lift"][data-lift="bifold"] .demo__half--bottom { animation: wb-bifold-b 4.6s ease-in-out infinite; }

@keyframes wb-soft { 0%, 6% { transform: rotateY(0); } 26%, 38% { transform: rotateY(-100deg); } 52% { transform: rotateY(-28deg); animation-timing-function: cubic-bezier(.1, .6, .3, 1); } 86%, 100% { transform: rotateY(0); } }
@keyframes wb-angle { 0%, 8% { transform: rotateY(0); } 38%, 68% { transform: rotateY(var(--open)); } 96%, 100% { transform: rotateY(0); } }
@keyframes wb-push-door { 0%, 14% { transform: rotateY(0) translateZ(0); } 17% { transform: rotateY(0) translateZ(-4px); } 22% { transform: rotateY(-20deg); } 32% { transform: rotateY(-20deg); } 48%, 62% { transform: rotateY(-95deg); } 80% { transform: rotateY(-20deg); } 84% { transform: rotateY(-4deg); } 90%, 100% { transform: rotateY(0); } }
@keyframes wb-push-finger { 0% { transform: translate(90px, 40px) translateZ(40px); opacity: 0; } 6% { opacity: 1; } 13% { transform: translate(0, 0) translateZ(10px) scale(1); } 17% { transform: translate(0, 0) translateZ(2px) scale(.86); } 21% { transform: translate(0, 0) translateZ(20px) scale(1); } 30% { transform: translate(90px, 40px) translateZ(40px); opacity: 0; } 100% { transform: translate(90px, 40px) translateZ(40px); opacity: 0; } }
@keyframes wb-push-ring { 0%, 15% { opacity: 0; transform: scale(.6); } 17% { opacity: 1; transform: scale(.8); } 28%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes wb-drawer { 0%, 6% { transform: translateZ(0); } 30%, 46% { transform: translateZ(calc(var(--cab-d) - 14px)); } 60% { transform: translateZ(40px); animation-timing-function: cubic-bezier(.1, .6, .3, 1); } 88%, 100% { transform: translateZ(0); } }
@keyframes wb-liftup { 0%, 8% { transform: translate3d(0, 0, 0); } 18% { transform: translate3d(0, 0, 14px); } 40%, 66% { transform: translate3d(0, -92%, 14px); } 86% { transform: translate3d(0, 0, 14px); } 94%, 100% { transform: translate3d(0, 0, 0); } }
@keyframes wb-stay { 0%, 8% { transform: rotateX(0); } 40%, 66% { transform: rotateX(100deg); } 94%, 100% { transform: rotateX(0); } }
@keyframes wb-upover { 0%, 8% { transform: translate3d(0, 0, 0) rotateX(0); } 40%, 66% { transform: translate3d(0, -78%, 70px) rotateX(78deg); } 94%, 100% { transform: translate3d(0, 0, 0) rotateX(0); } }
@keyframes wb-bifold-a { 0%, 8% { transform: rotateX(0); } 40%, 66% { transform: rotateX(80deg); } 94%, 100% { transform: rotateX(0); } }
@keyframes wb-bifold-b { 0%, 8% { transform: translate3d(0, 0, 0) rotateX(0); } 40%, 66% { transform: translate3d(0, -58px, 69px) rotateX(-80deg); } 94%, 100% { transform: translate3d(0, 0, 0) rotateX(0); } }

/* people who turn off motion see each move standing still, open */
@media (prefers-reduced-motion: reduce) {
  .demo.is-playing *, .demo.is-playing *::after { animation: none !important; }
  .demo[data-demo="soft"] .demo__door { transform: rotateY(-70deg); }
  .demo[data-demo="angle"] .demo__door { transform: rotateY(var(--open)); }
  .demo[data-demo="push"] .demo__door { transform: rotateY(-20deg); }
  .demo[data-demo="drawer"] .demo__drawer { transform: translateZ(calc(var(--cab-d) - 14px)); }
  .demo[data-lift="liftup"] .demo__door { transform: translate3d(0, -92%, 14px); }
  .demo[data-lift="stay"] .demo__door { transform: rotateX(100deg); }
  .demo[data-lift="upover"] .demo__door { transform: translate3d(0, -78%, 70px) rotateX(78deg); }
  .demo[data-lift="bifold"] .demo__half--top { transform: rotateX(80deg); }
  .demo[data-lift="bifold"] .demo__half--bottom { transform: translate3d(0, -58px, 69px) rotateX(-80deg); }
}
@media (max-width: 480px) { .demo { height: 250px; --cab-w: 140px; --cab-h: 190px; --cab-d: 120px; } .demo[data-demo="lift"] { --cab-w: 200px; --cab-h: 120px; } }
@media print { .showcase, .toolbar, .bomlive { display: none; } }
@media (max-width: 480px) {
  .toolbar { padding: 4px; gap: 2px; flex-wrap: nowrap; }
  .toolbar__group { gap: 0; }
  .tool { min-width: 34px; height: 38px; padding: 0 6px; font-size: .8125rem; }
  .tool svg { width: 18px; height: 18px; }
}

/* ---------- commercial and industrial page ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.sector { display: grid; gap: 6px; align-content: start; background: var(--paper); border-radius: var(--r); padding: 18px 20px; border-top: 5px solid var(--tape); }
.sector__n { font-family: var(--display); font-weight: 800; font-size: .9rem; color: var(--tape-deep); letter-spacing: .08em; }
.sector h3 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.sector p { color: var(--ink-soft); font-size: .95rem; }
.matgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.matcard { display: grid; gap: 8px; align-content: start; background: var(--board); border-radius: var(--r); padding: 20px 22px; }
.matcard h3 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.matcard__use { font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 8px; margin-top: auto; }
.matcard__use b { color: var(--ink); margin-right: 4px; }
.hwgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px 28px; margin-bottom: 22px; }
.hwitem { display: grid; gap: 6px; padding: 16px 0; border-top: 2px solid rgba(255, 255, 255, .16); }
.hwitem h3 { color: var(--tape); font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.hwitem p { color: var(--on-ink-soft); }
.band--ink .fine--light a { color: var(--on-ink); }
.steps-list { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.steps-list li { counter-increment: s; display: grid; gap: 8px; align-content: start; background: var(--board); border-radius: var(--r); padding: 20px; }
.steps-list li::before { content: counter(s); width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.4rem; background: var(--tape); color: var(--tape-ink); border-radius: 50%; }
.steps-list h3 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.steps-list p { color: var(--ink-soft); }
.ticks { display: grid; gap: 8px; margin: 6px 0 18px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 14px; height: 8px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.band--tape .split__copy { display: grid; gap: 12px; max-width: 46em; }
.band--tape .btn--ink { justify-self: start; }

/* ---------- design program: floor plan, fillers and panels ---------- */
.fplist { display: grid; gap: 8px; }
.fproom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border-radius: var(--r); background: var(--paper); }
.fproom__txt { display: grid; gap: 1px; min-width: 0; }
.fproom__txt small { color: var(--ink-soft); font-size: .8125rem; overflow-wrap: anywhere; }
.fproom__dims { font-family: var(--display); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.wrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.wrow .field { flex: 0 1 220px; }
#fill-block .chips--add .chip--add::before { content: "+"; }
/* eight menu items: the logo never squashes, the links tighten up instead */
.brand { flex: none; }
.brand img { width: auto; }
@media (min-width: 901px) and (max-width: 1180px) {
  .brand img { height: 46px; }
  .site-nav { gap: 2px; }
  .site-nav a:not(.btn) { padding-inline: 6px; font-size: .86rem; }
  .site-nav .btn { padding-inline: 12px; font-size: .9rem; }
}
/* with eight menu items, small laptops get the Menu button too */
@media (min-width: 901px) and (max-width: 1060px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-head__in { flex-wrap: wrap; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 6px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .site-nav .site-nav__phone { display: block; }
  .site-nav .btn { margin-top: 10px; align-self: flex-start; }
  .brand img { height: 52px; }
}
@media (min-width: 1061px) and (max-width: 1640px) { .site-nav__phone { display: none; } }
.fplist { padding: 2px; }
/* drawers: layout, heights and order */
.drawin { display: grid; gap: 12px; border-top: 2px dashed rgba(10, 10, 9, .15); padding-top: 14px; }
.drawin h3 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.drwlist { display: grid; gap: 0; }
.drwlist small { color: var(--ink-soft); font-weight: 600; margin-left: 4px; }
.drwlist__btns { display: flex; align-items: center; gap: 6px; flex: none; }
.drwlist__btns .chip { min-width: 44px; justify-content: center; font-size: 1.1rem; }
.wb-drw { cursor: ns-resize; touch-action: none; }
.wb-drw:focus { outline: none; }

/* ---------- design program: guide, labelled tools, bulkhead ---------- */
.dguide { background: var(--board); border-radius: var(--r); padding: 0 18px; margin-bottom: 22px; }
.dguide > summary { cursor: pointer; font-weight: 800; padding: 14px 0; }
.dguide[open] > summary { border-bottom: 1px solid var(--rule); }
.dguide__body { display: grid; gap: 16px; padding: 16px 0 18px; }
.dguide__steps { counter-reset: g; display: grid; gap: 10px; }
.dguide__steps li { counter-increment: g; position: relative; display: block; padding-left: 44px; min-height: 30px; line-height: 1.45; }
.dguide__steps li::before { content: counter(g); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--tape); color: var(--tape-ink); font-weight: 800; }
.dguide__words { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px 18px; }
.dguide__words div { display: grid; gap: 2px; }
.dguide__words dt { font-weight: 800; }
.dguide__words dd { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.dpanel__intro { margin: -4px 0 4px; }
.tool { flex-direction: column; gap: 3px; min-height: 48px; height: auto; padding: 5px 8px; }
.tool span { font-size: .6875rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.tool--text { min-height: 48px; }
#add-fill .chips__label { flex-basis: 100%; margin-top: 4px; font-weight: 800; color: var(--ink); font-size: .8125rem; letter-spacing: .02em; }
#add-fill .chips__label:first-child { margin-top: 0; }
.fill-msg { font-weight: 700; color: var(--ink); }
.fill-msg:empty { display: none; }
.bhopts { display: grid; gap: 8px; }
.bhopts__note { font-weight: 600; color: var(--ink); }
.bhopts__note.is-bad { color: var(--bad); }
@media (max-width: 480px) {
  .toolbar { flex-wrap: wrap; justify-content: center; gap: 4px 2px; }
  .tool { min-width: 52px; min-height: 46px; padding: 4px 4px; }
  .tool span { font-size: .625rem; }
}
/* "More below" at the foot of the question list while there is more to scroll to */
.morecue { position: sticky; bottom: -12px; margin-top: -44px; height: 44px; display: none; align-items: flex-end; justify-content: center; padding-bottom: 6px; pointer-events: none; background: linear-gradient(rgba(237, 235, 230, 0), var(--paper) 75%); }
.morecue span { font-size: .8125rem; font-weight: 800; background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 4px 12px; }
.has-more .morecue { display: flex; }
.btn--small { min-height: 38px; padding: 6px 14px; font-size: .875rem; }

/* ---------- design program: messages, room buttons, piece list, phone layout ---------- */
.form, .notice, .field { scroll-margin-top: 120px; }
.roomtabs { position: relative; }
.roomacts { display: flex; flex-wrap: wrap; gap: 8px; }
.roomadd { display: grid; gap: 8px; }
.field-msg { font-weight: 700; color: var(--ink); }
.field-msg:empty { display: none; }
.field-msg.is-bad, .fill-msg.is-bad { color: var(--bad); }
.piecelist { display: grid; gap: 8px; }
.piecelist h3 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.chip--piece small { font-weight: 600; color: var(--ink-soft); }
.chip--piece[aria-pressed="true"] small { color: inherit; }
.chip--more { border-style: dashed; font-weight: 700; }
.btn.is-armed { background: var(--bad); border-color: var(--bad); color: #fff; }
.fit__warn { display: block; margin-top: 6px; color: var(--bad); }
.fit--ok .fit__warn { color: var(--bad); }
#cab-types .chips__label { flex-basis: 100%; }
@media (max-width: 900px) {
  /* no box that scrolls inside another box on a phone */
  .swatches--short { max-height: none; overflow: visible; padding-right: 0; }
  /* many rooms: one row of tabs you can swipe */
  .roomtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .roomtabs button { flex: none; white-space: nowrap; scroll-snap-align: start; }
}
@media (max-width: 860px) {
  /* step 5 on a phone: your design and its PDF first, then the form to send it */
  .dpanel[data-step="5"] .twocol__side { order: -1; }
}
/* a narrow room (a vanity, a linen cupboard) is drawn tall: keep it within the screen so its sizes stay in view */
.dwork .wb-plan { max-height: calc(100vh - 250px); }
@media (max-width: 900px) { .dwork .wb-plan { max-height: 70vh; } }
.fit__note { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }
.dopen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.form-again > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }

/* ---------- design program: room shapes, the wall map, corners ---------- */
.shapeblock { display: grid; gap: 12px; }
.shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shapecard { display: grid; gap: 3px; justify-items: center; align-content: start; text-align: center; padding: 10px 6px 12px; border-radius: var(--r); border: 2px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; min-height: 44px; }
.shapecard svg { width: 100%; max-width: 112px; height: auto; display: block; }
.shapecard b { font-weight: 800; font-size: .98rem; }
.shapecard small { font-size: .78rem; color: var(--ink-soft); line-height: 1.25; }
.shapecard:hover { border-color: var(--ink-soft); }
.shapecard[aria-pressed="true"] { border-color: var(--ink); background: var(--board); box-shadow: inset 0 0 0 3px var(--tape); }
.shapemore { display: grid; gap: 8px; }
.wallpick { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); gap: 14px; align-items: start; background: var(--board); border-radius: var(--r); padding: 12px; }
@media (max-width: 480px) { .wallpick { grid-template-columns: minmax(0, 1fr); } .wallpick__map { max-width: 240px; } }
.wallpick__map svg { width: 100%; height: auto; display: block; }
.wallpick__map [data-wall-pick] { cursor: pointer; }
.wallpick__map [data-wall-pick]:focus-visible rect { stroke: #1273de; stroke-width: 3; }
.wallpick .ask__q { margin-top: 0; }
.chip--wall b { font-weight: 900; margin-right: 3px; }
.chip--wall small { color: var(--ink-soft); margin-left: 4px; }
.chip--wall[aria-pressed="true"] small { color: inherit; }
.cornerq { display: grid; gap: 8px; border-radius: var(--r); }
.cornerq.is-flash { animation: wb-flash 1.4s ease; }
@keyframes wb-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0); } 25% { box-shadow: 0 0 0 6px rgba(242, 183, 5, .55); } }
.wb-plan [data-corner], .wb-plan [data-wall] { cursor: pointer; }
.wb-walltag:focus-visible rect { stroke: #1273de; }
/* the wall buttons above the drawing, on every step */
.wallbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.wallbar__label { font-size: .875rem; font-weight: 700; color: var(--ink-soft); }
.wallbar .chip { min-height: 44px; }
.chip__bad { font-style: normal; font-weight: 800; color: #b3261e; margin-left: 4px; }
.chip[aria-pressed="true"] .chip__bad { color: #ffb4aa; }
.chip__ico { width: 24px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.wallpick__now { margin: 0; font-size: 1.05rem; }
.summary li.summary__bad { color: #b3261e; font-weight: 700; }
@media (max-width: 480px) { .wallbar__label { flex-basis: 100%; } .wallbar .chip { padding: 6px 10px; } }
.planzoom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.planzoom[hidden] { display: none; }
.dwork .sheet.is-zoomed { overflow-x: auto; touch-action: pan-x pan-y; }
.dwork .sheet.is-zoomed .wb-plan { width: 230%; max-width: none; max-height: none; touch-action: pan-x pan-y; }

/* ---------- design program: pictures of the drawing, with notes ---------- */
.dpics { display: grid; gap: 6px; }
.dpics[hidden] { display: none; }
.dpics__head { margin: 6px 0 0; }
.dpics__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dpic { display: grid; gap: 4px; width: 150px; }
.dpic__btn { position: relative; display: block; padding: 0; border: 2px solid var(--rule); border-radius: var(--r); background: var(--board); cursor: pointer; overflow: hidden; aspect-ratio: 4 / 3; }
.dpic__btn:hover, .dpic__btn:focus-visible { border-color: var(--ink); }
.dpic__btn img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dpic__wait { display: grid; place-items: center; height: 100%; font-size: .85rem; color: var(--ink-soft); }
.dpic__n { position: absolute; top: 4px; left: 4px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; padding: 0 6px; }
.dpic__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; font-size: .85rem; }
.dpic__meta small { color: var(--ink-soft); }
.dpic__pdf { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; cursor: pointer; min-height: 32px; }
.dpic__pdf input { width: 18px; height: 18px; accent-color: var(--ink); }
.dpics--review { margin-top: 16px; }
.dpics--review .dpic { width: 130px; }
/* the picture editor */
.shotdlg { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 16px 18px 18px; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(10, 10, 9, .35); overflow: auto; }
.shotdlg::backdrop { background: rgba(10, 10, 9, .62); }
/* the job address question before the PDF is made */
.sitedlg { width: min(520px, calc(100vw - 32px)); padding: 20px 22px 22px; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(10, 10, 9, .35); }
.sitedlg::backdrop { background: rgba(10, 10, 9, .62); }
.sitedlg h2 { margin: 0 0 4px; font-size: 1.4rem; }
.sitedlg .ask__hint { margin: 0 0 12px; }
.sitedlg .field input { width: 100%; }
.sitedlg__err { margin: 6px 0 0; min-height: 1.2em; color: var(--bad, #b3261e); font-weight: 600; }
.sitedlg__err:empty { min-height: 0; }
.sitedlg__note { margin: 8px 0 0; font-size: .875rem; }
.sitedlg__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shotdlg[open] { display: grid; gap: 10px; }
.shotdlg:not([open]) { display: none; }
.shotdlg__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.shotdlg__head h2 { margin: 0; font-size: 1.5rem; }
.shotdlg__head .ask__hint { margin: 2px 0 0; }
.shotdlg__x { flex: none; width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--ink); background: var(--board); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.shotdlg__tools { margin: 0; }
.shotdlg #shot-hint { margin: 0; }
.shotdlg__pic { display: grid; place-items: center; background: var(--board); border: 2px solid var(--rule); border-radius: var(--r); padding: 6px; }
#shot-canvas { display: block; max-width: 100%; max-height: 52vh; width: auto; height: auto; cursor: crosshair; touch-action: none; }
#shot-canvas.is-drawing { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23d62d20' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 10 10, crosshair; }
.shotdlg__h { margin: 4px 0 0; font-size: 1.1rem; }
.shotnotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shotnotes li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.shotnotes__n { width: 30px; height: 30px; border-radius: 15px; background: #f2b705; border: 2px solid var(--ink); font-weight: 800; display: grid; place-items: center; }
.shotnotes input { min-height: 44px; border: 2px solid var(--rule); border-radius: var(--r); padding: 8px 10px; font: inherit; background: var(--board); color: var(--ink); width: 100%; }
.shotnotes input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(240, 168, 28, .45); }
/* Done and Download stay in view at the bottom, however long the list of notes is */
.shotdlg__foot { position: sticky; bottom: -18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; border-top: 2px solid var(--rule); padding: 12px 0 18px; margin-bottom: -18px; background: var(--paper); z-index: 1; }
.shotdlg__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .shotdlg { padding: 12px; border-radius: 14px; }
  /* on a phone the buttons simply come after the notes, so they never cover the picture */
  .shotdlg__foot { position: static; padding-bottom: 0; margin-bottom: 0; }
  .shotdlg__btns { display: grid; grid-template-columns: 1fr 1fr; }
  .shotdlg__btns #shot-download { grid-column: 1 / -1; }
  .shotdlg__head h2 { font-size: 1.25rem; }
  .shotdlg__btns { width: 100%; }
  .shotdlg__btns .btn { width: 100%; padding-inline: 10px; }
  .dpic { width: calc(50% - 5px); }
  .shotnotes li { grid-template-columns: auto minmax(0, 1fr); }
  .shotnotes li .chip { grid-column: 2; justify-self: start; }
}

/* ---------- the 3D view: in the drawing area on steps 2 to 4, and at the top of step 5 ---------- */
.v3d { display: grid; gap: 8px; }
.v3d__stage { position: relative; }
.v3d__cv { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 72vh; border: 2px solid var(--ink); border-radius: var(--r); background: #ece9e5;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.v3d__cv:active { cursor: grabbing; }
.v3d__tip { position: absolute; left: 12px; top: 12px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(10, 10, 9, .74); color: #fff;
  font-size: .8125rem; font-weight: 600; pointer-events: none; transition: opacity .4s; max-width: calc(100% - 24px); }
.v3d__tip.is-gone { opacity: 0; }
.v3d__bar { display: flex; flex-wrap: wrap; gap: 6px; }
.v3d__bar .chip { min-height: 44px; }
.v3d__zoom { min-width: 48px; font-size: 1.25rem; line-height: 1; }
.final3d { display: grid; gap: 10px; margin: 6px 0 24px; }
.final3d__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 18px; }
.final3d__head h3 { font-size: 1.25rem; }
.final3d__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.final3d__none { font-weight: 600; padding: 12px 14px; border-left: 6px solid var(--ink-soft); background: var(--board); border-radius: var(--r); }
@media (max-width: 560px) {
  .v3d__cv { aspect-ratio: 4 / 3.4; max-height: 62vh; }
  .v3d__bar .chip { padding: 6px 10px; font-size: .875rem; }
}

/* ---------- guides ---------- */
.guide-meta { color: var(--on-ink-soft); font-size: .95rem; }
.guide { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); gap: clamp(28px, 5vw, 64px); align-items: start; }
.guide__toc { position: sticky; top: 110px; display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: var(--board); }
.guide__toc-h { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.guide__toc ol { display: grid; gap: 8px; padding-left: 1.3em; list-style: decimal; font-size: .95rem; line-height: 1.35; }
.guide__toc a { color: inherit; }
.guide__body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.guide__body h2 { margin-top: 20px; scroll-margin-top: 110px; }
.guide__body > h2:first-child { margin-top: 0; }
.guide__list { display: grid; gap: 8px; padding-left: 1.4em; }
ul.guide__list { list-style: disc; }
ol.guide__list { list-style: decimal; }
.guide__list li { padding-left: .2em; }
.guide__table { overflow-x: auto; border-radius: var(--r); background: var(--board); }
.guide__table table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.guide__table th, .guide__table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.guide__table thead th { font-family: var(--display); font-weight: 800; }
.guide__table tbody th { font-weight: 600; }
.guide__table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 860px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide__toc { position: static; }
}
@media (max-width: 560px) {
  .guide__table table { font-size: .88rem; }
  .guide__table th, .guide__table td { padding: 9px 8px; }
  .guide__table th:first-child, .guide__table td:first-child { padding-left: 12px; }
}
.svc-guides { margin-top: 26px; display: grid; gap: 10px; }
.svc-guides h3 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.svc-card h3 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.band__more { margin-top: 22px; }

/* ---------- the Google map of the workshop ---------- */
.mapbox { margin: 0; display: grid; gap: 8px; }
.mapbox iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 260px; max-height: 440px; border: 0; border-radius: var(--r); background: #e5e3df; }
.mapbox--side iframe { aspect-ratio: 4 / 3; min-height: 220px; }
.mapbox figcaption { font-size: .9375rem; color: var(--ink-soft); }
.contact__map { grid-column: 1 / -1; justify-items: stretch; width: 100%; }
.mapbox { width: 100%; }
.band__head + .mapbox { margin-bottom: 28px; }
.twocol__side .mapbox { margin-top: 18px; }

/* ---------- click to chat on WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #157f45; color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 26px rgba(10, 10, 9, .28), inset 0 2px 0 rgba(255, 255, 255, .18); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
.wa-float svg circle { fill: #157f45; }
.wa-float:hover, .wa-float:focus-visible { background: #0f6b39; color: #fff; }
.wa-float:focus-visible { outline: 3px solid #1273de; outline-offset: 3px; }
@media (max-width: 600px) {
  .wa-float { padding: 12px; min-height: 52px; min-width: 52px; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .wa-float { display: none; } }
/* the design program fills the screen with the drawing: WhatsApp stays in the footer there */
.page-design .wa-float { display: none; }
