@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('./assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./assets/fonts/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg-canvas: #f7f3eb;
  --bg-surface: #fffcf6;
  --bg-subtle: #ede5d8;
  --fg-primary: #242720;
  --fg-secondary: #393b33;
  --fg-muted: #5e5b51;
  --border-hairline: #cdc2b3;
  --accent: #994330;
  --accent-fg: #fffaf1;
  --accent-hover: #7e3627;
  --control-border: #807466;
  --ink: var(--fg-primary);
  --dark: #1b1d18;
  --body: var(--fg-secondary);
  --muted: var(--fg-muted);
  --paper: var(--bg-canvas);
  --solid: var(--bg-surface);
  --sage: var(--bg-subtle);
  --peach: #f2e7db;
  --yellow: #ebd5c5;
  --line: var(--border-hairline);
  --error: #943229;
  --focus: #853d2e;
  --radius: .4375rem;
  --control-radius: .25rem;
  --wide: 82rem;
  --gutter: clamp(1rem, 3.9vw, 3.75rem);
  --font: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --home-heading: 'Bricolage Grotesque', var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--body); font: 400 1rem/1.55 var(--font); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), select, summary { cursor: pointer; }
a { color: var(--ink); text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
main:has(> #home-hero) :is(h1, h2) { font-family: var(--home-heading); font-weight: 700; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 5.7vw, 5.25rem); }
h2 { font-size: clamp(1.85rem, 3.65vw, 3.35rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
input, select, textarea { width: 100%; min-width: 0; min-height: 3.05rem; border: 1px solid var(--control-border); border-radius: var(--control-radius); padding: .65rem .85rem; background: var(--solid); color: var(--dark); }
textarea { resize: vertical; min-height: 7rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="search"] { appearance: none; }
input:invalid:not(:placeholder-shown) { border-color: var(--error); }
label { display: block; color: var(--ink); font-weight: 700; }
label > :is(input, select, textarea) { margin-top: .35rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wide)); margin-inline: auto; }
.basic-page { min-height: 55vh; padding-block: clamp(2rem, 5vw, 4.5rem); }
.page-intro { display: grid; gap: .8rem; margin-bottom: 2rem; }
.page-intro p { max-width: 66ch; font-size: 1.08rem; text-wrap: pretty; }
.subtle { color: var(--muted); }
.compact { font-size: .92rem; }
.stack { display: grid; gap: 1rem; }
.screen-reader, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: .6rem; left: .6rem; padding: .6rem 1rem; background: white; }
.button {
  display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .48rem;
  border: 1px solid var(--control-border); border-radius: var(--control-radius); padding: .55rem 1.05rem;
  background: transparent; color: var(--ink); font-weight: 700; line-height: 1.24; text-decoration: none; text-align: center;
}
.button:hover { background: var(--bg-subtle); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:not(:disabled):active { transform: translateY(1px); }
.button:disabled { opacity: .48; }
.button.small { font-size: .875rem; min-height: 2.75rem; padding: .45rem .8rem; }
.button.full { width: 100%; }
.icon { flex: none; width: 1.2em; height: 1.2em; vertical-align: middle; }
.link-button { border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; min-height: 2.75rem; padding: .4rem .1rem; font-weight: 700; }
.text-action { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; text-underline-offset: .28em; }
.text-action:hover { color: var(--accent); }
.inline-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.status-text { color: var(--ink); font-size: .94rem; }
.status-text.error { color: var(--error); }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; gap: clamp(.85rem, 2vw, 2.5rem); align-items: center; justify-content: space-between; min-height: 4.65rem; }
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; padding-block: .45rem; }
.wordmark img, .footer-logo { width: clamp(5rem, 9vw, 6rem); height: auto; }
.header-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 2vw, 1.8rem); flex: 1; }
.header-nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; white-space: nowrap; font-weight: 700; font-size: .91rem; }
.header-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; border-bottom: 2px solid var(--accent); }
.header-nav a:hover { text-decoration: underline; }
.header-tools { display: flex; gap: .55rem; align-items: center; }
.header-tools .button { white-space: nowrap; }
.header-quote { text-decoration: none; display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .875rem; font-weight: 700; min-height: 2.75rem; min-width: 2.75rem; padding-inline: .35rem; }
.header-quote:hover, .header-quote[aria-current="page"] { color: var(--accent); }
.header-search { min-width: 2.75rem; padding-inline: 0; border-color: transparent; }
.header-whatsapp { border-color: var(--accent); color: var(--accent); }
.quote-count { background: var(--yellow); color: var(--dark); padding: .01rem .38rem; line-height: 1.5; min-width: 1.2rem; text-align: center; border-radius: .3rem; font-size: .82rem; }
.mobile-menu-toggle, .header-nav .mobile-whatsapp { display: none; }

