/* =============================================================
   ZEORA Ceramic
   Layout runs on a grout-line grid; surfaces are generated with
   SVG turbulence filters (see #vein-* in index.html), so the
   site carries no photography.
   ============================================================= */

:root {
  /* Grounds */
  --kiln:    #0E1315;
  --kiln-2:  #141B1E;
  --kiln-3:  #1C262A;
  --bone:    #EFEFEB;
  --bone-2:  #E3E4DE;
  --ink:     #0B1113;
  --grout:   #C9CAC4;

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Rhythm */
  --gutter:  clamp(20px, 4vw, 56px);
  --maxw:    1240px;
  --radius:  18px;
  --radius-sm: 12px;

  --ease:    cubic-bezier(.16, 1, .3, 1);

  /* Accent (celadon) */
  --accent:      #7FB3A5;
  --accent-deep: #2C574E;
  --accent-tint: #DCEBE6;
}

/* ---------- 3. Reset / base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* Smooth scrolling is switched on by app.js after load, so a deep link
   (/#contact) lands instantly instead of animating the whole page. */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-size: clamp(15px, .35vw + 14px, 17px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* Any display: rule further down beats the UA sheet's
   [hidden] { display: none } on specificity, so the attribute has to
   win outright — .showmore and .viewer__strip are toggled with it. */
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(button) { cursor: pointer; }

.filter-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

:focus-visible {
  outline: 2px solid var(--ring, var(--accent-deep));
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. Bands & container ----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  position: relative;
  padding-block: clamp(76px, 9vw, 148px);
}

.band--bone {
  background: var(--bone);
  color: var(--ink);
  --fg-dim: #55605F;
  --line: #D3D4CD;
  --ring: var(--accent-deep);
  --glass-bg: rgba(255,255,255,.58);
  --glass-brd: rgba(255,255,255,.85);
  --glass-edge: rgba(255,255,255,1);
  --glass-shadow: 0 18px 50px -22px rgba(18,28,32,.30);
}

.band--kiln, .hero {
  background: var(--kiln);
  color: #EDF1F0;
  --fg-dim: #94A2A2;
  --line: rgba(255,255,255,.11);
  --ring: var(--accent);
  --glass-bg: rgba(255,255,255,.055);
  --glass-brd: rgba(255,255,255,.13);
  --glass-edge: rgba(255,255,255,.34);
  --glass-shadow: 0 24px 70px -20px rgba(0,0,0,.6);
}

/* Fine ceramic grain over the dark bands. */
.band--kiln::before, .hero::before, .band--dealer::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Content sits above the grain; the hero wall and dealer texture stay below. */
.band--kiln > .container,
.hero > .container,
.band--dealer > .container { position: relative; z-index: 2; }

section[id] { scroll-margin-top: 96px; }

/* ---------- 5. Glass (the iOS-style panels) ------------------ */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
/* The specular top edge that sells the material. */
.glass::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--glass-edge), transparent 42%);
  opacity: .45;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .band--kiln .glass, .hero .glass, .band--dealer .glass { background: rgba(24,32,35,.9); }
  .band--bone .glass { background: rgba(255,255,255,.92); }
}

/* ---------- 6. Typography ------------------------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: '';
  width: 9px; height: 9px;
  background: currentColor;
  flex: none;
}
/* The deep tone stays readable on the bone ground. */
.band--bone .eyebrow { color: var(--accent-deep); }

.sechead { max-width: 46ch; margin-bottom: clamp(40px, 5vw, 72px); }
.sechead__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112, 'wght' 700;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.022em;
  margin-top: 18px;
  text-wrap: balance;
}
.sechead__note {
  margin-top: 18px;
  color: var(--fg-dim);
  max-width: 52ch;
}
.lede { font-size: 1.12em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- 7. Buttons --------------------------------------- */
.btn {
  --btn-pad: 15px 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .35s var(--ease), background-color .3s ease,
              border-color .3s ease, color .3s ease, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Gloss sweep — the same specular pass as the tile faces. */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.32) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 10px 26px -14px var(--accent-deep);
}
.btn--primary:hover { box-shadow: 0 16px 34px -14px var(--accent-deep); }

.btn--line {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn--line:hover { background: color-mix(in oklab, var(--accent) 18%, transparent); }

.btn--ghost {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border-color: color-mix(in oklab, var(--accent) 32%, transparent);
}

.btn--sm { --btn-pad: 11px 20px; font-size: .74rem; }
.btn--block { width: 100%; }
.btn--wa { margin-top: 8px; padding-block: 17px; }

/* ---------- 8. Header ---------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px var(--gutter);
  transition: padding .4s var(--ease);
}
.header__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  color: #EDF1F0;
  transition: border-color .4s ease, box-shadow .4s ease;
}
/* The glass sits on a pseudo-element rather than on .header__inner itself:
   backdrop-filter makes an element the containing block for its positioned
   descendants, and the drawer inside is fixed to the viewport. Blur the pill
   directly and the drawer measures itself against the pill instead — it ends
   up the height of the header with a strip of it left showing on the right. */
.header__inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(14,19,21,.42);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  transition: background-color .4s ease;
}
.header.is-stuck { padding-top: 8px; }
.header.is-stuck .header__inner {
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 16px 44px -22px rgba(0,0,0,.85);
}
.header.is-stuck .header__inner::before { background: rgba(11,15,17,.78); }

/* On the collection page the toolbar takes the top once it sticks, so the
   header steps out of the way and leaves the search bar alone up there.
   It comes back the moment anything inside it is focused by keyboard. */
.header.is-away {
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
  transition: transform .42s var(--ease), opacity .28s ease, padding .4s var(--ease);
}
.header.is-away:focus-within {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex: none;
}
/* The monogram runs as supplied — charcoal and tan — so it needs a bone
   tile under it to read against the kiln pill. */
.brand__logo {
  width: auto; height: 26px;
  flex: none;
  padding: 5px;
  border-radius: 7px;
  background: var(--bone);
  transition: transform .5s var(--ease);
}
.brand:hover .brand__logo { transform: translateY(-1px) scale(1.05); }

.brand__text { display: flex; align-items: baseline; gap: 7px; }
.brand__name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 118, 'wght' 800;
  font-size: 1.12rem;
  letter-spacing: .04em;
}
.brand__sub {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .6;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav__list a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .88rem;
  text-decoration: none;
  color: rgba(237,241,240,.78);
  transition: color .25s ease, background-color .25s ease;
}
.nav__list a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__list a.is-active { color: #fff; background: color-mix(in oklab, var(--accent) 26%, transparent); }
.nav__drawer-foot { display: none; }

.header__tools { display: flex; align-items: center; gap: 9px; flex: none; }

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.burger__box { display: grid; gap: 5px; width: 17px; }
.burger__box i {
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s ease;
}
.burger[aria-expanded="true"] .burger__box i:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6,10,11,.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade .3s ease both;
}
.scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

/* ---------- 9. Hero ------------------------------------------ */
.hero {
  position: relative;
  min-height: min(94vh, 940px);
  padding-block: clamp(140px, 16vh, 190px) clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__wall {
  position: absolute;
  /* Deliberately taller than the hero: two rows of near-2:1 cells, so each
     one reads as a 600x1200 slab and the wall runs off the top and bottom
     the way a real showroom wall does. */
  inset: -8% -2% -8% 34%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  background: #2A3134;
  z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, var(--kiln) 30%, color-mix(in oklab, var(--kiln) 72%, transparent) 52%, transparent 78%),
    linear-gradient(to top, var(--kiln) 2%, transparent 34%);
}

