/* Hi-Escorp storefront
   Design read: technical catalog for plant engineers and buyers, in Apple's interface language
   (github.com/emilkowalski/skills, apple-design): system type with size-specific tracking, translucent
   header and sheets, feedback on press, springs for anything you can drag.
   Shape rule: buttons, fields and chips are pills; cards, tiles and panels are 22px; small plates 12px.
   One accent (brand red); light and dark themes from the same tokens. */

/* ---------- Fonts (self-hosted) ---------- */
/* Text is the system face (San Francisco on Apple devices). Archivo is kept for the home hero's
   title only, Geist Mono for model numbers and the hero's captions. */
@font-face {
  font-family: "Archivo Variable";
  src: url("../assets/vendor/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Variable";
  src: url("../assets/vendor/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #ebebf0;
  --fill: rgba(118, 118, 128, .12);   /* fields, plain buttons, chips */
  --fill-2: rgba(118, 118, 128, .2);  /* their hover */
  --well: #ffffff;            /* product photos are shot on white, so image wells stay light in both themes */
  --well-brand: #eceef8;
  --well-accent: #fbeef0;
  --on-well: #1d1d1f;
  --line: #e3e3e8;
  --line-strong: #d2d2d7;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --ink: #1d1d1f;
  --ink-hover: #3a3a3d;
  --on-ink: #ffffff;
  --accent: #c42a35;          /* brand red, the only accent */
  --accent-hover: #a7212c;
  --accent-tint: rgba(196, 42, 53, .1);
  --on-accent: #ffffff;
  --link: #2b3190;
  --brand-tint: #eceef8;
  --success: #1d7f45;
  --success-tint: rgba(29, 127, 69, .12);
  --switch-on: #34c759;
  --shadow: 0 16px 48px -12px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -14px rgba(0, 0, 0, .16);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .04), 0 18px 40px -16px rgba(0, 0, 0, .24);
  --material: rgba(255, 255, 255, .72);
  --material-thick: rgba(255, 255, 255, .84);   /* bigger floating surfaces read as thicker glass */
  --material-edge: rgba(0, 0, 0, .07);
  --scrim: rgba(0, 0, 0, .38);

  --r: 12px;                  /* small plates, inputs inside cards, inner rows */
  --r-sm: 8px;
  --r-lg: 22px;               /* cards, tiles, panels, sheets */
  --pill: 980px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-cine: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono Variable", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);

  /* z-index scale */
  --z-sticky: 30;
  --z-header: 40;
  --z-menu: 45;
  --z-toast: 70;
  --z-drawer: 75;        /* panels and sheets cover toasts and the privacy notice */

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0f;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --fill: rgba(118, 118, 128, .24);
    --fill-2: rgba(118, 118, 128, .34);
    --well: #d9dae0;            /* a step dimmer than in light mode, so photos don't glare on the dark page */
    --well-brand: #cdd0e2;
    --well-accent: #ddcfd2;
    --line: #2f2f33;
    --line-strong: #48484c;
    --text: #f5f5f7;
    --text-2: #d1d1d6;
    --muted: #a1a1a6;
    --faint: #8e8e93;
    --ink: #f5f5f7;
    --ink-hover: #ffffff;
    --on-ink: #1d1d1f;
    --accent: #e0454f;
    --accent-hover: #ec5d67;
    --accent-tint: rgba(224, 69, 79, .16);
    --on-accent: #ffffff;
    --link: #9aa2ff;
    --brand-tint: #1f2240;
    --success: #4cc77d;
    --success-tint: rgba(76, 199, 125, .16);
    --switch-on: #30d158;
    --shadow: 0 16px 48px -12px rgba(0, 0, 0, .7);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lift: 0 18px 40px -16px rgba(0, 0, 0, .7);
    --material: rgba(28, 28, 30, .72);
    --material-thick: rgba(36, 36, 40, .84);
    --material-edge: rgba(0, 0, 0, .35);
    --scrim: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0f;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --fill: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .34);
  --well: #d9dae0;
  --well-brand: #cdd0e2;
  --well-accent: #ddcfd2;
  --line: #2f2f33;
  --line-strong: #48484c;
  --text: #f5f5f7;
  --text-2: #d1d1d6;
  --muted: #a1a1a6;
  --faint: #8e8e93;
  --ink: #f5f5f7;
  --ink-hover: #ffffff;
  --on-ink: #1d1d1f;
  --accent: #e0454f;
  --accent-hover: #ec5d67;
  --accent-tint: rgba(224, 69, 79, .16);
  --on-accent: #ffffff;
  --link: #9aa2ff;
  --brand-tint: #1f2240;
  --success: #4cc77d;
  --success-tint: rgba(76, 199, 125, .16);
  --switch-on: #30d158;
  --shadow: 0 16px 48px -12px rgba(0, 0, 0, .7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lift: 0 18px 40px -16px rgba(0, 0, 0, .7);
  --material: rgba(28, 28, 30, .72);
  --material-thick: rgba(36, 36, 40, .84);
  --material-edge: rgba(0, 0, 0, .35);
  --scrim: rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: calc(var(--hdr, var(--header-h)) + 12px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: var(--r-sm); }

.ph { font-size: 20px; line-height: 1; flex: none; }
.i-sm { font-size: 16px; }
.i-lg { font-size: 28px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--pill); transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.noscript { padding: 40px; text-align: center; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* ---------- Type scale: tracking tightens as size grows, leading tightens with it ---------- */
.display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}
.display-1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.03em; }
.display-2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -.026em; }
.display-3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.18; letter-spacing: -.018em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.42; letter-spacing: -.012em; color: var(--muted); max-width: 54ch; }
.body { color: var(--muted); max-width: 65ch; letter-spacing: -.006em; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--accent); margin-bottom: 10px; }

/* ---------- Buttons & links: feedback on press, never only on release ---------- */
.btn {
  --btn-bg: var(--fill); --btn-fg: var(--text); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--pill);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .1s ease-out;
}
.btn:hover { --btn-bg: var(--fill-2); }
.btn:active { transform: scale(.97); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--on-ink); }
.btn--dark:hover { --btn-bg: var(--ink-hover); }
.btn--lg { min-height: 50px; padding: 0 26px; font-size: 17px; letter-spacing: -.016em; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn .ph { font-size: 18px; }

.link {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--link); letter-spacing: -.01em;
  text-decoration: none; text-underline-offset: 3px;
}
.link:hover { text-decoration: underline; }
.link .ph { font-size: 15px; transition: transform .25s var(--ease); }
.link:hover .ph-arrow-right { transform: translateX(3px); }
.link--accent { color: var(--accent); }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; transition: background-color .15s var(--ease), transform .1s ease-out; }
.icon-btn:hover { background: var(--fill); }
.icon-btn:active { transform: scale(.92); }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.tag .ph { font-size: 14px; }
.tag--new { color: var(--accent); }

/* ---------- Header: a translucent layer with the page scrolling underneath ---------- */
.header { position: sticky; top: 0; z-index: var(--z-header); color: var(--text); transition: color .3s ease; }
/* The glass is a layer behind the header's content rather than the header itself: an element with a
   backdrop blur becomes the "backdrop root" for everything inside it, so the Products menu and the search
   suggestions could then only blur the header, and the page would show through them sharp. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .3s ease;
}
/* Scroll edge: a soft fade where content runs under the header, instead of a divider line. */
.header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none; background: linear-gradient(var(--material-edge), transparent); opacity: 0; transition: opacity .2s ease; }
.header.is-scrolled::after { opacity: 1; }
/* Over the dark home hero the header turns into a dark material. */
.header.is-dark::before { background: rgba(10, 11, 24, .62); }
.header.is-dark { color: #f5f5f7; --material-edge: rgba(0, 0, 0, .3); }
/* light-on-dark fills for the header's own controls only; the menus that drop out of it keep the page's colors */
.header.is-dark .header__row { --fill: rgba(255, 255, 255, .13); --fill-2: rgba(255, 255, 255, .2); }
.header.is-dark .search__panel { --fill: rgba(118, 118, 128, .14); --fill-2: rgba(118, 118, 128, .22); }
.header__row { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.header__menu { display: none; margin-left: -8px; }
.logo { display: inline-flex; flex: none; }
.logo__img { height: 40px; width: auto; }
.logo__img--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__img--light { display: none; }
  :root:not([data-theme="light"]) .logo__img--dark { display: block; }
}
:root[data-theme="dark"] .logo__img--light { display: none; }
:root[data-theme="dark"] .logo__img--dark { display: block; }
.header.is-dark .logo__img--light { display: none; }
.header.is-dark .logo__img--dark { display: block; }

.catalog-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; margin-left: 6px; flex: none;
  border-radius: var(--pill); font-weight: 500; font-size: 14px; letter-spacing: -.01em; color: inherit; white-space: nowrap;
  transition: background-color .15s var(--ease), transform .1s ease-out;
}
.catalog-btn:hover, .catalog-btn[aria-expanded="true"] { background: var(--fill); }
.catalog-btn:active { transform: scale(.97); }
.catalog-btn .ph { font-size: 18px; }
.catalog-btn__caret { font-size: 13px !important; transition: transform .25s var(--ease); }
.catalog-btn[aria-expanded="true"] .catalog-btn__caret { transform: rotate(180deg); }

.search {
  position: relative; flex: 1; min-width: 0; display: flex; height: 38px; max-width: 560px;
  border-radius: var(--pill); background: var(--fill);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search:focus-within { background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 28%, transparent); color: var(--text); }
.search__scope { position: relative; display: flex; align-items: center; }
.search__scope::after { content: ""; position: absolute; right: 0; top: 9px; bottom: 9px; border-right: 1px solid currentColor; opacity: .18; }
.search__scope select { appearance: none; border: 0; background: transparent; height: 100%; padding: 0 26px 0 14px; font-size: 13px; font-weight: 500; color: inherit; opacity: .85; cursor: pointer; max-width: 124px; text-overflow: ellipsis; border-radius: var(--pill) 0 0 var(--pill); }
.search__scope select option { color: var(--text); background: var(--surface); }
.search__scope select:focus-visible { outline-offset: -3px; }
.search__scope .ph { position: absolute; right: 9px; font-size: 12px; opacity: .6; pointer-events: none; }
.search__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; font-size: 14.5px; letter-spacing: -.01em; }
.search__input::placeholder { color: currentColor; opacity: .5; }
.search__btn { display: grid; place-items: center; width: 38px; flex: none; border-radius: 50%; opacity: .7; transition: opacity .15s var(--ease); }
.search__btn:hover { opacity: 1; }

.search__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: var(--z-menu); color: var(--text);
  background: var(--material-thick); -webkit-backdrop-filter: saturate(180%) blur(40px); backdrop-filter: saturate(180%) blur(40px);
  border-radius: 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--material-edge);
  padding: 8px; max-height: min(70vh, 560px); overflow: auto; animation: pop .2s var(--ease); transform-origin: top center;
}
.search__group + .search__group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.search__label { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 10px; }
.search__item { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: var(--r); }
.search__item[aria-selected="true"], .search__item:hover { background: var(--fill); }
.search__thumb { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--well); object-fit: contain; padding: 3px; }
.search__text { min-width: 0; }
.search__name { font-weight: 600; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__name mark { background: none; color: var(--accent); }
.search__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__all { display: flex; justify-content: space-between; align-items: center; padding: 10px; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; border-radius: var(--r); color: var(--link); }
.search__all:hover, .search__all[aria-selected="true"] { background: var(--fill); }
.search__empty { padding: 16px 10px; color: var(--muted); font-size: 14px; }

.header__nav { display: flex; gap: 2px; flex: none; }
.header__nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 11px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: inherit; opacity: .78; border-radius: var(--pill); transition: opacity .15s var(--ease), background-color .15s var(--ease); }
.header__nav a:hover { opacity: 1; background: var(--fill); }
.header__nav a.is-active { opacity: 1; font-weight: 600; }
.header__call { flex: none; }

