/* tokens.css is linked ahead of this file by the layout, so that it gets a
   ?v= cache-buster of its own and downloads in parallel rather than serially. */

/* ==========================================================================
   1. Reset & base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv05' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.022em;
  color: var(--ink-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.4vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.6rem, 3.2vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.25rem, 2.2vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p  { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
a:hover { color: var(--brand-700); text-decoration-color: currentColor; }

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { background: var(--ink-100); }

ul, ol { margin: 0 0 var(--s-4); padding-inline-start: 1.35rem; }
li + li { margin-block-start: var(--s-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-8) 0; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }

strong, b { font-weight: 650; color: var(--ink-900); }

small { font-size: var(--fs-sm); }

table { border-collapse: collapse; width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--brand-200); color: var(--brand-900); }

[hidden] { display: none !important; }

.skip-link {
  position: absolute; inset-inline-start: var(--s-4); top: -100px;
  z-index: var(--z-toast);
  background: var(--brand-700); color: var(--white);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); color: var(--white); }

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

/* ==========================================================================
   2. Layout primitives
   ========================================================================== */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--text { max-width: var(--container-text); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--flush-top { padding-block-start: 0; }
.section--sunken { background: var(--bg-sunken); }
.section--raised { background: var(--bg-raised); }

/* Deep brand band used for the CTA and the compliance strip. */
.section--ink {
  background:
    radial-gradient(1100px 480px at 12% -10%, rgba(39, 87, 214, .42), transparent 62%),
    radial-gradient(760px 420px at 92% 108%, rgba(245, 166, 35, .20), transparent 60%),
    linear-gradient(155deg, var(--brand-950) 0%, var(--brand-800) 58%, var(--brand-700) 100%);
  color: color-mix(in srgb, var(--white) 82%, transparent);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink a:not(.btn) { color: var(--gold-300); }
.section--ink a:not(.btn):hover { color: var(--gold-200); }

.stack > * + * { margin-block-start: var(--s-4); }
.stack-lg > * + * { margin-block-start: var(--s-8); }

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* Product-card grids take an explicit column count. auto-fill with a 235px
   floor fits FIVE tracks inside .container--wide (1416px content, 24px gap),
   so eight cards landed 5 + 3 and four related items left a hole. */
.grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Two-column page layout (content + aside); each page sets the ratio via
   --col-a / --col-b. Collapses with the rest of the tablet layout. */
.grid--aside {
  grid-template-columns: minmax(0, var(--col-a, 1fr)) minmax(0, var(--col-b, 1fr));
  align-items: start;
}

.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: var(--fs-sm); }
.text-xs     { font-size: var(--fs-xs); }
.mono        { font-family: var(--font-mono); font-variant-ligatures: none; letter-spacing: -0.01em; }
.nowrap      { white-space: nowrap; }
.mt-0 { margin-block-start: 0 !important; }
.mb-0 { margin-block-end: 0 !important; }

/* ==========================================================================
   3. Section headers
   ========================================================================== */

.section-head { max-width: 62ch; margin-block-end: var(--s-10); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-block-end: var(--s-3);
}
.eyebrow::before {
  content: ''; inline-size: 22px; block-size: 2px;
  background: currentColor; border-radius: 2px;
}
.section--ink .eyebrow { color: var(--gold-400); }

.section-head p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 60ch; }
.section--ink .section-head p { color: color-mix(in srgb, var(--white) 74%, transparent); }
.section-head--center p { margin-inline: auto; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: var(--white);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 0.8rem 1.5rem;
  min-block-size: 48px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease),
              background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn svg { inline-size: 1.1em; block-size: 1.1em; flex: none; }

.btn--primary { --btn-bg: var(--gold-500); --btn-fg: var(--ink-900); box-shadow: var(--sh-gold); }
.btn--primary:hover { --btn-bg: var(--gold-400); box-shadow: 0 14px 34px rgba(217,148,8,.40); }

.btn--brand { --btn-bg: var(--brand-700); --btn-fg: var(--white); box-shadow: var(--sh-brand); }
.btn--brand:hover { --btn-bg: var(--brand-600); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--white); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 30%, transparent); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-bd: var(--brand-200); }
.btn--outline:hover { --btn-bg: var(--brand-50); --btn-bd: var(--brand-400); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-700); --btn-bd: transparent; box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--ink-100); transform: none; }

.btn--on-dark { --btn-bg: rgba(255,255,255,.10); --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn--on-dark:hover { --btn-bg: rgba(255,255,255,.18); --btn-bd: rgba(255,255,255,.5); }

.btn--sm { padding: .5rem 1rem; min-block-size: 38px; font-size: var(--fs-xs); }
.btn--lg { padding: 1.05rem 2rem; min-block-size: 56px; font-size: var(--fs-md); }
.btn--block { inline-size: 100%; }
.btn--icon { padding: 0; inline-size: 44px; min-block-size: 44px; border-radius: var(--r-sm); }

/* Link that reads as an arrow affordance. */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 650; font-size: var(--fs-sm); text-decoration: none;
  color: var(--accent);
}
.link-arrow svg { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   5. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky; inset-block-start: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-block-end: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--white) 96%, transparent);
  border-block-end-color: var(--border);
  box-shadow: var(--sh-sm);
}

/* Over the hero the header is transparent and light-on-dark. */
.site-header.is-over-hero:not(.is-stuck) {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.is-over-hero:not(.is-stuck) .nav-link,
.site-header.is-over-hero:not(.is-stuck) .header-tool,
.site-header.is-over-hero:not(.is-stuck) .brand-name { color: var(--white); }
.site-header.is-over-hero:not(.is-stuck) .brand-sub { color: var(--gold-300); }
.site-header.is-over-hero:not(.is-stuck) .nav-link:hover { background: rgba(255,255,255,.14); }
.site-header.is-over-hero:not(.is-stuck) .header-tool { border-color: rgba(255,255,255,.3); }

.header-inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-block-size: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; flex: none; }
.brand-mark { inline-size: 42px; block-size: 42px; flex: none; border-radius: 50%; background: transparent; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.02em; color: var(--brand-800);
}
.brand-name em { font-style: normal; color: var(--gold-600); }
.brand-sub {
  font-size: 0.6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-400); font-weight: 600; margin-block-start: 2px;
}

.primary-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: .55rem .8rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700);
  text-decoration: none; white-space: nowrap;
  /* The Products item is a <button> (it opens the mega-menu) while the rest
     are <a>. Without this reset it keeps the UA's ButtonFace background and
     outset border, which reads as a grey pill — and turns invisible over the
     hero, where .nav-link colour is white. */
  appearance: none; background: transparent; border: 0;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-link:hover { background: var(--ink-100); color: var(--brand-700); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--brand-700); background: var(--brand-50); }
.site-header.is-over-hero:not(.is-stuck) .nav-link.is-active { background: rgba(255,255,255,.18); color: var(--white); }
.nav-link .chev { transition: transform var(--t-base) var(--ease); }
.nav-item--mega[aria-expanded="true"] .chev, .nav-item--mega.is-open .chev { transform: rotate(180deg); }

