/* Hallmark · macrostructure: Catalogue · genre: modern-minimal · tone: corporate, utilitarian
 * theme: custom (vibe: "industrial stockist, clean ledger, red mark") · nav: N11 mega-menu
 * footer: Ft3 index · CTA: C4 sticky enquiry bar · features: F6 product cards · enrichment: none
 * paper oklch(99.2% 0 0) light · display Switzer 600-700 · body Switzer 400 · accent blue (action) · brand red (mark only)
 * pre-emit critique: P4 H5 E4 S5 R5 V4
 */

/* Switzer (ITF, Fontshare, ITF Free Font License), self-hosted. */
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-VariableItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* DAY's brand (design-system/tokens.css): red and slate are the mark and
     the dark bands; blue is the action; greys carry no hue. */
  --color-paper: oklch(99.2% 0 0);
  --color-paper-2: oklch(96.3% 0.003 247.9);
  --color-paper-3: oklch(93.5% 0.004 247.9);
  --color-ink: oklch(21% 0.008 240);
  --color-ink-2: oklch(44.5% 0.022 238.2);
  --color-ink-3: oklch(55% 0.015 238);
  --color-rule: oklch(90% 0.005 248);
  --color-rule-strong: oklch(82% 0.008 248);
  --color-deep: oklch(32.3% 0.016 237.2);
  --color-deep-2: oklch(27% 0.014 237);
  --color-on-deep: oklch(98% 0 0);
  --color-on-deep-2: oklch(84% 0.012 238);
  --color-brand: oklch(57.3% 0.216 23.3);
  --color-brand-on-deep: oklch(64% 0.2 23);
  --color-accent: oklch(54.6% 0.245 262.9);
  --color-accent-hover: oklch(48.8% 0.243 264.4);
  --color-accent-soft: oklch(95.5% 0.025 262);
  --color-on-accent: oklch(99% 0 0);
  --color-focus: oklch(62.3% 0.214 259.8);
  --color-ok: oklch(52.7% 0.154 150);
  --color-ok-soft: oklch(96% 0.04 150);
  --color-error: oklch(50.5% 0.213 27.5);
  --color-error-soft: oklch(96.5% 0.02 25);
  --color-scrim: oklch(18% 0.01 250 / 0.32);

  --font-display: "Switzer", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Switzer", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --text-display: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --rule: 1px solid var(--color-rule);
  --page-max: 78rem;
  --page-gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-md));
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

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

