/* ==========================================================================
   Unique Imports | Paper Industry Solutions
   Brand: navy + copper from the printed catalogue, on paper stock.
   Type: Besley (Clarendon lineage, display) + Archivo (body, labels, codes)
   ========================================================================== */

:root {
  /* Paper */
  --paper: oklch(0.979 0.007 80);
  --paper-2: oklch(0.952 0.014 76);
  --paper-3: oklch(0.925 0.018 74);
  --field: oklch(0.992 0.004 80);
  --rule: oklch(0.875 0.02 72);
  --rule-strong: oklch(0.76 0.025 70);

  /* Ink + brand */
  --ink: oklch(0.255 0.06 248);
  --ink-2: oklch(0.43 0.035 250);
  --navy: oklch(0.315 0.075 245);
  --navy-2: oklch(0.37 0.07 245);
  --navy-deep: oklch(0.235 0.055 248);
  --navy-line: oklch(0.42 0.06 245);
  --copper: oklch(0.635 0.105 52);
  --copper-ink: oklch(0.52 0.11 48);
  --copper-light: oklch(0.78 0.085 60);
  --on-navy: oklch(0.955 0.012 80);
  --on-navy-2: oklch(0.8 0.025 250);
  --error: oklch(0.5 0.15 30);
  --error-on-dark: oklch(0.8 0.1 35);

  /* Type */
  --font-display: "Besley", "Rockwell", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.38rem + 0.95vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.6rem + 2.2vw, 3.375rem);
  --step-4: clamp(2.75rem, 1.55rem + 5.1vw, 5.6rem);

  /* Space */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --max: 82rem;
  --section: clamp(4.5rem, 2.8rem + 6.5vw, 8.5rem);
  --header-h: 4.5rem;
  --radius: 6px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset / base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2.5px solid var(--copper);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: oklch(0.85 0.07 60); color: var(--ink); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

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

.js-only { display: none; }
.js .js-only { display: revert; }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Codes like "UI 028": the backbone of the catalogue */
.code {
  font-family: var(--font-body);
  font-weight: 650;
  font-stretch: 94%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--copper-ink);
  white-space: nowrap;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-2); }
.btn-quiet { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-quiet:hover { background: var(--paper-2); }
.btn-small { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--copper);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}
.text-link::after {
  content: "";
  width: 0.45em; height: 0.45em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  transition: transform 0.25s var(--ease-quart);
}
.text-link:hover { color: var(--copper-ink); }
.text-link:hover::after { transform: rotate(45deg) translate(2px, -2px); }
.text-link--on-dark { color: var(--on-navy); border-color: var(--copper-light); }
.text-link--on-dark:hover { color: var(--copper-light); }

/* Add-to-enquiry toggle (only exists with JS) */
.add { display: none; }
.js .add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  min-width: 5.5rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.js .add::before {
  content: "+";
  font-weight: 500;
  font-size: 1.15em;
  line-height: 1;
}
.js .add:hover { border-color: var(--navy); background: var(--paper-2); }
.js .add[data-state="on"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}
.js .add[data-state="on"]::before {
  content: "";
  width: 0.7em; height: 0.38em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -2px);
}
.js .add--text { min-width: 0; margin-top: auto; align-self: flex-start; }
.js .add--dark { color: var(--on-navy); border-color: oklch(0.55 0.05 245); }
.js .add--dark:hover { background: var(--navy-2); border-color: var(--on-navy-2); }
.js .add--dark[data-state="on"] { background: var(--copper-light); border-color: var(--copper-light); color: var(--navy-deep); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-color: var(--rule);
  box-shadow: 0 6px 18px -14px oklch(0.25 0.06 248 / 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 49px; height: auto; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font-weight: 750;
  font-stretch: 112%;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-ink);
  margin-top: 0.2rem;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.5rem;
  background: linear-gradient(var(--copper), var(--copper)) no-repeat left bottom / 0 1.5px;
  transition: color 0.2s, background-size 0.3s var(--ease-quart);
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--ink); background-size: 100% 1.5px; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; text-decoration-color: var(--copper); }

