/* ============================================================
   JLM Medical Instruments — Component & layout styles
   Rebuilt from the design handoff prototypes into reusable
   classes. Tokens live in tokens.css.
   ============================================================ */

/* ---------------- Reset / base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; } /* clips off-canvas drawer at the viewport; preserves sticky */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe, video { max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- Layout ---------------- */
.container { max-width: var(--container-max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: var(--section-rhythm); padding-bottom: var(--section-rhythm); }
.section--tight { padding-top: clamp(40px,5vw,70px); padding-bottom: clamp(64px,8vw,100px); }
.bg-section { background: var(--surface-section); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-white { background: var(--white); }
.rule-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------------- Eyebrow ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-body); font-weight: 900; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: #111; margin: 0;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--red); flex: 0 0 auto; }
.eyebrow--muted { color: var(--faint); }

/* ---------------- Headings ---------------- */
.h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px,5.2vw,66px); line-height: 1.0;
  letter-spacing: -.01em; text-transform: uppercase; color: var(--ink);
}
.h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px,4.2vw,46px); line-height: 1.08;
  text-transform: uppercase; color: var(--red);
}
.h2--ink { color: var(--ink); }
.lede {
  font-family: var(--font-body); font-size: clamp(15px,1.4vw,17px);
  line-height: 1.85; color: var(--body); max-width: 56ch;
}
.section-head { max-width: 760px; margin-bottom: 22px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 12px; }
.section-head .lede { margin-top: 12px; color: var(--muted); }
.section-head.center .lede { margin-inline: auto; }
/* keep the gap between a section title and its content tight & consistent
   everywhere — overrides ad-hoc inline margin-top on the following block */
.section-head + * { margin-top: 0 !important; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-body); font-weight: 900; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  border-radius: var(--r-pill); padding: 15px 30px; overflow: hidden;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn .tri { flex: 0 0 auto; position: relative; z-index: 2; }
.btn .lbl { position: relative; z-index: 1; }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--sh-btn-red); }
.btn--primary:hover { background: var(--red-hover); color:#fff; transform: translateY(-2px); box-shadow: var(--sh-btn-red-hover); }
.btn--secondary { color: #111; border-color: var(--border-btn); padding: 14px 28px; min-width: 188px; }
.btn--secondary .tri { fill: var(--red); }
.btn--secondary:hover { color: var(--red); border-color: var(--red); background: var(--tint-wash); }
.btn--ghost { padding: 0; background: none; color: #000; }
.btn--ghost .tri { fill: var(--red); }
.btn--ghost:hover { color: var(--red); }
/* ghost link, inverse (white) — for dark / red backgrounds */
.btn--ghost-inv { padding: 0; background: none; border: 0; color: #fff; }
.btn--ghost-inv .tri { fill: #fff; }
.btn--ghost-inv:hover { color: #fff; opacity: .85; }
.btn--inverse { color:#fff; border-color: rgba(255,255,255,.6); padding: 14px 28px; min-width: 188px; background: transparent; }
.btn--inverse .tri { fill: currentColor; }
.btn--inverse:hover { color: var(--red); border-color:#fff; background:#fff; }
.btn--compact { font-size: 13px; letter-spacing: .03em; padding: 11px 20px; box-shadow: 0 4px 12px rgba(218,7,16,.22); }
.btn--compact.btn--primary:hover { box-shadow: 0 10px 22px rgba(218,7,16,.38); }
.btn--sm { font-size: 12.5px; padding: 11px 20px; min-width: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
/* animated sweep on hover (primary/secondary/inverse) */
.btn:hover .tri { animation: btnSweep .55s var(--ease-sweep); }
.btn:hover .lbl { animation: btnReveal .55s var(--ease-sweep); }
@keyframes btnSweep { 0% { transform: translateX(-118px); } 100% { transform: translateX(0); } }
@keyframes btnReveal { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 900; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; color: #111; transition: color .2s;
}
.link-arrow svg { fill: var(--red); }
.link-arrow:hover { color: var(--red); }
/* mega "View all" links use the exact .btn sweep: arrow sweeps in from the left,
   label wipes in left → right on hover */
.mega .link-arrow { overflow: hidden; }
.mega .link-arrow .lbl { position: relative; z-index: 1; }
.mega .link-arrow .tri { position: relative; z-index: 2; }
.mega .link-arrow:hover .tri { animation: btnSweep .55s var(--ease-sweep); }
.mega .link-arrow:hover .lbl { animation: btnReveal .55s var(--ease-sweep); }

/* ---------------- Motifs ---------------- */
.dot-field {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(218,7,16,.05) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
}
.dart {
  filter: drop-shadow(var(--sh-dart));
  shape-rendering: geometricPrecision;
}
.chev-water {
  font-family: var(--font-display); font-weight: 900; line-height: .7;
  pointer-events: none; user-select: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line-2); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--sh-header); }
.header-bar {
  max-width: var(--container-max); margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 80px;
}
.header-logo { flex: 0 0 auto; display: block; }
.header-logo img { height: 52px; width: 176px; object-fit: contain; object-position: left center; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--slate);
  white-space: nowrap; transition: color .2s; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: none; border: 0; padding: 0;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--red); }
.nav-link .chev { transition: transform .25s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface-icon); color: var(--slate);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.header-divider { width: 1px; height: 24px; background: var(--line-3); margin: 0 2px; }
.header-burger { display: none; background: none; border: 0; cursor: pointer; color: var(--slate); padding: 6px; }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border-top: 3px solid var(--red); box-shadow: var(--sh-mega);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: var(--container-max); margin: 0 auto; padding: 36px 32px 0; }
.mega-grid-products { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr; gap: 40px; }
.mega-col-head { display: flex; align-items: flex-start; gap: 11px; }
.chip-sm {
  width: 34px; height: 34px; border-radius: 8px; background: var(--tint-chip); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.mega-col-title {
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); line-height: 1.5; margin: 0;
}
.mega-col-sub { font-family: var(--font-body); font-size: 12.5px; color: var(--faint); margin: 3px 0 0; }
.mega-hr { height: 1px; background: var(--line); margin: 16px 0; }
.mega-links { display: flex; flex-direction: column; gap: 13px; }
.mega-links a {
  font-family: var(--font-body); font-size: 15px; color: var(--slate);
  transition: color .2s, transform .2s; display: inline-flex; align-items: center; gap: 8px;
}
.mega-links a:hover { color: var(--red); transform: translateX(4px); }
.pill-new {
  font-family: var(--font-body); font-weight: 900; font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); background: var(--tint-chip); padding: 2px 7px; border-radius: 100px;
}
.mega-featured-title {
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin: 0 0 16px;
}
.feat-card {
  display: flex; align-items: center; gap: 13px; background: var(--surface-cool);
  border-radius: 12px; overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.feat-card + .feat-card { margin-top: 12px; }
.feat-card:hover { box-shadow: var(--sh-card-hover); transform: translateY(-3px); }
.feat-card img { width: 92px; height: 78px; object-fit: cover; flex: 0 0 auto; background: #B8BCC2; }
.feat-card .fc-body { padding: 6px 14px 6px 0; }
.feat-card .fc-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--slate-strong); }
.feat-card .fc-sub { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.feat-card .fc-cta {
  margin-top: 7px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body);
  font-weight: 900; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--red);
}
/* ============ MASTER-DETAIL FLYOUT MEGA (products) ============ */
.mega-cat-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--tint-chip); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background .18s, color .18s; }
.mega-cat-count { font-family: var(--font-body); font-weight: 800; font-size: 11px; color: var(--red); background: var(--tint-chip); padding: 1px 8px; border-radius: 999px; transition: background .18s, color .18s; }