.header-tools { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.header-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  inline-size: 42px; block-size: 42px; padding: 0;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: transparent; color: var(--ink-600); cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.header-tool:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.header-tool--wide { inline-size: auto; padding-inline: .7rem; font-size: var(--fs-xs); font-weight: 650; }

.quote-pip {
  position: absolute; inset-block-start: -6px; inset-inline-end: -6px;
  min-inline-size: 19px; block-size: 19px; padding-inline: 5px;
  display: grid; place-items: center;
  background: var(--gold-500); color: var(--ink-900);
  border-radius: var(--r-pill); font-size: 10px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.header-tool { position: relative; }

.nav-toggle { display: none; }

/* ---- Mega menu ---- */
.mega {
  position: absolute; inset-inline: 0; inset-block-start: 100%;
  background: var(--white);
  border-block-start: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-out), visibility var(--t-base);
  max-block-size: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { display: grid; grid-template-columns: 1fr 300px; gap: var(--s-10); padding-block: var(--s-8); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: var(--s-2); }

.mega-item {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink-800);
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.mega-item:hover { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--ink-900); }
.mega-swatch { inline-size: 8px; align-self: stretch; border-radius: 4px; background: var(--accent); flex: none; }
.mega-item strong { display: block; font-size: var(--fs-sm); font-weight: 650; }
.mega-item span { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-block-start: 2px; }

.mega-aside {
  background: linear-gradient(160deg, var(--brand-800), var(--brand-600));
  border-radius: var(--r-lg); padding: var(--s-6); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-5);
}
.mega-aside h4 { color: var(--white); font-size: var(--fs-lg); }
.mega-aside p { color: rgba(255,255,255,.78); font-size: var(--fs-sm); }

/* ---- Mobile drawer ---- */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  visibility: hidden; pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim {
  position: absolute; inset: 0; background: rgba(6, 20, 54, .55);
  opacity: 0; transition: opacity var(--t-base) var(--ease);
  backdrop-filter: blur(3px);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  inline-size: min(400px, 88vw); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform var(--t-slow) var(--ease-out);
  box-shadow: var(--sh-xl);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5); border-block-end: 1px solid var(--border);
}
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-5) var(--s-8); }
.drawer-foot { padding: var(--s-4) var(--s-5); border-block-start: 1px solid var(--border); background: var(--ink-50); }

.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer-nav li { margin: 0; }
.drawer-nav a, .drawer-acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  inline-size: 100%; padding: .85rem .25rem;
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600;
  color: var(--ink-800); text-decoration: none;
  background: none; border: 0; border-block-end: 1px solid var(--ink-100);
  text-align: start; cursor: pointer;
}
.drawer-nav a:hover, .drawer-acc-btn:hover { color: var(--brand-700); }
.drawer-sub { list-style: none; margin: 0 0 var(--s-3); padding: 0 0 0 var(--s-4); display: none; }
.drawer-sub.is-open { display: block; }
.drawer-sub a { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-600); padding-block: .6rem; border-block-end: 0; }
.drawer-sub .sw { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--accent); margin-inline-end: 8px; flex: none; }

/* ---- Sticky mobile action bar ---- */
.action-bar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: calc(var(--z-header) - 1);
  display: none; gap: var(--s-2); padding: var(--s-3) var(--s-4);
  padding-block-end: max(var(--s-3), env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(14px);
  border-block-start: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(11,18,32,.07);
}
.action-bar .btn { flex: 1 1 0; min-inline-size: 0; overflow: hidden; }

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
  position: relative; isolation: isolate;
  margin-block-start: calc(var(--header-h) * -1);
  padding-block: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(1200px 620px at 8% -8%, rgba(39, 87, 214, .48), transparent 60%),
    radial-gradient(900px 560px at 96% 12%, rgba(245, 166, 35, .22), transparent 58%),
    radial-gradient(800px 600px at 50% 120%, rgba(8, 145, 178, .20), transparent 60%),
    linear-gradient(152deg, var(--brand-950) 0%, var(--brand-900) 44%, var(--brand-700) 100%);
  color: rgba(255, 255, 255, .86);
  overflow: hidden;
}

/* Woven-thread texture: two crossed line gratings, i.e. a warp and a weft. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .28;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.035) 0 1px, transparent 1px 9px);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 40%, transparent 100%);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: .45rem .95rem .45rem .55rem;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill); backdrop-filter: blur(10px);
  font-size: var(--fs-xs); font-weight: 600; color: var(--white);
  letter-spacing: .01em; margin-block-end: var(--s-6);
}
.hero-badge .dot {
  inline-size: 22px; block-size: 22px; border-radius: 50%;
  background: var(--gold-500); color: var(--ink-900);
  display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.15rem, 5.2vw, var(--fs-5xl));
  letter-spacing: -0.034em; line-height: 1.06;
  margin-block-end: var(--s-5);
}
.hero h1 .hl {
  background: linear-gradient(102deg, var(--gold-400) 10%, var(--gold-300) 60%, var(--gold-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, var(--fs-lg));
  color: rgba(255,255,255,.76); max-width: 54ch; margin-block-end: var(--s-8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block-end: var(--s-8); }

.hero-proof { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); }
.hero-proof-item { border-inline-start: 3px solid var(--gold-500); padding-inline-start: var(--s-3); }
.hero-proof-item b {
  display: block; font-family: var(--font-display); font-size: var(--fs-2xl);
  font-weight: 800; color: var(--white); letter-spacing: -0.03em; line-height: 1;
}
.hero-proof-item span { font-size: var(--fs-xs); color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .08em; }

/* ---- Hero stage: 3D canvas with a static still underneath ---- */
.hero-stage {
  position: relative; aspect-ratio: 1 / 1; inline-size: 100%;
  border-radius: var(--r-2xl); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 42%, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.35);
}
.hero-stage canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; display: block; }
.hero-still {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  object-fit: cover; background: transparent;
  transition: opacity var(--t-slow) var(--ease);
}
.hero-stage.is-live .hero-still { opacity: 0; }

/* Orbiting product chips, shown when the 3D layer is unavailable. */
.hero-orbit { position: absolute; inset: 0; }
.hero-chip {
  position: absolute; inline-size: 27%; aspect-ratio: 1;
  border-radius: 22%; overflow: hidden;
  background: var(--white); box-shadow: 0 18px 40px rgba(0,0,0,.32);
  border: 2px solid rgba(255,255,255,.5);
  animation: chipFloat 7s var(--ease) infinite;
}
.hero-chip img { inline-size: 100%; block-size: 100%; object-fit: cover; background: var(--white); }
.hero-chip:nth-child(1) { inset-block-start: 9%;  inset-inline-start: 12%; animation-delay: 0s; }
.hero-chip:nth-child(2) { inset-block-start: 34%; inset-inline-end: 7%;  animation-delay: -1.6s; inline-size: 31%; }
.hero-chip:nth-child(3) { inset-block-end: 11%;   inset-inline-start: 24%; animation-delay: -3.2s; inline-size: 24%; }
.hero-chip:nth-child(4) { inset-block-start: 7%;  inset-inline-end: 22%; animation-delay: -4.8s; inline-size: 19%; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}