.quote-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; flex: none;
  border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 14px; letter-spacing: -.01em;
  transition: background-color .3s ease, color .3s ease, transform .1s ease-out;
}
.quote-btn:hover { background: var(--ink-hover); }
.quote-btn:active { transform: scale(.96); }
.header.is-dark .quote-btn { background: #f5f5f7; color: #111117; }
.quote-btn__count { min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quote-btn__count.is-empty { background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; }
.quote-btn.bump .quote-btn__count { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* Mega menu: a frosted panel under the header */
.mega { position: absolute; left: 0; right: 0; top: 100%; color: var(--text); background: var(--material-thick); -webkit-backdrop-filter: saturate(180%) blur(40px); backdrop-filter: saturate(180%) blur(40px); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow), inset 0 1px 0 var(--material-edge); max-height: calc(100vh - 140px); overflow: auto; overscroll-behavior: contain; animation: drop .25s var(--ease); }
.mega__inner { display: grid; grid-template-columns: 240px 1fr; min-height: 380px; }
.mega__brands { border-right: 1px solid var(--line); padding: 20px 16px 20px 0; }
.mega__brand { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r); text-align: left; font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; color: var(--text-2); transition: background-color .15s var(--ease), color .15s var(--ease); }
.mega__brand span { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.mega__brand[aria-selected="true"] { background: var(--fill); color: var(--text); font-weight: 600; }
.mega__panel { padding: 24px 0 28px 32px; }
.mega__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.mega__head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.mega__cols { columns: 3 210px; column-gap: 32px; }
.mega__cat { break-inside: avoid; margin-bottom: 18px; }
.mega__cat > a { display: inline-flex; gap: 6px; align-items: baseline; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; margin-bottom: 4px; }
.mega__cat > a:hover { color: var(--accent); }
.mega__cat > a span { font-size: 12px; color: var(--faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.mega__cat li a { display: block; padding: 2px 0; font-size: 13.5px; color: var(--muted); }
.mega__cat li a:hover { color: var(--text); }
.mega__cat .more { color: var(--link); font-weight: 500; }

@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Page scaffolding ---------- */
#main { outline: none; min-height: 60vh; }
.page { padding-bottom: 96px; animation: fadein .3s var(--ease); }
.section { margin-top: clamp(64px, 8vw, 112px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head .body { margin-top: 10px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); padding-top: 20px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .ph { font-size: 12px; color: var(--faint); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }

/* Scroll reveal, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Home: hero ---------- */
/* A dark screen in the style of a film title: red glow at the edges, film grain and viewfinder corners,
   a huge silver headline, a curved strip of product frames that slowly turns (js: startCine), two
   buttons, and a Manila clock that says whether sales is open. Dark in both themes. */
.cine {
  --red: 196, 42, 53;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(600px, 80vh, 800px);
  display: grid; grid-template-rows: auto auto 1fr auto; align-items: start;
  /* starts under the header (js sets --hdr to its height), so the header always floats over it */
  margin-top: calc(var(--hdr, var(--header-h)) * -1);
  padding: calc(var(--hdr, var(--header-h)) + clamp(36px, 5vw, 64px)) var(--gutter) 28px;
  background:
    radial-gradient(60% 90% at 0% 50%, rgba(var(--red), .42) 0%, rgba(var(--red), 0) 60%),
    radial-gradient(60% 90% at 100% 50%, rgba(var(--red), .42) 0%, rgba(var(--red), 0) 60%),
    radial-gradient(120% 80% at 50% 0%, #161a3d 0%, #07081a 70%);
  color: #f2f3f8;
}
.cine::after {
  content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.cine__corner { position: absolute; top: calc(var(--hdr, var(--header-h)) + 18px); width: clamp(60px, 9vw, 120px); height: 26px; border-top: 1px solid rgba(255, 255, 255, .5); z-index: 2; }
.cine__corner--l { left: 18px; border-left: 1px solid rgba(255, 255, 255, .5); }
.cine__corner--r { right: 18px; border-right: 1px solid rgba(255, 255, 255, .5); }
.cine__rec { position: absolute; top: calc(var(--hdr, var(--header-h)) + 22px); left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.cine__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--red)); box-shadow: 0 0 10px rgba(var(--red), .9); }
.cine__title {
  position: relative; z-index: 2; margin-top: clamp(28px, 4vw, 48px); text-align: center;
  font-family: var(--font-cine); font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(38px, 6.6vw, 112px); line-height: .92; letter-spacing: -.012em; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #d9dbe4 38%, #8a8ea3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The curved strip: each frame sits on the inside of a big cylinder, so the strip bends toward you at the edges. */
.reel { position: relative; z-index: 1; margin-top: clamp(-10px, -1vw, -4px); height: calc(var(--fh, 191px) + 86px); overflow: hidden;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.reel__ring { position: absolute; left: 50%; top: 34px; width: var(--fw, 208px); height: var(--fh, 191px); margin-left: calc(var(--fw, 208px) / -2); transform-style: preserve-3d; }
.reel.is-grabbing, .reel.is-grabbing a { cursor: grabbing; }
.reel a, .reel img { -webkit-user-drag: none; }
.reel__frame { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 8px; color: #e7e8ef; backface-visibility: hidden; will-change: transform; transform: rotateY(90deg); }
.reel__shot { display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #f4f5f8; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -16px rgba(0, 0, 0, .8); }
.reel__shot img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.reel__frame:hover .reel__shot img { transform: scale(1.06); }
.reel__frame:focus-visible { outline: 2px solid #ffffff; outline-offset: 4px; border-radius: 10px; }
.reel__cap { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; }
.reel__cap b { color: rgba(255, 255, 255, .92); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.cine__foot { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; margin-top: 8px; text-align: center; }
.cine__lead { max-width: 34ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.38; letter-spacing: -.012em; color: rgba(255, 255, 255, .8); text-wrap: balance; }
.cine__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn--glass { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #ffffff; --btn-bd: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); }
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, .18); --btn-bd: rgba(255, 255, 255, .5); }
.cine__bar { position: relative; z-index: 2; align-self: end; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.cine__bar b { color: #ffffff; font-weight: 500; }
.cine__open { display: inline-flex; align-items: center; gap: 8px; }
.cine__open i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px rgba(61, 220, 132, .8); }
.cine__open.is-closed i { background: #8a8ea3; box-shadow: none; }
.cine__brands { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (prefers-reduced-motion: no-preference) {
  .cine::after { animation: grain .9s steps(4) infinite; }
  .cine__rec::before { animation: blink 1.6s steps(2) infinite; }
  .cine__title { animation: crise 1.1s var(--ease) both; }
  .reel { animation: fadein 1.4s .2s var(--ease) both; }
  .cine__foot > * { animation: crise .9s var(--ease) both; }
  .cine__foot > :nth-child(1) { animation-delay: .4s; }
  .cine__foot > :nth-child(2) { animation-delay: .5s; }
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes crise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* Page intros (About) */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
}

/* Brand logos */
.logos { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.logos__intro { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: -.01em; }
.logos__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logos__item { display: grid; place-items: center; height: 100px; background: var(--well); padding: 14px; border-radius: 16px; box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .1s ease-out; }
.logos__item:hover { box-shadow: var(--shadow-lift); }
.logos__item:active { transform: scale(.97); }
.logos__item img { max-height: 76px; width: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: .75; transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease); }
.logos__item:hover img, .logos__item:focus-visible img { filter: none; opacity: 1; transform: scale(1.05); }

/* Category bento: 7 cells, 4 columns, 3 rows */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(236px, auto); gap: 16px; }
.bento__cell { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--well); color: var(--on-well); box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .1s ease-out; }
.bento__cell:hover { box-shadow: var(--shadow-lift); }
.bento__cell:active { transform: scale(.985); }
.bento__cell--a { grid-column: span 2; grid-row: span 2; padding: 30px 32px; }
.bento__cell--b, .bento__cell--e { grid-column: span 2; flex-direction: row; align-items: stretch; }
.bento__text { position: relative; z-index: 1; max-width: 22ch; padding-right: 36px; }
.bento__name { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.19; letter-spacing: -.018em; }
.bento__cell--a .bento__name { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.026em; }
.bento__meta { display: block; font-size: 14px; margin-top: 6px; color: #6e6e73; letter-spacing: -.005em; }
/* The photo fills the lower right of the tile; the name sits over its empty top left. */
.bento__img { position: absolute; right: 8px; bottom: 8px; width: 74%; height: 66%; pointer-events: none; }
.bento__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.bento__cell--a .bento__img { width: 84%; height: 76%; right: 12px; bottom: 12px; }
.bento__cell--b .bento__img, .bento__cell--e .bento__img { width: 56%; height: auto; top: 12px; bottom: 12px; }
.bento__cell--b .bento__img img, .bento__cell--e .bento__img img { object-position: center; }
.bento__cell:hover .bento__img img { transform: scale(1.06); }
.bento__go { position: absolute; z-index: 1; right: 18px; top: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .06); font-size: 15px; transition: background-color .2s var(--ease), transform .3s var(--ease); }
.bento__cell:hover .bento__go { background: rgba(0, 0, 0, .1); transform: translate(2px, -2px); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.stats__item { padding: 24px 24px 0 0; }
.stats__item + .stats__item { padding-left: 24px; border-left: 1px solid var(--line); }
.stats__item b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stats__item span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); letter-spacing: -.01em; }

/* Quoting process */
.process { padding: clamp(32px, 4vw, 56px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.process__head { max-width: 62ch; }
.process__head .body { margin-top: 12px; }
.process__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.process__step { position: relative; }
.process__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--text); margin-bottom: 18px; position: relative; z-index: 1; }
.process__icon .ph { font-size: 24px; }
.process__step:first-child .process__icon { background: var(--accent); color: var(--on-accent); }
.process__step::after { content: ""; position: absolute; top: 24px; left: 64px; right: -16px; border-top: 1px dashed var(--line-strong); }
.process__step:last-child::after { display: none; }
.process__step h3 { font-size: 19px; font-weight: 600; letter-spacing: -.016em; }
.process__step p { font-size: 15px; color: var(--muted); margin-top: 6px; max-width: 34ch; letter-spacing: -.008em; }
.process__cta { margin-top: 36px; }

/* Recently viewed */
.recent__list { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 14px; margin: -4px -4px 0; scrollbar-width: none; }
.recent__item { display: flex; align-items: center; gap: 10px; flex: none; max-width: 280px; padding: 6px 16px 6px 6px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow-card); transition: box-shadow .2s var(--ease), transform .1s ease-out; }
.recent__item:hover { box-shadow: var(--shadow-lift); }
.recent__item:active { transform: scale(.97); }
.recent__item img { width: 44px; height: 44px; border-radius: 50%; background: var(--well); object-fit: contain; padding: 3px; flex: none; }
.recent__item span { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.story__intro .body { margin-top: 16px; }
.story__intro .link { margin-top: 24px; }
.timeline { display: grid; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time { font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 2px; letter-spacing: -.005em; }
.timeline h3 { font-size: 19px; font-weight: 600; letter-spacing: -.016em; }
.timeline p { font-size: 15.5px; color: var(--muted); margin-top: 6px; max-width: 58ch; letter-spacing: -.008em; }

/* ---------- Product cards (hairline grid) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .1s ease-out; }
@media (prefers-reduced-motion: no-preference) {
  .pcard { animation: rise .55s var(--ease) both; animation-delay: calc(var(--d, 0) * 25ms); }
}
.pcard:hover { box-shadow: var(--shadow-lift); }
.pcard:has(.pcard__title a:active) { transform: scale(.985); }
.pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .82; background: var(--well); border-radius: 14px; overflow: hidden; }
.pcard__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(140, 146, 176, .14) 50%, transparent 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.pcard__media.is-loaded::before { display: none; }
.pcard__media img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transition: opacity .4s var(--ease), transform .6s var(--ease); }
.pcard__media.is-loaded img { opacity: 1; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 12px 8px 6px; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__brand { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: -.003em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__tags { display: flex; gap: 10px; flex: none; }
.pcard__title { margin-top: 3px; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.016em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.pcard__desc { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta { display: none; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcard__meta .ph { font-size: 15px; }
.pcard__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pcard__price { font-size: 12px; line-height: 1.35; color: var(--muted); }
.pcard__price b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.pcard__add {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px 0 11px; flex: none;
  border-radius: var(--pill); background: var(--accent-tint); color: var(--accent); font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .1s ease-out;
}
.pcard__add .ph { font-size: 16px; }
.pcard__add:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.pcard__add:active { transform: scale(.94); }
.pcard__add.is-added { background: var(--success-tint); color: var(--success); }

.pgrid--list { grid-template-columns: 1fr; }
.pgrid--list .pcard { flex-direction: row; }
.pgrid--list .pcard__media { width: 200px; flex: none; aspect-ratio: auto; min-height: 160px; }
.pgrid--list .pcard__body { padding: 14px 18px 10px; }
.pgrid--list .pcard__title { font-size: 17px; -webkit-line-clamp: 1; }
.pgrid--list .pcard__desc { max-width: 75ch; }
.pgrid--list .pcard__meta { display: flex; }

/* Rail */
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 5); gap: 16px;
  padding: 6px 8px 26px; margin: -6px -8px -26px; scroll-padding-inline: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail__track.is-grabbing { scroll-snap-type: none; cursor: grabbing; user-select: none; -webkit-user-select: none; }
.rail__track.is-grabbing * { cursor: grabbing; }
.rail__track img, .rail__track a { -webkit-user-drag: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: flex; gap: 8px; }
.rail__btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--text); transition: background-color .15s var(--ease), opacity .2s, transform .1s ease-out; }
.rail__btn:hover { background: var(--fill-2); }
.rail__btn:active { transform: scale(.92); }
.rail__btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- Shop ---------- */
.shop-head { padding: 20px 0 28px; border-bottom: 1px solid var(--line); }
.shop-head .lead { margin-top: 12px; }
.brand-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.brand-head__logo { width: 152px; height: 112px; display: grid; place-items: center; background: var(--well); border-radius: 18px; box-shadow: var(--shadow-card); padding: 10px; }
.brand-head__logo img { max-height: 92px; width: auto; mix-blend-mode: multiply; }
.brand-head p { color: var(--muted); margin-top: 10px; max-width: 64ch; }
.brand-head__count { text-align: right; }
.brand-head__count b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.brand-head__count span { font-size: 13.5px; color: var(--muted); }

.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 28px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.filters__head, .filters__foot { display: none; }
.fgroup { padding: 20px 0; border-top: 1px solid var(--line); }
.filters__head + .fgroup { border-top: 0; padding-top: 0; }
.fgroup h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.fgroup h2 button { font-size: 13.5px; font-weight: 500; color: var(--link); }
.fgroup h2 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.fsearch { position: relative; }
.fsearch input { width: 100%; height: 38px; border: 0; border-radius: var(--pill); padding: 0 14px 0 36px; background: var(--fill); font-size: 14px; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.fsearch input::placeholder { color: var(--faint); }
.fsearch input:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 28%, transparent); }
.fsearch .ph { position: absolute; left: 12px; top: 10px; font-size: 17px; color: var(--muted); }
.flist { display: grid; gap: 1px; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; font-size: 14.5px; letter-spacing: -.008em; color: var(--text-2); transition: background-color .15s var(--ease); }
.fopt:hover { background: var(--fill); }
.fopt__box { width: 18px; height: 18px; flex: none; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.fopt__box--radio { border-radius: 50%; }
.fopt__box .ph { font-size: 12px; color: var(--on-ink); opacity: 0; }
.fopt[aria-current="true"] { color: var(--text); font-weight: 600; }
.fopt[aria-current="true"] .fopt__box { background: var(--ink); border-color: var(--ink); }
.fopt[aria-current="true"] .fopt__box .ph { opacity: 1; }
.fopt[aria-current="true"] .fopt__box--radio { background: var(--surface); border: 5px solid var(--ink); }
.fopt__label { flex: 1; min-width: 0; line-height: 1.3; }
.fopt__label small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.fopt__count { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fopt--sub { padding-left: 36px; font-size: 13.5px; }
.flist__more { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--link); }
.fswitch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.fswitch__track { width: 44px; height: 26px; border-radius: 13px; background: var(--fill-2); position: relative; flex: none; transition: background-color .2s var(--ease); }
.fswitch__track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .3s var(--spring); }
.fswitch[aria-current="true"] .fswitch__track { background: var(--switch-on); }
.fswitch[aria-current="true"] .fswitch__track::after { transform: translateX(18px); }
.fhelp { padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 13.5px; color: var(--muted); }
.fhelp b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 4px; }
.fhelp .link { margin-top: 10px; font-size: 14px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__count { font-size: 14px; color: var(--muted); }
.toolbar__count b { color: var(--text); font-variant-numeric: tabular-nums; }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.toolbar__filters { display: none; }
.select { position: relative; display: inline-flex; align-items: center; }
.select label { font-size: 13.5px; color: var(--muted); margin-right: 8px; white-space: nowrap; }
.select select { appearance: none; height: 36px; padding: 0 32px 0 14px; border: 0; border-radius: var(--pill); background: var(--fill); font-size: 14px; font-weight: 500; letter-spacing: -.01em; cursor: pointer; }
.select .ph { position: absolute; right: 10px; font-size: 14px; color: var(--muted); pointer-events: none; }
.view-toggle { display: inline-flex; border-radius: 10px; padding: 2px; background: var(--fill); }
.view-toggle button { width: 38px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.view-toggle .ph { font-size: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 14px; border-radius: var(--pill); background: var(--fill); font-size: 13.5px; font-weight: 500; transition: background-color .15s var(--ease); }
.chip:hover { background: var(--fill-2); }
.chip .ph { font-size: 14px; color: var(--muted); }
.chip--clear { background: none; color: var(--link); padding: 0 6px; }
.chip--clear:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--pill); font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--fill); transition: background-color .15s, color .15s, transform .1s ease-out; }
.pager a:hover { background: var(--fill-2); }
.pager a:active { transform: scale(.94); }
.pager [aria-current] { background: var(--ink); color: var(--on-ink); }
.pager .gap { background: none; border: 0; min-width: 18px; }
.pager .is-disabled { opacity: .35; pointer-events: none; }
.pager .ph { font-size: 16px; }

.empty { display: grid; justify-items: start; gap: 10px; padding: clamp(32px, 6vw, 64px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.empty__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); margin-bottom: 8px; }
.empty__icon .ph { font-size: 28px; }
.empty p { color: var(--muted); max-width: 52ch; }
.empty__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); margin-top: 20px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__stage { position: relative; aspect-ratio: 1 / .86; background: var(--well); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; cursor: zoom-in; }
.gallery__stage.is-zoom { cursor: zoom-out; }
.gallery__stage img { width: 100%; height: 100%; object-fit: contain; padding: clamp(20px, 4vw, 56px); mix-blend-mode: multiply; transition: transform .3s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery__stage.is-zoom img { transform: scale(2); }
.gallery__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.gallery__caption span { display: inline-flex; align-items: center; gap: 6px; }

.buy__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.buy__brand img { height: 34px; width: auto; max-width: 120px; object-fit: contain; background: var(--well); border-radius: 8px; padding: 3px 4px; }
.buy__brand:hover { color: var(--accent); }
.buy h1 { margin: 14px 0 12px; }
.buy__desc { font-size: 17px; line-height: 1.47; letter-spacing: -.012em; color: var(--muted); max-width: 58ch; }
.buy__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin: 24px 0 0; box-shadow: var(--shadow-card); }
.buy__facts div { background: var(--surface); padding: 12px 14px; min-width: 0; }
.buy__facts dt { font-size: 12px; color: var(--muted); }
.buy__facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.buy__facts a:hover { color: var(--accent); }

.quote-box { margin-top: 20px; padding: 24px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.quote-box__price b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.quote-box__price p { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 50ch; }
.quote-box__row { display: flex; gap: 12px; margin-top: 18px; }
.quote-box__row .btn--primary { flex: 1; }
.quote-box__status { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--muted); }
.quote-box__status .is-in { color: var(--success); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }

.qty { display: inline-flex; align-items: center; border-radius: var(--pill); background: var(--fill); height: 50px; transition: box-shadow .2s var(--ease); }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: color .15s, background-color .15s, transform .1s ease-out; }
.qty button:hover { color: var(--text); background: var(--fill); }
.qty button:active { transform: scale(.88); }
.qty input { width: 46px; height: 100%; border: 0; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 28%, transparent); }
.qty--sm { height: 36px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 34px; font-size: 14.5px; }
.qty .ph { font-size: 16px; }

.perks { display: grid; gap: 14px; margin-top: 24px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; letter-spacing: -.008em; color: var(--muted); }
.perks .ph { color: var(--text); margin-top: 1px; }
.perks b { color: var(--text); font-weight: 600; }

.pdp-section { margin-top: clamp(56px, 6vw, 88px); }
.pdp-section > h2 { margin-bottom: 20px; }
.pdp-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin: 0; box-shadow: var(--shadow-card); }
.spec { background: var(--surface); padding: 16px 18px; min-width: 0; }
.spec dt { font-size: 12.5px; color: var(--muted); }
.spec dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.spec dd a { color: var(--link); }
.spec dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.spec--wide { grid-column: span 2; }
.order-notes { padding: 24px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.order-notes h3 { font-size: 16px; }
.order-notes p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.order-notes ul { margin-top: 14px; display: grid; gap: 8px; font-size: 14px; }
.order-notes li { display: flex; gap: 10px; align-items: center; }
.order-notes a:hover { color: var(--accent); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); transition: box-shadow .2s var(--ease), transform .1s ease-out; }
.doc:hover { box-shadow: var(--shadow-lift); }
.doc:active { transform: scale(.98); }
.doc__icon { width: 40px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-tint); color: var(--accent); }
.doc__icon .ph { font-size: 22px; }
.doc__name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.3; }
.doc__name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.doc > .ph { color: var(--muted); }