.enquiry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.enquiry-pill:hover { background: var(--paper-2); }
.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding-inline: 0.4rem;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.25s, color 0.25s;
}
.has-items .count { background: var(--copper-ink); color: var(--paper); }
.count.is-bumped { animation: bump 0.45s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.25); } 100% { transform: scale(1); } }

.menu-button { display: none; }

@media (max-width: 68rem) {
  .header-phone { display: none; }
}

@media (max-width: 60rem) {
  .header-inner { gap: 1rem; }
  .header-actions { margin-left: auto; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.9rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius);
    background: transparent;
    color: var(--navy);
    font-weight: 600;
  }
  .menu-button-bars, .menu-button-bars::before, .menu-button-bars::after {
    display: block;
    width: 1rem; height: 1.5px;
    background: currentColor;
    transition: transform 0.25s var(--ease-quart), opacity 0.2s;
  }
  .menu-button-bars { position: relative; }
  .menu-button-bars::before, .menu-button-bars::after { content: ""; position: absolute; left: 0; }
  .menu-button-bars::before { top: -5px; }
  .menu-button-bars::after { top: 5px; }
  .menu-button[aria-expanded="true"] .menu-button-bars { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-button-bars::before { transform: translateY(5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-button-bars::after { transform: translateY(-5px) rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -24px oklch(0.25 0.06 248 / 0.45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease-quart), transform 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease-quart), transform 0.35s var(--ease-out);
  }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
    padding-block: 0.5rem 1rem;
  }
  .js .site-nav a {
    display: block;
    padding-block: 0.9rem;
    font-size: 1.125rem;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    background: none;
  }
  .js .site-nav li:last-child a { border-bottom: 0; }

  /* No JS: nav simply wraps under the brand */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .site-nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  html:not(.js) .menu-button { display: none; }
}

/* Phones: the bottom action bar carries Call / WhatsApp / Enquiry */
@media (max-width: 48rem) {
  .enquiry-pill { display: none; }
}
@media (max-width: 22.5rem) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-button { padding-inline: 0.8rem; }
}
@media (max-width: 30rem) {
  .brand-tag { display: none; }
  .brand-name { font-size: 0.9375rem; }
  .brand-mark { width: 40px; }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, calc(var(--max) * 0.6))
    [split] minmax(0, calc(var(--max) * 0.4))
    [content-end] minmax(var(--gutter), 1fr)
    [full-end];
  row-gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.hero-copy {
  grid-column: content-start / split;
  align-self: center;
  padding-right: clamp(1.25rem, 3vw, 3rem);
}

.hero-title {
  font-size: min(5rem, 5.6vw);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--navy);
}
.hero-title .line { display: block; }
.hero-title .line--copper { color: var(--copper); }

.hero-lede {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
}

.hero-figure {
  grid-column: split / full-end;
  position: relative;
  min-height: 100%;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  min-height: clamp(18rem, 12rem + 18vw, 33rem);
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: var(--radius) 0 0 var(--radius);
}

.hero-clients {
  grid-column: content-start / content-end;
  display: flex;
  align-items: baseline;
  gap: 1.5rem 2.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-clients-label {
  flex: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-ink);
}
.client-roll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}
.client-roll li { white-space: nowrap; }
.client-roll li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 0.85rem 0.2em;
  border-radius: 50%;
  background: var(--copper);
  vertical-align: middle;
}

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: [full-start] var(--gutter) [content-start split] minmax(0, 1fr) [content-end] var(--gutter) [full-end]; }
  .hero-copy { grid-column: content-start / content-end; padding-right: 0; }
  .hero-title { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-figure { grid-column: full-start / full-end; }
  .hero-figure img { border-radius: 0; min-height: 15rem; max-height: 22rem; }
  .hero-clients { flex-direction: column; gap: 0.75rem; }
}

/* ---------- Section heads ---------- */

