/* ==========================================================================
   KarkhanaX — shared stylesheet
   Order: 1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Utilities · 6 Pages
   Mobile-first. Breakpoints (custom properties can't be used in media queries,
   so they are written literally):  48em = 768px (tablet)  ·  64em = 1024px (desktop)
   Class naming: BEM — .block, .block__element, .block--modifier. State: .is-*, [hidden], [aria-*].
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* Brand colours (KarkhanaX guidelines) */
  --color-forge: #0F3D3E;          /* Forge Teal — primary, ~30% */
  --color-tempered: #2E6F73;       /* Tempered Teal — primary, ~12% */
  --color-sandstone: #EADCC8;      /* Sandstone — primary background, ~40% */
  --color-laser: #C6601F;          /* Laser Orange — accent ~8%: rules, focus, highlights. Never text on Forge; large text only on Sandstone */
  --color-quench: #7FB3B8;         /* Quench Teal — secondary, ~6% */
  --color-carbon: #0A0F14;         /* Carbon Black — body text, ~4% */

  /* Derived tints (web only, documented in README) */
  --color-sandstone-light: #F6EFE5; /* small text on Tempered Teal (5.1:1); Sandstone itself is 4.3:1 there */
  --color-sandstone-deep: #DCCBB2;  /* placeholder tint, input fill on hover, quiet rules */
  --color-error: #9C3A0B;           /* deep Laser Orange for error text on Sandstone (5.2:1) */
  --color-field-active: #FFFFFF;    /* input fill on hover/focus/error */
  --color-rule: rgb(15 61 62 / 0.35);          /* quiet 1px rules on Sandstone */
  --color-rule-on-dark: rgb(246 239 229 / 0.45); /* quiet rules, outlines and link underlines on Forge/Tempered */
  --tint-hover: rgb(15 61 62 / 0.08);            /* hover fill on Sandstone */
  --tint-hover-on-dark: rgb(246 239 229 / 0.14); /* hover fill on Forge/Tempered/Quench panels */
  --color-label-bg: var(--color-sandstone-light); /* backing for the PHOTO shot-list captions */
  /* Molten brand gradient (Sandstone, #D9A076, #FF984C), used only on the primary call-to-action buttons. Carbon text on it is 9:1 or better. */
  --gradient-molten-button: linear-gradient(100deg, var(--color-sandstone) 0%, #D9A076 55%, #FF984C 100%);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; /* spec labels and numbers only */

  /* Gradients */
  --gradient-quench: radial-gradient(farthest-corner at 100% 0%, var(--color-quench) 0%, var(--color-tempered) 72%, var(--color-forge) 100%);


  /* Fonts. To switch to the brand family FreightNeo Pro, add the client's
     Adobe Fonts kit <link> in each page <head>; these stacks pick it up first. */
  --font-body: "freight-neo-pro", "Alegreya Sans", system-ui, sans-serif;
  --font-display: "freight-neo-condensed-pro", "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --font-hindi: "Mukta", var(--font-body); /* for any Hindi copy; load Mukta when it is used */

  /* Type scale (fluid; 360px → 1440px) */
  --text-sm: 0.9375rem;                                        /* caption, meta */
  --text-base: 1.125rem;                                       /* body (Medium) */
  --text-md: 1.25rem;                                          /* lead, card titles */
  --text-lg: clamp(1.5rem, 1.33rem + 0.74vw, 2rem);            /* subheading (Medium Italic) */
  --text-xl: clamp(1.75rem, 1.45rem + 1.33vw, 2.75rem);        /* section heading (Bold) */
  --text-2xl: clamp(2.25rem, 1.75rem + 2.22vw, 3.75rem);       /* page title (Book) */
  --text-display: clamp(3rem, 2rem + 4.44vw, 6rem);            /* display (Cnd Bold caps) */
  --text-number: clamp(4.5rem, 3.17rem + 5.93vw, 8.5rem);      /* chapter numbers (Light) */

  --leading-tight: 0.9;   /* display + page title (90%) */
  --leading-snug: 1.12;   /* subheading (112%) */
  --leading-body: 1.45;   /* body on screen; print spec is 112%, opened up for 18px reading */

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: clamp(3.5rem, 2.5rem + 4.44vw, 7rem);
  --gutter: clamp(1rem, 0.5rem + 2.22vw, 2.5rem);
  --container: 90rem; /* 1440px */
  --measure: 66ch;

  /* Shape */
  --radius: 8px;
  --border-width: 2px;
  --border: var(--border-width) solid var(--color-forge);
  --rule-width: 2px; /* Laser Orange divider rules */
  --shadow-lift: 0 10px 24px -14px rgb(10 15 20 / 0.45);

  /* Focus (switched to Sandstone on dark surfaces, see .surface-dark) */
  --focus-color: var(--color-laser);

  /* Layers */
  --z-skip: 100;
  --z-nav: 20;

  /* Motion */
  /* Motion tokens: the transitions.dev shared scale. Reference these, never raw numbers. */
  --duration-stagger: 40ms;      /* per-item stagger offset */
  --duration-micro: 80ms;        /* tooltip/path delay, shake segment, large stagger */
  --duration-quick: 150ms;       /* closes, text swap, hover colour changes */
  --duration-fast: 250ms;        /* opens, icon swap, position and arrow nudges */
  --duration-medium: 350ms;      /* panel / toast close */
  --duration-slow: 400ms;
  --duration-very-slow: 500ms;   /* emphasis moments, text reveal, success check */
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);   /* open + close, slide, resize, position change */
  --ease-in-out: ease-in-out;
  --ease-out: ease-out;
  --ease-linear: linear;         /* spinners and loops */
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
  --distance-micro: 4px;
  --distance-small: 6px;
  --distance-base: 8px;
  --distance-medium: 12px;       /* text reveal */
  --scale-large: 0.96;
  --scale-medium: 0.97;          /* open from */
  --scale-small: 0.98;
  --scale-tiny: 0.99;            /* close to */
  --blur-small: 2px;
  --blur-medium: 3px;
}

/* 2. BASE ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-5);
  scrollbar-color: var(--color-tempered) var(--color-sandstone-deep);
  -webkit-tap-highlight-color: var(--tint-hover);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-sandstone);
  color: var(--color-carbon);
  font-family: var(--font-body);
  font-weight: 500; /* brand body = Medium */
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-variant-numeric: lining-nums;
  caret-color: var(--color-laser);
  touch-action: manipulation;
}

@media (pointer: fine) { html { overscroll-behavior: none; } }

::selection { background: var(--color-quench); color: var(--color-carbon); }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h2 { font-size: var(--text-xl); font-weight: 700; line-height: 1.1; }
h3 { font-size: var(--text-md); font-weight: 700; line-height: 1.2; }
p, ul, ol, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-laser);
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out);
}
a:hover { text-decoration-color: currentColor; }

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

button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
button { cursor: pointer; }

/* 3. LAYOUT ================================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

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

/* Dark surfaces: Forge / Tempered panels */
.surface-dark { background-color: var(--color-forge); color: var(--color-sandstone); --focus-color: var(--color-sandstone); }
.surface-tempered { background-color: var(--color-tempered); color: var(--color-sandstone-light); --focus-color: var(--color-sandstone-light); }