.mega-flyout { display: grid; grid-template-columns: 268px 1fr; }
.mega-rail { display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); padding-right: 22px; }
.mega-rail-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; border-radius: 11px; cursor: pointer; text-align: left; font-family: inherit; transition: background .18s; }
.mega-rail-label { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--slate-strong); transition: color .18s; }
.mega-rail-chev { fill: none; stroke: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s, stroke .18s; }
.mega-rail-item.active { background: var(--red); }
.mega-rail-item.active .mega-rail-label { color: #fff; }
.mega-rail-item.active .mega-cat-icon { background: rgba(255,255,255,.18); color: #fff; }
.mega-rail-item.active .mega-cat-count { background: rgba(255,255,255,.2); color: #fff; }
.mega-rail-item.active .mega-rail-chev { opacity: 1; transform: translateX(0); stroke: #fff; }

.mega-panels { position: relative; padding-left: 34px; min-height: 316px; }
.mega-panel { display: none; }
.mega-panel.active { display: block; animation: megaPanelIn .3s var(--ease) both; }
@keyframes megaPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mega-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.mega-panel-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--slate-strong); }
.mega-panel-head p { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 48ch; }
.mega-panel-head .link-arrow { flex: 0 0 auto; }
.mega-panel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mega-prod { display: flex; flex-direction: column; min-width: 0; }
.mega-prod-thumb { position: relative; height: 98px; border-radius: 10px; overflow: hidden; background: var(--surface-cool); display: flex; align-items: center; justify-content: center; }
.mega-prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.mega-prod:hover .mega-prod-thumb img { transform: scale(1.06); }
.mega-prod-ph { color: var(--red); opacity: .7; }
.mega-prod-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--slate-strong); margin-top: 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.mega-prod:hover .mega-prod-name { color: var(--red); }
.mega-prod-brand { font-family: var(--font-body); font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.mega-foot { max-width: var(--container-max); margin: 22px auto 0; padding: 0 32px; }
.mega-foot-inner {
  border-top: 1px solid var(--line); padding: 16px 0 22px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 14px;
}
.mega-foot-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mega-grid-solutions { display: grid; grid-template-columns: 2.3fr 1fr; gap: 26px; padding: 30px 32px; max-width: var(--container-max); margin: 0 auto; }
.sol-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.sol-menu-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 10px;
  border-left: 3px solid transparent; transition: background .22s, border-color .22s;
}
/* hover: fill red with white content (matches the home solution cells) */
.sol-menu-card:hover { background: var(--red); border-color: var(--red); }
.sol-menu-card:hover .sol-menu-title { color: #fff; }
.sol-menu-card:hover .sol-menu-desc { color: rgba(255,255,255,.85); }
.sol-menu-card:hover .sol-menu-icon { background: rgba(255,255,255,.18); }
.sol-menu-card:hover .sol-menu-icon svg { stroke: #fff !important; }
.sol-menu-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--tint-chip);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background .22s;
}
.sol-menu-icon svg { transition: stroke .22s; }
.sol-menu-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--slate-strong); transition: color .22s; }
.sol-menu-desc { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 4px; transition: color .22s; }
.promo-card {
  position: relative; overflow: hidden; border-radius: 12px; background: var(--red); padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; transition: background .25s;
}
.promo-card:hover { background: var(--red-deep); }
.promo-card .promo-water {
  position: absolute; top: -30px; right: -10px; font-family: var(--font-display); font-weight: 900;
  font-size: 140px; line-height: .7; color: rgba(255,255,255,.12); pointer-events: none;
}
.promo-card .promo-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.15; color: #fff; text-transform: uppercase; position: relative; z-index: 2; }
.promo-card .promo-text { font-family: var(--font-body); font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.9); margin-top: 10px; max-width: 26ch; position: relative; z-index: 2; }
.promo-card .promo-cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 900; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: #fff; }

/* Mobile drawer — wrapped in a fixed, viewport-sized clip layer so the
   off-canvas panel slides in/out without ever adding page width. */