.section-head h2 {
  font-size: var(--step-3);
  color: var(--navy);
  max-width: 18ch;
}
.section-head p {
  margin-top: 1rem;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: end;
}
.section-head--split h2 { max-width: none; }
.section-head--split p { margin-top: 0; padding-bottom: 0.35rem; }
@media (max-width: 52rem) {
  .section-head--split { grid-template-columns: 1fr; }
}

/* ---------- Machine ---------- */

.machine {
  margin-top: calc(var(--section) * 0.7);
  padding-block: var(--section) calc(var(--section) * 0.85);
  background: var(--paper-2);
}

.machine-stage { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

.machine-figure {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.machine-svg {
  width: 100%;
  min-width: 54rem;
  height: auto;
  overflow: visible;
}

/* Drawing language: navy ink line on paper, copper is the stock / sheet */
.m-band { fill: transparent; transition: fill 0.35s var(--ease-quart); }
.m-band.is-hover { fill: oklch(0.935 0.018 74); }
.m-band.is-active { fill: oklch(0.915 0.026 70); }
.m-ground { stroke: var(--rule-strong); stroke-width: 1.5; }
.m-body, .m-roll, .m-gauge {
  fill: var(--paper);
  stroke: var(--navy);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.m-roll--small { fill: var(--paper); }
.m-line { fill: none; stroke: var(--navy); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.m-perf { fill: none; stroke: var(--navy); stroke-width: 1; stroke-dasharray: 2 3; }
.m-pipe { fill: none; stroke: var(--navy); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.m-hub { fill: var(--navy); }
.m-fabric { fill: none; stroke: var(--navy-line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.m-felt { stroke-dasharray: 5 4; }
.m-hood { fill: none; stroke: var(--rule-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.m-valve { fill: var(--navy); stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.m-reel { fill: var(--paper); stroke: var(--copper); stroke-width: 2.5; }
.m-ring { fill: none; stroke: oklch(0.85 0.04 62); stroke-width: 1; }
.m-hub--core { fill: var(--navy); }
.m-sample { fill: var(--paper); stroke: var(--copper); stroke-width: 1.2; }
.m-screen { fill: var(--navy); }
.m-web { fill: none; stroke: var(--copper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m-sample-path { fill: none; stroke: var(--copper); stroke-width: 1.5; stroke-dasharray: 3 5; }
.m-marker circle { fill: var(--paper); stroke: var(--copper); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.m-marker text { font: 650 14px/1 var(--font-body); fill: var(--copper-ink); transition: fill 0.3s; }
.m-marker.is-active circle { fill: var(--copper-ink); stroke: var(--copper-ink); }
.m-marker.is-active text { fill: var(--paper); }

.js .m-band, .js .m-stage, .js .m-marker { cursor: pointer; }
.js .m-band { pointer-events: all; }

/* Draw the stock line, then the sheet, when the drawing scrolls into view */
.js .m-web { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .m-sample-path { opacity: 0; }
.js .m-marker { opacity: 0; transition: opacity 0.5s var(--ease-quart); }
.js .is-drawn .m-web { stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s linear; }
.js .is-drawn .m-web--b { transition-duration: 0.8s; transition-delay: 0.5s; }
.js .is-drawn .m-web--sheet { transition: stroke-dashoffset 2.6s cubic-bezier(0.45, 0.05, 0.35, 1) 1.25s; }
.js .is-drawn .m-sample-path { opacity: 1; transition: opacity 0.6s 3.7s; }
.js .is-drawn .m-marker { opacity: 1; }
.js .is-drawn .m-marker[data-stage="2"] { transition-delay: 0.6s; }
.js .is-drawn .m-marker[data-stage="3"] { transition-delay: 1.4s; }
.js .is-drawn .m-marker[data-stage="4"] { transition-delay: 1.9s; }
.js .is-drawn .m-marker[data-stage="5"] { transition-delay: 2.5s; }
.js .is-drawn .m-marker[data-stage="6"] { transition-delay: 3.3s; }

.machine-hint {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}
@media (min-width: 54rem) { .js .machine-hint { display: none; } }

/* Tabs line up under the drawing like a scale */
.stage-tabs {
  margin-top: 1rem;
}
.js .stage-tabs {
  display: grid;
  grid-template-columns: 206fr 116fr 226fr 160fr 304fr 292fr;
  padding-inline: calc(8 / 1320 * 100%);
}
.stage-tabs [role="tab"] {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.85rem 0.6rem 0.5rem;
  border: 0;
  border-top: 2px solid var(--rule);
  background: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: left;
  transition: color 0.2s, border-color 0.2s;
}
.stage-tabs [role="tab"]:hover { color: var(--ink); border-top-color: var(--rule-strong); }
.stage-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-top: 3px solid var(--copper); padding-top: calc(0.85rem - 1px); }
.stage-tabs .num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5rem; height: 1.5rem;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  font-size: 0.8125rem;
  color: var(--copper-ink);
  font-variant-numeric: tabular-nums;
}
.stage-tabs [aria-selected="true"] .num { background: var(--copper-ink); border-color: var(--copper-ink); color: var(--paper); }

@media (max-width: 54rem) {
  .js .stage-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: 0;
    gap: 0 0.5rem;
  }
}
@media (max-width: 32rem) {
  .js .stage-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stage-panels { margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
.stage-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
html:not(.js) .stage-panel + .stage-panel { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.js .stage-panel[hidden] { display: none; }
.js .stage-panel.is-entering { animation: panel-in 0.5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(0.5rem); } }

.stage-text h3 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: var(--step-2);
  color: var(--navy);
}
.js .stage-text h3 .num { display: none; }
.stage-text h3 .num { font-family: var(--font-body); font-size: 0.6em; color: var(--copper-ink); }
.stage-text p { margin-top: 0.85rem; color: var(--ink-2); max-width: 42ch; }
.stage-text .text-link { margin-top: 1.25rem; }

.stage-products { border-top: 1px solid var(--rule-strong); }
.stage-products li {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.stage-products .name { font-weight: 550; color: var(--ink); line-height: 1.35; }
.stage-products small, .reg-name small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-2);
}

@media (max-width: 52rem) {
  .stage-panel { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .stage-products li { grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; }
  .stage-products .code { grid-column: 1; }
  .stage-products .name { grid-column: 1; grid-row: 2; }
  .stage-products .add { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Range ---------- */

.range { padding-top: var(--section); }

.family { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.family-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: start;
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}
.family-head h3 { font-size: var(--step-2); color: var(--navy); }
.family-head p { color: var(--ink-2); max-width: 44ch; }
.family-head .text-link { margin-top: 1rem; }

@media (max-width: 52rem) {
  .family-head { grid-template-columns: 1fr; }
}

/* Process control: specimens standing on a shelf line */
.specimens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.specimen { display: flex; flex-direction: column; }
.specimen-img {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(13rem, 9rem + 9vw, 19rem);
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--rule-strong);
  margin-bottom: 1.1rem;
}
.specimen-img img {
  max-height: 100%;
  width: auto;
}
.specimen h4 {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.specimen p { margin-top: 0.5rem; margin-bottom: 1.25rem; color: var(--ink-2); font-size: 1rem; }

@media (max-width: 64rem) {
  .specimens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .specimens { grid-template-columns: 1fr; }
  .specimen-img { height: 14rem; }
}

/* Testing: a spec table */
.instrument-table {
  width: 100%;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-collapse: collapse;
}
.instrument-table thead th {
  padding: 0 1rem 0.75rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
  border-bottom: 1.5px solid var(--rule-strong);
}
.instrument-table tbody th,
.instrument-table td {
  padding: 0.75rem 1.25rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}
.instrument-table tbody th {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--ink);
}
.inst { display: flex; align-items: center; gap: 1.25rem; }
.instrument-table tbody th img {
  width: 7.5rem;
  flex: none;
}
.instrument-table tbody th .code {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}
.instrument-table td { color: var(--ink-2); font-size: 1rem; }
.instrument-table td:nth-child(2) { color: var(--ink); width: 30%; }
.instrument-table td:last-child { padding-right: 0; text-align: right; width: 1%; }

@media (max-width: 52rem) {
  .instrument-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .instrument-table, .instrument-table tbody, .instrument-table tr { display: block; }
  .instrument-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 1rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .instrument-table tbody th, .instrument-table td { display: block; padding: 0; border: 0; }
  .instrument-table tbody th { grid-column: 1 / -1; }
  .instrument-table tbody th img { width: 6rem; }
  .instrument-table td:nth-child(2) { grid-column: 1; width: auto; padding-left: 7.25rem; }
  .instrument-table td:nth-child(3) { grid-column: 1; padding-left: 7.25rem; font-size: 0.9375rem; }
  .instrument-table td:last-child { grid-column: 2; grid-row: 2 / span 2; align-self: center; width: auto; }
}
@media (max-width: 30rem) {
  .instrument-table td:nth-child(2), .instrument-table td:nth-child(3) { padding-left: 0; }
}

/* Machine clothing: a swatch book on navy */
.family--clothing {
  margin-top: clamp(4rem, 3rem + 5vw, 7.5rem);
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  background: var(--navy);
  color: var(--on-navy);
}
.family--clothing .family-head { border-top-color: var(--copper-light); }
.family--clothing .family-head h3 { color: var(--on-navy); }
.family--clothing .family-head p { color: var(--on-navy-2); }

.swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
}
.swatch { grid-column: span 2; display: flex; flex-direction: column; }
.swatch--wide { grid-column: span 3; }
.swatch img {
  width: 100%;
  aspect-ratio: 303 / 173;
  object-fit: cover;
  border-radius: var(--radius);
}
.swatch--wide img { aspect-ratio: 460 / 143; }
.swatch h4 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--step-1);
  line-height: 1.2;
}
.swatch-sub {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--copper-light);
}
.props { margin-block: 1rem 1.5rem; color: var(--on-navy-2); font-size: 1rem; }
.props li { position: relative; padding-left: 1.25rem; }
.props li + li { margin-top: 0.3rem; }
.props li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.8em;
  width: 0.6rem; height: 2px;
  background: var(--copper-light);
}
.swatch .add { margin-top: auto; align-self: flex-start; }

@media (max-width: 64rem) {
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch, .swatch--wide { grid-column: span 1; }
  .swatch--wide img { aspect-ratio: 303 / 173; }
}
@media (max-width: 34rem) {
  .swatches { grid-template-columns: 1fr; }
}

/* Screens + pulp lab */
.also {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.also-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.also-item img { width: 100%; border-radius: var(--radius); }
.also-item h3 { font-size: var(--step-1); color: var(--navy); }
.also-item p { margin-top: 0.6rem; color: var(--ink-2); font-size: 1rem; }
.also-item .text-link { margin-top: 1rem; font-size: 1rem; }

@media (max-width: 64rem) {
  .also { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .also-item { grid-template-columns: 1fr; }
}

/* ---------- Register ---------- */

.register {
  margin-top: calc(var(--section) * 0.8);
  padding-block: var(--section);
  background: var(--paper-2);
}

.register-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.register-head h2 { font-size: var(--step-3); color: var(--navy); max-width: 16ch; }
.register-head p { margin-top: 1rem; color: var(--ink-2); max-width: 46ch; font-size: var(--step-1); line-height: 1.5; }

.download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.download small { display: block; font-weight: 400; font-size: 0.875rem; color: var(--ink-2); }
.download:hover { border-color: var(--navy); background: var(--paper); }
.download--on-dark { color: var(--on-navy); border-color: oklch(0.5 0.05 245); }
.download--on-dark small { color: var(--on-navy-2); }
.download--on-dark:hover { background: var(--navy-2); border-color: var(--on-navy-2); }

.register-tools {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--navy);
}
.search label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}
.search-field { position: relative; max-width: 36rem; }
.search-field .icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-2);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--field);
  font-size: 1.125rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-field input::placeholder { color: oklch(0.55 0.02 250); }
.search-field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px oklch(0.78 0.085 60 / 0.55);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.9375rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip span { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.chip[aria-pressed="true"] span { color: var(--on-navy-2); }

.register-count {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 5rem);
  margin-top: 1.5rem;
  align-items: start;
}
.register-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.register-grid.is-single .register-col:empty,
.register-col.is-empty { display: none; }

.reg-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}
.reg-table[hidden] { display: none; }
.reg-table caption {
  caption-side: top;
  padding: 0 0 0.6rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--step-1);
  color: var(--navy);
  border-bottom: 1.5px solid var(--rule-strong);
}
.reg-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.reg-table tr[hidden] { display: none; }
.reg-code { width: 8.5rem; font-weight: 650; font-stretch: 94%; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; color: var(--copper-ink); white-space: nowrap; }
.reg-name { padding-right: 1rem !important; font-weight: 500; line-height: 1.35; }
.reg-act { width: 1%; text-align: right; }
.reg-table .add { min-height: 2.5rem; min-width: 5.25rem; }
.reg-table tbody tr { transition: background-color 0.2s; }
.reg-table tbody tr:hover { background: oklch(0.935 0.017 75); }
mark {
  background: oklch(0.86 0.07 65 / 0.6);
  color: inherit;
  border-radius: 2px;
  padding-inline: 1px;
}

.register-empty {
  max-width: 40rem;
  padding: 2.5rem 0;
}
.register-empty-title { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); color: var(--navy); }
.register-empty p + p { margin-top: 0.5rem; color: var(--ink-2); }
.register-empty .btn { margin-top: 1.25rem; }

@media (max-width: 60rem) {
  .register-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .reg-code { width: 5.75rem; font-size: 0.9375rem; }
  .reg-table .add { min-width: 0; padding-inline: 0.75rem; }
}

/* ---------- Support ---------- */

.support { padding-block: var(--section); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 1.25rem;
  height: 2px;
  background: var(--copper);
  transform-origin: left center;
}
.steps li { position: relative; }
.step-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--copper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--copper-ink);
}
.steps h3 {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--navy);
}
.steps p { margin-top: 0.6rem; color: var(--ink-2); font-size: 1rem; max-width: 30ch; }