/* 4. COMPONENTS ============================================================ */

/* --- Logo (sprite: assets/logo/logo.svg) --------------------------------- */
.logo { display: block; height: auto; }
.logo--reversed { --logo-ink: var(--color-sandstone); --logo-accent: var(--color-sandstone); --logo-mark: var(--color-sandstone); }

/* --- Icon (sprite: assets/icons/icons.svg) -------------------------------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Button --------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: var(--space-2) var(--space-5);
  border: var(--border-width) solid var(--color-forge);
  border-radius: var(--radius);
  background: var(--color-forge);
  color: var(--color-sandstone);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration-quick) var(--ease-smooth-out), border-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out);
}
.button:hover { background: var(--color-carbon); border-color: var(--color-carbon); }
.button .icon { transition: transform var(--duration-fast) var(--ease-smooth-out); }
.button:hover .icon--arrow-right { transform: translateX(3px); }
.button--light { background: var(--color-sandstone); border-color: var(--color-sandstone); color: var(--color-forge); }
.button--light:hover { background: var(--color-sandstone-light); border-color: var(--color-sandstone-light); color: var(--color-carbon); }
.button--outline { background: transparent; border-color: currentColor; color: inherit; }
.button--outline:hover { background: var(--tint-hover); border-color: currentColor; }
.surface-dark .button--outline:hover, .surface-tempered .button--outline:hover, .cta-band .button--outline:hover { background: var(--tint-hover-on-dark); }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.button[aria-busy="true"] { cursor: progress; }
.button__spinner { display: none; }
.button[aria-busy="true"] .button__spinner { display: block; animation: spin 0.9s var(--ease-linear) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* --- Text link with arrow ----------------------------------------------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  font-weight: 700;
}
.arrow-link .icon { transition: transform var(--duration-fast) var(--ease-smooth-out); }
.arrow-link:hover .icon { transform: translateX(3px); }

/* --- Type roles ----------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  /* On the narrowest phones the size follows the screen, so a long word ("Institutional", or a long service name
     typed in the admin) still fits; break-word is the last resort for a word no size can fit. */
  font-size: min(var(--text-display), 12vw);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
}
.page-title { font-size: var(--text-2xl); font-weight: 400; line-height: var(--leading-tight); letter-spacing: -0.01em; }
.subheading {
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--color-tempered);
  max-width: 34ch;
}
.surface-dark .subheading { color: var(--color-quench); }
.lead { font-size: var(--text-md); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-4); }
.caption { font-size: var(--text-sm); }
.block-title { font-size: var(--text-lg); font-weight: 700; line-height: 1.15; }
.price { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* --- Site header ---------------------------------------------------------- */
.site-header { position: relative; z-index: var(--z-nav); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 4.5rem;
  padding-block: var(--space-3);
}
.site-header__logo { display: block; padding-block: var(--space-2); }
.site-header__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  border: var(--border-width) solid var(--color-rule-on-dark);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-sandstone);
  font-weight: 700;
}
.site-header__toggle:hover { border-color: var(--color-sandstone); }
.site-header__toggle .icon--close, .site-header__toggle[aria-expanded="true"] .icon--menu { display: none; }
.site-header__toggle[aria-expanded="true"] .icon--close { display: block; }
.site-nav__list { display: flex; flex-direction: column; gap: var(--space-1); }
.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: var(--space-2);
  font-weight: 700;
  text-decoration-color: transparent;
}
.site-nav__link:hover { text-decoration-color: var(--color-sandstone); }
.site-nav__link[aria-current="page"] { text-decoration-color: var(--color-laser); text-decoration-thickness: 3px; }
.site-nav__cta { margin-top: var(--space-3); }

/* Mobile: nav is a panel below the bar (collapsed only when JS is running) */
@media (max-width: 47.99em) {
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; padding-bottom: var(--space-4); }
  .js .site-nav:not(.is-open) { display: none; }
}
.no-js .site-header__toggle { display: none; }

@media (min-width: 48em) {
  .site-header__toggle { display: none; }
  .site-nav__list { flex-direction: row; align-items: center; gap: var(--space-2); }
  .site-nav__cta { margin: 0 0 0 var(--space-3); }
}

/* --- Breadcrumb ----------------------------------------------------------- */
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin-right: var(--space-2); opacity: 0.7; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration-color: var(--color-rule-on-dark); }
.breadcrumb a:hover { text-decoration-color: currentColor; }

/* --- Crumb bar (product page) ---------------------------------------------- */
.crumb-bar { padding-block: var(--space-4); }

/* --- Page head (catalogue, bulk) ------------------------------------------ */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr); } /* minmax(0, …): a long title or breadcrumb can never widen the page */
.page-head__panel { padding-block: var(--space-7) var(--space-8); }
.page-head__panel .breadcrumb { margin-bottom: var(--space-7); }
.page-head__intro { display: grid; gap: var(--space-4); align-content: end; padding-block: var(--space-7); }
@media (min-width: 64em) {
  .page-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .page-head__panel { padding-block: var(--space-8) var(--space-9); padding-right: var(--space-8); }
  .page-head__intro { position: relative; padding: var(--space-8) var(--gutter) var(--space-9) var(--space-8); }
  .page-head__intro::before { content: ""; position: absolute; left: var(--space-6); top: 0; bottom: var(--space-8); width: var(--rule-width); background: var(--color-rule); }
}

/* --- Media + image placeholder -------------------------------------------- */
/* .media owns ratio + crop. Swap the .img-placeholder div for <img>/<picture>; nothing else changes. */
.media {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-sandstone-deep);
}
.media > img, .media > picture, .media > picture > img { width: 100%; height: 100%; object-fit: cover; }
/* Product photos: the whole picture is shown on a white mat (never cut), whatever its shape. */
.media--contain { background: var(--color-field-active); }
.media--contain > img { object-fit: contain; }
.img-placeholder {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: var(--space-3);
  background: var(--color-sandstone-deep);
}
.img-placeholder--quench { background: var(--color-quench); }
.img-placeholder span {
  max-width: 100%;
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
  background: var(--color-label-bg);
  color: var(--color-forge);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* --- Chapter (numbered section with Tempered Teal sidebar) --------------- */
.chapter { display: grid; }
.chapter__aside { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-6) var(--gutter); }
.chapter__number {
  font-weight: 300;
  font-size: var(--text-number);
  line-height: 0.8;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.chapter__aside > * { container-type: inline-size; }
.chapter__title {
  font-family: var(--font-display);
  /* Scales down with its column so a long single word ("Leadership") never runs past the sidebar. */
  font-size: min(var(--text-xl), 17cqi);
  overflow-wrap: break-word;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  color: var(--color-sandstone);
}
.chapter__body { display: grid; gap: var(--space-7); padding: var(--space-7) var(--gutter) var(--space-8); min-width: 0; }
.chapter__intro { display: grid; gap: var(--space-4); }
@media (min-width: 64em) {
  /* --chapter-inset lines the sidebar text up with the page container. The sidebar is at least that inset plus
     16rem wide, so on very wide screens the growing inset never squeezes the number and title out of their column. */
  .chapter { --chapter-inset: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); grid-template-columns: minmax(calc(var(--chapter-inset) + 16rem), 3fr) 9fr; }
  .chapter__aside { padding: var(--space-section) var(--space-6) var(--space-7) var(--chapter-inset); }
  .chapter__aside > * { position: sticky; top: var(--space-6); }
  .chapter__body { position: relative; padding: var(--space-section) var(--chapter-inset) var(--space-8) var(--space-8); }
  .chapter__body::before { content: ""; position: absolute; left: var(--space-6); top: var(--space-section); bottom: var(--space-8); width: var(--rule-width); background: var(--color-rule); }
  .chapter__intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-7); align-items: start; }
}