.drawer-layer { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; visibility: hidden; }
.drawer-layer.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(14,17,22,.5); opacity: 0; transition: opacity .3s; }
.drawer-layer.open .drawer-backdrop { opacity: 1; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff;
  transform: translateX(100%); overflow-y: auto; padding: 20px 24px 40px;
  box-shadow: -20px 0 44px rgba(15,23,42,.16);
}
.drawer.open { transform: translateX(0); } /* static open/closed states; the slide itself is animated in JS (site.js) */
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-close { background: none; border: 0; cursor: pointer; color: var(--slate); padding: 6px; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav > a, .drawer-acc > button {
  font-family: var(--font-body); font-weight: 700; font-size: 17px; color: var(--slate);
  padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer;
}
.drawer-acc .drawer-sub { display: none; padding: 0 0 12px 8px; flex-direction: column; gap: 12px; }
.drawer-acc.open .drawer-sub { display: flex; }
.drawer-acc.open > button { color: var(--red); }
.drawer-acc .chev { transition: transform .25s; }
.drawer-acc.open .chev { transform: rotate(180deg); }
.drawer-sub a { font-size: 15px; color: var(--muted); font-weight: 400; }
.drawer-sub a:hover { color: var(--red); }
.drawer-cta { margin-top: 24px; }
.drawer-cta .btn { width: 100%; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { position: relative; overflow: hidden; background: #fff; min-height: clamp(560px,60vw,700px); cursor: grab; touch-action: pan-y; }
.hero.grabbing { cursor: grabbing; }
.hero.grabbing .hero-copy { user-select: none; }
.hero a, .hero button { cursor: pointer; } /* CTAs / dots keep pointer */
.hero .dart { position: absolute; top: -80px; right: -70px; width: min(62%,760px); height: auto; z-index: 1; pointer-events: none; }
.hero .chev-pale { position: absolute; left: -16px; bottom: 6%; z-index: 1; font-size: 150px; color: var(--tint-chip); letter-spacing: -12px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; z-index: 1; pointer-events: none;
  transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.hero-slide-inner {
  position: relative; height: 100%; max-width: var(--container-max); margin: 0 auto;
  padding: clamp(52px,7vw,96px) 32px; display: flex; flex-direction: column; justify-content: center;
}
.hero-image {
  position: absolute; right: -24px; top: 50%; width: 605px; height: 635px; z-index: 1;
  filter: drop-shadow(var(--sh-image));
  clip-path: url(#heroMask); -webkit-clip-path: url(#heroMask);
  transform: translateY(-52%) scale(1.2); transform-origin: center center;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { max-width: 620px; position: relative; z-index: 3; }
.hero-copy .h1 { margin-top: 18px; }
.hero-copy .h1 .accent { color: var(--red); }
.hero-copy .lede { margin-top: 22px; max-width: 48ch; }
.hero-copy .btn-row { margin-top: 30px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 5; pointer-events: none; }
.hero-dots .container { padding: 0 32px; }
.hero-dots .dots { display: flex; gap: 10px; pointer-events: auto; width: max-content; }
.hero-dot { height: 6px; width: 12px; border: 0; padding: 0; border-radius: 100px; background: var(--border-btn); cursor: pointer; transition: width .35s, background .35s; }
.hero-dot.active { width: 30px; background: var(--red); }

/* ============================================================
   STAT BAND
   ============================================================ */
.stat-band .container { padding-top: clamp(34px,4vw,52px); padding-bottom: clamp(34px,4vw,52px); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px,100%),1fr)); gap: 28px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px,3.4vw,46px); color: var(--red-bright); line-height: 1; }
.stat .num.sm { font-size: clamp(26px,2.6vw,34px); padding-top: 6px; }
.stat .cap { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.68); margin-top: 11px; }

/* ============================================================
   BRAND STRIP — auto-scrolling logo marquee
   ============================================================ */
.brand-strip { padding-block: clamp(30px,4vw,48px); }
/* moving brand strip — logos scroll continuously, pause on hover */
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marqueeScroll var(--marquee-dur, 34s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; margin-right: clamp(52px,8vw,104px); }
.marquee-item img {
  height: clamp(64px,7vw,100px); width: auto; max-width: 240px; object-fit: contain; display: block;
  filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s, transform .3s;
}
.marquee-item:hover img, .marquee-item:focus-visible img { filter: grayscale(0); opacity: 1; transform: translateY(-3px) scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 22px 40px; }
  .marquee-item { margin-right: 0; }
  .marquee-item[aria-hidden="true"] { display: none; }
}
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT + TABS
   ============================================================ */
.about { position: relative; overflow: hidden; background: #fff; }
/* brand dart backdrop — anchored to the lower-left, behind the photo, its point
   toward the bottom-left corner (echoes the shape sketched over the image) */
.about .decor-tri { position: absolute; bottom: 6%; left: -16%; width: min(52%,620px); height: auto; z-index: 0; opacity: .55; pointer-events: none; filter: drop-shadow(0 24px 40px rgba(218,7,16,.08)); transform: rotate(-60deg); transform-origin: center; }
.about-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,5vw,80px); align-items: center; }
.about-img { display: flex; justify-content: center; }
/* image scales with the viewport (responsive) and runs a bit larger on wide screens */
.about-img img { width: 100%; max-width: clamp(460px, 46vw, 640px); height: auto; filter: drop-shadow(0 26px 50px rgba(20,20,20,.2)); }
.about .h2 { margin-top: 6px; }
.about-body { font-family: var(--font-body); font-size: 15.5px; line-height: 2; color: var(--body); margin-top: 22px; max-width: 56ch; }
.about .link-arrow { margin-top: 26px; font-size: 17px; }
.tabs { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  flex: 1; min-width: 110px; padding: 13px 16px; border-radius: 100px; background: #fff;
  border: 1.5px solid var(--border-tab); color: var(--muted); cursor: pointer;
  font-family: var(--font-body); font-weight: 900; font-size: 13px; letter-spacing: .05em;
  text-transform: uppercase; transition: all .25s;
}
.tab:not([aria-selected="true"]):hover { border-color: var(--red); color: var(--red); background: var(--tint-wash); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(218,7,16,.12); }
.tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
/* collapsed by default — details reveal (slide + fade) only when a tab is clicked */
.tab-panel {
  margin-top: 0; background: var(--surface-section); border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0; padding: 0 26px; max-height: 0; overflow: hidden; opacity: 0;
  display: flex; align-items: center;
  transition: max-height .42s var(--ease), opacity .3s var(--ease), margin-top .42s var(--ease),
    padding-top .42s var(--ease), padding-bottom .42s var(--ease);
}
.tab-panel.open { margin-top: 18px; max-height: 340px; padding-top: 22px; padding-bottom: 22px; opacity: 1; }
.tab-panel p { font-family: var(--font-body); font-size: 15.5px; line-height: 1.75; color: var(--slate); margin: 0; }
.tab-panel.open.anim p { animation: vmvIn .45s var(--ease); }
@media (prefers-reduced-motion: reduce) { .tab-panel { transition: opacity .2s; } }
@keyframes vmvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   PRODUCT CARDS + RAIL
   ============================================================ */
