/* RSG dark theme (v4) — one graphite world for every public page.

   Loaded after tokens.css + base.css + the page stylesheet. It does three things:
     1. re-points the design tokens at the graphite palette the v2 homepage used, so
        every component built on tokens turns dark without being rewritten;
     2. repairs the places where a hard-coded light colour or a "white text on brand"
        assumption would break on a dark ground;
     3. adds the immersive pieces: full-bleed photographic page heroes whose scrim
        melts into the page, the facts row under them, photographic closing bands.

   Colour roles
     canvas  graphite (hue ~255, very low chroma) so photographs sit on the page;
     ink     three tiers of cool off-white, all >= 5:1 on canvas and on surfaces;
     blue    #0a63c4 (logo blue) is the FILL colour for actions; on dark, text links
             and focus rings use the lighter --brand so they clear 4.5:1;
     white   is reserved for the wells that hold white-backdrop catalogue photos.
   CSP is style-src 'self': nothing here relies on inline styles. */

:root {
  color-scheme: dark;

  --brand: #8cc6ff;
  --brand-fill: #0a63c4;
  --brand-hover: #2673df;
  --brand-strong: #084a95;
  --brand-tint: rgba(125, 185, 255, 0.13);
  --brand-ring: rgba(140, 198, 255, 0.45);

  --canvas: #0b0f13;
  --surface: #171b20;
  --surface-muted: #11151a;
  --surface-sunken: #20252b;
  --field: #0d1116;
  --hairline: #3a4048;
  --hairline-soft: #262b31;

  --ink: #f2f4f6;
  --ink-soft: #c9cdd2;
  --ink-muted: #a8adb4;
  --ink-faint: #8a9098;

  --hero-mist: var(--canvas);
  --hero-mist-edge: var(--hairline-soft);
  --canvas-dark: #080b0e;
  --surface-dark: #0e1216;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 10px 30px rgba(10, 99, 196, 0.35);

  --scrim: 11, 15, 19;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --blur: saturate(140%) blur(14px);

  scrollbar-color: #424850 var(--canvas);
}

body {
  background: var(--canvas);
  color: var(--ink);
  caret-color: var(--brand);
}

::selection {
  background: #2b5f9c;
  color: #fff;
}

a,
button,
summary {
  -webkit-tap-highlight-color: rgba(140, 198, 255, 0.18);
}

.skip-link {
  background: var(--ink);
  color: var(--canvas);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--brand-fill);
  --btn-fg: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn:active {
  --btn-bg: var(--brand-strong);
}

.btn.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.btn.ghost:hover {
  --btn-bg: var(--surface-sunken);
}

.btn.light {
  --btn-bg: #f2f4f6;
  --btn-fg: #0b0f13;
  box-shadow: none;
}

.btn.light:hover {
  --btn-bg: #fff;
}

.btn.quiet {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  box-shadow: none;
}

.btn.quiet:hover,
.btn.quiet:active {
  --btn-bg: transparent;
}

/* ------------------------------------------------------------- top banner */
/* Dark for the whole visit. motion.js still toggles .is-stuck, which only firms
   up the bar once the page has scrolled under it. */

.topbar {
  background: rgba(var(--scrim), 0.78);
  color: var(--ink);
}

.topbar.is-stuck {
  background: rgba(var(--scrim), 0.92);
  border-bottom-color: var(--hairline-soft);
}

.brand-logo {
  filter: brightness(0) invert(1);
}