/* --- Category index (home) ------------------------------------------------ */
.category-index { border-top: var(--rule-width) solid var(--color-forge); }
.category-index__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-rule);
}
.category-index__name { font-size: var(--text-md); font-weight: 700; }
.category-index__name a { text-decoration-color: transparent; }
.category-index__name a::after { content: ""; position: absolute; inset: 0; }
.category-index__item:hover .category-index__name a { text-decoration-color: var(--color-laser); }
.category-index__desc { grid-column: 1; color: var(--color-forge); }
.category-index__meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: var(--text-sm); color: var(--color-forge); }
.category-index__meta .price { display: block; font-size: var(--text-base); font-weight: 700; color: var(--color-carbon); }
.category-index__arrow { display: none; }
@media (min-width: 48em) {
  .category-index__item { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 9rem 2rem; align-items: center; }
  .category-index__desc { grid-column: 2; }
  .category-index__meta { grid-column: 3; grid-row: 1; }
  .category-index__arrow { display: block; grid-column: 4; color: var(--color-laser); transition: transform var(--duration-fast) var(--ease-smooth-out); }
  .category-index__item:hover .category-index__arrow { transform: translateX(4px); }
}

/* --- Product card + grid --------------------------------------------------- */
.product-grid { display: grid; gap: var(--space-6) var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48em) { .product-grid { gap: var(--space-7) var(--space-5); /* auto-fill keeps empty tracks, so one or two products stay card-sized instead of stretching across the row; at most 4 columns. */
  grid-template-columns: repeat(auto-fill, minmax(max(13rem, calc((100% - 3 * var(--space-5)) / 4)), 1fr)); } }
.product-card { position: relative; display: grid; gap: var(--space-2); align-content: start; }
.product-card__media { margin-bottom: var(--space-2); transition: border-color var(--duration-quick) var(--ease-smooth-out), box-shadow var(--duration-quick) var(--ease-smooth-out); }
.product-card:hover .product-card__media { border-color: var(--color-laser); box-shadow: var(--shadow-lift); }
.product-card__media > img { transition: transform var(--duration-slow) var(--ease-smooth-out); }
.product-card:hover .product-card__media > img { transform: scale(1.06); }
.product-card__title { font-size: clamp(1.0625rem, 1rem + 0.28vw, 1.25rem); line-height: 1.2; overflow-wrap: break-word; }
.product-card__link { text-decoration-color: transparent; }
.product-card__link::after { content: ""; position: absolute; inset: 0; }
.product-card:hover .product-card__link { text-decoration-color: var(--color-laser); }
.product-card__meta { font-size: var(--text-sm); color: var(--color-forge); }
.product-card__price { font-weight: 700; }

/* --- Spec list (key facts; definition list) -------------------------------- */
.spec-list { border-top: var(--rule-width) solid currentColor; }
.spec-list__row { display: grid; grid-template-columns: minmax(7rem, 2fr) 3fr; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--color-rule); }
.spec-list dt { color: var(--color-forge); font-size: var(--text-sm); padding-top: 0.15em; }
.spec-list dd { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.spec-list__note { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--color-tempered); }
.spec-list__note abbr { text-decoration: none; }
.surface-tempered .spec-list__row { border-bottom-color: var(--color-rule-on-dark); }
.surface-tempered .spec-list dt { color: var(--color-sandstone-light); }

/* --- Steps (ordered process) ------------------------------------------------ */
.steps { display: grid; gap: 0 var(--space-6); counter-reset: step; }
.steps__item { display: grid; align-content: start; grid-template-columns: 3rem 1fr; gap: var(--space-1) var(--space-4); padding-block: var(--space-4); border-top: var(--rule-width) solid var(--color-laser); }
.steps__number { grid-row: span 2; font-weight: 300; font-size: 2rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.steps__title { font-size: var(--text-base); }
.steps__text { color: inherit; }
@media (min-width: 48em) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Audience list --------------------------------------------------------- */
.audience-list__item { display: grid; gap: var(--space-1) var(--space-6); padding-block: var(--space-5); border-bottom: 1px solid var(--color-rule); }
.audience-list__item:first-child { border-top: var(--rule-width) solid var(--color-forge); }
.audience-list__name { font-size: var(--text-md); }
@media (min-width: 48em) { .audience-list__item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: center; } }

/* --- CTA band --------------------------------------------------------------- */
.cta-band { background: var(--gradient-quench); color: var(--color-sandstone); --focus-color: var(--color-sandstone); }
.cta-band__inner { display: grid; gap: var(--space-5); justify-items: start; padding-block: var(--space-section); }
.cta-band__title { font-family: var(--font-display); font-size: var(--text-display); line-height: var(--leading-tight); text-transform: uppercase; max-width: 16ch; }
.cta-band__text { font-size: var(--text-md); max-width: 46ch; }

/* --- Site footer ------------------------------------------------------------ */
.site-footer { padding-block: var(--space-8) var(--space-6); }
.site-footer__grid { display: grid; gap: var(--space-7); }
.site-footer__brand { display: grid; gap: var(--space-4); align-content: start; max-width: 28rem; }
.site-footer__title { font-size: var(--text-base); margin-bottom: var(--space-3); color: var(--color-quench); }
.site-footer__list { display: grid; gap: var(--space-1); }
.site-footer__list a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; text-decoration-color: var(--color-rule-on-dark); }
.site-footer__list a:hover { text-decoration-color: var(--color-sandstone); }
.site-footer__address { font-style: normal; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-8); padding-top: var(--space-5); border-top: var(--rule-width) solid var(--color-rule-on-dark); font-size: var(--text-sm); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 4fr repeat(3, 2.5fr); } .site-footer__brand { grid-column: auto; } }