.hero-inner { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(1.5rem, 4.25vw, 4.25rem); padding-block: clamp(1.65rem, 3vw, 2.6rem) 1.6rem; }
.hero-copy { display: grid; gap: clamp(.8rem, 1.65vw, 1.35rem); padding-bottom: 1.4rem; }
.hero-copy h1 { font-size: clamp(2.9rem, 5.2vw, 4.85rem); line-height: 1.01; text-wrap: initial; }
.hero-copy p { max-width: 44ch; font-size: clamp(1rem, 1.45vw, 1.16rem); text-wrap: pretty; }
.hero-copy .hero-location { color: var(--muted); font-size: .875rem; font-weight: 700; }
.hero-copy .inline-actions { gap: .5rem 1.35rem; margin-top: .15rem; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.find-section { background: var(--solid); border-block: 1px solid var(--line); padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2rem, 4vw, 3.4rem); }
.find-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: end; gap: clamp(1rem, 4vw, 3.5rem); margin-bottom: 1.4rem; }
.find-row h2 { padding-bottom: .15rem; }
.search-field { display: grid; min-width: 0; gap: .22rem; }
.search-field label { font-size: .89rem; }
.search { display: flex; gap: .55rem; align-items: center; position: relative; }
.search .search-icon { color: var(--ink); position: absolute; left: .85rem; pointer-events: none; }
.search input { min-height: 3rem; padding-left: 2.55rem; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.category-grid li { min-width: 0; }
.category-tile { min-width: 0; height: 100%; display: grid; align-content: start; position: relative; font-weight: 700; text-decoration: none; background: var(--paper); }
.category-tile img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: contain; padding: clamp(.65rem, 1.55vw, 1.25rem); background: var(--sage); mix-blend-mode: multiply; }
.category-tile span { display: flex; align-items: center; min-height: 3rem; padding: .6rem .8rem; line-height: 1.22; }
.category-tile:hover span { color: var(--accent); text-decoration: underline; text-underline-offset: .21em; }
.category-tile:focus-visible { z-index: 1; outline-offset: -3px; }
.home-walkthrough { --walkthrough-top: 4.65rem; border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.walkthrough-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem 1.4rem; margin-bottom: clamp(1rem, 2.65vw, 2rem); }
.walkthrough-heading h2 { text-wrap: pretty; }
.walkthrough-layout { display: grid; align-items: center; gap: 1.2rem clamp(1.5rem, 5vw, 5rem); }
.walkthrough-track, .walkthrough-scrubber, .walkthrough-plan { display: none; }
.walkthrough-steps { display: grid; gap: 1rem; margin: 0; padding-inline-start: 1.45rem; }
.walkthrough-step::marker { color: var(--accent); font-weight: 700; }
.walkthrough-step h3 { font-size: clamp(1.25rem, 2.7vw, 2.1rem); text-wrap: pretty; }
.walkthrough-step p { max-width: 53ch; margin-top: .55rem; text-wrap: pretty; }
.walkthrough-figure { border: 1px solid var(--line); background: var(--solid); }
.walkthrough-scene { position: relative; display: grid; place-items: center; aspect-ratio: 620 / 413; overflow: hidden; }
.walkthrough-plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.walkthrough-scene img { width: 70%; height: auto; }
.walkthrough-figure figcaption { padding: .15rem .75rem; border-top: 1px solid var(--line); font-size: .875rem; }
.walkthrough-figure a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.walkthrough-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.walkthrough-track button {
  position: relative;
  min-width: 0;
  min-height: 2.75rem;
  border: 0;
  border-radius: var(--control-radius);
  padding: .45rem 0 0;
  background: linear-gradient(var(--line), var(--line)) top left / 100% 3px no-repeat;
  color: var(--muted);
  text-align: start;
  font: 700 .875rem/1 var(--font);
  font-variant-numeric: tabular-nums;
}
.walkthrough-track button::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); transform: scaleX(var(--filled, 0)); transform-origin: left; content: ''; }
.walkthrough-track button:hover, .walkthrough-track [aria-current="step"] { color: var(--accent); }
.walkthrough-track [aria-current="step"] span { text-decoration: underline; text-underline-offset: .25em; }
.walkthrough-scrubber { margin-top: .8rem; }
.walkthrough-scrubber-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; font-size: .875rem; }
.walkthrough-status { color: var(--muted); font-variant-numeric: tabular-nums; }
.walkthrough-scrubber input { appearance: none; min-width: 0; min-height: 2.75rem; margin: 0; padding: 0; border: 0; background: transparent; cursor: grab; }
.walkthrough-scrubber input:active { cursor: grabbing; }
.walkthrough-scrubber input::-webkit-slider-runnable-track { height: 4px; background: var(--line); }
.walkthrough-scrubber input::-moz-range-track { height: 4px; background: var(--line); }
.walkthrough-scrubber input::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; margin-top: -12px; border: 0; border-radius: var(--control-radius); background: var(--ink); }
.walkthrough-scrubber input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: var(--control-radius); background: var(--ink); }
.walkthrough-scrubber input:active::-webkit-slider-thumb { background: var(--accent); }
.walkthrough-scrubber input:active::-moz-range-thumb { background: var(--accent); }
@media (min-width: 48rem) {
  .walkthrough-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 48rem) {
  .home-walkthrough { --walkthrough-top: 4.15rem; }
}