.skip {
  position: absolute;
  left: var(--space-md);
  top: -3rem;
  z-index: 1000;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: var(--space-xs);
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 2.75rem;
  padding: 0 var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 600 var(--text-sm) / 1 var(--font-body);
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.btn--outline {
  background: var(--color-paper);
  border-color: var(--color-rule-strong);
  color: var(--color-ink);
}

.btn--outline:hover {
  border-color: var(--color-ink-3);
  color: var(--color-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  padding-inline: var(--space-sm);
}

.btn--ghost:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

.btn--sm {
  min-height: 2.25rem;
  padding-inline: var(--space-md);
}

.btn[data-state="loading"] {
  pointer-events: none;
  opacity: 0.8;
}

.btn[data-state="added"] {
  background: var(--color-ok-soft);
  border-color: color-mix(in oklch, var(--color-ok) 40%, transparent);
  color: var(--color-ok);
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-accent);
  font: 700 var(--text-xs) / 1 var(--font-body);
  font-variant-numeric: tabular-nums;
}

.count[data-empty] {
  display: none;
}

/* ---------- Header (N11 mega-menu) ---------- */

.top {
  background: var(--color-deep-2);
  color: var(--color-on-deep-2);
  font-size: var(--text-xs);
}

.top .wrap {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.45rem;
}

.top a {
  color: var(--color-on-deep);
  text-decoration: none;
  white-space: nowrap;
}

.top a:hover {
  text-decoration: underline;
  color: var(--color-on-deep);
}

.top__list {
  display: flex;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.top__where {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: color-mix(in oklch, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: var(--header-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__brand img {
  height: 2.4rem;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0 var(--space-sm);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-ink);
  font: 500 var(--text-sm) / 1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav__link:hover,
.nav__link[aria-expanded="true"],
.nav__link[aria-current="page"] {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

.nav__caret {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav__link[aria-expanded="true"] .nav__caret {
  transform: translateY(1px) rotate(225deg);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.nav__menu {
  display: none;
}

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: min(70vh, 40rem);
  overflow-y: auto;
  background: var(--color-paper);
  border-bottom: var(--rule);
  box-shadow: 0 30px 60px -32px oklch(0% 0 0 / 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility var(--dur-base);
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2xs) var(--space-xl);
  padding-block: var(--space-xl);
}

.mega a {
  display: block;
  padding: 0.3rem 0;
  border-bottom: var(--rule);
  color: var(--color-ink);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega a:hover {
  color: var(--color-accent);
}

.mega__all {
  grid-column: 1 / -1;
  padding-top: var(--space-md);
}

.mega__all a {
  border: 0;
  font-weight: 600;
  color: var(--color-accent);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--color-scrim);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-base) var(--ease-out),
    visibility var(--dur-base);
}

.scrim.is-active {
  opacity: 1;
  visibility: visible;
}

/* The drawer: the menu on a phone. */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 600;
  width: min(22rem, 88vw);
  background: var(--color-paper);
  border-left: var(--rule);
  padding: var(--space-lg);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    visibility var(--dur-base);
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: var(--rule);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer details summary {
  padding: 0.7rem 0;
  border-bottom: var(--rule);
  cursor: pointer;
  font-weight: 600;
}

.drawer details a {
  padding-left: var(--space-md);
  font-size: var(--text-sm);
}

/* ---------- Page heads ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: var(--space-lg) 0 0;
  list-style: none;
  color: var(--color-ink-3);
  font-size: var(--text-sm);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--color-rule-strong);
}

.crumbs a {
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.crumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.head {
  padding-block: var(--space-xl) var(--space-2xl);
  border-bottom: var(--rule);
}

.head h1 {
  font-size: var(--text-display);
  font-weight: 680;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.head__lede {
  margin-top: var(--space-md);
  max-width: 62ch;
  color: var(--color-ink-2);
  font-size: var(--text-lg);
}

.head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin-top: var(--space-lg);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.head__meta b {
  color: var(--color-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: end;
}

.head__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-paper-2);
  aspect-ratio: 4 / 3;
}

.head__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ---------- Home: the inventory header ---------- */

.inventory {
  padding-block: var(--space-3xl) var(--space-2xl);
  border-bottom: var(--rule);
}

.inventory__mark {
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: var(--space-lg);
  background: var(--color-brand);
}

.inventory h1 {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.inventory__line {
  margin-top: var(--space-lg);
  max-width: 58ch;
  color: var(--color-ink-2);
  font-size: var(--text-lg);
}

.inventory__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.inventory__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--space-2xl) 0 0;
  border-top: var(--rule);
}

.inventory__facts div {
  padding: var(--space-md) var(--space-md) 0 0;
}

.inventory__facts div + div {
  padding-left: var(--space-md);
  border-left: var(--rule);
}

.inventory__facts dt {
  color: var(--color-ink-3);
  font-size: var(--text-xs);
}

.inventory__facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space-3xl);
}

.section + .section {
  border-top: var(--rule);
}

.section--tint {
  background: var(--color-paper-2);
  border-top: 0 !important;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.section__head h2 {
  font-size: var(--text-3xl);
}

.section__head p {
  margin-top: var(--space-xs);
  color: var(--color-ink-2);
  max-width: 60ch;
}

.section__head a {
  white-space: nowrap;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}

/* ---------- Category index ---------- */

.filter {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.filter input {
  width: min(26rem, 100%);
}

.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-rule);
  border: var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cat {
  background: var(--color-paper);
  display: flex;
}

.cat[hidden] {
  display: none;
}

.cat a {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--space-md);
  color: var(--color-ink);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.cat a:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

.cat__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.cat__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cat__name {
  font-weight: 600;
  line-height: 1.3;
}

.cat__count {
  margin-top: 0.15rem;
  color: var(--color-ink-3);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: var(--space-xl);
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-lg);
  color: var(--color-ink-2);
  text-align: center;
}

/* ---------- Products (F6) ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product {
  display: flex;
  flex-direction: column;
  border: var(--rule);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  overflow: hidden;
}

.product__img {
  aspect-ratio: 4 / 3;
  background: var(--color-paper-2);
  border-bottom: var(--rule);
}

.product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-xs);
  padding: var(--space-md);
}

.product__brand {
  color: var(--color-ink-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product h3 {
  font-size: var(--text-lg);
  font-weight: 620;
  letter-spacing: -0.012em;
}

.product h3 a {
  color: inherit;
  text-decoration: none;
}

.product h3 a:hover {
  color: var(--color-accent);
}

.product__desc {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__act {
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* ---------- Product detail ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  padding-block: var(--space-xl) var(--space-3xl);
}

.detail__img {
  border: var(--rule);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  aspect-ratio: 1;
  overflow: hidden;
}

.detail__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.detail h1 {
  font-size: var(--text-3xl);
}

.detail__desc {
  margin-top: var(--space-md);
  color: var(--color-ink-2);
}

.specs {
  margin: var(--space-lg) 0 0;
  border-top: var(--rule);
}

.specs div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-md);
  padding: 0.6rem 0;
  border-bottom: var(--rule);
  font-size: var(--text-sm);
}

.specs dt {
  color: var(--color-ink-3);
}

.specs dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.add {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: end;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule);
}

.add .field {
  width: 9rem;
}

/* ---------- Prose (about, legal) ---------- */

.prose {
  max-width: 70ch;
  padding-block: var(--space-xl) var(--space-3xl);
}

.prose h2 {
  margin-top: var(--space-2xl);
  font-size: var(--text-2xl);
}

.prose h3 {
  margin-top: var(--space-xl);
  font-size: var(--text-xl);
}

.prose p,
.prose ul,
.prose ol {
  margin-top: var(--space-md);
  color: var(--color-ink-2);
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--color-ink);
  font-weight: 600;
}

.prose__updated {
  color: var(--color-ink-3);
  font-size: var(--text-sm);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-3xl);
}

.aside {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + var(--space-lg));
  padding: var(--space-lg);
  border: var(--rule);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
}