.hero-scroll {
  position: absolute; inset-inline-start: 50%; inset-block-end: var(--s-5);
  translate: -50% 0; display: grid; place-items: center; gap: 6px;
  color: rgba(255,255,255,.5); font-size: var(--fs-2xs);
  letter-spacing: .16em; text-transform: uppercase;
}
.hero-scroll .line {
  inline-size: 1px; block-size: 34px;
  background: linear-gradient(rgba(255,255,255,.5), transparent);
}

/* ==========================================================================
   7. Capacity strip
   ========================================================================== */

.capacity-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-md);
}
.capacity-cell {
  background: var(--white); padding: var(--s-6) var(--s-5);
  position: relative; transition: background-color var(--t-base) var(--ease);
}
.capacity-cell:hover { background: var(--brand-50); }
.capacity-cell::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0;
  block-size: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.capacity-cell:hover::before { transform: scaleX(1); }
.capacity-value {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800; color: var(--brand-800); letter-spacing: -0.035em; line-height: 1;
}
.capacity-unit { font-size: var(--fs-xs); color: var(--accent); font-weight: 700; margin-block-start: 4px; }
.capacity-label { font-size: var(--fs-sm); color: var(--text-muted); margin-block-start: var(--s-2); }

/* ==========================================================================
   8. Cards
   ========================================================================== */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--accent-ring); }
.card-body { padding: var(--s-5); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-100); }
.card-media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.card--hover:hover .card-media img { transform: scale(1.05); }

/* ---- Category tile: a swing tag with a punched eyelet ---- */
.cat-tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--accent-ring); color: inherit; }
/* The tile carries a real product shot. Ours are cut-outs on white, so the
   plate is a soft accent tint and the image is contained rather than cropped —
   a button must not be cropped to a corner of itself. */
.cat-tile-media {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  background: linear-gradient(158deg,
              color-mix(in srgb, var(--accent) 16%, var(--white)) 0%,
              var(--white) 62%);
}
/* Our shots are cut-outs on white, and they arrive in every aspect ratio.
   Presenting them on a white sample card makes that background deliberate and
   gives all ten tiles the same silhouette whatever the source image is. */
.cat-tile-shot {
  position: absolute; inset-block-start: 11%; inset-inline-start: 50%;
  translate: -50% 0; z-index: 1;
  inline-size: 48%; aspect-ratio: 1;
  display: grid; place-items: center; overflow: hidden;
  background: var(--white); border-radius: var(--r-md);
  box-shadow: 0 16px 34px rgba(11, 18, 32, .24);
  transition: transform var(--t-slow) var(--ease-out);
}
.cat-tile-shot img { inline-size: 100%; block-size: 100%; object-fit: contain; padding: 7%; }
.cat-tile:hover .cat-tile-shot { transform: translateY(-5px) scale(1.04); }
.cat-tile-media::after {
  content: ''; position: absolute; inset: 0;
  /* Solid accent under the title, fading out before it reaches the product. */
  background: linear-gradient(to top,
              var(--accent) 0%,
              color-mix(in srgb, var(--accent) 72%, transparent) 26%,
              transparent 58%);
  opacity: .94;
}
/* punched eyelet, top-left, echoing a hang tag */
.cat-tile-eyelet {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 2;
  inline-size: 26px; block-size: 26px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}
.cat-tile-index {
  position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 2;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92); color: var(--accent);
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700;
}
.cat-tile-title {
  position: absolute; inset-inline: var(--s-5); inset-block-end: var(--s-4); z-index: 2;
  color: var(--white); font-family: var(--font-display);
  font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.cat-tile-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.cat-tile-types { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tile-foot {
  margin-block-start: auto; padding-block-start: var(--s-3);
  border-block-start: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-sm); font-weight: 650; color: var(--accent);
}

/* ---- Product card -------------------------------------------------------
   A specimen on a light table. The media plate is tinted with the product
   family's own accent, so a drawn specimen — which paints its own opaque white
   ground — reads as a white sample card lying ON something, instead of white
   artwork on a white plate on a near-white band. Photographs crop full bleed
   across the same square.

   Hover is border and shadow only. The old -4px lift plus scale(1.07) on the
   image magnified a white field and spent motion the PRD reserves for the
   hero, the drawer and the lightbox.
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.product-card:hover,
.product-card:focus-within { border-color: var(--accent-ring); box-shadow: var(--sh-md); }

.product-card-media {
  position: relative; aspect-ratio: 1;
  background: var(--ink-100);                                  /* floor if color-mix is unsupported */
  background: color-mix(in srgb, var(--accent) 11%, var(--ink-50));
  border-block-end: 1px solid var(--border);
  overflow: hidden;
}
.product-card-media > picture { display: contents; }
.product-card-media img { display: block; inline-size: 100%; block-size: 100%; }
.product-card-media--photo img { object-fit: cover; }
.product-card-media--specimen img { object-fit: contain; padding: var(--s-5); }

.product-card-link { position: absolute; inset: 0; z-index: 1; }

.product-card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }

/* Family and article code share one row, so a card keeps the same vertical
   rhythm whether or not its product carries a code. */