.rail-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 28px 0 24px; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border-btn); background: #fff;
  color: var(--slate); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.round-btn:hover { border-color: var(--red); color: var(--red); }
.prod-rail {
  display: flex; gap: 18px; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: none; -ms-overflow-style: none;
}
.prod-rail::-webkit-scrollbar { display: none; }
.prod-rail { cursor: grab; }
.prod-rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.prod-rail.dragging a { pointer-events: none; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px,100%),1fr)); gap: 18px; }
.prod-card {
  position: relative; height: 400px; border-radius: 16px; overflow: hidden; display: block; background: var(--ink);
}
/* rail cards fit a whole number per view (widths computed in px by site.js
   sizeRail() — a % flex-basis breaks scrollLeft in a flex scroll container).
   This 300px value is the pre-JS fallback. */
.prod-rail .prod-card { flex: 0 0 300px; scroll-snap-align: start; }
.prod-card > img, .prod-card .prod-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); transform-origin: center; }
.prod-card .prod-fill { display: flex; align-items: center; justify-content: center; }
/* zoom the image a little on hover */
.prod-card:hover > img, .prod-card:hover .prod-fill,
.prod-card:focus-visible > img, .prod-card:focus-visible .prod-fill { transform: scale(1.07); }
.prod-card .badge-new {
  position: absolute; top: 14px; left: 14px; z-index: 3; font-family: var(--font-body); font-weight: 900;
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red);
  padding: 4px 9px; border-radius: 100px;
}
.prod-card .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 48%, transparent 78%); }
.prod-card .prod-meta { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; transition: opacity .3s ease; }
/* hide the base name/eyebrow on hover so it can't bleed through the overlay */
.prod-card:hover .prod-meta, .prod-card:focus-visible .prod-meta { opacity: 0; }
.prod-card .prod-eyebrow { font-family: var(--font-body); font-weight: 900; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.prod-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; margin: 5px 0 0; }
.prod-card .prod-hover {
  position: absolute; inset: 0; z-index: 3;
  /* semi-transparent so the product image reads through the red tint on hover */
  background: linear-gradient(160deg, rgba(218,7,16,.78), rgba(136,1,8,.9));
  opacity: 0; transition: opacity .4s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.prod-card:hover .prod-hover, .prod-card:focus-visible .prod-hover { opacity: 1; }
.prod-card .prod-hover .prod-eyebrow { color: rgba(255,255,255,.8); }
.prod-card .prod-hover h3 { margin-bottom: 12px; }
.prod-card .prod-hover p { font-family: var(--font-body); font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.92); margin: 0; }
/* details slide + fade up, staggered, once the overlay is showing */
.prod-card .prod-hover > * { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.prod-card:hover .prod-hover > *, .prod-card:focus-visible .prod-hover > * { opacity: 1; transform: none; }
.prod-card .prod-hover > *:nth-child(1) { transition-delay: .06s; }
.prod-card .prod-hover > *:nth-child(2) { transition-delay: .12s; }
.prod-card .prod-hover > *:nth-child(3) { transition-delay: .18s; }
.prod-card .prod-hover > *:nth-child(4) { transition-delay: .24s; }
/* View Details — design-system ghost link, inverse (white) for the red overlay */
.prod-card .prod-hover .btn--ghost-inv {
  margin-top: 16px; display: inline-flex; align-self: flex-start; justify-content: flex-start;
  align-items: center; gap: 8px; font-family: var(--font-body);
  font-weight: 900; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #fff;
}
.prod-card .prod-hover .btn--ghost-inv .tri { fill: #fff; }
.prod-card:hover .prod-hover .btn--ghost-inv { text-decoration: none; }

/* ============================================================
   SOLUTION GRID (bordered cells)
   ============================================================ */
.sol-grid { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: repeat(3,1fr); }
.sol-cell {
  padding: clamp(22px,2.2vw,30px) var(--card-padding) var(--card-padding); position: relative; z-index: 1;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .25s, box-shadow .25s;
}
.sol-cell:nth-child(3n) { border-right: 0; }
.sol-cell:nth-last-child(-n+3) { border-bottom: 0; }
.sol-cell svg.icon { margin-bottom: 20px; transition: stroke .25s; }
.sol-cell h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #000; text-transform: uppercase; transition: color .25s; }
.sol-cell p { font-family: var(--font-display); font-size: 15px; line-height: 1.9; color: var(--muted); margin-top: 10px; transition: color .25s; }
/* solution-cell CTA = the canonical .link-arrow; only add spacing + cell-hover */
.sol-cell .sol-link { margin-top: 16px; overflow: hidden; }
.sol-cell .sol-link .lbl { position: relative; z-index: 1; }
.sol-cell .sol-link .tri { position: relative; z-index: 2; }
/* same button sweep as the mega "View all" links, on cell hover */
.sol-cell:hover .sol-link .tri { animation: btnSweep .55s var(--ease-sweep); }
.sol-cell:hover .sol-link .lbl { animation: btnReveal .55s var(--ease-sweep); }
/* hover: fill the whole cell red with white content */
.sol-cell:hover { background: var(--red); }
.sol-cell:hover h3, .sol-cell:hover p, .sol-cell:hover .sol-link { color: #fff; }
.sol-cell:hover svg.icon { stroke: #fff !important; }
.sol-cell:hover .sol-link svg { fill: #fff; }

/* ============================================================
   NEWS MOSAIC / GRID
   ============================================================ */
.news-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: clamp(430px,42vw,548px); }
.news-col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.news-tile { position: relative; min-height: 0; overflow: hidden; border-radius: 6px; display: block; background: #B8BCC2; }
.news-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-tile:hover img { transform: scale(1.05); }
.news-tile .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 55%); }
.news-tile .news-body { position: absolute; left: 24px; bottom: 20px; right: 24px; }
.news-tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.news-tile p { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.82); margin-top: 6px; }
.news-tile .news-date { font-family: var(--font-body); font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px,100%),1fr)); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.news-card:hover { box-shadow: var(--sh-card-hover); transform: translateY(-4px); }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: #e9edf1; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .nc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.news-card .nc-date { font-family: var(--font-body); font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.news-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--slate-strong); line-height: 1.25; }
.news-card p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; color: #fff;
  background: var(--red-deep) url(../img/uploads/2024/01/bnnn2.jpg) center center / cover no-repeat; }