/* --- Form field ------------------------------------------------------------- */
.field { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.field__label { font-weight: 700; }
.field__optional { font-weight: 500; color: var(--color-forge); }
.field__hint { font-size: var(--text-sm); color: var(--color-forge); }
.field__control {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  border: var(--border);
  border-radius: var(--radius);
  background-color: var(--color-sandstone-light);
  color: var(--color-carbon);
  transition: border-color var(--duration-quick) var(--ease-smooth-out), background-color var(--duration-quick) var(--ease-smooth-out);
}
.field__control::placeholder { color: var(--color-forge); opacity: 1; }
.field__control:hover { background-color: var(--color-field-active); }
.field__control:focus-visible { outline-offset: 1px; background-color: var(--color-field-active); }
textarea.field__control { min-height: 9rem; resize: vertical; line-height: var(--leading-body); }
.field__select { position: relative; }
.field__select select { appearance: none; padding-right: var(--space-7); }
.field__select .icon { position: absolute; right: var(--space-3); top: 50%; translate: 0 -50%; pointer-events: none; color: var(--color-forge); }
.brand-select > select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-select > .icon { display: none; }
.brand-select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3rem;
  padding: var(--space-2) var(--space-7) var(--space-2) var(--space-3);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-sandstone-light);
  color: var(--color-carbon);
  text-align: left;
  cursor: pointer;
}
.brand-select__button::after {
  content: "";
  position: absolute;
  right: var(--space-3);
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--color-forge);
  border-bottom: 2px solid var(--color-forge);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.brand-select__button:hover { background: var(--color-field-active); }
.brand-select__button:focus-visible,
.brand-select__button[aria-expanded="true"] { border-color: var(--color-laser); outline: 3px solid var(--color-laser); outline-offset: 1px; }
.brand-select__menu {
  position: absolute;
  z-index: var(--z-nav);
  top: calc(100% + var(--space-1));
  left: 0;
  right: 0;
  display: grid;
  max-height: 16rem;
  overflow-y: auto;
  padding: var(--space-1);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-sandstone-light);
  box-shadow: var(--shadow-lift);
  scrollbar-width: none;
}
.brand-select__menu::-webkit-scrollbar { display: none; }
.brand-select__option {
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-bottom: 1px solid var(--color-rule);
  background: transparent;
  color: var(--color-carbon);
  text-align: left;
  cursor: pointer;
}
.brand-select__option:last-child { border-bottom: 0; }
.brand-select__option:hover,
.brand-select__option:focus-visible,
.brand-select__option[aria-selected="true"] { background: var(--color-forge); color: var(--color-sandstone); outline: 0; }
.field__control[type="file"] { padding: var(--space-2); }
.field__control[type="file"]::file-selector-button {
  margin-right: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border: 0;
  border-radius: 6px;
  background: var(--color-forge);
  color: var(--color-sandstone);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.field__control[aria-invalid="true"] { border-color: var(--color-error); background-color: var(--color-field-active); }
.field__error { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--color-error); font-weight: 700; font-size: var(--text-sm); }
.field__error .icon { margin-top: 0.1em; }

.check { display: flex; gap: var(--space-3); align-items: flex-start; min-height: 2.75rem; padding-block: var(--space-2); cursor: pointer; font-weight: 700; }
.check input { flex: none; width: 1.375rem; height: 1.375rem; margin: 0.1em 0 0; accent-color: var(--color-forge); cursor: pointer; }
.check__hint { display: block; font-weight: 500; font-size: var(--text-sm); color: var(--color-forge); }

/* --- Alert (error summary, submit error) ------------------------------------ */
.alert { display: flex; gap: var(--space-3); padding: var(--space-4); border: var(--border-width) solid var(--color-error); border-radius: var(--radius); background: var(--color-sandstone-light); color: var(--color-carbon); }
.alert .icon { color: var(--color-error); margin-top: 0.15em; }
.alert__title { font-weight: 700; color: var(--color-error); }
.alert ul { margin-top: var(--space-2); padding-left: var(--space-5); }

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

/* 6. PAGES ================================================================= */

/* --- Home: process ---------------------------------------------------------- */
.process__facility { display: grid; gap: var(--space-5); }
@media (min-width: 64em) { .process__facility { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }

/* --- Catalogue -------------------------------------------------------------- */
.catalogue { display: grid; }
.catalogue__filters { padding: var(--space-6) var(--gutter); }
.filter { display: grid; gap: var(--space-5); }
.filter .field__label, .filter__legend { color: var(--color-sandstone-light); font-weight: 700; }
.filter .field__control { border-color: var(--color-sandstone-light); }
.filter input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.filter__legend { padding: 0; margin-bottom: var(--space-2); }
.filter__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.filter__options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter__option { position: relative; }
.filter__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.filter__option label {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: var(--border-width) solid var(--color-rule-on-dark);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  transition: background-color var(--duration-quick) var(--ease-smooth-out), border-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out);
}
.filter__option label:hover { border-color: var(--color-sandstone-light); background: var(--tint-hover-on-dark); }
.filter__option input:checked + label { background: var(--color-sandstone-light); border-color: var(--color-sandstone-light); color: var(--color-forge); }
.filter__option input:focus-visible + label { outline: 3px solid var(--color-sandstone-light); outline-offset: 3px; }
.filter__count { font-weight: 500; font-variant-numeric: tabular-nums; }
.no-js .catalogue__filters { display: none; }
@media (max-width: 63.99em) {
  .filter__options { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding: var(--space-1) var(--gutter) var(--space-3); scrollbar-width: thin; }
  .filter__option { flex: none; }
}
.catalogue__results { display: grid; gap: var(--space-6); align-content: start; padding: var(--space-6) var(--gutter) var(--space-section); min-width: 0; }
.catalogue__status { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between; padding-bottom: var(--space-4); border-bottom: var(--rule-width) solid var(--color-forge); }
.catalogue__count { font-weight: 700; font-variant-numeric: tabular-nums; }
.catalogue__empty { display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-7) var(--space-6); border: var(--border-width) dashed var(--color-forge); border-radius: var(--radius); }
.catalogue__note { font-size: var(--text-sm); color: var(--color-forge); max-width: var(--measure); }
@media (min-width: 64em) {
  /* The filter column is at least the page inset plus 17rem, so on very wide screens the growing inset never squeezes
     the filters (same rule as .chapter). */
  .catalogue { --catalogue-inset: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); grid-template-columns: minmax(calc(var(--catalogue-inset) + 17rem), 3fr) minmax(0, 9fr); }
  .catalogue__filters { padding: var(--space-7) var(--space-6) var(--space-7) var(--catalogue-inset); }
  .filter { position: sticky; top: var(--space-5); }
  .filter__options { flex-direction: column; flex-wrap: nowrap; }
  .catalogue__results { position: relative; padding: var(--space-7) var(--catalogue-inset) var(--space-section) var(--space-8); }
  .catalogue__results::before { content: ""; position: absolute; left: var(--space-6); top: var(--space-7); bottom: var(--space-section); width: var(--rule-width); background: var(--color-rule); }
}

/* --- Product detail --------------------------------------------------------- */
.product-hero { display: grid; gap: var(--space-7); padding-block: var(--space-7); }
.product-hero__gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-hero__gallery > :first-child { grid-column: 1 / -1; }
.product-hero__info { display: grid; gap: var(--space-5); align-content: start; }
.product-hero__price { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-block: var(--rule-width) solid var(--color-forge); }
.product-hero__amount { font-size: var(--text-xl); font-weight: 700; line-height: 1.1; }
.product-hero__amount small { font-size: var(--text-md); font-weight: 500; }
.product-detail { display: grid; gap: var(--space-7); padding-bottom: var(--space-section); }
.contents-list { display: grid; gap: 0 var(--space-6); }
.contents-list li { display: flex; gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--color-rule); }
.contents-list .icon { color: var(--color-tempered); margin-top: 0.15em; }
.related { display: grid; gap: var(--space-6); padding-bottom: var(--space-section); }
.related__head { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; align-items: end; }
@media (min-width: 48em) { .contents-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  .product-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); }
  .product-hero__info { position: sticky; top: var(--space-5); }
  .product-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
}