.aside h2 {
  font-size: var(--text-lg);
}

.facts {
  margin: var(--space-md) 0 0;
}

.facts div + div {
  margin-top: var(--space-md);
}

.facts dt {
  color: var(--color-ink-3);
  font-size: var(--text-xs);
}

.facts dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

/* ---------- Clients, brands ---------- */

.names {
  columns: 3 14rem;
  column-gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.names li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-bottom: var(--rule);
}

.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-rule);
  border: var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.logos li {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: var(--space-md);
  background: var(--color-paper);
}

.logos img {
  max-height: 2.75rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.8;
}

/* ---------- Steps (how an enquiry works) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-ink);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: var(--text-lg);
}

.steps p {
  margin-top: var(--space-xs);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 52rem;
  border-top: var(--rule);
}

.faq details {
  border-bottom: var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  color: var(--color-ink-3);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq__a {
  padding-bottom: var(--space-md);
  color: var(--color-ink-2);
  max-width: 65ch;
}

/* ---------- Forms ---------- */

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

.form .full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 500;
}

.input,
.textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  color: var(--color-ink);
  font: 400 var(--text-base) / 1.4 var(--font-body);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
}

.input:hover,
.textarea:hover {
  border-color: var(--color-ink-3);
}

.input:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 0;
  border-color: var(--color-focus);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.input:disabled,