.cta-band .weave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; pointer-events: none; z-index: 1; }
/* strong red wash over the photo — tinted-photo look, white text stays legible */
.cta-band .grad { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(150deg, rgba(218,7,16,.88) 0%, rgba(154,7,16,.9) 55%, rgba(136,1,8,.93) 100%); }
.cta-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: clamp(58px,8vw,96px) 32px; text-align: center; }
.cta-inner .h2 { color: #fff; }
.cta-inner p { font-family: var(--font-body); font-size: 16px; line-height: 1.9; color: rgba(255,255,255,.92); margin: 18px auto 0; max-width: 64ch; }
.cta-inner .btn { margin-top: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; overflow: hidden; background: #fff; border-top: 1px solid var(--line); }
.footer-tri { position: absolute; right: 0; bottom: 0; width: min(28%,300px); height: auto; z-index: 0; pointer-events: none; }
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%),1fr)); gap: 40px; padding: clamp(52px,6vw,78px) 32px 30px; max-width: var(--container-max); margin: 0 auto; }
.footer-logo img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-blurb { font-family: var(--font-body); font-size: 14.5px; line-height: 1.8; color: var(--body); max-width: 34ch; }
.footer-iso { height: 70px; width: auto; margin-top: 20px; }
.footer-col h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--slate-strong); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-family: var(--font-body); font-size: 15px; color: var(--slate); width: max-content; transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-links a:hover { color: var(--red); transform: translateX(4px); }
.footer-hours { margin-top: 14px; font-family: var(--font-body); font-size: 14.5px; line-height: 2; color: var(--slate); }
.footer-hours .row { display: flex; align-items: center; gap: 9px; }
.footer-hours svg { stroke: var(--red); flex: 0 0 auto; }
.footer-note { font-family: var(--font-body); font-size: 14.5px; line-height: 1.7; color: var(--body); }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-cool); color: var(--red); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-legal { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.footer-legal .container { padding: 18px 32px; text-align: center; font-family: var(--font-body); font-size: 14px; color: var(--slate-500); }
.footer-legal strong { color: var(--slate-strong); font-weight: 700; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 46px; height: 46px; border-radius: 10px;
  border: none; cursor: pointer; background: var(--red); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; box-shadow: 0 8px 22px rgba(218,7,16,.4); opacity: 0; pointer-events: none;
  transform: translateY(18px) scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s, box-shadow .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); animation: backTopIn .45s var(--ease) both; }
.back-top:hover { background: var(--red-deep); transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 30px rgba(218,7,16,.5); }
.back-top:hover svg { animation: backTopBounce .7s ease infinite; }
@keyframes backTopIn { 0% { opacity: 0; transform: translateY(18px) scale(.8); } 60% { transform: translateY(-4px) scale(1.08); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backTopBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .back-top.show, .back-top:hover svg { animation: none; } }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
/* inner-page hero: SAME dart as the home hero, repeated (bleeds off the top-right) */
.page-hero { position: relative; overflow: hidden; background: #fff; min-height: 520px; }
.page-hero .container { position: relative; z-index: 2; padding-top: clamp(48px,6vw,84px); padding-bottom: clamp(40px,5vw,64px); }
/* identical to .hero .dart — bleeds off the top-right corner, behind content */
.page-hero .dart { display: block; position: absolute; top: -240px; right: -130px; width: min(62%,760px); height: auto; z-index: 1; pointer-events: none; }
.page-hero .h1 { margin-top: 16px; max-width: 16ch; }
.page-hero .h1 .accent { color: var(--red); }
.page-hero .lede { margin-top: 20px; }
.breadcrumb { font-family: var(--font-body); font-size: 13px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--border-tab); }

/* ---------------- Filter chips ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-body); font-weight: 900; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 100px; border: 1.5px solid var(--border-tab); background: #fff; color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------------- Product detail ---------------- */
.pd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: center; }
.pd-hero .h1 { margin-top: 14px; font-size: clamp(30px,4vw,52px); }
.pd-media { position: relative; }
.pd-media img { width: 100%; border-radius: var(--r-lg); box-shadow: 0 14px 34px rgba(15,23,42,.09); background: var(--surface-cool); }
.feature-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr)); gap: 20px; margin-top: 34px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; }
.feature-row .chip-lg { width: 48px; height: 48px; border-radius: 12px; background: var(--tint-chip); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.feature-row h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--slate-strong); }
.feature-row p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.7; color: var(--muted); margin-top: 6px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-family: var(--font-body); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-table th { width: 34%; color: var(--slate-strong); font-weight: 700; }
.spec-table td { color: var(--body); }