.product-card-eyebrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2); min-block-size: 18px;
}
.product-card-family {
  display: inline-flex; align-items: center; gap: 6px; min-inline-size: 0;
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Selvedge tick — the woven-edge device from the PRD, at card scale. */
.product-card-family::before {
  content: ''; flex: none; inline-size: 3px; block-size: 12px;
  border-radius: 2px; background: var(--accent);
}

.product-card h3 {
  font-size: var(--fs-md); margin: 0;
  letter-spacing: -0.015em; line-height: var(--lh-snug);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card h3 a { color: var(--ink-900); text-decoration: none; }
.product-card h3 a:hover { color: var(--accent); }

/* margin:0 is the fix: the base `p { margin: 0 0 var(--s-4) }` applied here and
   p:last-child never caught it, because the foot follows. */
.product-card-specs {
  margin: 0; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* The two figures a buyer compares before writing to anyone. */
.product-card-meta {
  margin: 0; padding-block-start: var(--s-3);
  border-block-start: 1px dashed var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
}
.product-card-meta > div { min-inline-size: 0; }
.product-card-meta dt {
  margin: 0 0 2px; font-size: 10px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-subtle);
}
.product-card-meta dd {
  margin: 0; font-family: var(--font-mono); font-size: var(--fs-xs);
  font-weight: 600; color: var(--ink-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.product-card-foot {
  margin-block-start: auto; padding-block-start: var(--s-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
}
.product-card-foot .link-arrow { font-size: var(--fs-2xs); }

.code-chip {
  display: inline-block; padding: 3px 8px; border-radius: var(--r-xs);
  background: var(--ink-100); color: var(--ink-700);
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: -0.01em;
}

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--ink-100); color: var(--ink-600);
  font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap;
}
.chip--accent { background: var(--accent-soft); color: var(--accent); }
.chip--outline { background: transparent; border: 1px solid var(--border); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-xs);
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.badge--success { background: var(--success-100); color: var(--success-700); }
.badge--warning { background: var(--warning-100); color: var(--warning-700); }
.badge--danger  { background: var(--danger-100);  color: var(--danger-700); }
.badge--info    { background: var(--info-100);    color: var(--brand-700); }
.badge--neutral { background: var(--ink-100);     color: var(--ink-600); }

/* Add-to-quote toggle on product cards */
.quote-add {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-xs);
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--ink-600); font-size: var(--fs-2xs); font-weight: 650; cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.quote-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.quote-add.is-added { background: var(--success-500); border-color: var(--success-500); color: var(--white); }
.quote-add svg { inline-size: 13px; block-size: 13px; }

/* ==========================================================================
   9. Feature / value cards
   ========================================================================== */

.feature {
  padding: var(--s-6); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.feature-icon {
  inline-size: 48px; block-size: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-block-end: var(--s-4);
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon svg { inline-size: 24px; block-size: 24px; }
.feature h3 { font-size: var(--fs-lg); margin-block-end: var(--s-2); }
.feature p  { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* ---- Process sequence ---- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-5); counter-reset: step; }
.process-step { position: relative; padding-block-start: var(--s-8); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800;
  color: var(--accent); letter-spacing: -0.04em; line-height: 1;
}
.process-step::after {
  content: ''; position: absolute; inset-block-start: 14px;
  inset-inline-start: 54px; inset-inline-end: calc(var(--s-5) * -1);
  block-size: 1px; border-block-start: 2px dashed var(--border-strong);
}
.process-step:last-child::after { display: none; }
.process-step h3 { font-size: var(--fs-md); margin-block-end: 6px; }
.process-step p  { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.section--ink .process-step p { color: rgba(255,255,255,.68); }
.section--ink .process-step::before { color: var(--gold-400); }
.section--ink .process-step::after { border-color: rgba(255,255,255,.2); }

/* ==========================================================================
   10. Stitch rule & decorative
   ========================================================================== */

.stitch { border: 0; border-block-start: 2px dashed var(--border-strong); margin-block: var(--s-10); }
.selvedge { border-inline-start: 3px solid var(--gold-500); padding-inline-start: var(--s-4); }

.pull-quote {
  border-inline-start: 4px solid var(--gold-500);
  padding-inline-start: var(--s-6);
  font-family: var(--font-display); font-size: var(--fs-xl);
  line-height: 1.4; color: var(--ink-900); font-weight: 500;
}

/* ==========================================================================
   11. Breadcrumbs & pagination
   ========================================================================== */

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; margin: 0 0 var(--s-5); padding: 0; font-size: var(--fs-xs); }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.breadcrumb li + li::before { content: '/'; color: var(--ink-300); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink-800); font-weight: 600; }

.pagination { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; justify-content: center; margin-block-start: var(--s-10); list-style: none; padding: 0; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-inline-size: 42px; block-size: 42px;
  padding-inline: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink-700); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 600;
  transition: all var(--t-fast) var(--ease);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pagination [aria-current="page"] { background: var(--brand-700); border-color: var(--brand-700); color: var(--white); }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ==========================================================================
   12. Forms
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s-5); }
.form-grid--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field-label {
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink-800);
  display: flex; align-items: baseline; gap: 6px;
}
.field .req { color: var(--danger-500); font-weight: 700; }
.field .opt { color: var(--text-subtle); font-weight: 500; font-size: var(--fs-xs); }
.field-hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field-error { font-size: var(--fs-xs); color: var(--danger-700); font-weight: 600; display: flex; align-items: center; gap: 5px; }

.input, .select, .textarea {
  inline-size: 100%; padding: .78rem .9rem;
  background: var(--white); color: var(--ink-900);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: var(--fs-sm); line-height: 1.5;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.textarea { min-block-size: 130px; resize: vertical; }
.select {
  appearance: none; padding-inline-end: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A6780' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: var(--danger-500); background: var(--danger-100);
}
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }

.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; font-size: var(--fs-sm); line-height: 1.5; }
.check input[type="checkbox"], .check input[type="radio"] {
  inline-size: 20px; block-size: 20px; flex: none; margin-block-start: 2px;
  accent-color: var(--brand-600); cursor: pointer;
}

.check-card {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); background: var(--white); cursor: pointer;
  transition: all var(--t-fast) var(--ease); font-size: var(--fs-sm);
}
.check-card:hover { border-color: var(--brand-300); background: var(--brand-50); }
.check-card:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }

/* Honeypot — visually gone, still in the DOM for the bots that fill it. */
.hp-field { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---- File dropzone ---- */
.dropzone {
  position: relative; display: grid; place-items: center; gap: var(--s-2);
  padding: var(--s-10) var(--s-5); text-align: center;
  border: 2px dashed var(--border-strong); border-radius: var(--r-lg);
  background: var(--ink-50); cursor: pointer;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-500); background: var(--brand-50); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { inline-size: 34px; block-size: 34px; color: var(--brand-500); }
.dropzone strong { font-size: var(--fs-sm); }
.dropzone small { color: var(--text-muted); }

.file-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.file-list li {
  display: flex; align-items: center; gap: var(--s-3); margin: 0;
  padding: var(--s-3); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-sm); font-size: var(--fs-sm);
}
.file-list .name { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .size { color: var(--text-muted); font-size: var(--fs-xs); font-family: var(--font-mono); }
.file-list .rm { background: none; border: 0; color: var(--danger-500); cursor: pointer; padding: 4px; border-radius: var(--r-xs); }
.file-list .rm:hover { background: var(--danger-100); }

/* ==========================================================================
   13. Alerts & notices
   ========================================================================== */

.alert {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  border-inline-start: 4px solid; font-size: var(--fs-sm); line-height: 1.55;
  margin-block-end: var(--s-5);
}
.alert svg { inline-size: 20px; block-size: 20px; flex: none; margin-block-start: 1px; }
.alert--success { background: var(--success-100); border-color: var(--success-500); color: var(--success-700); }
.alert--error   { background: var(--danger-100);  border-color: var(--danger-500);  color: var(--danger-700); }
.alert--warning { background: var(--warning-100); border-color: var(--warning-500); color: var(--warning-700); }
.alert--info    { background: var(--info-100);    border-color: var(--info-500);    color: var(--brand-800); }

.toast-stack { position: fixed; inset-block-end: var(--s-5); inset-inline-end: var(--s-5); z-index: var(--z-toast); display: grid; gap: var(--s-2); max-inline-size: 340px; }
.toast {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  background: var(--ink-900); color: var(--white); font-size: var(--fs-sm);
  box-shadow: var(--sh-lg); animation: toastIn var(--t-base) var(--ease-out);
}
.toast--success { background: var(--success-700); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.empty-state {
  display: grid; place-items: center; gap: var(--s-4); text-align: center;
  padding: var(--s-16) var(--s-5);
  border: 2px dashed var(--border); border-radius: var(--r-lg); background: var(--ink-50);
}
.empty-state svg { inline-size: 46px; block-size: 46px; color: var(--ink-300); }
.empty-state h3 { margin: 0; }
.empty-state p { color: var(--text-muted); max-inline-size: 46ch; margin: 0; }

/* ==========================================================================
   14. Product detail
   ========================================================================== */

.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.gallery-main {
  position: relative; aspect-ratio: 1; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  display: grid; place-items: center;
}
.gallery-main img { inline-size: 100%; block-size: 100%; object-fit: contain; padding: 6%; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: var(--s-2); margin-block-start: var(--s-3); flex-wrap: wrap; }
.gallery-thumb {
  inline-size: 74px; block-size: 74px; padding: 5px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  background: var(--white); cursor: pointer; overflow: hidden;
  transition: border-color var(--t-fast) var(--ease);
}
.gallery-thumb img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.gallery-thumb:hover { border-color: var(--accent-ring); }
.gallery-thumb[aria-current="true"] { border-color: var(--accent); }

.spec-table { inline-size: 100%; font-size: var(--fs-sm); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.spec-table th, .spec-table td { padding: var(--s-3) var(--s-4); text-align: start; vertical-align: top; border-block-end: 1px solid var(--ink-100); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-block-end: 0; }
.spec-table th { inline-size: 38%; font-weight: 600; color: var(--text-muted); background: var(--ink-50); }
.spec-table td { color: var(--ink-800); }
.spec-table tbody tr:hover td, .spec-table tbody tr:hover th { background: var(--accent-soft); }

.product-headline { margin-block-end: var(--s-5); }
.product-headline h1 { margin-block-end: var(--s-3); }
.product-cta-panel {
  padding: var(--s-5); border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--brand-50), var(--white));
  border: 1px solid var(--brand-100);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(5, 9, 15, .93);
  display: grid; place-items: center; padding: var(--s-8) var(--s-5);
  opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-inline-size: min(1100px, 92vw); max-block-size: 84vh; object-fit: contain; border-radius: var(--r-sm); background: var(--white); }
.lightbox-caption { color: rgba(255,255,255,.8); text-align: center; margin-block-start: var(--s-4); font-size: var(--fs-sm); }
.lightbox-btn {
  position: absolute; inline-size: 50px; block-size: 50px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: var(--white); cursor: pointer; backdrop-filter: blur(8px);
  transition: background-color var(--t-fast) var(--ease);
}
.lightbox-btn:hover { background: rgba(255,255,255,.24); }
.lightbox-close { inset-block-start: var(--s-5); inset-inline-end: var(--s-5); }
.lightbox-prev  { inset-inline-start: var(--s-5); inset-block-start: 50%; translate: 0 -50%; }
.lightbox-next  { inset-inline-end: var(--s-5); inset-block-start: 50%; translate: 0 -50%; }

/* ==========================================================================
   15. Catalogue filters
   ========================================================================== */

.catalogue-layout { display: grid; grid-template-columns: 266px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

.filter-panel {
  position: sticky; inset-block-start: calc(var(--header-h) + var(--s-4));
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-block-end: 1px solid var(--border); }
.filter-head h2 { font-size: var(--fs-md); margin: 0; }
.filter-group { border-block-end: 1px solid var(--ink-100); padding: var(--s-4) var(--s-5); }
.filter-group:last-of-type { border-block-end: 0; }
.filter-group h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); margin-block-end: var(--s-3); }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-block-size: 250px; overflow-y: auto; }
.filter-list li { margin: 0; }
.filter-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: 7px 9px; border-radius: var(--r-xs); font-size: var(--fs-sm);
  color: var(--ink-700); text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter-list a:hover { background: var(--accent-soft); color: var(--accent); }
.filter-list a.is-on { background: var(--accent); color: var(--white); font-weight: 600; }
.filter-list .n { font-size: var(--fs-2xs); opacity: .65; font-family: var(--font-mono); }

.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-end: var(--s-5); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 6px 5px 11px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--white);
  font-size: var(--fs-xs); font-weight: 600; text-decoration: none;
}
.filter-chip:hover { color: var(--white); opacity: .9; }
.filter-chip .x { display: grid; place-items: center; inline-size: 17px; block-size: 17px; border-radius: 50%; background: rgba(255,255,255,.26); }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-block-end: var(--s-6);
  padding-block-end: var(--s-4); border-block-end: 1px solid var(--border);
}
.filter-trigger { display: none; }

/* ==========================================================================
   16. Gallery (public)
   ========================================================================== */

.gallery-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-end: var(--s-8); }
.gallery-tab {
  padding: .5rem 1rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--white);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-600);
  text-decoration: none; transition: all var(--t-fast) var(--ease);
}
.gallery-tab:hover { border-color: var(--accent); color: var(--accent); }
.gallery-tab.is-on { background: var(--brand-700); border-color: var(--brand-700); color: var(--white); }

/* One uniform square per image.
   The band used to make tiles 0 and 5 span two columns at 2:1. That is a 2.06x
   larger `cover` scale factor than the square tiles, applied to sources that
   are all 1:1 — so the same artwork appeared at two sizes side by side, and
   care-label-satin lost ~10px off the top and bottom to the crop. Across a set
   that mixes full-bleed photographs with drawn specimens, a mixed rhythm reads
   as a fault rather than a design; gallery/index.php, facilities.php and
   products/index.php had already settled on uniform squares. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-4); }

/* grid-auto-flow: dense removed with the spans. Dense let visual order diverge
   from DOM order, while the lightbox pages by indexOf(trigger) on DOM order. */

/* Bands showing a known, small set get an explicit column count, so eight
   images land 4 x 2 instead of the 5 + 3 auto-fill gives at 1480px. */
.photo-grid--fixed { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.photo-item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-md); background: var(--ink-100);
  aspect-ratio: 1; cursor: zoom-in; border: 1px solid var(--border);
}
.photo-item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.photo-item--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.photo-item img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out), filter var(--t-base) var(--ease); }
.photo-item:hover img { transform: scale(1.06); }

/* Drawn specimens carry their own white ground and their own margin, so they
   sit contained on a mat — the treatment the lightbox already gives every
   image. Cropping them is what made eight tiles look like eight sizes. */
.photo-item--specimen { background: var(--ink-50); }
.photo-item--specimen img { object-fit: contain; padding: var(--s-5); }
.photo-item--specimen:hover img { transform: none; }
.photo-item figcaption {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: var(--s-6) var(--s-4) var(--s-3);
  background: linear-gradient(to top, rgba(5,9,15,.86), transparent);
  color: var(--white); font-size: var(--fs-xs); font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}