/* ---------- Quote list ---------- */
.steps { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-top: 16px; flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 24px; border-top: 1px solid var(--line-strong); }
.steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--fill); }
.steps .is-current { color: var(--text); font-weight: 600; }
.steps .is-current span { background: var(--ink); color: var(--on-ink); }
.steps .is-done span { background: var(--success); color: var(--on-accent); }

.quote { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 32px; align-items: start; margin-top: 28px; }
.qlist { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.qlist__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.qlist__head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.016em; }
.qlist__head button { font-size: 14px; color: var(--link); }
.qlist__head button:hover { text-decoration: underline; text-underline-offset: 3px; }
.qitem { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 22px; }
.qitem + .qitem { border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .qitem { animation: rise .35s var(--ease) both; } }
.qitem__img { width: 84px; height: 72px; border-radius: var(--r); background: var(--well); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.qitem__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.qitem__brand { font-size: 12.5px; color: var(--muted); }
.qitem__name { display: block; font-weight: 600; font-size: 16px; line-height: 1.27; letter-spacing: -.014em; margin-top: 2px; }
.qitem__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.qitem__sku { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.qitem__remove { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .15s, background-color .15s, transform .1s ease-out; }
.qitem__remove:hover { color: var(--accent); background: var(--accent-tint); }
.qitem__remove:active { transform: scale(.9); }
.qlist__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--bg); font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.qlist__foot b { color: var(--text); font-variant-numeric: tabular-nums; }

.qform { position: sticky; top: calc(var(--hdr, var(--header-h)) + 20px); padding: 28px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.qform > p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.form { display: grid; gap: 16px; margin-top: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field__label { font-size: 14px; font-weight: 600; letter-spacing: -.008em; color: var(--text); }
.field__label i { font-style: normal; color: var(--accent); }
/* A segmented choice that fills the field's width (the quote form's delivery region) */
.sb-seg.seg--fill { display: flex; justify-self: stretch; }
.sb-seg.seg--fill label { flex: 1; text-align: center; font-weight: 500; }
.sb-seg.seg--fill span { padding: 8px 10px; }
.field.is-invalid .sb-seg.seg--fill { box-shadow: 0 0 0 1.5px var(--accent); }
.field label i { font-style: normal; color: var(--accent); }
.field input, .field textarea { width: 100%; border: 1px solid transparent; border-radius: var(--r); background: var(--fill); padding: 12px 14px; font-size: 16px; letter-spacing: -.01em; transition: border-color .15s, background-color .15s, box-shadow .2s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: var(--surface); border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.field__help { font-size: 12.5px; color: var(--muted); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent); }
.field__error { display: none; font-size: 13px; color: var(--accent); font-weight: 500; }
.field.is-invalid .field__error { display: block; }
.form__fine { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form__fine .ph { font-size: 16px; margin-top: 1px; color: var(--success); }
.btn:disabled { opacity: .7; cursor: progress; }
.form__alert { display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--accent-tint); color: var(--text-2); font-size: 14px; }
.form__alert b { color: var(--text); }
.form__alert-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sent__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--success-tint); color: var(--success); margin-bottom: 18px; }
.sent__icon .ph { font-size: 26px; }
.sent p { color: var(--muted); margin-top: 10px; }
.sent__ref { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 13.5px; padding: 6px 12px; border-radius: var(--pill); background: var(--fill); }
.sent__actions { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- Brands ---------- */
.brand-rows { margin-top: 8px; }
.brand-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 44px); align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.brand-row:first-child { border-top: 0; }
.brand-row__logo { display: grid; place-items: center; height: 150px; background: var(--well); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-card); transition: box-shadow .2s var(--ease), transform .1s ease-out; }
.brand-row__logo:hover { box-shadow: var(--shadow-lift); }
.brand-row__logo:active { transform: scale(.98); }
.brand-row__logo img { max-height: 116px; width: auto; mix-blend-mode: multiply; }
.brand-row__body p { color: var(--muted); margin-top: 10px; max-width: 56ch; }
.brand-row__tag { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 6px; display: block; }
.brand-row__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.brand-row__aside h3 { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.brand-row__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-row__cats a { font-size: 13.5px; padding: 6px 12px; border-radius: var(--pill); background: var(--fill); color: var(--text-2); transition: background-color .15s, color .15s, transform .1s ease-out; }
.brand-row__cats a:hover { background: var(--fill-2); color: var(--text); }
.brand-row__cats a:active { transform: scale(.95); }

/* ---------- Directory ---------- */
.dir { display: grid; gap: 56px; margin-top: 36px; }
.dir__brand { scroll-margin-top: calc(var(--header-h) + 24px); }
.dir__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); margin-bottom: 22px; }
.dir__cols { columns: 4 220px; column-gap: 32px; }
.dir__cat { break-inside: avoid; margin-bottom: 22px; }
.dir__cat > a { font-weight: 600; font-size: 16px; letter-spacing: -.012em; }
.dir__cat > a:hover { color: var(--accent); }
.dir__cat > a span { font-size: 12.5px; color: var(--faint); font-weight: 400; margin-left: 6px; font-variant-numeric: tabular-nums; }
.dir__cat ul { margin-top: 6px; }
.dir__cat li a { display: block; font-size: 14px; color: var(--muted); padding: 2px 0; }
.dir__cat li a:hover { color: var(--text); }