@media (max-width: 60rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 32rem) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; }
  .steps .step-num { grid-row: 1 / span 2; }
  .steps h3 { margin-top: 0.35rem; }
}

/* ---------- About ---------- */

.about { padding-bottom: var(--section); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 2px solid var(--navy);
}
.about h2 { font-size: var(--step-3); color: var(--navy); max-width: 13ch; }
.about-text p { color: var(--ink-2); max-width: 52ch; }
.about-text p:first-child { color: var(--ink); font-size: var(--step-1); line-height: 1.5; }
.about-text p + p { margin-top: 1rem; }
.about-figure { grid-column: 1 / -1; margin-top: 1rem; }
.about-figure img {
  width: 100%;
  aspect-ratio: 1055 / 263;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 52rem) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure img { aspect-ratio: 16 / 7; }
}

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

.enquiry {
  padding-block: var(--section);
  background: var(--navy);
  color: var(--on-navy);
}
.enquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.enquiry h2 { font-size: var(--step-3); max-width: 12ch; }
.enquiry-intro > p { margin-top: 1rem; color: var(--on-navy-2); font-size: var(--step-1); line-height: 1.5; max-width: 32ch; }

.contact-list {
  margin-top: 2.25rem;
  border-top: 1px solid oklch(0.45 0.05 245);
}
.contact-list div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid oklch(0.45 0.05 245);
}
.contact-list dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-light);
  padding-top: 0.2rem;
}
.contact-list dd { font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration-color: var(--copper-light); }
.contact-list a:hover { color: var(--copper-light); }
.enquiry-intro .download { margin-top: 2rem; }