/* --- Bulk orders ------------------------------------------------------------- */
.quote { display: grid; }
.quote__main { display: grid; gap: var(--space-6); align-content: start; padding: var(--space-7) var(--gutter) var(--space-section); min-width: 0; }
.quote__aside { display: grid; gap: var(--space-7); align-content: start; padding: var(--space-7) var(--gutter); }
.quote__aside h2 { margin-bottom: var(--space-4); font-size: var(--text-md); color: var(--color-sandstone-light); }
.quote__aside .steps__item { border-top-color: var(--color-rule-on-dark); }
.quote__contact { display: grid; gap: var(--space-1); }
.quote__contact a { display: inline-flex; gap: var(--space-2); align-items: center; min-height: 2.75rem; font-weight: 700; text-decoration-color: var(--color-rule-on-dark); }
.quote__contact a:hover { text-decoration-color: currentColor; }
.quote-form { display: grid; gap: var(--space-6); }
.quote-form__group { display: grid; gap: var(--space-5); margin: 0; padding: 0; border: 0; min-width: 0; }
.quote-form__legend { padding: 0; margin-bottom: var(--space-1); font-size: var(--text-md); font-weight: 700; }
.quote-form__row { display: grid; gap: var(--space-5); }
.quote-form__actions { display: grid; gap: var(--space-3); justify-items: start; padding-top: var(--space-5); border-top: var(--rule-width) solid var(--color-forge); }
.quote-success { display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-7) var(--space-6); border: var(--border); border-radius: var(--radius); background: var(--color-sandstone-light); }
.quote-success__icon { width: 2.5rem; height: 2.5rem; color: var(--color-tempered); }
.volume-table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.volume-table caption { text-align: left; }
.volume-table th, .volume-table td { padding: var(--space-4) var(--space-4) var(--space-4) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-rule); }
.volume-table thead th { border-bottom: var(--rule-width) solid var(--color-forge); font-size: var(--text-sm); color: var(--color-forge); }
.volume-table tbody th { white-space: nowrap; font-size: var(--text-md); }
.volume-table td ul { padding-left: 1.1em; }
@media (min-width: 48em) { .quote-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  /* The side panel is at least the page inset plus 20rem (same rule as .chapter and .catalogue). */
  .quote { --quote-inset: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); grid-template-columns: minmax(0, 8fr) minmax(calc(var(--quote-inset) + 20rem), 4fr); }
  .quote__main { position: relative; padding: var(--space-8) var(--space-8) var(--space-section) var(--quote-inset); }
  .quote__aside { padding: var(--space-8) var(--quote-inset) var(--space-8) var(--space-6); }
  .quote__aside > div { position: sticky; top: var(--space-5); display: grid; gap: var(--space-7); }
}

/* Motion preferences ========================================================= */
@media (prefers-reduced-motion: reduce) {
  /* Remove movement; keep colour feedback (hover/focus states stay visible). */
  html { scroll-behavior: auto; }
  .button .icon, .arrow-link .icon, .category-index__arrow { transition: none; transform: none !important; }
  .product-card__media, .product-card__media > img { transition: none; }
  .product-card:hover .product-card__media > img { transform: none; }
  .button[aria-busy="true"] .button__spinner { animation: none; }
}

/* ---- Works record, order note, product states, mobile category select ---- */
.order-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); justify-content: space-between; padding-block: var(--space-5); margin-bottom: var(--space-section); border-block: var(--rule-width) solid var(--color-forge); }
.order-note__text { max-width: 60ch; font-weight: 500; text-wrap: pretty; }
.product-missing { padding-block: var(--space-section); display: grid; gap: var(--space-5); justify-items: start; }
.spec-request { padding: var(--space-5); border: var(--rule-width) solid var(--color-forge); border-radius: var(--radius); display: grid; gap: var(--space-3); justify-items: start; }
.filter__mobile { display: none; }
@media (max-width: 63.99em) {
  html.js .filter__mobile { display: block; }
  html.js .filter__group { display: none; }
}

/* Phones: tighter catalogue header so the first products start higher up the screen. */
@media (max-width: 47.99em) {
  .page-head__panel { padding-block: var(--space-5) var(--space-6); }
  .page-head__panel .breadcrumb { margin-bottom: var(--space-4); }
  .page-head__intro { padding-block: var(--space-5); gap: var(--space-3); }
  .catalogue__filters { padding-block: var(--space-5); }
}

/* =====================================================================
   Bolder pass: orange as signal, mono spec labels, hero beam, capabilities,
   manifesto, drawing-first quote form
   ===================================================================== */

/* Orange = the cut and the call to action. Carbon on Laser Orange is 4.7:1. */

/* Mono for data: spec labels, process numbers, filter counts */
.spec-list dt, .steps__number, .filter__count, .capabilities__num { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; font-size: 0.875rem; text-transform: uppercase; }


/* Capabilities index */
.capabilities { border-bottom: var(--rule-width) solid var(--color-forge); }
.capabilities__row { border-top: var(--rule-width) solid var(--color-forge); }
.capabilities__link { display: grid; grid-template-columns: 2.75rem 1fr auto; grid-template-areas: "num name arrow" ". desc desc"; gap: var(--space-1) var(--space-4); align-items: baseline; padding-block: var(--space-4); transition: background-color var(--duration-quick) var(--ease-smooth-out); }
.capabilities__link:hover { background: var(--tint-hover); }
.capabilities__num { grid-area: num; color: var(--color-tempered); }
.capabilities__name { grid-area: name; font-size: var(--text-lg); font-weight: 700; line-height: 1.1; }
.capabilities__desc { grid-area: desc; max-width: 52ch; }
.capabilities__arrow { grid-area: arrow; align-self: center; color: var(--color-forge); transition: transform var(--duration-fast) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out); }
.capabilities__link:hover .capabilities__arrow { transform: translateX(6px); color: var(--color-laser); }
.capabilities__link:hover .capabilities__num { color: var(--color-laser); }
@media (min-width: 48em) {
  .capabilities__link { grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr) auto; grid-template-areas: "num name desc arrow"; padding-block: var(--space-5); align-items: center; }
}

/* Manifesto */
.manifesto { padding-block: var(--space-section); }
.manifesto__inner { display: grid; gap: var(--space-6); }
.manifesto__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--text-display); line-height: var(--leading-tight); text-wrap: balance; }
.manifesto__body { display: grid; gap: var(--space-4); max-width: 46ch; font-size: var(--text-md); }
.manifesto__body .subheading { color: var(--color-quench); max-width: 24ch; }
@media (min-width: 64em) {
  .manifesto__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: end; }
}