/* ---------- About ---------- */
.page-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(24px, 3vw, 40px); }
.page-hero .lead { margin-top: 20px; }
.page-hero h1 { font-size: clamp(30px, 3.3vw, 50px); }
.page-hero__img { height: clamp(300px, 36vw, 480px); border-radius: var(--r-lg); overflow: hidden; background: #15184a; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.statements { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px); }
.statement { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.statement h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.statement p { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.25; letter-spacing: -.022em; margin-top: 14px; max-width: 34ch; }
.reasons { display: grid; gap: 0; }
.reason { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 64px); padding: 28px 0; border-top: 1px solid var(--line); }
.reason h3 { font-size: 21px; font-weight: 600; letter-spacing: -.018em; }
.reason p { color: var(--muted); max-width: 62ch; }
.strategies { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 24px; }
.strategies li { padding: 20px 22px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card); }
.strategies b { display: block; font-size: 15px; }
.strategies span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.cta-row .body { margin-top: 8px; }
.cta-row__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 32px; }
.cinfo { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.cinfo:first-child { border-top: 0; padding-top: 0; }
.cinfo__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); }
.cinfo h2 { font-size: 16px; font-weight: 600; letter-spacing: -.012em; margin-bottom: 4px; }
.cinfo p, .cinfo a { font-size: 15px; color: var(--text-2); }
.cinfo a:hover { color: var(--accent); }
.cinfo .link { margin-top: 6px; }
.hours { width: 100%; max-width: 360px; font-size: 14px; border-collapse: collapse; margin-top: 4px; }
.hours td { padding: 3px 0; color: var(--text-2); }
.hours td:last-child { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--text); font-weight: 650; }
/* Sales lines with who answers each: number, then a quiet label */
.phones { display: grid; gap: 6px; }
.phones li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.phones a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.phones span { font-size: .88em; color: var(--muted); }
.order-notes li:has(.phones) { align-items: flex-start; }
.open-state { font-weight: 600; }
.open-state--open { color: var(--success); }
.open-state--closed { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--text-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.footer__brand .logo__img { height: 48px; }
.footer__brand p { margin-top: 18px; max-width: 40ch; color: var(--muted); }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); transition: background-color .15s, transform .1s ease-out; }
.footer__social a:hover { background: var(--fill-2); }
.footer__social a:active { transform: scale(.92); }
.footer h2 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__contact p + p { margin-top: 12px; }
.footer__contact p { color: var(--muted); }
.footer__contact a { color: var(--text-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.theme-pick { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.theme-pick select { appearance: none; border: 0; border-radius: var(--pill); background: var(--fill); height: 32px; padding: 0 14px; font-size: 13px; cursor: pointer; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer__scrim { position: absolute; inset: 0; background: var(--scrim); }
.drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--surface); display: flex; flex-direction: column; border-radius: 0 var(--r-lg) var(--r-lg) 0; box-shadow: var(--shadow); touch-action: pan-y; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 18px; }
.drawer__head .logo__img { height: 40px; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 18px 28px; }
.drawer__label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 4px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 13px 0; font-weight: 600; letter-spacing: -.01em; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .ph { font-size: 16px; color: var(--muted); transition: transform .25s var(--ease); }
.drawer details[open] summary .ph { transform: rotate(180deg); }
.drawer details ul { padding: 0 0 12px; }
.drawer details li a { display: flex; justify-content: space-between; padding: 7px 0; color: var(--text-2); font-size: 14.5px; }
.drawer details li a span { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.drawer__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; letter-spacing: -.01em; }
.drawer__contact { margin-top: 20px; padding: 16px; border-radius: 18px; background: var(--fill); font-size: 14px; display: grid; gap: 6px; color: var(--muted); }
.drawer__contact a { font-weight: 600; color: var(--text); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: rgba(29, 29, 31, .86); color: #ffffff; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); animation: toastIn .4s var(--spring); }
.toast.is-leaving { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.toast img { width: 48px; height: 48px; border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; }
.toast__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.toast b { display: block; font-size: 14px; }
.toast span { display: block; font-size: 13px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast a { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, .16); white-space: nowrap; transition: background-color .2s, transform .1s ease-out; }
.toast a:hover { background: rgba(255, 255, 255, .26); }
.toast a:active { transform: scale(.95); }

/* ---------- Quote sheet: rises from the bottom edge, drag it down or throw it away (js: sheet) ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: calc(var(--z-drawer) + 1); background: var(--scrim); opacity: 0; }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: calc(var(--z-drawer) + 2); width: min(560px, 100%); max-height: min(82vh, 720px); display: flex; flex-direction: column;
  transform: translate(-50%, 100%); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--material-thick); color: var(--text); outline: none;
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 -24px 70px -24px rgba(0, 0, 0, .45); }
.sheet__grab { flex: none; height: 24px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet__grab span { width: 38px; height: 5px; border-radius: 3px; background: currentColor; opacity: .22; }
.sheet__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 10px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.sheet.is-dragging .sheet__grab, .sheet.is-dragging .sheet__head { cursor: grabbing; }
.sheet__head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.022em; }
.sheet__head span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.sheet__close { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--fill); transition: background-color .15s, transform .1s ease-out; }
.sheet__close:hover { background: var(--fill-2); }
.sheet__close:active { transform: scale(.9); }
.sheet__close .ph { font-size: 15px; }
.sheet__body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 20px; }
.sheet__body.is-scrollable { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.srow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.srow__img { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r); background: #ffffff; overflow: hidden; }
.srow__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.srow__img .ph { font-size: 26px; color: #1d1d1f; }
.srow__name { font-size: 15px; font-weight: 600; line-height: 1.27; letter-spacing: -.012em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.srow__name:hover { text-decoration: underline; text-underline-offset: 2px; }
.srow__meta { margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__ctl { display: flex; align-items: center; gap: 4px; }
.stepper { display: inline-flex; align-items: center; height: 32px; border-radius: var(--pill); background: var(--fill); }
.stepper button, .srow__x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background-color .15s, transform .1s ease-out; }
.stepper button:hover, .srow__x:hover { background: var(--fill); }
.stepper button:active, .srow__x:active { transform: scale(.86); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper .ph, .srow__x .ph { font-size: 14px; }
.stepper output { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.srow__x { color: var(--muted); }
.srow--gone { grid-template-columns: minmax(0, 1fr) auto; color: var(--muted); font-size: 14px; }
.srow--gone button { padding: 6px 0; color: var(--link); font-weight: 600; }
.sheet__empty { padding: 20px 0 8px; text-align: center; }
.sheet__empty > .ph { width: 56px; height: 56px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--fill); font-size: 26px; color: var(--muted); }
.sheet__empty h3 { margin-top: 14px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.016em; }
.sheet__empty p { margin: 6px auto 0; max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.45; }
.sheet__foot { flex: none; display: grid; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
.sheet__foot .btn { width: 100%; }
.sheet__foot p { text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Reduced transparency: frosted layers become solid. More contrast: solid with a defined edge. */
@media (prefers-reduced-transparency: reduce) {
  .header::before, .mega, .search__panel, .sheet, .privacy-notice { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header.is-dark::before { background: #0c0d1c; }
  .toast { background: #1d1d1f; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn--glass { background: #23264d; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .sheet, .mega, .search__panel { background: var(--surface); box-shadow: 0 0 0 1px var(--text); }
  .header::before { background: var(--surface); box-shadow: 0 1px 0 var(--text); }
  .header.is-dark::before { background: #000000; }
  .pcard, .bento__cell, .qlist, .qform, .quote-box, .sb-card, .sb-q, .tool-card, .mt-card { box-shadow: 0 0 0 1px var(--muted); }
  .pcard__brand, .body, .lead, .bento__meta { color: var(--text); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header__nav a { padding: 0 9px; }
  .rail__track { grid-auto-columns: calc((100% - 48px) / 4); }
  .logos { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .story, .pdp-info { grid-template-columns: 1fr; }
  .story__intro { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: 1fr; }
  .qform { position: static; }
  .brand-row { grid-template-columns: 180px minmax(0, 1fr); }
  .brand-row__aside { grid-column: 2; }
}
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .header__menu { display: inline-grid; }
  .catalog-btn { display: none; }
  .header__row { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; gap: 8px 8px; }
  .logo__img { height: 34px; }
  .header__call { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search__scope { display: none; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: var(--z-drawer); width: min(360px, 90vw); max-height: none; background: var(--surface); padding: 0 18px; transform: translateX(-105%); border-radius: 0 var(--r-lg) var(--r-lg) 0; box-shadow: var(--shadow); touch-action: pan-y; }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 12px 0 10px; margin-bottom: 8px; }
  .filters__head b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
  .filters__foot { display: block; position: sticky; bottom: 0; z-index: 1; background: var(--surface); padding: 12px 0 16px; margin-top: 16px; border-top: 1px solid var(--line); }
  .filters-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: calc(var(--z-drawer) - 1); }
  .toolbar__filters { display: inline-flex; }
  .gallery { position: static; }
  .pdp { grid-template-columns: 1fr; }
  .cine__brands { display: none; }
  .brand-head { grid-template-columns: auto 1fr; }
  .brand-head__count { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); }
  .bento__cell--a, .bento__cell--b, .bento__cell--e { grid-column: span 2; }
  .bento__cell--a { grid-row: auto; min-height: 340px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats__item:nth-child(n+3) { margin-top: 24px; }
  .process__steps { grid-template-columns: 1fr; gap: 24px; }
  .process__step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
  .process__icon { grid-row: span 2; margin: 0; }
  .process__step::after { display: none; }
  .statements { grid-template-columns: 1fr; }
  .page-hero { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .rail__track { grid-auto-columns: calc((100% - 32px) / 2.4); }
  .logos__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .quote-btn__label { display: none; }
  .quote-btn { padding: 0 6px 0 11px; gap: 6px; }
  .cine { min-height: 0; padding-top: calc(var(--hdr, var(--header-h)) + 52px); }
  .cine__title { white-space: normal; font-stretch: 112%; font-size: clamp(34px, 11vw, 52px); line-height: .98; }
  .cine__ctas, .cine__ctas .btn { width: 100%; }
  .cine__rec { display: none; }
  .reel__cap > span { display: none; }
  .bento__cell--b, .bento__cell--e { flex-direction: column; }
  .bento__cell, .bento__cell--a { padding: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 6px; border-radius: 18px; }
  .pcard__media { border-radius: 13px; }
  .pcard__body { padding: 10px 6px 6px; }
  .pcard__title { font-size: 14.5px; }
  .pcard__desc, .pcard__tags { display: none; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .pcard__add { justify-content: center; }
  .pgrid--list .pcard { flex-direction: column; }
  .pgrid--list .pcard__media { width: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .rail__track { grid-auto-columns: 66%; gap: 12px; }
  .toolbar__count { width: 100%; }
  .select label { display: none; }
  .brand-head { grid-template-columns: 1fr; }
  .brand-head__logo { width: 100%; }
  .brand-row { grid-template-columns: 1fr; }
  .brand-row__aside { grid-column: auto; }
  .buy__facts { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .spec--wide { grid-column: auto; }
  .qitem { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; }
  .qform { padding: 22px 18px; }
  .qitem__img { width: 68px; height: 60px; }
  .qitem .qty { grid-column: 2; justify-self: start; }
  .qitem__remove { grid-row: 1; grid-column: 3; }
  .form__row { grid-template-columns: 1fr; }
  .quote-box__row { flex-direction: column; }
  .quote-box__row .qty { align-self: flex-start; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .reason { grid-template-columns: 1fr; gap: 8px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .toasts { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:active, .pcard:has(.pcard__title a:active), .bento__cell:active, .icon-btn:active, .quote-btn:active { transform: none; }
  .pcard__media::before { display: none; }
}

/* Product title: model codes read better in the text face than in the expanded display face */
.buy__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.026em; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 72ch); gap: clamp(28px, 5vw, 72px); margin-top: 32px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--hdr, var(--header-h)) + 24px); font-size: 14px; }
.legal__toc p { font-weight: 600; margin-bottom: 10px; }
.legal__toc ol { display: grid; gap: 6px; list-style: decimal inside; color: var(--muted); }
.legal__toc a { color: var(--link); }
.legal__toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal__body { font-size: 16px; line-height: 1.65; letter-spacing: -.008em; color: var(--text-2); }
.legal__body section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal__body h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--text); margin-bottom: 12px; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 12px; }
.legal__body ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.legal__body b { color: var(--text); }
.legal__summary { padding: 22px 24px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.legal__summary h2 { font-size: 17px; }
.legal__table { overflow-x: auto; margin: 14px 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal__table th, .legal__table td { text-align: left; padding: 10px 14px; vertical-align: top; }
.legal__table th { background: var(--fill); color: var(--text); font-weight: 600; }
.legal__table tbody tr + tr td { border-top: 1px solid var(--line); }
.legal__clear { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.legal__clear span { font-size: 14px; color: var(--success); font-weight: 500; }
.legal__other { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; padding: 18px 20px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card); }
}

/* Opt-in to remembering contact details */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form__fine a { white-space: nowrap; }

/* Footer legal links */
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { color: var(--text-2); }
.footer__legal a + a { padding-left: 18px; border-left: 1px solid var(--line-strong); }
.footer__legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* One-time privacy notice (information only: nothing here needs consent) */
.privacy-notice { position: fixed; left: 20px; bottom: 20px; z-index: var(--z-toast); width: min(440px, calc(100vw - 40px)); display: grid; gap: 12px; padding: 18px 20px; background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); color: var(--text-2); border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--material-edge); font-size: 14px; animation: toastIn .4s var(--spring); }
.privacy-notice p { display: flex; gap: 10px; align-items: flex-start; }
.privacy-notice p .ph { color: var(--success); margin-top: 1px; }
.privacy-notice__actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
@media (max-width: 640px) {
  .privacy-notice { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ---------- Hydraulic set builder ---------- */
.sb-head .eyebrow { margin-bottom: 8px; }
.sb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 28px; }
.sb--loading .skel { min-height: 520px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.sb__form { display: grid; gap: 14px; }
.sb-q { margin: 0; padding: 22px 24px; background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); display: grid; gap: 14px; min-width: 0; }
.sb-q legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; font-weight: 600; font-size: 17px; letter-spacing: -.014em; color: var(--text); }
.sb-q legend + * { clear: both; }
.sb-q__n { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 600; }
.sb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sb-opt { position: relative; cursor: pointer; }
.sb-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sb-opt__box { height: 100%; display: grid; gap: 8px; align-content: start; padding: 14px; border: 1px solid transparent; border-radius: 16px; background: var(--fill); transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease), transform .1s ease-out; }
.sb-opt__box .ph { font-size: 22px; color: var(--muted); }
.sb-opt__box b { display: block; font-size: 14px; line-height: 1.25; }
.sb-opt__box small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.sb-opt:hover .sb-opt__box { background: var(--fill-2); }
.sb-opt:active .sb-opt__box { transform: scale(.97); }
.sb-opt input:checked + .sb-opt__box { border-color: var(--accent); background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); }
.sb-opt input:checked + .sb-opt__box .ph { color: var(--accent); }
.sb-opt input:focus-visible + .sb-opt__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.sb-unit { display: flex; border: 1px solid transparent; border-radius: var(--r); background: var(--fill); transition: border-color .15s, background-color .15s, box-shadow .2s var(--ease); }
.sb-unit:focus-within { border-color: var(--link); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.sb-unit input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 12px; font-size: 15px; font-family: var(--mono); }
.sb-unit input:focus { outline: none; }
.sb-unit select { flex: none; border: 0; border-left: 1px solid var(--line-strong); background: transparent; padding: 0 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.sb__form select:not(.sb-unit select) { width: 100%; height: 44px; border: 0; border-radius: var(--r); background: var(--fill); padding: 0 14px; font-size: 15px; cursor: pointer; }
.sb-stepper { height: 46px; width: 100%; justify-content: space-between; }
.sb-stepper input { flex: 1; }
.sb-light { margin-top: 30px; }
.sb-reset { justify-self: start; font-size: 14px; color: var(--link); }
.sb-reset .ph { margin-right: 4px; }

.sb-empty { display: grid; justify-items: start; gap: 10px; padding: clamp(28px, 4vw, 44px); background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }
.sb-empty > .ph { font-size: 34px; color: var(--muted); }
.sb-empty p { color: var(--muted); max-width: 48ch; }
.sb-empty--warn { border-style: solid; }
.sb-empty--warn > .ph { color: var(--accent); }

.sb-card { display: grid; gap: 18px; padding: clamp(20px, 2.6vw, 28px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.sb-card__head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.sb-card__head .eyebrow { margin-bottom: 6px; }
.sb-hero { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; background: var(--fill); border-radius: 18px; }
.sb-hero__img { width: 120px; height: 100px; display: grid; place-items: center; background: var(--well); border-radius: var(--r); }
.sb-hero__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.sb-hero__img .ph { font-size: 40px; color: var(--on-well); }
.sb-hero__label { display: block; font-size: 12.5px; color: var(--muted); }
.sb-hero__model { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 8px; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-chips li { font-size: 12.5px; padding: 3px 10px; border-radius: var(--pill); background: var(--surface); color: var(--text-2); }
.sb-why { display: grid; gap: 8px; }
.sb-why li, .sb-notes li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.sb-why .ph { color: var(--success); margin-top: 3px; }
.sb-why-one { font-size: 14px; color: var(--text-2); }
.sb-alts > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sb-alts__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-alt { display: grid; text-align: left; gap: 1px; padding: 9px 14px; border: 0; border-radius: var(--r); background: var(--fill); transition: background-color .15s, transform .1s ease-out; }
.sb-alt:hover { background: var(--fill-2); }
.sb-alt:active { transform: scale(.97); }
.sb-alt b { font-size: 14px; }
.sb-alt small { font-size: 12px; color: var(--muted); }
.sb-alt--back { align-content: center; font-size: 13.5px; font-weight: 600; color: var(--link); background: none; }
.sb-jack { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--brand-tint); font-size: 14px; color: var(--text-2); }
.sb-jack > .ph { font-size: 22px; flex: none; color: var(--text); }
.sb-jack p { flex: 1; }
.sb-jack b { color: var(--text); }
.sb-sub { font-size: 16px; font-weight: 600; letter-spacing: -.012em; margin-bottom: -6px; }
.sb-parts { display: grid; border: 1px solid var(--line); border-radius: var(--r); }
.sb-part { display: grid; grid-template-columns: 44px 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
.sb-part + .sb-part { border-top: 1px solid var(--line); }
/* Take a part out of the set; what was taken out waits in a bar where one tap puts it back. */
.sb-part__x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .15s, background-color .15s, transform .1s ease-out; }
.sb-part__x .ph { font-size: 15px; }
.sb-part__x:hover { color: var(--accent); background: var(--accent-tint); }
.sb-part__x:active { transform: scale(.88); }
.sb-gone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--fill); font-size: 13.5px; }
.sb-gone__label { color: var(--muted); font-weight: 600; margin-right: 2px; }
.sb-gone__item { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 12px 5px 9px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .1s ease-out, box-shadow .15s; }
.sb-gone__item:hover { box-shadow: 0 0 0 1px var(--line-strong); }
.sb-gone__item:active { transform: scale(.95); }
.sb-gone__item .ph { color: var(--link); }
.sb-gone__item b { font-family: var(--mono); font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-gone__item small { color: var(--muted); }
.sb-gone .link { font-size: 13.5px; }
.sb-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
.sb-part__qty { font-family: var(--mono); font-size: 18px; font-weight: 600; text-align: right; }
.sb-part__qty small { font-size: 13px; color: var(--muted); margin-left: 1px; }
.sb-part__img { width: 56px; height: 48px; display: grid; place-items: center; background: var(--well); border-radius: var(--r); }
.sb-part__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.sb-part__img .ph { font-size: 22px; color: var(--on-well); }
.sb-part__text { min-width: 0; display: grid; gap: 1px; font-size: 14px; }
.sb-part__text b { font-size: 14.5px; }
.sb-part__text > span:not(.sb-part__role) { color: var(--text-2); }
.sb-part__text small { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sb-part__role { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sb-oil { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--fill); font-size: 14px; }
.sb-oil__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-2); }
.sb-oil__row span { display: inline-flex; align-items: center; gap: 6px; }
.sb-oil__row b { font-family: var(--mono); font-weight: 500; font-size: 13.5px; color: var(--text); }
.sb-oil__bar { height: 8px; border-radius: var(--pill); background: var(--fill-2); overflow: hidden; }
.sb-oil__bar span { display: block; height: 100%; background: var(--success); border-radius: var(--r); }
.sb-kit { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); padding: 12px 14px; border-radius: 14px; background: var(--success-tint); }
.sb-kit b { color: var(--text); }
.sb-kit .ph { color: var(--success); margin-top: 1px; }
.sb-notes { display: grid; gap: 6px; }
.sb-notes .ph { color: var(--muted); margin-top: 3px; }
.sb-notes--warn .ph { color: var(--accent); }
.sb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.sb-fine .ph { color: var(--success); margin-top: 1px; }

.sb-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.sb-promo .body { margin-top: 12px; }
.sb-promo .btn { margin-top: 24px; }
.sb-promo__pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sb-promo__pics span { aspect-ratio: 1 / 1.1; display: grid; place-items: center; background: var(--well); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.sb-promo__pics img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }

.qitem--set .qitem__img { display: grid; place-items: center; }
.qitem--set .qitem__img .ph { font-size: 30px; color: var(--on-well); }
.qset { display: grid; gap: 3px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.qset li { display: grid; grid-template-columns: 34px auto minmax(0, 1fr); gap: 6px; align-items: baseline; }
.qset b { font-family: var(--mono); font-weight: 500; text-align: right; }
.qset .mono { font-weight: 600; color: var(--text); }
.qset li > span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .sb { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sb-opts { grid-template-columns: 1fr; }
  .sb-opt__box { grid-template-columns: 28px 1fr; align-items: center; }
  .sb-row { grid-template-columns: 1fr; }
  .sb-light { margin-top: 0; }
  .sb-hero { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .sb-hero__img { width: 84px; height: 76px; }
  .sb-hero__model { font-size: 21px; }
  .sb-part { grid-template-columns: 34px 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .sb-part__img { width: 44px; height: 40px; }
  .sb-promo { grid-template-columns: 1fr; }
  .sb-actions .btn { width: 100%; }
  .qset li { grid-template-columns: 30px minmax(0, 1fr); }
  .qset li > span:last-child { grid-column: 2; white-space: normal; }
}
.qitem--set .qitem__sku { font-family: var(--font); letter-spacing: 0; }

/* ---------- Set builder: tabs, pasted lists, pullers, torque wrenches ---------- */
.sb-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.sb-tabs a { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 14px 16px; border: 1px solid transparent; border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-card); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .1s ease-out; }
.sb-tabs a:hover { box-shadow: var(--shadow-lift); }
.sb-tabs a:active { transform: scale(.97); }
.sb-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-tabs a[aria-current="page"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-card); }
.sb-tabs .ph { font-size: 24px; color: var(--muted); flex: none; }
.sb-tabs a[aria-current="page"] .ph { color: var(--accent); }
.sb-tabs span { min-width: 0; }
.sb-tabs b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.sb-tabs small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.sb--stack { grid-template-columns: minmax(0, 1fr); }
.sb--stack.sb--loading .sb__form { min-height: 220px; }
.sb-half { max-width: calc(50% - 7px); }
.sb-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-q__opt { font-weight: 400; font-size: 13px; color: var(--muted); }

.sb-paste { display: grid; gap: 10px; padding: 22px 24px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.sb-paste .field label { font-weight: 600; font-size: 17px; letter-spacing: -.014em; }
.sb-paste textarea { min-height: 150px; font-family: var(--mono); font-size: 13.5px; line-height: 1.55; }
.sb-paste__acts { display: flex; gap: 20px; flex-wrap: wrap; }
.sb-paste__acts .link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.sb-how { display: grid; gap: 8px; margin: 4px 0 6px; font-size: 14.5px; color: var(--text-2); counter-reset: how; }
.sb-how li { display: flex; gap: 10px; align-items: flex-start; counter-increment: how; }
.sb-how li::before { content: counter(how); width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; }

.sb-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sb-tally { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; }
.sb-badge--exact { background: var(--success-tint); color: var(--success); }
.sb-badge--close { background: var(--brand-tint); color: var(--ink); }
.sb-badge--check { background: var(--accent-tint); color: var(--accent-hover); }
.sb-badge--none { background: var(--fill); color: var(--muted); }
.sb-lines { display: grid; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sb-line { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.15fr) auto; gap: 16px; align-items: start; padding: 14px 16px; }
.sb-line + .sb-line { border-top: 1px solid var(--line); }
.sb-line__n { padding-top: 19px; font-size: 13px; color: var(--muted); }
.sb-line__label { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sb-line__in p { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.sb-line__out { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.sb-line__out b { font-size: 16px; }
.sb-line__out > span:not(.sb-line__label) { color: var(--text-2); }
.sb-line__out small { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.sb-line__notes { display: grid; gap: 4px; margin-top: 6px; }
.sb-line__notes li { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.sb-line__notes .ph { margin-top: 2px; color: var(--muted); }
.sb-line__pick { justify-self: start; max-width: 100%; height: 34px; margin-top: 8px; padding: 0 12px; border: 0; border-radius: var(--pill); background: var(--fill); font-size: 13px; cursor: pointer; }
.sb-line__side { display: grid; justify-items: end; gap: 10px; padding-top: 17px; }
.sb-line__qty { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sb-line__qty input { width: 64px; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--pill); background: var(--fill); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.sb-line__qty input:focus, .sb-line__pick:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 26%, transparent); }
.sb-legend { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.sb-legend b { color: var(--text-2); font-weight: 600; }
.sb-complete { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--fill); }
.sb-complete .sb-sub { margin-bottom: 0; }
.sb-complete__hint { font-size: 13.5px; color: var(--muted); }
.sb-complete__pump { max-width: 360px; }
.sb-complete__pump select { width: 100%; height: 42px; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--surface); font-size: 14.5px; cursor: pointer; }
.sb-complete .sb-parts { background: var(--surface); transition: opacity .2s var(--ease); }
.sb-parts.is-off { opacity: .45; }
.sb-seg { display: inline-flex; justify-self: start; padding: 2px; border-radius: 10px; background: var(--fill); }
.sb-seg label { position: relative; cursor: pointer; }
.sb-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sb-seg span { display: block; padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.sb-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.sb-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

.sb-more { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.sb-more summary { display: flex; align-items: center; gap: 12px; padding: 16px 22px; cursor: pointer; list-style: none; }
.sb-more summary::-webkit-details-marker { display: none; }
.sb-more summary > .ph:first-child { font-size: 20px; color: var(--muted); }
.sb-more summary b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.sb-more summary small { display: block; font-size: 13px; color: var(--muted); }
.sb-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-more__caret { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease); }
.sb-more[open] .sb-more__caret { transform: rotate(180deg); }
.sb-more__body { display: grid; gap: 16px; padding: 0 22px 20px; }
.sb-more__group { display: grid; gap: 8px; }
.sb-more__label { font-size: 14px; font-weight: 600; }

.sb-torque { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--brand-tint); }
.sb-torque__nm { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.sb-torque__alt { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.sb-torque p { font-size: 14px; color: var(--text-2); }
.sb-range { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--fill); font-size: 13.5px; }
.sb-range p { color: var(--muted); }
.sb-range__bar { position: relative; height: 8px; border-radius: var(--pill); background: var(--fill-2); }
.sb-range__band { position: absolute; top: 0; bottom: 0; left: 20%; right: 20%; border-radius: var(--pill); background: var(--success-tint); box-shadow: inset 0 0 0 1px var(--success); }
.sb-range__bar i { position: absolute; top: -5px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); }

@media (max-width: 900px) {
  .sb-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-line { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .sb-line__in { grid-column: 2; grid-row: 1; }
  .sb-line__out { grid-column: 2; grid-row: 2; }
  .sb-line__side { grid-column: 3; grid-row: 1 / span 2; padding-top: 0; }
  .sb-line__n { padding-top: 1px; }
}
@media (max-width: 640px) {
  .sb-tabs a { padding: 12px; gap: 10px; }
  .sb-tabs small { display: none; }
  .sb-half { max-width: none; }
  .sb-opts--2 { grid-template-columns: 1fr; }
  .sb-paste, .sb-more summary { padding-left: 16px; padding-right: 16px; }
  .sb-more__body { padding: 0 16px 16px; }
  .sb-line { grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .sb-line__side { grid-column: 2; grid-row: 3; display: flex; justify-content: space-between; align-items: center; }
  .sb-torque { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Tools: hub and Measure ---------- */
.sb-promo__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.sb-promo__acts .btn { margin-top: 0; }
.sb-promo__acts .link { font-size: 14.5px; }

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tool-card { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-card); transition: transform .1s ease-out, box-shadow .2s var(--ease); }
.tool-card:hover { box-shadow: var(--shadow-lift); }
.tool-card:active { transform: scale(.985); }
.tool-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r); background: var(--brand-tint); }
.tool-card__icon .ph { font-size: 28px; color: var(--accent); }
.tool-card__body { display: grid; gap: 8px; align-content: start; }
.tool-card__body > b { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.022em; }
.tool-card__body > span { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.tool-card ul { display: grid; gap: 6px; margin-top: 6px; }
.tool-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.tool-card li .ph { color: var(--success); margin-top: 3px; }
.tool-card__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--link); }

.sb-tabs--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mt { margin-top: 24px; }
.mt-skel { min-height: 360px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.mt-card { display: grid; gap: 18px; padding: clamp(20px, 2.6vw, 28px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.mt-intro { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.mt-intro > .ph { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r); background: var(--brand-tint); color: var(--accent); font-size: 28px; }
.mt-intro p { color: var(--text-2); margin-top: 6px; max-width: 70ch; }
.mt-steps { display: grid; gap: 8px; counter-reset: mt; font-size: 14.5px; color: var(--text-2); }
.mt-steps li { display: flex; gap: 10px; counter-increment: mt; }
.mt-steps li::before { content: counter(mt); width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; }
.mt-go { display: grid; justify-items: start; gap: 10px; }
.mt-status { font-size: 14px; color: var(--text-2); }
.mt-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.mt-fine .ph { margin-top: 1px; }
.mt-results { padding: 14px 16px; border-radius: 16px; background: var(--fill); }
.mt-results h3 { font-size: 15px; margin-bottom: 8px; }
.mt-results ol { display: grid; gap: 6px; list-style: decimal inside; }
.mt-results li b { font-size: 16px; margin-right: 10px; }
.mt-results li span { font-size: 13px; color: var(--muted); }
.mt-results p { margin-top: 8px; font-size: 14px; }
.mt-file { position: relative; cursor: pointer; }
.mt-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.mt-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.mt-photo { display: grid; gap: 12px; }
.mt-step { font-size: 14.5px; color: var(--text-2); }
.mt-stage { position: relative; width: 100%; }
.mt-stage canvas:first-child { display: block; max-width: 100%; border-radius: var(--r); touch-action: none; cursor: crosshair; }
.mt-loupe { position: absolute; pointer-events: none; border-radius: 50%; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.mt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mt-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--fill); justify-self: start; }
.mt-seg button { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; border: 0; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.mt-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.mt-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chip { min-width: 44px; padding: 8px 14px; border: 0; border-radius: var(--pill); background: var(--fill); font-family: var(--mono); font-size: 13.5px; transition: background-color .15s var(--ease), transform .1s ease-out; }
.mt-chip:hover { background: var(--fill-2); }
.mt-chip:active { transform: scale(.94); }
.mt-chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.mt-lcd { display: flex; align-items: baseline; gap: 8px; padding: 16px 20px; border-radius: 18px; background: var(--ink); color: var(--on-ink); }
.mt-lcd b { font-size: clamp(34px, 7vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.mt-lcd span { font-size: 15px; opacity: .75; }
.mt-lcd small { margin-left: auto; padding: 2px 6px; border: 1px solid currentColor; border-radius: var(--r); font-family: var(--mono); font-size: 11px; }
.mt-caliper { display: grid; gap: 14px; }
.mt-jaws { position: relative; width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); touch-action: none; cursor: ew-resize; overflow: hidden; }
.mt-jaws:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mt-jaws canvas { display: block; }
.mt-fine-adj { display: flex; justify-content: space-between; gap: 10px; }
.mt-fine-adj .btn { font-family: var(--mono); }
.mt-ident { display: grid; gap: 10px; justify-items: start; }
.mt-ident__hit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14.5px; color: var(--text-2); }
.mt-ident__hit b { font-size: 22px; color: var(--text); }
.mt-ident__alt { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.mt-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-radius: 16px; background: var(--accent-tint); color: var(--text); font-size: 14px; }
.mt-banner > .ph { color: var(--accent); }
.mt-banner span { flex: 1 1 260px; }
.mt-calib { display: grid; gap: 14px; justify-items: start; }
.mt-calib p { color: var(--text-2); max-width: 60ch; font-size: 14.5px; }
.mt-calib__card { position: relative; border: 2px dashed var(--accent); border-radius: 10px; background: var(--accent-tint); }
.mt-calib__card span { position: absolute; left: 10px; top: 8px; font-size: 12px; color: var(--accent-hover); font-weight: 600; }
.mt-calib__ctl { display: flex; align-items: center; gap: 10px; width: min(100%, 420px); }
.mt-calib__ctl input { flex: 1; accent-color: var(--ink); }
.mt-calib__acts { display: flex; gap: 10px; }
.mt-comb { width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.mt-comb canvas { display: block; }
[data-mt-thread] { display: grid; gap: 14px; justify-items: start; }
[data-mt-thread] .mt-comb { justify-self: stretch; }
.mt-level { display: grid; justify-items: center; gap: 14px; padding: 20px; border-radius: 18px; background: var(--fill); border: 1px solid transparent; transition: border-color .2s var(--ease); }
.mt-level.is-level { border-color: var(--success); }
.mt-level .mt-lcd { justify-self: stretch; justify-content: center; }
.mt-level__sub { font-size: 14px; color: var(--text-2); text-align: center; min-height: 1.5em; }
.mt-vial { position: relative; width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--success-tint) 0%, var(--surface-2) 70%); border: 2px solid var(--line-strong); overflow: hidden; }
.mt-vial.is-edge { aspect-ratio: 5 / 1; border-radius: 999px; }
.mt-vial__ring { position: absolute; inset: 36%; border: 2px solid var(--muted); border-radius: 50%; }
.mt-vial.is-edge .mt-vial__ring { inset: 10% 44%; border-radius: 8px; }
.mt-vial__bubble { position: absolute; left: 39%; top: 39%; width: 22%; height: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff 0%, var(--success) 70%); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: transform .12s linear; }
.mt-vial.is-edge .mt-vial__bubble { left: 45%; top: 10%; width: 10%; height: 80%; }
.mt-conv .sb-unit { max-width: 360px; }
.mt-conv select { flex: none; border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0 10px; font-size: 14px; color: var(--text-2); }
.mt-conv__out { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mt-conv__out li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--fill); }
.mt-conv__out b { font-size: 17px; }
.mt-conv__out span { font-size: 13px; color: var(--muted); }
.mt-ar { position: fixed; inset: 0; z-index: var(--z-toast); background: transparent; }
.mt-ar canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt-ar__top { position: absolute; left: 16px; right: 16px; top: max(16px, env(safe-area-inset-top)); display: grid; justify-items: center; gap: 2px; padding: 12px; border-radius: 18px; background: rgba(29, 29, 31, .72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #ffffff; text-align: center; }
.mt-ar__top b { font-family: var(--mono); font-size: 26px; }
.mt-ar__top small { font-size: 13px; opacity: .85; }
.mt-ar__bar { position: absolute; left: 16px; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; gap: 12px; }
.mt-ar__bar button { flex: 1; height: 56px; border-radius: var(--pill); border: 0; background: rgba(255, 255, 255, .92); color: #12142b; font-size: 17px; font-weight: 600; }
.mt-ar__bar .is-primary { background: #c42a35; color: #ffffff; }


@media (max-width: 1100px) {
  .sb-tabs--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto; }
  .tool-card__go { grid-column: 2; }
}
@media (max-width: 640px) {
  .sb-tabs--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { grid-template-columns: 1fr; padding: 18px; }
  .tool-card__go { grid-column: auto; }
  .mt-intro { grid-template-columns: 1fr; }
  /* Edge to edge on phones: more room for the ruler, the teeth and the card outline. */
  .mt-jaws, .mt-comb { margin-inline: calc(-1 * (max(16px, 3vw) + 20px)); width: auto; border-radius: 0; border-inline: 0; }
  .mt-calib__card { margin-left: calc(8px - max(16px, 3vw) - 20px); }
}

/* Category tiles on tablets and phones: the photo sits under the name instead of beside it. */
@media (max-width: 900px) {
  .bento__img, .bento__cell--a .bento__img, .bento__cell--b .bento__img, .bento__cell--e .bento__img { position: relative; inset: auto; width: auto; height: auto; flex: 1; min-height: 120px; }
  .bento__cell--a .bento__img { min-height: 220px; }
}

/* ---------- RAD tools: the set builder's fifth tab ---------- */
.sb-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .sb-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-tabs a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* The RAD form shows only the questions for the job, so its questions number themselves. */
.sb__form--rad { counter-reset: radq; }
.sb__form--rad .sb-q:not([hidden]) { counter-increment: radq; }
.sb__form--rad .sb-q__n::before { content: counter(radq); }
.sb-unit__tag { flex: none; display: grid; place-items: center; padding: 0 14px; border-left: 1px solid var(--line-strong); font-size: 13.5px; color: var(--text-2); }
.rad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rad-chip { position: relative; cursor: pointer; }
.rad-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rad-chip span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--fill); font-size: 14px; font-weight: 500; letter-spacing: -.006em; transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .1s ease-out; }
.rad-chip span .ph { color: var(--muted); transition: color .15s var(--ease); }
.rad-chip:hover span { background: var(--fill-2); }
.rad-chip:active span { transform: scale(.96); }
.rad-chip input:checked + span { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rad-chip input:checked + span .ph { color: var(--accent); }
.rad-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rad-meet { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 14px; }
.rad-twin { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rad-note { font-size: 13.5px; color: var(--muted); }
.rad-reasons, .rad-box { display: grid; gap: 7px; }
.rad-reasons li, .rad-box li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.rad-reasons .ph { margin-top: 3px; color: var(--success); }
.rad-box .ph { margin-top: 3px; color: var(--muted); }
.rad-adds { display: grid; gap: 14px; padding: 16px; border-radius: 18px; background: var(--fill); }
.rad-adds .sb-sub { margin-bottom: -4px; }
.rad-adds__group { display: grid; gap: 8px; }
.rad-adds__title { font-size: 13px; font-weight: 600; color: var(--text-2); }
.rad-adds__title small { display: block; font-weight: 400; color: var(--muted); }
.rad-adds__list { display: flex; flex-wrap: wrap; gap: 8px; }
.rad-add { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow-sm); text-align: left; transition: box-shadow .15s var(--ease), transform .1s ease-out; }
.rad-add:hover { box-shadow: 0 0 0 1px var(--line-strong); }
.rad-add:active { transform: scale(.95); }
.rad-add > .ph { color: var(--link); }
.rad-add b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.006em; }
.rad-add small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.sb-radlink { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 14px; }

/* ---------- RAD tools: the brand page (#/rad) ---------- */
.rad-hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }   /* the closing call to action's buttons */
.rad-pic { display: grid; place-items: center; background: var(--well); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.rad-pic img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }

.rad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.rad-stats li { display: grid; gap: 6px; align-content: start; padding: 22px 22px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.rad-stats b { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.05; letter-spacing: -.028em; font-variant-numeric: tabular-nums; }
.rad-stats span { font-size: 14px; line-height: 1.4; color: var(--muted); }

.rad-power__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rad-power__card { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.rad-power__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-tint); color: var(--link); font-size: 24px; }
.rad-power__card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.022em; }
.rad-power__card > p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.rad-fams { display: grid; align-content: start; border-radius: var(--r); background: var(--fill); }
.rad-fams li + li { border-top: 1px solid var(--line); }
.rad-fams a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; color: var(--text); text-decoration: none; border-radius: var(--r); transition: background-color .15s var(--ease); }
.rad-fams a:hover { background: var(--fill); }
.rad-fams b { font-size: 14.5px; font-weight: 600; letter-spacing: -.008em; }
.rad-fams span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rad-power__card > .link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }

/* The range chart: one colour for every bar; the families that reach the slider's torque are lit, the rest grey. */
.rad-range .section-head { align-items: flex-end; }
.rad-range__card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.rad-range__ctl { display: grid; align-content: start; gap: 14px; }
.rad-range__read { display: block; font-size: 15px; color: var(--muted); }
.rad-range__read b { font-size: clamp(36px, 4vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.rad-range__count { font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.rad-range__ctl .btn { justify-self: start; }
.rad-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.rad-slider::-webkit-slider-runnable-track { height: 6px; border-radius: var(--pill); background: var(--fill-2); }
.rad-slider::-moz-range-track { height: 6px; border-radius: var(--pill); background: var(--fill-2); }
.rad-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04), 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .15s var(--ease); }
.rad-slider::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04), 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); }
.rad-slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.rad-slider:focus-visible { outline: none; }
.rad-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 40%, transparent), 0 3px 8px rgba(0, 0, 0, .15); }
.rad-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 40%, transparent), 0 3px 8px rgba(0, 0, 0, .15); }
.rad-chart { --name: 172px; --val: 124px; --gap: 16px; --at: 50%; position: relative; min-width: 0; padding-bottom: 26px; }
.rad-chart__grid, .rad-chart__axis { position: absolute; left: calc(var(--name) + var(--gap)); right: calc(var(--val) + var(--gap)); }
.rad-chart__grid { top: 0; bottom: 26px; pointer-events: none; }
.rad-chart__grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rad-chart__axis { bottom: 0; height: 18px; }
.rad-chart__axis span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rad-chart__rows { position: relative; display: grid; }
.rad-chart__row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr) var(--val); gap: var(--gap); align-items: center; padding: 7px 0; color: var(--text); text-decoration: none; border-radius: var(--r-sm); transition: background-color .15s var(--ease); }
.rad-chart__row:hover { background: var(--fill); }
.rad-chart__row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rad-chart__name { min-width: 0; padding-left: 8px; }
.rad-chart__name b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.008em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rad-chart__name small { display: block; font-size: 12px; color: var(--muted); }
.rad-chart__mval { display: none; }
.rad-chart__track { position: relative; height: 10px; }
/* The slider's torque runs through every row as one line, above the bars. */
.rad-chart__at { position: absolute; top: 0; bottom: 26px; left: calc(var(--name) + var(--gap)); right: calc(var(--val) + var(--gap)); pointer-events: none; }
.rad-chart__at::after { content: ""; position: absolute; left: var(--at); top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); }
.rad-chart__bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--fill-2); transition: background-color .2s var(--ease); }
.rad-chart__row.is-on .rad-chart__bar { background: var(--accent); }
.rad-chart__val { font-size: 12.5px; color: var(--muted); text-align: right; padding-right: 8px; white-space: nowrap; transition: color .2s var(--ease); }
.rad-chart__row.is-on .rad-chart__val { color: var(--text); }

