@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@100..700&display=swap');

:root {
  --paper: #f8f8f7;
  --ink: #1c1c1c;
  --muted: #5b5b5b;
  --line: #d6d6d6;
  --gutter: clamp(16px, 3.15vw, 60px);
  --column-gap: clamp(12px, 1.45vw, 24px);
  --section-space: clamp(48px, 5.6vw, 88px);
  --swatch-label-gap: 9px;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.6 "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.12;
}

a {
  color: inherit;
  text-underline-offset: .25em;
}

a:focus-visible,
button.image-zoom:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #d7d7d7;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 3;
  background: var(--paper);
  padding: 8px 12px;
}

.skip:focus { top: 8px; }

.wrap {
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: relative;
  z-index: 2;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.site-header.over-hero {
  position: absolute;
  inset: 0 0 auto;
  color: white;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  min-height: 44px;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: .075em;
}

.brand-descriptor {
  font-size: .75rem;
  font-weight: 190;
  letter-spacing: .13em;
}

.header-menu { position: relative; }

.header-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
}

.header-menu summary::-webkit-details-marker { display: none; }

.header-menu summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 24px;
}

.menu-icon span {
  height: 2px;
  background: currentColor;
}

.header-menu[open] .menu-icon span:first-child { transform: translateY(6px) rotate(45deg); }
.header-menu[open] .menu-icon span:nth-child(2) { visibility: hidden; }
.header-menu[open] .menu-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }

.menu-links {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: min(240px, calc(100vw - 2 * var(--gutter)));
  padding: 6px;
  border: 1px solid #ffffff26;
  background: var(--ink);
  color: white;
}

.over-hero .menu-links {
  border-color: transparent;
  background: transparent;
}

.menu-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-links a:hover { background: #ffffff1a; }
.over-hero .menu-links a:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.menu-links a:focus-visible { outline-offset: -3px; }

.footer-links a:hover,
.application:hover span { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(480px, 85vh, 1080px);
  min-height: clamp(480px, 85svh, 1080px);
  background: #4b4b4b;
}

.hero img, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-position: center 65%;
}

.hero > .image-zoom {
  position: absolute;
  inset: 0;
}

.hero > .image-zoom:focus-visible {
  outline-color: white;
  outline-offset: -4px;
}

.hero::after {
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, #0009, #0007 68px, transparent clamp(145px, 29%, 250px));
}

.hero .hero-project-link {
  position: absolute;
  inset: auto calc(var(--gutter) + clamp(12px, 2.5vw, 40px)) clamp(4px, 1vw, 16px) auto;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: white;
  font-size: .875rem;
  font-weight: 300;
  letter-spacing: .06em;
  text-decoration: none;
  text-shadow: 0 1px 3px #000a;
}

.hero .hero-project-link:hover { text-decoration: underline; }

.home-section,
main:has(> #colours.home-section) + footer {
  margin-top: calc(1.6 * var(--section-space));
}

.section-heading {
  --heading-gap: clamp(17px, 2.2vw, 32px);
  margin-bottom: var(--heading-gap);
}

.section-heading h1, .section-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.375rem);
  font-weight: 500;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.section-heading--compact { margin-bottom: var(--swatch-label-gap); }

.section-heading--compact :is(h1, h2),
.section-heading .section-title--compact,
.detail-copy h2,
.job-listing h2 {
  font-size: clamp(.75rem, 1.25vw, 1.1875rem);
}

.section-heading p {
  color: var(--muted);
  margin-top: 6px;
}

.applications, .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px) var(--column-gap);
}

.application {
  display: block;
  text-decoration: none;
}

.application img { aspect-ratio: 1.25; filter: grayscale(1); }
.application[href="/walls/"] img { object-position: center 31%; }

.application:is(:hover, :focus-visible) img { filter: grayscale(0); }

@media (prefers-reduced-motion: no-preference) {
  .application img { transition: filter 300ms ease; }
}

.application span {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .07em;
  margin-top: 8px;
  text-transform: uppercase;
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px var(--column-gap);
}

.finish-swatch {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
  background: #f2efe7;
}

.finish-swatch img {
  height: 100%;
  background: transparent;
  filter: grayscale(1) contrast(.65) brightness(var(--finish-exposure, 1));
  mix-blend-mode: luminosity;
}

.finish-grid a.finish-swatch { cursor: zoom-in; }

.finish-grid a.finish-swatch,
.colour-preview {
  position: relative;
}

.popular-tab {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 1;
  padding: .25rem .45rem;
  color: var(--ink);
  background: rgb(248 248 247 / .9);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.2;
}