.hero__grid { position: relative; z-index: 2; }
.hero__panel {
  max-width: 620px;
  padding: clamp(28px, 3.4vw, 46px);
  animation: rise .9s var(--ease) .15s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.hero__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 116, 'wght' 800;
  /* The headline names the range now, so it is longer than the old two-word
     line: the floor drops a step, and a word breaks rather than running past
     the panel on the narrowest phones. */
  font-size: clamp(2.05rem, 6.4vw, 4.15rem);
  line-height: .95;
  letter-spacing: -.03em;
  margin-top: 20px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hero__kicker {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--accent);
  letter-spacing: .01em;
}
.hero__lede {
  margin-top: 18px;
  max-width: 46ch;
  color: #C4CFCE;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.specstrip {
  position: relative;
  z-index: 2;
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  animation: rise .9s var(--ease) .45s both;
}
.specstrip > div { padding: 16px clamp(14px, 1.6vw, 24px); }
.specstrip > div + div { border-left: 1px solid rgba(255,255,255,.1); }
.specstrip dt {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.specstrip dd {
  margin: 7px 0 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 108, 'wght' 600;
  font-size: clamp(.9rem, 1.2vw, 1.06rem);
  letter-spacing: -.01em;
}

/* ---------- 10. Slabs (the hero wall) ------------------------- */
/* One catalogue face per cell, centre-cropped to 1:2 by tools/make_hero.py.
   The cells lay themselves down in reading order, the way a tiler works. */
.slab {
  position: relative;
  overflow: hidden;
  background: #232A2D;
  animation: lay .85s var(--ease) both;
  animation-delay: calc(60ms * var(--i, 0));
}
@keyframes lay {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.965); }
}

.slab__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the wall sits behind the copy, so pull it back off the text */
  filter: saturate(.96) brightness(.92);
}

/* Specular sweep — the glaze catching the showroom light. */
.slab::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(112deg, transparent 30%, rgba(255,255,255,.10) 46%, transparent 60%);
}

.slab__tag {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  background: rgba(10,14,15,.55);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- 11. About ---------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.about__body p + p { margin-top: 18px; }
.about__body p { color: #46514F; }
.about__body .lede { color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
}
.stat { padding: 24px 22px; }
.stat__num {
  display: block;
  font-family: var(--display);
  font-variation-settings: 'wdth' 106, 'wght' 700;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent-deep);
}
.stat__num em {
  font-style: normal;
  font-size: .48em;
  letter-spacing: 0;
  margin-left: .12em;
  color: var(--ink);
  opacity: .5;
}
.stat__label {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---------- 12. Products ------------------------------------- */
/* One card per group, and the gaps are the background showing through, so an
   orphan cell reads as a hole in the block. Six tile groups: three across, or
   two by two by two — never a row with a gap on the end. The seventh group is
   the sanitaryware, which is not a tile range at all; it takes the full width
   below them, which both fills the row and says so. */
.prods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .prods { grid-template-columns: repeat(2, 1fr); }
}
.prod {
  background: var(--kiln);
  display: flex;
  flex-direction: column;
  transition: background-color .4s ease;
}
.prod:hover { background: var(--kiln-2); }

.prod--wide { grid-column: 1 / -1; }
@media (min-width: 641px) {
  .prod--wide { flex-direction: row; }
  /* four across in one strip, not the two-by-two the tile cards use */
  .prod--wide .prod__shot {
    flex: 0 0 58%;
    aspect-ratio: 4 / 1.15;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }
  .prod--wide .prod__body {
    flex: 1 1 auto;
    align-self: center;
  }
}

.prod__face {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slab-bg, #DAD8D2);
}
.prod__face::before {
  content: '';
  position: absolute; inset: -8%;
  background: var(--vein, #6E7A7C);
  filter: var(--vein-filter, url(#vein-marble));
  opacity: var(--vein-op, .5);
  transform: rotate(var(--vein-rot, -14deg)) scale(1.75);
}
.prod__face::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(112deg, transparent 22%, rgba(255,255,255,.28) 42%, transparent 56%);
  transform: translateX(-60%);
  opacity: .55;
  transition: transform 1s var(--ease), opacity .5s ease;
}
.prod:hover .prod__face::after { transform: translateX(60%); opacity: .9; }

/* Photo variant: the four-up mosaic that links into the catalogue. */
.prod--shot { text-decoration: none; color: inherit; }
.prod--shot .prod__body,
.prod--shot .prod__name,
.prod--shot .prod__desc,
.prod--shot .prod__spec { display: block; }
.prod__shot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4 / 3;
  background: var(--line);
  overflow: hidden;
}
.prod__shot img {
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.prod--shot:hover .prod__shot img { transform: scale(1.05); }

.prods__more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 44px);
}

.prod__body { padding: 26px 24px 30px; }
.prod__name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 108, 'wght' 700;
  font-size: 1.16rem;
  letter-spacing: -.012em;
}
.prod__desc { margin-top: 10px; font-size: .93rem; color: var(--fg-dim); }
.prod__spec {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .07em;
  color: var(--accent);
}

.finishes {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}
.finishes__label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.finishes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.finishes__list li {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .84rem;
  transition: border-color .3s ease, color .3s ease;
}
.finishes__list li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 13. Size wall ------------------------------------ */
/* A shelf of samples: wraps rather than scrolls, so nothing is ever clipped
   and every line still shares a baseline for comparison. */
.sizewall__rail {
  --u: .155px;             /* millimetre → pixel */
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 18px;
  row-gap: 40px;
  padding-bottom: 8px;
}