.rad-inds .rail__track { grid-auto-columns: calc((100% - 32px) / 3); }
.rad-ind { display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.rad-ind__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 22px; }
.rad-ind h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.rad-ind__line { font-size: 14.5px; color: var(--muted); margin-top: -6px; }
.rad-ind__jobs { display: grid; gap: 6px; align-content: start; }
.rad-ind__jobs li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.rad-ind__jobs .ph { margin-top: 3px; color: var(--success); }
.rad-ind__picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rad-ind__picks > span:first-child { width: 100%; font-size: 12px; font-weight: 600; color: var(--muted); }
.rad-ind__picks a, .rad-ind__chip { padding: 4px 11px; border-radius: var(--pill); background: var(--fill); font-size: 12.5px; font-weight: 500; color: var(--text); text-decoration: none; transition: background-color .15s var(--ease), transform .1s ease-out; }
.rad-ind__picks a:hover { background: var(--fill-2); }
.rad-ind__picks a:active { transform: scale(.95); }
.rad-ind > .link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }

.rad-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rad-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rad-tile { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.rad-tile .rad-pic { aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
.rad-tile__body { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 20px 22px 22px; }
.rad-tile h3 { font-size: 19px; font-weight: 700; letter-spacing: -.018em; }
.rad-tile p { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.rad-tile .link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }

.rad-why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rad-why__grid li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.rad-why__grid li > .ph { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--fill); font-size: 22px; color: var(--text-2); }
.rad-why__grid h3 { font-size: 17px; font-weight: 600; letter-spacing: -.014em; }
.rad-why__grid p { margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

.rad-cta__card { display: grid; justify-items: center; gap: 14px; padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px); border-radius: var(--r-lg); background: #111216; color: #f5f5f7; text-align: center; }
.rad-cta__card h2 { max-width: 18ch; }
.rad-cta__card p { max-width: 56ch; color: rgba(245, 245, 247, .72); font-size: 17px; line-height: 1.45; letter-spacing: -.012em; }
.rad-cta__card .rad-hero__acts { justify-content: center; margin-top: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rad-cta__card { background: var(--surface); box-shadow: 0 0 0 1px var(--line); } }
:root[data-theme="dark"] .rad-cta__card { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

@media (max-width: 1100px) {
  .rad-range__card { grid-template-columns: minmax(0, 1fr); }
  .rad-range__ctl { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 20px; }
  .rad-range__ctl .rad-slider, .rad-range__ctl .rad-range__count { grid-column: 1 / -1; }
  .rad-range__ctl .btn { grid-column: 2; grid-row: 1; justify-self: end; }
  .rad-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rad-power__grid, .rad-tiles { grid-template-columns: minmax(0, 1fr); }
  .rad-inds .rail__track { grid-auto-columns: calc((100% - 16px) / 1.6); }
  .rad-why__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rad-range .section-head { flex-direction: column; align-items: flex-start; }
  .rad-chart { --name: 116px; --val: 0px; --gap: 10px; }
  .rad-chart__val { display: none; }
  .rad-chart__mval { display: block; margin-top: 1px; font-size: 11px; }
  .rad-chart__name b { font-size: 13px; white-space: normal; line-height: 1.25; }
  .rad-stats li { padding: 18px 16px 16px; }
  .rad-stats b { font-size: 24px; }
  .rad-tiles--4 { grid-template-columns: minmax(0, 1fr); }
  .rad-inds .rail__track { grid-auto-columns: 86%; }
  .rad-range__ctl .btn { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; }
}
@media (prefers-reduced-transparency: reduce) {
  .rad-cta__card .btn--glass { background: #23264d; }
}
@media (prefers-contrast: more) {
  .rad-stats li, .rad-power__card, .rad-range__card, .rad-ind, .rad-tile, .rad-why__grid li { box-shadow: 0 0 0 1px var(--muted); }
  .rad-chart__bar { box-shadow: inset 0 0 0 1px var(--text); }
  .rad-chart__grid i { background: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .rad-chip:active span, .rad-add:active, .rad-ind__picks a:active { transform: none; }
  .rad-slider:active::-webkit-slider-thumb { transform: none; }
}
.rad-model { font-family: var(--font-display); letter-spacing: -.024em; }
.rad-range__read b { font-family: var(--font-display); }
.rad-ind__picks { min-height: 80px; align-content: start; }
.rad-cta__card h2 { color: inherit; }

/* ---------- Home hero: a light circling the edge of "Shop all products" ----------
   The button's face moves to ::before so the glow (::after) can sit behind it, inside the button's own
   stacking context (the press-down scale would otherwise lift the glow over the face). One comet of light
   runs round a conic gradient: sharp on the 1.5px rim, blurred behind it. Without @property support the
   light simply stays still; with reduced motion it stays still on purpose. */
@property --orbit { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --orbit: 360deg; } }
.btn--orbit { position: relative; isolation: isolate; background: transparent; border-color: transparent; }
.btn--orbit::before, .btn--orbit::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; animation: orbit 3.6s linear infinite; }
.btn--orbit::before {
  inset: -2px; z-index: -1; border: 2px solid transparent;
  background:
    linear-gradient(var(--btn-bg), var(--btn-bg)) padding-box,
    conic-gradient(from var(--orbit), rgba(255, 255, 255, .14) 0deg 200deg, rgba(255, 150, 158, .7) 270deg, #ffe3e5 320deg, #ffffff 340deg, rgba(255, 255, 255, .14) 360deg) border-box;
}
.btn--orbit::after {
  inset: -7px; z-index: -2;
  background: conic-gradient(from var(--orbit), transparent 0deg 200deg, rgba(255, 70, 90, .75) 270deg, rgba(255, 200, 206, .95) 322deg, #ffffff 340deg, transparent 360deg);
  filter: blur(12px);
}
@media (prefers-reduced-motion: reduce) {
  .btn--orbit::before, .btn--orbit::after { animation: none; }
  .btn--orbit::after { background: rgba(255, 120, 130, .45); opacity: .6; }
}
@media (prefers-contrast: more) {
  .btn--orbit::after { display: none; }
}

/* ---------- Film hero: a brand's films cycling beside its words (#/rad, the Hydraulic Technologies page) ----------
   The films' four edges fade to nothing (two crossed gradient masks), so they sit in the page with no frame;
   the band is the films' own background colour: near-black for RAD, studio white for Hydraulic Technologies.
   Each film crossfades into the next; the words beside it change with it (stacked in one cell, so nothing
   below moves). A frosted bar under the films shows which is playing and pauses them. */
.fhero {
  --fh-bg: #060403; --fh-accent: 220, 33, 0; --fh-text: #f5f5f7; --fh-muted: rgba(245, 245, 247, .68); --fh-faint: rgba(245, 245, 247, .55);
  --fh-line: rgba(255, 255, 255, .1); --fade: 1.2s;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, calc(100dvh - var(--hdr, var(--header-h))), 900px);
  display: grid; align-content: center;
  padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 88px);
  background: var(--fh-bg); color: var(--fh-text);
}
.fhero--dark { margin-top: calc(var(--hdr, var(--header-h)) * -1); padding-top: calc(var(--hdr, var(--header-h)) + clamp(16px, 3vw, 40px)); }
.fhero--light { --fh-bg: #f6f6f5; --fh-text: #1d1d1f; --fh-muted: #6e6e73; --fh-faint: #86868b; --fh-line: rgba(0, 0, 0, .08); min-height: clamp(560px, 82vh, 860px); }
/* The band keeps its own colours in either site theme: the site's tokens are pinned inside it. */
.fhero--light { --text: #1d1d1f; --text-2: #424245; --muted: #6e6e73; --faint: #86868b; --fill: rgba(118, 118, 128, .12); --fill-2: rgba(118, 118, 128, .2); --ink: #1d1d1f; --ink-hover: #3a3a3d; --on-ink: #ffffff; }
.fhero--dark { --text: #f5f5f7; --text-2: rgba(245, 245, 247, .8); --muted: rgba(245, 245, 247, .62); --faint: rgba(245, 245, 247, .45); --fill: rgba(255, 255, 255, .1); --fill-2: rgba(255, 255, 255, .16); }
.fhero--ht { --fh-accent: 234, 86, 51; }
.fhero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 52% at 72% 52%, rgba(var(--fh-accent), .16) 0%, rgba(var(--fh-accent), 0) 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(var(--fh-accent), .07) 0%, rgba(var(--fh-accent), 0) 70%);
}
.fhero--light .fhero__glow { opacity: .45; }
.fhero .crumbs { position: relative; z-index: 2; margin-bottom: clamp(8px, 2vw, 20px); }
.fhero__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.fhero__copy { position: relative; z-index: 2; display: grid; justify-items: start; gap: 22px; }
.fhero__slides { display: grid; width: 100%; }
.fhero__slide { grid-area: 1 / 1; display: grid; justify-items: start; align-content: start; gap: 22px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.fhero__slide.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.fhero__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 13.5px; font-weight: 500; letter-spacing: -.006em; color: var(--fh-text); text-decoration: none;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .12s ease-out;
}
.fhero--light .fhero__tag { background: #ffffff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04); color: #424245; }
.fhero__tag b { padding: 3px 10px; border-radius: var(--pill); background: rgb(var(--fh-accent)); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.fhero__tag:hover { background: rgba(255, 255, 255, .11); }
.fhero--light .fhero__tag:hover { background: #ffffff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 4px 12px -6px rgba(0, 0, 0, .18); }
.fhero__tag:active { transform: scale(.97); }
.fhero__tag .ph { font-size: 13px; color: var(--fh-faint); }
.fhero__title { font-family: var(--font-display); font-weight: 700; color: var(--fh-text); font-size: clamp(44px, 5.6vw, 82px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.fhero__title span { display: block; color: transparent; background: linear-gradient(180deg, #ff5a3c 0%, rgb(var(--fh-accent)) 100%); -webkit-background-clip: text; background-clip: text; padding-bottom: .06em; }
.fhero--ht .fhero__title span { background-image: linear-gradient(180deg, #ff8152 0%, rgb(var(--fh-accent)) 55%, #c9411f 100%); }
.fhero__lead { max-width: 44ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; letter-spacing: -.014em; color: var(--fh-muted); }
.fhero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.fhero__specs { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 28px; margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--fh-line); justify-content: start; }
.fhero__specs b { display: block; white-space: nowrap; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--fh-text); }
.fhero__specs span { display: block; font-size: 13px; color: var(--fh-faint); }
/* Hydraulic Technologies: the main button is dark, its circling light in HT orange. */
.fhero--ht .btn--orbit::before {
  background:
    linear-gradient(var(--btn-bg), var(--btn-bg)) padding-box,
    conic-gradient(from var(--orbit), rgba(255, 255, 255, .12) 0deg 200deg, rgba(var(--fh-accent), .8) 270deg, #ffb08f 322deg, #fff1ea 340deg, rgba(255, 255, 255, .12) 360deg) border-box;
}
.fhero--ht .btn--orbit::after { background: conic-gradient(from var(--orbit), transparent 0deg 200deg, rgba(var(--fh-accent), .75) 270deg, rgba(255, 140, 100, .9) 322deg, rgba(255, 210, 190, .95) 340deg, transparent 360deg); }
/* CEJN: a cool black band, and CEJN blue (#1A4A8F, from the logo) brightened so it reads on it: the headline's
   second line, the label pill, the glow and the main button with its circling light. */
.fhero--cejn { --fh-bg: #040507; --fh-accent: 46, 111, 216; }
.fhero--cejn .fhero__title span { background-image: linear-gradient(180deg, #a3c6ff 0%, #5d96f6 55%, #3a74dc 100%); }
.fhero--cejn .btn--primary { --btn-bg: #2563c9; --btn-fg: #ffffff; }
.fhero--cejn .btn--primary:hover { --btn-bg: #1f56b0; }
.fhero--cejn .btn--orbit::before {
  background:
    linear-gradient(var(--btn-bg), var(--btn-bg)) padding-box,
    conic-gradient(from var(--orbit), rgba(255, 255, 255, .14) 0deg 200deg, rgba(130, 175, 255, .75) 270deg, #dfe9ff 320deg, #ffffff 340deg, rgba(255, 255, 255, .14) 360deg) border-box;
}
.fhero--cejn .btn--orbit::after { background: conic-gradient(from var(--orbit), transparent 0deg 200deg, rgba(60, 130, 255, .75) 270deg, rgba(190, 214, 255, .95) 322deg, #ffffff 340deg, transparent 360deg); }
/* CEJN's films carry subtitles along their bottom edge and CEJN's logo in their top-left corner: the bottom fade
   starts higher and is gone by 87%, and a third, corner-shaped fade hides the logo. */
.fhero--cejn .fhero__film video {
  --fade-y: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.16) 7%, rgba(0,0,0,.5) 14%, rgba(0,0,0,.84) 21%, #000 28%, #000 60%, rgba(0,0,0,.84) 66%, rgba(0,0,0,.5) 73%, rgba(0,0,0,.16) 80%, rgba(0,0,0,0) 87%);
  --fade-corner: radial-gradient(ellipse 26% 34% at 0% 0%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 74%, rgba(0,0,0,.5) 87%, #000 100%);
  -webkit-mask-image: var(--fade-x), var(--fade-y), var(--fade-corner);
  -webkit-mask-composite: source-in, source-in;
  mask-image: var(--fade-x), var(--fade-y), var(--fade-corner);
  mask-composite: intersect, intersect;
}
@media (prefers-reduced-motion: reduce) { .fhero--cejn .btn--orbit::after { background: rgba(90, 150, 255, .45); } }
@media (prefers-reduced-transparency: reduce) { .fhero--cejn .fhero__bar { background: #1c2130; } }
/* Chicago Pneumatic: CP red (#E2231A, from the logo) on a neutral black, the band its films are shot on. */
.fhero--cp { --fh-bg: #050505; --fh-accent: 226, 35, 26; }
.fhero--cp .fhero__title span { background-image: linear-gradient(180deg, #ff7a66 0%, #f0402e 55%, #c91c12 100%); }

.fhero__media { position: relative; margin: -4% calc(-1 * var(--gutter)) -4% calc(-1 * clamp(60px, 8vw, 150px)); }
.fhero__film { position: relative; aspect-ratio: 16 / 9; }
.fhero__film video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  /* Eased ramps (a smoothstep in five stops) over a quarter of each side: even a film's light scenes fade
     out like a glow instead of showing a soft box. */
  --fade-x: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,.16) 6%, rgba(0,0,0,.5) 12%, rgba(0,0,0,.84) 18%, #000 24%, #000 76%, rgba(0,0,0,.84) 82%, rgba(0,0,0,.5) 88%, rgba(0,0,0,.16) 94%, rgba(0,0,0,0) 100%);
  --fade-y: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.16) 7%, rgba(0,0,0,.5) 14%, rgba(0,0,0,.84) 21%, #000 28%, #000 72%, rgba(0,0,0,.84) 79%, rgba(0,0,0,.5) 86%, rgba(0,0,0,.16) 93%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
  opacity: 0; transition: opacity var(--fade) cubic-bezier(.45, 0, .55, 1);
}
.fhero__film video.is-on { opacity: 1; }
.fhero__bar {
  position: absolute; left: 50%; bottom: 0; z-index: 3; transform: translate(-50%, 30%);
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--pill);
  background: rgba(28, 22, 20, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.fhero--light .fhero__bar { background: rgba(255, 255, 255, .72); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
.fhero__toggle, .fhero__pill { color: var(--fh-text); transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s ease-out; }
.fhero__toggle { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.fhero__toggle .ph { font-size: 16px; }
.fhero__toggle:hover, .fhero__pill:hover { background: rgba(255, 255, 255, .08); }
.fhero--light .fhero__toggle:hover, .fhero--light .fhero__pill:hover { background: rgba(0, 0, 0, .05); }
.fhero__toggle:active, .fhero__pill:active { transform: scale(.94); }
.fhero__toggle:focus-visible, .fhero__pill:focus-visible { outline: 2px solid var(--fh-text); outline-offset: 1px; }
.fhero__pill { position: relative; height: 36px; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 0 14px; border-radius: var(--pill); white-space: nowrap; color: var(--fh-faint); }
.fhero__pill > span { font-size: 13px; font-weight: 500; letter-spacing: -.006em; line-height: 1; }
.fhero__pill > i { position: relative; width: 100%; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .18); overflow: hidden; opacity: 0; transition: opacity .3s var(--ease); }
.fhero--light .fhero__pill > i { background: rgba(0, 0, 0, .12); }
.fhero__pill > i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform-origin: left center; transform: scaleX(var(--p, 0)); }
.fhero--light .fhero__pill > i::after { background: rgb(var(--fh-accent)); }
.fhero__pill.is-on { color: var(--fh-text); background: rgba(255, 255, 255, .1); }
.fhero--light .fhero__pill.is-on { background: rgba(0, 0, 0, .05); }
.fhero__pill.is-on > i { opacity: 1; }
.fhero-skel { min-height: 520px; margin-top: 24px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }

@media (prefers-reduced-motion: no-preference) {
  .fhero__slide.is-on > * { animation: fhrise .8s var(--ease) both; }
  .fhero__slide.is-on > :nth-child(2) { animation-delay: .06s; }
  .fhero__slide.is-on > :nth-child(3) { animation-delay: .12s; }
  .fhero__slide--specs.is-on > * { animation-delay: .18s; }
  .fhero__acts { animation: fhrise .8s var(--ease) .16s both; }
  .fhero__media { animation: fhfade 1.2s var(--ease) .1s both; }
}
@keyframes fhrise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fhfade { from { opacity: 0; transform: scale(.985); } }
@media (prefers-reduced-motion: reduce) { .fhero__film video, .fhero__slide { transition-duration: .01ms; } }
@media (prefers-reduced-transparency: reduce) { .fhero__bar { background: #2a2220; -webkit-backdrop-filter: none; backdrop-filter: none; } .fhero--light .fhero__bar { background: #ffffff; } }
@media (prefers-contrast: more) { .fhero__lead, .fhero__specs span, .fhero__pill { color: var(--fh-text); } .fhero__bar { box-shadow: inset 0 0 0 1.5px var(--fh-text); } }
@media (max-width: 1000px) {
  .fhero { align-content: start; }
  .fhero__grid { grid-template-columns: minmax(0, 1fr); }
  /* Wider than the screen, so the faded sides sit off it and the film fills the width. */
  .fhero__media { order: -1; margin: -6% -22% 0; }
  .fhero__copy { margin-top: -9%; }
  .fhero__bar { bottom: 16%; transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .fhero__specs { grid-template-columns: repeat(2, auto); gap: 14px 28px; }
  .fhero__acts, .fhero__acts .btn { width: 100%; }
  /* On a phone the films become dots; the playing one stretches and fills. */
  .fhero__pill { height: 32px; padding: 0 5px; }
  .fhero__pill > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fhero__pill > i { width: 7px; height: 7px; border-radius: 4px; opacity: 1; background: rgba(255, 255, 255, .32); transition: width .35s var(--ease), background-color .2s var(--ease); }
  .fhero--light .fhero__pill > i { background: rgba(0, 0, 0, .2); }
  .fhero__pill > i::after { opacity: 0; }
  .fhero__pill.is-on { background: none; }
  .fhero--light .fhero__pill.is-on { background: none; }
  .fhero__pill.is-on > i { width: 28px; background: rgba(255, 255, 255, .25); }
  .fhero--light .fhero__pill.is-on > i { background: rgba(0, 0, 0, .12); }
  .fhero__pill.is-on > i::after { opacity: 1; }
}

/* ---------- Hydraulic Technologies range (#/hydraulic-technologies): the RAD page's parts in HT orange ---------- */
.range--ht { --ht: 234, 86, 51; }
.range--ht .eyebrow { color: #b8411d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .range--ht .eyebrow { color: #ff7a52; } }
:root[data-theme="dark"] .range--ht .eyebrow { color: #ff7a52; }
.range--ht .rad-chart__row.is-on .rad-chart__bar { background: rgb(var(--ht)); }
.range--ht .rad-power__icon { background: rgba(var(--ht), .12); color: rgb(var(--ht)); }
.range--ht .rad-ind__icon { background: rgba(var(--ht), .12); color: rgb(var(--ht)); }
/* Buttons follow the hero: dark (light in the dark theme), and white on the dark closing card. */
.range--ht .btn--primary { --btn-bg: var(--ink); --btn-fg: var(--on-ink); }
.range--ht .btn--primary:hover { --btn-bg: var(--ink-hover); }
.range--ht .rad-cta__card .btn--primary { --btn-bg: #f5f5f7; --btn-fg: #1d1d1f; }
.range--ht .rad-cta__card .btn--primary:hover { --btn-bg: #ffffff; }
/* Five pump cards: three across, then two wider ones. */
.ht-power { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ht-power > * { grid-column: span 2; }
.ht-power > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) { .ht-power { grid-template-columns: minmax(0, 1fr); } .ht-power > *, .ht-power > :nth-child(n+4) { grid-column: auto; } }

/* ---------- CEJN range (#/cejn): the RAD page's parts in CEJN blue ---------- */
.range--cejn { --cejn: 26, 74, 143; }
.range--cejn .eyebrow { color: #1a4a8f; }
.range--cejn .rad-chart__row.is-on .rad-chart__bar { background: rgb(var(--cejn)); }
/* a series only its smaller sizes rate for this pressure: the same bar, lighter */
.range--cejn .rad-chart__row.is-part .rad-chart__bar { background: rgba(var(--cejn), .42); }
.range--cejn .rad-power__icon { background: rgba(var(--cejn), .1); color: rgb(var(--cejn)); }
.range--cejn .rad-ind__icon { background: rgba(var(--cejn), .1); color: rgb(var(--cejn)); }
.range--cejn .btn--primary { --btn-bg: #1a4a8f; --btn-fg: #ffffff; }
.range--cejn .btn--primary:hover { --btn-bg: #153d77; }
.range--cejn .rad-cta__card .btn--primary { --btn-bg: #2563c9; }
.range--cejn .rad-cta__card .btn--primary:hover { --btn-bg: #1f56b0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .range--cejn { --cejn: 92, 150, 246; }
  :root:not([data-theme="light"]) .range--cejn .eyebrow { color: #8ab4ff; }
  :root:not([data-theme="light"]) .range--cejn .btn--primary { --btn-bg: #2563c9; }
}
:root[data-theme="dark"] .range--cejn { --cejn: 92, 150, 246; }
:root[data-theme="dark"] .range--cejn .eyebrow { color: #8ab4ff; }
:root[data-theme="dark"] .range--cejn .btn--primary { --btn-bg: #2563c9; }

/* ---------- Chicago Pneumatic range (#/chicago-pneumatic): the RAD page's parts, in the site's red ---------- */
/* Four ways to power the bolting: two across. */
.cp-power { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cp-power { grid-template-columns: minmax(0, 1fr); } }