/* ---------------- Contact ---------------- */
/* quick-contact cards */
.contact-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(26px,3.5vw,44px); }
.contact-quick a { display: flex; gap: 15px; align-items: center; padding: 20px 22px; border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; transition: box-shadow .25s, transform .25s, border-color .25s; }
.contact-quick a:hover { box-shadow: var(--sh-card-hover); transform: translateY(-3px); border-color: var(--tint-ring); }
.contact-quick .chip-lg { width: 48px; height: 48px; border-radius: 12px; background: var(--tint-chip); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-quick .cq-label { font-family: var(--font-body); font-weight: 900; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.contact-quick .cq-value { font-family: var(--font-body); font-weight: 700; font-size: 15.5px; color: var(--slate-strong); margin-top: 3px; word-break: break-word; }

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,4vw,48px); align-items: stretch; }
/* form card */
.contact-form-card { background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); padding: clamp(26px,3vw,42px); box-shadow: 0 14px 36px rgba(15,23,42,.06); }
.contact-form-card .form-head { margin-bottom: 24px; }
.contact-form-card .form-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px,2.6vw,30px); color: var(--ink); text-transform: none; line-height: 1.15; }
.contact-form-card .form-head p { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
/* branded red info panel */
.contact-red { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(158deg, var(--red) 0%, var(--red-deep) 100%); padding: clamp(30px,3.4vw,46px);
  display: flex; flex-direction: column; }
.contact-red > * { position: relative; z-index: 2; }
.contact-red .cr-water { position: absolute; top: -46px; right: -18px; z-index: 1; font-family: var(--font-display); font-weight: 900; font-size: 200px; line-height: .7; color: rgba(255,255,255,.10); pointer-events: none; }
.contact-red h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px,2.4vw,26px); color: #fff; text-transform: uppercase; }
.contact-red .cr-intro { font-family: var(--font-body); font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.9); margin-top: 10px; max-width: 34ch; }
.contact-red .contact-items { margin-top: 20px; }
.contact-red .contact-item { border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-red .contact-item:last-child { border-bottom: 0; }
.contact-red .contact-item .chip-lg { background: rgba(255,255,255,.14); color: #fff; }
.contact-red .contact-item .ci-label { color: rgba(255,255,255,.72); }
.contact-red .contact-item .ci-value, .contact-red .contact-item .ci-value a { color: #fff; }
.contact-red .contact-item .ci-value a:hover { color: rgba(255,255,255,.82); }
.contact-red .footer-social { margin-top: auto; padding-top: 22px; }
.contact-red .footer-social a { background: rgba(255,255,255,.14); color: #fff; }
.contact-red .footer-social a:hover { background: #fff; color: var(--red); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-family: var(--font-body); font-weight: 700; font-size: 13.5px; color: var(--slate); margin-bottom: 8px; }
.form-field label .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--border-btn); border-radius: 10px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(218,7,16,.14); }
.form-field.error input, .form-field.error select, .form-field.error textarea { border-color: var(--red); }
.form-field .err-msg { display: none; font-family: var(--font-body); font-size: 12.5px; color: var(--red); margin-top: 6px; }
.form-field.error .err-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-status { margin-top: 6px; font-family: var(--font-body); font-size: 14.5px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.success { display: block; background: #EAF7EE; color: #1E7A38; border: 1px solid #BDE5C8; }
.form-status.error { display: block; background: var(--tint-wash); color: var(--red-deep); border: 1px solid var(--tint-ring); }
.contact-panel { background: var(--surface-section); border-radius: var(--r-lg); padding: clamp(26px,3vw,38px); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .chip-lg { width: 44px; height: 44px; border-radius: 12px; background: var(--tint-chip); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-item .ci-label { font-family: var(--font-body); font-weight: 900; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.contact-item .ci-value { font-family: var(--font-body); font-size: 15.5px; color: var(--slate-strong); margin-top: 3px; }
.contact-item .ci-value a { color: var(--slate-strong); }
.contact-item .ci-value a:hover { color: var(--red); }
.map-band { margin-top: clamp(28px,4vw,52px); }
.map-band .eyebrow { margin-bottom: 16px; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-3); box-shadow: 0 14px 36px rgba(15,23,42,.06); }
.map-embed iframe { width: 100%; height: clamp(320px,42vw,460px); border: 0; display: block; }
@media (max-width: 760px) { .contact-quick { grid-template-columns: 1fr; } }

/* ---------------- Article (news detail) ---------------- */
.article { max-width: 760px; margin: 0 auto; }
.article .art-hero-img { width: 100%; border-radius: var(--r-lg); margin: 26px 0; box-shadow: var(--sh-image); }
.article h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px,3.6vw,44px); line-height: 1.12; color: var(--ink); text-transform: none; }
.article .art-meta { font-family: var(--font-body); font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 14px; }
.article-body { font-family: var(--font-body); font-size: 16px; line-height: 1.85; color: var(--body); }
.article-body p { margin-top: 20px; max-width: 64ch; }
.article-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--slate-strong); text-transform: none; margin-top: 36px; }
.article-body ul { margin-top: 16px; padding-left: 22px; }
.article-body li { margin-top: 8px; }

/* ---------------- After-sales / value grid ---------------- */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }
.value-card [data-icon] { display: inline-flex; }

/* Sectors we serve (About) */
.sector-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.sector { text-align: center; padding: 26px 14px; border: 1px solid var(--line-3); border-radius: var(--r-lg); background: #fff; transition: box-shadow .25s, transform .25s; }
.sector:hover { box-shadow: var(--sh-card-hover); transform: translateY(-4px); }
.sector .chip-lg { width: 54px; height: 54px; border-radius: 15px; background: var(--tint-chip); color: var(--red); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sector h4 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--slate-strong); }
.sector p { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: 5px; }
@media (max-width: 900px) { .sector-row { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 520px) { .sector-row { grid-template-columns: repeat(2,1fr); } }
.value-card { border: 1px solid var(--line-3); border-radius: var(--r-lg); padding: clamp(24px,3vw,34px); background: #fff; transition: box-shadow .25s, transform .25s; }
.value-card:hover { box-shadow: var(--sh-card-hover); transform: translateY(-4px); }
.value-card .chip-lg { width: 52px; height: 52px; border-radius: 14px; background: var(--tint-chip); color: var(--red); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.value-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--slate-strong); }
.value-card p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.75; color: var(--muted); margin-top: 10px; }
.step-list { counter-reset: step; display: grid; gap: 16px; margin-top: 10px; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--line-3); border-radius: var(--r-md); background: #fff; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--red); flex: 0 0 auto;
}
.step h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--slate-strong); }
.step p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.7; color: var(--muted); margin-top: 6px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   Desktop-first. Breakpoints: 1199 · 991 (nav collapse) ·
   767 (mobile) · 560 (small phone) · 400 (compact phone).
   Off-canvas drawer overflow is guarded by overflow-x:clip on body.
   ============================================================ */