.textarea:disabled {
  background: var(--color-paper-2);
  cursor: not-allowed;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.form__note {
  color: var(--color-ink-3);
  font-size: var(--text-sm);
}

.notice {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.notice[hidden] {
  display: none;
}

.notice--ok {
  background: var(--color-ok-soft);
  color: var(--color-ok);
}

.notice--error {
  background: var(--color-error-soft);
  color: var(--color-error);
}

/* The contact band every page closes on. */
.ask {
  background: var(--color-paper-2);
  border-top: var(--rule);
}

.ask__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--space-3xl);
  padding-block: var(--space-3xl);
}

.ask h2 {
  font-size: var(--text-3xl);
}

.ask__lede {
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
}

/* ---------- Enquiry list ---------- */

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule);
}

.line {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 7rem minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: var(--rule);
}

.line__img {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
  background: var(--color-paper-2);
  overflow: hidden;
}

.line__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.line__name {
  font-weight: 600;
}

.line__cat {
  color: var(--color-ink-3);
  font-size: var(--text-sm);
}

/* ---------- C4 sticky enquiry bar ---------- */

.bar {
  position: fixed;
  left: 50%;
  bottom: var(--space-md);
  z-index: 450;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.45rem 0.45rem 0.45rem var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--color-deep);
  color: var(--color-on-deep);
  box-shadow: 0 18px 40px -18px oklch(0% 0 0 / 0.5);
  transform: translate(-50%, 0);
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
}

.bar[hidden] {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 150%);
}

.bar__text {
  font-size: var(--text-sm);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bar .btn {
  border-radius: var(--radius-pill);
}

/* ---------- Footer (Ft3) ---------- */

.foot {
  background: var(--color-deep);
  color: var(--color-on-deep-2);
  font-size: var(--text-sm);
}

.foot a {
  color: var(--color-on-deep);
  text-decoration: none;
}

.foot a:hover {
  color: var(--color-on-deep);
  text-decoration: underline;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-2xl);
  padding-block: var(--space-3xl) var(--space-2xl);
}

.foot__brand img {
  height: 2.6rem;
  width: auto;
}

.foot__addr {
  margin-top: var(--space-md);
  font-style: normal;
  line-height: 1.7;
}

.foot h2 {
  margin-bottom: var(--space-sm);
  color: var(--color-on-deep);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li + li {
  margin-top: 0.45rem;
}

.foot li a {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid oklch(100% 0 0 / 0.12);
  font-size: var(--text-xs);
}

.foot__base ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.foot__base li + li {
  margin-top: 0;
}

.foot__rule {
  height: 3px;
  background: var(--color-brand-on-deep);
}

/* ---------- Additions: menu columns, groups, placeholders, prose tables ---------- */

.mega__col {
  min-width: 0;
}

.mega__head {
  margin-bottom: var(--space-xs);
  color: var(--color-ink-3);
  font-size: var(--text-xs);
  font-weight: 600;
}

.group + .group {
  margin-top: var(--space-2xl);
}

.group[hidden] {
  display: none;
}

.group__h {
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
}

img.ph {
  width: 38% !important;
  height: auto !important;
  margin: auto;
  opacity: 0.14;
  mix-blend-mode: normal !important;
}

.cat__img,
.product__img,
.detail__img,
.head__figure,
.line__img {
  display: grid;
  place-items: center;
}

.prose--flush {
  padding-block: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-ink);
}

.prose table {
  width: 100%;
  margin-top: var(--space-md);
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.prose th,
.prose td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: var(--rule);
  text-align: left;
  vertical-align: top;
  color: var(--color-ink-2);
}

.prose th {
  color: var(--color-ink);
  font-weight: 600;
}