.finish-preview,
.image-preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 12px 0;
  border: 0;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  color: var(--ink);
  background: transparent;
}

.finish-preview[open],
.image-preview[open] {
  display: flex;
  flex-direction: column;
}

.finish-preview::backdrop,
.image-preview::backdrop { background: #171615c9; }

.image-zoom {
  display: block;
  cursor: zoom-in;
}

button.image-zoom {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.image-preview-frame {
  position: relative;
  flex: none;
  width: min(1800px, calc(100% - 24px), calc((100svh - 24px) * var(--image-ratio, 1)));
  margin: auto;
}

.image-preview-media > :is(img, canvas, svg) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--image-ratio, 1);
  object-fit: contain;
}

.image-preview-frame > form {
  position: absolute;
  inset: 8px 8px auto auto;
}

.finish-preview-card { padding: clamp(12px, 2vw, 20px); }

.finish-preview > .finish-preview-card {
  flex: none;
  width: min(640px, calc(100% - 32px));
  margin: auto;
  background: white;
  box-shadow: 0 18px 60px #0004;
}

.finish-preview .finish-swatch { max-height: 68svh; }

.finish-preview-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(14px, 2vw, 22px) 2px 4px;
}

.finish-preview-brand {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finish-preview-label h2 {
  margin-top: 4px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
}

#finish-preview-description { margin-top: 6px; color: var(--muted); }

.dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover { background: var(--paper); }

.finish-range-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 18px;
}

.finish-range-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
}

.finish-range-nav a:hover, .finish-range-nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
}

#finish-range-controls {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

#finish-range-controls legend { padding: 0; font-weight: 600; }
#finish-range-controls p { color: var(--muted); font-size: .875rem; }

.preview-shades.finish-range-shades {
  max-width: 680px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.finish-range-shades .preview-colour {
  display: grid;
  min-height: 44px;
  place-items: center;
}

.finish-range-grid { margin-top: 10px; }

.finish-range-swatch {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
}

@media (max-width: 600px) {
  .preview-shades.finish-range-shades { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.finish-grid h3 {
  font-size: 1rem;
  margin-top: var(--swatch-label-gap);
}

.finish-grid p {
  color: var(--muted);
  margin-top: 5px;
  max-width: 28ch;
}

.colour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--column-gap);
}

.colour-guide-link {
  display: inline-block;
  margin-top: 7px;
  font-size: .875rem;
}

.colour-preview {
  display: block;
  text-decoration: none;
}

.colour-preview:hover .colour-name { text-decoration: underline; }

.swatch {
  display: block;
  aspect-ratio: 2.4;
  background: var(--swatch);
  border: 1px solid #0001;
}

.colour-name {
  display: block;
  font-weight: 600;
  margin-top: 7px;
}

.colour-code {
  display: block;
  color: var(--muted);
  font-size: .875rem;
  letter-spacing: .04em;
}

.colour-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  scroll-margin-block-start: 1.25rem;
}

.colour-card:target {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.colour-card-link {
  display: block;
  flex: 1;
  text-decoration: none;
}

.colour-card-link .colour-guide-link { text-decoration: underline; }

.colour-card-add {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
}

.colour-ramp {
  display: grid;
  grid-auto-rows: 1fr;
  aspect-ratio: 1;
}

.colour-ramp > span {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-inline: 7px;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.colour-caption { padding: 13px 15px; }
.colour-caption h2 { font-size: 1.125rem; }
.colour-caption .colour-code { margin-top: 4px; }

.colour-sampling {
  margin-top: clamp(30px, 5vw, 64px);
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.colour-sampling h2 { font-size: 1.375rem; }
.colour-sampling p { margin-top: 6px; }

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(18px, 4vw, 52px);
  max-width: 1160px;
  align-items: start;
}

.preview-media {
  background: #e9e8e3;
  aspect-ratio: 1312 / 1199;
}

.preview-media img, .preview-media canvas {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.preview-media [hidden] { display: none; }

.preview-figure figcaption {
  padding-block: 8px;
  min-height: 38px;
  font-size: .875rem;
  color: var(--muted);
}

.preview-options fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.preview-options legend { font-weight: 600; }

.preview-colours, .preview-shades {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.preview-colours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.preview-shades { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.preview-colour {
  position: relative;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  border: 1px solid var(--line);
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.preview-colour:has(input:checked) { border-color: var(--ink); }
.preview-colour:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }

.preview-colour input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.preview-swatch {
  display: block;
  height: 28px;
  margin-bottom: 3px;
  border: 1px solid #0001;
  background: var(--swatch);
}

.preview-options .preview-setting { margin-top: 19px; }

#preview-shade-hint {
  color: var(--muted);
  font-size: .875rem;
}

.preview-note { color: var(--muted); margin-top: 18px; }

.selection-page { max-width: 1320px; }

.selection-builder:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
}

.selection-form {
  padding: clamp(16px, 2.5vw, 30px);
  border: 1px solid var(--line);
}

.selection-form h2, .selection-results h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

.selection-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  margin-top: 20px;
}

.selection-fields label { font-size: .875rem; font-weight: 600; }

.selection-fields select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 6px;
  color: var(--ink);
  background: white;
  border: 1px solid #888;
  border-radius: 0;
  font: inherit;
  font-weight: 400;
}

.selection-live {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: .875rem;
}

.selection-live > .image-zoom { width: min(100%, 16rem); }

.enquiry-swatch {
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid #0002;
}

.selection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.selection-actions .button {
  margin-top: 0;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-family: inherit;
}

.selection-actions .button[hidden] { display: none; }
.selection-actions .selection-primary, .selection-actions .button:hover {
  color: var(--paper);
  background: var(--ink);
}
.selection-actions .selection-primary:hover { background: #40403d; }

.selection-status, .selection-note, #selection-empty {
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
}

.selection-status:empty { margin-top: 0; }

.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--column-gap);
}