.sizecard {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.sizecard__tile {
  position: relative;
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(158deg, #E4E2DB 0%, #C9C7BF 100%);
  box-shadow: 0 10px 26px -16px rgba(20,28,32,.8);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.sizecard__tile::before {
  content: '';
  position: absolute; inset: -10%;
  background: #7A8385;
  filter: url(#vein-marble);
  opacity: .32;
  transform: rotate(-14deg) scale(1.9);
}
.sizecard__tile::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(20,28,32,.14);
  border-radius: inherit;
}
.sizecard:hover .sizecard__tile { transform: translateY(-5px); box-shadow: 0 18px 32px -18px rgba(20,28,32,.75); }

/* The affordance lives in the caption, so it survives a 200 mm-wide tile. */
.sizecard__cap {
  display: grid;
  gap: 3px;
  width: max-content;
  max-width: 12ch;
  min-height: 66px;
  align-content: start;
}
.sizecard__line { display: flex; align-items: center; gap: 7px; }
.sizecard__dot {
  width: 17px; height: 17px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1;
  color: var(--fg-dim);
  transition: background-color .3s ease, border-color .3s ease,
              color .3s ease, transform .35s var(--ease);
}
.sizecard:hover .sizecard__dot { border-color: var(--accent-deep); color: var(--accent-deep); }

.sizecard__mm {
  font-family: var(--display);
  font-variation-settings: 'wdth' 100, 'wght' 700;
  font-size: .88rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.sizecard__meta {
  font-family: var(--mono);
  font-size: .65rem;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--fg-dim);
}

.sizecard[aria-pressed="true"] .sizecard__tile {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 16px 34px -18px var(--accent-deep);
}
.sizecard[aria-pressed="true"] .sizecard__tile::before { background: #fff; opacity: .18; }
.sizecard[aria-pressed="true"] .sizecard__dot {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
  transform: rotate(45deg);
}
.sizecard[aria-pressed="true"] .sizecard__mm { color: var(--accent-deep); }

.sizewall__hint {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--fg-dim);
}

/* ---------- 13b. Tile calculator ----------------------------- */
/* Follows the size wall on the same bone ground, so it takes a grout grid
   of its own to read as a new surface. The results and the plan sit on a
   kiln slab — the one dark object in the band. */
.calcband {
  background:
    linear-gradient(to bottom, var(--bone) 0, transparent 220px, transparent calc(100% - 220px), var(--bone) 100%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(11,17,19,.045) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(11,17,19,.045) 79px 80px),
    var(--bone);
  border-top: 1px solid var(--line);
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-areas: "controls out" "picks picks";
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}
.calc__controls { grid-area: controls; }
.calc__out { grid-area: out; }
.calc__picks { grid-area: picks; }

.calc__controls, .calc__picks {
  background: #fff;
  border: 1px solid rgba(11,17,19,.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px -30px rgba(18,28,32,.35);
  padding: clamp(20px, 2.6vw, 32px);
}

.calc__step + .calc__step {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.calc__label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--display);
  font-variation-settings: 'wdth' 108, 'wght' 680;
  font-size: 1.06rem;
  letter-spacing: -.01em;
}
.calc__no {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  font-weight: 500;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.calc__labelrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.calc__labelrow .calc__label { margin-bottom: 0; }

/* Step 1 — categories, each with a little mosaic of its own */
.calc__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc__cat {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bone);
  transition: border-color .25s ease, background-color .25s ease, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.calc__cat:hover { transform: translateY(-2px); border-color: var(--accent); }
.calc__cat[aria-pressed="true"] {
  background: var(--accent-tint);
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 1px var(--accent-deep) inset, 0 12px 26px -18px var(--accent-deep);
}
.calc__catart {
  grid-row: 1 / 3;
  width: 46px; height: 46px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(11,17,19,.12);
}
.calc__cat--floor .calc__catart {
  background:
    linear-gradient(135deg, rgba(255,255,255,.7), transparent 55%),
    conic-gradient(#E6E2D8 25%, #CFCAC0 0 50%, #E6E2D8 0 75%, #CFCAC0 0) 0 0 / 23px 23px;
}
.calc__cat--wall .calc__catart {
  background:
    linear-gradient(135deg, rgba(255,255,255,.6), transparent 60%),
    repeating-linear-gradient(0deg, #9FC4BA 0 13px, #fff 13px 14px),
    #9FC4BA;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 22px, transparent 22px 23px);
          mask: repeating-linear-gradient(90deg, #000 0 22px, transparent 22px 23px);
}
.calc__cat--dc .calc__catart {
  background:
    radial-gradient(circle at 30% 30%, #B58E6A 0 3px, transparent 4px) 0 0 / 11px 11px,
    radial-gradient(circle at 70% 60%, #6F5843 0 2px, transparent 3px) 0 0 / 13px 13px,
    linear-gradient(#fff 0 0) 22px 0 / 1px 100% no-repeat,
    linear-gradient(#fff 0 0) 0 22px / 100% 1px no-repeat,
    #D9C3A8;
}
.calc__cat--parking .calc__catart {
  background:
    radial-gradient(circle, #5E6669 0 2.5px, transparent 3px) 0 0 / 9px 9px,
    linear-gradient(#EFEFEB 0 0) 15px 0 / 1px 100% no-repeat,
    linear-gradient(#EFEFEB 0 0) 31px 0 / 1px 100% no-repeat,
    linear-gradient(#EFEFEB 0 0) 0 15px / 100% 1px no-repeat,
    linear-gradient(#EFEFEB 0 0) 0 31px / 100% 1px no-repeat,
    #8E9698;
}
.calc__catname {
  font-family: var(--display);
  font-variation-settings: 'wdth' 104, 'wght' 680;
  font-size: .98rem;
  line-height: 1.15;
}
.calc__catsub {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .03em;
  color: var(--fg-dim);
  line-height: 1.35;
}

/* Step 2 — sizes, each tile drawn to its true proportion */
.calc__sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__size {
  flex: 1 1 200px;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  min-height: 84px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .25s ease, background-color .25s ease, transform .3s var(--ease);
}
.calc__size:hover { border-color: var(--accent); transform: translateY(-2px); }
.calc__sizetile {
  --u: .048px;
  flex: none;
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  border-radius: 3px;
  background: linear-gradient(158deg, #ECEAE3 0%, #C9C7BF 100%);
  box-shadow: 0 8px 16px -10px rgba(20,28,32,.7), inset 0 0 0 1px rgba(20,28,32,.12);
  transition: background .3s ease, transform .4s var(--ease);
}
.calc__size[aria-pressed="true"] { border-color: var(--accent-deep); background: var(--accent-tint); }
.calc__size[aria-pressed="true"] .calc__sizetile {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  transform: rotate(-4deg);
}
.calc__sizetext { display: grid; gap: 1px; }
.calc__sizename { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.calc__sizemm {
  font-family: var(--display);
  font-variation-settings: 'wdth' 100, 'wght' 720;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.calc__size[aria-pressed="true"] .calc__sizemm { color: var(--accent-deep); }
.calc__sizemeta { font-size: .76rem; color: var(--fg-dim); }

/* Step 3 — the room */
.calc__dims { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.calc__times { padding-bottom: 14px; font-family: var(--display); font-size: 1.3rem; color: var(--fg-dim); }
.calc__field > span:first-child {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.calc__inwrap { position: relative; display: block; }
.calc__inwrap input {
  width: 100%;
  padding: 13px 44px 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bone);
  font-family: var(--display);
  font-variation-settings: 'wdth' 100, 'wght' 650;
  font-size: 1.25rem;
  -moz-appearance: textfield;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.calc__inwrap input::-webkit-outer-spin-button,
.calc__inwrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__inwrap input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}
.calc__unit {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--fg-dim);
  pointer-events: none;
}

.calc__presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.calc__preset {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(11,17,19,.22);
  background: transparent;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--fg-dim);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.calc__preset:hover { border-style: solid; border-color: var(--accent-deep); color: var(--accent-deep); background: var(--accent-tint); }

/* Segmented switches — units and wastage */
.calc__seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bone-2);
}
.calc__seg--wide { display: flex; }
.calc__seg--wide .calc__segbtn { flex: 1; }
.calc__segbtn {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.calc__segbtn[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px -3px rgba(11,17,19,.3);
}

/* The kiln slab: result, plan, actions */
.calc__out {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(127,179,165,.16), transparent 60%),
    var(--kiln);
  color: #EDF1F0;
  --fg-dim: #94A2A2;
  --ring: var(--accent);
  box-shadow: 0 30px 70px -34px rgba(11,17,19,.75);
}
.calc__board {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 26px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.calc__hero { display: flex; align-items: baseline; gap: 12px; }
.calc__heronum {
  font-family: var(--display);
  font-variation-settings: 'wdth' 118, 'wght' 800;
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.calc__herocap {
  font-family: var(--display);
  font-variation-settings: 'wdth' 110, 'wght' 700;
  font-size: 1.15rem;
  line-height: 1.15;
}
.calc__herocap span {
  font-family: var(--mono);
  font-variation-settings: normal;
  font-weight: 400;
  font-size: .64rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
}
.calc__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calc__stats > div {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.calc__stats dt {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.calc__stats dd {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 104, 'wght' 680;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc.is-empty .calc__heronum { color: rgba(237,241,240,.22); }

.calc__plan { margin: 16px 0 0; }
.calc__plan svg {
  width: 100%; height: auto;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(255,255,255,.035) 19px 20px),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255,255,255,.035) 19px 20px),
    var(--kiln-2);
  border: 1px solid rgba(255,255,255,.07);
}
.calc__room { transition: opacity .4s ease; }
.calc__room.is-ghost { opacity: .35; }
.calc__dim line { stroke: var(--accent); stroke-width: 1; }
.calc__dim text {
  fill: #EDF1F0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.calc__plancap {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--fg-dim);
}
.calc__plancap b { color: #EDF1F0; font-weight: 600; }
.calc__cutkey {
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 5px;
  vertical-align: -1px;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, #7FB3A5 0 2px, rgba(127,179,165,.38) 2px 5px);
}

.calc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calc__actions .btn--primary { flex: 1 1 220px; }
.calc__actions .btn--line { color: #EDF1F0; }
.calc #calcSend[aria-disabled="true"] { opacity: .55; }
.calc__fine { margin-top: 12px; font-size: .74rem; color: var(--fg-dim); }

/* Step 5 — designs in the chosen size */
.calc__pickhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.calc__pickhead .calc__label { margin-bottom: 4px; }
.calc__pickhint { font-size: .84rem; color: var(--fg-dim); }
.calc__pickbtns { display: flex; gap: 8px; }
.calc__cols { display: flex; gap: 7px; overflow-x: auto; margin: 18px 0 4px; padding-bottom: 6px; scrollbar-width: thin; }
.calc__cols:empty { display: none; }
.calc__colchip {
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bone);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.calc__colchip span { opacity: .55; margin-left: 3px; }
.calc__colchip:hover { border-color: var(--accent-deep); }
.calc__colchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.calc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.calc__skel {
  aspect-ratio: 1 / 1.25;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--bone) 30%, var(--bone-2) 50%, var(--bone) 70%) 0 0 / 300% 100%;
  animation: calcSkel 1.2s linear infinite;
}
@keyframes calcSkel { to { background-position: -150% 0; } }

.calc__pick {
  position: relative;
  animation: calcIn .5s var(--ease) both;
  animation-delay: calc(35ms * var(--i, 0));
}
@keyframes calcIn { from { opacity: 0; transform: translateY(10px); } }
.calc__pickbtn {
  display: grid;
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  background: none;
  text-align: left;
}
.calc__pickimg {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin-bottom: 9px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bone-2);
  box-shadow: 0 10px 22px -16px rgba(18,28,32,.7);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.calc__pickimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.calc__pickimg::after {
  content: 'Lay on plan';
  position: absolute; left: 8px; bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11,17,19,.72);
  color: #fff;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.calc__pickbtn:hover .calc__pickimg { transform: translateY(-3px); box-shadow: 0 16px 28px -16px rgba(18,28,32,.75); }
.calc__pickbtn:hover .calc__pickimg img { transform: scale(1.06); }
.calc__pickbtn:hover .calc__pickimg::after,
.calc__pickbtn:focus-visible .calc__pickimg::after { opacity: 1; transform: none; }
.calc__pickbtn[aria-pressed="true"] .calc__pickimg {
  box-shadow: 0 0 0 3px var(--accent-deep), 0 16px 28px -16px var(--accent-deep);
}
.calc__pickbtn[aria-pressed="true"] .calc__pickimg::after {
  content: 'On your plan ✓';
  opacity: 1; transform: none;
  background: var(--accent-deep);
}
.calc__pickname {
  font-family: var(--display);
  font-variation-settings: 'wdth' 102, 'wght' 650;
  font-size: .92rem;
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.calc__pickcol { font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; color: var(--fg-dim); }
.calc__pickview {
  position: absolute; top: 8px; right: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 12px -6px rgba(11,17,19,.5);
  transition: background-color .2s ease, color .2s ease;
}
.calc__pickview:hover { background: var(--ink); color: #fff; }
.calc__none { padding: 26px 0 8px; color: var(--fg-dim); }
.calc__none a { color: var(--accent-deep); font-weight: 600; }
.calc__noscript { margin-bottom: 24px; color: var(--fg-dim); }

/* Packing table */
.calc__pack { margin-top: clamp(40px, 5vw, 64px); }
.calc__packhead {
  font-family: var(--display);
  font-variation-settings: 'wdth' 110, 'wght' 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
.calc__tablewrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.calc__table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; }
.calc__table th, .calc__table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--bone-2); }
.calc__table thead th {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--bone);
}
.calc__table tbody tr:last-child > * { border-bottom: 0; }
.calc__table tbody th { font-weight: 600; }
.calc__table td { font-variant-numeric: tabular-nums; }
.calc__table tbody tr { cursor: pointer; transition: background-color .2s ease; }
.calc__table tbody tr:hover { background: var(--bone); }
.calc__table tbody tr.is-on { background: var(--accent-tint); }
.calc__table tbody tr.is-on > th { box-shadow: inset 3px 0 0 var(--accent-deep); color: var(--accent-deep); }
.calc__tips {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 16px; padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--fg-dim);
}
.calc__tips li::before { content: '✓'; margin-right: 8px; color: var(--accent-deep); }

@media (max-width: 1030px) {
  .calc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "controls" "out" "picks"; }
}
@media (max-width: 640px) {
  .calc__cats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .calc__cat { grid-template-columns: 1fr; row-gap: 8px; padding: 11px; }
  .calc__catart { grid-row: auto; width: 100%; height: 34px; }
  .calc__dims { grid-template-columns: 1fr 1fr; }
  .calc__times { display: none; }
  .calc__board { grid-template-columns: 1fr; }
  .calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .calc__pickview { padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .calc__pick, .calc__skel { animation: none; }
}

/* ---------- 14. Catalogue — the shelf ------------------------ */
/* The section carries the e-catalogue and nothing else: the seven range cards
   that used to head it pointed at the same seven collections as the product
   grid one band up, so they went.

   The supplier books re-rendered at 120 ppi by tools/compress_catalogue.py.
   Twenty-four of them: stacked in one list they ran the screen down twice
   over and the sanitaryware books at the bottom were never reached, so the
   six ranges became tabs and one range is on the page at a time. Every book
   still states its weight in megabytes before it is opened -- these run to
   forty-seven on the largest, and half the trade is on a phone. */
.dls { margin-top: clamp(30px, 4vw, 48px); }

/* The rail of ranges. It ships hidden and app.js unhides it, so with no
   JavaScript the six panels simply read down the page under their own
   headings -- which is what this block was before the tabs. */
.shelf__rail {
  position: relative;
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-bg);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.shelf__rail::-webkit-scrollbar { display: none; }

/* One pill that slides between the tabs rather than blinking on under each
   of them; app.js measures the chosen tab and drives width and transform.
   It is armed a frame after the first measurement, so the pill starts under
   the first tab instead of sweeping in from the left edge. */
.shelf__ink {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  width: 0; height: 0;
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
}
.shelf__ink.is-ready {
  transition: transform .5s var(--ease), width .5s var(--ease);
}

.shelf__tab {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 10px 17px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--fg-dim);
  font-family: var(--display);
  font-variation-settings: 'wdth' 106, 'wght' 620;
  font-size: .92rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: color .35s ease;
}
.shelf__tab:hover { color: #EDF1F0; }
/* The accent is a mid tone, so the ink reads dark on it. */
.shelf__tab[aria-selected="true"] { color: #0B1113; }

.shelf__n {
  padding: 3px 6px 2px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .62rem;
  line-height: 1;
  opacity: .45;
}
.shelf__tab[aria-selected="true"] .shelf__n { opacity: .6; }

/* The heading each range carries for the no-JavaScript reading. Once the
   tabs are live the tab above says the same word, so it goes. */
.shelf__gh {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}
.shelf__set + .shelf__set { margin-top: 26px; }
.shelf--js .shelf__gh { display: none; }
.shelf--js .shelf__set + .shelf__set { margin-top: 0; }

.shelf__books {
  display: grid;
  /* Five across on a desktop: the widest range holds seven books, and five
     leaves a short second row rather than a single stranded card. */
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(12px, 1.3vw, 16px);
  list-style: none;
  padding: 0;
}

/* Changing range deals the new books out instead of swapping the block in
   whole. Held to the JS case so the no-JS stack does not animate six ranges
   at once on the way past. */
.shelf--js .shelf__set:not([hidden]) .book {
  animation: bookdeal .55s var(--ease) both;
  animation-delay: calc(40ms * var(--i, 0));
}
@keyframes bookdeal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.book { display: flex; }
.book__a {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .45s var(--ease), border-color .4s ease;
}
/* Off the shelf rather than straight up -- it is a book, not a button. */
.book__a:hover,
.book__a:focus-visible {
  transform: translateY(-7px) rotate(-.55deg);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
}
/* The cover is the collection's own tile, the same photograph the grid on
   collection.html opens with -- four kilobytes apiece. */
.book__cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--kiln-3);
}
.book__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
/* The two sanitaryware books have no tile of their own and borrow a product
   shot, and a closet cropped to a 4:3 band loses its cistern -- so those sit
   inside the frame instead of filling it. */
.book__cover--fit img {
  object-fit: contain;
  padding: 10px;
}
.book__a:hover .book__cover img { transform: scale(1.06); }
.book__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,17,19,.6), transparent 55%);
}

.book__pages {
  position: absolute;
  left: 13px; bottom: 10px;
  z-index: 2;
  padding: 4px 9px 3px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(11,17,19,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .04em;
  color: #EDF1F0;
  white-space: nowrap;
}

.book__go {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(11,17,19,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #EDF1F0;
  transition: opacity .35s ease, transform .45s var(--ease),
              background-color .3s ease, border-color .3s ease, color .3s ease;
}
/* Nothing hovers on a touch screen, so there the arrow simply stays out. */
@media (hover: hover) {
  .book__go { opacity: 0; transform: translateY(-6px) scale(.92); }
}
.book__a:hover .book__go,
.book__a:focus-visible .book__go {
  opacity: 1;
  transform: none;
  background: var(--accent);
  border-color: var(--accent);
  color: #0B1113;
}

.book__body {
  display: grid;
  gap: 4px;
  padding: 13px 14px 15px;
}
.book__name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106, 'wght' 650;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.book__meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--fg-dim);
}

.shelf__sum {
  margin-top: clamp(20px, 2.4vw, 28px);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* The line that closes the section: a printed shade card is a WhatsApp away. */
.cats__note {
  margin-top: clamp(24px, 3vw, 34px);
  max-width: 58ch;
  color: var(--fg-dim);
  font-size: .95rem;
}
.cats__note a { color: var(--accent); }
.dl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .4s var(--ease), border-color .4s ease;
}
.dl:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
}
.dl__ico {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent);
  transition: transform .4s var(--ease), background-color .3s ease,
              border-color .3s ease, color .3s ease;
}
.dl:hover .dl__ico {
  transform: translateY(3px);
  background: var(--accent);
  border-color: var(--accent);
  color: #0B1113;
}
.dl__body { display: grid; gap: 3px; min-width: 0; }
.dl__name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106, 'wght' 650;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.dl__meta {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--fg-dim);
}

/* The single card catalogue.js drops under a collection heading. Same card,
   sized to its own content instead of stretching across a grid. */
.dl--solo {
  display: inline-flex;
  margin-bottom: clamp(20px, 3vw, 28px);
  max-width: 100%;
}

/* ---------- 15. Dealer --------------------------------------- */
.band--dealer {
  position: relative;
  padding-block: clamp(76px, 9vw, 148px);
  background: var(--kiln-2);
  color: #EDF1F0;
  overflow: hidden;
  --fg-dim: #94A2A2;
  --line: rgba(255,255,255,.12);
  --ring: var(--accent);
  --glass-bg: rgba(255,255,255,.06);
  --glass-brd: rgba(255,255,255,.14);
  --glass-edge: rgba(255,255,255,.34);
  --glass-shadow: 0 30px 80px -28px rgba(0,0,0,.75);
}
.dealer__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(80% 60% at 12% 0%, color-mix(in oklab, var(--accent) 26%, transparent) 0%, transparent 62%),
    radial-gradient(60% 70% at 100% 100%, color-mix(in oklab, var(--accent-deep) 60%, transparent) 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 82px);
}

.dealer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.dealer__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 122, 'wght' 800;
  font-size: clamp(2.2rem, 5.4vw, 4.1rem);
  line-height: .92;
  letter-spacing: -.03em;
  margin-top: 20px;
}
.dealer__kicker { margin-top: 16px; color: var(--accent); font-size: 1.02rem; }

.perks {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: grid;
  gap: 14px;
  max-width: 44ch;
}
.perks li {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: #C6D1D0;
}
.perks li span { color: var(--accent); flex: none; }
.dealer__reply {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.dealer__formwrap { padding: clamp(24px, 3vw, 34px); }
.form__head {
  font-family: var(--display);
  font-variation-settings: 'wdth' 110, 'wght' 700;
  font-size: 1.25rem;
  letter-spacing: -.015em;
  margin-bottom: 22px;
}

.field { display: block; margin-bottom: 16px; border: 0; padding: 0; min-inline-size: 0; }
.field > label, .field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.req { color: var(--accent); }

.field input, .field select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #EDF1F0;
  font-size: .95rem;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.field input::placeholder { color: rgba(237,241,240,.32); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 24%, transparent);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option { background: #161E21; color: #EDF1F0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field.is-bad input { border-color: #E4705E; }
.field__err {
  margin-top: 6px;
  font-size: .76rem;
  color: #F0917F;
  min-height: 0;
}
.field__err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.chip:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B1113;
  font-weight: 600;
}

.form__foot { margin-top: 14px; font-size: .8rem; color: var(--fg-dim); }
.form__foot a { color: var(--accent); }
.form__done {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  font-size: .86rem;
}
.form__done[hidden] { display: none; }

/* ---------- 16. Contact -------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.contact__card { padding: 28px 26px; }
.contact__kind {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.contact__body { font-style: normal; line-height: 1.85; }
/* Statutory line under the registered address — quiet, but it has to be
   readable, so it stays a notch above the footer's mono size. */
.contact__legal {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--fg-dim);
}
.contact__body a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.contact__body a:hover { color: var(--accent-deep); }

/* ---------- 17. Footer --------------------------------------- */
.footer {
  background: var(--kiln);
  color: #C6D1D0;
  padding-top: clamp(56px, 6vw, 88px);
  /* The WhatsApp button is fixed to the bottom-right and stands about 80px
     off the floor, so the last line needs to end above it. */
  padding-bottom: clamp(82px, 7vw, 100px);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 2.4fr);
  gap: 40px;
  padding-bottom: 52px;
}
.footer__logo {
  width: clamp(168px, 18vw, 208px);
  height: auto;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--bone);
}
.footer__tag {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: #7E8C8C;
}
/* Company, Range, Tiles, Reach us — always four across on a wide screen,
   two by two on a phone. */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  align-content: start;
}
.footer__nav > div { display: grid; gap: 9px; align-content: start; }
.footer__h {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer__nav a {
  text-decoration: none;
  font-size: .92rem;
  color: #A9B6B5;
  transition: color .25s ease;
  justify-self: start;
}
.footer__nav a:hover { color: #fff; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .07em;
  color: #758382;
}
.footer__gst { letter-spacing: .09em; }

/* ---------- 18. WhatsApp float ------------------------------- */
.wafab {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #EDF1F0;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .07em;
  --glass-bg: rgba(18,25,27,.62);
  --glass-brd: rgba(255,255,255,.16);
  --glass-edge: rgba(255,255,255,.36);
  --glass-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  transition: transform .4s var(--ease), background-color .3s ease;
}
.wafab:hover { transform: translateY(-3px) scale(1.02); }

/* ---------- 19. Scroll reveal -------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(90ms * var(--d, 0));
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 20. Responsive ----------------------------------- */
@media (max-width: 1220px) {
  .header__cta { display: none; }
}

@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr; }
  .dealer { grid-template-columns: 1fr; }
  .dealer__formwrap { max-width: 560px; }
}

@media (max-width: 1030px) {
  .burger { display: grid; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    z-index: 95;
    margin: 0;
    padding: 96px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: rgba(13,18,20,.82);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
    border-left: 1px solid rgba(255,255,255,.12);
    transform: translateX(102%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  /* The drawer leaves the flow, so the tools need their own push right —
     and their own layer, so the burger stays tappable over the open panel
     (which is what the drawer's 96px of top padding leaves room for). */
  .header__tools { margin-left: auto; position: relative; z-index: 96; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a { padding: 13px 14px; border-radius: 12px; font-size: 1.02rem; }
  .nav__drawer-foot { display: grid; gap: 10px; margin-top: auto; }
}

/* The pill runs out of room for seven links well before the layout needs to
   stack, so the drawer takes over on its own breakpoint. */
@media (max-width: 900px) {
  /* Room for a real band of wall between the header and the panel. */
  .hero { min-height: auto; padding-top: clamp(180px, 27vh, 240px); }
  .hero__wall {
    inset: -16% -2%; opacity: .72;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  /* The panel runs nearly edge to edge here, so the wall only gets the band
     above it — keep that band readable instead of washing it out. */
  .hero__scrim {
    background:
      linear-gradient(to bottom,
        color-mix(in oklab, var(--kiln) 34%, transparent) 0 18%,
        color-mix(in oklab, var(--kiln) 80%, transparent) 46%,
        var(--kiln) 88%);
  }
  .hero__panel { max-width: none; }

  .prods { grid-template-columns: repeat(2, 1fr); }
  .specstrip { grid-template-columns: 1fr 1fr; }
  .specstrip > div:nth-child(odd) { border-left: 0; }
  .specstrip > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }

  .footer__inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  .header { padding-inline: 12px; }
  .header__inner { padding: 8px 8px 8px 14px; }

  /* The specular sweep is invisible at phone size — skip the extra layer. */
  .hero__wall .slab::after { display: none; }

  .prods { grid-template-columns: 1fr; }
  .sizewall__rail { --u: .1px; column-gap: 14px; row-gap: 30px; }
  .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .wafab__text { display: none; }
  .wafab { padding: 14px; }
  .hero__cta .btn { flex: 1 1 100%; }

  /* Two books across rather than one: a 4:3 cover at full phone width makes
     a seven-book range a very long scroll, and a shallower crop shortens it
     again without losing the tile. */
  .shelf__books { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .book__cover { aspect-ratio: 3 / 2; }
  .book__body { padding: 11px 12px 13px; }
  .book__name { font-size: .9rem; }
  .book__meta { font-size: .62rem; }
  .shelf__tab { padding: 9px 14px; font-size: .86rem; }
}

@media (max-width: 420px) {
  .specstrip { grid-template-columns: 1fr; }
  .specstrip > div { border-left: 0 !important; }
  .specstrip > div + div { border-top: 1px solid rgba(255,255,255,.1); }
}

/* ---------- 21. Motion preferences --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .header, .wafab, .hero__wall, .scrim, .nav { display: none !important; }
  body { background: #fff; color: #000; }
  /* Paper is already white, so the lockup needs no tile under it. */
  .footer { background: #fff; color: #000; }
  .footer__logo { background: none; padding: 0; }
}


/* =============================================================
   22. Catalogue — collections, tile grid, tile detail
   Photographs, unlike the rest of the site. Everything here is
   driven by assets/data/products.json through catalogue.js.
   ============================================================= */

/* ---------- 22.1 Page shell --------------------------------- */
.page-top {
  /* the floor has to clear the header pill, which is 88px tall on a phone */
  padding-top: clamp(120px, 12vw, 148px);
  /* the same rhythm that separates two groups, so the last one does not
     run straight into the footer */
  padding-bottom: clamp(56px, 7vw, 96px);
}
.crumbs {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: var(--fg-dim); }
.crumbs i { font-style: normal; opacity: .45; }

/* ---------- 22.2 Collection cards --------------------------- */
/* A spec-sheet header: a numbered rule across the top, the name and its
   tally on the left, the description set against it on the right. The
   accent tick under the closing rule is the grout joint the grid hangs
   from — it lines the header up with the first card below it. */
.grouphead {
  margin-bottom: clamp(26px, 3.4vw, 40px);
}
.grouphead__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.grouphead__idx {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.band--bone .grouphead__idx { color: var(--accent-deep); }
.grouphead__rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 24px;
  background: var(--line);
}
.grouphead__size { color: var(--fg-dim); white-space: nowrap; }

.grouphead__main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(16px, 3vw, 48px);
  margin-top: clamp(18px, 2.2vw, 28px);
  padding-bottom: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
}
/* the joint — an accent segment laid over the closing rule */
.grouphead__main::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(48px, 8vw, 88px);
  height: 2px;
  background: var(--accent);
}
.band--bone .grouphead__main::after { background: var(--accent-deep); }

.grouphead__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112, 'wght' 700;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.grouphead__tally {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1em .9em;
}
.grouphead__tally em {
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.band--bone .grouphead__tally em { color: var(--accent-deep); }
.grouphead__tally i { font-style: normal; opacity: .4; }

.grouphead__blurb {
  max-width: 46ch;
  color: var(--fg-dim);
  font-size: .95rem;
  line-height: 1.62;
  padding-bottom: .1em;         /* sits the last line on the title's baseline */
}
.group + .group { margin-top: clamp(56px, 7vw, 96px); }

.colgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}
.colcard {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--kiln-2);
  border: 1px solid rgba(255,255,255,.09);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.band--bone .colcard { background: #fff; border-color: rgba(11,17,19,.1); }
.colcard:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 22px 44px -26px rgba(0,0,0,.6);
}
.colcard__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4 / 3;
  background: var(--kiln-3);
  overflow: hidden;
}
/* the cells must not take their height from the photo, or a 600x1200
   face stretches the whole card out of the row */
.colcard__mosaic img {
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: cover;
  display: block;
}
/* The body and its name are spans, so they need a box of their own —
   left inline, the flex meta below splits out of the inline run and the
   padding stops holding it. */
.colcard__body {
  display: block;
  padding: 16px 20px 18px;
}
.colcard__name {
  display: block;
  font-family: var(--display);
  font-variation-settings: 'wdth' 108, 'wght' 650;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
/* The count and the format are two separate facts, so they get a rule
   between them and opposite ends of the card — run together on one line
   they read as a single unbroken string. */
.colcard__meta {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.colcard__count { color: var(--accent); font-weight: 500; }
.band--bone .colcard__count { color: var(--accent-deep); }

/* ---------- 22.3 Toolbar ------------------------------------ */
.tbar {
  position: sticky;
  /* --tbar-rest clears the fixed header pill, measured at its scrolled
     height; app.js reads it to know where the bar starts sticking. */
  --tbar-rest: 96px;
  top: var(--tbar-top, var(--tbar-rest));
  z-index: 85;                /* over the grid, under the drawer and header */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  margin-bottom: clamp(22px, 3vw, 34px);
  background: color-mix(in oklab, var(--kiln) 88%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  /* the sides carry a border from the start so the solo pill only has to
     fade its colour in — no width to animate, no reflow of the pills */
  border: 1px solid transparent;
  border-bottom-color: rgba(255,255,255,.1);
  border-radius: 0;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: top .42s var(--ease), padding .42s var(--ease),
              border-radius .42s var(--ease), box-shadow .42s ease,
              border-color .42s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .tbar { background: var(--kiln); }
}
/* Once the header has gone, the toolbar reads as its own floating pill. */
body.tbar-solo .tbar {
  --tbar-top: 10px;
  padding: 12px 16px;
  border-color: rgba(255,255,255,.12);
  border-radius: 20px;
  background: color-mix(in oklab, var(--kiln) 94%, transparent);
  box-shadow: 0 18px 46px -22px rgba(0,0,0,.9);
}
@supports not (backdrop-filter: blur(1px)) {
  body.tbar-solo .tbar { background: var(--kiln); }
}
/* A short veil across the very top, so tiles do not flicker through the
   sliver of page left above the floating bar. */
body.tbar-solo::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: 12px;
  z-index: 84;
  background: var(--kiln);
  pointer-events: none;
}
.tbar__search {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 380px;
  position: relative;
}
.tbar__search input {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: #fff;
  padding: 11px 14px 11px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}
.tbar__search input::placeholder { color: #7C8A8A; }
.tbar__search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.tbar__search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .5;
}
.tbar__count {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-left: auto;
}
.tbar__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  /* min-width:0 or the nowrap pills push the whole page sideways */
  flex: 1 1 100%;
  min-width: 0;
  order: 3;
  padding-bottom: 2px;
}
.tbar__scroll::-webkit-scrollbar { display: none; }
.pill {
  flex: none;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: #C7D2D1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s;
}
.pill:hover { border-color: color-mix(in oklab, var(--accent) 50%, transparent); color: #fff; }
.pill.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B1113;
}

/* ---------- 22.4 The tile wall ------------------------------ */
.tilegrid {
  display: grid;
  gap: clamp(12px, 1.6vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(var(--cw, 208px), 1fr));
}
.tilegrid[data-shape="tall"] { --cw: 186px; }

.tilecard {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--kiln-2);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.tilecard:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  box-shadow: 0 18px 34px -22px rgba(0,0,0,.7);
}
.tilecard__face {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 1);
  background: var(--kiln-3);
  overflow: hidden;
}
.tilecard__face img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
/* Gloss sweep — the same specular pass the buttons take, run across the
   glaze itself. It sits after the photo, so it lights the face, not the
   card. */
.tilecard__face::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
              transparent 36%,
              rgba(255,255,255,.10) 44%,
              rgba(255,255,255,.46) 50%,
              rgba(255,255,255,.10) 56%,
              transparent 64%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.tilecard:hover .tilecard__face img { transform: scale(1.045); }
.tilecard:hover .tilecard__face::after,
.tilecard:focus-visible .tilecard__face::after { transform: translateX(120%); }
.tilecard__body {
  padding: 11px 13px 13px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.tilecard__name {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.25;
}
.tilecard__size {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--fg-dim);
  white-space: nowrap;
}
/* A tile's size is one short number every card in the grid repeats. A wash
   basin carries its own three, which is too much to sit on the same line as
   the name — so where the products bring their own sizes, the card stacks. */
#tiles[data-spec] .tilecard__body {
  display: block;
}
#tiles[data-spec] .tilecard__name { display: block; }
#tiles[data-spec] .tilecard__size { display: block; margin-top: 4px; }
/* A tile face is a flat square and can be cropped to the cell without losing
   anything. A basin or a urinal is a photograph of an object — crop that and
   the flush pipe goes missing — so those are shown whole. */
#tiles[data-fit="contain"] .tilecard__face img,
#more[data-fit="contain"] .tilecard__face img { object-fit: contain; }

/* Draws the next batch. Scrolling does this on its own, but the button
   is the guarantee — and it says how much of the collection is left. */
.showmore {
  display: block;
  margin: clamp(28px, 4vw, 46px) auto 0;
  padding: 14px 30px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #EDF1F0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.showmore:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B1113;
}

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--fg-dim);
}
.empty a { color: var(--accent); }

/* ---------- 22.5 Tile detail -------------------------------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
/* A 600x1200 face is twice as tall as it is wide; cap the column so the
   stage stays on one screen instead of running past the spec panel. */
.viewer {
  width: 100%;
  max-width: min(100%, calc(var(--ar, 1) * min(72vh, 760px)));
}
.viewer__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--kiln-2);
  border: 1px solid rgba(255,255,255,.09);
  aspect-ratio: var(--ar, 1);
}
.viewer__stage img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* before the zoom rule, which is the same weight and has to win */
.viewer__stage[data-fit="contain"] img { object-fit: contain; }
.viewer__stage[data-zoom="1"] { cursor: zoom-out; }
.viewer__stage[data-zoom="0"] { cursor: zoom-in; }
.viewer__stage[data-zoom="1"] img { object-fit: none; object-position: var(--px, 50%) var(--py, 50%); }
.viewer__strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.viewer__thumb {
  width: 74px;
  aspect-ratio: var(--tar, 1);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--kiln-3);
  cursor: pointer;
  transition: border-color .25s, transform .3s var(--ease);
}
.viewer__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer__thumb { position: relative; }
.viewer__thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
              transparent 36%,
              rgba(255,255,255,.10) 44%,
              rgba(255,255,255,.46) 50%,
              rgba(255,255,255,.10) 56%,
              transparent 64%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.viewer__thumb:hover { transform: translateY(-2px); }