/* The slip: a sheet of paper on the navy desk */
.slip {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 30px 60px -30px oklch(0.12 0.04 248 / 0.7);
}
.slip::before {
  /* perforated tear-off edge */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 10px;
  background: radial-gradient(circle at 9px 0, transparent 5px, var(--paper) 5.5px) 0 0 / 18px 10px repeat-x;
}
.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy);
}
.slip-head h3 { font-size: var(--step-2); color: var(--navy); }
.slip-date { font-size: 0.9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.slip-items { margin: 1.5rem 0 0; padding: 0; border: 0; min-width: 0; }
.slip-items legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}
.slip-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px dashed var(--rule-strong);
  animation: slip-in 0.4s var(--ease-out);
}
@keyframes slip-in { from { opacity: 0; transform: translateX(-0.5rem); } }
.slip-list .code { font-size: 0.9375rem; }
.slip-list .name { font-weight: 550; line-height: 1.3; }
.qty { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--ink-2); }
.qty input {
  width: 3.75rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.5rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--field);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.qty input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px oklch(0.78 0.085 60 / 0.55); }
.remove {
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
}
.remove:hover { background: var(--paper-2); color: var(--error); }
.remove svg { width: 1.1rem; height: 1.1rem; }

.slip-empty {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 1rem;
}
.slip-empty[hidden] { display: none; }
.slip-clear {
  margin-top: 0.6rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.slip-clear:hover { color: var(--error); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
  margin-top: 1.75rem;
}
.field--wide { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--field);
  font-size: 1.0625rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.58 0.02 250); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px oklch(0.78 0.085 60 / 0.55);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { min-height: 0; font-size: 0.9rem; color: var(--error); font-weight: 500; }