.selection-grid:not(:empty) { margin-top: 16px; }

.selection-card {
  padding: 8px;
  border: 1px solid var(--line);
  background: white;
}

.selection-swatch { display: block; width: 100%; height: auto; border: 1px solid #0001; }
.selection-card-copy { padding: 10px 4px 0; }
.selection-card-copy h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
.selection-code { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.selection-detail { margin-top: 5px; font-size: .875rem; }
.selection-card-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2px; }

.selection-card-actions button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.enquiry-selections {
  padding: 14px;
  border: 1px solid var(--line);
  font-size: .875rem;
}

.enquiry-selections h3 { font-size: 1rem; }
.enquiry-selections ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 10px 0; }
.enquiry-selections li { display: flex; align-items: center; gap: 10px; }

@media (max-width: 760px) {
  .selection-builder:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .selection-grid { grid-template-columns: minmax(0, 1fr); }
}

footer {
  margin-top: var(--section-space);
  padding-block: 0 18px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 3fr;
  gap: 24px var(--column-gap);
  padding-block: 25px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px var(--column-gap);
}

.footer-main .brand { min-height: 0; }

.footer-training {
  margin-top: 16px;
  color: var(--muted);
  font-size: .75rem;
}

.footer-training a {
  display: block;
  width: min(100%, 6.25rem);
}

.footer-training img {
  margin-bottom: 3px;
  background: transparent;
  filter: grayscale(1);
}

.footer-main h2 {
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-main p, .footer-links a, .footer-links span {
  color: var(--muted);
  font-size: .875rem;
}

.footer-links a, .footer-links span {
  display: block;
  width: fit-content;
  padding-block: 3px;
  text-decoration: none;
}

.footer-links small {
  display: block;
  font-size: .8125rem;
}

.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .875rem;
}

.detail { padding-top: 19px; }

.back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: .875rem;
}

.detail .section-heading { margin-top: 12px; }
.detail-hero { aspect-ratio: 1.95; object-position: center 53%; }
.detail-hero--bathrooms { object-position: center 70%; }
.detail-hero--benchtops { object-position: center 95%; }
.detail-hero--floors { object-position: center 73%; }
.detail-hero--outdoor { object-position: center 70%; }
.image-zoom:has(> .detail-hero--walls) {
  width: min(100%, 36rem);
  margin-inline: auto;
}
.detail-hero.detail-hero--walls { aspect-ratio: auto; }

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px var(--column-gap);
  padding-block: clamp(28px, 4.5vw, 65px);
}

.detail-copy p { max-width: 58ch; }
.detail-copy p + p { margin-top: 12px; }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  font-size: .875rem;
  text-decoration: none;
}

.detail-actions .button { margin-top: 0; }

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.gallery img { aspect-ratio: 1.25; }
.gallery > .image-zoom { align-self: start; }

.job-listing {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  scroll-margin-block-start: 20px;
}

.job-listing .section-heading { margin-top: 0; }
.job-listing h2 { font-weight: 400; }
#jobs-title {
  position: relative;
  inset-block-start: calc(var(--heading-gap) - var(--swatch-label-gap));
}
.application-gallery + .job-listing { margin-top: var(--section-space); }