/* Drawing-first quote form */
.dropzone { position: relative; display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-4); text-align: center; background: var(--color-sandstone-light); border: var(--rule-width) dashed var(--color-forge); border-radius: var(--radius); transition: background-color var(--duration-quick) var(--ease-smooth-out), border-color var(--duration-quick) var(--ease-smooth-out); }
.dropzone:hover, .dropzone.is-dragover { background: var(--color-field-active); border-color: var(--color-laser); }
.dropzone:focus-within { outline: 3px solid var(--focus-color); outline-offset: 3px; }
.dropzone__icon { width: 2rem; height: 2rem; color: var(--color-tempered); }
.dropzone__title { font-weight: 700; font-size: var(--text-md); }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__list { display: grid; gap: var(--space-1); margin-top: var(--space-2); font-family: var(--font-mono); font-size: 0.8125rem; }
.dropzone__list:empty { display: none; }
.chip-group { display: grid; gap: var(--space-2); border: 0; padding: 0; margin: 0; }
.chip-group__options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-4); border: var(--rule-width) solid var(--color-forge); border-radius: var(--radius); font-weight: 700; transition: background-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out); }
.chip:hover span { background: var(--tint-hover); }
.chip input:checked + span { background: var(--color-forge); color: var(--color-sandstone); }
.chip input:focus-visible + span { outline: 3px solid var(--focus-color); outline-offset: 3px; }

/* Capability rows: no underline at rest; the arrow and number carry the hover signal. */
.capabilities__link { text-decoration: none; }
.capabilities__link:hover .capabilities__name { text-decoration: underline; text-decoration-color: var(--color-laser); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* =====================================================================
   Pass 3: revamped hero cut, drawing-sheet placeholders, quieter links,
   procurement tools (sort, enquiry list, collapsed optional fields)
   ===================================================================== */

/* Links: quiet at rest, orange only on hover (state), never decoration. */
a { text-decoration-color: var(--color-rule); }
a:hover { text-decoration-color: var(--color-laser); }
.surface-dark a, .surface-tempered a, .cta-band a, .manifesto a { text-decoration-color: var(--color-rule-on-dark); }
.surface-dark a:hover, .surface-tempered a:hover, .cta-band a:hover, .manifesto a:hover { text-decoration-color: var(--color-laser); }
.capabilities__num { color: var(--color-forge); }
.capabilities__link:hover .capabilities__num { color: var(--color-forge); }
.breadcrumb__list { align-items: center; }
.breadcrumb__item { display: inline-flex; align-items: center; min-height: 2.75rem; }
.field__control::placeholder { color: color-mix(in srgb, var(--color-forge) 70%, transparent); opacity: 1; }


/* Placeholders as drawing sheets: corner registration marks, a centre cross, a mono title block. */
:root {
  --sheet-a: var(--color-sandstone-deep);
  --sheet-b: color-mix(in srgb, var(--color-quench) 34%, var(--color-sandstone));
  --sheet-c: color-mix(in srgb, var(--color-tempered) 20%, var(--color-sandstone));
  --sheet-mark: rgb(15 61 62 / 0.5);
}
.img-placeholder, .img-placeholder--quench {
  --sheet: var(--sheet-a);
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--sheet-mark), var(--sheet-mark)), linear-gradient(var(--sheet-mark), var(--sheet-mark)),
    linear-gradient(var(--sheet-mark), var(--sheet-mark)), linear-gradient(var(--sheet-mark), var(--sheet-mark)),
    linear-gradient(var(--sheet-mark), var(--sheet-mark)), linear-gradient(var(--sheet-mark), var(--sheet-mark)),
    linear-gradient(var(--sheet-mark), var(--sheet-mark)), linear-gradient(var(--sheet-mark), var(--sheet-mark)),
    linear-gradient(var(--sheet-mark), var(--sheet-mark)), linear-gradient(var(--sheet-mark), var(--sheet-mark));
  background-position:
    left 12px top 12px, left 12px top 12px, right 12px top 12px, right 12px top 12px,
    left 12px bottom 12px, left 12px bottom 12px, right 12px bottom 12px, right 12px bottom 12px,
    center, center;
  background-size:
    18px 1px, 1px 18px, 18px 1px, 1px 18px,
    18px 1px, 1px 18px, 18px 1px, 1px 18px,
    26px 1px, 1px 26px;
  background-repeat: no-repeat;
}
[data-category="institutional-furniture"] .img-placeholder, [data-category="fabrication-services"] .img-placeholder { --sheet: var(--sheet-b); }
[data-category="storage-solutions"] .img-placeholder, [data-category="others"] .img-placeholder { --sheet: var(--sheet-c); }
.img-placeholder span { padding: var(--space-1) var(--space-2); margin: var(--space-2); border: 1px solid var(--sheet-mark); border-radius: 0; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Product page: on phones the title, price and quote button come before the gallery. */
@media (max-width: 63.99em) { .product-hero__info { order: -1; } }

/* Footer fallback shown while no phone, WhatsApp or email is set */
.site-footer__fallback { max-width: 28ch; margin-bottom: var(--space-3); }

/* Catalogue: enquiry list */
.card-enquire { position: relative; z-index: 1; justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: var(--space-2); padding: 0 var(--space-4); background: transparent; border: var(--rule-width) solid var(--color-forge); border-radius: var(--radius); color: var(--color-forge); font: inherit; font-weight: 700; cursor: pointer; transition: background-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out); }
.card-enquire:hover { background: var(--tint-hover); }
.card-enquire[aria-pressed="true"] { background: var(--color-forge); color: var(--color-sandstone); }
.product-card { display: grid; align-content: start; }
.enquiry-bar { position: fixed; inset: auto 0 0 0; z-index: var(--z-nav); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding: var(--space-3) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); border-top: var(--rule-width) solid var(--color-rule-on-dark); }
.enquiry-bar__text { font-weight: 700; }
.has-enquiry body { padding-bottom: 6rem; }

/* Quote form: optional fields collapsed; file list with remove */
.more { border-top: var(--rule-width) solid var(--color-forge); padding-top: var(--space-2); }
.more__summary { display: flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; font-weight: 700; cursor: pointer; list-style: none; }
.more__summary::-webkit-details-marker { display: none; }
.more__summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.5rem; font-family: var(--font-mono); font-size: 1.25rem; }
.more[open] > .more__summary::before { content: "\2212"; }
.more__body { display: grid; gap: var(--space-5); padding-block: var(--space-4) var(--space-2); }
.dropzone__list { gap: var(--space-2); }
.dropzone__list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.dropzone__remove { min-height: 2.75rem; padding: 0 var(--space-3); background: none; border: 0; color: var(--color-forge); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Header nav keeps its own underline rules (the surface rules above would otherwise draw them at rest). */
.surface-dark .site-nav__link { text-decoration-color: transparent; }
.surface-dark .site-nav__link:hover { text-decoration-color: var(--color-sandstone); }
.surface-dark .site-nav__link[aria-current="page"] { text-decoration-color: var(--color-laser); }

/* =====================================================================
   Logo intro (first home visit) and hero text reveal (transitions.dev "texts reveal" recipe)
   ===================================================================== */
:root {
  --stagger-dur: var(--duration-very-slow);
  --stagger-distance: var(--distance-medium);
  --stagger-step: var(--duration-micro);
  --stagger-blur: var(--blur-medium);
  --stagger-ease: var(--ease-smooth-out);
}

.intro { display: none; }
.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 200; background: var(--color-forge); touch-action: none; }
.intro.is-ready { background: transparent; }
.intro__bg { position: absolute; inset: 0; background: var(--color-sandstone); }
.intro__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* If the script never starts, the overlay still leaves after 7 s. */
.has-intro .intro { animation: intro-failsafe 0.01s linear 7s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; } }