.aside__links {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}

.aside__links li + li {
  margin-top: 0.5rem;
}

.aside__links a {
  color: var(--color-ink-2);
  text-decoration: none;
}

.aside__links a:hover,
.aside__links a[aria-current="page"] {
  color: var(--color-accent);
}

.aside--form .form {
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-md);
}

.aside--form {
  background: var(--color-paper);
}

.detail__features {
  margin: var(--space-md) 0 0;
  padding-left: 1.15rem;
  color: var(--color-ink-2);
}

.detail__features li + li {
  margin-top: 0.3rem;
}

.add .add__note {
  flex: 1 1 14rem;
  width: auto;
}

.list__foot {
  padding-top: var(--space-md);
}

.list__foot[hidden],
.empty[hidden] {
  display: none;
}

.line .field label {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
}

.line .input {
  min-height: 2.4rem;
}

.names--brands {
  columns: 4 9rem;
  color: var(--color-ink-2);
}

.line__name {
  color: var(--color-ink);
  text-decoration: none;
}

.line__name:hover {
  color: var(--color-accent);
}

.inventory__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-2xl) var(--space-3xl);
  align-items: center;
}

.inventory__grid .inventory__facts {
  grid-column: 1 / -1;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shelf a {
  display: block;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelf a:hover {
  color: var(--color-accent);
}

.shelf img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: var(--space-xs);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  mix-blend-mode: multiply;
}

.head .inventory__actions {
  margin-top: var(--space-lg);
}

/* ---------- Responsive ---------- */

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

  .logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav__links,
  .nav__phone {
    display: none;
  }

  .nav__menu {
    display: inline-flex;
  }

  .mega {
    display: none;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .head--split,
  .detail,
  .split,
  .ask__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .aside {
    position: static;
  }

  .inventory__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf {
    display: none;
  }

  .inventory__facts div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .line {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  }

  .line__img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .line__qty,
  .line__note {
    grid-column: 2 / -1;
  }

  .top__where {
    display: none;
  }
}

@media (max-width: 640px) {
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products,
  .form,
  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section__head {
    flex-direction: column;
    align-items: start;
  }

  .nav__enquiry-label {
    display: none;
  }

  .bar {
    left: var(--space-sm);
    right: var(--space-sm);
    justify-content: space-between;
    transform: none;
  }

  .bar[hidden] {
    transform: translateY(150%);
  }
}

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

  .top__list li:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 120ms !important;
    transition-property: opacity, background-color, border-color, color !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .top,
  .nav,
  .bar,
  .ask,
  .foot,
  .drawer,
  .scrim {
    display: none !important;
  }
}

/* ------------------------------------------------ colour bars -- */

.colour-bars {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 3fr 1fr;
  cursor: default;
  user-select: none;
}
.colour-bars > span:nth-child(1) {
  background: #c0c0c0;
}
.colour-bars > span:nth-child(2) {
  background: #c0c000;
}
.colour-bars > span:nth-child(3) {
  background: #00c0c0;
}
.colour-bars > span:nth-child(4) {
  background: #00c000;
}
.colour-bars > span:nth-child(5) {
  background: #c00000;
}
.colour-bars > span:nth-child(6) {
  background: #0000c0;
}
.colour-bars > span:nth-child(7) {
  background: #0000c0;
}
.colour-bars > span:nth-child(8) {
  background: #131313;
}
.colour-bars > span:nth-child(9) {
  background: #c00000;
}
.colour-bars > span:nth-child(10) {
  background: #131313;
}
.colour-bars > span:nth-child(11) {
  background: #00c0c0;
}
.colour-bars > span:nth-child(12) {
  background: #131313;
}
.colour-bars__note {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  margin: 0;
  padding: 1rem 1.5rem;
  background: #000;
  color: #fff;
  font: 600 clamp(1rem, 2.4vw, 1.5rem) / 1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