.viewer__thumb:hover::after,
.viewer__thumb:focus-visible::after { transform: translateX(120%); }
.viewer__thumb.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.detail__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112, 'wght' 700;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 10px 0 6px;
}
.detail__coll {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.spectable {
  margin: 28px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.spectable div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .93rem;
}
.spectable dt, .spectable .k {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.spectable .v { font-weight: 600; text-align: right; }
.detail__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.detail__note {
  margin-top: clamp(30px, 4vw, 46px);
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  font-size: .9rem;
  color: var(--fg-dim);
}
.detail__note p + p { margin-top: 10px; }
.detail__noteh {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.morefrom { margin-top: clamp(60px, 8vw, 110px); }
.morefrom__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.morefrom__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 108, 'wght' 650;
  font-size: 1.3rem;
}

/* ---------- 22.6 Narrow screens ----------------------------- */
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  /* the viewer is narrower than the column once it stacks — centre it
     rather than leaving all the slack on one side */
  .viewer { margin-inline: auto; }
  .tbar { --tbar-rest: 90px; }
  /* the blurb drops under the name rather than squeezing to a stripe */
  .grouphead__main { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .grouphead__blurb { max-width: 58ch; }
}
@media (max-width: 560px) {
  .grouphead__size { white-space: normal; text-align: right; }
  .grouphead__blurb { font-size: .92rem; }
  .tilegrid { --cw: 142px; gap: 10px; }
  .tilegrid[data-shape="tall"] { --cw: 132px; }
  .colgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .colcard__body { padding: 12px 13px 14px; }
  .colcard__name { font-size: .98rem; }
  /* two-up cards are too narrow to hold both ends of the row */
  .colcard__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: .66rem;
  }
  .tbar__count { flex: 1 1 100%; margin-left: 0; order: 4; }
}


/* =============================================================
   23. Touch & small screens
   Everything above already reflows — nothing on the site scrolls
   sideways at 320px. What it did not do was size itself for a
   finger, or for reading a label at arm's length. The tap-target
   rules hang off (pointer: coarse) so the desktop density the
   design leans on is left exactly as it was.
   ============================================================= */

/* ---------- 23.1 Safe areas ---------------------------------- */
/* All four pages ship viewport-fit=cover, which opts the layout into the
   notch and the rounded corners — and then makes insetting our problem.
   Without these the header pill, the drawer and the WhatsApp button run
   under the sensor housing in landscape. */
.header { padding-left: max(var(--gutter), env(safe-area-inset-left));
          padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.container { padding-left: max(var(--gutter), env(safe-area-inset-left));
             padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.wafab { right: max(clamp(14px, 3vw, 28px), env(safe-area-inset-right));
         bottom: max(clamp(14px, 3vw, 28px), env(safe-area-inset-bottom)); }
.footer { padding-bottom: calc(clamp(82px, 7vw, 100px) + env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  .nav { padding-right: max(24px, env(safe-area-inset-right));
         padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .header { padding-left: max(12px, env(safe-area-inset-left));
            padding-right: max(12px, env(safe-area-inset-right)); }
}

/* ---------- 23.2 iOS zoom on focus --------------------------- */
/* Safari zooms the page in whenever a focused field is under 16px and never
   zooms back out, leaving the visitor scrolled sideways mid-form. Every
   field on the site was .95rem — about 15px. */
@media (max-width: 900px) {
  .field input,
  .field select,
  .tbar__search input { font-size: 16px; }
}

/* ---------- 23.3 Tap targets --------------------------------- */
/* Apple and Material both ask for 44px; WCAG 2.5.8 sets the floor at 24.
   Most standalone controls here were 19-39px. Links running inside a
   sentence are exempt and are left alone — only controls that stand on
   their own are grown, with padding wherever that keeps the design still. */
@media (pointer: coarse) {
  .burger { width: 46px; height: 46px; }
  .brand { min-height: 44px; }
  .btn--sm { --btn-pad: 13px 20px; }

  /* Link lists — the padding carries the hit area, so the gap that used to
     separate the rows gives most of its space back. */
  .footer__nav > div { gap: 1px; }
  .footer__nav a { padding-block: 10px; }
  .crumbs { gap: 4px 10px; }
  .crumbs a, .crumbs > span { padding-block: 13px; }
  .tbar__count { padding-block: 4px; }

  /* Chips and pills: both were a hair under, and both are the main way
     around the catalogue on a phone. */
  .pill { padding-block: 12px; }
  .chip { padding-block: 12px; }

  /* Underlined inline links keep their rule where it is; the hit area is
     grown with an overlay instead, so nothing moves. */
  .link-arrow, .contact__body a, .detail__note a,
  .cats__note a, .form__foot a { position: relative; }
  .link-arrow::before,
  .contact__body a::before,
  .detail__note a::before,
  .cats__note a::before,
  .form__foot a::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }

  /* Hover-only flourishes never fire on a touch screen and just leave the
     first tap doing nothing on some Android browsers. */
  .tilecard:hover, .colcard:hover, .btn:hover,
  .viewer__thumb:hover, .chip:hover { transform: none; }
}

/* ---------- 23.4 Type at arm's length ------------------------ */
/* The mono labels are set small on purpose, but a 9.6px caption on a phone
   is decoration, not information. These are the ones the audit found under
   ~11px; each is nudged to sit at or above 11.5. */
@media (max-width: 900px) {
  .brand__sub      { font-size: .7rem; }
  .slab__tag       { font-size: .72rem; }
  .tilecard__size  { font-size: .7rem; }
  .colcard__count  { font-size: .72rem; }
  .footer__h       { font-size: .72rem; }
  .footer__made    { font-size: .74rem; }
  .contact__kind   { font-size: .72rem; }
  .grouphead__size { font-size: .74rem; }
  .specstrip dt    { font-size: .72rem; }
  .colcard__meta   { font-size: .72rem; }
  .grouphead__bar  { font-size: .72rem; }
  .sizecard__meta  { font-size: .72rem; }
  .cat__kind       { font-size: .72rem; }
  .stat__label     { font-size: .74rem; }
  .finishes__label { font-size: .74rem; }
  .field > label, .field > legend { font-size: .74rem; }
  .spectable dt, .spectable .k { font-size: .78rem; }
  /* The e-catalogue shelf was set tighter than the rest — its page counts
     and file sizes came out under 10px on a phone. */
  .shelf__n        { font-size: .72rem; }
  .book__pages     { font-size: .72rem; }
  .book__meta      { font-size: .68rem; letter-spacing: -.03em; }
  .shelf__sum      { font-size: .74rem; }
  .dl__meta        { font-size: .74rem; }
}

/* Two-up tile cards are ~160px wide: a two-word name and "600×1200" side by
   side squeezes the name onto two lines. Stack them, as the product grid does. */
@media (max-width: 560px) {
  .tilecard__body { display: block; }
  .tilecard__name { display: block; }
  .tilecard__size { display: block; margin-top: 4px; }
}

/* ---------- 23.5 Breadcrumbs that wrap ----------------------- */
/* Four levels do not fit on a phone, and the separators are their own
   elements — so a wrap leaves a slash stranded at the end of the line.
   Hide them and let each crumb carry its own leading slash instead; the
   two then wrap as one. */
@media (max-width: 480px) {
  .crumbs i { display: none; }
  .crumbs > a:not(:first-child)::before,
  .crumbs > span:not(:first-child)::before {
    content: '/';
    margin-right: 10px;
    color: var(--fg-dim);
    opacity: .45;
  }
}

/* ---------- 23.6 The narrowest phones ------------------------ */
/* 320px is still a live width (SE 1st gen, and any phone at 200% zoom). */
@media (max-width: 360px) {
  .tilegrid { --cw: 128px; gap: 8px; }
  .tilegrid[data-shape="tall"] { --cw: 120px; }
  .colgrid { grid-template-columns: 1fr; }
  .header__inner { gap: 10px; padding-left: 12px; }
  /* .btn is nowrap, so a full-width button's min-content width is its whole
     label — enough to push the dealer grid past a 320px screen. Let the
     ones that already span their column wrap instead. */
  .btn--block { white-space: normal; }
  .btn { --btn-pad: 15px 18px; }
  .brand__sub { display: none; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- 23.7 Panning the glaze by touch ------------------ */
/* The stage pans under the cursor on a desktop; a finger needs to drag it,
   and must not scroll the page while doing so. */
.viewer__stage[data-zoom="1"] { touch-action: none; }


/* =============================================================
   24. Static catalogue pages — copy, FAQ, range links
   Written by tools/build_pages.py. The copy sits under the tiles,
   so the photographs still lead and the words are there for the
   buyer who scrolls and the search engine that reads them.
   ============================================================= */
.sechead--wide { max-width: 68ch; }
.sechead--wide .sechead__title { max-width: 22ch; }

.prose { color: var(--fg-dim); max-width: 68ch; line-height: 1.68; }
.sechead .prose { margin-top: 18px; }
.prose p + p { margin-top: 12px; }

.seoblock {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  max-width: 76ch;
}
.seoblock__title, .faq__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112, 'wght' 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
.seoblock__note { margin-top: 20px; color: var(--fg-dim); font-size: .95rem; line-height: 1.65; }
.seoblock a, .prose a, .faq a, .detail__about a, .grouphead__more {
  color: var(--accent);
  text-underline-offset: 3px;
}
.band--bone .seoblock a, .band--bone .faq a { color: var(--accent-deep); }

.uses {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.uses li {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .92rem;
}

.faq { margin-top: clamp(48px, 6vw, 80px); max-width: 76ch; }
.faq--home { margin-top: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-of-type { border-top: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 600;
  line-height: 1.4;
  min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 20px; color: var(--fg-dim); line-height: 1.68; }

.grouphead__title a { color: inherit; text-decoration: none; }
.grouphead__title a:hover { color: var(--accent); }
.grouphead__more { white-space: nowrap; font-size: .9rem; }

.detail__coll a { color: inherit; text-decoration: none; }
.detail__kind {
  display: block;
  margin: 12px 0 18px;
  font-family: var(--body);
  font-variation-settings: normal;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--fg-dim);
}
.detail__about { margin-top: 24px; color: var(--fg-dim); line-height: 1.68; font-size: .95rem; }

.tilecard[hidden] { display: none; }
/* A collection page now carries every design in its HTML (up to 819), so
   the browser skips laying out the cards that are off screen. */
#tiles .tilecard { content-visibility: auto; contain-intrinsic-size: auto 260px; }

/* ---------- The calculator on a design page ------------------ */
/* The tile is chosen already, so no category, size or design steps:
   the room on the left, the boxes and the plan on the right. */
.calc--fixed { grid-template-areas: "controls out"; }
.calcband--tile { padding-block: clamp(60px, 7vw, 110px); }
.band--after-calc { padding-top: clamp(56px, 7vw, 96px); }
.band--after-calc .morefrom { margin-top: 0; }

.calc__chosen { display: flex; align-items: center; gap: 16px; }
.calc__chosenimg {
  flex: none;
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--accent-deep), 0 12px 24px -14px var(--accent-deep);
}
.calc__chosenname {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106, 'wght' 700;
  font-size: 1.2rem;
  line-height: 1.2;
}
.calc__chosenmeta {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .03em;
  color: var(--fg-dim);
}
.calc__fine--light { margin-top: 22px; }

@media (max-width: 1030px) {
  .calc--fixed { grid-template-areas: "controls" "out"; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .footer__inner { grid-template-columns: minmax(0, .6fr) minmax(0, 2.6fr); }
  .footer__logo { width: 160px; }
}
@media (max-width: 640px) {
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