/* Scene timing and layers adapted from https://ppt-edu-supplies.pages.dev/#process. */
@media (prefers-reduced-motion: no-preference) and (min-height: 37rem) {
  [data-scrub] .walkthrough-scroll { height: 400vh; }
  [data-scrub] .walkthrough-pin { position: sticky; top: var(--walkthrough-top); display: grid; align-items: center; min-height: calc(100svh - var(--walkthrough-top)); }
  [data-scrub] .walkthrough-track { display: grid; margin-bottom: clamp(.5rem, 3vw, 2.3rem); }
  [data-scrub] .walkthrough-steps { gap: 0; list-style: none; padding: 0; }
  [data-scrub] .walkthrough-step { grid-area: 1 / 1; opacity: 0; transform: translateY(.8rem); transition: opacity .22s ease, transform .22s ease; }
  [data-scrub] .walkthrough-step.current { opacity: 1; transform: none; }
  [data-scrub] .walkthrough-step:not(.current) { pointer-events: none; user-select: none; }
  [data-scrub] .walkthrough-plan, [data-scrub] .walkthrough-scrubber { display: block; }
  [data-scrub] .scene-layer { animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both; animation-play-state: paused; animation-delay: calc(var(--progress, 0) * -1s); }
  .scene-room { fill: none; stroke: var(--control-border); stroke-width: 2; stroke-dasharray: 1810; animation-name: walkthrough-room; }
  .scene-dimension { stroke: var(--ink); stroke-width: 1.5; transform-origin: 310px 358px; animation-name: walkthrough-dimension; }
  .scene-measurement { stroke: var(--ink); stroke-width: 1.5; animation-name: walkthrough-measurement; }
  text.scene-measurement { stroke: none; fill: var(--ink); font: 700 19px var(--font); text-anchor: middle; }
  .scene-footprint { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 9 7; animation-name: walkthrough-footprint; }
  .scene-part { fill: var(--peach); stroke: var(--ink); stroke-width: 1.4; }
  .part-a { animation-name: walkthrough-part-a; }
  .part-b { animation-name: walkthrough-part-b; }
  .part-c { animation-name: walkthrough-part-c; }
  .part-d { animation-name: walkthrough-part-d; }
  .scene-plan-parts { animation-name: walkthrough-plan-out; }
  .scene-build { animation-name: walkthrough-build; }
  .scene-check { fill: none; stroke: var(--accent); stroke-width: 3.6; stroke-linejoin: round; transform-origin: 502px 299px; animation-name: walkthrough-check; }
}
@keyframes walkthrough-room { 0% { stroke-dashoffset: 1810; } 7%, 100% { stroke-dashoffset: 0; } }
@keyframes walkthrough-dimension { 0%, 5% { transform: scaleX(0); } 13%, 100% { transform: scaleX(1); } }
@keyframes walkthrough-measurement { 0%, 11% { opacity: 0; } 16%, 100% { opacity: 1; } }
@keyframes walkthrough-footprint { 0%, 23% { opacity: 0; } 29%, 100% { opacity: 1; } }
@keyframes walkthrough-part-a { 0%, 36% { opacity: 0; transform: translate(-300px, -110px); } 42% { opacity: 1; } 50%, 100% { opacity: 1; transform: none; } }
@keyframes walkthrough-part-b { 0%, 39% { opacity: 0; transform: translate(320px, -90px); } 45% { opacity: 1; } 53%, 100% { opacity: 1; transform: none; } }
@keyframes walkthrough-part-c { 0%, 42% { opacity: 0; transform: translate(-280px, 140px); } 48% { opacity: 1; } 56%, 100% { opacity: 1; transform: none; } }
@keyframes walkthrough-part-d { 0%, 45% { opacity: 0; transform: translate(300px, 150px); } 51% { opacity: 1; } 59%, 100% { opacity: 1; transform: none; } }
@keyframes walkthrough-plan-out { 0%, 78% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes walkthrough-build { 0%, 78% { opacity: 0; transform: translateY(6%); } 90%, 100% { opacity: 1; transform: none; } }
@keyframes walkthrough-check { 0%, 88% { opacity: 0; transform: scale(.72); } 97%, 100% { opacity: 1; transform: none; } }
.home-build { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); align-items: center; gap: clamp(1.35rem, 5.5vw, 5.5rem); padding-block: clamp(2.5rem, 6.5vw, 6.5rem); }
.home-build-photo img { width: 100%; height: auto; aspect-ratio: 1.33; object-fit: cover; }
.home-build-photo figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .1rem 1rem; padding-top: .35rem; color: var(--muted); font-size: .875rem; }
.home-build-photo strong { color: var(--ink); }
.home-build-photo .project-location { display: block; }
.home-build-copy h2 { max-width: 13ch; }
.home-project-index { margin-top: 1.35rem; border-block: 1px solid var(--line); }
.home-project-index li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .15rem 1rem; padding-block: .65rem; }
.home-project-index li + li { border-top: 1px solid var(--line); }
.home-project-index span { display: block; color: var(--muted); font-size: .9rem; }
.project-map-link { font-size: .875rem; }
.home-build-copy > .text-action { margin-top: .45rem; }
.home-catalogues { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 1rem 2rem; padding-block: clamp(2.15rem, 5vw, 4rem); }
.home-catalogue-links { border-top: 1px solid var(--line); }
.home-catalogue-links li { border-bottom: 1px solid var(--line); }
.home-catalogue-links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .7rem; min-height: 2.75rem; font-weight: 700; }
.home-catalogue-links span { color: var(--muted); font: 400 .8rem/1 var(--font); }
.site-footer { background: var(--bg-subtle); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: 2.1rem; }
.footer-inner nav { display: flex; gap: .75rem 1.2rem; flex-wrap: wrap; align-content: center; justify-content: flex-end; }
.footer-inner nav a { font-weight: 700; }