.job-card { display: block; text-decoration: none; }
.job-card img { aspect-ratio: 1.5; }
#benchtop-jobs img[width="1365"] { object-position: center 82%; }
.job-card h3 {
  margin-top: 8px;
  font-size: .8125rem;
  font-weight: 350;
  line-height: 1.35;
}
.job-card:is(:hover, :focus-visible) h3 { text-decoration: underline; }

.section-heading .project-location {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

.job-gallery { align-items: start; }
.job-gallery img { aspect-ratio: auto; }
.job-gallery > .image-zoom:only-child { grid-column: 1 / -1; }

.job-summary { align-items: start; }
.job-summary h2 + p { margin-top: 10px; }

.job-swatch {
  justify-self: end;
  width: min(100%, 320px);
  border: 1px solid var(--line);
  background: white;
}

.job-swatch img, .job-swatch .swatch { aspect-ratio: 1; }
.swatch-reference img { height: 100%; filter: grayscale(1); opacity: .18; }
.job-swatch h3 { margin-top: 4px; font-size: 1.25rem; }
.job-swatch .job-swatch-note { margin-top: 4px; color: var(--muted); font-size: .875rem; }

.application-gallery { scroll-margin-block-start: 20px; }
.application-gallery img { aspect-ratio: 1.5; }
#floor-gallery img[width="853"] { object-position: center 68%; }
#outdoor-gallery img[width="853"] { object-position: center 72%; }
#walls-gallery img { aspect-ratio: auto; }

@media (max-width: 600px) {
  .application-gallery, .job-gallery { grid-template-columns: 1fr; }
  .application-gallery img[width="853"][height="1280"] { aspect-ratio: 2 / 3; }
  .job-swatch { justify-self: start; margin-top: 14px; }
}

.information {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 14px var(--column-gap);
  padding-top: var(--section-space);
}

.information .section-heading { margin-bottom: 0; }
.information-copy { max-width: 60ch; }
.information-copy h2 { font-size: 1.25rem; }
.information-copy h2:not(:first-child) { margin-top: 21px; }
.information-copy h2 + p { margin-top: 5px; }
.information-copy p + p { margin-top: 12px; }

.enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px var(--column-gap);
  margin-top: 20px;
  scroll-margin-block-start: 1.25rem;
}

.enquiry-full { grid-column: 1 / -1; }
.enquiry-form label { display: block; font-weight: 600; margin-bottom: 5px; }
.enquiry-form label span, #project-hint, #attachment-hint, .enquiry-privacy {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
}

.enquiry-form input, .enquiry-form textarea {
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #888;
  border-radius: 0;
  font: inherit;
  padding: 9px 11px;
}

.enquiry-form textarea { display: block; resize: vertical; }
.enquiry-form :is(#project-hint, #attachment-hint) { margin-bottom: 6px; }
.enquiry-form .button { background: var(--ink); color: var(--paper); cursor: pointer; font-family: inherit; margin: 0 0 8px; }
.enquiry-form .button:hover { background: var(--paper); color: var(--ink); }
.enquiry-status { border-left: 2px solid var(--ink); margin-top: 14px; padding: 8px 12px; }
.direct-contact {
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.enquiry-record {
  border-top: 1px solid var(--line);
  max-width: 65ch;
  overflow-wrap: anywhere;
  padding-block: 20px;
}
.enquiry-record h2 { font-size: 1.25rem; }
.enquiry-record h3 { font-size: 1rem; margin-top: 12px; }
.enquiry-record ul { margin: 4px 0 0; }
.enquiry-project-text { margin-top: 10px; white-space: pre-wrap; }
.enquiry-inbox-nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 850px) {
  .finish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .preview-layout { grid-template-columns: 1fr; }
  .preview-figure { position: sticky; top: 0; z-index: 1; background: var(--paper); }
  .preview-media { aspect-ratio: auto; height: min(72vw, 39svh); }
  .preview-media img, .preview-media canvas { object-fit: contain; }
}

@media (max-width: 600px) {
  .hero { min-height: max(430px, 72svh); }
  .hero img { object-position: 53% center; }

  .applications, .detail-copy, .information, .footer-main, .enquiry-form { grid-template-columns: 1fr; }
  .detail-hero { aspect-ratio: 1.28; }

  .finish-grid, .footer-links, .colour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
  .preview-colours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.enquiry-attachments { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.enquiry-attachments legend { padding: 0; margin-bottom: 5px; font-weight: 600; }
.enquiry-attachments legend span { color: var(--muted); font-size: .875rem; font-weight: 400; }
.enquiry-attachments details { margin-top: 8px; }
.enquiry-attachments summary { cursor: pointer; width: fit-content; }
.enquiry-attachments details label { margin-top: 10px; }