.photo-item:hover figcaption, .photo-item:focus-within figcaption { opacity: 1; transform: none; }

.album-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); text-decoration: none;
  aspect-ratio: 4 / 3; border: 1px solid var(--border);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.album-card img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.album-card:hover img { transform: scale(1.06); }
.album-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-5);
  background: linear-gradient(to top, rgba(6,20,54,.92) 0%, rgba(6,20,54,.28) 45%, transparent 75%);
  color: var(--white);
}
.album-card-overlay h3 { color: var(--white); font-size: var(--fs-lg); margin: 0 0 4px; }
.album-card-overlay span { font-size: var(--fs-xs); color: rgba(255,255,255,.74); }

/* ==========================================================================
   17. Certificates & clients
   ========================================================================== */

.cert-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5);
  align-items: center; padding: var(--s-5);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.cert-card:hover { box-shadow: var(--sh-md); border-color: var(--accent-ring); }
.cert-seal {
  inline-size: 84px; block-size: 84px; flex: none;
  display: grid; place-items: center; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--border); padding: 6px;
}
.cert-seal img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.cert-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-3); margin-block-start: var(--s-3); }
.cert-meta dt { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); }
.cert-meta dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800); }
.cert-meta dd.mono { font-family: var(--font-mono); }

.client-list { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.client-list li { margin: 0; }
.client-pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: .65rem 1.1rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 650; font-size: var(--fs-sm);
  color: var(--ink-800);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.client-pill:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: var(--sh-sm); }
/* Country token. ISO 3166-1 alpha-2 in mono, deliberately NOT a flag emoji:
   regional-indicator pairs render as two empty letter-boxes on Windows Chrome
   and Edge, which is what both the Dhaka operators reviewing this page and a
   large share of European desktop buyers would actually see. Two letters read
   identically everywhere and are what a merchandiser scans on a shipping doc. */
.flag {
  display: inline-flex; align-items: center; justify-content: center;
  min-inline-size: 1.85em; padding: 1px 5px;
  border-radius: var(--r-xs);
  background: var(--ink-100); color: var(--text-muted);
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: .045em; line-height: 1.55;
}
.client-pill .flag { font-size: var(--fs-xs); color: var(--text-subtle); font-weight: 500; }
.section--ink .flag { background: rgba(255,255,255,.13); color: rgba(255,255,255,.82); }
.section--ink .client-pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--white); }
.section--ink .client-pill:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); }

/* ==========================================================================
   18. Compliance strip
   ========================================================================== */

.compliance-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s-4); }
.compliance-item {
  padding: var(--s-5); border-radius: var(--r-md);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  transition: background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.compliance-item:hover { background: rgba(255,255,255,.11); transform: translateY(-3px); }
.compliance-item b { display: block; color: var(--white); font-family: var(--font-display); font-size: var(--fs-md); margin-block-end: 6px; }
.compliance-item span { font-size: var(--fs-xs); color: rgba(255,255,255,.66); line-height: 1.5; }

/* ==========================================================================
   19. Footer
   ========================================================================== */

.site-footer {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(39,87,214,.30), transparent 60%),
    linear-gradient(180deg, var(--brand-950), #030A1C);
  color: rgba(255,255,255,.66);
  padding-block: var(--s-16) var(--s-6);
  font-size: var(--fs-sm);
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: var(--s-8); }
.site-footer h4 {
  color: var(--white); font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: .12em; margin-block-end: var(--s-4);
}
.site-footer a { color: rgba(255,255,255,.68); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-nav li { margin: 0; }
.footer-brand .brand-name { color: var(--white); font-size: 1.15rem; }
.footer-brand .brand-sub  { color: var(--gold-400); }
.footer-about { margin-block: var(--s-4); max-inline-size: 40ch; line-height: 1.6; }

.footer-contact { display: grid; gap: var(--s-3); }
.footer-contact-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer-contact-item svg { inline-size: 17px; block-size: 17px; flex: none; margin-block-start: 3px; color: var(--gold-400); }

.footer-cert { display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sm); margin-block-start: var(--s-5); }
.footer-cert img { inline-size: 44px; block-size: 44px; object-fit: contain; background: transparent; }
.footer-cert b { display: block; color: var(--white); font-size: var(--fs-xs); }
.footer-cert span { font-size: var(--fs-2xs); font-family: var(--font-mono); color: rgba(255,255,255,.55); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  margin-block-start: var(--s-12); padding-block-start: var(--s-6);
  border-block-start: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-xs); color: rgba(255,255,255,.48);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }

.to-top {
  position: fixed; inset-block-end: var(--s-6); inset-inline-end: var(--s-6);
  inline-size: 46px; block-size: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-700); color: var(--white);
  border: 0; cursor: pointer; box-shadow: var(--sh-brand); z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); }

/* ==========================================================================
   20. Cookie banner
   ========================================================================== */

.cookie-bar {
  position: fixed; inset-inline: var(--s-4); inset-block-end: var(--s-4); z-index: var(--z-toast);
  max-inline-size: 620px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--ink-900); color: rgba(255,255,255,.82);
  border-radius: var(--r-md); box-shadow: var(--sh-xl);
  font-size: var(--fs-sm);
  animation: toastIn var(--t-slow) var(--ease-out);
}
.cookie-bar p { flex: 1; min-inline-size: 220px; margin: 0; }
.cookie-bar a { color: var(--gold-400); }

/* ==========================================================================
   21. Page hero (interior pages)
   ========================================================================== */

.page-hero {
  position: relative; margin-block-start: calc(var(--header-h) * -1);
  padding-block: calc(var(--header-h) + var(--s-12)) var(--s-12);
  background:
    radial-gradient(900px 420px at 12% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 62%),
    linear-gradient(150deg, var(--brand-950), var(--brand-800));
  color: rgba(255,255,255,.8); overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; opacity: .22;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.04) 0 1px, transparent 1px 10px);
  mask-image: radial-gradient(70% 100% at 30% 0%, #000, transparent);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-inline-size: 20ch; }
.page-hero p { color: rgba(255,255,255,.74); font-size: var(--fs-lg); max-inline-size: 62ch; }
.page-hero .breadcrumb li, .page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: var(--gold-400); }
.page-hero .breadcrumb [aria-current] { color: var(--white); }
.page-hero .breadcrumb li + li::before { color: rgba(255,255,255,.35); }

/* ==========================================================================
   22. Prose (admin-authored rich text)
   ========================================================================== */

.prose { max-inline-size: var(--container-text); font-size: var(--fs-md); line-height: var(--lh-body); color: var(--ink-700); }
.prose h2 { margin-block: var(--s-10) var(--s-4); font-size: var(--fs-2xl); }
.prose h3 { margin-block: var(--s-8) var(--s-3); font-size: var(--fs-xl); }
.prose h2:first-child, .prose h3:first-child { margin-block-start: 0; }
.prose ul, .prose ol { margin-block-end: var(--s-5); }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: var(--s-6) 0; padding: var(--s-4) var(--s-6);
  border-inline-start: 4px solid var(--gold-500); background: var(--gold-50);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: normal; color: var(--ink-800);
}
.prose table { margin-block: var(--s-6); font-size: var(--fs-sm); }
.prose th, .prose td { padding: var(--s-3); border: 1px solid var(--border); text-align: start; }
.prose th { background: var(--ink-50); font-weight: 650; }
.prose a { font-weight: 500; }
.prose img { border-radius: var(--r-md); margin-block: var(--s-6); }