.product-tools { display: grid; gap: .9rem; margin-bottom: 1.6rem; }
.category-filters { display: flex; flex-wrap: wrap; gap: .55rem; }
.category-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--accent-fg); }
.results-summary { margin-bottom: .7rem; }
.results-label { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.25vw, 2rem); }
.product-card { min-width: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.product-picture { display: block; background: var(--sage); padding: 1rem; }
.product-card[data-category="playgrounds"] .product-picture { background: var(--peach); }
.product-picture img { width: 100%; height: clamp(8rem, 16vw, 14rem); object-fit: contain; mix-blend-mode: multiply; }
.product-card-body { display: grid; gap: .35rem; padding: .85rem .05rem 1rem; align-content: start; }
.product-card-body h3 { min-height: 2.4em; }
.product-card-body h3 a { text-decoration: none; }
.product-card-body h3 a:hover { text-decoration: underline; }
.product-code { color: var(--muted); font: 500 .86rem/1.5 var(--font); font-variant-numeric: tabular-nums; }
.price { color: var(--accent); font-weight: 700; font-size: 1.45rem; line-height: 1.25; }
.price, .dimensions, .product-specifications, .quick-search-price, .room-width, .room-depth, .stepper output { font-variant-numeric: tabular-nums; }
.price-label { display: block; color: var(--muted); font-size: .875rem; font-weight: 500; margin-bottom: .1rem; }
.product-card .inline-actions { margin-top: .35rem; }
.product-card .price { font-size: 1.12rem; }
.empty-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: grid; gap: .6rem; justify-items: start; background: var(--solid); }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; margin-bottom: .8rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.4rem, 5vw, 5rem); align-items: start; }
.detail-image { background: var(--bg-subtle); padding: clamp(1.2rem, 5vw, 3rem); }
.detail-image img { width: 100%; height: clamp(15rem, 31vw, 27rem); object-fit: contain; mix-blend-mode: multiply; }
.detail-copy { display: grid; gap: .72rem; padding-block: .3rem; }
.detail-copy h1 { font-size: clamp(2rem, 3.9vw, 3.65rem); }
.detail-copy .price { font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
.detail-copy .inline-actions { margin-block: .4rem; }
.dimensions { color: var(--dark); }
.product-specifications { display: grid; margin: .2rem 0; border-top: 1px solid var(--line); }
.product-specifications > div { display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr); gap: .5rem; padding-block: .42rem; border-bottom: 1px solid var(--line); }
.product-specifications dt { color: var(--ink); font-weight: 700; }
.product-specifications dd { margin: 0; }
.page-results { margin-top: 2.3rem; }
#product-results:empty + .page-results { margin-top: .8rem; }
.page-results > p { margin-block: .55rem; }
.page-matches { display: grid; gap: .55rem; }
.page-match { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .7rem; align-items: center; border-top: 1px solid var(--line); padding-block: .65rem; }
.page-match p { overflow-wrap: anywhere; }
.page-match a { font-weight: 700; }
.page-match .button { grid-column: 2; grid-row: 1 / span 2; }
.catalogue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.catalogue-card { display: grid; grid-template-rows: auto 1fr; border-bottom: 1px solid var(--line); }
.catalogue-card > a { background: var(--sage); padding: 1rem; }
.catalogue-card img { height: clamp(10rem, 19vw, 16rem); width: 100%; object-fit: contain; }
.catalogue-card .stack { align-content: start; padding: 1rem 0 .85rem; gap: .52rem; }
.catalogue-card .inline-actions { align-self: end; }