/* Hero lines rise in one after another once the logo starts to land. */
.reveal-line {
  transition: opacity var(--stagger-dur) var(--stagger-ease), transform var(--stagger-dur) var(--stagger-ease), filter var(--stagger-dur) var(--stagger-ease);
  transition-delay: 0s;
}
.has-intro .reveal-line { opacity: 0; transform: translateY(var(--stagger-distance)); filter: blur(var(--stagger-blur)); will-change: transform, opacity, filter; }
.has-intro.intro-reveal .reveal-line { opacity: 1; transform: none; filter: none; }
.has-intro .reveal-line--1, .intro-reveal .reveal-line--1 { transition-delay: calc(var(--stagger-step) * 1); }
.has-intro .reveal-line--2, .intro-reveal .reveal-line--2 { transition-delay: calc(var(--stagger-step) * 2); }
.has-intro .reveal-line--3, .intro-reveal .reveal-line--3 { transition-delay: calc(var(--stagger-step) * 3); }
/* The hero mark appears the moment the gliding logo lands on it. */
.has-intro .hero__mark { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .reveal-line { transition: none !important; } }

/* Chapter sidebars: the Quench gradient (Quench, Tempered, Forge Teal), anchored bottom right so the light Quench
   stays in the far corner and the Sandstone number and title sit on the darker stops (sticky title stays above 3:1). */
.chapter__aside { background-image: radial-gradient(farthest-corner at 100% 100%, var(--color-quench) 0%, var(--color-tempered) 38%, var(--color-forge) 100%); }

/* One continuous gradient across every chapter sidebar on desktop: the gradient is pinned to the viewport
   (sized like the sidebar column), so stacked sidebars show the same pixels and never meet at a seam.
   The pinned title keeps the same colours behind it as you scroll. Phones keep one gradient per block. */
@media (min-width: 64em) {
  .chapter__aside {
    background-color: var(--color-forge);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: max(calc(var(--chapter-inset) + 16rem), 25vw) 100vh;
  }
}

/* =====================================================================
   transitions.dev, applied: toast (enquiry bar), error shake, success check,
   accordion (More details), dropdown (mobile menu). All values come from the motion tokens.
   ===================================================================== */

/* Toast: the enquiry bar rises in on the slower open clock and leaves on the faster close clock. */
.enquiry-bar {
  opacity: 0;
  transform: translateY(16px) scale(var(--scale-medium));
  transform-origin: 50% 100%;
  filter: blur(var(--blur-small));
  will-change: transform, opacity, filter;
  transition: opacity var(--duration-fast) var(--ease-smooth-out), transform var(--duration-fast) var(--ease-smooth-out), filter var(--duration-fast) var(--ease-smooth-out);
}
.enquiry-bar.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity var(--duration-medium) var(--ease-smooth-out), transform var(--duration-medium) var(--ease-smooth-out), filter var(--duration-medium) var(--ease-smooth-out);
}

/* Error shake: invalid fields give one short percussive shake (80, 80, 60, 60 ms legs). */
.is-shaking { animation: kx-shake calc(var(--duration-micro) * 2 + var(--duration-stagger) * 3) linear; }
@keyframes kx-shake {
  0%     { transform: translateX(0);                                   animation-timing-function: var(--ease-smooth-out); }
  28.57% { transform: translateX(var(--distance-small));               animation-timing-function: var(--ease-smooth-out); }
  57.14% { transform: translateX(calc(var(--distance-small) * -1));    animation-timing-function: var(--ease-smooth-out); }
  78.57% { transform: translateX(var(--distance-micro));               animation-timing-function: var(--ease-smooth-out); }
  100%   { transform: translateX(0); }
}

/* Success check: the sent icon fades in, rotates upright, loses its blur and settles with a Y-bob. */
.quote-success__icon[data-state="out"] { opacity: 0; }
.quote-success__icon[data-state="in"] {
  transform-origin: center;
  animation:
    kx-check-fade var(--duration-very-slow) var(--ease-smooth-out) both,
    kx-check-rotate var(--duration-very-slow) var(--ease-smooth-out) both,
    kx-check-blur var(--duration-very-slow) var(--ease-smooth-out) both,
    kx-check-bob var(--duration-very-slow) cubic-bezier(0.34, 1.35, 0.64, 1) both;
}
@keyframes kx-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kx-check-rotate { from { rotate: 80deg; } to { rotate: 0deg; } }
@keyframes kx-check-blur { from { filter: blur(8px); } to { filter: blur(0); } }
@keyframes kx-check-bob { from { translate: 0 30px; } to { translate: 0 0; } }

/* Accordion: "More details" grows and shrinks instead of snapping (progressive enhancement; browsers
   without ::details-content or interpolate-size simply open instantly). */
.more { interpolate-size: allow-keywords; }
.more::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size var(--duration-fast) var(--ease-smooth-out), content-visibility var(--duration-fast) allow-discrete;
}
.more[open]::details-content { block-size: auto; }

/* Dropdown: the phone menu opens from its toggle (fast, from 0.97) and closes quicker (to 0.99). */
@media (max-width: 47.99em) {
  .js .site-nav {
    transform-origin: 100% 0;
    transition: opacity var(--duration-quick) var(--ease-smooth-out), transform var(--duration-quick) var(--ease-smooth-out), display var(--duration-quick) allow-discrete;
  }
  .js .site-nav:not(.is-open) { opacity: 0; transform: scale(var(--scale-tiny)); }
  .js .site-nav.is-open {
    opacity: 1;
    transform: none;
    transition: opacity var(--duration-fast) var(--ease-smooth-out), transform var(--duration-fast) var(--ease-smooth-out), display var(--duration-fast) allow-discrete;
  }
  @starting-style { .js .site-nav.is-open { opacity: 0; transform: scale(var(--scale-medium)); } }
}

@media (prefers-reduced-motion: reduce) {
  .enquiry-bar { transition: none !important; filter: none; transform: none; }
  .is-shaking { animation: none !important; }
  .quote-success__icon[data-state] { animation: none !important; opacity: 1; }
  .more::details-content { transition: none; }
  .js .site-nav { transition: none !important; }
}


/* =====================================================================
   v4: enquiry bar with an openable list, compact phone catalogue, aligned card buttons
   ===================================================================== */