/* --- large desktop / tablet-landscape --- */
@media (max-width: 1199px) {
  .mega-grid-products { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-grid { gap: clamp(28px,4vw,48px); }
  .hero .hero-image { opacity: .55; }
  .header-actions .icon-btn, .header-divider { display: none; } /* free room so nav + quote fit */
}

/* --- small desktop: collapse the primary nav to the drawer before it can overflow --- */
@media (max-width: 1099px) {
  .header-nav { display: none; }
  .mega { display: none; }
  .header-burger { display: inline-flex; }
}

/* --- tablet & below: layout stacking --- */
@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .sol-grid { grid-template-columns: repeat(2,1fr); }
  .sol-cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .sol-cell:nth-child(2n) { border-right: 0; }
  .sol-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .sol-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .pd-hero, .contact-grid { grid-template-columns: 1fr; }
  .pd-media { order: -1; max-width: 520px; }
  .news-mosaic { grid-template-columns: 1fr; height: auto; }
  .news-mosaic .news-tile { min-height: 240px; flex: none !important; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .hero { min-height: clamp(500px,74vw,620px); }
  .hero .hero-image { opacity: .3; }
  .cta-band .grad { background: linear-gradient(180deg, rgba(218,7,16,.9) 0%, rgba(136,1,8,.94) 100%); }
}

/* --- mobile --- */
@media (max-width: 767px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .header-bar { padding: 12px 20px; gap: 12px; }
  .header-logo img { height: 44px; width: 150px; }
  .sol-grid { grid-template-columns: 1fr; }
  .sol-cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .sol-cell:last-child { border-bottom: 0 !important; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { min-height: 480px; }
  .hero .hero-image { opacity: .14; }
  .hero .chev-pale { font-size: 96px; bottom: 4%; }
  .hero-slide-inner { padding-top: 44px; padding-bottom: 64px; }
  .hero-copy .lede, .lede { max-width: none; }
  .btn { width: 100%; }
  .btn--secondary, .btn--inverse { min-width: 0; }
  .btn-row .btn { width: 100%; }
  .hero-copy .btn-row, .pd-hero .btn-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .rail-controls { justify-content: center; }
  .prod-rail { scroll-padding-left: 20px; }
  .footer-grid { gap: 30px; }
  .footer-social a, .contact-item .chip-lg { width: 44px; height: 44px; } /* >=44px touch targets */
  .map-embed iframe { height: 260px; }
  /* smaller dart on small screens (matches home hero) */
  .page-hero .dart { width: min(72%,380px); top: -60px; right: -50px; }
  .article-body p { max-width: none; }
}

/* --- small phone --- */
@media (max-width: 560px) {
  .h1 { font-size: clamp(30px,8.5vw,40px); }
  .stat-grid { gap: 22px; }
  .tabs { gap: 8px; }
  .tab { min-width: 0; flex: 1 1 30%; padding: 12px 8px; font-size: 12px; }
  .value-card, .feature-row, .step { padding: 22px 20px; }
  .contact-panel { padding: 24px 20px; }
  .prod-card { height: 380px; }
  .brand-strip .container { gap: 16px 30px; }
  .brand-strip a, .brand-strip a.nikon { font-size: 18px; }
}

/* --- compact phone: keep the header from crowding --- */
@media (max-width: 400px) {
  .header-bar .btn--compact { display: none; } /* Get-a-Quote lives in the drawer CTA */
  .header-logo img { width: 140px; }
  .stat-grid { grid-template-columns: 1fr; }
  .h1 { font-size: clamp(28px,9vw,36px); }
  .chip { padding: 9px 16px; font-size: 12px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .dart { animation: none !important; }
}

/* ============================================================
   Product browser: persistent Categories sidebar + grid
   ============================================================ */
.prod-layout { display: grid; grid-template-columns: 258px 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.prod-sidebar { position: sticky; top: 104px; }
.prod-sidebar-title { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; padding-bottom: 14px; border-bottom: 2px solid var(--line-2); }
.prod-sidebar-title--brands { margin-top: 34px; }
.prod-brand-filter { position: relative; }
.prod-brand-filter select {
  width: 100%; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--slate-strong);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 42px 12px 14px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.prod-brand-filter select:hover { border-color: var(--tint-ring); }
.prod-brand-filter select:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(218,7,16,.15); }
.prod-brand-filter::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cat-list li { margin: 0; }
.cat-item { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; cursor: pointer; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--slate-strong); transition: color .2s var(--ease), padding .2s var(--ease); }
.cat-item .cat-arrow { display: inline-flex; opacity: 0; transform: translateX(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.cat-item .cat-arrow .tri { width: 9px; height: 11px; }
.cat-item .cat-label { flex: 1; }
.cat-item .cat-count { font-family: var(--font-body); font-weight: 700; font-size: 12px; color: var(--faint); background: var(--surface-icon); border-radius: var(--r-pill); padding: 2px 9px; min-width: 26px; text-align: center; }
.cat-item:hover { color: var(--red); padding-left: 8px; }
.cat-item:hover .cat-arrow { opacity: 1; transform: translateX(0); }
.cat-item.active { color: var(--red); }
.cat-item.active .cat-arrow { opacity: 1; transform: translateX(0); }
.cat-item.active .cat-count { background: var(--tint-chip); color: var(--red); }
.prod-toolbar { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.prod-cat-heading { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); margin: 0; }
.prod-cat-heading .prod-count { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--faint); margin-left: 6px; }
.prod-cat-heading .prod-clear { font-family: var(--font-body); font-weight: 900; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--red); margin-left: 14px; }
.prod-cat-heading .prod-clear:hover { color: var(--red-deep); }
.prod-sort { display: inline-flex; align-items: center; gap: 10px; }
.prod-sort label { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.prod-sort select {
  font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--slate-strong);
  background-color: #fff; border: 1.5px solid var(--border-btn); border-radius: var(--r-pill);
  padding: 9px 40px 9px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px;
}
.prod-sort select:hover { border-color: var(--red); }
.prod-sort select:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(218,7,16,.14); }

@media (max-width: 860px) {
  .prod-layout { grid-template-columns: 1fr; gap: 26px; }
  .prod-sidebar { position: static; }
  .prod-sidebar-title { margin-bottom: 10px; }
  .cat-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cat-list li { flex: 0 0 auto; }
  .cat-item { border: 1px solid var(--border-btn); border-radius: var(--r-pill); padding: 8px 15px; font-size: 13.5px; }
  .cat-item .cat-arrow { display: none; }
  .cat-item:hover { padding-left: 15px; }
  .cat-item.active { background: var(--red); color: #fff; border-color: var(--red); }
  .cat-item.active .cat-count { background: rgba(255,255,255,.24); color: #fff; }
}

/* ---- Brand logo chip on product cards ---- */
/* Fixed-size badge so every brand logo reads uniformly, regardless of the
   source file's aspect ratio (wide logos vs square/padded logos). */
/* every brand badge is the exact same box (fixed width + height); the logo is
   centred and contained, so no brand renders larger than another */
.prod-card .prod-brandchip { position: absolute; top: 12px; left: 12px; z-index: 3; background: #fff; border-radius: var(--r-sm); padding: 8px 12px; box-shadow: 0 3px 10px rgba(15,23,42,.16); display: flex; align-items: center; justify-content: center; width: 120px; height: 50px; }
.prod-card .prod-brandchip img { max-height: 30px; max-width: 100%; height: auto; width: auto; object-fit: contain; display: block; }

/* ---- Product detail: brand bar + solutions line + external Read More ---- */
.pd-brandbar { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.pd-brandbar .pd-brand-label { font-family: var(--font-body); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pd-brandbar .pd-brandlogo { height: 78px; width: auto; max-width: 320px; object-fit: contain; }
.pd-solutions { margin-top: 14px; font-family: var(--font-body); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pd-solutions span { color: var(--red); }

/* ============================================================
   INTERACTION & ACCESSIBILITY POLISH (senior UX pass)
   Additive layer — unifies focus, press feedback and arrow
   micro-interactions across every link/button. Reduced-motion safe.
   ============================================================ */

/* 1) One consistent, accessible keyboard focus ring everywhere */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
.prod-card:focus-visible, .news-tile:focus-visible, .feat-card:focus-visible,
.sol-menu-card:focus-visible, .contact-quick a:focus-visible, .cat-item:focus-visible {
  outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 8px;
}
.btn:focus-visible { outline-offset: 4px; }
/* form fields signal focus with their own red ring — no double outline */
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: none; }
/* anchored sections clear the sticky header */
:target { scroll-margin-top: 104px; }

/* 2) Tactile press feedback (down-state) on all controls */
.btn { will-change: transform; }
.btn:active { transform: translateY(0) scale(.975); transition-duration: .06s; }
.round-btn:active, .icon-btn:active, .chip:active, .tab:active,
.cat-item:active, .hero-dot:active, .footer-social a:active { transform: scale(.93); }
.back-top:active { transform: translateY(0) scale(.9); }

/* 3) Unified arrow micro-interaction — every text/ghost link nudges its
   play-triangle on hover, matching the .btn sweep for one coherent language */
.link-arrow svg, .fc-cta svg, .promo-cta svg, .sol-cell .sol-link svg, .mega-all svg,
.pd-brandbar + * .tri { transition: transform .25s var(--ease-sweep); }
.feat-card:hover .fc-cta svg,
.promo-card:hover .promo-cta svg { transform: translateX(5px); }

/* 4) Smooth, consistent card elevation transitions */
.value-card, .news-card, .feature-row, .contact-quick a {
  transition: box-shadow .28s var(--ease), transform .28s var(--ease), border-color .28s var(--ease);
}

/* 5) Subtle branded scrollbar on fine pointers */
@media (pointer: fine) {
  .article-body, body { scrollbar-color: var(--border-tab) transparent; scrollbar-width: thin; }
}

/* 6) Honour reduced-motion for every transform added above */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .round-btn:active, .icon-btn:active, .chip:active, .tab:active,
  .cat-item:active, .hero-dot:active, .footer-social a:active, .back-top:active,
  .link-arrow:hover svg, .feat-card:hover .fc-cta svg,
  .promo-card:hover .promo-cta svg, .sol-cell:hover .sol-link svg { transform: none !important; }
}