.quote-page { max-width: 54rem; }
.quote-items { display: grid; gap: .65rem; margin-bottom: 1.25rem; }
.quote-row { border-bottom: 1px solid var(--line); padding: .75rem 0; display: grid; grid-template-columns: 7.3rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.quote-row img { width: 100%; height: 6.4rem; object-fit: contain; background: var(--bg-subtle); padding: .35rem; }
.quote-row h3 a { text-decoration: none; }
.quantity-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: .45rem; overflow: hidden; }
.stepper button { min-width: 2.75rem; min-height: 2.75rem; border: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.stepper button:hover { background: var(--sage); }
.stepper button:disabled { opacity: .4; }
.stepper button:focus-visible { outline-offset: -3px; }
.stepper output { min-width: 2.25rem; padding: .35rem; text-align: center; border-inline: 1px solid var(--line); }
.quote-page textarea { display: block; }
.quote-actions { margin-top: 1rem; }
.quote-actions .primary { min-width: min(100%, 18rem); }
.quote-layout { padding: .75rem 1rem; border-left: 3px solid var(--accent); background: var(--bg-subtle); margin-bottom: 1.25rem; display: grid; gap: .35rem; justify-items: start; }

.project-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(1.2rem, 4.5vw, 4rem); align-items: start; }
.project-story { padding-block: 1rem; }
.project-story .page-intro { margin-bottom: 1.15rem; }
.project-process h2 { font-size: clamp(1.35rem, 2.5vw, 1.95rem); }
.project-process ol { display: grid; gap: .6rem; margin-block: .8rem; padding-inline-start: 1.5rem; }
.project-process li { padding-inline-start: .2rem; }
.project-process li::marker, .project-process strong { color: var(--ink); font-weight: 700; }
.project-form { display: grid; gap: 1.05rem; background: var(--solid); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.8vw, 2rem); }
.project-form .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.project-form textarea { min-height: 8rem; }
.completed-projects, .project-faq { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.completed-projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.7vw, 2.5rem); margin-top: 1.15rem; }
.completed-projects-grid article { display: grid; align-content: start; gap: .35rem; }
.completed-projects-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 57%; margin-bottom: .45rem; }
.project-card-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: .875rem; }
.project-faq-list { max-width: 46rem; margin-top: .75rem; }
.project-faq-list details { border-bottom: 1px solid var(--line); }
.project-faq-list summary { min-height: 2.75rem; padding: .7rem .15rem; color: var(--ink); font-weight: 700; }
.project-faq-list summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.project-faq-list p { padding: 0 1.1rem .75rem; }