.enquiry-bar { display: grid; gap: var(--space-2); }
.enquiry-bar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.enquiry-bar__toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0; background: none; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.enquiry-bar__toggle .icon { transition: rotate var(--duration-fast) var(--ease-smooth-out); }
.enquiry-bar__toggle[aria-expanded="true"] .icon { rotate: 180deg; }
.enquiry-bar__panel { display: grid; gap: var(--space-2); padding-bottom: var(--space-1); max-height: 40vh; overflow-y: auto; }
.enquiry-bar__list { display: grid; gap: var(--space-1); }
.enquiry-bar__list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); border-bottom: 1px solid var(--color-rule-on-dark); }
.enquiry-bar__remove, .enquiry-bar__clear, .enquiry-bar__undo button { min-height: 2.75rem; padding: 0 var(--space-2); background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-rule-on-dark); cursor: pointer; }
.enquiry-bar__clear { justify-self: start; }
.enquiry-bar__undo { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.enquiry-bar.is-undo .enquiry-bar__row { display: none; }
.has-enquiry body { padding-bottom: 5.5rem; }

/* Card buttons sit on one line across a row, whatever the title length. */
.product-card { grid-template-rows: auto auto auto auto 1fr; }
.card-enquire { align-self: end; }

/* Phones: search on its own row, sort and category side by side, and a slimmer enquiry bar. */
@media (max-width: 63.99em) {
  .filter { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-3); }
  .filter > .field:first-child { grid-column: 1 / -1; }
  .filter .field__label { font-size: var(--text-sm); }
}
@media (max-width: 47.99em) {
  .enquiry-bar { padding-block: var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom, 0px)); }
  .enquiry-bar .button { min-height: 2.75rem; padding-inline: var(--space-4); }
  .has-enquiry body { padding-bottom: 4.5rem; }
}


/* v4: quote form help, draft note, success recap, FAQ */
.draft-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: var(--rule-width) solid var(--color-forge); border-radius: var(--radius); font-weight: 700; }
.draft-note button { min-height: 2.75rem; padding: 0 var(--space-2); background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.more__help { margin-top: var(--space-2); }
.success-subtitle { font-size: var(--text-md); font-weight: 700; margin-top: var(--space-3); }
.quote-success__recap { width: 100%; max-width: 40rem; }
.success-next { display: grid; gap: var(--space-2); padding-left: var(--space-5); list-style: decimal; max-width: 52ch; }
.faq { display: grid; gap: var(--space-1); max-width: 60rem; }
.faq .more { border-top-width: 1px; border-top-color: var(--color-rule); }
.faq__answer { padding-block: var(--space-2) var(--space-4); max-width: 60ch; }
[data-retry] { margin-top: var(--space-3); }


/* v4: one Molten call to action per view (the header button is quiet), a frame that holds on Sandstone,
   larger tap targets, and the intro's Skip button. */
.category-index__name a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.product-card__link { display: inline-block; padding-block: 0.4rem; }
.breadcrumb a { padding-inline: var(--space-2); }
.site-footer__fallback a { display: inline-block; padding-block: 0.7rem; }



/* =====================================================================
   v5: homepage after the brand guidelines' website layout (page 35)
   Sandstone header with the horizontal logo, Quench-gradient hero with the headline left and the mark cropped
   on the right, Laser Orange kept for the one call to action.
   ===================================================================== */
.site-header { background: var(--color-sandstone); color: var(--color-forge); }
.site-header__toggle { border-color: var(--color-rule); color: var(--color-forge); }
.site-header__toggle:hover { border-color: var(--color-forge); }
.site-nav__link:hover { text-decoration-color: var(--color-laser); }

.hero .button--outline:hover { background: var(--tint-hover-on-dark); }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: min(38rem, calc(100svh - 4.5rem));
  background: radial-gradient(farthest-corner at 100% 100%, var(--color-quench) 0%, var(--color-tempered) 45%, var(--color-forge) 100%);
  color: var(--color-sandstone);
  --focus-color: var(--color-sandstone-light);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--space-5); padding-block: var(--space-8); }
.hero__inner > * { max-width: 48rem; }
.hero__text { max-width: 34ch; font-size: var(--text-md); }
.hero__actions { margin-top: var(--space-3); }
.hero__mark {
  position: absolute;
  right: -34%;
  bottom: -12%;
  width: auto;
  height: 82%;
  aspect-ratio: 779.52 / 780;
  --logo-mark: rgb(234 220 200 / 0.15);
  pointer-events: none;
}
@media (min-width: 48em) {
  .hero__mark { right: -8%; top: 50%; bottom: auto; height: 138%; translate: 0 -50%; }
}

.facts-band { display: grid; gap: var(--space-6); padding-block: var(--space-7); }
.facts-band__intro { display: grid; gap: var(--space-3); max-width: 60ch; }
.facts-band .hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); color: var(--color-carbon); }
.facts-band .spec-list__row { grid-template-columns: 1fr; gap: var(--space-1); }
/* An odd last fact (e.g. 3 facts on a 2-column phone grid) takes the full row instead of leaving a gap. */
.facts-band .hero__facts > .spec-list__row:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 64em) {
  .facts-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: end; padding-block: var(--space-8); }
  .facts-band .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts-band .hero__facts > .spec-list__row:last-child:nth-child(odd) { grid-column: auto; }
}


/* =====================================================================
   v5: one primary button. Solid Laser Orange with Carbon Black text, always; on hover the Molten gradient fades in
   over the orange. Used for .button--orange (header, hero) and .button--accent (everywhere else).
   Carbon on Laser Orange is 4.7:1, and on every stop of the Molten gradient 8.5:1 or better.
   ===================================================================== */
.button--orange, .button--accent {
  position: relative;
  isolation: isolate;
  background: var(--color-laser);
  border-color: transparent;
  color: var(--color-carbon);
}
/* The gradient layer reaches over the border box too, so on hover no orange ring is left around it. */
.button--orange::before, .button--accent::before {
  content: "";
  position: absolute;
  inset: calc(var(--border-width) * -1);
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient-molten-button);
  opacity: 0;
  transition: opacity var(--duration-quick) var(--ease-smooth-out);
}
.button--orange:hover, .button--accent:hover {
  background: var(--color-laser);
  border-color: transparent;
  color: var(--color-carbon);
}
.button--orange:hover::before, .button--accent:hover::before,
.button--orange:focus-visible::before, .button--accent:focus-visible::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .button--orange::before, .button--accent::before { transition: none; } }

/* The header already carries "Get a Quote" from tablet width up, so the hero shows it only on phones,
   where the header collapses behind the Menu button. One quote button on screen at a time. */
@media (min-width: 48em) { .hero__quote { display: none; } }

/* v5: no X pattern anywhere. The catalogue and bulk-orders page-head panels carry the same Quench gradient as the home hero. */
.page-head__panel {
  background: radial-gradient(farthest-corner at 100% 100%, var(--color-quench) 0%, var(--color-tempered) 45%, var(--color-forge) 100%);
  color: var(--color-sandstone);
}

/* Process steps use the same Forge rules as the capabilities index (orange stays for actions). */
.steps__item { border-top-color: var(--color-forge); }