.field-error:not(:empty) { margin-top: 0.35rem; }

.slip-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.slip-actions .btn { flex: 1 1 12rem; }
.slip-note { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-2); }
.slip-note.is-sent { color: var(--navy); font-weight: 550; }

@media (max-width: 60rem) {
  .enquiry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .field-grid { grid-template-columns: 1fr; }
  .slip-list li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .slip-list .code { grid-column: 1 / -1; }
  .qty span { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-2);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}
.footer-brand img { width: 60px; }
.footer-brand .brand-name { display: block; margin-top: 1rem; color: var(--on-navy); }
.footer-brand .brand-tag { display: block; color: var(--copper-light); }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1rem;
}
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--copper-light); }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.38 0.05 248);
  font-size: 0.875rem;
}
@media (max-width: 52rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile action bar ---------- */

.action-bar { display: none; }
@media (max-width: 48rem) {
  body { padding-bottom: 4.25rem; }
  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper);
    border-top: 1px solid var(--rule-strong);
    box-shadow: 0 -10px 24px -18px oklch(0.25 0.06 248 / 0.45);
  }
  .action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.75rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
  }
  .action-bar a + a { border-left: 1px solid var(--rule); }
  .action-bar a:active { background: var(--paper-2); }
}

/* ---------- Load + reveal motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line,
  .js .hero-lede,
  .js .hero-actions,
  .js .hero-clients {
    animation: rise 0.9s var(--ease-out) both;
  }
  .js .hero-title .line--copper { animation-delay: 0.1s; }
  .js .hero-lede { animation-delay: 0.22s; }
  .js .hero-actions { animation-delay: 0.32s; }
  .js .hero-clients { animation-delay: 0.5s; }
  .js .hero-figure img { animation: unveil 1.2s var(--ease-out) 0.1s both; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s var(--ease-quart), transform 0.9s var(--ease-out);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .js .steps::before { transform: scaleX(0); transition: transform 1.4s var(--ease-out) 0.2s; }
  .js .steps.is-visible::before { transform: scaleX(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.6em); }
}
@keyframes unveil {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .m-web { stroke-dashoffset: 0; }
  .js .m-marker, .js .m-sample-path { opacity: 1; }
}