/* ==========================================================================
   23. Editorial components (about · quality · clients · contact)
   ========================================================================== */

/* ---- Split: prose beside a piece of evidence ---- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--narrow-media { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--flip > :first-child { order: 2; }

/* A stack of specimen shots, overlapped like samples on a desk. */
.split-media { position: relative; }
.split-media img {
  inline-size: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--white);
  box-shadow: var(--sh-lg);
}
.split-media--stack { padding-block-end: 16%; padding-inline-end: 16%; }
.split-media--stack img:first-child { aspect-ratio: 4 / 3; object-fit: cover; }
.split-media--stack img + img {
  position: absolute; inset-block-end: 0; inset-inline-end: 0;
  inline-size: 46%; aspect-ratio: 1; object-fit: cover;
  border: 5px solid var(--white); box-shadow: var(--sh-xl);
}

/* A single figure that carries a caption chip. */
.evidence { position: relative; }
.evidence-note {
  position: absolute; inset-block-end: var(--s-4); inset-inline-start: var(--s-4);
  display: inline-flex; align-items: center; gap: 7px;
  padding: .5rem .85rem; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(10px);
  font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-800);
  box-shadow: var(--sh-md);
}
.evidence-note svg { inline-size: 14px; block-size: 14px; color: var(--accent); }

/* ---- Numbered fact band ---- */
.fact-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s-8) var(--s-6);
}
.fact b {
  display: block; font-family: var(--font-display);
  font-size: var(--fs-3xl); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: var(--accent);
}
.fact span { display: block; margin-block-start: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); }
.section--ink .fact b { color: var(--gold-400); }
.section--ink .fact span { color: rgba(255,255,255,.66); }

/* ---- Timeline ---- */
.timeline { position: relative; display: grid; gap: var(--s-8); }
.timeline::before {
  content: ''; position: absolute; inset-block: 6px 6px;
  inset-inline-start: 7px; inline-size: 2px;
  background: linear-gradient(var(--accent), var(--border));
}
.timeline-item { position: relative; padding-inline-start: var(--s-10); }
.timeline-item::before {
  content: ''; position: absolute; inset-block-start: 4px; inset-inline-start: 0;
  inline-size: 16px; block-size: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.timeline-year {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .06em; color: var(--accent);
}
.timeline-item h3 { font-size: var(--fs-md); margin-block: 4px var(--s-2); }
.timeline-item p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* ---- Spec / test table ---- */
.data-table {
  inline-size: 100%; font-size: var(--fs-sm);
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  border-collapse: separate; border-spacing: 0;
}
.data-table th, .data-table td {
  padding: var(--s-4); text-align: start; vertical-align: top;
  border-block-end: 1px solid var(--ink-100);
}
.data-table thead th {
  background: var(--ink-50); font-size: var(--fs-2xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle);
  white-space: nowrap;
}
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-block-end: 0; }
.data-table tbody tr:hover td, .data-table tbody tr:hover th { background: var(--accent-soft); }
.data-table td.mono, .data-table th.mono { font-family: var(--font-mono); }

/* ---- Checklist ---- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; font-size: var(--fs-sm); line-height: 1.55; }
.checklist svg { inline-size: 19px; block-size: 19px; flex: none; margin-block-start: 1px; color: var(--success-500); }
.section--ink .checklist li { color: rgba(255,255,255,.78); }
.section--ink .checklist svg { color: var(--gold-400); }

/* ---- Client cards ---------------------------------------------------------
   The plate carries a permitted buyer logo, or — the default, and the state
   this ships in — the buyer's name set as a wordmark. See
   app/views/partials/client-card.php for why the no-logo state is the one
   that had to be designed well. */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: var(--s-4); }
.client-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.client-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--accent-ring); }

.client-plate {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  block-size: 84px; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  /* A faint accent wash over paper, not a colour swatch. A reference wall of
     buyers should read as a printed sheet of marks — the accent identifies the
     card and tints the selvedge rule, it does not colour the whole plate. */
  background: linear-gradient(180deg, var(--white), var(--ink-50) 78%);
  box-shadow: inset 0 0 0 1px var(--border);
}
/* Selvedge rule — the PRD's woven-edge device, reused as the plate's baseline. */
.client-plate::after {
  content: ''; position: absolute; inset-inline: 30%; inset-block-end: 0;
  block-size: 3px; border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.client-card:hover .client-plate { background: linear-gradient(180deg, var(--white), var(--accent-soft) 96%); }
.client-plate--logo { background: var(--ink-50); }
.client-plate img { max-block-size: 46px; max-inline-size: 100%; object-fit: contain; }

.client-wordmark {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; text-align: center; text-wrap: balance;
  /* Near-black, the way a wordmark actually prints. */
  line-height: 1.04; color: var(--ink-900);
  max-inline-size: 100%;
}
.client-wordmark span { display: block; overflow-wrap: anywhere; }
/* Optical steps, chosen in PHP from the longest word so the plate never
   overflows and short names are not timidly small. */
.client-wordmark--xl { font-size: 1.5rem;   letter-spacing: -0.035em; }
.client-wordmark--lg { font-size: 1.2rem;   letter-spacing: -0.028em; }
.client-wordmark--md { font-size: .95rem;   letter-spacing: -0.018em; }
.client-wordmark--sm { font-size: .8rem;    letter-spacing: -0.005em; }

.client-card b { font-size: var(--fs-sm); line-height: 1.35; color: var(--ink-900); }
.client-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-2xs); color: var(--text-subtle);
}
.client-meta svg { inline-size: 13px; block-size: 13px; }

/* ---- Compact density for the homepage band ---- */
.client-grid--compact { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--s-3); }
.client-card--compact { gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-md); }
.client-card--compact .client-plate { block-size: 64px; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); }
.client-card--compact .client-plate img { max-block-size: 34px; }
.client-card--compact .client-wordmark--xl { font-size: 1.2rem; }
.client-card--compact .client-wordmark--lg { font-size: 1rem; }
.client-card--compact .client-wordmark--md { font-size: .84rem; }
.client-card--compact .client-wordmark--sm { font-size: .72rem; }
.client-card--compact b { font-size: var(--fs-xs); }

/* ---- "+N more" tile, so a capped grid is honest rather than silently short ---- */
.client-card--more {
  align-items: center; justify-content: center; text-align: center; gap: 4px;
  border-style: dashed; border-color: var(--accent-ring); text-decoration: none;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
}
.client-card--more span { font-size: var(--fs-2xs); font-weight: 500; color: var(--text-muted); }
.client-card--more:hover { color: var(--accent); }