.planner-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.1rem; align-items: end; margin-bottom: 1rem; }
.planner-heading p { margin-top: .55rem; }
.room-inputs { display: flex; flex-wrap: wrap; gap: .8rem; }
.room-inputs label { width: 7.5rem; }
.room-inputs input { display: block; }
.planner-tip { margin-bottom: 1rem; }
.planner-grid { display: grid; grid-template-columns: minmax(15rem, .38fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
.planner-picker, .planner-workbench { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--solid); }
.planner-picker { position: sticky; top: .75rem; }
.planner-picker-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.planner-picker .search input { min-height: 2.8rem; }
.planner-items { overflow: auto; max-height: 30rem; overscroll-behavior: contain; }
.planner-item { display: grid; grid-template-columns: 4.9rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .7rem .1rem; border-bottom: 1px solid var(--line); }
.planner-item:last-child { border-bottom: 0; }
.planner-item img { width: 100%; height: 4.25rem; padding: .15rem; object-fit: contain; }
.planner-item strong { display: block; line-height: 1.25; color: var(--ink); }
.planner-item small { color: var(--muted); }
.planner-item-empty { padding-block: .8rem; }
.planner-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-bottom: .85rem; }
.planner-canvas-area { padding: .65rem 1rem .65rem 2.1rem; }
.room-width { display: flex; align-items: center; gap: .6rem; font-weight: 700; justify-content: center; margin-bottom: .35rem; }
.room-width::before, .room-width::after { content: ""; flex: 1; border-top: 1px solid #8e9b90; }
.room-stage { position: relative; max-width: 100%; margin-inline: auto; }
.room-depth { position: absolute; top: 50%; right: calc(100% + .25rem); transform: translateY(-50%) rotate(-90deg); color: var(--ink); white-space: nowrap; font-weight: 700; font-size: .9rem; }
.room-board { position: relative; width: 100%; border: 2px solid var(--control-border); background-color: var(--paper); background-image: linear-gradient(to right, #67574c26 1px, transparent 1px), linear-gradient(to bottom, #67574c26 1px, transparent 1px); container-type: inline-size; }
.room-piece { position: absolute; display: grid; place-content: center; justify-items: center; container-type: size; min-width: 0; border: 1px solid var(--control-border); border-radius: 2px; background: #dfcbb6; color: var(--ink); font-weight: 700; font-size: .88rem; padding: 0; touch-action: none; cursor: grab; }
.room-piece:active { cursor: grabbing; }
.room-piece[data-category="furniture"] { background: #e7dec8; }
.room-piece[data-category="therapy"] { background: #eadad0; }
.room-piece.selected { z-index: 2; outline: 2px solid var(--ink); outline-offset: 1px; }
.room-piece:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.room-piece.overlap { outline: 2px dashed var(--error); outline-offset: 0; z-index: 3; }
.room-piece > span { max-width: 100%; overflow: hidden; pointer-events: none; }
.piece-number { display: none; }
.piece-label { display: none; }
@container (min-width: 16px) and (min-height: 16px) {
  .piece-number { display: block; font-size: clamp(.68rem, 17cqmin, .9rem); }
}
@container (min-width: 92px) and (min-height: 65px) {
  .piece-label { display: block; max-width: calc(100cqw - .55rem); overflow-wrap: anywhere; font-size: .72rem; line-height: 1.15; padding: 0 .18rem; }
}
.room-placeholder { position: absolute; inset: 20% 10%; display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; pointer-events: none; }
.planner-selection { display: grid; padding-top: .2rem; gap: .35rem; min-height: 2.7rem; }
.selection-name { font-weight: 700; color: var(--ink); }
.move-controls { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.move-controls .button { width: 2.75rem; padding-inline: .1rem; }
.move-label { margin-right: .35rem; }
.planner-bottom { display: flex; gap: .7rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: .9rem; }
.planner-bottom p { flex: 1 1 17rem; }
.mobile-picker-open { display: none; }
dialog { color: var(--body); }
dialog::backdrop { background: #14282080; }
.mobile-picker { width: min(100%, 37rem); max-width: 100%; max-height: min(83vh, 43rem); margin: auto auto 0; border: 1px solid var(--ink); border-radius: 1rem 1rem 0 0; background: var(--solid); padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom)); }
.mobile-picker .planner-items { max-height: 52vh; }
body:has(.mobile-picker[open]) { overflow: hidden; }

.toast { visibility: hidden; pointer-events: none; position: fixed; z-index: 8; left: 50%; bottom: 1rem; transform: translateX(-50%); max-width: calc(100% - 2rem); width: max-content; color: white; background: var(--dark); border-radius: .55rem; padding: .7rem 1rem; box-shadow: 0 4px 16px #17312628; font-weight: 650; }
.toast.visible { visibility: visible; }
@media (max-width: 1120px) {
  .header-tools .header-whatsapp { display: none; }
  .planner-item { grid-template-columns: 3.7rem minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .hero-copy { max-width: 36rem; padding-bottom: 0; }
  .hero-copy h1 { font-size: clamp(2.75rem, 8.2vw, 4.65rem); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 810px) {
  .header-inner { min-height: 4.15rem; flex-wrap: wrap; gap: .15rem .5rem; }
  .header-tools { margin-left: auto; }
  .header-tools .quote-label { display: none; }
  .header-quote { position: relative; }
  .header-quote .quote-count { position: absolute; inset: .1rem 0 auto auto; }
  .mobile-menu-toggle { display: inline-flex; min-width: 2.75rem; }
  .header-nav { display: none; order: 1; flex: 0 0 100%; justify-content: flex-start; flex-wrap: wrap; padding-block: .4rem 1rem; }
  .header-nav .mobile-whatsapp { display: inline-flex; }
  .header-nav.open { display: flex; }
  .catalogue-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-grid { grid-template-columns: minmax(0, 1fr); }
  .planner-picker { display: none; }
  .mobile-picker-open { display: inline-flex; }
  .planner-bottom .inline-actions { width: 100%; }
  .planner-bottom .inline-actions .primary { flex: 1; }
  .planner-item { grid-template-columns: 5.2rem minmax(0, 1fr) auto; }
}
@media (max-width: 610px) {
  h1 { font-size: clamp(2.45rem, 9vw, 3.35rem); }
  .mobile-menu-toggle { padding-inline: .58rem; }
  .project-page, .detail-grid, .home-build, .home-catalogues { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 1.75rem .9rem; }
  .hero-copy { gap: .8rem; }
  .hero-copy h1 { font-size: clamp(2.6rem, 10.2vw, 3.7rem); }
  .hero-copy .inline-actions { gap: .45rem 1rem; }
  .find-section { padding-block: 1.55rem 2rem; }
  .find-row { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-build-copy h2 { max-width: none; }
  .footer-inner { grid-template-columns: 1fr; gap: .75rem; }
  .footer-inner nav { justify-content: flex-start; }
  .product-grid, .catalogue-grid { gap: .65rem; }
  .product-card-body { padding: .65rem .1rem; }
  .product-card-body h3 { min-height: 0; font-size: 1.07rem; letter-spacing: -.032em; }
  .product-picture { padding: .55rem; }
  .product-picture img { height: clamp(6.4rem, 31vw, 11rem); }
  .catalogue-card > a { padding: .65rem; }
  .catalogue-card .stack { padding: .65rem 0; }
  .detail-copy .button.primary { width: 100%; }
  .page-match { grid-template-columns: minmax(0, 1fr); }
  .page-match .button { grid-column: auto; grid-row: auto; justify-self: start; }
  .quote-row { grid-template-columns: 4.6rem minmax(0, 1fr); gap: .55rem .75rem; }
  .quote-row img { height: 4.4rem; grid-row: span 2; }
  .quote-row h3 { font-size: 1.07rem; }
  .quantity-controls { grid-column: 2; }
  .quote-actions .button { width: 100%; }
  .project-story { padding-block: 0; }
  .project-form .field-grid { grid-template-columns: minmax(0, 1fr); }
  .completed-projects-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .planner-heading { grid-template-columns: minmax(0, 1fr); }
  .room-inputs { display: grid; grid-template-columns: 1fr 1fr; }
  .room-inputs label { width: auto; }
  .planner-workbench { padding: .65rem; }
  .planner-toolbar { margin-bottom: .2rem; }
  .planner-toolbar h2 { font-size: 1.4rem; }
  .planner-toolbar .button.small { padding: .35rem .55rem; }
  .planner-canvas-area { padding-inline: 1.4rem .25rem; }
  .planner-bottom .inline-actions .button { flex: 1 0 100%; }
}
@media (max-width: 325px) {
  .product-grid, .catalogue-grid { grid-template-columns: 1fr; }
}
.home-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: end; }
#selected-controls { gap: .4rem; }
#selected-controls label { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
#selected-controls select { margin: 0; width: min(100%, 22rem); min-height: 2.75rem; }
#planner-status:empty { display: none; }

html { scroll-padding-top: 6rem; }
.site-header { position: sticky; top: 0; z-index: 4; }
.icon-button { min-width: 2.75rem; padding-inline: .55rem; }
.header-search { border-color: transparent; }
.header-search:hover { border-color: var(--ink); }

.project-gallery {
  min-width: 0;
}
.project-gallery-images {
  display: grid;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1.53;
  touch-action: pan-y;
  background: var(--bg-subtle);
}
.project-gallery-images .hero-photo {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  opacity: 0;
  z-index: 0;
}
.project-gallery-images .hero-photo.current { opacity: 1; z-index: 1; }
.project-gallery-images .hero-photo:nth-child(2) { object-position: 50% 19%; }
.project-gallery-bar {
  min-height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3rem .75rem;
  padding: .2rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.project-gallery-caption { font-size: .9rem; font-weight: 700; line-height: 1.25; }
.project-gallery-actions { display: flex; gap: .25rem; align-items: center; flex: none; }
.project-gallery-actions .button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--ink);
  border-color: transparent;
}
.project-gallery-actions .button:hover { background: var(--bg-subtle); }
.gallery-count { margin-right: .3rem; color: var(--muted); font: 400 .83rem/1 var(--font); font-variant-numeric: tabular-nums; }

.home-drawings {
  background: var(--bg-subtle);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.35rem, 4.5vw, 4.45rem);
}
.home-drawings-heading, .home-planner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.home-drawings-heading { margin-bottom: clamp(.75rem, 2vw, 1.5rem); }
.home-drawings-heading h2 { text-wrap: pretty; }
.home-planner { margin-top: clamp(1.35rem, 3vw, 2.25rem); gap: .8rem 1.5rem; }
.home-planner p { margin-top: .2rem; color: var(--muted); }
.elevation-gallery {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--solid);
}
.elevation-frame {
  display: grid;
  place-items: center;
  height: clamp(13rem, 69vw, 23rem);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(.7rem, 3vw, 2rem);
  background: white;
  touch-action: pan-y pinch-zoom;
}
.elevation-frame img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.elevation-caption {
  display: grid;
  align-content: center;
  gap: clamp(.85rem, 2.1vw, 1.65rem);
  padding: clamp(.85rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.elevation-current { color: var(--ink); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.elevation-measurements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .65rem; margin: .55rem 0 0; }
.elevation-measurements dt { font-size: .875rem; color: var(--muted); }
.elevation-measurements dd { margin: 0; color: var(--ink); font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.elevation-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.elevation-controls .button { min-height: 2.75rem; padding-inline: .2rem; }
.elevation-controls .button[aria-pressed="true"] { background: var(--ink); color: white; }
.elevation-source { justify-self: start; font-size: .875rem; }
.product-elevations { width: min(100%, 70rem); margin-top: 2rem; }
.product-elevations h2, .product-elevations > p { margin-bottom: .85rem; }
@media (min-width: 22.25rem) {
  .elevation-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 46.25rem) {
  .elevation-gallery { grid-template-columns: minmax(0, 1fr) minmax(17rem, 32%); }
  .elevation-frame { height: clamp(22rem, 37vw, 31rem); border-radius: var(--radius) 0 0 var(--radius); }
  .elevation-caption { border-top: 0; border-left: 1px solid var(--line); }
  .elevation-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.quick-search {
  width: min(39rem, calc(100% - 2rem));
  max-height: min(75dvh, 38rem);
  margin: min(11vh, 7rem) auto auto;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--solid);
}
body:has(.quick-search[open]) { overflow: hidden; }
.quick-search-sheet { padding: clamp(.9rem, 3vw, 1.45rem); }
.quick-search-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.quick-search-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.quick-search #quick-search-status { margin: .55rem .1rem .45rem; }
.quick-search-results { display: grid; gap: .3rem; margin: .6rem 0 .85rem; }
.quick-search-results:empty { margin: 0 0 .65rem; }
.quick-search-results a {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .3rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.quick-search-results a:is(:hover, :focus-visible) { background: var(--bg-subtle); }
.quick-search-results a img { width: 100%; height: 2.75rem; object-fit: contain; border-radius: .25rem; }
.quick-search-results a :is(strong, small) { display: block; line-height: 1.25; }
.quick-search-results a small { margin-top: .15rem; color: var(--muted); }
.quick-search-price { font-size: .82rem; }
[data-add-quote].added { background: var(--sage); color: var(--ink); }
.toast { display: flex; gap: .42rem 1rem; align-items: center; flex-wrap: wrap; }
.toast a { color: #fff; pointer-events: auto; min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 700; }
.toast a:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes feedback-in {
    from { opacity: .5; translate: 0 .4rem; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes room-piece-in {
    from { box-shadow: 0 0 0 .32rem #205a4280; }
    to { box-shadow: 0 0 0 1px #205a4200; }
  }
  .quick-search[open], .mobile-picker[open], .header-nav.open, .toast.visible { animation: feedback-in .25s ease-out both; }
  .room-piece.piece-enter { animation: room-piece-in .35s ease-out both; }
  .project-gallery-images .hero-photo { transition: opacity .32s ease; }
  .button, .header-quote, .quick-search-results a { transition: background-color .15s cubic-bezier(.22, 1, .36, 1), border-color .15s cubic-bezier(.22, 1, .36, 1); }
}
@media (max-width: 810px) {
  html { scroll-padding-top: 5rem; }
  .header-tools { gap: .28rem; }
}
@media (max-width: 610px) {
  .project-gallery-images { aspect-ratio: 1.48; }
  .project-gallery-caption { font-size: .9rem; }
  .gallery-count { margin-right: .05rem; }
  .quick-search { margin-top: 1rem; max-height: calc(100dvh - 2rem); }
  .quick-search-results a { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .quick-search-price { font-size: .76rem; }
}
@media (max-width: 345px) {
  .gallery-count { display: none; }
}