/* The logo tagline was 9px site-wide; 11px is the legibility floor. */
.topbar .brand > span small,
footer .brand > span small {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.topbar nav a {
  position: relative;
  color: var(--ink-soft);
}

.topbar nav a:hover {
  background: var(--surface-sunken);
  color: #fff;
}

.topbar nav a.active,
.topbar nav a[aria-current="page"] {
  color: #fff;
}

/* Where am I: a short bar under the current section. */
.topbar nav a.active::after,
.topbar nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: var(--space-3);
  inset-block-end: -9px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-actions select,
.menu {
  background: var(--surface-sunken);
  color: var(--ink);
}

.nav-actions select:hover,
.menu:hover {
  background: #2a3037;
}

@media (max-width: 960px) {
  /* Full-height sheet: the links, then the quote action pinned at the bottom so
     the primary action is one thumb-reach away on a phone. (The bar carries a
     backdrop-filter, so the sheet is absolutely positioned inside it.) */
  .topbar nav.open {
    height: calc(100dvh - var(--topbar-h));
    padding: var(--space-5) var(--gutter) 112px;
    background: var(--canvas);
    border-bottom: 0;
    box-shadow: none;
    overflow-y: auto;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .topbar nav.open a {
    padding: var(--space-4) var(--space-2);
    border-radius: 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 1.1875rem;
    font-weight: 560;
    color: var(--ink);
  }
  .topbar nav.open a:hover {
    background: none;
  }
  .topbar nav.open a.active::after,
  .topbar nav.open a[aria-current="page"]::after {
    inset: 50% auto auto calc(var(--space-3) * -1);
    width: 3px;
    height: 20px;
    transform: translateY(-50%);
  }
  .topbar nav.open ~ .nav-actions .btn {
    position: absolute;
    inset-inline: var(--gutter);
    inset-block-start: calc(100dvh - 84px);
    z-index: 2;
    display: inline-flex;
    min-height: 52px;
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .topbar {
    gap: var(--space-3);
  }
  .topbar .brand > span small {
    display: none;
  }
  .nav-actions {
    gap: var(--space-2);
  }
}

@media (max-width: 340px) {
  .topbar {
    padding-inline: 12px;
  }
  .nav-actions select {
    padding-inline: 6px;
  }
}

/* --------------------------------------------------------------- footer */

footer {
  background: var(--canvas-dark);
  border-top-color: var(--hairline-soft);
  color: var(--ink-soft);
}

footer .brand > span {
  color: var(--ink);
}

footer > div {
  min-width: 0;
}

footer > div b {
  color: var(--ink-faint);
}

footer > div a {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

footer > div a:hover {
  color: #fff;
}

footer .copyright {
  border-top-color: var(--hairline-soft);
  color: var(--ink-faint);
}

/* --------------------------------------------------------- dialog + forms */

dialog {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline-soft), var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(4, 6, 8, 0.66);
}

.modal-head {
  background: linear-gradient(var(--surface) 78%, rgba(23, 27, 32, 0));
}

/* No label above the heading: the heading says it. */
.modal-head .eyebrow,
.brand-picker-head .eyebrow,
.sg-location-label {
  display: none;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.form-grid-page input,
.form-grid-page select,
.form-grid-page textarea,
.basket-quantity,
.product-quantity input {
  background: var(--field);
  color: var(--ink);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder,
.form-grid-page input::placeholder,
.form-grid-page textarea::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.form-grid input:hover,
.form-grid textarea:hover,
.form-grid-page input:hover,
.form-grid-page textarea:hover {
  border-color: #4a5159;
}

input[type="file"]::file-selector-button {
  margin-inline-end: var(--space-3);
  padding: 6px var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}

.form-status.is-success {
  background: var(--brand-tint);
}

.form-status.is-error {
  background: rgba(255, 96, 76, 0.12);
  color: #ffb9ad;
}

.basket-item-thumb,
.basket-item-body > img {
  background: #fff;
}

.basket-item-body > img {
  box-shadow: none;
}

.inq-unlisted {
  background: var(--brand-tint);
}

.home-scroll-nav {
  background: var(--surface);
  color: var(--ink-soft);
}

/* ------------------------------------------------- subpage hero (photo) */
/* A full-bleed photograph under a scrim that is solid behind the copy, open on
   the picture side and melts into the canvas at the bottom, where a facts row
   sits on the page itself. Same construction as the homepage hero. */

.industrial-page main,
.catalog-page main {
  position: relative;
}

.industrial-page .breadcrumbs {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  padding-top: var(--space-5);
  background: none;
  color: var(--ink-muted);
}

.industrial-page .breadcrumbs > span:last-child {
  color: var(--ink);
}

.industrial-page .breadcrumbs a:hover,
.breadcrumbs a:hover {
  color: #fff;
}

.sg-hero {
  display: grid;
  align-items: end;
  min-height: clamp(400px, 58vh, 620px);
  padding-block: clamp(96px, 15vh, 160px) 0;
  background: var(--canvas);
  border-bottom: 0;
  color: var(--ink);
}

.sg-hero-bg {
  position: absolute;
  inset: -8% 0 0 0;
  z-index: -2;
  width: 100%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}

.sg-hero::before {
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  filter: none;
  background:
    linear-gradient(90deg, rgba(var(--scrim), 0.95) 0%, rgba(var(--scrim), 0.84) 36%, rgba(var(--scrim), 0.4) 66%, rgba(var(--scrim), 0.1) 100%),
    linear-gradient(180deg, rgba(var(--scrim), 0.72) 0%, rgba(var(--scrim), 0) 26%, rgba(var(--scrim), 0) 52%, var(--canvas) 96%);
}

/* A hero with no photograph keeps a quiet light from the brand side. */
.sg-hero:not(:has(.sg-hero-bg))::before {
  background:
    radial-gradient(60% 120% at 88% 0%, rgba(10, 99, 196, 0.2), transparent 70%),
    linear-gradient(180deg, var(--surface-muted), var(--canvas));
}

.sg-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 5vh, 56px);
}

.sg-kicker {
  display: none;
}

.sg-hero h1 {
  max-width: 17em;
  font-size: clamp(2.125rem, min(4.5vw, 7.2vh), 4.125rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}

.sg-hero h1 em {
  color: #fff;
}

.sg-lead {
  max-width: 54ch;
  margin-top: clamp(14px, 2.2vh, 22px);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.sg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: clamp(22px, 3.6vh, 34px);
}

.sg-hero-actions .btn {
  min-height: 50px;
  padding-inline: var(--space-6);
}

/* Photo credit line: plain text, top-right, level with the breadcrumb. */
.sg-hero-tag {
  position: absolute;
  z-index: 3;
  inset-block-start: var(--space-5);
  inset-inline-end: max(var(--gutter), calc((100% - var(--measure-wide)) / 2));
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-soft);
}

/* Facts: a plain row on the canvas under the photograph, one hairline above. */
.sg-hero-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.sg-hero-facts > div {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 4px;
  padding: var(--space-5) var(--space-5) var(--space-6) 0;
}

.sg-hero-facts > div + div {
  padding-inline-start: var(--space-5);
  border-top: 0;
  border-inline-start: 1px solid var(--hairline-soft);
}

.sg-hero-facts dd {
  order: -1;
  font-size: clamp(1.0625rem, 0.9rem + 0.75vw, 1.625rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.sg-hero-facts dt {
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.sg-hero + .sg-section,
.sg-hero + .sg-photo-section {
  padding-top: clamp(56px, 8vh, 104px);
}

@media (max-width: 960px) {
  .sg-hero {
    min-height: 0;
    padding-top: clamp(88px, 13vh, 120px);
  }
  .sg-hero::before {
    background:
      linear-gradient(90deg, rgba(var(--scrim), 0.9) 0%, rgba(var(--scrim), 0.62) 100%),
      linear-gradient(180deg, rgba(var(--scrim), 0.6) 0%, rgba(var(--scrim), 0) 30%, rgba(var(--scrim), 0) 46%, var(--canvas) 94%);
  }
  .sg-hero-tag {
    display: none;
  }
}

@media (max-width: 620px) {
  .sg-hero h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.4rem);
  }
  .sg-hero-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .sg-hero-facts > div,
  .sg-hero-facts > div + div {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: baseline;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-inline-start: 0;
  }
  .sg-hero-facts > div + div {
    border-top: 1px solid var(--hairline-soft);
  }
  .sg-hero-facts dd {
    order: 0;
    font-size: var(--text-base);
  }
  .sg-hero-actions .btn {
    flex: 1 1 auto;
  }
}

/* Slow life in the photograph: it settles in on load and drifts with scroll
   where scroll-driven animation exists. Content never depends on it. */
@media (prefers-reduced-motion: no-preference) {
  .sg-hero-bg,
  .catalog-hero-bg {
    animation: rsg-photo-in 1.4s var(--ease-expo) both;
  }
  @keyframes rsg-photo-in {
    from {
      opacity: 0;
      filter: brightness(0.5) blur(6px);
    }
  }
  @supports (animation-timeline: scroll()) {
    .sg-hero-bg,
    .catalog-hero-bg {
      animation: rsg-photo-in 1.4s var(--ease-expo) both, rsg-photo-drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 90vh;
    }
    @keyframes rsg-photo-drift {
      to {
        transform: translate3d(0, 7%, 0) scale(1.05);
      }
    }
  }
}

/* --------------------------------------------------------------- sections */

.sg-section-cold,
.sg-location-section {
  background: var(--surface-muted);
  box-shadow: inset 0 1px 0 var(--hairline-soft), inset 0 -1px 0 var(--hairline-soft);
}

.sg-section-heading h2 {
  color: #fff;
  letter-spacing: -0.03em;
}

.sg-section-heading p {
  color: var(--ink-soft);
  line-height: 1.65;
  text-wrap: pretty;
}

.sg-text-link {
  color: var(--brand);
}

.sg-text-link:hover {
  color: #fff;
}

.sg-fact,
.sg-process-step,
.sg-request-row,
.sg-certificate,
.sg-product-card,
.sg-faq details,
.contact-card {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.sg-fact:nth-child(4n + 1) {
  background: var(--brand-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.sg-fact:nth-child(4n + 1) span {
  color: #fff;
}

.sg-data-table {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.sg-section-cold .sg-data-table {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.sg-data-table th {
  color: var(--ink-muted);
}

.sg-process-step:hover,
.sg-request-row:hover,
.sg-product-card:hover {
  background: var(--surface-sunken);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-md);
}

/* Step numbers are a sequence, set in the page's own face. */
.sg-process-step b,
.oem-num {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

.sg-process-step h3,
.sg-request-row h3,
.sg-product-card h3 {
  color: #fff;
}

/* Photographs */

.sg-photo-band,
.sg-photo-card {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.sg-photo-band figcaption {
  background: linear-gradient(transparent, rgba(var(--scrim), 0.9));
}

.sg-photo-card figcaption {
  background: linear-gradient(transparent, rgba(var(--scrim), 0.9));
}

.sg-photo-card--document {
  background: var(--surface);
}

.sg-photo-card--document figcaption {
  background: linear-gradient(rgba(23, 27, 32, 0), var(--surface) 46%);
  color: var(--ink-soft);
}

.sg-certificate > a {
  background: var(--field);
}

.sg-certificate-open {
  background: var(--surface-sunken);
  color: var(--ink);
}

.sg-certificate figcaption strong {
  color: #fff;
}

/* White-backdrop catalogue photos keep a white well. */
.sg-part-strip li {
  background: #fff;
}

/* Export network: the company's own map, re-toned for the dark page. Its black
   ground is screened away so the map sits directly on the canvas. */
.sg-export-map {
  background: none;
  border-radius: 0;
}

.sg-export-map img {
  max-height: 72vh;
  mix-blend-mode: screen;
}

.sg-export-map figcaption {
  padding-inline: 0;
  text-align: center;
  color: var(--ink-faint);
}

.sg-market-line {
  justify-content: center;
  color: var(--ink-soft);
}

/* FAQ */

.sg-faq summary {
  color: var(--ink);
}

.sg-faq summary::after {
  background: var(--surface-sunken);
  color: var(--ink);
}

.sg-faq details[open] {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
}

.sg-faq details p {
  color: var(--ink-soft);
}

.sg-policy h2 {
  color: #fff;
}

/* Closing band: the road again. Picture, scrim and canvas edge in one layer
   stack, so no markup is needed for it. */
.sg-section:has(> .sg-cta),
.sg-section:has(> .sg-shell.sg-cta) {
  background:
    linear-gradient(90deg, rgba(var(--scrim), 0.95) 0%, rgba(var(--scrim), 0.8) 46%, rgba(var(--scrim), 0.5) 100%),
    linear-gradient(180deg, var(--canvas) 0%, rgba(var(--scrim), 0) 30%, rgba(var(--scrim), 0) 72%, var(--canvas-dark) 100%),
    url("/assets/images/hightech/contact-highway-1760.webp?v=2") 50% 62% / cover no-repeat,
    var(--canvas-dark);
  padding-block: clamp(72px, 13vh, 150px);
}

.sg-cta h2 {
  max-width: 22ch;
  font-size: clamp(1.75rem, min(3.2vw, 5.4vh), 3rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: #fff;
}

.sg-section:has(> .sg-cta) .sg-cta .btn,
.sg-section:has(> .sg-shell.sg-cta) .sg-cta .btn,
.sg-shell > .sg-section-heading + .sg-cta .btn {
  --btn-bg: var(--brand-fill);
  --btn-fg: #fff;
  min-height: 54px;
}

.sg-section:has(> .sg-cta) .sg-cta .btn:hover,
.sg-section:has(> .sg-shell.sg-cta) .sg-cta .btn:hover,
.sg-shell > .sg-section-heading + .sg-cta .btn:hover {
  --btn-bg: var(--brand-hover);
}

.sg-shell > .sg-section-heading + .sg-cta {
  background:
    linear-gradient(90deg, rgba(var(--scrim), 0.94) 0%, rgba(var(--scrim), 0.72) 60%, rgba(var(--scrim), 0.5) 100%),
    url("/assets/images/hightech/contact-highway-1760.webp?v=2") 50% 62% / cover no-repeat,
    var(--surface);
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

/* Contact */

.contact-card h2,
.contact-form h2 {
  color: #fff;
}

.contact-card dl > div {
  border-top-color: var(--hairline-soft);
}

.contact-card dd a {
  color: var(--brand);
}

.contact-form {
  box-shadow: 0 0 0 1px var(--hairline-soft), var(--shadow-md);
}

.contact-basket-panel .basket,
.basket {
  background: var(--surface-muted);
}

.basket-line {
  background: var(--surface-sunken);
}

.sg-location-copy h2 {
  color: #fff;
}

.sg-map-link {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.sg-map-link:hover {
  background: var(--brand-fill);
}

.sg-location-map {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

/* OpenStreetMap tiles are light; re-tone them so the map belongs to the page. */
.sg-location-map iframe {
  filter: grayscale(0.35) invert(0.92) hue-rotate(180deg) contrast(0.92) brightness(0.95);
}

/* 404 */

.sg-not-found .sg-kicker,
.not-found-page .sg-kicker {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

/* OEM step cards: the drawn scenes stay light plates, the card turns dark. */

.oem-card {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.oem-card:not(:last-child)::after {
  background-color: var(--brand-fill);
}

.oem-card h3 {
  color: #fff;
}

.oem-card p {
  color: var(--ink-soft);
}

.oem-chips li {
  color: var(--brand);
}

/* Ruian */

.ru-sources b {
  color: #fff;
}

@media (max-width: 900px) {
  .ru-sticky {
    background: var(--brand-fill);
  }
}

/* ------------------------------------------------------------- catalog */

.catalog-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 44vh, 460px);
  padding-top: clamp(72px, 11vh, 120px);
  background: var(--canvas);
}

.catalog-hero-bg {
  position: absolute;
  inset: -8% 0 0 0;
  z-index: -2;
  width: 100%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 42%;
}

.catalog-hero::before {
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  filter: none;
  background:
    linear-gradient(90deg, rgba(var(--scrim), 0.95) 0%, rgba(var(--scrim), 0.8) 38%, rgba(var(--scrim), 0.36) 70%, rgba(var(--scrim), 0.14) 100%),
    linear-gradient(180deg, rgba(var(--scrim), 0.7) 0%, rgba(var(--scrim), 0) 30%, rgba(var(--scrim), 0) 40%, var(--canvas) 92%);
}

.catalog-hero h1 {
  font-size: clamp(2.125rem, min(4.5vw, 7.2vh), 4.125rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}

.catalog-hero p:not(.eyebrow) {
  max-width: 54ch;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
}

/* The live count ("448 current products") reads as a plain line under the intro,
   not as a label above the title. */
.catalog-hero .eyebrow {
  order: 3;
  margin: var(--space-3) 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}

.catalog-hero .sg-hero-tag {
  inset-inline-end: max(var(--gutter), calc((100% - var(--measure-wide)) / 2));
}

.catalog-search {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-md);
}

.catalog-search:focus-within {
  box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px var(--brand-tint), var(--shadow-md);
}

.catalog-search input {
  color: var(--ink);
}

.catalog-search input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.catalog-search button {
  background: var(--brand-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.catalog-search button:hover {
  background: var(--brand-hover);
}

.search-examples button {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

/* Product-line tabs (catalog-tabs.js mirrors the category <select>). */
.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
}

.catalog-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}

.catalog-tab:hover {
  background: var(--surface-sunken);
  color: #fff;
}

.catalog-tab[aria-pressed="true"] {
  background: var(--ink);
  box-shadow: none;
  color: var(--canvas);
}

.catalog-controls {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.catalog-filter-heading button,
.catalog-filter-support a {
  color: var(--brand);
}

.catalog-filter-count {
  background: var(--brand-fill);
}

.catalog-filter-field select,
.brand-picker-trigger,
.catalog-sort select {
  color: var(--ink);
}

.catalog-results-summary strong {
  color: #fff;
}

.catalog-check-note {
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
}

/* Tiles: dark card, white well for the white-backdrop photograph. */
.product-card {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.product-card:hover {
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-md);
}

.product-img,
.gallery-stage,
.gallery-thumbnail {
  background: #fff;
}

.product-info {
  border-top: 0;
}

.product-info h3 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #fff;
}

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

.product-shape {
  border-color: #d5d8dc;
}

.card-actions .details:hover {
  color: #fff;
}

.card-actions .add:hover {
  background: var(--brand-fill);
}

.card-actions .add.added,
.pagination button.active {
  background: var(--ink);
  color: var(--canvas);
}

.catalog-skeleton {
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
}

.empty-actions > button {
  background: transparent;
  color: var(--ink);
}

.catalog-inquiry-bar {
  background: rgba(32, 37, 43, 0.94);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-lg);
}

.catalog-inquiry-bar span {
  color: var(--ink-muted);
}

.basket-bar-actions .btn {
  --btn-bg: var(--brand-fill);
  --btn-fg: #fff;
}

.basket-bar-actions .btn:hover {
  --btn-bg: var(--brand-hover);
}

/* Product detail */

#product-back:hover {
  color: #fff;
}

.gallery-stage {
  box-shadow: 0 0 0 1px var(--hairline-soft), var(--shadow-md);
}

.gallery-arrow {
  background: rgba(11, 15, 19, 0.78);
  box-shadow: none;
  color: #fff;
}

.gallery-arrow:hover {
  background: #0b0f13;
}

.gallery-thumbnail {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.gallery-thumbnail.active {
  box-shadow: 0 0 0 2px var(--brand);
}

.gallery-empty {
  background: var(--surface-muted);
}

/* The family name above the product title is information, not decoration. */
.page-kicker {
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}

.product-page-info h1 {
  color: #fff;
}

.sku {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
}

.spec-table {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.spec-table dd {
  color: var(--ink);
}

.oe-chip {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.oe-tool--primary:not([disabled]) {
  background: var(--brand-fill);
}

.oe-tool[disabled] {
  color: #5d646c;
}

#product-add.added {
  --btn-bg: #2a3037;
  --btn-fg: #fff;
}

.related-products {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.related-heading h2 {
  color: #fff;
}

.related-products .product-card {
  box-shadow: 0 0 0 1px var(--hairline-soft);
}

.basket-item-text strong,
.form-status.is-success .inquiry-reference {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

/* Brand picker */

.brand-picker-chips button {
  background: var(--brand-fill);
}

.brand-picker-trigger.has-value {
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

.brand-option input {
  accent-color: var(--brand-fill);
}

.form-grid .inline-choice input,
.form-grid-page .inline-choice input {
  accent-color: var(--brand-fill);
}

@media (max-width: 620px) {
  .catalog-tabs {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .catalog-tab {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-tab {
    transition: none;
  }
}

/* ------------------------------------------------------ refinements (v4) */

/* pages.css zeroes the top padding between plain sections with a selector that
   out-ranks its own exception for a section following a tinted band; restore
   the heading's breathing room there. */
.sg-section.sg-section-cold + .sg-section.sg-section.sg-section.sg-section,
.sg-photo-section + .sg-section.sg-section.sg-section.sg-section.sg-section {
  padding-top: clamp(56px, 9vh, 112px);
}

/* A photograph between sections runs edge to edge and dissolves into the page
   above and below instead of sitting in a rounded frame. */
.sg-photo-section {
  padding-block: 0 clamp(40px, 6vh, 80px);
}

.sg-hero + .sg-photo-section {
  padding-top: clamp(24px, 4vh, 48px);
}

.sg-photo-section > .sg-shell {
  width: 100%;
}

.sg-photo-band {
  height: clamp(320px, 68vh, 720px);
  border-radius: 0;
  background: var(--canvas);
  box-shadow: none;
}

.sg-photo-band img {
  filter: brightness(0.82) saturate(0.9);
}

.sg-photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--canvas) 0%, rgba(var(--scrim), 0) 22%, rgba(var(--scrim), 0) 62%, var(--canvas) 100%);
  pointer-events: none;
}

.sg-photo-band figcaption {
  z-index: 2;
  padding-inline: max(var(--gutter), calc((100% - var(--measure-wide)) / 2));
  padding-bottom: var(--space-6);
  background: none;
  font-size: var(--text-base);
}

.sg-photo-band figcaption .sg-text-link {
  color: var(--brand);
}

/* The export map's own ground is dark navy, not black: fade its edges so no
   rectangle shows on the canvas. */
.sg-export-map img {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 88%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 88%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Bright source photographs need more holding back under the hero copy. */
.oem-page .sg-hero-bg {
  filter: brightness(0.6) saturate(0.9);
  object-position: 50% 38%;
}

.quality-page .sg-hero-bg {
  object-position: 50% 30%;
}

.contact-page .sg-hero-bg {
  object-position: 50% 58%;
}

.catalog-hero p.sg-hero-tag {
  max-width: none;
  margin: 0;
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

.catalog-hero .eyebrow {
  letter-spacing: 0.04em;
}

/* White catalogue wells are eased a step toward the page so a grid of them does
   not glare; multiply keeps the photograph's own white identical to the well. */
.product-img,
.gallery-stage,
.gallery-thumbnail,
.sg-part-strip li,
.basket-item-thumb,
.hx-sku-img,
.hx-quick-img {
  background: #eceef1;
}

.product-img img,
.gallery-stage img,
.gallery-thumbnail img,
.sg-part-strip img,
.basket-item-thumb img,
.hx-sku-img img,
.hx-quick-img img {
  mix-blend-mode: multiply;
}

/* The product page gets its breadcrumb from the server and does not load
   pages.css, so the trail is styled here for every page. */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.breadcrumbs > :last-child {
  color: var(--ink-soft);
  font-weight: 600;
}

.product-page-main > .breadcrumbs {
  width: auto;
  margin: 0 0 var(--space-4);
  padding: 0;
}

/* Footer on a phone: the brand gets its own row, contact details the last one,
   so the long e-mail address never has to break mid-word. */
@media (max-width: 860px) {
  footer .brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  footer > div:last-of-type {
    grid-column: 1 / -1;
  }
  footer > div a {
    overflow-wrap: break-word;
  }
}

/* OEM step cards: neutral depth on dark, no coloured glow. */
.oem-card:hover {
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-md);
}

.oem-card:not(:last-child)::after {
  box-shadow: 0 0 0 4px var(--canvas), 0 6px 12px -4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .ru-sticky {
    box-shadow: var(--shadow-md);
  }
}