/* ---- Market list ---- */
.market-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.market-list li { margin: 0; }
.market-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: .5rem .9rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: var(--fs-xs); font-weight: 600; color: var(--white);
}
.market-tag .n { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--gold-400); }
/* Same tag on a light band (the homepage clients section is not .section--ink). */
.market-list--light .market-tag {
  background: var(--white); border-color: var(--border); color: var(--ink-800);
}
.market-list--light .market-tag .n { color: var(--brand-700); }

/* ---- Contact tiles ---- */
/* Its own track sizing rather than .grid--4: these tiles put an icon beside
   the text, so the two-column floor .grid--4 takes below 480px wraps an email
   address mid-word. */
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.contact-tile {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  text-decoration: none; color: inherit;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--accent-ring); color: inherit; }
.contact-tile .ico {
  inline-size: 44px; block-size: 44px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.contact-tile b { display: block; font-size: var(--fs-sm); margin-block-end: 3px; }
.contact-tile span { display: block; font-size: var(--fs-xs); color: var(--text-muted); word-break: break-word; }

/* ---- Site card with an embedded map ---- */
.site-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.site-map { position: relative; aspect-ratio: 16 / 10; background: var(--ink-100); }
.site-map iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.site-card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.site-card-body h3 { font-size: var(--fs-md); margin: 0; }
.site-role {
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.site-card-foot { margin-block-start: auto; padding-block-start: var(--s-3); border-block-start: 1px dashed var(--border); }

/* ---- FAQ ---- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color var(--t-fast) var(--ease);
}
.faq details[open] { border-color: var(--accent-ring); box-shadow: var(--sh-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); cursor: pointer; list-style: none;
  font-weight: 650; font-size: var(--fs-sm); color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; inline-size: 10px; block-size: 10px;
  border-inline-end: 2px solid var(--accent); border-block-end: 2px solid var(--accent);
  rotate: 45deg; transition: rotate var(--t-base) var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; }
.faq summary:hover { background: var(--accent-soft); }
.faq-body { padding: 0 var(--s-5) var(--s-5); font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; }

/* ---- Lapsed-certificate notice ---- */
.cert-status {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6);
  align-items: start; padding: var(--s-6);
  background: var(--white); border: 1px solid var(--border);
  border-inline-start: 4px solid var(--warning-500); border-radius: var(--r-lg);
}
.cert-status img { inline-size: 180px; max-inline-size: 100%; border-radius: var(--r-sm); border: 1px solid var(--border); }

/* ==========================================================================
   24. Responsive
   ========================================================================== */

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

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

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

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
  .mega-inner { grid-template-columns: minmax(0, 1fr); }
  .mega-aside { display: none; }
}

@media (max-width: 1023px) {
  .split, .split--narrow-media { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
  .cert-status { grid-template-columns: minmax(0, 1fr); }

  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-tools .btn--quote-desktop { display: none; }
  /* The tools row is fixed-width, so the brand is the only part of the header
     that may give way; without this it forces the row wider than the viewport
     and the whole page scrolls sideways (PRD 10.6). */
  .site-header .brand { flex: 0 1 auto; min-inline-size: 0; }
  .site-header .brand-text { min-inline-size: 0; }
  .site-header .brand-name { overflow: hidden; }
  .header-tool { inline-size: 44px; block-size: 44px; }
  .catalogue-layout { grid-template-columns: minmax(0, 1fr); }
  .filter-panel {
    position: fixed; inset-block: 0; inset-inline-end: 0; z-index: var(--z-drawer);
    inline-size: min(360px, 90vw); border-radius: 0; overflow-y: auto;
    transform: translateX(102%); transition: transform var(--t-slow) var(--ease-out);
    box-shadow: var(--sh-xl);
  }
  .filter-panel.is-open { transform: none; }
  .filter-trigger { display: inline-flex; }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); }
  .hero-stage { max-inline-size: 460px; margin-inline: auto; }
  .action-bar { display: flex; }
  body { padding-block-end: 76px; }
  .to-top { inset-block-end: calc(76px + var(--s-4)); }
  .cookie-bar { inset-block-end: calc(76px + var(--s-3)); }
}

@media (max-width: 767px) {
  /* The drawer carries its own language chips, so the header switcher is
     redundant here and its ~70px is what the row cannot afford on a phone. */
  .site-header .lang-switch { display: none; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: var(--s-2); }
  .photo-grid--fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-item--wide, .photo-item--tall { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .cert-card { grid-template-columns: minmax(0, 1fr); }
  .process-step::after { display: none; }
  .hero-proof { gap: var(--s-5); }
  .hero-proof-item b { font-size: var(--fs-xl); }
  .spec-table th { inline-size: 44%; }
  .lightbox-prev { inset-inline-start: var(--s-2); }
  .lightbox-next { inset-inline-end: var(--s-2); }
  .client-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .client-grid--compact { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); }
  .client-card--compact .client-plate { block-size: 54px; }
}

@media (max-width: 559px) {
  /* Two-up cards leave the family label ~90px beside the code chip, which
     truncates "Wood button" to "WOOD B". Let the row wrap instead — grid rows
     stretch, so the cards in a row stay the same height either way. */
  .product-card-eyebrow { flex-wrap: wrap; row-gap: 4px; }
  .product-card-family { white-space: normal; overflow: visible; }
  .product-card-meta { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .product-card-foot { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .product-card-foot .quote-add { justify-content: center; }
}

@media (max-width: 479px) {
  /* minmax(0,…) — a plain 1fr floors at the card's min-content width, which at
     320px is wider than half the container and scrolls the page sideways. */
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-sub { display: none; }

  /* 320px budget: 288px of content = 136px brand + 8px gap + 144px tools. */
  .header-inner { gap: var(--s-2); }
  .header-tools { gap: 6px; }
  .site-header .brand { gap: var(--s-2); }
  .site-header .brand-mark { inline-size: 36px; block-size: 36px; }
  .site-header .brand-name { font-size: 0.875rem; }

  /* A label like "Request a quote for this item" is wider than the whole
     viewport here, and .btn is nowrap by default. */
  .btn { white-space: normal; text-align: center; }

  .action-bar { padding-inline: var(--s-3); }
  .action-bar .btn { padding-inline: var(--s-3); }
  .gallery-thumb { inline-size: 58px; block-size: 58px; }
}

/* ==========================================================================
   25. Motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-chip { animation: none; }
}

@media print {
  .site-header, .site-footer, .action-bar, .to-top, .cookie-bar,
  .drawer, .filter-panel, .hero-stage, .btn { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .hero, .page-hero, .section--ink { background: #fff !important; color: #000 !important; margin: 0; padding-block: var(--s-6); }
  .hero h1, .page-hero h1, .section--ink h2 { color: #000 !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 10px; color: #555; }
  .card, .product-card, .cert-card { break-inside: avoid; border: 1px solid #ccc; }
}
